/* ===================================================================
   STRUCT - LP DE LANCAMENTO (conversao de armaduras do Cypecad)
   Montserrat + JetBrains Mono | dark, acento azul do Struct + verde WhatsApp

   Principios desta folha:
   - Mobile-first: o layout base e o de celular; media queries so ADICIONAM.
   - Tipografia e espacamentos fluidos com clamp(), sem saltos entre breakpoints.
   - Nada de grid com largura fixa: todo grid usa auto-fit/minmax e reflui sozinho.
   - Performance: content-visibility nas secoes longas, animacoes so em
     transform/opacity (composited), e respeito a prefers-reduced-motion.
   =================================================================== */

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

:root {
  /* ── Paleta (mesma da LP do Struct, para o lancamento nao parecer outro produto) ── */
  --bg: #0a0a0b;
  --surface: #101017;
  --card: #13131a;
  --border: rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --t1: #ededeb;
  --t2: #a1a1aa;
  --t3: #71717a;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-soft: rgba(59,130,246,0.07);
  --accent-border: rgba(59,130,246,0.24);

  /* Verde do WhatsApp: reservado ao CTA, para o clique ter cor propria */
  --wa: #25d366;
  --wa-dark: #1da851;
  --wa-glow: rgba(37,211,102,0.28);

  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* ── Escala fluida: um unico valor cobre de 360px a 1440px ── */
  --h1: clamp(1.85rem, 1.15rem + 3.1vw, 3.9rem);
  --h2: clamp(1.45rem, 1.05rem + 1.8vw, 2.5rem);
  --h3: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem);
  --body: clamp(0.94rem, 0.9rem + 0.2vw, 1.06rem);
  --sec-y: clamp(3.2rem, 2rem + 5vw, 6.5rem);
  --gutter: clamp(1.05rem, 0.6rem + 2.2vw, 2rem);

  --max: 1120px;
  --max-narrow: 780px;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  /* Impede que o iOS aumente a fonte sozinho ao girar o aparelho */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--body);
  line-height: 1.65;
  color: var(--t2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--t1); line-height: 1.14; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: var(--h1); font-weight: 900; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.01em; }

a { color: inherit; }

/* Alvo de toque minimo de 44px em tudo que e clicavel (WCAG 2.5.5) */
a, button { touch-action: manipulation; }

/* ── Grao sutil sobre o fundo (puro CSS, sem imagem para baixar) ── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ═══════════════════ LAYOUT BASE ═══════════════════ */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative; z-index: 2;
}
.wrap-narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--sec-y); }

/* content-visibility: o navegador pula o layout das secoes fora da tela.
   contain-intrinsic-size da uma altura estimada para a barra de rolagem
   nao "pular" enquanto o usuario desce.
   As secoes com video (conv e engine) ficam de fora de proposito: elas
   dependem de IntersectionObserver para hidratar o video na hora certa. */
.section.demos,
.section.faq { content-visibility: auto; contain-intrinsic-size: auto 700px; }

.sec-head { text-align: center; max-width: 42rem; margin-inline: auto; margin-bottom: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.sec-head .pre {
  display: inline-block;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
}
.sec-head h2 { margin-bottom: 0.85rem; text-wrap: balance; }
.sec-desc { color: var(--t2); text-wrap: pretty; }
.sec-desc strong { color: var(--t1); font-weight: 700; }

/* Selo com o icone real da ferramenta, acima do titulo da secao.
   O arquivo tem 64px de origem, entao o teto de exibicao e 56px:
   acima disso o icone comeca a aparecer macio em tela 2x. */
.tool-badge {
  display: grid; place-items: center;
  width: clamp(48px, 10vw, 56px); height: clamp(48px, 10vw, 56px);
  margin: 0 auto 1rem;
  border: 1px solid var(--accent-border); border-radius: 14px;
  background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(19,19,26,0.9));
  box-shadow: 0 10px 28px -12px rgba(59,130,246,0.55);
}
.tool-badge img { width: 68%; height: 68%; object-fit: contain; }

/* Par de selos (Eberick + TQS): os dois lado a lado, com a mesma caixa
   do selo único, então as duas seções abrem com o mesmo peso visual. */
.tool-badges {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.5rem, 0.35rem + 0.5vw, 0.8rem);
  margin-bottom: 1rem;
}
.tool-badges .tool-badge { margin: 0; }

/* Quebra de linha que so existe no desktop */
.br-desk { display: none; }
@media (min-width: 760px) { .br-desk { display: inline; } }

/* ═══════════════════ BOTOES ═══════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font); font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-sm { font-size: 0.8rem; padding: 0.55rem 1rem; min-height: 40px; }
.btn-lg { font-size: clamp(0.9rem, 0.84rem + 0.3vw, 1rem); padding: 0.9rem 1.6rem; min-height: 50px; }
.btn-xl { font-size: clamp(0.95rem, 0.86rem + 0.42vw, 1.12rem); padding: 1.05rem 2rem; min-height: 56px; }

/* CTA principal: o unico elemento verde da pagina, para nao competir com nada */
.btn-wa {
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-dark) 100%);
  color: #04220f;
  box-shadow: 0 6px 22px -6px var(--wa-glow);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--wa-glow); }
.btn-wa:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-h);
  color: var(--t1);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.24); }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* ═══════════════════ TOPO ═══════════════════ */

.topbar-sticky { position: sticky; top: 0; z-index: 60; }

.topstrip {
  background: #070912;
  border-bottom: 1px solid rgba(96,165,250,0.2);
  font-size: clamp(0.66rem, 0.6rem + 0.25vw, 0.78rem);
  color: #b9c6d9;
}
.topstrip-inner {
  max-width: var(--max); margin-inline: auto;
  padding: 0.42rem var(--gutter);
  display: flex; align-items: center; justify-content: center;
  gap: 0.3rem 0.55rem; flex-wrap: wrap;   /* no celular a contagem desce de linha */
  text-align: center;
}
/* Depois de quebrar a linha, o divisor vertical não separa mais nada */
@media (max-width: 519px) { .topstrip-sep { display: none; } }
.topstrip-text strong { color: #fff; font-weight: 700; }
.topstrip-sep { width: 1px; height: 12px; background: rgba(148,163,184,0.28); flex-shrink: 0; }
.topstrip-done { color: var(--wa); font-weight: 800; letter-spacing: 0.02em; }
.topstrip-done[hidden] { display: none; }

/* ── Contador compacto da faixa do topo ──
   Vive numa barra sticky, então o custo de altura tem de ser mínimo: os
   números ficam em linha, separados por dois-pontos, e não em cartões. */
.cd-mini {
  display: inline-flex; align-items: baseline; gap: 0.28rem;
  flex-shrink: 0;
}
.cd-mini[hidden] { display: none; }
.cd-mini-cell { display: inline-flex; align-items: baseline; gap: 0.08rem; }
.cd-mini-cell strong {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.98rem);
  color: #fff; line-height: 1;
  /* tabular-nums evita a largura "dançar" a cada segundo que passa */
  font-variant-numeric: tabular-nums;
}
.cd-mini-cell i {
  font-style: normal;
  font-size: clamp(0.56rem, 0.53rem + 0.15vw, 0.64rem);
  color: #8fa6c4;
}
.cd-mini-sep {
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.84rem);
  color: rgba(148,163,184,0.5); line-height: 1;
}
.topstrip-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--wa);
  box-shadow: 0 0 8px rgba(37,211,102,0.7);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 0 8px rgba(37,211,102,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(37,211,102,0), 0 0 8px rgba(37,211,102,0.7); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 0 8px rgba(37,211,102,0.7); }
}

/* A barra ocupa a largura toda (o fundo precisa sangrar), mas o conteudo
   fica alinhado ao mesmo container do resto da pagina. */
.topnav {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--max); margin-inline: auto;
  padding: 0.6rem var(--gutter);
}
.topnav__brand { display: flex; align-items: center; }
.topnav__brand img { width: auto; height: clamp(26px, 5vw, 32px); }

/* No celular o CTA da topbar some: o botao flutuante cobre esse papel
   sem roubar altura util da tela. */
.topnav .btn-wa { display: none; }
@media (min-width: 560px) { .topnav .btn-wa { display: inline-flex; } }

/* ═══════════════════ HERO ═══════════════════ */

.hero {
  position: relative;
  padding-block: clamp(2.6rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.16;
  /* O gradiente esconde o recorte da foto sem precisar de um segundo elemento */
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 0%, rgba(59,130,246,0.16), transparent 70%);
}

.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-logo { width: auto; height: clamp(46px, 9vw, 74px); margin-bottom: clamp(1.1rem, 0.8rem + 1.2vw, 1.8rem); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.72rem);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-light);
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--accent-border); border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse 2.4s ease-out infinite;
}

.hero h1 { text-wrap: balance; margin-bottom: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem); }
.hl {
  color: var(--accent-light);
  /* Sublinhado que respeita as descidas das letras */
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.35);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
}
.hl-cype { color: #fff; }

.hero-sub {
  max-width: 44rem;
  font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.14rem);
  color: var(--t2); text-wrap: pretty;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.5vw, 2.3rem);
}
.hero-sub strong { color: var(--t1); font-weight: 700; }

.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  width: 100%;
}
/* Abaixo de 420px os botoes ocupam a linha inteira, para nunca truncar o texto */
@media (max-width: 419px) {
  .hero-cta .btn { width: 100%; }
}

/* ── Destaque da oferta ──
   Verde do WhatsApp, o mesmo do botão: liga visualmente a condição especial
   ao ato de entrar no grupo, sem virar mais um bloco cinza da página.

   No hero o formato é um selo em pílula: rótulo curto, um filete de divisão
   e uma linha de mensagem. No CTA final vira caixa, porque lá é o argumento
   de fechamento e pode pesar mais. Hierarquia proposital, não inconsistência. */
.hero-offer {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.25rem 0.7rem;
  margin-top: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  padding: clamp(0.42rem, 0.35rem + 0.3vw, 0.55rem) clamp(0.8rem, 0.65rem + 0.6vw, 1.15rem);
  border: 1px solid rgba(37,211,102,0.26); border-radius: 999px;
  /* Brilho concentrado atrás do rótulo, não uma cor chapada no bloco todo */
  background:
    radial-gradient(120% 180% at 0% 50%, rgba(37,211,102,0.16), transparent 62%),
    rgba(255,255,255,0.02);
  box-shadow: 0 8px 26px -14px rgba(37,211,102,0.6);
  text-align: center;
}
.hero-offer-tag {
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.55rem + 0.16vw, 0.67rem);
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--wa); white-space: nowrap;
  /* O filete faz o papel de separador sem custar um elemento no HTML */
  padding-right: 0.7rem;
  border-right: 1px solid rgba(37,211,102,0.26);
}
.hero-offer-text {
  font-size: clamp(0.79rem, 0.75rem + 0.22vw, 0.9rem);
  color: #c6d9cd; text-wrap: pretty;
}
.hero-offer-text strong { color: #fff; font-weight: 700; }

/* Data fecha o selo, do outro lado do filete. Em mono e com tabular-nums
   para casar com o contador do topo, que fala da mesma data. */
.hero-offer-date {
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.62rem + 0.2vw, 0.76rem);
  font-weight: 500; color: #fff; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(37,211,102,0.26);
}

/* Empilhado, os filetes verticais apontariam para o nada: viram linhas
   horizontais entre os segmentos. */
@media (max-width: 639px) {
  .hero-offer { flex-direction: column; border-radius: 16px; gap: 0.45rem; padding-block: 0.75rem; }
  .hero-offer-tag {
    padding-right: 0; padding-bottom: 0.45rem;
    border-right: 0; border-bottom: 1px solid rgba(37,211,102,0.22);
  }
  .hero-offer-date {
    padding-left: 0; padding-top: 0.45rem;
    border-left: 0; border-top: 1px solid rgba(37,211,102,0.22);
  }
}

.final-offer {
  display: flex; align-items: flex-start; gap: 0.7rem;
  max-width: 34rem; text-align: left; text-wrap: pretty;
  padding: clamp(0.7rem, 0.6rem + 0.5vw, 0.95rem) clamp(0.85rem, 0.7rem + 0.6vw, 1.15rem);
  border: 1px solid rgba(37,211,102,0.3); border-radius: 14px;
  background: rgba(37,211,102,0.07);
  font-size: clamp(0.8rem, 0.76rem + 0.22vw, 0.9rem);
  color: #cfe9d8;
}
.final-offer svg {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--wa); margin-top: 0.18em;
}
.final-offer strong { color: #fff; font-weight: 800; }

/* No CTA final ele fica centralizado e com respiro maior antes do botão.
   O seletor precisa do pai porque `.final-inner > p` tem especificidade
   maior que `.final-offer` sozinho e venceria a margem. */
.final-inner > .final-offer {
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.2rem + 1.5vw, 1.5rem);
  width: 100%; max-width: 40rem;
  margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.2rem);
  padding-top: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.hero-stat-n {
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 800; color: var(--t1); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hero-stat-l {
  font-size: clamp(0.63rem, 0.58rem + 0.25vw, 0.76rem);
  color: var(--t3); text-align: center; line-height: 1.3;
}

/* ═══════════════════ CONVERSAO (o destaque) ═══════════════════ */

.conv { position: relative; }
.conv::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 50% 30%, rgba(59,130,246,0.09), transparent 70%);
}

.conv-stage {
  position: relative;
  border: 1px solid var(--border-h);
  border-radius: clamp(12px, 0.6rem + 1vw, 20px);
  overflow: hidden;
  background: #06060a;
  /* Reserva a caixa antes do video chegar: zero deslocamento de layout */
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.85);
}
.conv-aura {
  position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,0.14), inset 0 0 60px rgba(59,130,246,0.07);
}
.conv-video { width: 100%; height: 100%; object-fit: cover; }

/* Botao de play: aparece quando o autoplay e bloqueado (iOS em modo economia) */
.conv-play {
  position: absolute; inset: 0; z-index: 4; margin: auto;
  width: clamp(52px, 12vw, 72px); height: clamp(52px, 12vw, 72px);
  display: none; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  background: rgba(10,10,11,0.6); backdrop-filter: blur(8px);
  color: #fff; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.conv-play svg { width: 42%; height: 42%; margin-left: 8%; }
.conv-play:hover { transform: scale(1.06); background: rgba(10,10,11,0.8); }
.conv-stage.needs-play .conv-play { display: flex; }

.conv-flow {
  position: absolute; z-index: 5;
  top: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  left: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  display: inline-flex; align-items: center; gap: clamp(0.3rem, 0.15rem + 0.5vw, 0.55rem);
  padding: clamp(0.3rem, 0.2rem + 0.4vw, 0.45rem) clamp(0.5rem, 0.35rem + 0.5vw, 0.8rem);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  background: rgba(6,6,10,0.72); backdrop-filter: blur(10px);
  color: var(--accent-light);
}
.conv-flow img {
  width: clamp(18px, 4.2vw, 26px); height: clamp(18px, 4.2vw, 26px);
  object-fit: contain; border-radius: 5px;
}
.conv-flow svg { width: clamp(14px, 3vw, 18px); height: clamp(14px, 3vw, 18px); }

.conv-live {
  position: absolute; z-index: 5;
  top: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  right: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: clamp(0.55rem, 0.5rem + 0.2vw, 0.66rem);
  letter-spacing: 0.1em; text-transform: uppercase; color: #d7e5fb;
  padding: 0.3rem 0.62rem;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  background: rgba(6,6,10,0.72); backdrop-filter: blur(10px);
}
.conv-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.9);
  animation: pulse 2s ease-out infinite;
}
/* Em telas muito estreitas o selo "ao vivo" some: dois chips na mesma
   linha estourariam a largura do palco. */
@media (max-width: 439px) { .conv-live { display: none; } }

.conv-gains {
  list-style: none;
  display: grid; gap: 0.7rem;
  margin-top: clamp(1.3rem, 1rem + 1.4vw, 2rem);
}
@media (min-width: 720px) {
  .conv-gains {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0; text-align: center;
  }
  .conv-gains li + li { border-left: 1px solid var(--border); }
  .conv-gains li { justify-content: center; padding-inline: 1rem; }
}
.conv-gains li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
}
.conv-gains svg { width: 17px; height: 17px; color: var(--wa); flex-shrink: 0; }
.conv-gains strong { color: var(--t1); font-weight: 700; }

/* ═══════════════════ COMO FUNCIONA (dentro do destaque) ═══════════════════ */

/* Separado do bloco de ganhos por uma linha, e não por um respiro de seção:
   a leitura continua sendo a mesma, o passo a passo do que o vídeo mostrou. */
.steps-inline {
  margin-top: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  padding-top: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem);
  border-top: 1px solid var(--border);
}
.steps-lede {
  text-align: center;
  margin-bottom: clamp(1rem, 0.8rem + 1vw, 1.6rem);
  font-family: var(--mono); font-size: clamp(0.66rem, 0.62rem + 0.2vw, 0.76rem);
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-light);
}

.steps-grid {
  list-style: none;
  display: grid; gap: clamp(0.9rem, 0.6rem + 1.2vw, 1.4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.step-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.step-n {
  display: block;
  font-family: var(--mono); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 500; color: rgba(96,165,250,0.32); line-height: 1;
  margin-bottom: 0.85rem;
}
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { font-size: clamp(0.85rem, 0.81rem + 0.22vw, 0.94rem); text-wrap: pretty; }

/* ═══════════════════ FAIXA DE CTA ═══════════════════ */

.cta-band {
  padding-block: clamp(2.4rem, 1.6rem + 3.5vw, 4rem);
  background: linear-gradient(180deg, rgba(37,211,102,0.055), transparent 70%);
  border-block: 1px solid var(--border);
}
.cta-band-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(1.1rem, 0.8rem + 1.2vw, 1.8rem);
}
.cta-band h2 { margin-bottom: 0.4rem; text-wrap: balance; }
.cta-band p { font-size: clamp(0.86rem, 0.82rem + 0.25vw, 0.98rem); text-wrap: pretty; }
@media (min-width: 860px) {
  .cta-band-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .cta-band-inner > div { max-width: 34rem; }
  .cta-band-inner .btn { flex-shrink: 0; }
}
@media (max-width: 419px) { .cta-band-inner .btn { width: 100%; } }

/* ═══════════════════ RIBBON + PAINEIS ═══════════════════ */

.ribbon-marquee {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, #16161d, #0e0e14);
  overflow: hidden;
  padding-block: clamp(0.7rem, 0.5rem + 0.6vw, 1rem);
  margin-bottom: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  /* Esmaece as pontas para a faixa nao "cortar" um botao no meio */
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ribbon-track {
  display: flex; align-items: stretch; width: max-content;
  /* A animacao roda no compositor (translate3d), sem repintar a cada quadro */
  animation: ribbonSlide 70s linear infinite;
  will-change: transform;
}
@keyframes ribbonSlide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.ribbon-marquee:hover .ribbon-track { animation-play-state: paused; }

.ribbon-panel {
  display: flex; flex-direction: column; justify-content: space-between;
  padding-inline: clamp(0.6rem, 0.4rem + 0.5vw, 1rem);
  border-right: 1px solid var(--border);
}
.ribbon-panel-buttons { display: flex; align-items: flex-start; gap: clamp(0.35rem, 0.2rem + 0.4vw, 0.7rem); }
.ribbon-panel-label {
  text-align: center; font-size: 0.58rem; color: var(--t3);
  letter-spacing: 0.05em; padding-top: 0.4rem; white-space: nowrap;
}
.ribbon-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.28rem;
  width: clamp(52px, 6vw, 66px);
}
.ribbon-btn img { width: clamp(22px, 2.6vw, 30px); height: clamp(22px, 2.6vw, 30px); object-fit: contain; }
.ribbon-btn span {
  font-size: 0.53rem; line-height: 1.15; text-align: center; color: var(--t2);
  white-space: pre-line;
}
.ribbon-group { display: flex; flex-direction: column; }
.ribbon-group-buttons { display: flex; gap: clamp(0.3rem, 0.2rem + 0.3vw, 0.55rem); }
.ribbon-group-label {
  text-align: center; font-size: 0.5rem; color: var(--t3);
  border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.25rem;
  white-space: nowrap;
}

.panels-grid {
  display: grid; gap: clamp(0.7rem, 0.5rem + 0.9vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.panel-card {
  padding: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem);
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.panel-card:hover { border-color: var(--border-h); transform: translateY(-3px); }
.panel-card--hi { border-color: var(--accent-border); background: linear-gradient(180deg, rgba(59,130,246,0.05), var(--card) 65%); }
.panel-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.panel-ico { width: 22px; height: 22px; color: var(--accent-light); }
.panel-count {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  color: var(--t1);
  padding: 0.18rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--border-h); background: rgba(255,255,255,0.03);
  font-variant-numeric: tabular-nums;
}
.panel-card h3 { margin-bottom: 0.35rem; }
.panel-card p { font-size: clamp(0.8rem, 0.77rem + 0.2vw, 0.88rem); line-height: 1.55; text-wrap: pretty; }

/* ═══════════════════ DEMOS ═══════════════════ */

.demo-featured { margin-bottom: clamp(0.7rem, 0.5rem + 0.7vw, 1rem); }
.demo-player {
  border: 1px solid var(--border-h); border-radius: clamp(12px, 0.6rem + 1vw, 18px);
  overflow: hidden; background: #06060a;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px -22px rgba(0,0,0,0.8);
}
.demo-player video { width: 100%; height: 100%; object-fit: cover; }
.demo-label {
  text-align: center; margin-top: 0.8rem;
  font-size: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem); font-weight: 600; color: var(--t1);
}

.demo-thumbs {
  display: grid; gap: clamp(0.45rem, 0.3rem + 0.5vw, 0.8rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 680px) { .demo-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.demo-thumb {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0; border: 1px solid var(--border); border-radius: 11px;
  background: var(--card); overflow: hidden; cursor: pointer;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.demo-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.55; transition: opacity 0.3s var(--ease); }
.demo-thumb span {
  font-family: var(--font); font-size: clamp(0.66rem, 0.62rem + 0.2vw, 0.76rem);
  font-weight: 600; color: var(--t2);
  padding: 0.5rem 0.4rem; text-align: center; line-height: 1.25;
}
.demo-thumb:hover { border-color: var(--border-h); transform: translateY(-2px); }
.demo-thumb:hover img { opacity: 0.8; }
.demo-thumb.active { border-color: var(--accent); }
.demo-thumb.active img { opacity: 1; }
.demo-thumb.active span { color: var(--t1); }

/* ═══════════════════ MESMO MOTOR (Eberick / TQS) ═══════════════════ */

.engine { background: var(--surface); border-block: 1px solid var(--border); }

.engine-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.25rem + 0.5vw, 0.7rem);
  max-width: 30rem; margin: 0 auto clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem);
}
.engine-pick {
  display: flex; align-items: center; gap: 0.6rem;
  padding: clamp(0.5rem, 0.4rem + 0.4vw, 0.7rem) clamp(0.6rem, 0.45rem + 0.5vw, 0.95rem);
  min-height: 52px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); cursor: pointer; text-align: left;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.engine-pick:hover { border-color: var(--border-h); transform: translateY(-2px); }
.engine-pick-logo {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 7px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
}
.engine-pick-logo img { width: 100%; height: 100%; object-fit: contain; }
.engine-pick-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.engine-pick-meta strong {
  font-size: clamp(0.8rem, 0.76rem + 0.22vw, 0.92rem); color: var(--t1); font-weight: 700;
}
.engine-pick-meta em {
  font-style: normal;
  font-size: clamp(0.62rem, 0.59rem + 0.18vw, 0.72rem); color: var(--t3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.engine-pick.active {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(59,130,246,0.12), var(--card) 75%);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.14), 0 8px 24px -12px rgba(59,130,246,0.5);
}
.engine-pick.active .engine-pick-meta em { color: var(--accent-light); }

.engine-stage {
  position: relative;
  aspect-ratio: 16 / 9;           /* reserva a caixa: zero deslocamento de layout */
  border: 1px solid var(--border-h);
  border-radius: clamp(12px, 0.6rem + 1vw, 20px);
  overflow: hidden; background: #06060a;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.85);
}
.engine-aura {
  position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(96,165,250,0.14), inset 0 0 60px rgba(59,130,246,0.07);
}
/* Os dois slides ocupam a mesma caixa; a troca e so opacidade (composited) */
.engine-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
.engine-slide.active { opacity: 1; visibility: visible; }
.engine-slide video { width: 100%; height: 100%; object-fit: cover; }

.engine-flow {
  position: absolute; z-index: 5;
  top: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  left: clamp(0.55rem, 0.3rem + 1vw, 1rem);
  display: inline-flex; align-items: center; gap: clamp(0.3rem, 0.15rem + 0.5vw, 0.55rem);
  padding: clamp(0.3rem, 0.2rem + 0.4vw, 0.45rem) clamp(0.5rem, 0.35rem + 0.5vw, 0.8rem);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  background: rgba(6,6,10,0.72); backdrop-filter: blur(10px);
  color: var(--accent-light);
}
.engine-flow svg { width: clamp(14px, 3vw, 18px); height: clamp(14px, 3vw, 18px); }
.engine-flow img,
.engine-flow-target {
  width: clamp(18px, 4.2vw, 26px); height: clamp(18px, 4.2vw, 26px);
  object-fit: contain; border-radius: 5px;
}
/* Só a marca da aba ativa ocupa espaço: as duas juntas empurrariam o selo */
.engine-flow-logo { display: none; }
.engine-flow-logo.active { display: inline-flex; }

.engine-caption {
  margin-top: clamp(0.8rem, 0.6rem + 0.7vw, 1.1rem);
  text-align: center; text-wrap: pretty;
  font-size: clamp(0.82rem, 0.78rem + 0.22vw, 0.92rem);
}
.engine-caption strong { color: var(--t1); font-weight: 700; }

.engine-note {
  margin-top: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  padding-top: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border-top: 1px solid var(--border);
  text-align: center; text-wrap: pretty;
  font-size: clamp(0.78rem, 0.75rem + 0.2vw, 0.87rem); color: var(--t3);
}

/* ═══════════════════ FAQ ═══════════════════ */

.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--card);
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--border-h); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(0.85rem, 0.75rem + 0.5vw, 1.15rem) clamp(1rem, 0.85rem + 0.6vw, 1.35rem);
  font-weight: 700; color: var(--t1); cursor: pointer;
  font-size: clamp(0.85rem, 0.81rem + 0.25vw, 0.96rem);
  list-style: none; min-height: 48px;
  text-wrap: pretty;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent-light); border-bottom: 2px solid var(--accent-light);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-item p {
  padding: 0 clamp(1rem, 0.85rem + 0.6vw, 1.35rem) clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  font-size: clamp(0.83rem, 0.8rem + 0.2vw, 0.92rem); text-wrap: pretty;
}

/* ═══════════════════ CTA FINAL ═══════════════════ */

.final {
  position: relative;
  padding-block: clamp(3.4rem, 2.2rem + 5vw, 6.5rem);
  border-top: 1px solid var(--border);
  background: radial-gradient(65% 60% at 50% 100%, rgba(37,211,102,0.09), transparent 70%);
  overflow: hidden;
}
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: clamp(0.6rem, 0.56rem + 0.2vw, 0.7rem);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--wa);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(37,211,102,0.28); background: rgba(37,211,102,0.08);
  margin-bottom: 1.2rem;
}
.final-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--wa);
  animation: pulse 2s ease-out infinite;
}
.final h2 { margin-bottom: 0.9rem; text-wrap: balance; }
.final > .wrap > p, .final-inner > p {
  max-width: 36rem; text-wrap: pretty;
  font-size: clamp(0.88rem, 0.84rem + 0.25vw, 1rem);
  margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
}
/* Contagem em blocos do CTA final */
.cd {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.3rem + 0.5vw, 0.7rem);
  width: 100%; max-width: 26rem;
  margin-bottom: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
}
.cd[hidden] { display: none; }
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  padding: clamp(0.6rem, 0.5rem + 0.5vw, 0.85rem) 0.3rem;
  border: 1px solid rgba(37,211,102,0.22); border-radius: 12px;
  background: rgba(37,211,102,0.05);
}
.cd-cell strong {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.75rem);
  color: var(--t1); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-cell span {
  font-size: clamp(0.58rem, 0.55rem + 0.15vw, 0.68rem);
  color: var(--t3); letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 419px) { .final .btn { width: 100%; } }
.final-note { font-size: 0.76rem; color: var(--t3); margin-top: 1rem; margin-bottom: 0 !important; }

/* ═══════════════════ RODAPE ═══════════════════ */

.foot { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--border); background: var(--surface); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.foot-inner > img { width: auto; height: 30px; opacity: 0.75; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem; }
.foot-links a {
  font-size: 0.83rem; color: var(--t2); text-decoration: none;
  padding: 0.35rem 0; min-height: 32px; display: inline-flex; align-items: center;
  transition: color 0.25s var(--ease);
}
.foot-links a:hover { color: var(--accent-light); }
.foot-inner > p { font-size: 0.74rem; color: var(--t3); }

/* ═══════════════════ CTA FLUTUANTE ═══════════════════ */

.fab-wa {
  position: fixed; z-index: 70;
  left: 50%; bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translate(-50%, 150%);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; min-height: 50px;
  border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; color: #04220f;
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-dark) 100%);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.7), 0 0 0 1px rgba(37,211,102,0.35);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
  opacity: 0;
}
.fab-wa svg { width: 19px; height: 19px; flex-shrink: 0; }
.fab-wa.show { transform: translate(-50%, 0); opacity: 1; }
/* No desktop o CTA fixo do topo ja resolve, entao o flutuante nao aparece */
@media (min-width: 860px) { .fab-wa { display: none; } }

/* ═══════════════════ REVELACAO NO SCROLL ═══════════════════ */

/* O estado inicial invisivel so vale quando o JS esta vivo para reverte-lo.
   A classe .js e posta no <html> por um script inline no <head>, entao sem
   JS (ou se o script falhar) a pagina simplesmente nasce visivel. */
.js .sr, .js .reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal { transition-delay: calc(var(--d, 0) * 80ms); }
.js .sr.vis, .js .reveal.vis { opacity: 1; transform: translate3d(0, 0, 0); }

/* ═══════════════════ ACESSIBILIDADE E ECONOMIA ═══════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .sr, .js .reveal { opacity: 1 !important; transform: none !important; }
  .ribbon-track { animation: none; }
}

/* Telas muito largas: a ribbon ganha respiro sem esticar o resto do layout */
@media (min-width: 1600px) {
  .ribbon-btn { width: 70px; }
}
