/* Avena · site. Tokens: docs/DESIGN_SYSTEM.md §2 */
/* Tokens: docs/DESIGN_SYSTEM.md §2 */
:root {
  /* Grafite e trigo: paleta do site (exploração, ainda não é a paleta oficial da marca) */
  --background: #ECEBE6;      /* pedra */
  --surface: #F5F4F0;
  --surface-elevated: #E3E1DA;
  --border: #CFCCC3;
  --border-strong: #B9B5AA;
  --foreground: #24272B;      /* grafite */
  --muted: #5A5E5B;
  --subtle: #686A63;
  --primary: #4E5B34;         /* oliva */
  --primary-hover: #3E4829;
  --primary-fg: #F5F4F0;
  --wheat: #D2AE6A;           /* trigo, para superfícies e gráficos */
  --warning: #87652A;         /* trigo escuro, para texto */
  --destructive: #A43B2E;
  --radius: 3px;
  --radius-sm: 2px;
  --radius-lg: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --max: 1180px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.unit { color: var(--muted); font-size: .82em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--primary); color: var(--primary-fg); padding: 8px 14px; border-radius: var(--radius); z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--foreground); color: var(--foreground); background: transparent; }
.btn-ghost:hover { background: var(--surface-elevated); border-color: #B9B5AA; }
.btn .icon { width: 18px; height: 18px; }

/* Header (glass permitido: §4.4) */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,235,230,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36,39,43,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand svg { height: 22px; width: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 120ms ease-out, background-color 120ms ease-out; }
.nav-links a:hover { color: var(--foreground); background: var(--surface-elevated); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); color: var(--foreground); width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 12px 0 20px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; color: var(--foreground); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* Sections */
section { position: relative; }
.section { padding: 112px 0; border-top: 1px solid var(--border); }
.eyebrow { font: 500 12px/16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--primary); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; max-width: 22ch; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 60ch; margin: 20px 0 0; text-wrap: pretty; }

/* Hero */
.hero { padding: 88px 0 96px; overflow: hidden; }
.contours { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: .98; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 16px; height: 16px; color: var(--primary); }

/* Product mock */
.app {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(36,39,43,.16); overflow: hidden; font-size: 13px;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.app-bar .crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); white-space: nowrap; overflow: hidden; }
.app-bar .crumbs b { color: var(--foreground); font-weight: 500; }
.sync { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 99px; background: var(--primary); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.kpi { padding: 16px; border-right: 1px solid var(--border); min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi-label { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 500; margin-top: 6px; letter-spacing: -0.02em; white-space: nowrap; }
.kpi-delta { font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.pos { color: var(--primary); } .warn { color: var(--warning); } .neg { color: var(--destructive); }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; }
.app-table { border-right: 1px solid var(--border); min-width: 0; }
table.t { width: 100%; border-collapse: collapse; }
.t th { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 10px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t th:first-child, .t td:first-child { text-align: left; }
.t td { padding: 0 9px; height: 36px; border-bottom: 1px solid var(--border); text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t td:first-child { font-family: var(--sans); font-weight: 500; }
.t tr.flag td { background: rgba(210,174,106, .06); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: var(--radius-sm); font: 500 11px/1.4 var(--sans); }
.badge.warn { background: rgba(210,174,106,.3); }
.app-map { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.app-map .cap { white-space: nowrap; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.app-map svg { width: 100%; height: auto; border-radius: var(--radius-sm); background: #E3E1DA; border: 1px solid var(--border); }
.mock-note { margin: 12px 0 0; font-size: 12px; color: var(--subtle); text-align: right; }

/* Hero com imagem real de satélite (BRAND_PLAYBOOK §8.2: escura, dessaturada, overlay) */
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; filter: saturate(.7) contrast(.95); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #ECEBE6 0%, rgba(236,235,230,.94) 30%, rgba(236,235,230,.25) 58%, rgba(236,235,230,0) 100%),
              linear-gradient(0deg, #ECEBE6 0%, rgba(236,235,230,0) 30%); }
.credit { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: var(--subtle); z-index: 1; }

/* Rigor agronômico: manuais regionais */
.rigor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
.manuals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.manuals button { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; min-height: 64px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--foreground); font: inherit; cursor: pointer; transition: border-color 120ms ease-out, background-color 120ms ease-out; }
.manuals button:hover { border-color: #B9B5AA; background: var(--surface-elevated); }
.manuals button[aria-pressed="true"] { border-color: rgba(78,91,52,.6); background: rgba(78,91,52,.06); }
.manuals b { font-weight: 600; font-size: 15px; }
.manuals .src { grid-column: 1; color: var(--muted); font-size: 13px; }
.manuals .ufs { grid-row: 1 / span 2; grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; max-width: 160px; }
.rigor-note { margin: 20px 0 0; color: var(--muted); font-size: 15px; display: flex; gap: 10px; }
.rigor-note .icon { color: var(--warning); margin-top: 2px; }
.br-wrap { max-width: 520px; margin: 0 auto; width: 100%; }
.brmap { display: block; width: 100%; height: auto; }
.brmap .uf { fill: var(--surface); stroke: #B9B5AA; stroke-width: 1; stroke-linejoin: round; transition: fill 200ms var(--ease), stroke 200ms var(--ease), opacity 200ms var(--ease); }
.brmap .uf.has { fill: rgba(78,91,52,.22); stroke: rgba(78,91,52,.7); }
.brmap .uf.part { fill: url(#hatch); }
.hatch-bg { fill: rgba(78,91,52,.06); } .hatch-ln { stroke: rgba(78,91,52,.45); stroke-width: 2.5; }
.brmap.focus .uf.has { opacity: .35; }
.brmap.focus .uf.on { opacity: 1; fill: var(--primary); stroke: #2F3820; }
.uf-lbl text { font: 600 10px var(--mono); fill: var(--muted); text-anchor: middle; pointer-events: none; }
.brmap .uf-lbl text { transition: fill 200ms var(--ease); }
.brmap.focus .uf-lbl text.on { fill: var(--primary-fg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
/* Faixa aérea */
.band { position: relative; height: clamp(320px, 42vw, 560px); overflow: hidden; border-top: 1px solid var(--border); display: flex; align-items: flex-end; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(1.05) contrast(.95); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #ECEBE6 0%, rgba(236,235,230,.35) 45%, rgba(236,235,230,.15) 100%); }
.band-copy { position: relative; z-index: 1; width: 100%; padding-bottom: 56px; }
.band-big { margin: 0; font-size: clamp(36px, 6vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }

/* Linha do tempo da safra */
.tl-wrap { margin: 48px 0 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 24px 24px 20px; }
.tl-scroll { overflow-x: auto; }
.tl { display: block; width: 100%; min-width: 640px; height: auto; }
.tl-g { stroke: var(--border); stroke-width: 1; }
.tl-harvest { fill: rgba(210,174,106,.22); }
.tl-h { fill: var(--warning); font: 500 13px var(--sans); text-anchor: middle; }
.tl-m { fill: var(--muted); font: 500 13px var(--mono); text-anchor: middle; }
.tl-lane { fill: var(--muted); font: 500 14px var(--sans); }
.tl-a { fill: var(--foreground); }
.tl-line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.tl-dot { fill: var(--background); stroke: var(--primary); stroke-width: 2; }
.tl-val { fill: var(--primary); font: 600 15px var(--mono); }
.tl-dash { stroke: var(--subtle); stroke-width: 2; stroke-dasharray: 6 6; }
.tl-late { fill: var(--background); stroke: var(--warning); stroke-width: 2.5; }
.tl-lateval { fill: var(--warning); font: 600 15px var(--mono); }
.tl-cap { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.tl-cap span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.sw-a { background: var(--primary); } .sw-p { background: repeating-linear-gradient(90deg, var(--subtle) 0 5px, transparent 5px 9px); }

/* Pilares com visual */
.pv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.pv-card { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.pv-wide { grid-column: span 3; }
.pv-viz { min-height: 168px; margin-bottom: 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pv-card h3 { font-size: 18px; }
.pv-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.kbig { font-size: clamp(36px, 4.4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.kbig .unit { font-size: .45em; margin-left: 4px; }
.stack { display: flex; height: 14px; border-radius: 4px; overflow: hidden; gap: 2px; }
.s1 { background: var(--primary); } .s2 { background: rgba(78,91,52,.6); } .s3 { background: rgba(78,91,52,.35); } .s4 { background: rgba(78,91,52,.18); }
.stack-l { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.stack-l span { display: inline-flex; align-items: center; gap: 6px; }
.stack-l i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.cash { width: 100%; height: auto; }
.cash-0 { stroke: var(--border); }
.cash-in { fill: var(--primary); } .cash-out { fill: var(--wheat); }
.cash-l { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.sync-list { display: grid; gap: 8px; font-size: 14px; }
.sync-list > div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.sync-list > div:first-child { border: 0; background: transparent; padding: 0 0 4px; color: var(--muted); }
.sync-list span { flex: 1; } .sync-list b { font-weight: 500; font-size: 12px; }
.st { width: 8px; height: 8px; border-radius: 99px; } .st-w { background: var(--warning); } .st-ok { background: var(--primary); }
.own { display: flex; align-items: center; gap: 8px; }
.own-node { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; border: 1px solid rgba(78,91,52,.5); border-radius: var(--radius-lg); background: rgba(78,91,52,.08); font-size: 13px; }
.own-node .icon { color: var(--primary); }
.own-cloud { border: 1px dashed #B9B5AA; background: transparent; color: var(--muted); padding: 22px 14px; }
.own-link { flex: 1; height: 0; border-top: 2px dashed #B9B5AA; position: relative; }
.own-link span { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips span { font-size: 12px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--foreground); }
.mtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mtiles span { display: grid; place-items: center; height: 48px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid rgba(78,91,52,.45); background: rgba(78,91,52,.1); }
.mtiles .wide { grid-column: span 4; background: repeating-linear-gradient(135deg, rgba(78,91,52,.16) 0 4px, transparent 4px 8px); }

/* Passos sobre o satélite */
.vsteps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vstep-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #E3E1DA; margin-bottom: 20px; }
.vstep-img svg { display: block; width: 100%; height: auto; }
.st-img { filter: saturate(.6) brightness(1.05) contrast(.95); }
.st-dim { filter: saturate(.2) brightness(1.15) contrast(.8); }
.st-poly { fill: rgba(245,244,240,.14); stroke: #F5F4F0; stroke-width: 3; stroke-linejoin: round; }
.st-v { fill: var(--primary); stroke: #F5F4F0; stroke-width: 2.5; }
.st-pass { stroke: #F5F4F0; stroke-width: 2; opacity: .9; }
.st-fill { fill: rgba(78,91,52,.55); stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; }
.st-tag rect { fill: rgba(236,235,230,.82); stroke: rgba(36,39,43,.08); }
.st-tag text { fill: var(--foreground); font: 600 24px var(--sans); }
.st-tag text.mono { font: 600 26px var(--mono); }
.st-big text { fill: var(--foreground); font: 600 52px var(--mono); paint-order: stroke; stroke: rgba(245,244,240,.85); stroke-width: 3px; }
.st-big .st-sub { font-size: 22px; fill: var(--foreground); font-weight: 500; }
.vsteps .n { color: var(--primary); font-size: 13px; }
.vsteps h3 { font-size: 19px; margin-top: 6px; }
.vsteps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-top: 80px; }
.fact { padding: 24px; border-right: 1px solid var(--border); }
.fact:last-child { border-right: 0; }
.fact .big { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.fact p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Problem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tension { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.tension li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.tension .n { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.tension b { display: block; font-weight: 600; margin-bottom: 4px; }
.tension span { color: var(--muted); font-size: 15px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.pillar { grid-column: span 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color 200ms var(--ease); }
.pillar:hover { border-color: #B9B5AA; }
.pillar.wide { grid-column: span 3; }
.pillar .ico { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-elevated); display: grid; place-items: center; color: var(--foreground); }
.pillar h3 { font-size: 19px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
.pillar .proof { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pillar .proof b { color: var(--foreground); font-weight: 500; }

/* Modules */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 56px; }
.module { background: var(--background); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; transition: background-color 200ms var(--ease); }
.module:hover { background: var(--surface); }
.module .icon { color: var(--muted); width: 22px; height: 22px; }
.module h3 { font-size: 17px; margin-top: 8px; }
.module p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.module.soon h3::after { content: "Em breve"; margin-left: 8px; vertical-align: 2px; font: 500 11px/1 var(--sans); letter-spacing: .04em; color: var(--warning); background: rgba(210,174,106,.12); padding: 3px 6px; border-radius: var(--radius-sm); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; counter-reset: step; list-style: none; padding: 0; }
.step { border-top: 1px solid var(--border); padding-top: 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; color: var(--primary); display: block; margin-bottom: 20px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--primary); }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* Comparison */
.compare-wrap { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 20px; border-bottom: 1px solid var(--border); text-align: left; font-size: 15px; }
.compare thead th { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--foreground); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare td.us { color: var(--foreground); background: rgba(78,91,52,.05); font-weight: 500; }
.compare td span { display: inline-flex; align-items: center; gap: 8px; }
.compare td.us .icon { color: var(--primary); width: 16px; height: 16px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; background: var(--surface); display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(78,91,52,.5); }
.plan .tag { align-self: flex-start; font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: rgba(78,91,52,.1); padding: 5px 8px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.plan h3 { font-size: 22px; }
.plan .for { color: var(--muted); font-size: 15px; margin: 8px 0 24px; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 24px 0 0; border-top: 1px solid var(--border); display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { width: 18px; height: 18px; color: var(--primary); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Pilot + form */
.pilot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.pilot-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.pilot-points li { display: flex; gap: 12px; color: var(--muted); }
.pilot-points li b { color: var(--foreground); font-weight: 500; }
.pilot-points .icon { color: var(--primary); margin-top: 2px; }
form.demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select {
  height: 44px; width: 100%; padding: 0 12px; border-radius: var(--radius);
  background: var(--background); color: var(--foreground); border: 1px solid var(--border);
  font: 400 16px var(--sans); transition: border-color 120ms ease-out;
}
.field input::placeholder { color: var(--subtle); }
.field input:hover, .field select:hover { border-color: #B9B5AA; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(78,91,52,.2); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--destructive); }
.field .err { display: none; color: #A43B2E; font-size: 13px; }
.field[data-invalid] .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { color: var(--subtle); font-size: 13px; margin: 0; }
.form-done { display: none; text-align: left; }
.form-done h3 { font-size: 20px; margin: 12px 0 8px; }
.form-done p { color: var(--muted); margin: 0; }
form.demo.sent > :not(.form-done) { display: none; }
form.demo.sent .form-done { display: block; }

/* FAQ */
.faq { margin-top: 48px; border-top: 1px solid var(--border); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform 200ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* Final CTA + footer */
.closing { text-align: center; padding: 128px 0; border-top: 1px solid var(--border); overflow: hidden; }
.closing h2 { margin: 0 auto; max-width: 18ch; font-size: clamp(34px, 5vw, 56px); }
.closing .lead { margin: 20px auto 0; }
.closing .hero-actions { justify-content: center; }
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.foot p { margin: 16px 0 0; max-width: 46ch; line-height: 1.6; }
.foot h4 { margin: 0 0 12px; color: var(--foreground); font-size: 13px; font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot ul a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot ul a:hover { color: var(--foreground); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); }

/* Reveal (respeita reduced motion) */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0ms !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1240px) and (min-width: 1041px) { .t .hide-sm { display: none; } }
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 680px; }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .pillar, .pillar.wide { grid-column: span 3; }
  .pillar:last-child { grid-column: span 6; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.open { display: block; }
  .split, .pilot, .rigor { grid-template-columns: 1fr; gap: 40px; }
  .pv-card, .pv-wide { grid-column: span 3; }
  .pv-card:last-child { grid-column: span 6; }
  .vsteps { grid-template-columns: 1fr; max-width: 480px; }
  .tl-wrap { padding: 16px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(236,235,230,.8) 0%, rgba(236,235,230,.9) 45%, #ECEBE6 75%); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .steps, .plans { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .hero .lead, .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar.wide, .pillar:last-child { grid-column: auto; }
  .modules { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .app-body { grid-template-columns: 1fr; }
  .app-table { border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 17px; }
  .kpi-label { font-size: 10px; }
  .app-bar .sync span:last-child { display: none; }
  .t .hide-sm { display: none; }
  .tension li { grid-template-columns: 1fr; gap: 6px; }
  .row2 { grid-template-columns: 1fr; }
  form.demo { padding: 24px 20px; }
  .facts { grid-template-columns: 1fr; }
  .manuals .ufs { max-width: 96px; }
  .pv { grid-template-columns: 1fr; }
  .pv-card, .pv-wide, .pv-card:last-child { grid-column: auto; }
  .fact { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .fact:last-child { border-bottom: 0; }
  .closing { padding: 88px 0; }
  .foot { grid-template-columns: 1fr; }
}

/* ---------- Planos: monte o plano (base + atividades + nível + porte) ---------- */
.pb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 56px; align-items: start; }
.pb-steps { display: grid; gap: 16px; min-width: 0; }
.pb-layer { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.pb-n { font: 500 13px/28px var(--mono); color: var(--primary); }
.pb-layer h3 { font-size: 19px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 28px; }
.pb-layer h3 span { font: 400 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.pb-layer .chips { margin-top: 14px; }
.pb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.pb-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); cursor: pointer; transition: border-color 120ms ease-out, background-color 120ms ease-out; }
.pb-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-opt:hover { border-color: var(--border-strong); }
.pb-opt:has(input:checked) { border-color: rgba(78,91,52,.65); background: rgba(78,91,52,.07); }
.pb-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pb-opt .head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.pb-opt .head .icon { color: var(--primary); }
.pb-opt .box { margin-left: auto; width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 2px; display: grid; place-items: center; flex: none; }
.pb-opt .box .icon { width: 12px; height: 12px; stroke-width: 3; color: var(--primary-fg); opacity: 0; }
.pb-opt.radio .box { border-radius: 99px; }
.pb-opt:has(input:checked) .box { background: var(--primary); border-color: var(--primary); }
.pb-opt:has(input:checked) .box .icon { opacity: 1; }
.pb-opt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.pb-ilp { margin: 14px 0 0; padding: 10px 14px; border-left: 2px solid var(--wheat); background: rgba(210,174,106,.14); font-size: 14px; }
.pb-ilp[hidden] { display: none; }
.pb-porte { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.pb-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--muted); }
.pb-range output { font: 500 18px var(--mono); color: var(--foreground); }
.pb-range input { width: 100%; margin: 10px 0 0; accent-color: var(--primary); height: 28px; }
.pb-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 16px; }
.pb-scale div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--background); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.4; color: var(--muted); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.pb-scale b { display: block; font: 600 20px var(--mono); color: var(--foreground); }
.pb-scale div.on { background: var(--primary); border-color: var(--primary); color: rgba(245,244,240,.8); }
.pb-scale div.on b { color: var(--primary-fg); }
.pb-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pb-sum { position: sticky; top: 88px; padding: 28px; border-radius: var(--radius-lg); background: var(--foreground); color: #ECEBE6; overflow: hidden; }
.pb-sum .k { font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #A3A69E; }
.pb-sum h3 { font-size: 32px; margin: 10px 0 0; letter-spacing: -0.03em; }
.pb-sum .porte { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 14px; color: #C9CAC3; }
.pb-sum .porte b { font: 600 13px/1 var(--mono); color: var(--foreground); background: var(--wheat); padding: 4px 7px; border-radius: var(--radius-sm); }
.pb-sum ul { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(236,235,230,.14); display: grid; gap: 10px; font-size: 14.5px; }
.pb-sum li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.pb-sum li::before { content: "+"; font-family: var(--mono); color: var(--wheat); }
.pb-sum li span { color: #A3A69E; display: block; font-size: 13px; }
.pb-sum .vazio { color: var(--wheat); }
.pb-sum .btn { width: 100%; margin-top: 24px; background: var(--wheat); color: var(--foreground); }
.pb-sum .btn:hover { background: #DDBD80; }
.pb-sum .note { font-size: 13px; color: #A3A69E; margin: 12px 0 0; }
@media (max-width: 1040px) { .pb { grid-template-columns: 1fr; } .pb-sum { position: static; } }
@media (max-width: 640px) {
  .pb-layer { grid-template-columns: 1fr; padding: 20px; gap: 4px; }
  .pb-opts, .pb-porte { grid-template-columns: 1fr; }
  .pb-scale div { padding: 8px; font-size: 11.5px; }
}

/* Troca de atividade no cabeçalho */
.act-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px; gap: 2px; background: var(--surface); }
.act-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.act-switch a .icon { width: 16px; height: 16px; }
.act-switch a:hover { color: var(--foreground); }
.act-switch a[aria-current="page"] { background: var(--foreground); color: var(--background); }
@media (max-width: 1480px) { .nav-links li.opt { display: none; } }
.brand, .act-switch { flex: none; }
.nav-links a, .nav-cta .btn { white-space: nowrap; }
@media (max-width: 860px) { .nav .act-switch { display: none; } }
.mobile-menu .act-switch { display: flex; margin: 0 0 8px; }
.mobile-menu .act-switch a { flex: 1; justify-content: center; border-bottom: 0; min-height: 40px; }

/* ---------- Pecuária ---------- */
.pasto { position: relative; }
.pasto > svg { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(36,39,43,.16); }
.pq-l text { font: 600 15px var(--mono); fill: var(--foreground); text-anchor: middle; }
.pq-ndvi text { font: 500 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.pq-tag rect { fill: rgba(245,244,240,.94); stroke: rgba(36,39,43,.12); }
.pq-tag text { font: 600 12.5px var(--mono); fill: var(--foreground); }
.pq-tag .u { fill: var(--muted); font-weight: 500; font-size: 11px; }
.pq-cur { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.gmd-card { position: absolute; left: -24px; bottom: 34px; width: 210px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -20px rgba(36,39,43,.28); }
.gmd-card svg { width: 100%; height: 30px; margin: 8px 0 2px; }
.gmd-card .kpi-value { font-size: 26px; }
.gb { fill: var(--primary); }
.gb-s { fill: var(--wheat); }
.gb-v { font: 600 14px var(--mono); fill: var(--primary); text-anchor: middle; }
.gb-v.w { fill: var(--warning); }
.gmd-lbl text { font: 600 13px var(--mono); fill: var(--primary); text-anchor: middle; }
.gmd-lbl text.w { fill: var(--warning); }
.hbars { display: grid; gap: 8px; }
.hbars div { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.hbars i { display: block; height: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--primary) calc(var(--v) * 100%), var(--surface-elevated) 0); }
.hbars b { font-weight: 500; color: var(--foreground); text-align: right; font-size: 13px; }
.hbars .warn i { background: linear-gradient(90deg, var(--wheat) calc(var(--v) * 100%), var(--surface-elevated) 0); }
.hbars .warn b { color: var(--warning); }
.car { width: 100%; height: auto; }
.car-l { stroke: var(--border); stroke-width: 1.5; }
.car-m { fill: rgba(93,105,118,.45); }
.car-c { fill: rgba(210,174,106,.55); }
.car-a-l { stroke: var(--primary); stroke-width: 2.5; }
.car-t { font: 500 12px var(--mono); fill: var(--foreground); }
.car-s { font: 500 11px var(--mono); fill: var(--muted); }
.lac { width: 100%; height: auto; }
.ilp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.season { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.season-m, .season-r { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.season-m { margin-top: 16px; font-size: 11px; color: var(--muted); text-align: center; }
.season-r { margin-top: 8px; }
.season-r span { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; }
.season-r .icon { width: 16px; height: 16px; flex: none; }
.season-r .soja { background: rgba(210,174,106,.45); }
.season-r .pasto { background: rgba(78,91,52,.22); }
.season-n { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.mod-base { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1040px) { .gmd-card { left: 12px; } }
@media (max-width: 860px) { .ilp { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .gmd-card { position: static; width: auto; margin-top: 12px; }
  .season { padding: 16px; }
  .season-r span { font-size: 11.5px; padding: 0 8px; }
  .season-m span:nth-child(even) { visibility: hidden; }
}

/* ---------- Home: escolha da atividade ---------- */
.home-hero { padding: 72px 0 32px; position: relative; overflow: hidden; }
.home-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; max-width: 14ch; }
.home-hero h1 em { font-style: normal; color: var(--primary); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 32px; }
.path { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 32px; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--foreground); border: 1px solid var(--border); background: #E3E1DA; isolation: isolate; }
.path .bg { position: absolute; inset: 0; z-index: -1; }
.path .bg img, .path .bg svg { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.path .bg img { filter: saturate(.65) contrast(.95); }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(236,235,230,.97) 0%, rgba(236,235,230,.86) 38%, rgba(236,235,230,0) 72%); }
.path:hover .bg img, .path:hover .bg svg { transform: scale(1.03); }
.path .k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.path h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 12px; max-width: 16ch; }
.path p { color: var(--muted); margin: 10px 0 0; max-width: 42ch; }
.path .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; }
.path .go .icon { transition: transform 200ms var(--ease); }
.path:hover .go .icon { transform: translateX(4px); }
.path:hover { border-color: var(--border-strong); }
.path .nums { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.path .nums span { font: 500 13px var(--mono); padding: 6px 10px; border-radius: var(--radius-sm); background: rgba(245,244,240,.9); border: 1px solid var(--border); }
.both { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; margin-bottom: 96px; border-radius: var(--radius-lg); background: var(--foreground); color: #ECEBE6; text-decoration: none; }
.both .ilp-ic { display: flex; gap: 6px; color: var(--wheat); }
.both b { font-size: 18px; }
.both p { margin: 4px 0 0; color: #A3A69E; font-size: 15px; }
.both .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--wheat); white-space: nowrap; }
.base-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-top: 48px; }
.base-strip div { padding: 22px 24px; border-right: 1px solid var(--border); }
.base-strip div:last-child { border-right: 0; }
.base-strip .icon { color: var(--primary); }
.base-strip b { display: block; margin-top: 12px; font-weight: 600; }
.base-strip span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 380px; }
  .path::after { background: linear-gradient(0deg, rgba(236,235,230,.97) 0%, rgba(236,235,230,.9) 62%, rgba(236,235,230,.2) 100%); }
  .both { grid-template-columns: 1fr; gap: 12px; }
  .base-strip { grid-template-columns: 1fr 1fr; }
  .base-strip div:nth-child(2) { border-right: 0; }
  .base-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) { .path { padding: 24px 20px; } .base-strip { grid-template-columns: 1fr; } .base-strip div { border-right: 0 !important; border-bottom: 1px solid var(--border); } .base-strip div:last-child { border-bottom: 0; } }
