/* ───────────────────────────────────────────────────────────────
   ai-first — Landing page styles
   Built on the lampagos design-system tokens (ds/styles.css).
   Storm-dark dev console · one electric lightning-yellow strike.
   ─────────────────────────────────────────────────────────────── */

/* ── Tweakable knobs (Tweaks panel writes these) ───────────────── */
:root {
  --tw-accent-h: 95;          /* lightning yellow hue */
  --tw-accent-c: 0.19;
  --tw-accent-l: 0.84;
  --strike: oklch(var(--tw-accent-l) var(--tw-accent-c) var(--tw-accent-h));
  --strike-hi: oklch(calc(var(--tw-accent-l) + 0.04) calc(var(--tw-accent-c) - 0.02) var(--tw-accent-h));
  --strike-dim: oklch(0.62 calc(var(--tw-accent-c) - 0.05) var(--tw-accent-h));
  --strike-ink: oklch(0.19 0.02 var(--tw-accent-h));
  --strike-glow: oklch(var(--tw-accent-l) var(--tw-accent-c) var(--tw-accent-h) / 0.16);

  --pad-scale: 1;             /* density tweak */
  --bg-dots: 1;               /* 0/1 dot grid */
  --bg-glow: 1;               /* 0/1 hero glow */

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── Nav metrics ───────────────────────────────────────────────
     A nav é a única faixa da landing cuja largura é a SOMA de textos
     traduzíveis (marca + toggle + login + CTA). Em PT os rótulos são
     15-20% mais longos que em EN, então o pior caso real é PT em 320px.
     Estes tokens existem para que a variante compacta seja medida, e não
     um punhado de números soltos dentro da media query. Ver a media query
     `--bp-nav-compact` mais abaixo. */
  --nav-gap:            var(--space-8);   /* 32px — desktop, entre marca e direita */
  --nav-gap-compact:    var(--space-2);   /*  8px — mobile estreito */
  --nav-right-gap:      var(--space-3);   /* 12px */
  --nav-right-gap-compact: var(--space-2);/*  8px */
  --nav-cta-pad:        var(--space-4);   /* 16px — .btn--sm padrão */
  --nav-cta-pad-compact: var(--space-3);  /* 12px */
  /* Breakpoint da nav. CSS não aceita var() em `@media`, então o valor é
     repetido literalmente na regra; este token é a documentação canônica do
     número e o que qualquer outro cálculo deve referenciar.
       --bp-nav-compact  cai o eyebrow e o login; gaps encolhem.
     Veio de medição em navegador (PT, o pior caso), não de palpite. Um segundo
     degrau "só o raio" chegou a ser previsto e NÃO existe: com este aqui, PT em
     320px já fecha em scrollWidth == innerWidth, então não há regra para ele. */
  --bp-nav-compact: 420px;
  /* Segundo degrau, acima do compacto: abaixo dele a TIRA DE LINKS some inteira
     e a barra fica marca + idioma + login + CTA. Era 720px com quatro links;
     com a entrada de `/recursos` a tira passou de 268px para 355px em PT, e o
     primeiro viewport em que ela fecha sem barra horizontal virou 761. Também
     medido em navegador, também em PT, também o pior caso. */
  --bp-nav-links: 760px;

  /* storm surfaces (dark-only landing) */
  --ink:        oklch(0.135 0.016 265);
  --ink-2:      oklch(0.165 0.016 265);
  --surf:       oklch(0.185 0.014 265);
  --surf-2:     oklch(0.215 0.014 265);
  --line:       oklch(0.27 0.012 265);
  --line-soft:  oklch(0.235 0.013 265);
  --fg:         oklch(0.96 0.004 265);
  --fg-2:       oklch(0.80 0.006 265);
  --muted:      oklch(0.66 0.008 265);
  --faint:      oklch(0.50 0.009 265);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-level storm field: dot grid + faint vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--bg-dots);
  background-image: radial-gradient(oklch(0.5 0.01 265 / 0.45) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% -8%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% -8%, #000 35%, transparent 78%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--strike); color: var(--strike-ink); }

.mono { font-family: var(--font-mono); }

/* ── Layout ────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: calc(96px * var(--pad-scale)); position: relative; z-index: 1; }
.section--tight { padding-block: calc(64px * var(--pad-scale)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--strike-dim);
}
.eyebrow::before { content: ""; width: 14px; height: 1px; background: var(--strike-dim); opacity: 0.7; }

.h-sec {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.08; margin: 16px 0 0; text-wrap: balance;
}
.h-sec em { font-style: normal; color: var(--strike); }
.sec-lead { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: 56ch; margin: 16px 0 0; line-height: 1.55; text-wrap: pretty; }
.sec-head { max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s, transform .12s, box-shadow .2s;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--strike); color: var(--strike-ink); box-shadow: 0 0 0 1px oklch(0.84 0.19 var(--tw-accent-h) / 0.4), 0 8px 30px -8px var(--strike-glow); }
.btn--primary:hover { background: var(--strike-hi); transform: translateY(-1px); box-shadow: 0 0 0 1px oklch(0.84 0.19 var(--tw-accent-h) / 0.5), 0 12px 40px -10px oklch(0.84 0.19 var(--tw-accent-h) / 0.45); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: var(--surf); border-color: var(--faint); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.nav.is-stuck { background: oklch(0.135 0.016 265 / 0.78); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line-soft); }
/* `min-width: 0` em .nav__in e na marca é o que impede a nav de empurrar a
   página: sem ele, o min-content dos rótulos vira piso de largura do flex
   container e a viewport passa a rolar na horizontal. Com ele, a MARCA é
   quem cede (elipse), nunca o documento. */
.nav__in { display: flex; align-items: center; gap: var(--nav-gap); height: 64px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; min-width: 0; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--strike); display: grid; place-items: center; flex: none; box-shadow: 0 4px 16px -4px var(--strike-glow); }
.brand__mark svg { width: 19px; height: 19px; fill: var(--strike-ink); }
/* nowrap + eyebrow em bloco: "ai-first" numa linha, "by lampagos" na de baixo.
   Sem isso os três spans inline quebram em 3 linhas em telas estreitas. */
.brand__txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt .mut { color: var(--muted); }
.brand__txt .b { color: var(--strike); }
.brand__ey { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 1px; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--fg-2); transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--fg); background: var(--surf); }
.nav__spacer { flex: 1; }
/* `flex: none` — o bloco de ação (idioma + login + CTA) nunca é comprimido;
   quem absorve a falta de espaço é a marca, acima. */
.nav__right { display: flex; align-items: center; gap: var(--nav-right-gap); flex: none; }
.nav__login { font-size: 14px; color: var(--muted); text-decoration: none; padding: 0 4px; transition: color .15s; }
.nav__login:hover { color: var(--fg); }

/* lang toggle */
.lang {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--ink-2);
}
.lang button { all: unset; cursor: pointer; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); padding: 4px 9px; border-radius: var(--radius-full); transition: color .15s, background .15s; }
.lang button[aria-pressed="true"] { background: var(--surf-2); color: var(--fg); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(56px, 10vh, 104px); padding-bottom: 40px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; left: 50%; top: -120px; translate: -50% 0; z-index: 0;
  width: min(900px, 120vw); height: 620px; pointer-events: none; opacity: var(--bg-glow);
  background:
    radial-gradient(50% 50% at 50% 40%, oklch(0.84 0.19 var(--tw-accent-h) / 0.16), transparent 70%),
    radial-gradient(40% 60% at 50% 30%, oklch(0.55 0.12 280 / 0.18), transparent 72%);
  filter: blur(8px);
}
.hero__in { position: relative; z-index: 1; max-width: 920px; margin-inline: auto; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: var(--radius-full);
  background: oklch(0.18 0.014 265 / 0.7); font-size: 13px; color: var(--fg-2);
}
.hero__pill .tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--strike-ink); background: var(--strike); padding: 3px 8px; border-radius: var(--radius-full); }
.hero__pill .arr { color: var(--faint); }
.hero h1 {
  /* Hero em mono (--font-hero / --text-hero / --tracking-display, ds/tokens/
     typography.css) — decisão, não descuido: o produto é uma máquina que
     escreve software, mono é o vernáculo do assunto. Ver comentário no token. */
  font-family: var(--font-hero, var(--font-mono));
  font-size: var(--text-hero, clamp(36px, 6.4vw, 72px));
  line-height: 1.05; letter-spacing: var(--tracking-display, -0.035em);
  font-weight: 600; margin: 0; text-wrap: balance;
}
/* Marca-texto do hero. Era `white-space: nowrap` + um `::after` absoluto — e o
   nowrap não é opção: em PT o trecho grifado ("handoff humano") mede ~490px e o
   hero tem `overflow: hidden`, então em 320-414px a palavra saía CORTADA na tela
   (medido em navegador real, 2026-08-12). O grifo agora é um gradiente no próprio
   inline box com `box-decoration-break: clone`, que se repete em cada fragmento
   de linha — assim o texto pode quebrar e o grifo continua correto. */
.hero h1 .strike {
  color: var(--strike);
  background-image: linear-gradient(
    to top,
    transparent 0.06em,
    var(--strike-glow) 0.06em,
    var(--strike-glow) 0.48em,
    transparent 0.48em
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__sub { margin: 26px auto 0; max-width: 660px; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.hero__sub b { color: var(--fg); font-weight: 500; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.install {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 20px;
  padding: 9px 9px 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--ink-2); font-family: var(--font-mono); font-size: 14px; color: var(--fg-2);
}
.install .pmt { color: var(--strike-dim); }
.install .cmd { color: var(--fg); }
.install button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--surf); color: var(--muted); font-size: 12px; transition: background .15s, color .15s; }
.install button:hover { background: var(--surf-2); color: var(--fg); }
.install button svg { width: 13px; height: 13px; }
.install button.copied { color: var(--color-success); }

/* ── Terminal (hero demo) ──────────────────────────────────────── */
.term-wrap { position: relative; z-index: 1; max-width: 760px; margin: 56px auto 0; }
.term {
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.17 0.014 265), oklch(0.145 0.015 265));
  box-shadow: 0 40px 90px -40px oklch(0 0 0 / 0.8), 0 0 0 1px oklch(1 0 0 / 0.02) inset;
  overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: oklch(0.16 0.014 265 / 0.6); }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term__title { margin-left: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.term__title .dim { color: var(--faint); }
.term__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--color-success); }
.term__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 0 var(--color-success); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.7 0.15 150 / 0.5); } 70% { box-shadow: 0 0 0 6px oklch(0.7 0.15 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.7 0.15 150 / 0); } }
.term__body { padding: 18px 18px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; min-height: 320px; }
.tline { display: block; white-space: pre-wrap; word-break: break-word; }
.tline.is-hidden { opacity: 0; }
.t-pmt { color: var(--strike-dim); }
.t-cmd { color: var(--fg); }
.t-key { color: oklch(0.74 0.13 280); }
.t-str { color: oklch(0.78 0.13 150); }
.t-dim { color: var(--faint); }
.t-ok { color: var(--color-success); }
.t-warn { color: var(--color-warning); }
.t-chunk { display: flex; align-items: center; gap: 10px; padding: 5px 10px; margin: 3px 0; border: 1px solid var(--line-soft); border-left: 2px solid var(--strike); border-radius: 6px; background: oklch(0.18 0.014 265 / 0.5); }
.t-chunk .path { color: var(--fg-2); }
.t-chunk .score { margin-left: auto; color: var(--strike); }
.t-cursor { display: inline-block; width: 8px; height: 16px; background: var(--strike); vertical-align: text-bottom; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Trust strip ───────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: oklch(0.15 0.015 265 / 0.5); }
.trust__in { display: flex; align-items: center; gap: clamp(20px, 5vw, 60px); padding-block: 26px; flex-wrap: wrap; justify-content: center; }
.trust__hero { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.trust__hero svg { width: 22px; height: 22px; stroke: var(--strike); flex: none; }
.trust__hero b { color: var(--strike); font-weight: 600; }
.trust__sep { width: 1px; height: 26px; background: var(--line); }
.trust__items { display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; justify-content: center; }
.trust__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.trust__item svg { width: 15px; height: 15px; stroke: var(--faint); }

/* ── Problema ──────────────────────────────────────────────────── */
.prob { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.prob__body p { color: var(--fg-2); font-size: 17px; line-height: 1.6; margin: 18px 0 0; text-wrap: pretty; }
.prob__body p b { color: var(--fg); font-weight: 500; }
.prob__body p .strike { color: var(--strike); font-style: italic; }
.prob-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); overflow: hidden; }
.prob-card__h { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.prob-card__h .dot { width: 8px; height: 8px; border-radius: 50%; }
.prob-card__b { padding: 16px; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; }
.prob-card__b .q { color: var(--fg-2); }
.prob-card__b .bad { color: var(--color-danger); }
.prob-card__b .file { color: var(--faint); }
.prob-card__b .miss { background: oklch(0.6 0.2 27 / 0.14); color: oklch(0.74 0.16 27); padding: 0 4px; border-radius: 3px; }

/* ── RAG toggle ────────────────────────────────────────────────── */
.ragx { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--ink-2); overflow: hidden; }
.ragx__top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.ragx__q { font-family: var(--font-mono); font-size: 13.5px; color: var(--fg-2); }
.ragx__q .label { color: var(--faint); }
.ragx__switch { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.ragx__switch .lbl { font-size: 13px; font-weight: 500; color: var(--muted); transition: color .2s; }
.ragx__switch .lbl.off-on { color: var(--color-danger); }
.ragx__switch .lbl.on-on { color: var(--strike); }
.sw {
  position: relative; width: 60px; height: 32px; border-radius: var(--radius-full);
  border: 1px solid var(--line); background: var(--surf); cursor: pointer; padding: 0; transition: background .25s, border-color .25s;
}
.sw[aria-checked="true"] { background: oklch(0.84 0.19 var(--tw-accent-h) / 0.22); border-color: var(--strike); }
.sw__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted); transition: left .25s var(--ease), background .25s; }
.sw[aria-checked="true"] .sw__knob { left: 31px; background: var(--strike); box-shadow: 0 0 14px var(--strike-glow); }
.ragx__body { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); }
@media (max-width: 760px) { .ragx__body { grid-template-columns: 1fr; } }
/* `min-width: 0`: item de grid tem `min-width: auto`, ou seja, não encolhe abaixo
   do min-content do conteúdo (o <code> `white-space: pre` da citação). Como `.ragx`
   é `overflow: hidden`, o excesso não rolava a página — ele SUMIA: em 390px o painel
   media 397px dentro de um slot de ~280px e o nome do job vinha cortado na tela. */
.ragx__pane { background: var(--ink-2); padding: 22px; min-height: 260px; min-width: 0; transition: opacity .3s, filter .3s; }
.ragx__pane h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--font-mono); }
.ragx__pane.off h4 { color: var(--color-danger); }
.ragx__pane.on h4 { color: var(--strike); }
.ragx__pane h4 svg { width: 15px; height: 15px; }
/* identificadores longos ("RequeueFailedWebhooks") são o conteúdo real desta
   demo — precisam poder quebrar em vez de estourar o painel. */
.ragx__ans { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); overflow-wrap: anywhere; }
.ragx__ans .halluc { text-decoration: underline wavy oklch(0.66 0.19 27 / 0.6); text-underline-offset: 3px; }
.ragx__cite { margin-top: 14px; border: 1px solid var(--line-soft); border-left: 2px solid var(--strike); border-radius: 7px; background: oklch(0.84 0.19 var(--tw-accent-h) / 0.05); padding: 11px 13px; font-family: var(--font-mono); font-size: 12.5px; }
.ragx__cite .src { display: flex; align-items: center; gap: 7px; color: var(--strike-dim); margin-bottom: 7px; }
.ragx__cite .src svg { width: 13px; height: 13px; }
.ragx__cite code { color: var(--fg-2); display: block; white-space: pre; overflow-x: auto; }
.ragx__cite .ln { color: var(--faint); user-select: none; }
.ragx[data-on="false"] .ragx__pane.on { opacity: 0.32; filter: saturate(0.4); }
.ragx[data-on="true"]  .ragx__pane.off { opacity: 0.32; filter: saturate(0.4); }
.ragx__verdict { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; font-family: var(--font-mono); }
.ragx__pane.off .ragx__verdict { color: var(--color-danger); }
.ragx__pane.on .ragx__verdict { color: var(--color-success); }
.ragx__verdict svg { width: 15px; height: 15px; }

/* ── Prova numérica — número colado ao método, no MESMO card ─────────── */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); padding: 20px; }
.proof-card__claim { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--strike); letter-spacing: -0.01em; }
.proof-card__method { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ── RAG (colapsado) — link pra página dedicada ───────────────────────── */
.rag-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14.5px; font-weight: 500; color: var(--strike-dim); transition: color .15s; }
.rag-link:hover { color: var(--strike); }

/* ── Pricing (colapsado) — CTA único, sem matriz de tiers na home ─────── */
.plans-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ── Pipeline ──────────────────────────────────────────────────── */
.pipe-stage { position: relative; }
.pipe-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.pipe-track { height: 360vh; } /* scroll length driving the animation */
.pipe-svgwrap { width: 100%; max-width: 1000px; margin-inline: auto; }
.pipe-caption { max-width: 560px; margin: 0 auto; text-align: center; min-height: 110px; }
.pipe-caption .num { font-family: var(--font-mono); font-size: 12px; color: var(--strike-dim); letter-spacing: 0.1em; }
.pipe-caption h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 0; }
.pipe-caption p { color: var(--muted); font-size: 16px; margin: 10px 0 0; line-height: 1.5; text-wrap: pretty; }
.pipe-caption .tech { font-family: var(--font-mono); font-size: 12px; color: var(--strike); }
.pipe-caption .evidence { display: inline-flex; }
.pipe-progress { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pipe-progress span { width: 26px; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.pipe-progress span.done { background: var(--strike-dim); }
.pipe-progress span.active { background: var(--strike); box-shadow: 0 0 10px var(--strike-glow); }
.pipe-node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
.pipe-node-label.active { fill: var(--fg); }
.pipe-fallback-note { display: none; }
.pipe-example { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: 12.5px; color: var(--faint); text-wrap: pretty; }

/* ── Evidência do estágio (ds/tokens: --evidence-*, --agent-id-*) ────────
   Superfície REBAIXADA (poço) — log/artefato bruto, não decoração. O id de
   agente é a prova visual de D0149: três ids distintos na mesma trilha. */
.evidence {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 10px 14px; border: 1px solid var(--evidence-border); border-radius: var(--radius-md, 8px);
  background: var(--evidence-surface); text-align: left;
}
.evidence__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--evidence-meta); }
.evidence__val { font-family: var(--font-mono); font-size: 13px; color: var(--evidence-text); }
.agent-id { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12.5px; color: var(--agent-id-text); background: var(--agent-id-surface); padding: 3px 9px; border-radius: 6px; }

/* ── Bento ─────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.bento__card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); padding: 24px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.bento__card:hover { border-color: var(--faint); transform: translateY(-2px); box-shadow: 0 20px 50px -30px oklch(0 0 0 / 0.9); }
.bento__card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, var(--strike-glow), transparent 60%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.bento__card:hover::after { opacity: 1; }
.bento__mod { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; color: var(--strike-dim); margin-bottom: 14px; }
.bento__mod .chip { padding: 2px 7px; border: 1px solid var(--line); border-radius: var(--radius-full); }
.bento__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surf); border: 1px solid var(--line); margin-bottom: 16px; }
.bento__ic svg { width: 20px; height: 20px; stroke: var(--strike); }
.bento__card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.bento__card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; text-wrap: pretty; }
.bento__card.span3 { grid-column: span 3; }
.bento__card.span2 { grid-column: span 2; }
.bento__card.span4 { grid-column: span 4; }
.bento__card.span6 { grid-column: span 6; }
.bento__plans { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.bento__plans .pl { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: var(--radius-full); background: var(--surf); color: var(--muted); border: 1px solid var(--line-soft); }
.bento__plans .pl.all { background: oklch(0.84 0.19 var(--tw-accent-h) / 0.14); color: var(--strike); border-color: transparent; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento__card.span3, .bento__card.span2, .bento__card.span4, .bento__card.span6 { grid-column: span 2; } }

/* ── Graph ─────────────────────────────────────────────────────── */
.graph-sec { border-top: 1px solid var(--line-soft); }
.graph-stage { position: relative; height: clamp(440px, 56vh, 620px); margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, oklch(0.18 0.014 265), oklch(0.135 0.015 265)); }
.graph-stage canvas { display: block; width: 100%; height: 100%; }
.graph-poster { position: absolute; inset: 0; display: grid; place-items: center; background: oklch(0.135 0.015 265 / 0.6); backdrop-filter: blur(2px); transition: opacity .5s; z-index: 2; }
.graph-poster.hide { opacity: 0; pointer-events: none; }
.graph-poster button { display: inline-flex; align-items: center; gap: 9px; }
.graph-legend { position: absolute; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 1; pointer-events: none; }
.graph-legend .lg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.graph-legend .lg i { width: 9px; height: 9px; border-radius: 50%; }
.graph-tag { position: absolute; right: 16px; top: 14px; z-index: 1; font-family: var(--font-mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line-soft); padding: 4px 9px; border-radius: var(--radius-full); background: oklch(0.15 0.015 265 / 0.7); }

/* ── Pricing ───────────────────────────────────────────────────── */
.price-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--ink-2); }
.price-toggle button { all: unset; cursor: pointer; padding: 8px 18px; border-radius: var(--radius-full); font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 8px; }
.price-toggle button[aria-pressed="true"] { background: var(--surf-2); color: var(--fg); }
.price-toggle .save { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 7px; border-radius: var(--radius-full); background: oklch(0.7 0.15 150 / 0.18); color: var(--color-success); }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); padding: 24px; position: relative; }
.tier.pop { border-color: var(--strike); background: linear-gradient(180deg, oklch(0.84 0.19 var(--tw-accent-h) / 0.06), var(--ink-2) 40%); box-shadow: 0 30px 70px -40px var(--strike-glow); }
.tier__pop { position: absolute; top: -11px; left: 50%; translate: -50% 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--strike-ink); background: var(--strike); padding: 4px 12px; border-radius: var(--radius-full); white-space: nowrap; }
.tier__name { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.tier__desc { font-size: 13px; color: var(--muted); margin-top: 6px; min-height: 36px; line-height: 1.4; }
.tier__price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; min-height: 46px; }
.tier__price .amt { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.tier__price .per { font-size: 13px; color: var(--muted); }
.tier__price .soon { font-size: 22px; font-weight: 500; color: var(--fg-2); letter-spacing: -0.01em; }
.tier__price .soon-tag { font-family: var(--font-mono); font-size: 10px; color: var(--strike-dim); border: 1px dashed var(--line); padding: 2px 6px; border-radius: 5px; align-self: center; }
.tier__cta { margin-top: 18px; }
.tier__cta .btn { width: 100%; }
.tier__mods { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.tier__modrow { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tier__modrow svg { width: 16px; height: 16px; flex: none; }
.tier__modrow.has { color: var(--fg-2); }
.tier__modrow.has svg { stroke: var(--strike); }
.tier__modrow.lock { color: var(--faint); }
.tier__modrow.lock svg { stroke: var(--faint); }
.tier__modrow .mlabel { font-family: var(--font-mono); font-size: 12.5px; }
.price-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--faint); }
.price-note code { font-family: var(--font-mono); color: var(--muted); }

/* ── Testimonials ──────────────────────────────────────────────── */
.tw-grid { columns: 3; column-gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .tw-grid { columns: 2; } }
@media (max-width: 580px) { .tw-grid { columns: 1; } }
.tw-card { break-inside: avoid; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2); padding: 18px; }
.tw-card__h { display: flex; align-items: center; gap: 10px; }
.tw-card__av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--strike-ink); }
.tw-card__id { line-height: 1.25; }
.tw-card__id .nm { font-size: 14px; font-weight: 600; }
.tw-card__id .hd { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.tw-card p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 13px 0 0; text-wrap: pretty; }
.tw-card p .num { color: var(--strike); font-weight: 600; }
.tw-illus { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 40px auto 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-2); margin-bottom: 10px; overflow: hidden; }
.faq details[open] { border-color: var(--faint); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--strike); }
.faq .ans { padding: 0 20px 20px 52px; color: var(--muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.faq .ans code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surf); color: var(--fg-2); padding: 1px 5px; border-radius: 4px; }
.faq summary .qn { font-family: var(--font-mono); font-size: 12px; color: var(--strike-dim); flex: none; }

/* ── Final CTA ─────────────────────────────────────────────────── */
.final { position: relative; overflow: hidden; border-top: 1px solid var(--line-soft); }
.final__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: var(--bg-glow); background: radial-gradient(60% 80% at 50% 120%, oklch(0.84 0.19 var(--tw-accent-h) / 0.13), transparent 70%); }
.final__in { position: relative; z-index: 1; text-align: center; max-width: 720px; margin-inline: auto; }
.final h2 { font-size: clamp(30px, 5vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.final h2 em { font-style: normal; color: var(--strike); }
.final p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.final__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ── Footer ────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line-soft); padding-block: 44px; }
.foot__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot__brand { max-width: 280px; }
.foot__brand p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; }
.foot__cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.foot__col h5 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; font-weight: 500; }
.foot__col a { display: block; font-size: 14px; color: var(--fg-2); padding: 4px 0; transition: color .15s; }
.foot__col a:hover { color: var(--strike); }
/* Item de rodapé sem destino: texto, nunca <a href="#"> (D0690). */
.foot__col .foot__txt { display: block; font-size: 14px; color: var(--faint); padding: 4px 0; }
.foot__legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); }

/* ── Reveal on scroll ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .t-cursor, .term__live i { animation: none !important; }
}

/* ── Tira de links da nav (≤ --bp-nav-links) ────────────────────────────
   Vivia junto com `.prob` e `.pipe-track` na media query de 720px, por
   coincidência de valor e não por parentesco: ali o motivo é layout de conteúdo,
   aqui é a SOMA de cinco rótulos traduzíveis. Separada porque agora os dois
   números divergem — e um deles é medido.

   720 → 760: a entrada de `/recursos` (quinto link) somou ~87px à tira. Medido
   em navegador, varrendo 700→900px de 1 em 1: em PT — o pior caso, como sempre —
   721px transbordava 38px e o primeiro que fecha em `scrollWidth == innerWidth`
   é **761**; em EN é 750. Vale o pior dos dois. Encurtar "Recursos" para caber
   seria remendo: o rótulo é decisão de produto, o breakpoint é implementação. */
@media (max-width: 760px) {
  .nav__links { display: none; }
}

@media (max-width: 720px) {
  .prob { grid-template-columns: 1fr; }
  .pipe-track { height: 360vh; }
}

/* ── Nav compacta (≤ --bp-nav-compact) ──────────────────────────────
   Abaixo de 420px a soma marca + idioma + login + CTA não cabe em NENHUM
   dos dois idiomas — em PT sobrava 109px em 320px, medido em navegador.
   Encurtar a copy seria remendo (o rótulo é decisão de produto), então
   quem sai é o cromo: o eyebrow "by lampagos" e o link de login — que
   aponta para o MESMO destino (admin.lampagos.com) já presente na coluna
   "Dev" do rodapé, ou seja, nada fica inalcançável. O CTA, que é a razão
   da barra fixa existir, permanece inteiro e com o texto real. */
@media (max-width: 420px) {
  .nav__in { gap: var(--nav-gap-compact); }
  .nav__right { gap: var(--nav-right-gap-compact); }
  .brand__ey { display: none; }
  .nav__login { display: none; }
  .nav__right .btn--sm { padding-inline: var(--nav-cta-pad-compact); }
}
