/* =============================================================
   AMS Soluções Digitais — Design System
   Base tipográfica e cromática derivada de "evolucaoupleads".
   Arquivo único compartilhado por todas as páginas (cache entre
   navegações). Sem dependências externas: fontes de sistema e
   ícones SVG inline.
   ============================================================= */

/* -------------------------------------------------------------
   1. TOKENS — paleta AMS Soluções Digitais
   Azul-marinho + verde neon + ciano, herdados da identidade
   original do site. Escuro é o padrão da marca; o claro existe
   como alternativa acessível, não como estado inicial.
   Todos os valores de texto foram medidos: >= 4.5:1 (WCAG AA).
   ------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* superfícies — navy da marca */
  --bg: #0a192f;
  --bg2: #112240;
  --bg3: #1d3459;
  --line: #23395c;

  /* texto sobre --bg */
  --text: #e6f1ff;    /* 15.4:1 */
  --muted: #8892b0;   /*  5.7:1 */
  --faint: #7c88a8;   /*  4.8:1 */

  /* azul AMS — estrutura, números, marcadores */
  --brand: #3d95ff;
  --brand-strong: #3d95ff;   /* 5.8:1 — seguro para texto pequeno */
  --brand-soft: #007bff1f;
  --brand-ink: #061223;

  /* verde neon + ciano — ação, CTA e IA */
  --ai: #4cea6f;             /* 11.2:1 */
  --ai-strong: #4cea6f;
  --ai2: #00d2d3;            /*  9.3:1 */
  --ai-soft: #4cea6f1a;
  --ai-ink: #06121f;

  /* semânticos */
  --ok: #4cea6f;
  --warn: #ffc247;
  --err: #ff4d4d;            /* 5.4:1 */

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgb(2 8 20 / 0.75);

  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 62px;
}

/* claro — recalculado sobre a mesma paleta, não é inversão automática */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg2: #ffffff;
  --bg3: #e8eef8;
  --line: #d5e0f0;
  --text: #0a192f;           /* 16.4:1 */
  --muted: #4a5a75;          /*  6.5:1 */
  --faint: #5d6d88;          /*  4.9:1 */
  --brand: #0056c7;
  --brand-strong: #0056c7;   /*  6.2:1 */
  --brand-soft: #0056c714;
  --brand-ink: #ffffff;
  --ai: #0b7433;             /*  5.5:1 */
  --ai-strong: #0b7433;
  --ai2: #097274;            /*  5.3:1 */
  --ai-soft: #0b743314;
  --ai-ink: #ffffff;
  --ok: #0b7433;
  --warn: #9a6100;
  --err: #c62828;            /*  5.2:1 */
  --shadow: 0 18px 50px -24px rgb(10 25 47 / 0.20);
}

/* mantido para quem chega com data-theme="dark" salvo do navegador */
:root[data-theme="dark"] { color-scheme: dark; }

/* -------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ai-soft); }

/* foco visível consistente — acessibilidade por teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
  border-radius: 4px;
}

/* âncoras não somem sob o header fixo */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ai); color: var(--ai-ink);
  padding: 12px 20px; border-radius: 0 0 10px 0;
  font: 700 14px/1 var(--f-sans);
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------
   3. LAYOUT
   ------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }
.wrap-wide { max-width: 1240px; }

section {
  position: relative;
  padding: clamp(52px, 7.5vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: 0; }
.lead-col { max-width: 820px; }

/* -------------------------------------------------------------
   4. TIPOGRAFIA
   ------------------------------------------------------------- */
.ai-text {
  background: linear-gradient(120deg, var(--ai), var(--ai2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ai-strong);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

h1, h2, h3, h4 { margin: 0; }

.h-xl {
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: .97; letter-spacing: -.04em; font-weight: 860;
  max-width: 15ch; text-wrap: balance;
}
.h-xl em { font-style: normal; }

h2, .h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.03; letter-spacing: -.03em; font-weight: 840;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0; max-width: 56ch;
  font-size: clamp(1.06rem, 1.9vw, 1.32rem); color: var(--muted);
}
.lede b { color: var(--text); font-weight: 650; }

.say {
  margin: 20px 0 0; max-width: 60ch; color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
}
.say b { color: var(--text); }

.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.kicker .num {
  font: 650 clamp(1.9rem, 4vw, 2.7rem)/1 var(--f-mono);
  letter-spacing: -.03em; color: transparent;
  -webkit-text-stroke: 1.2px var(--brand); text-stroke: 1.2px var(--brand);
}
.kicker .lbl {
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* -------------------------------------------------------------
   5. HEADER / NAVEGAÇÃO
   ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px clamp(20px, 5vw, 44px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo {
  height: 34px; width: auto; flex: none;
}
/* o "SOLUÇÕES DIGITAIS" do PNG é cinza #706F71 e some sobre o navy */
.brand-logo { filter: brightness(1.2) saturate(1.05); }
:root[data-theme="light"] .brand-logo { filter: none; }
.brand-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.brand-tag {
  font: 600 10.5px/1.25 var(--f-mono);
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.brand-tag b { color: var(--ai-strong); font-weight: 700; }
@media (max-width: 620px) { .brand-sep, .brand-tag { display: none; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font: 600 13.5px/1 var(--f-sans);
  color: var(--muted); padding: 10px 12px; border-radius: 9px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: var(--bg3); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg3); }

.nav-actions { display: flex; align-items: center; gap: 9px; }

.theme-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  color: var(--muted); background: var(--bg3);
  border: 1px solid var(--line); border-radius: 999px;
  transition: .2s;
}
.theme-btn:hover { color: var(--text); border-color: var(--ai); }
.theme-btn svg { width: 17px; height: 17px; }
/* escuro é o padrão: mostra o sol (= "mudar para claro") */
.theme-btn .i-sun { display: block; }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }

.nav-toggle {
  display: none; place-items: center;
  width: 38px; height: 38px; flex: none;
  color: var(--text); background: var(--bg3);
  border: 1px solid var(--line); border-radius: 999px;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px clamp(20px, 5vw, 44px) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 12px; font-size: 15.5px; }
  .nav .btn { margin-top: 10px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }

/* -------------------------------------------------------------
   6. BOTÕES
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  font: 700 14.5px/1 var(--f-sans); letter-spacing: -.01em;
  cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
  text-align: center;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-ai {
  background: linear-gradient(120deg, var(--ai), var(--ai2));
  color: var(--ai-ink);
  box-shadow: 0 10px 26px -12px var(--ai);
}
.btn-ai:hover { box-shadow: 0 14px 32px -12px var(--ai); }

.btn-brand { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 26px -12px var(--brand); }

.btn-ghost { background: var(--bg2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ai); }

.btn-wa { background: #1eb457; color: #fff; box-shadow: 0 10px 26px -12px #1eb457; }
.btn-wa:hover { box-shadow: 0 14px 32px -12px #1eb457; }

.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }

/* -------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, var(--ai-soft), transparent 66%);
  filter: blur(8px); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -260px;
  border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 68%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  padding-top: clamp(52px, 9vw, 108px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.ticker {
  margin-top: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 600 13.5px/1 var(--f-mono);
}
.ticker .tl { color: var(--faint); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; }
.ticker .tv { color: var(--ai-strong); min-height: 1.2em; transition: opacity .35s; }
.ticker .cur {
  display: inline-block; width: 9px; height: 1.05em; background: var(--ai);
  margin-left: 3px; vertical-align: -2px; animation: blink 1.05s step-end infinite;
  box-shadow: 0 0 8px var(--ai);
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ticker .cur { animation: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  font: 600 12.5px/1 var(--f-mono);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg2) 60%, transparent);
  color: var(--text);
}
.chip.ia { border-color: color-mix(in srgb, var(--ai) 45%, var(--line)); }
.chip.ia b { color: var(--ai-strong); }
.chip b { color: var(--brand-strong); }

/* -------------------------------------------------------------
   8. TRILHA DE IA (desktop)
   ------------------------------------------------------------- */
@media (min-width: 900px) {
  .stream { --sx: 24px; --sp: 74px; position: relative; padding-left: var(--sp); }
  .stream::before {
    content: ""; position: absolute; left: var(--sx); top: 12px; bottom: 12px; width: 2px;
    background: linear-gradient(180deg, transparent, var(--ai) 6%, var(--ai2) 94%, transparent);
    opacity: .5;
  }
  .stream > section::before {
    content: ""; position: absolute; left: calc(var(--sx) - var(--sp) - 4px);
    top: calc(clamp(52px, 7.5vw, 96px) + 14px);
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--ai);
    box-shadow: 0 0 0 4px var(--ai-soft), 0 0 18px 2px var(--ai);
  }
  @media (prefers-reduced-motion: no-preference) {
    .stream > section::before { animation: pulse 3.4s ease-in-out infinite; }
  }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--ai-soft), 0 0 12px 1px var(--ai); }
  50%      { box-shadow: 0 0 0 5px var(--ai-soft), 0 0 22px 4px var(--ai); }
}

/* -------------------------------------------------------------
   9. CARDS E GRIDS
   ------------------------------------------------------------- */
.surface { background: var(--bg2); }

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 600px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 17px 19px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card h3 { font-size: 1rem; font-weight: 720; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card .ic { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); flex: none; }

.versus { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
@media (min-width: 720px) { .versus { grid-template-columns: 1fr 1fr; gap: 16px; } }
.v-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--bg);
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.v-card .who { font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.v-card h3 { font-size: 1.3rem; letter-spacing: -.015em; font-weight: 760; }
.v-card p { margin: 0; color: var(--muted); font-size: .97rem; }
.v-card.market h3 { color: var(--muted); }
.v-card.ours {
  border-color: color-mix(in srgb, var(--ai) 55%, var(--line));
  background: linear-gradient(165deg, var(--ai-soft), var(--bg) 58%);
}
.v-card.ours .who { color: var(--ai-strong); }
.v-card.ours .glow {
  position: absolute; width: 200px; height: 200px; right: -60px; top: -70px;
  background: radial-gradient(circle, var(--ai-soft), transparent 70%); pointer-events: none;
}

/* lista de frentes */
.flist { display: flex; flex-direction: column; gap: 2px; margin-top: 32px; border-top: 1px solid var(--line); }
.fitem {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line); transition: .2s;
}
.fitem:hover { padding-left: 12px; padding-right: 12px; background: var(--bg2); border-radius: 12px; }
.fitem .fn {
  font: 650 15px/1 var(--f-mono); letter-spacing: .02em; color: transparent;
  background: linear-gradient(120deg, var(--ai), var(--ai2));
  -webkit-background-clip: text; background-clip: text; white-space: nowrap;
}
.fitem .ft { min-width: 0; }
.fitem .ft h4 { margin: 0 0 3px; font-size: 1.12rem; letter-spacing: -.01em; font-weight: 720; }
.fitem .ft p { margin: 0; color: var(--muted); font-size: .95rem; }
.fitem .fm {
  font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); padding: 6px 9px; border-radius: 7px; white-space: nowrap;
}
@media (max-width: 560px) { .fitem { grid-template-columns: auto 1fr; gap: 12px; } .fitem .fm { display: none; } }

/* destaque "a IA aqui" */
.ia-here {
  display: flex; gap: 14px; margin-top: 30px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ai) 45%, var(--line));
  background: linear-gradient(120deg, var(--ai-soft), transparent 60%);
}
.ia-here .spark {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ai), var(--ai2)); box-shadow: 0 0 18px -2px var(--ai);
}
.ia-here .spark svg { width: 18px; height: 18px; color: var(--ai-ink); }
.ia-here .txt { min-width: 0; }
.ia-here .txt .t { font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ai-strong); margin-bottom: 5px; }
.ia-here .txt p { margin: 0; font-size: .98rem; color: var(--text); }
.ia-here .txt p b { color: var(--ai-strong); }

/* números */
.stat { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.stat > div { display: flex; flex-direction: column; gap: 3px; }
.stat .v { font: 700 1.45rem/1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v.a { background: linear-gradient(120deg, var(--ai), var(--ai2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .k { font: 600 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* esteira */
.flow { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 30px; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.step { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
@media (min-width: 760px) {
  .flow .step { border-radius: 0; }
  .flow .step:first-child { border-radius: 13px 0 0 13px; }
  .flow .step:last-child { border-radius: 0 13px 13px 0; }
  .flow .step + .step { border-left: 0; }
  .flow .step::after {
    content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    z-index: 2; color: var(--ai-strong); font-weight: 800; background: var(--bg); padding: 0 3px;
  }
  .flow .step:last-child::after { content: none; }
}
.step .s-ix { font: 600 11px/1 var(--f-mono); letter-spacing: .13em; color: var(--brand-strong); text-transform: uppercase; }
.step h4 { margin: 9px 0 4px; font-size: 1.04rem; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }

/* dores */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
@media (min-width: 640px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain {
  background: var(--bg2); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 13px; padding: 22px;
}
.pain h3 { font-size: 1.04rem; font-weight: 740; letter-spacing: -.01em; margin-bottom: 7px; }
.pain p { margin: 0; color: var(--muted); font-size: .93rem; }

/* fechamento */
.close { text-align: center; background: var(--bg2); }
.close .wrap { max-width: 760px; }
.close h2 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.close p { color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.24rem); margin-top: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.pill { font: 600 12px/1 var(--f-mono); padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); }
.pill.on { border-color: color-mix(in srgb, var(--ai) 55%, var(--line)); color: var(--ai-strong); }

/* -------------------------------------------------------------
   10. PREÇOS (certificado digital)
   ------------------------------------------------------------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg3); border: 1px solid var(--line); border-radius: 12px; margin-top: 30px; }
.tab {
  font: 700 13.5px/1 var(--f-sans); color: var(--muted);
  background: transparent; border: 0; padding: 11px 18px; border-radius: 9px; transition: .2s;
}
.tab[aria-selected="true"] { background: var(--bg2); color: var(--text); box-shadow: var(--shadow); }

.price-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: color-mix(in srgb, var(--ai) 55%, var(--line)); background: linear-gradient(170deg, var(--ai-soft), var(--bg2) 55%); }
.price-tag {
  position: absolute; top: 18px; right: 18px;
  font: 700 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand); color: var(--brand-ink); padding: 6px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 1.35rem; font-weight: 780; letter-spacing: -.02em; }
.price-card .desc { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.price-val { font: 800 2.3rem/1 var(--f-sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-val small { font: 600 .85rem/1 var(--f-mono); color: var(--faint); letter-spacing: .05em; }
.price-from { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.price-feats { display: flex; flex-direction: column; gap: 9px; margin: 20px 0 24px; flex-grow: 1; }
.price-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: .92rem; color: var(--muted); }
.price-feats svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--ok); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .lbl-field { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.field select, .field input, .field textarea {
  font: 500 14.5px/1.4 var(--f-sans);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px; width: 100%;
  transition: border-color .18s;
}
.field select:hover, .field input:hover, .field textarea:hover { border-color: var(--faint); }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { font-size: 12px; color: var(--faint); }
.field .err-msg { font-size: 12.5px; color: var(--err); font-weight: 600; }
.field.invalid select, .field.invalid input, .field.invalid textarea { border-color: var(--err); }

/* -------------------------------------------------------------
   11. FORMULÁRIO DE CAPTURA
   ------------------------------------------------------------- */
.lead-form {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; }
.form-consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--ai); }
.form-consent label { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-consent a { color: var(--ai-strong); text-decoration: underline; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* -------------------------------------------------------------
   12. FAQ
   ------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; max-width: 820px; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq details[open] { border-color: color-mix(in srgb, var(--ai) 40%, var(--line)); }
.faq summary {
  padding: 18px 52px 18px 20px; font-weight: 700; font-size: 15px;
  cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2px solid var(--ai-strong); border-bottom: 2px solid var(--ai-strong);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--bg3); }
.faq .a { padding: 0 20px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* -------------------------------------------------------------
   13. DEPOIMENTOS
   ------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
@media (min-width: 760px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.testi .stars { display: flex; gap: 2px; color: var(--warn); }
.testi .stars svg { width: 15px; height: 15px; }
.testi blockquote { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.6; }
.testi figcaption { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.testi .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--bg3); border: 1px solid var(--line);
  font: 700 13px/1 var(--f-mono); color: var(--ai-strong);
}
.testi .who b { display: block; font-size: .92rem; font-weight: 700; }
.testi .who span { font-size: .8rem; color: var(--faint); }

/* -------------------------------------------------------------
   14. RODAPÉ
   ------------------------------------------------------------- */
.site-footer { background: var(--bg2); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 68px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer-grid h4 { font: 600 11px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid p { font-size: 14px; color: var(--muted); }
.footer-grid a { transition: color .18s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { margin: 14px 0 0; max-width: 34ch; line-height: 1.6; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg3); border: 1px solid var(--line); color: var(--muted); transition: .2s;
}
.footer-social a:hover { color: var(--text); border-color: var(--ai); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
}
.footer-bottom small, .footer-bottom a { font: 500 12px/1.6 var(--f-mono); letter-spacing: .02em; color: var(--faint); }
.footer-bottom a:hover { color: var(--text); }

/* -------------------------------------------------------------
   15. WHATSAPP FLUTUANTE + COOKIES
   ------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: #1eb457; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgb(30 180 87 / .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; }
/* sobe quando o banner de cookies está visível — evita a colisão */
body.cookie-open .wa-float { bottom: 190px; }
@media (min-width: 760px) { body.cookie-open .wa-float { bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--bg2); border-top: 1px solid var(--line);
  box-shadow: 0 -14px 40px -20px rgb(0 0 0 / .55);
  padding: 18px clamp(20px, 5vw, 44px);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
.cookie-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cookie p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 62ch; line-height: 1.55; }
.cookie p a { color: var(--ai-strong); text-decoration: underline; }
.cookie-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* =============================================================
   16. COMPONENTES DA HOME
   ============================================================= */

/* --- Linha de montagem: o dado atravessando os módulos -------- */
.assembly {
  display: grid; gap: 10px; margin-top: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .assembly { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.station {
  position: relative; background: var(--bg2); border: 1px solid var(--line);
  border-radius: 13px; padding: 18px 17px; min-height: 132px;
  display: flex; flex-direction: column; gap: 5px;
  transition: border-color .5s, background .5s;
}
@media (min-width: 780px) {
  .assembly .station { border-radius: 0; }
  .assembly .station:first-child { border-radius: 13px 0 0 13px; }
  .assembly .station:last-child  { border-radius: 0 13px 13px 0; }
  .assembly .station + .station { border-left: 0; }
  /* seta com o dado passando adiante */
  .assembly .station:not(:last-child)::after {
    content: ""; position: absolute; right: -6px; top: 50%; z-index: 2;
    width: 11px; height: 11px; margin-top: -5.5px;
    border-top: 2px solid var(--line); border-right: 2px solid var(--line);
    transform: rotate(45deg); background: var(--bg);
    transition: border-color .5s;
  }
}
.station .st-tag {
  font: 700 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong);
}
.station b { font-size: .98rem; font-weight: 740; letter-spacing: -.01em; }
.station .st-meta { font: 500 11.5px/1.45 var(--f-mono); color: var(--faint); }
.station .st-ia {
  margin-top: auto; font: 600 10.5px/1.3 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ai-strong);
  display: flex; align-items: center; gap: 6px;
}
.station .st-ia::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ai); box-shadow: 0 0 8px var(--ai); flex: none;
}
/* estação ativa */
.station.on {
  background: linear-gradient(165deg, var(--ai-soft), var(--bg2) 62%);
  border-color: color-mix(in srgb, var(--ai) 55%, var(--line));
}
.station.on::after { border-color: color-mix(in srgb, var(--ai) 55%, var(--line)); }

/* --- Pilha fragmentada: o "antes" --------------------------- */
.stack-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px;
}
.tool {
  font: 600 12.5px/1 var(--f-mono);
  padding: 12px 15px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--bg2); color: var(--muted);
  white-space: nowrap;
}
.tool-gap {
  font: 700 16px/1 var(--f-mono); color: var(--err); user-select: none;
  padding: 0 2px;
}
.leak {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px;
}
@media (min-width: 700px) { .leak { grid-template-columns: repeat(3, 1fr); } }
.leak-item {
  border-left: 3px solid var(--err); padding: 4px 0 4px 16px;
}
.leak-item b { display: block; font-size: .95rem; font-weight: 720; margin-bottom: 3px; }
.leak-item span { font-size: .88rem; color: var(--muted); }

/* --- Tabela comparativa: chatbot × UpLeads ------------------- */
.compare { margin-top: 34px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .compare-head, .compare-row { grid-template-columns: 1.05fr 1fr 1.15fr; }
}
.compare-head {
  background: var(--bg3); border-bottom: 1px solid var(--line);
}
.compare-head div {
  padding: 14px 18px; font: 700 10.5px/1.3 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.compare-head div:last-child { color: var(--ai-strong); }
@media (max-width: 819px) { .compare-head { display: none; } }

.compare-row { border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 16px 18px; font-size: .93rem; }
.compare-row .c-case { color: var(--text); font-weight: 640; background: var(--bg2); }
.compare-row .c-bad { color: var(--muted); }
.compare-row .c-good {
  color: var(--text);
  background: linear-gradient(100deg, var(--ai-soft), transparent 85%);
  border-left: 2px solid color-mix(in srgb, var(--ai) 50%, transparent);
}
.compare-row .c-good b { color: var(--ai-strong); font-weight: 720; }
@media (max-width: 819px) {
  .compare-row > div { padding: 13px 16px; }
  .compare-row .c-case { border-bottom: 1px solid var(--line); }
  .compare-row .c-bad::before,
  .compare-row .c-good::before {
    display: block; font: 700 10px/1.4 var(--f-mono);
    letter-spacing: .13em; text-transform: uppercase; margin-bottom: 5px;
  }
  .compare-row .c-bad::before  { content: "Assistente comum"; color: var(--faint); }
  .compare-row .c-good::before { content: "No UpLeads"; color: var(--ai-strong); }
}

/* --- Explorador de módulos ---------------------------------- */
.mod {
  margin-top: 34px; display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 900px) { .mod { grid-template-columns: 260px 1fr; gap: 26px; } }

.mod-nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 899px) {
  .mod-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 6px; }
  .mod-nav::-webkit-scrollbar { height: 4px; }
  .mod-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
}
.mod-btn {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 11px;
  padding: 13px 14px; color: var(--muted); transition: .2s; white-space: nowrap;
}
.mod-btn:hover { color: var(--text); background: var(--bg2); }
.mod-btn[aria-selected="true"] {
  background: var(--bg2); border-color: color-mix(in srgb, var(--ai) 45%, var(--line));
  color: var(--text);
}
.mod-btn .m-ix {
  font: 700 10.5px/1 var(--f-mono); letter-spacing: .06em;
  color: var(--brand-strong); flex: none;
}
.mod-btn[aria-selected="true"] .m-ix { color: var(--ai-strong); }
.mod-btn .m-nm { font-size: 14px; font-weight: 680; }

.mod-panel {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(22px, 3.4vw, 30px);
}
.mod-panel[hidden] { display: none; }
.mod-panel h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.02em; font-weight: 800; }
.mod-panel > p { margin: 10px 0 0; color: var(--muted); font-size: .98rem; max-width: 58ch; }
.mod-feats { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
@media (min-width: 620px) { .mod-feats { grid-template-columns: 1fr 1fr; } }
.mod-feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .91rem; color: var(--muted); line-height: 1.5;
}
.mod-feats li::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; flex: none;
  background: var(--brand); margin-top: 7px;
}
.mod-feats li b { color: var(--text); font-weight: 680; }

/* --- Cartões por perfil de empresa --------------------------- */
.perfis { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
@media (min-width: 800px) { .perfis { grid-template-columns: repeat(3, 1fr); } }
.perfil {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 15px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s, transform .25s;
}
.perfil:hover { border-color: color-mix(in srgb, var(--ai) 50%, var(--line)); transform: translateY(-4px); }
.perfil .p-tag {
  font: 700 10px/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand-strong);
}
.perfil h3 { font-size: 1.12rem; font-weight: 760; letter-spacing: -.015em; }
.perfil p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.perfil .p-win {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font: 600 12px/1.5 var(--f-mono); color: var(--ai-strong);
}

/* --- Métricas grandes ---------------------------------------- */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { display: flex; flex-direction: column; gap: 5px; }
.metric .m-v {
  font: 800 clamp(1.9rem, 4vw, 2.7rem)/1 var(--f-sans);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--ai), var(--ai2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric .m-k { font: 600 11px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* --- Passos de início ---------------------------------------- */
.onboard { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: 32px; border-top: 1px solid var(--line); }
.ob {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.ob .ob-n {
  font: 700 13px/1 var(--f-mono); color: var(--ai-ink);
  background: linear-gradient(135deg, var(--ai), var(--ai2));
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
}
.ob .ob-t h4 { font-size: 1.04rem; font-weight: 720; letter-spacing: -.01em; margin-bottom: 2px; }
.ob .ob-t p { margin: 0; color: var(--muted); font-size: .91rem; }
.ob .ob-w {
  font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; white-space: nowrap;
}
@media (max-width: 620px) { .ob { grid-template-columns: auto 1fr; } .ob .ob-w { display: none; } }

/* -------------------------------------------------------------
   17. UTILIDADES
   ------------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 40px; }
.note {
  font: 500 12.5px/1.6 var(--f-sans); color: var(--faint);
  border-left: 2px solid var(--line); padding-left: 14px; margin-top: 22px; max-width: 60ch;
}

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .step:hover, .fitem:hover { transform: none; }
  .stream > section::before { animation: none; }
}

@media print {
  .topbar, .wa-float, .cookie, .theme-btn, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
