/* ═══════════════════════════════════════════════════════════════════════════
   ConfiaNoProjeto — design system

   Público: produtor, agrônomo e operador. Muitos leem no celular, no sol, com
   luva. Daí: contraste alto, texto grande, alvos de toque generosos e nenhuma
   decoração que não carregue informação.

   A paleta é de lavoura — verde profundo de comando, dourado de colheita como
   acento, neutros quentes de papel em vez de cinza azulado.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --green-950: #06241a;
  --green-900: #0b3626;
  --green-800: #114832;
  --green-700: #17543a;
  --green-600: #1a7a4f;
  --green-500: #23935f;
  --green-400: #46ad79;
  --green-100: #d8ede0;
  --green-050: #eef7f1;

  --gold-700: #9a5f12;
  --gold-600: #c07d1c;
  --gold-500: #e0a03a;
  --gold-300: #f0c884;
  --gold-100: #fbeed6;

  --red-600: #a8322a;
  --red-100: #fae3e0;
  --blue-700: #17557d;
  --blue-100: #e0eef7;

  --ink: #10231a;
  --ink-soft: #3a4d43;
  --muted: #6d7f75;
  --faint: #93a59a;
  --line: #e2e6e0;
  --line-strong: #cfd6cd;

  --surface: #ffffff;
  --surface-alt: #f5f6f2;
  --surface-sunk: #eceee8;
  --page: #f8f8f5;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(6, 36, 26, .06);
  --shadow-sm: 0 1px 2px rgba(6, 36, 26, .06), 0 2px 6px rgba(6, 36, 26, .05);
  --shadow-md: 0 2px 4px rgba(6, 36, 26, .05), 0 8px 20px rgba(6, 36, 26, .08);
  --shadow-lg: 0 4px 8px rgba(6, 36, 26, .06), 0 20px 48px rgba(6, 36, 26, .14);
  --ring: 0 0 0 3px color-mix(in srgb, var(--green-500) 28%, transparent);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  --header-h: 68px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green-100: #17392a;
    --green-050: #122a20;
    --gold-100: #33260f;
    --red-100: #331916;
    --blue-100: #12293a;

    --ink: #e9f0ea;
    --ink-soft: #b3c4b9;
    --muted: #87998d;
    --faint: #66776c;
    --line: #22302a;
    --line-strong: #2e3e36;

    --surface: #141d18;
    --surface-alt: #18231d;
    --surface-sunk: #101813;
    --page: #0b1210;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --green-100: #17392a;
  --green-050: #122a20;
  --gold-100: #33260f;
  --red-100: #331916;
  --blue-100: #12293a;
  --ink: #e9f0ea;
  --ink-soft: #b3c4b9;
  --muted: #87998d;
  --faint: #66776c;
  --line: #22302a;
  --line-strong: #2e3e36;
  --surface: #141d18;
  --surface-alt: #18231d;
  --surface-sunk: #101813;
  --page: #0b1210;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
}

/* ── base ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv05' 1, 'cv08' 1, 'ss03' 1;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.14;
  font-weight: 750;
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -.03em; }
h3 { font-size: 1.16rem; letter-spacing: -.018em; font-weight: 700; }
h4 { font-size: .95rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--green-600); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 5px; }
img { max-width: 100%; height: auto; }
hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

.container { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 740px; }
/* Menor que a viewport comum de desktop, para o conteúdo não encostar na
   borda em telas de 1440 px. */
.container-wide { max-width: 1320px; }

.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .8rem; }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.25rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green-700); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── cabeçalho ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 1.1rem; }

.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 800; font-size: 1.1rem; color: var(--ink);
  letter-spacing: -.035em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, var(--green-500), var(--green-800) 85%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 8px rgba(17, 72, 50, .32), inset 0 1px 0 rgba(255,255,255,.22);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand em { font-style: normal; color: var(--green-600); }

.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a {
  padding: .5rem .78rem; border-radius: 9px; color: var(--ink-soft);
  font-weight: 550; font-size: .935rem; white-space: nowrap;
  transition: background .14s, color .14s;
}
.nav a:hover { background: var(--surface-alt); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--green-600); background: var(--green-050); font-weight: 650; }
.nav .btn { margin-left: .35rem; }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: .7rem var(--gutter) 1.1rem; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .75rem; font-size: 1rem; }
  .nav .btn { width: 100%; justify-content: center; margin: .35rem 0 0; }
}

/* ── botões ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .62rem 1.3rem;
  border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--green-600), var(--green-700)); }

.btn-accent {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  color: #3a2408; box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-accent:hover { background: linear-gradient(180deg, var(--gold-600), var(--gold-700)); color: #fff; }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--muted); }

.btn-danger { background: transparent; color: var(--red-600); border-color: color-mix(in srgb, var(--red-600) 45%, transparent); }
.btn-danger:hover { background: var(--red-100); }

.btn-google { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-google:hover { background: var(--surface-alt); }
.btn-google svg { flex: none; }

.btn-sm { min-height: 36px; padding: .32rem .8rem; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: .85rem 1.9rem; font-size: 1.04rem; border-radius: 13px; }
.btn-block { width: 100%; }

.divisor {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.4rem 0; color: var(--faint); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em;
}
.divisor::before, .divisor::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── superfícies ─────────────────────────────────────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}
.card-tight { padding: 1.1rem 1.25rem; border-radius: var(--radius); }

/* Cartão é contêiner de interface, não seção de vitrine: título dentro dele
   não precisa da escala de display. Só filhos diretos, para não mexer nos
   títulos de .card-head nem nos dos planos. */
.card > h1 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem); }
.card > h2 { font-size: clamp(1.18rem, 1.08rem + .4vw, 1.38rem); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 1.12rem; }

.panel {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.2rem;
}

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }

.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.row-between { justify-content: space-between; }
.spacer { flex: 1; }

/* ── etiquetas ───────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .62rem; border-radius: 999px;
  font-size: .765rem; font-weight: 650; letter-spacing: .005em;
  background: var(--surface-alt); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag-green { background: var(--green-100); color: var(--green-700); border-color: transparent; }
.tag-amber { background: var(--gold-100); color: var(--gold-700); border-color: transparent; }
.tag-red { background: var(--red-100); color: var(--red-600); border-color: transparent; }
.tag-blue { background: var(--blue-100); color: var(--blue-700); border-color: transparent; }

:root[data-theme="dark"] .tag-green, :root[data-theme="dark"] .tag-amber,
:root[data-theme="dark"] .tag-blue, :root[data-theme="dark"] .tag-red { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag-green,
  :root:not([data-theme="light"]) .tag-amber,
  :root:not([data-theme="light"]) .tag-blue,
  :root:not([data-theme="light"]) .tag-red { color: var(--ink); }
}

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-boundary { background: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.dot-guidance { background: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }

/* ── formulários ─────────────────────────────────────────────────────────── */

.field { margin-bottom: 1.15rem; }
.field label, .label {
  display: block; margin-bottom: .38rem;
  font-weight: 650; font-size: .885rem; color: var(--ink); letter-spacing: -.005em;
}
.field .hint { margin: .35rem 0 0; font-size: .82rem; color: var(--muted); }
.required { color: var(--red-600); }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 11px; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: var(--ring);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  appearance: none; padding-right: 40px; background-repeat: no-repeat;
  background-position: right 14px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236d7f75' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}

.checkbox { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.checkbox input[type=checkbox] { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--green-600); }

.form-grid { display: grid; gap: 0 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ── avisos ──────────────────────────────────────────────────────────────── */

/* margin-top, e não o atalho: 'margin: 1.1rem 0 0' zera as laterais e mata
   o 'margin: 0 auto' que centraliza o .container. */
.flash-area { margin-top: 1.1rem; }
.alert {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .9rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface-alt);
  margin-bottom: .7rem; font-size: .94rem; box-shadow: var(--shadow-xs);
}
.alert > span:first-child {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.alert-success { background: var(--green-100); border-color: transparent; color: var(--green-800); }
.alert-error { background: var(--red-100); border-color: transparent; color: var(--red-600); }
.alert-warning { background: var(--gold-100); border-color: transparent; color: var(--gold-700); }
.alert-info { background: var(--blue-100); border-color: transparent; color: var(--blue-700); }

:root[data-theme="dark"] .alert-success, :root[data-theme="dark"] .alert-error,
:root[data-theme="dark"] .alert-warning, :root[data-theme="dark"] .alert-info { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert-success,
  :root:not([data-theme="light"]) .alert-error,
  :root:not([data-theme="light"]) .alert-warning,
  :root:not([data-theme="light"]) .alert-info { color: var(--ink); }
}
.alert ul { padding-left: 1.1rem; }

/* ── tabelas ─────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
th, td { padding: .8rem .95rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-weight: 650; font-size: .765rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); background: var(--surface-alt);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-alt); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── rodapé ──────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 5rem; padding: 3rem 0 2rem;
  border-top: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--green-600); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h4 {
  font-size: .755rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--faint); margin-bottom: .8rem; font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line);
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
  align-items: center; font-size: .85rem;
}

/* ── vitrine ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}
.hero::before {
  content: ''; position: absolute; inset: -40% 40% 40% -20%; z-index: 0;
  background: radial-gradient(ellipse at center, var(--green-050), transparent 68%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .755rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100);
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.15rem;
}
:root[data-theme="dark"] .eyebrow { color: var(--green-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--green-400); }
}

.hero h1 { margin-bottom: 1.1rem; }
.hero .lead {
  font-size: clamp(1.08rem, .99rem + .45vw, 1.28rem);
  color: var(--ink-soft); max-width: 35em; line-height: 1.58;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.9rem; }

/* Mock do produto: parece a tela, não um desenho abstrato. */
.hero-art {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .08);
}
.hero-art .mapa-area {
  position: relative; min-height: 340px; flex: 1; padding: 1.15rem;
  display: flex; flex-direction: column;
}
.hero-art svg.mapa {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* "meet" e não "slice": cortar o talhão deixava linhas-guia aparecendo
     fora da bordadura, que é exatamente o erro que o portal denuncia. */
}
.hero-art .caption {
  position: relative; margin: auto 0 0; font-size: .82rem;
  color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: .5rem;
}
.hero-chip {
  position: relative; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .13); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 650; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}

/* Cartão flutuante que mostra o diferencial dentro do mock. */
.hero-note {
  background: var(--surface); padding: .95rem 1.15rem;
  border-top: 1px solid var(--line);
  display: flex; gap: .75rem; align-items: flex-start;
}
/* Rodapé do painel, e não cartão flutuante: por cima do mapa ele tapava
   justamente a linha e o ponto A que o desenho serve para mostrar. */
.hero-note .mark {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold-100); color: var(--gold-700);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.hero-note b { display: block; font-size: .875rem; margin-bottom: .1rem; }
.hero-note span { font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* Faixa de números logo abaixo da dobra. */
.metrics {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.metrics div { background: var(--surface); padding: 1.15rem 1.25rem; }
.metrics b {
  display: block; font-size: 1.6rem; font-weight: 800;
  letter-spacing: -.035em; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metrics span { font-size: .82rem; color: var(--muted); }

.section { padding: clamp(3rem, 5.5vw, 5rem) 0; }
.section-head { max-width: 40em; margin-bottom: 2.4rem; }
.section-head p { font-size: 1.04rem; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }

/* Faixa escura para quebrar o ritmo da página. */
.band {
  background: linear-gradient(165deg, var(--green-900), var(--green-950));
  color: #e6f0ea; padding: clamp(3rem, 5.5vw, 4.5rem) 0;
}
.band h2, .band h3 { color: #fff; }
.band .muted, .band p { color: rgba(230, 240, 234, .78); }
.band .eyebrow { background: rgba(255, 255, 255, .12); color: #cfe6da; }
.band .card { background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .11); box-shadow: none; }
.band .card h3 { color: #fff; }
.band .card p { color: rgba(230, 240, 234, .76); }
.band .step p, .band .step h3 + p { color: rgba(230, 240, 234, .8); }
.band .section-head p { color: rgba(230, 240, 234, .78); }
.band a { color: var(--gold-300); }

.feature {
  padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
  background: var(--green-050); color: var(--green-600);
  display: grid; place-items: center;
  border: 1px solid var(--green-100);
}
.feature h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.feature p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* Passo a passo numerado. */
.steps { counter-reset: passo; display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-600); color: #fff;
  font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 3px 10px rgba(26, 122, 79, .3);
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ── preços ──────────────────────────────────────────────────────────────── */

.plan { display: flex; flex-direction: column; }
.plan .price {
  font-size: 2.6rem; font-weight: 820; letter-spacing: -.045em;
  margin: .45rem 0 0; line-height: 1; font-variant-numeric: tabular-nums;
}
.plan .price small { font-size: .92rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.35rem 0; flex: 1; }
.plan li { padding: .42rem 0 .42rem 1.75rem; position: relative; font-size: .94rem; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: .78rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231a7a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4L9.6 3.9'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan-featured {
  border-color: var(--green-500); box-shadow: var(--shadow-md); position: relative;
  outline: 2px solid color-mix(in srgb, var(--green-500) 22%, transparent);
  outline-offset: -1px;
}
.plan-featured::after {
  content: 'Melhor valor'; position: absolute; top: -12px; right: 20px;
  background: var(--green-600); color: #fff; font-size: .7rem; font-weight: 750;
  padding: .26rem .75rem; border-radius: 999px; letter-spacing: .045em;
  box-shadow: 0 3px 8px rgba(26, 122, 79, .35);
}

/* ── painel ──────────────────────────────────────────────────────────────── */

.page-head {
  padding: 2rem 0 1.4rem;
  display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between;
}
.page-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); margin: 0 0 .3rem; }
.page-head .sub { color: var(--muted); margin: 0; font-size: .945rem; }

.breadcrumb { font-size: .845rem; color: var(--faint); margin-bottom: .5rem; }
.breadcrumb a { color: var(--muted); }

.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.2rem; box-shadow: var(--shadow-xs);
}
.stat .value {
  font-size: 1.95rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  font-size: .745rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .09em; font-weight: 650; margin-bottom: .3rem;
}

.meter { height: 7px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; margin-top: .65rem; }
.meter span { display: block; height: 100%; background: var(--green-500); border-radius: 999px; transition: width .4s; }
.meter.warn span { background: var(--gold-500); }
.meter.full span { background: var(--red-600); }

.project-card {
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-500); }
.project-card h3 { margin: 0; font-size: 1.1rem; }
.project-card h3 a { color: var(--ink); }
.project-meta { display: grid; gap: .2rem; font-size: .875rem; color: var(--ink-soft); }
.project-meta b { color: var(--faint); font-weight: 650; }

.empty {
  text-align: center; padding: 3.5rem 1.5rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-xl);
  background: var(--surface);
}
.empty .icon { font-size: 2.4rem; margin-bottom: .6rem; opacity: .8; }
.empty h3 { margin-bottom: .4rem; font-size: 1.2rem; }
.empty p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.4rem; }

/* ── projeto: mapa + árvore ──────────────────────────────────────────────── */

.project-layout { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 1040px) { .project-layout { grid-template-columns: minmax(390px, 480px) 1fr; } }
@media (min-width: 1320px) { .project-layout { grid-template-columns: minmax(430px, 520px) 1fr; } }

#map {
  height: 460px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface-sunk);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1040px) { #map { height: 600px; position: sticky; top: calc(var(--header-h) + 18px); } }

.tree { list-style: none; margin: 0; padding: 0; }
.tree-group + .tree-group { margin-top: 1.15rem; }
.tree-group > .tree-head {
  display: flex; align-items: center; gap: .55rem;
  font-size: .755rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .45rem 0;
}
.tree-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.tree-item:hover { background: var(--surface-alt); }
.tree-item.selected { background: var(--green-050); border-color: var(--green-100); }
.tree-item .name { flex: 1; min-width: 0; font-size: .925rem; }
.tree-item .name b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-item .name span { font-size: .775rem; color: var(--muted); }
.tree-item input[type=checkbox] { width: 19px; height: 19px; accent-color: var(--green-600); flex: none; }

.file-row {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.file-row:last-child { border-bottom: none; }
.file-row .info { flex: 1; min-width: 0; }
.file-row .fname { font-weight: 620; font-size: .93rem; word-break: break-word; }

.dropzone {
  display: block; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 2.1rem 1.25rem; text-align: center; background: var(--surface-alt);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--green-500); background: var(--green-050); }
.dropzone .icon { font-size: 1.7rem; color: var(--green-600); }
.dropzone strong { display: block; margin-top: .35rem; }
.dropzone p { margin: .45rem 0 0; color: var(--muted); font-size: .89rem; }

/* ── diálogo ─────────────────────────────────────────────────────────────── */

dialog.modal {
  border: none; border-radius: var(--radius-xl); padding: 0;
  width: min(780px, calc(100vw - 28px)); max-height: min(88vh, 940px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog.modal::backdrop { background: rgba(6, 36, 26, .6); backdrop-filter: blur(3px); }
.modal-head {
  padding: 1.35rem 1.6rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.modal-head h2 { margin: 0; font-size: 1.22rem; }
.modal-body { padding: 1.35rem 1.6rem; overflow-y: auto; max-height: 58vh; }
.modal-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.modal-foot {
  padding: 1.05rem 1.6rem; border-top: 1px solid var(--line);
  display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap;
  align-items: center; background: var(--surface-alt);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-close {
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  cursor: pointer; color: var(--muted); padding: .1rem .45rem; border-radius: 8px;
}
.modal-close:hover { background: var(--surface-alt); color: var(--ink); }

.format-option {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem .95rem; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; margin-bottom: .55rem; transition: border-color .14s, background .14s;
}
.format-option:hover { background: var(--surface-alt); }
.format-option.selected { border-color: var(--green-500); background: var(--green-050); box-shadow: var(--ring); }
.format-option input { margin-top: 3px; accent-color: var(--green-600); width: 18px; height: 18px; flex: none; }
.format-option .t { font-weight: 650; font-size: .94rem; display: block; }
.format-option .d { font-size: .83rem; color: var(--muted); display: block; }
.format-option.unavailable { opacity: .5; cursor: not-allowed; }

/* ── base de conhecimento ────────────────────────────────────────────────── */

.kb-layout { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 940px) { .kb-layout { grid-template-columns: 220px 1fr; } }

.kb-nav { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--header-h) + 16px); }
.kb-nav a { display: block; padding: .55rem .8rem; border-radius: 9px; color: var(--ink-soft); font-size: .925rem; }
.kb-nav a:hover { background: var(--surface-alt); text-decoration: none; }
.kb-nav a.active { background: var(--green-050); color: var(--green-700); font-weight: 650; }

.article-card {
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.article-card h3 { margin: 0; font-size: 1.05rem; }
.article-card h3 a { color: var(--ink); }
.article-card p { margin: 0; font-size: .91rem; color: var(--ink-soft); }

.prose { max-width: 70ch; font-size: 1.05rem; line-height: 1.72; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose h3 { margin-top: 1.7rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose img { border-radius: var(--radius); }
.prose code {
  font-family: var(--mono); font-size: .87em;
  background: var(--surface-alt); padding: .16em .42em; border-radius: 6px;
  border: 1px solid var(--line);
}
.prose pre {
  background: var(--surface-sunk); padding: 1.05rem; border-radius: var(--radius);
  overflow-x: auto; border: 1px solid var(--line);
}
.prose pre code { background: none; padding: 0; border: none; }
.prose blockquote {
  margin: 1.4rem 0; padding: .6rem 0 .6rem 1.2rem;
  border-left: 3px solid var(--green-500); color: var(--ink-soft);
}
.prose table { margin: 1.4rem 0; font-size: .95rem; }
.prose strong { font-weight: 680; }

.paywall {
  margin-top: 1.8rem; padding: 2.4rem 1.6rem; text-align: center;
  border: 1px solid var(--green-100); border-radius: var(--radius-xl);
  background: linear-gradient(170deg, var(--green-050), var(--surface));
  box-shadow: var(--shadow-sm);
}
.paywall h3 { margin-bottom: .45rem; font-size: 1.25rem; }
.paywall p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.4rem; }

/* ── pagamento ───────────────────────────────────────────────────────────── */

.pix-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .pix-grid { grid-template-columns: 290px 1fr; } }
.pix-qr {
  background: #fff; padding: 1rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pix-qr img { display: block; width: 100%; }
.pix-code {
  font-family: var(--mono); font-size: .76rem; word-break: break-all;
  background: var(--surface-sunk); padding: .9rem; border-radius: 11px;
  border: 1px solid var(--line); max-height: 140px; overflow-y: auto;
  color: var(--ink-soft);
}
.pix-status { display: flex; align-items: center; gap: .65rem; font-weight: 620; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2.5px solid var(--line-strong); border-top-color: var(--green-600);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.5s; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .feature:hover, .project-card:hover, .article-card:hover { transform: none; }
}

/* ── impressão ───────────────────────────────────────────────────────────── */

@media print {
  .site-header, .site-footer, .btn, .flash-area, .hero-art { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ── cadastro hierárquico ────────────────────────────────────────────────── */

.hier-nome { font-size: 1.15rem; margin: 0; }

.hier-fazenda {
  margin-top: .9rem; padding: .85rem 1rem;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.hier-fazenda + .hier-fazenda { margin-top: .6rem; }
.hier-icone { color: var(--muted); flex: none; }

.hier-talhoes { list-style: none; margin: .65rem 0 0; padding: 0; }
.hier-talhoes li {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .45rem .6rem; border-radius: 9px;
}
.hier-talhoes li:hover { background: var(--surface); }
.hier-talhoes li + li { margin-top: .1rem; }
.hier-talhao-nome { font-weight: 600; font-size: .93rem; }
.hier-talhoes li::before {
  content: ''; width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--green-400);
}

/* ── rascunho de envio (projeto novo a partir do arquivo) ────────────────── */

.draft-lista { display: grid; gap: .5rem; }

.draft-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .8rem .95rem; border-radius: var(--radius);
  background: var(--surface-alt); border: 1px solid var(--line);
}
.draft-item .info { flex: 1; min-width: 0; }
.draft-item .fname { font-weight: 620; font-size: .93rem; word-break: break-word; }

.draft-icone {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
  background: var(--green-100); color: var(--green-700);
}
.draft-item:has(.tiny[style*="red"]) .draft-icone,
.draft-icone.erro { background: var(--red-100); color: var(--red-600); }

/* A etiqueta "lido do arquivo" fica ao lado do rótulo, não abaixo dele. */
.field label .tag { margin-left: .4rem; vertical-align: middle; font-weight: 650; }

/* Projeto ainda sem geometria: o envio é a única coisa a fazer, então ocupa a
   largura toda em vez de ficar espremido na coluna do conteúdo. */
.projeto-vazio .dropzone-grande { padding: 3rem 1.5rem; }
.projeto-vazio .dropzone-grande .icon { font-size: 2.2rem; }
.projeto-vazio .dropzone-grande strong { font-size: 1.05rem; margin-top: .5rem; }
.project-layout-vazio { grid-template-columns: 1fr; }
@media (min-width: 1040px) { .project-layout-vazio { grid-template-columns: 1fr; } }

/* Envio com vários talhões: a escolha entre um projeto por talhão e tudo
   junto precisa ficar visível antes do formulário. */
.lote {
  padding: 1.15rem 1.25rem; border-radius: var(--radius);
  background: var(--green-050); border: 1px solid var(--green-100);
}
.lote h3 { font-size: 1.02rem; }
.lote table { font-size: .9rem; }

/* ── árvore hierárquica do projeto ───────────────────────────────────────── */

.arvore, .arvore ul { list-style: none; margin: 0; padding: 0; }
.arvore ul { margin-left: .85rem; padding-left: .75rem; border-left: 1px solid var(--line); }

.no + .no { margin-top: .25rem; }

.no-cabeca {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .5rem; border-radius: 9px; cursor: pointer;
}
.no-cabeca:hover { background: var(--surface-alt); }
.no-cabeca input[type=checkbox] {
  width: 18px; height: 18px; min-height: 0; flex: none; accent-color: var(--green-600);
}
.no-icone { color: var(--muted); flex: none; }
.no-nome { font-weight: 620; font-size: .92rem; }

.no-produtor > .no-cabeca .no-nome { font-size: .95rem; font-weight: 700; }
.no-talhao > .no-cabeca .no-nome { font-weight: 600; color: var(--green-700); }
:root[data-theme="dark"] .no-talhao > .no-cabeca .no-nome { color: var(--green-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .no-talhao > .no-cabeca .no-nome { color: var(--green-400); }
}

.arvore .tree-item { padding: .4rem .5rem; }
.arvore .tree-item .name b { font-weight: 550; }

/* Cabeçalho de grupo dentro do diálogo de exportação. */
.tree-head-grupo {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  padding: .7rem .5rem .25rem; border-top: 1px solid var(--line);
  margin-top: .35rem;
}
.tree-head-grupo:first-child { border-top: none; margin-top: 0; padding-top: .25rem; }

/* Talhão recolhível: um pendrive traz centenas de linhas por talhão, e abrir
   tudo de uma vez deixa a página inutilizável. */
.no-talhao > details > summary { list-style: none; }
.no-talhao > details > summary::-webkit-details-marker { display: none; }
.no-talhao > details > summary::before {
  content: '▸'; color: var(--muted); font-size: .7rem;
  transition: transform .12s; display: inline-block; flex: none;
}
.no-talhao > details[open] > summary::before { transform: rotate(90deg); }

/* Ações de cada nó da árvore: discretas até o mouse chegar perto. */
.no-cabeca { position: relative; }
/* As ações flutuam sobre a direita do nó em vez de disputar espaço com o
   nome: numa coluna estreita elas empurravam a contagem para outra linha e
   vazavam do cartão. */
.no-acoes {
  display: flex; gap: .3rem;
  position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  /* Visíveis de leve: escondidas até o hover, ninguém descobre que existem. */
  opacity: .45; transition: opacity .12s;
  background: var(--surface); padding-left: .5rem;
  box-shadow: -8px 0 8px -2px var(--surface);
  border-radius: 8px;
}
.no-cabeca { padding-right: .4rem; }
.no-cabeca:hover .no-acoes,
.no-cabeca:focus-within .no-acoes { opacity: 1; }
@media (hover: none) { .no-acoes { position: static; transform: none;
                                    opacity: 1; box-shadow: none;
                                    flex-wrap: wrap; margin-left: auto; } }

.no-cabeca .tiny { white-space: nowrap; }
.no-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-mini {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 7px; padding: .12rem .45rem;
  font: inherit; font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; white-space: nowrap;
}
.btn-mini:hover { background: var(--green-050); border-color: var(--green-500);
                  color: var(--green-700); }

.categoria { margin: .35rem 0 .35rem 1.6rem; }
.categoria-nome {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: .3rem 0 .15rem;
}
.categoria .tree { margin-left: 0; padding-left: 0; border-left: none; }

/* Barra de seleção da árvore. */
.selecao {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  padding: .5rem .6rem; margin-bottom: .6rem;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: 10px;
}
.selecao-resumo {
  font-size: .8rem; font-weight: 650; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.selecao-sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 .2rem; }

/* ── progresso de envio e importação ─────────────────────────────────────── */

.progresso {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 36, 26, .45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: var(--gutter);
}
.progresso[hidden] { display: none; }

.progresso-caixa {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.5rem 1.65rem; width: min(440px, 100%);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.progresso-fase { font-weight: 700; font-size: 1.02rem; margin-bottom: .75rem; }
.progresso-caixa .meter { height: 9px; }
.progresso-detalhe {
  margin-top: .6rem; font-size: .85rem; color: var(--muted);
  font-variant-numeric: tabular-nums; min-height: 1.2em;
}
