/* ============================================================
   public-landing.css — Farmazone public landing page styles
   All styles extracted from public_landing/index.html inline block
   ============================================================ */

/* Zone overrides */
#app-content,
.app-main-viewport {
    background-color: var(--bg-surface, #ffffff) !important;
    display: flex !important;
    flex-direction: column !important;
}
.app-zone-main {
    background-color: transparent !important;
}

/* Wrapper */
.landing-wrapper {
    background-color: var(--bg-surface, #ffffff) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    padding: 2rem 0;
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hero */
.landing-hero {
    text-align: center;
    margin-bottom: 3rem;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: auto;
    min-height: 400px;
}
.landing-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-title, #0f172a);
    margin-bottom: 0.75rem;
}
.landing-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary, #475569);
    margin-bottom: 0;
}

/* Stat cards */
.landing-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 84rem;
    margin: 2rem auto;
}
.stat-card {
    background: var(--surface-default, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    text-align: center;
}
.stat-card h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-success, #15803d);
    margin: 0;
    letter-spacing: -0.02em;
}
.stat-card span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    display: block;
    margin-top: 0.4rem;
}

/* Select */
.premium-select option {
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 500;
}
[data-theme="dark"] .premium-select option {
    background-color: #1c1c1f;
    color: #f3f4f6;
}

/* Features grid */
.landing-features-section {
    max-width: 76rem;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}
.feature-item-card {
    background: var(--surface-default, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    text-align: left;
}
@media (min-width: 768px) {
    .feature-item-card { padding: 2rem; gap: 1.25rem; }
}
.feature-text-box { min-width: 0; }
.feature-item-card:hover {
    border-color: var(--border-strong, #cbd5e1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.feature-icon-box {
    width: 46px;
    height: 46px;
    background: rgba(21, 128, 61, 0.08);
    color: var(--brand-success, #15803d);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
[data-theme="dark"] .feature-icon-box {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #ffffff);
}
.feature-text-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-title, #0f172a);
}
.feature-text-box p {
    font-size: 0.95rem;
    color: var(--text-secondary, #475569);
    margin: 0;
    line-height: 1.55;
}

/* Trading CTA card */
.feature-item-card--trading {
    background: linear-gradient(135deg, #1e3a8a 0%, #4285f4 100%);
    border-color: transparent;
    color: #ffffff;
}
.feature-item-card--trading:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.35);
    border-color: transparent;
}
.feature-item-card--trading .feature-icon-box {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.feature-item-card--trading .feature-text-box h3 {
    color: #ffffff;
}
.feature-item-card--trading .feature-text-box p {
    color: rgba(255, 255, 255, 0.85);
}
.feature-item-card--trading .landing-trading-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-top: 0.6rem;
}

/* Preview section */
.preview-section {
    background: var(--surface-elevated, #f1f5f9);
    border-top: 1px solid var(--border-subtle, #e2e8f0);
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    padding: 5rem 2rem;
}
.preview-inner {
    max-width: 72rem;
    margin: 0 auto;
}
.section-headline {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-headline h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-title, #0f172a);
    margin: 0 0 0.5rem;
}
.section-headline p {
    color: var(--text-secondary, #475569);
    margin: 0;
    font-size: 1rem;
}

/* Ticker */
.market-ticker-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.ticker-card {
    background: var(--surface-default, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ticker-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.ticker-info span {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}
.ticker-rate {
    text-align: right;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-success, #15803d);
}

/* Manifesto */
.manifesto-section {
    max-width: 76rem;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.manifesto-card {
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--surface-default, #ffffff);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.manifesto-card:hover {
    background: var(--surface-elevated, #f8fafc);
    border-color: var(--border-strong, #cbd5e1);
}
.manifesto-card strong {
    font-size: 0.9rem;
    color: var(--text-title, #0f172a);
}
.manifesto-card i {
    color: var(--text-muted, #64748b);
}

/* Footer privacy link */
.footer-privacy-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-privacy-link:hover,
.footer-privacy-link.active-highlight {
    color: var(--brand-primary, #1e3a8a);
    text-decoration: underline;
}

/* Premium select */
.premium-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1.5px solid var(--border-strong, #cbd5e1);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    background-color: var(--surface-elevated, #f8fafc);
    color: var(--text-primary, #0f172a);
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.premium-select:focus {
    border-color: var(--brand-primary, #1e3a8a);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}
.premium-select:disabled {
    background-color: var(--surface-elevated, #f1f5f9);
    color: var(--text-muted, #94a3b8);
    border-color: var(--border-subtle, #e2e8f0);
    cursor: not-allowed;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
[data-theme="dark"] .premium-select {
    border-color: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
[data-theme="dark"] .premium-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}
.premium-select option {
    background-color: var(--surface-default, #ffffff);
    color: var(--text-primary, #0f172a);
    font-weight: 500;
}
[data-theme="dark"] .premium-select option {
    background-color: #1c1c1f;
    color: #f3f4f6;
}

/* Produce market finder */
.market-finder-widget {
    padding: 1rem;
    width: 100% !important;
    box-sizing: border-box;
    height: auto;
}
@media (min-width: 640px) {
    .market-finder-widget { padding: 2rem; }
}
.market-finder-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.market-finder-form-grid > div { min-width: 0; }
@media (min-width: 640px) {
    .market-finder-form-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
    .market-finder-form-grid { grid-template-columns: repeat(4, 1fr); }
}
.market-finder-desktop-table {
    display: none;
    overflow-x: auto;
}
@media (min-width: 768px) {
    .market-finder-desktop-table { display: block; }
}
.market-finder-mobile-cards { display: block; }
.market-finder-mobile-cards > * + * { margin-top: 1rem; }
@media (min-width: 768px) {
    .market-finder-mobile-cards { display: none; }
}
#finder-results-cards {
    max-width: 100%;
    overflow-x: hidden;
}
#finder-results-cards div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Loading skeletons */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.bg-gray-200 { background-color: #e2e8f0; }
.bg-gray-100 { background-color: #f1f5f9; }
.rounded { border-radius: 0.25rem; }
.h-4 { height: 1rem; }
.h-3 { height: 0.75rem; }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-full { width: 100%; }

/* Responsive nav */
@media (max-width: 1024px) {
    .landing-nav { flex-direction: column; gap: 1.25rem; text-align: center; padding: 1.25rem; }
    .landing-nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
}
@media (max-width: 768px) {
    .landing-actions { flex-direction: column; width: 100%; }
    .landing-actions a { width: 100%; text-align: center; }
    .landing-hero { padding: 11rem 1rem 4rem; }
}

/* Grain price change colours */
.grain-change--up   { color: #15803d; font-size: 0.72rem; font-weight: 700; }
.grain-change--down { color: #dc2626; font-size: 0.72rem; font-weight: 700; }
.grain-change--flat { color: var(--text-muted, #64748b); font-size: 0.72rem; }

