/* ==========================================================================
   VWMS — design system
   Mobile first. Tema escuro unico (sala de controle / visao computacional),
   na paleta da marca: vermelho #CE1F2E sobre grafite, texto branco.
   ========================================================================== */

:root {
  /* superficies */
  --ink-900: #0A0A0B;
  --ink-850: #101012;
  --ink-800: #16161A;
  --ink-750: #1D1D21;
  --ink-700: #26262B;
  --line: #2C2C31;
  --line-2: #3C3C43;

  /* texto */
  --txt: #F5F5F6;
  --txt-2: #B4B4BA;
  --txt-3: #7D7D85;

  /* marca — vermelho / preto / branco */
  --brand: #CE1F2E;
  --brand-rgb: 206, 31, 46;
  /* o vermelho da marca da 3,6:1 sobre o grafite — serve para preenchimento
     e borda, mas nao para texto. Este tom claro da 6,5:1 e cobre o AA. */
  --brand-luz: #FF5A64;
  --brand-2: #8A121D;
  --brand-ink: #FFF1F2;
  --amber: #E0913C;
  --violet: #9AA3B2;
  --red: #E23D48;
  /* resultado favoravel. Verde nao existe na paleta da marca, e vermelho
     num numero de dinheiro leria como prejuizo — entao a areia quente. */
  --positivo: #E0913C;

  /* classes do detector (mesma paleta dos clipes) */
  --c-caixa: #FFA23A;
  --c-palete-filmado: #00D9C0;
  --c-palete: #7CD65C;
  --c-volume: #C08CFF;
  --c-cone: #FFD84D;
  --c-empilhadeira: #FF6B4A;
  --c-pessoa: #4DA6FF;
  --c-carrinho: #5CE1E6;

  /* escala */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pad: clamp(18px, 5vw, 28px);
  --gap: clamp(16px, 4vw, 24px);
  --max: 1180px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(var(--brand-rgb), .28), 0 12px 40px -16px rgba(var(--brand-rgb), .5);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fundo: grade tecnica sutil + halos da marca */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(var(--brand-rgb), .26), transparent 62%),
    radial-gradient(760px 460px at 4% 4%, rgba(154, 163, 178, .09), transparent 60%),
    radial-gradient(680px 520px at 96% 52%, rgba(224, 145, 60, .06), transparent 64%),
    radial-gradient(900px 600px at 12% 104%, rgba(var(--brand-rgb), .14), transparent 62%),
    linear-gradient(180deg, var(--ink-850), var(--ink-900) 42%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .6;
  background-image:
    linear-gradient(rgba(96, 96, 106, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 96, 106, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 78%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0; line-height: 1.14; letter-spacing: -.022em; font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 7.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.12rem, 3.4vw, 1.4rem); }
p { margin: 0; }

::selection { background: rgba(var(--brand-rgb), .32); color: #fff; }

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

/* Granulado: tira o aspecto de degrade chapado que fundo escuro liso sempre
   tem, e some as faixas de banding nos halos. E um bloco de 160 px repetido,
   embutido no CSS — nao custa requisicao nem decodificacao de bitmap. */
.grao {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Varredura: a mesma linha que a marca usa, atravessando a pagina devagar.
   So transform — nao dispara layout nem repaint de conteudo. */
.varredura {
  position: fixed; left: 0; right: 0; top: 0; height: 220px; z-index: -1;
  pointer-events: none; will-change: transform;
  background: linear-gradient(180deg,
    transparent, rgba(var(--brand-rgb), .035) 42%, rgba(var(--brand-rgb), .085) 50%,
    rgba(var(--brand-rgb), .035) 58%, transparent);
  animation: varrer 16s linear infinite;
}
@keyframes varrer {
  from { transform: translate3d(0, -240px, 0); }
  to   { transform: translate3d(0, 100vh, 0); }
}
@media (prefers-reduced-motion: reduce) { .varredura { display: none; } }

/* ---------- fotografia de fundo ----------
   Duas formas, e a escolha entre elas e de contraste, nao de gosto:

   `.tira` e uma faixa cheia entre secoes, sem nenhum texto por cima — por isso
   a foto pode aparecer de verdade. E o que da respiro e ritmo a pagina.

   `.faixa` fica atras de uma secao inteira e so e usada onde o conteudo se
   apoia num painel opaco (o cartao do CTA). Clarear uma foto atras de texto
   corrido derruba o contraste para menos de 3:1, entao ali ela nao entra.

   Nos dois casos a imagem chega por variavel CSS, gravada pelo JS quando o
   bloco se aproxima: declarada no CSS, o navegador baixaria todas no primeiro
   paint. */
.tira {
  position: relative; overflow: hidden;
  height: clamp(150px, 21vw, 250px);
  border-block: 1px solid var(--line);
  background: var(--ink-900);
}
.tira::before {
  content: ""; position: absolute; inset: 0;
  background: var(--faixa) center 42% / cover no-repeat;
  filter: grayscale(.24) contrast(1.06) brightness(.82);
  opacity: 0; transform: scale(1.03);
  transition: opacity 1.1s ease;
}
.tira.is-viva::before { opacity: 1; }
.tira::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--ink-900), rgba(10, 10, 11, .34) 32%,
                    rgba(10, 10, 11, .38) 64%, var(--ink-900)),
    linear-gradient(90deg, rgba(10, 10, 11, .74), transparent 42%, transparent 64%, rgba(10, 10, 11, .74));
}
/* a mesma varredura da marca, atravessando a tira */
.tira__scan {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), .55) 26%,
                              rgba(var(--brand-rgb), .55) 74%, transparent);
}
.tira__rot {
  position: absolute; z-index: 3; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  width: 100%; max-width: var(--max); padding-inline: var(--pad);
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--txt-2);
  display: flex; align-items: center; gap: 9px;
}
.tira__rot::before {
  content: ""; width: 16px; height: 1px; background: var(--brand); flex: none;
}

.faixa { isolation: isolate; }
.faixa::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--faixa) center / cover no-repeat;
  filter: grayscale(.28) contrast(1.05) brightness(.72);
  opacity: 0; transition: opacity 1.1s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.faixa.is-viva::before { opacity: .8; }
.faixa::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(140% 110% at 50% 50%, transparent 28%, rgba(10, 10, 11, .58) 100%),
    linear-gradient(180deg, var(--ink-900), transparent 16%, transparent 84%, var(--ink-900));
}

/* ---------- utilitarios ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(56px, 13vw, 108px); position: relative; }
.sec--tight { padding-block: clamp(40px, 9vw, 72px); }
/* minmax(0,1fr) + min-width:0 impedem que um filho largo (tabela com celulas
   nowrap, bloco de codigo) estique a coluna e crie rolagem horizontal na pagina */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.stack > *, .grid > *, .flow > *, .calc > *, .hero__grid > * { min-width: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.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;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-luz);
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: currentColor; opacity: .7;
}

.lead {
  color: var(--txt-2); font-size: clamp(1rem, 2.6vw, 1.14rem); max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--txt-3); }
.small { font-size: .85rem; }
.tiny { font-size: .76rem; }

.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 6vw, 48px); max-width: 68ch; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 8px 26px -10px rgba(var(--brand-rgb), .85);
}
.btn--primary:hover { box-shadow: 0 12px 34px -10px rgba(var(--brand-rgb), 1); }
.btn--ghost {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line-2);
  color: var(--txt);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand); background: rgba(var(--brand-rgb), .09); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- cabecalho ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-head.is-stuck {
  background: rgba(12, 12, 14, .88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-head__in {
  display: flex; align-items: center; gap: 16px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 36px; width: auto; }
.brand:hover img { opacity: .88; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a {
  padding: 8px 13px; border-radius: 999px; font-size: .9rem; color: var(--txt-2);
  transition: color .18s, background .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt); background: rgba(255, 255, 255, .05); }
.nav a.is-atual {
  color: var(--txt);
  background: rgba(var(--brand-rgb), .1);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .22);
}

/* link de salto: primeiro foco tabulavel da pagina */
.pular {
  position: absolute; left: 12px; top: -60px; z-index: 90;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .88rem;
  transition: top .18s ease;
}
.pular:focus-visible { top: 12px; }
.site-head__cta { display: none; }

/* botao de menu: so existe no mobile */
.burger {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--txt); cursor: pointer;
}
.burger svg { width: 19px; height: 19px; }
.burger .js-fechar { display: none; }
.burger[aria-expanded="true"] .js-abrir { display: none; }
.burger[aria-expanded="true"] .js-fechar { display: block; }

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  /* opaco de proposito: o cabecalho ja usa backdrop-filter e um menu
     translucido sobre o hero fica ilegivel */
  background: var(--ink-850);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .9);
  padding: 10px var(--pad) 20px;
  display: grid; gap: 4px;
}
.menu[hidden] { display: none; }
.menu a {
  padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--txt-2);
  font-weight: 550;
}
.menu a:last-of-type { border-bottom: 0; }
.menu a[aria-current="page"] { color: var(--brand-luz); }
.menu .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .site-head__cta { display: inline-flex; }
  .burger, .menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(34px, 8vw, 64px); padding-bottom: clamp(46px, 10vw, 84px); }
.hero__grid { display: grid; gap: clamp(30px, 6vw, 52px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  font-size: .79rem; color: var(--txt-2); width: fit-content;
}
.pill b { color: var(--brand-luz); font-weight: 650; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(var(--brand-rgb), 0); } }

.hero h1 .hl {
  /* vermelho -> terracota -> areia: o degradê fica dentro da família quente da marca */
  background: linear-gradient(100deg, var(--brand-luz) 4%, #FF8A5B 48%, #F0CB98 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--line);
  margin-top: 6px;
}
.hero__facts div { background: var(--ink-800); padding: 14px 12px; }
.hero__facts b {
  display: block; font-family: var(--mono); font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  font-weight: 700; color: var(--txt);
}
.hero__facts span { font-size: .72rem; color: var(--txt-3); line-height: 1.35; display: block; }

/* ---------- player ---------- */
.player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--ink-850);
  box-shadow: var(--shadow);
}
.player__stage { position: relative; background: #000; }
.player__stage video {
  width: 100%; height: auto; display: block;
  aspect-ratio: var(--ar, 16/9);
  /* videos verticais nao podem dominar a pagina no celular */
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: #000;
}
.player__stage video[hidden] { display: none; }

.player__badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(12, 12, 14, .76); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: .68rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  color: var(--txt-2);
}
.player__badge .dot { width: 6px; height: 6px; background: var(--red); box-shadow: none; }
.player.is-ia .player__badge .dot { background: var(--brand); }

/* HUD sobreposto, alimentado pelos dados reais da analise */
.hud {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  width: min(60%, 246px);
  padding: 9px 10px; border-radius: 12px;
  background: rgba(12, 12, 14, .78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .68rem; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.player.is-ia .hud { opacity: 1; transform: none; }
.hud__t {
  font-size: .58rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--txt-3); margin-bottom: 6px;
}
.hud__row { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin-bottom: 4px; }
.hud__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud__row b { font-family: var(--mono); font-weight: 600; color: var(--brand-luz); font-size: .66rem; }
.hud__bar { grid-column: 1/-1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud__bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; transition: width .3s ease; }

/* progresso do clipe: linha fina na base do palco, movida por transform */
.player__prog {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: 2px; background: rgba(255, 255, 255, .09);
}
.player__prog i {
  display: block; height: 100%; width: 100%;
  background: var(--brand);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .25s linear;
}
.player:not(.is-ia) .player__prog i { background: var(--txt-3); }

.player--destaque {
  border-color: rgba(var(--brand-rgb), .3);
  box-shadow: var(--shadow), 0 0 0 1px rgba(var(--brand-rgb), .12), 0 24px 70px -34px rgba(var(--brand-rgb), .55);
}

.player__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
}
.js-play svg { flex: none; }
.player .js-ico-pause { display: none; }
.player.is-tocando .js-ico-pause { display: block; }
.player.is-tocando .js-ico-play { display: none; }
.toggle {
  display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px;
  background: var(--ink-900); border: 1px solid var(--line);
}
.toggle button {
  border: 0; background: none; color: var(--txt-3); cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; transition: all .18s;
}
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.player__meta { margin-left: auto; font-size: .72rem; color: var(--txt-3); }

/* ---------- cartoes ---------- */
.card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 4.4vw, 26px);
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
@media (hover: none) { .card:hover { transform: none; } }
.card__ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(var(--brand-rgb), .1); border: 1px solid rgba(var(--brand-rgb), .24);
  color: var(--brand-luz); margin-bottom: 15px;
}
.card__ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--txt-2); font-size: .93rem; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 620px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- metricas de economia ---------- */
.eco {
  display: grid; gap: 14px;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 4.4vw, 26px);
  overflow: hidden; position: relative;
}
.eco::after {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--brand-luz)), transparent);
  opacity: .8;
}
.eco__n {
  font-family: var(--mono); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(2.1rem, 8.4vw, 2.9rem); line-height: 1;
  color: var(--accent, var(--brand-luz));
}
.eco__n small { font-size: .42em; font-weight: 600; letter-spacing: 0; opacity: .78; }
.eco__l { font-weight: 650; font-size: 1rem; }
.eco__d { color: var(--txt-2); font-size: .88rem; }
.eco__src {
  font-size: .72rem; color: var(--txt-3); padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
.eco__src b { color: var(--txt-2); font-weight: 600; }

/* ---------- fluxo / passos ---------- */
.flow { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.step {
  position: relative; padding: 20px 18px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink-800);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--brand-luz);
  display: block; margin-bottom: 10px; letter-spacing: .1em;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .87rem; color: var(--txt-2); }
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; right: -8px; top: 50%; z-index: 2;
    width: 8px; height: 8px; border-top: 1.5px solid var(--line-2);
    border-right: 1.5px solid var(--line-2); transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- calculadora ---------- */
.calc {
  display: grid; gap: clamp(20px, 5vw, 34px);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--ink-750), var(--ink-850) 60%);
  padding: clamp(20px, 5vw, 34px);
  box-shadow: var(--shadow);
}
@media (min-width: 940px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--txt-2); }
.field output {
  font-family: var(--mono); font-size: .95rem; font-weight: 700; color: var(--brand-luz);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand) var(--p, 40%), var(--line-2) var(--p, 40%));
}
input[type="range"]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; margin-top: -7.5px;
  background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--brand);
  background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.result {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--ink-900); padding: clamp(18px, 4.4vw, 24px);
  display: grid; gap: 16px;
}
.result__big {
  font-family: var(--mono); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(2rem, 9vw, 3.1rem); line-height: 1;
  color: var(--positivo);
}
.result__row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  font-size: .9rem; padding: 9px 0; border-bottom: 1px solid var(--line);
}
.result__row:last-of-type { border-bottom: 0; }
.result__row span { color: var(--txt-2); }
.result__row b { font-family: var(--mono); font-weight: 650; }

/* ---------- tabela ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 680px; font-size: .86rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  background: var(--ink-750); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .09em; color: var(--txt-3); font-weight: 700; position: sticky; top: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .022); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--txt-2);
}
.chip i {
  width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--brand)); flex: none;
}
.chip b { font-family: var(--mono); color: var(--txt); font-weight: 650; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 8px 15px; border-radius: 999px; cursor: pointer; font: inherit;
  font-size: .85rem; font-weight: 600;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--txt-2);
  transition: all .18s;
}
.filters button:hover { border-color: var(--brand); color: var(--txt); }
.filters button[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
}

/* ---------- linha do tempo de acoes ---------- */
.tl { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.tl i { display: block; height: 100%; flex: none; position: relative; }
.tl i[data-ocioso="1"] {
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .3) 0 3px, transparent 3px 6px);
}
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--txt-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* ---------- bloco de código ---------- */
.code {
  margin: 0; overflow-x: auto; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--ink-900);
  padding: 16px 18px; font-family: var(--mono); font-size: .78rem;
  line-height: 1.7; color: var(--txt-2); tab-size: 2;
}
.code b { color: var(--brand-luz); font-weight: 500; }      /* chave */
.code i { color: var(--amber); font-style: normal; }     /* texto */
.code u { color: var(--violet); text-decoration: none; } /* número */
.code s { color: var(--txt-3); text-decoration: none; }  /* comentário */

/* ---------- FAQ ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink-800); padding: 4px 18px;
}
details.faq + details.faq { margin-top: 10px; }
details.faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 650;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--brand-luz);
  transition: transform .22s; flex: none; line-height: 1;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 0 17px; color: var(--txt-2); font-size: .93rem; max-width: 74ch; }

/* ---------- rodape ---------- */
.site-foot {
  border-top: 1px solid var(--line); background: var(--ink-900);
  padding-block: clamp(34px, 8vw, 56px) 28px; margin-top: clamp(48px, 10vw, 90px);
}
.site-foot__grid { display: grid; gap: 28px; }
@media (min-width: 780px) { .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h4 {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-3); margin-bottom: 13px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-foot a { color: var(--txt-2); font-size: .9rem; }
.site-foot a:hover { color: var(--brand-luz); }
.site-foot__empresa {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  font-style: normal; font-size: .78rem; color: var(--txt-3); line-height: 1.5;
  /* razao social abre a linha; CNPJ e endereco fecham, encostados na direita */
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 20px; justify-content: space-between;
}
.site-foot__empresa b { color: var(--txt-2); font-weight: 650; }
.site-foot__empresa a, .site-foot__end a { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.site-foot__empresa a:hover, .site-foot__end a:hover { color: var(--brand-luz); text-decoration-color: currentColor; }
.site-foot__empresa span { margin-left: auto; text-align: right; }
/* quando a linha quebra, alinhar a direita vira orfao: volta ao inicio */
@media (max-width: 700px) {
  .site-foot__empresa span { margin-left: 0; text-align: left; }
}
.site-foot__end {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  color: var(--txt-3); font-size: .78rem;
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  border: 1px solid rgba(var(--brand-rgb), .28); border-radius: var(--r-xl);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(var(--brand-rgb), .18), transparent 70%),
    linear-gradient(180deg, rgba(29, 29, 33, .88), rgba(16, 16, 18, .92));
  backdrop-filter: blur(6px);
  padding: clamp(30px, 7vw, 56px);
  text-align: center; display: grid; gap: 20px; justify-items: center;
  overflow: hidden;
}
/* cantos de reticulo: o mesmo gesto da marca, emoldurando a chamada */
.cta::before, .cta::after {
  content: ""; position: absolute; width: 34px; height: 34px;
  border: 2px solid rgba(var(--brand-rgb), .38); pointer-events: none;
}
.cta::before { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.cta::after { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* ---------- entrada suave ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1); }
