/* =====================================================================
   CropSense Design System
   Signature: "scan brackets" - viewfinder corners + scan-line sweep,
   echoing the core product moment of AI reading a crop photo.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    /* ---- Color tokens ---- */
    --forest:      #0F2E20;   /* deep forest green - near-black, brand anchor */
    --forest-800:  #163C29;
    --emerald:     #1C7A4D;   /* primary brand / CTA */
    --emerald-600: #16603C;
    --leaf:        #4CAF6D;   /* fresh accent green */
    --leaf-tint:   #E5F4EA;
    --clay:        #B85C33;   /* warm earth accent, distinct from generic terracotta */
    --clay-tint:   #F6E7DC;
    --gold:        #E0A233;   /* grain / harvest accent */
    --gold-tint:   #FBF0DB;
    --sky:         #4C93A8;   /* water / paddy accent */
    --sky-tint:    #E1F0F3;
    --berry:       #A8456B;   /* cocoa / coffee accent */
    --berry-tint:  #F6E3EB;
    --sand:        #EFE7D6;   /* warm earth section background */
    --cream:       #FBF9F4;
    --white:       #FFFFFF;
    --ink:         #142118;   /* dark text */
    --ink-soft:    #3F4F45;
    --line:        #E1DED2;

    /* ---- Type ---- */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* ---- Layout ---- */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-soft: 0 12px 32px -12px rgba(15, 46, 32, 0.18);
    --shadow-card: 0 20px 48px -18px rgba(15, 46, 32, 0.28);
    --max-width: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--forest); line-height: 1.12; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
    outline: 3px solid var(--leaf);
    outline-offset: 2px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald);
    font-weight: 600;
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--leaf);
    border-radius: 2px;
    display: inline-block;
}

.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.section-forest .section-head p { color: #C9DACE; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--emerald); color: var(--white); box-shadow: 0 10px 24px -8px rgba(28,122,77,0.55); }
.btn-primary:hover { background: var(--emerald-600); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-secondary:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }
.btn-onclay { background: var(--white); color: var(--clay); }
.btn-onclay:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---- Nav ---- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 249, 244, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--forest); }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--emerald); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.lang-toggle a { padding: 6px 11px; color: var(--ink-soft); }
.lang-toggle a.active { background: var(--forest); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 4px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); padding: 16px 24px; border-bottom: 1px solid var(--line);
    }
    .nav-links.open a { display: block; padding: 10px 0; }
    .nav-toggle { display: flex; align-items: center; background: none; border: none; padding: 6px; }
}

/* ---- Scan-frame signature element ---- */
.scan-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--forest-800);
}
.scan-frame::before, .scan-frame::after,
.scan-frame .sf-tl, .scan-frame .sf-tr, .scan-frame .sf-bl, .scan-frame .sf-br { content: ''; }
.scan-frame .sf-corner {
    position: absolute; width: 26px; height: 26px; z-index: 3;
    border: 3px solid var(--leaf);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.sf-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.sf-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.sf-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.sf-br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.scan-line {
    position: absolute; left: 8%; right: 8%; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--leaf) 20%, #B7F0C7 50%, var(--leaf) 80%, transparent);
    box-shadow: 0 0 14px 2px rgba(76, 175, 109, 0.7);
    animation: scan-sweep 3.2s ease-in-out infinite;
}
@keyframes scan-sweep {
    0%   { top: 12%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { top: 86%; opacity: 1; }
    60%  { opacity: 0; }
    100% { top: 12%; opacity: 0; }
}

/* ---- Illustration surfaces (used instead of stock photography) ---- */
.illus-surface {
    background: linear-gradient(155deg, var(--forest) 0%, var(--forest-800) 55%, #1E4A32 100%);
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 3;
}
.illus-surface.tone-clay { background: linear-gradient(155deg, #7A3A1E 0%, var(--clay) 60%, #C97A47 100%); }
.illus-surface.tone-leaf { background: linear-gradient(155deg, var(--emerald) 0%, var(--leaf) 100%); }
.illus-surface svg { width: 62%; height: 62%; }

/* ---- Cards ---- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}
.stat-card { padding: 22px 20px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); }
.stat-card .stat-label { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--forest); margin-top: 6px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-family: var(--font-mono); }
.badge-low { background: var(--leaf-tint); color: var(--emerald-600); }
.badge-medium { background: #FCEED4; color: #92600C; }
.badge-high { background: #FBDCD4; color: #A23A1F; }

/* ---- Crop-type icon badges ---- */
.crop-icon-wrap {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--leaf-tint);
    margin-bottom: 16px;
}
.crop-icon-wrap svg { width: 34px; height: 34px; }
.crop-icon-wrap.tint-gold  { background: var(--gold-tint); }
.crop-icon-wrap.tint-sky   { background: var(--sky-tint); }
.crop-icon-wrap.tint-clay  { background: var(--clay-tint); }
.crop-icon-wrap.tint-berry { background: var(--berry-tint); }
.crop-icon-wrap.tint-leaf  { background: var(--leaf-tint); }

/* ---- Real-photo cards (Supported Crops grid) ---- */
.photo-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--cream);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}
.photo-card:hover { transform: translateY(-4px); }
.photo-card .pc-image { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.photo-card .pc-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .pc-label { padding: 14px 16px; font-weight: 700; color: var(--forest); font-size: 14.5px; }

/* ---- Utility grids ---- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
    .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    padding: 72px 0 100px;
    background:
        radial-gradient(circle at 85% 12%, rgba(224,162,51,0.14), transparent 42%),
        radial-gradient(circle at 8% 85%, rgba(28,122,77,0.14), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(76,147,168,0.10), transparent 50%),
        var(--cream);
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero-sub { font-size: 18.5px; color: var(--ink-soft); margin-top: 22px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust .t-num { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--forest); }
.hero-trust .t-label { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); }

.hero-visual { position: relative; }
.hero-photo { position: relative; }
.hero-photo .scan-frame { aspect-ratio: 5/6; }
.hero-analysis-card {
    position: absolute; bottom: -34px; left: -34px;
    width: 250px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 18px;
    border: 1px solid var(--line);
}
@media (max-width: 560px) { .hero-analysis-card { position: static; width: auto; margin-top: -40px; margin-left: 16px; margin-right: 16px; } }
.hac-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hac-top span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: 0.05em; }
.hac-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.hac-score .num { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--emerald); }
.hac-score .of { font-size: 13px; color: var(--ink-soft); }
.hac-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-top: 1px dashed var(--line); }
.hac-row b { color: var(--forest); }

/* =====================================================================
   PROCESS STEPS
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-card { position: relative; padding: 28px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--leaf); font-weight: 700; margin-bottom: 18px; }
.step-card h3 { font-size: 19px; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--ink-soft); }
.step-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--forest); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-icon svg { width: 24px; height: 24px; stroke: var(--leaf); }

/* =====================================================================
   FEATURE (disease / pest) split sections
   ===================================================================== */
.feature-media { position: relative; }
.feature-media .scan-frame { aspect-ratio: 4/3.1; }
.report-card {
    background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--line);
    box-shadow: var(--shadow-soft); padding: 24px; margin-top: -60px; margin-left: 24px; margin-right: 24px;
    position: relative; z-index: 2;
}
@media (max-width: 900px) { .report-card { margin-left: 0; margin-right: 0; } }
.report-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.report-card .rc-head h4 { font-size: 16px; }
.report-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.report-line:last-child { border-bottom: none; }
.report-line .rl-label { color: var(--ink-soft); }
.report-line .rl-val { font-weight: 700; color: var(--forest); }
.confidence-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.confidence-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--emerald)); }
.disclaimer-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

.feature-list { margin-top: 26px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.feature-list svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; stroke: var(--emerald); }

/* =====================================================================
   GROWTH STAGE TIMELINE
   ===================================================================== */
.stage-timeline { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding-bottom: 12px; }
.stage-node { flex: 1; min-width: 130px; text-align: center; position: relative; padding: 0 10px; }
.stage-node .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); margin: 0 auto 14px; position: relative; z-index: 2; }
.stage-node.done .dot { border-color: var(--leaf); background: var(--leaf); }
.stage-node.current .dot { border-color: var(--emerald); background: var(--white); box-shadow: 0 0 0 5px var(--leaf-tint); }
.stage-node::before {
    content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 1;
}
.stage-node:first-child::before { display: none; }
.stage-node.done::before, .stage-node.current::before { background: var(--leaf); }
.stage-node .s-label { font-size: 13px; font-weight: 700; color: var(--forest); }
.stage-node .s-current-pill {
    display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 10.5px;
    background: var(--emerald); color: var(--white); padding: 3px 9px; border-radius: 99px;
}

/* =====================================================================
   PROGRESS COMPARISON
   ===================================================================== */
.compare-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 800px) { .compare-wrap { grid-template-columns: 1fr; } .compare-arrow { transform: rotate(90deg); margin: 0 auto; } }
.compare-frame .scan-frame { aspect-ratio: 4/3.4; }
.compare-tag { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: 11px; background: rgba(15,46,32,0.85); color: var(--white); padding: 5px 14px; border-radius: 99px; letter-spacing: 0.04em; }
.compare-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--emerald); display: flex; align-items: center; justify-content: center; }
.compare-arrow svg { width: 20px; height: 20px; stroke: var(--white); }
.compare-verdict { grid-column: 1 / -1; margin-top: 8px; background: var(--leaf-tint); border-radius: var(--radius-sm); padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.compare-verdict svg { width: 26px; height: 26px; stroke: var(--emerald-600); flex-shrink: 0; }
.compare-verdict b { color: var(--emerald-600); }

/* =====================================================================
   REGION SECTION
   ===================================================================== */
.region-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .region-grid { grid-template-columns: 1fr; } }
.region-card { border-radius: var(--radius-md); padding: 30px 26px; color: var(--white); position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.region-card.usa { background: linear-gradient(160deg, #163C29, #1C7A4D); }
.region-card.civ { background: linear-gradient(160deg, #7A3A1E, #B85C33); }
.region-card.world { background: linear-gradient(160deg, #142118, #3F4F45); }
.region-card .r-flag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
.region-card h3 { color: var(--white); font-size: 21px; margin-bottom: 8px; }
.region-card p { font-size: 13.5px; opacity: 0.9; }
.dot-grid { position: absolute; inset: 0; opacity: 0.18; background-image: radial-gradient(circle, #fff 1.4px, transparent 1.4px); background-size: 16px 16px; }

/* =====================================================================
   DASHBOARD PREVIEW MOCKUP
   ===================================================================== */
.browser-mock { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--white); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--forest); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.browser-body { padding: 26px; background: var(--cream); }
.dash-crop-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 700px) { .dash-crop-row { grid-template-columns: 1fr; } }
.dash-crop-card { background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 16px; }
.dash-crop-card .dc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.dash-crop-card .dc-name { font-weight: 700; font-size: 14px; color: var(--forest); }
.mini-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.mini-bar span { display: block; height: 100%; background: var(--leaf); }

/* =====================================================================
   FREE CREDITS BANNER
   ===================================================================== */
.credits-banner {
    background: linear-gradient(120deg, var(--forest), var(--emerald-600));
    border-radius: var(--radius-lg);
    padding: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    color: var(--white);
}
@media (max-width: 800px) { .credits-banner { flex-direction: column; text-align: center; padding: 40px 26px; } }
.credits-banner h2 { color: var(--white); font-size: clamp(24px,3vw,34px); }
.credits-pill { display: inline-flex; gap: 10px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 99px; font-family: var(--font-mono); font-size: 13px; margin-bottom: 16px; }

/* =====================================================================
   WHY / FAQ / FOOTER
   ===================================================================== */
.why-item { display: flex; gap: 16px; }
.why-item .wi-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-item .wi-icon svg { width: 22px; height: 22px; stroke: var(--leaf); }
.why-item h4 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--ink-soft); }

.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--forest); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--emerald); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; max-width: 720px; }

.final-cta { text-align: center; padding: 110px 0; background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.final-cta h2 { color: var(--white); font-size: clamp(30px,4.2vw,50px); max-width: 780px; margin: 0 auto; }
.final-cta p { color: #C9DACE; margin-top: 18px; font-size: 17px; }
.final-cta .btn { margin-top: 32px; }

.site-footer { background: var(--forest); color: #C9DACE; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { color: var(--white); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 14px; color: #C9DACE; }
.footer-grid ul a:hover { color: var(--leaf); }
.footer-brand p { font-size: 14px; margin-top: 14px; opacity: 0.75; max-width: 280px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---- Auth pages ---- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 26px; }
.auth-sub { color: var(--ink-soft); margin-top: 8px; font-size: 14.5px; }
.auth-card form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.auth-card label { font-size: 13px; font-weight: 700; color: var(--forest); margin-bottom: -6px; }
.auth-card input, .auth-card select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; background: var(--white); color: var(--ink);
}
.auth-card input:focus, .auth-card select:focus { border-color: var(--emerald); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-footer-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.auth-footer-link a { color: var(--emerald); font-weight: 700; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-top: 18px; }
.alert-error { background: #FBDCD4; color: #A23A1F; }
.alert ul { padding-left: 18px; list-style: disc; }
.auth-back { position: absolute; top: 28px; left: 28px; font-size: 14px; font-weight: 700; color: var(--forest); display: flex; align-items: center; gap: 6px; }

/* =====================================================================
   DASHBOARD SHELL
   ===================================================================== */
.dash-shell { display: flex; min-height: 100vh; background: var(--cream); }
.dash-sidebar {
    width: 240px; flex-shrink: 0; background: var(--forest); color: #C9DACE;
    padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--white); padding: 0 8px 22px; }
.dash-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
    font-size: 14px; font-weight: 600; color: #C9DACE; margin-bottom: 2px;
}
.dash-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-nav a.active { background: var(--emerald); color: var(--white); }
.dash-nav .nav-section-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #7E9C8C; padding: 16px 12px 6px; }
.dash-nav .badge-count { margin-left: auto; background: var(--clay); color: var(--white); font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px; background: var(--white); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10;
}
.dash-topbar h1 { font-size: 21px; }
.dash-content { padding: 32px; max-width: 1100px; }
.dash-mobile-toggle { display: none; background: none; border: none; padding: 6px; }

@media (max-width: 900px) {
    .dash-sidebar { position: fixed; left: -260px; z-index: 100; transition: left 0.2s ease; box-shadow: var(--shadow-card); }
    .dash-sidebar.open { left: 0; }
    .dash-mobile-toggle { display: flex; }
    .dash-content { padding: 20px; }
    .dash-topbar { padding: 14px 20px; }
}

.empty-state { text-align: center; padding: 56px 24px; background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--radius-md); }
.empty-state svg { width: 40px; height: 40px; stroke: var(--ink-soft); margin: 0 auto 14px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 20px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.data-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--cream); padding: 12px 16px; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.data-table tr:hover td { background: var(--cream); }

.crop-card-link { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.crop-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.form-panel label { display: block; font-size: 13px; font-weight: 700; color: var(--forest); margin-bottom: 6px; margin-top: 16px; }
.form-panel label:first-child { margin-top: 0; }
.form-panel input, .form-panel select, .form-panel textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14.5px; background: var(--white); color: var(--ink);
}
.form-panel input:focus, .form-panel select:focus, .form-panel textarea:focus { border-color: var(--emerald); outline: none; }
.form-panel .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-panel .form-row-2 { grid-template-columns: 1fr; } }

.wizard-steps { display: flex; gap: 8px; margin-bottom: 28px; }
.wizard-steps .ws-dot { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.wizard-steps .ws-dot.active { background: var(--emerald); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

.notif-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--leaf-tint); margin: 0 -16px; padding: 16px; border-radius: 10px; }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon svg { width: 18px; height: 18px; stroke: var(--leaf); }
