/* Nellia — landing pública. Registro "brand": segue o idioma visual real do
   site da Nell Agroquímica (nellagroquimica.com.br) — Space Grotesk (display)
   + Inter (corpo), gradiente verde de marca, cards arredondados generosos.
   Deliberadamente separado de dashboard.css (registro "product", Fraunces+
   Karla) — são duas superfícies com propósitos diferentes na mesma marca. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/static/fonts/spacegrotesk-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/static/fonts/inter-variable-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --ink: #33422c;
  --ink-soft: #5a6653;
  --bg: #f3f1ef;
  --surface: #ffffff;
  --surface-tint: #eaf1e0;
  --border-hairline: rgba(51, 66, 44, 0.1);

  --brand-50: #c9e49d;
  --brand-400: #a3d869;
  --brand-600: #54a61d;
  --brand-gradient: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-400) 55%, var(--brand-600) 100%);
  /* --brand-600 sozinho só rende 2.7-3.1:1 como texto — falha WCAG AA (precisa
     4.5:1). Usar --brand-text pra qualquer texto/borda que precise ler como
     "verde de marca" (eyebrow, link, botão ghost); --brand-600 continua valendo
     só pra gradiente/decoração, nunca como cor de texto sozinha. */
  --brand-text: #357012;

  --shadow-card: 0 10px 30px rgba(84, 103, 42, 0.1);
  --radius-card: 26px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ea;
    --ink-soft: #b7c2af;
    --bg: #10160d;
    --surface: #182013;
    --surface-tint: #1c2618;
    --border-hairline: rgba(238, 242, 234, 0.1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* #357012 (claro) desapareceria num fundo escuro — troca pro stop médio
       do gradiente, que já bate >10:1 nos dois fundos escuros daqui. */
    --brand-text: var(--brand-400);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: min(92%, 72rem);
  margin-inline: auto;
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 3px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: transform 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--brand-gradient);
  color: #1a2914;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(84, 103, 42, 0.18); }

.btn-ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--brand-text);
  border: 1px solid color-mix(in srgb, var(--brand-text) 34%, transparent);
}
.btn-ghost:hover { background: var(--surface); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(4%, calc((100% - 72rem) / 2 + 1rem));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark img.brand-logo { height: 42px; width: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 4vw + 1rem, 5.5rem) 0 clamp(3rem, 5vw, 6rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: radial-gradient(60% 60% at 70% 20%, color-mix(in srgb, var(--brand-400) 20%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.25rem);
}
.hero .gradient-text {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero .lede {
  margin-top: 18px;
  max-width: 42ch;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.trust-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* ---------- Hero visual: voice-wave motif (SVG, geométrico, sem sketch) ---------- */

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 30rem;
  margin-inline: auto;
}
.hero-visual .blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-400) 24%, transparent), color-mix(in srgb, var(--brand-50) 38%, transparent));
}
.hero-visual .hero-photo {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

/* ---------- Sections ---------- */

section { padding: clamp(3rem, 6vw, 6rem) 0; }
.section-alt { background: var(--surface-tint); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; max-width: 55ch; }

/* ---------- Como funciona (sequência real, numeração justificada) ---------- */

.steps {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  background: var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.step .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand-text);
  line-height: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); max-width: 48ch; }

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; }
}

/* ---------- Benefícios ---------- */

.benefit-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}
.benefit-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #1a2914;
}
.benefit-card .icon svg { width: 24px; height: 24px; }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.benefit-card p { color: var(--ink-soft); }

/* ---------- Especialistas do ecossistema ---------- */

.specialist-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.specialist-card {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
}
.specialist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
  background: color-mix(in srgb, var(--brand-400) 16%, transparent);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  margin-bottom: 16px;
}
.specialist-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gradient);
}
.specialist-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.specialist-card p { color: var(--ink-soft); }

/* ---------- Dois caminhos ---------- */

.paths {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .paths { grid-template-columns: 1fr 1fr; }
}
.path-card {
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.path-card.primary {
  background: linear-gradient(160deg, var(--ink) 0%, #1f2b19 100%);
  color: #fff;
}
.path-card.primary .lede { color: rgba(255,255,255,0.75); }
.path-card.secondary {
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}
.path-card.secondary .lede { color: var(--ink-soft); }
.path-card h3 { font-size: 1.4rem; }
.path-card .lede { font-size: 0.98rem; max-width: 38ch; }
.path-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Formulário de interesse ---------- */

.lead-form {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: grid;
  gap: 16px;
  max-width: 34rem;
}
.lead-form .field { display: grid; gap: 6px; }
.lead-form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lead-form input {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
}
/* :user-invalid só marca depois que o usuário mexeu no campo (diferente de
   :invalid sozinho, que já é verdadeiro num campo required vazio antes de
   qualquer interação — mostraria borda vermelha na página recém-carregada). */
.lead-form input:user-invalid { border-color: #c0392b; }
.lead-form .field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.lead-form .field-checkbox input {
  min-height: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
}
.lead-form .field-checkbox label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-soft);
}
.lead-form .field-checkbox label a { color: var(--brand-text); text-decoration: underline; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.lead-form .form-note { font-size: 0.82rem; color: var(--ink-soft); }
.lead-form .form-status {
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 14px;
  display: none;
}
.lead-form .form-status.ok { display: block; background: color-mix(in srgb, var(--brand-text) 14%, transparent); color: var(--brand-text); }
.lead-form .form-status.error { display: block; background: rgba(192, 57, 43, 0.12); color: #c0392b; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-grid p { color: var(--ink-soft); font-size: 0.85rem; }
.footer-grid a { color: var(--ink-soft); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}
.reveal[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(16px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal="pending"] { opacity: 1; transform: none; }
}
