/* ==========================================================================
   Reply 4 you - landing page
   Fonte da verdade: .planning/landing/LANDING-DESIGN.md (seções 8 e 10)
   Ordem: tokens -> reset -> tipografia -> componentes -> seções -> animações
   -> media queries. Sem framework, sem build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   8.0 Fonte auto-hospedada (Inter variável, subset latin cobre pt-BR)
   Um arquivo cobre todos os pesos (100-900). font-display: swap evita
   texto invisível enquanto a fonte carrega.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   8.1 Design tokens (espelho 1:1 de hub/theme.py DARK_COLOR_SCHEME)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Deep Indigo (idêntica ao Hub Flet, theme.py) */
  --primary: #818CF8;
  --on-primary: #1E1B4B;
  --primary-container: #4F46E5;
  --on-primary-container: #E0E7FF;
  --secondary: #A5B4FC;
  --tertiary: #FCD34D;
  --error: #F87171;
  --error-container: #7F1D1D;
  --on-error-container: #FECACA;
  --surface: #0F0F1E;
  --surface-container-low: #16162A;
  --surface-container: #1E1E36;
  --surface-container-high: #2C2C4D;
  --on-surface: #F4F4FF;
  --on-surface-variant: #A1A1AA;
  --outline: #52525B;
  --outline-variant: #27272A;

  /* Espaçamento (8-point scale, Space do Hub) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-hero: 64px;
  --space-section: 96px;

  /* Raio (Radius do Hub) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  /* Tipografia */
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion (Motion do Hub) */
  --motion-fast: 150ms ease-out;
  --motion-normal: 300ms ease-out;
  --motion-slow: 500ms cubic-bezier(0.215, 0.61, 0.355, 1);
  --motion-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   8.2 Reset e base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 80px; } /* âncora não some sob a nav */

/* --------------------------------------------------------------------------
   8.3 Tipografia (escala Material 3 adaptada para web)
   -------------------------------------------------------------------------- */
.display    { font-size: 52px; font-weight: 300; line-height: 1.15; letter-spacing: -1px; }
.headline   { font-size: 36px; font-weight: 300; line-height: 1.2;  letter-spacing: -0.5px; }
.title      { font-size: 20px; font-weight: 600; line-height: 1.3; }
.title-sm   { font-size: 16px; font-weight: 600; line-height: 1.4; }
.body-lg    { font-size: 18px; font-weight: 400; }
.body       { font-size: 16px; font-weight: 400; }
.body-sm    { font-size: 14px; font-weight: 400; }
.caption    { font-size: 13px; font-weight: 400; color: var(--on-surface-variant); }
.label      { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.muted      { color: var(--on-surface-variant); }
.accent     { color: var(--primary); }

/* --------------------------------------------------------------------------
   8.4 Wordmark (réplica fiel de hub/components/logo.py)
   -------------------------------------------------------------------------- */
.wordmark {
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--on-surface);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .four {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -1px;
  display: inline-block; /* necessário para animar transform */
}
.wordmark--lg { font-size: 28px; }

/* --------------------------------------------------------------------------
   8.5 Botões (primary / secondary / ghost)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--motion-fast), background var(--motion-fast),
              border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 4px 24px rgba(129, 140, 248, 0.35);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: transparent;
  color: var(--on-surface);
  border-color: var(--outline);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
}
.btn-ghost:hover { background: rgba(129, 140, 248, 0.08); }

.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Spinner pequeno dentro do botão (estado de submit) */
.btn .btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(30, 27, 75, 0.3);
  border-top-color: var(--on-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }

/* --------------------------------------------------------------------------
   8.6 Section wrapper
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl); /* 24px laterais */
}
.section { padding: var(--space-section) 0; } /* 96px vertical */
.section--alt { background: var(--surface-container-low); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
}
.section-head .headline { margin-bottom: var(--space-lg); }

/* --------------------------------------------------------------------------
   Nav sticky (home) e nav simples (páginas de status)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}
.nav .wordmark { font-size: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav-links a {
  font-size: 16px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color var(--motion-fast);
}
.nav-links a:hover { color: var(--on-surface); }
.nav-links .btn { color: var(--on-primary); }

/* --------------------------------------------------------------------------
   Hero (grid 7fr texto / 5fr demo)
   -------------------------------------------------------------------------- */
.hero { padding: var(--space-section) 0; }
.hero-grid {
  /* 12/09/2026: a coluna da demo do overlay precisa de largura para o texto ser legivel */
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: var(--space-3xl);
  align-items: center;
}
.hero-eyebrow { color: var(--primary); margin-bottom: var(--space-lg); display: block; }
.hero-copy .display { margin-bottom: var(--space-xl); }
.hero-sub {
  color: var(--on-surface-variant);
  max-width: 52ch;
  margin-bottom: var(--space-2xl);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.hero-microcopy { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   8.8 Demo card do hero (mock vivo)
   -------------------------------------------------------------------------- */
.demo-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 8px 48px rgba(79, 70, 229, 0.15);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.demo-status {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 13px; color: var(--on-surface-variant);
}
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.demo-label { color: var(--on-surface-variant); }
.demo-label--primary { color: var(--primary); }
.demo-translation { font-style: italic; }
.demo-answer {
  background: var(--surface-container-low);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  min-height: 96px; /* evita layout shift do typewriter */
}
.demo-chips { display: flex; gap: var(--space-sm); }
.chip {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}

/* --------------------------------------------------------------------------
   Faixa de confiança
   -------------------------------------------------------------------------- */
.trust {
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: var(--space-xl) 0;
}
.trust-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: 14px;
  color: var(--on-surface-variant);
  text-align: center;
}
.trust-list li:not(:first-child)::before {
  content: "\00B7"; /* ponto mediano */
  margin-right: var(--space-lg);
  color: var(--outline);
}

/* --------------------------------------------------------------------------
   8.7 Card (value props)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--motion-fast), border-color var(--motion-fast);
}
.card:hover {
  transform: scale(1.02);
  border-color: rgba(129, 140, 248, 0.3);
}
.card-icon {
  width: 40px; height: 40px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* --------------------------------------------------------------------------
   How it works (passos numerados + linha conectora)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.step { position: relative; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  font-size: 22px; font-weight: 700; line-height: 1;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}
/* Conectora desenhada por passo, do fim de um número até o começo do
   próximo. Antes era uma linha única atravessando o grid inteiro, que
   sobrava nas pontas e precisava de um retângulo de fundo por cima de
   cada número pra ser mascarada (e o retângulo usava a cor errada). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(52px + var(--space-md));
  right: calc(var(--space-xl) * -1 + var(--space-md));
  border-top: 1px dashed var(--outline);
}
.step .title { margin-bottom: var(--space-sm); min-height: 52px; }

/* --------------------------------------------------------------------------
   Features detalhadas (mock do Hub + bullets)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-3xl);
  align-items: center;
}
/* min-width auto (padrao de item de grid) impedia a coluna de encolher
   abaixo do min-content e gerava scroll horizontal em telas estreitas. */
.features-grid > * { min-width: 0; }
/* Variante espelhada: copy à esquerda, mock à direita (seção "Depois") */
.features-grid--reverse { grid-template-columns: 7fr 5fr; }
.features-copy .headline { margin-bottom: var(--space-2xl); }
.features-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-xl); }
.features-list li {
  padding-left: 32px;
  position: relative;
}
.features-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px;
  background: var(--primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}
.features-list .title-sm { display: block; }
.features-list p { font-size: 16px; color: var(--on-surface-variant); }

/* Mock CSS provisório do dashboard do Hub (substitui hub-dashboard.png) */
.feature-shot { position: relative; }
/* Glow contido no proprio elemento e desfocado de verdade. A versao antiga
   usava inset -48px, estourava a largura do container e o gradiente radial
   num box largo virava uma mancha retangular de borda visivel. */
.feature-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scale(1.08);
  border-radius: var(--radius-2xl);
  background: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(129, 140, 248, 0.16), transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
.hub-mock {
  position: relative;
  z-index: 1;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 56px rgba(5, 5, 15, 0.55);
  overflow: hidden;
  transition: transform var(--motion-normal), border-color var(--motion-normal),
              box-shadow var(--motion-normal);
}
/* Mesma linguagem viva do demo-card do hero: o quadro reage ao mouse e os
   controles internos convidam ao clique (main.js anima os estados). */
.hub-mock:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 26px 64px rgba(5, 5, 15, 0.6);
}
.hub-mock .demo-status { justify-content: center; }
.hub-mock-btn { cursor: pointer; transition: filter var(--motion-fast), transform var(--motion-fast); }
.hub-mock-btn:hover { filter: brightness(1.12); }
.hub-mock-btn:active { transform: scale(0.97); }
.demo-dot--green {
  background: #4ADE80; /* mesmo verde do status "Overlay ativo" do Hub */
}
.chip { transition: background var(--motion-normal), color var(--motion-normal); }
.chip.is-active {
  background: var(--primary);
  color: var(--on-primary);
}
.mock-result {
  display: none;
  text-align: left;
  background: var(--surface-container);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  min-height: 62px;
  width: 100%;
  color: var(--on-surface-variant);
}
.mock-result.is-shown { display: block; }
.hub-mock-bar {
  display: flex; gap: 6px;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--outline-variant);
}
.hub-mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-container-high);
}
.hub-mock-body {
  padding: var(--space-2xl);
  display: flex; flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}
/* line-height 1: com o 32px herdado sobrava 6px acima e abaixo do nome,
   e o respiro entre a barra e o titulo ficava maior que o resto do card. */
.hub-mock .wordmark { font-size: 20px; line-height: 1; }
.hub-mock-status { font-size: 13px; color: var(--on-surface-variant); }
.hub-mock-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px; font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   8.10 Pricing card destaque
   -------------------------------------------------------------------------- */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface-container);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-2xl);
  display: flex; flex-direction: column; gap: var(--space-lg);
  /* Cabecalho (selo, preco, periodicidade) centralizado; so a lista de
     beneficios volta pra esquerda, que e onde lista se le melhor. */
  text-align: center;
  transition: border-color var(--motion-normal), box-shadow var(--motion-normal);
}
.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 64px rgba(79, 70, 229, 0.25);
}
.pricing-badge {
  align-self: center;
  background: var(--tertiary);
  color: var(--on-primary);
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
/* Moeda e valor na mesma linha de base, com 6px entre eles. Antes o R$ ia
   para "super" e ficava flutuando no meio do 60, separado por um espaco de
   56px. */
.pricing-price {
  font-size: 56px; font-weight: 300; line-height: 1;
  display: flex; justify-content: center; align-items: baseline; gap: 6px;
}
.pricing-currency { font-size: 20px; font-weight: 400; }
.pricing-microcopy { text-align: center; }
.divider { border: none; border-top: 1px solid var(--outline-variant); }
.pricing-benefits {
  list-style: none;
  display: flex; flex-direction: column; gap: var(--space-md);
  text-align: left;
}
.pricing-benefits li {
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}
.pricing-benefits li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  background: var(--primary);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}
/* Bloco centrado, texto alinhado a esquerda: sete linhas centralizadas
   criavam um recorte irregular e ilegivel. */
.pricing-why {
  max-width: 62ch;
  margin: var(--space-3xl) auto 0;
  color: var(--on-surface-variant);
}

/* --------------------------------------------------------------------------
   8.9 FAQ accordion (details/summary nativo HTML5)
   -------------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--outline-variant); }
.faq-item summary {
  padding: var(--space-lg) var(--space-sm);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  transition: color var(--motion-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  font-weight: 300;
  transition: transform var(--motion-normal);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-item p { padding: 0 var(--space-sm) var(--space-lg); max-width: 64ch; }
.faq-contact {
  text-align: center;
  margin-top: var(--space-3xl);
}
.faq-contact a { color: var(--primary); }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.cta-final {
  padding: 112px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px; height: 480px;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.10), transparent 70%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 {
  font-size: 40px; font-weight: 300; letter-spacing: -0.5px;
  margin-bottom: var(--space-lg);
}
.cta-final .body-lg {
  max-width: 56ch;
  margin: 0 auto var(--space-2xl);
}
.cta-final .caption { margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   8.11 Footer (decisão do PO: sem coluna de redes sociais e sem links
   legais nesta phase; páginas legais registradas como débito)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-hero) 0 var(--space-2xl);
}
.footer .wordmark { font-size: 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer-grid nav { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-grid nav a {
  font-size: 14px; color: var(--on-surface-variant);
  text-decoration: none; transition: color var(--motion-fast);
}
.footer-grid nav a:hover { color: var(--primary); }
.footer-tagline { max-width: 28ch; margin-top: var(--space-md); }
.footer-copy { margin-top: var(--space-lg); }

/* Footer mínimo das páginas de status (1 linha) */
.footer-min {
  padding: var(--space-lg) 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Páginas legais (privacidade, termos, cancelamento)
   -------------------------------------------------------------------------- */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-section);
}
.legal-wrap h1 { margin-bottom: var(--space-sm); }
.legal-updated { margin-bottom: var(--space-3xl); }
.legal-wrap h2 {
  font-size: 20px; font-weight: 600;
  margin: var(--space-2xl) 0 var(--space-md);
}
.legal-wrap p, .legal-wrap li {
  font-size: 15px;
  color: var(--on-surface-variant);
  margin-bottom: var(--space-md);
}
.legal-wrap ul { padding-left: 20px; }
.legal-wrap a { color: var(--primary); }
.legal-wrap strong { color: var(--on-surface); }

/* --------------------------------------------------------------------------
   8.12 Status card (páginas de redirect)
   -------------------------------------------------------------------------- */
.status-wrap {
  min-height: calc(100vh - 64px - 56px); /* nav + footer de 1 linha */
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-xl);
}
.status-card {
  width: 100%; max-width: 440px;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  display: flex; flex-direction: column; gap: var(--space-lg);
  align-items: center;
}

/* Cada bloco de estado fica oculto até o data-state do card casar */
.status-card [data-show] { display: none; }
.status-card[data-state="loading"] [data-show="loading"],
.status-card[data-state="form"]    [data-show="form"],
.status-card[data-state="success"] [data-show="success"],
.status-card[data-state="error"]   [data-show="error"] { display: flex; }

.status-state {
  width: 100%;
  flex-direction: column; gap: var(--space-lg);
  align-items: center;
}
.status-actions {
  display: flex; flex-direction: column; gap: var(--space-md);
  align-items: center;
  width: 100%;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--outline-variant);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-success {
  width: 48px; height: 48px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  animation: pop-in var(--motion-bounce) both;
}
.icon-error {
  width: 48px; height: 48px;
  stroke: var(--error);
  fill: none;
  stroke-width: 2;
}
.icon-neutral {
  width: 48px; height: 48px;
  stroke: var(--on-surface-variant);
  fill: none;
  stroke-width: 2;
}

.form-field { width: 100%; text-align: left; display: flex; flex-direction: column; gap: var(--space-xs); }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field .input-wrap { position: relative; }
.form-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  color: var(--on-surface);
  padding: 12px 44px 12px 14px;
  font-size: 16px;
  transition: border-color var(--motion-fast);
}
.form-field input:focus { outline: none; border-color: var(--primary); }
.form-error { color: var(--error); font-size: 13px; min-height: 18px; text-align: left; width: 100%; }

.toggle-eye {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  display: flex;
  color: var(--on-surface-variant);
}
.toggle-eye:hover { color: var(--on-surface); }
.toggle-eye svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* --------------------------------------------------------------------------
   10. Microanimações
   -------------------------------------------------------------------------- */

/* 10.1 Fade-in das seções ao scroll (IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 500ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }

/* 10.3 Wordmark "4" com bounce no load */
@keyframes pop-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.wordmark--animated .four {
  animation: pop-in 600ms cubic-bezier(0.34, 1.56, 0.64, 1) 200ms both;
}

/* 10.4 Pulse sutil no CTA primário do hero (um único elemento por viewport) */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(129, 140, 248, 0); }
}
.btn-pulse { animation: cta-pulse 2.4s ease-out infinite; }
.btn-pulse:hover { animation: none; }

/* 10.5 Dot "escutando" do demo card */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

/* --------------------------------------------------------------------------
   A11y: skip-link + foco visível por teclado (quality floor)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -72px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: top var(--motion-fast);
}
.skip-link:focus { top: var(--space-md); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Acento dourado (--tertiary): destaca o preco nas microcopies de CTA.
   Uso restrito a isso, pra continuar significando uma coisa so na pagina.
   -------------------------------------------------------------------------- */
.hl-free { color: var(--tertiary); font-weight: 600; }

/* --------------------------------------------------------------------------
   CTA sticky no mobile (aparece após sair do hero; controlado pelo JS)
   -------------------------------------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(22, 22, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-md) 0 calc(var(--space-md) + env(safe-area-inset-bottom));
  transform: translateY(110%);
  visibility: hidden; /* fora do tab order enquanto escondida */
  transition: transform var(--motion-normal), visibility var(--motion-normal);
}
.mobile-cta.is-shown { transform: translateY(0); visibility: visible; }
.mobile-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.mobile-cta-text { font-size: 13px; color: var(--on-surface-variant); flex: 1; }
.mobile-cta-btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Media queries (breakpoints 900 / 700 / 600)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .display { font-size: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  /* conectora so faz sentido numa fileira unica */
  .step::after { display: none; }
  .step .title { min-height: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  /* em coluna unica o mock ocupa a largura toda: 8% de scale passaria do
     padding do container e criaria scroll horizontal */
  .feature-shot::before { transform: scale(1.02); }
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  /* espaço pra barra fixa não cobrir o fim do conteúdo */
  .footer { padding-bottom: 88px; }
  /* .mobile-cta assume o papel de CTA persistente aqui (com microcopy
     melhor); o botão do nav sticky duplicava o mesmo CTA na tela toda vez
     que a pessoa rolava além do hero (achado da auditoria 2026-08-24). */
  .nav-links .btn { display: none; }
}

@media (max-width: 600px) {
  .display { font-size: 36px; }
  .headline { font-size: 28px; }
  .cta-final h2 { font-size: 30px; }
  .values-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-hero) 0; }
  .hero-ctas .btn, .cta-final .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   10.8 Acessibilidade de movimento (obrigatório)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ==========================================================================
   Hero: réplica animada do overlay real sobre uma call no Teams (13/09/2026)
   A janela atrás segue o Teams (barra de título, recrutadora em destaque
   com câmera ligada, você no cantinho, barra de botões Fluent). O overlay
   é copiado do app: sugestão no topo em azul-claro, uma frase por linha,
   legenda branca com contorno preto embaixo (parcial em cinza, selo ON).
   Tudo em CSS e SVG inline; o loop dura 14 s. Medidas em cqw para escalar
   junto com a coluna do hero.
   ========================================================================== */
.hero-demo { width: 100%; container-type: inline-size; }
.hd-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #121212;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 8px 48px rgba(79, 70, 229, 0.18);
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  color: #d6d6d6;
}
.hd-screen svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-top {
  position: absolute; left: 0; right: 0; top: 0; height: 9%;
  background: #1f1f1f; border-bottom: 1px solid #2c2c2c;
  display: flex; align-items: center; gap: 1.6cqw; padding: 0 2%;
  font-size: 1.6cqw;
}
.hd-logo { width: 2.4cqw; height: 2.4cqw; border-radius: 0.5cqw; background: #5b5fc7; color: #fff; font-size: 1.3cqw; font-weight: 700; display: grid; place-items: center; }
.hd-title { font-weight: 600; color: #f0f0f0; white-space: nowrap; }
.hd-tabs { display: flex; gap: 1.6cqw; color: #9a9a9a; font-size: 1.4cqw; margin-left: 1cqw; }
.hd-rec { margin-left: auto; display: flex; align-items: center; gap: 0.8cqw; color: #b0b0b0; white-space: nowrap; }
.hd-rec-dot { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #d13438; box-shadow: 0 0 0 0.3cqw rgba(209, 52, 56, 0.25); }
.hd-stage { position: absolute; left: 0; right: 0; top: 9%; bottom: 11%; }
.hd-tile { position: absolute; border-radius: 1cqw; overflow: hidden; }
.hd-tile--other { left: 1.5%; right: 1.5%; top: 3%; bottom: 3%; outline: 2px solid #5b5fc7; outline-offset: -2px; background: #2a2f45; }
.hd-tile--other img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hd-tile--me {
  right: 3%; bottom: 6%; width: 20%; height: 30%;
  background: radial-gradient(120% 90% at 50% 30%, #2b2f4a 0%, #1a1c2b 60%, #111219 100%);
  border: 1px solid #3a3a3a; box-shadow: 0 0.5cqw 2cqw rgba(0, 0, 0, 0.55);
}
.hd-avatar {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: #3d8b6e; color: #fff; font-weight: 600; font-size: 1.5cqw;
  display: grid; place-items: center;
}
.hd-spot, .hd-name {
  position: absolute; left: 2%;
  background: rgba(0, 0, 0, 0.6); color: #eee; border-radius: 0.5cqw;
  padding: 0.4cqw 1cqw; font-size: 1.4cqw;
  display: flex; align-items: center; gap: 0.7cqw; white-space: nowrap;
}
.hd-spot { top: 4%; }
.hd-name { bottom: 4%; }
.hd-name--me { font-size: 1.2cqw; padding: 0.3cqw 0.8cqw; }
.hd-spot svg, .hd-name svg { width: 1.4cqw; height: 1.4cqw; fill: #cfcfcf; stroke: none; }
.hd-name .hd-mudo { fill: #d13438; }
.hd-toolbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 11%;
  background: #1f1f1f; border-top: 1px solid #2c2c2c;
  display: flex; align-items: center; justify-content: center; gap: 0.8cqw;
}
.hd-tb {
  position: relative; width: 5cqw; height: 4.5cqw; border-radius: 0.8cqw;
  background: #2b2b2b; color: #e8e8e8; display: grid; place-items: center;
}
.hd-tb svg { width: 2.4cqw; height: 2.4cqw; }
.hd-tb--sair { background: #c4314b; width: 7.6cqw; color: #fff; margin-left: 1cqw; }
.hd-tb--sair svg { fill: #fff; stroke: none; }
.hd-sep { width: 1px; height: 3cqw; background: #3a3a3a; margin: 0 0.8cqw; }
.hd-badge {
  position: absolute; top: -0.8cqw; right: -0.8cqw;
  min-width: 1.9cqw; height: 1.9cqw; padding: 0 0.4cqw; border-radius: 1cqw;
  background: #c4314b; color: #fff; font-size: 1.1cqw; font-weight: 700;
  display: grid; place-items: center; border: 0.25cqw solid #1f1f1f;
}
.hd-suggest {
  position: absolute; top: 10.5%; left: 10%; width: 80%; min-height: 20%;
  background: rgba(10, 25, 40, 0.72);
  border-radius: 12px;
  padding: 1.1% 1.4%;
  color: rgb(140, 220, 255);
  font-weight: 700; font-size: 1.95cqw; line-height: 1.45;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.hd-think { position: absolute; top: 0; left: 1.4%; font-size: 3.2cqw; opacity: 0; }
.hd-line { margin: 0; opacity: 0; }
.hd-caption {
  position: absolute; left: 7.5%; right: 7.5%; bottom: 14.5%;
  text-align: center; font-weight: 700; font-size: 2.4cqw; line-height: 1.3;
}
.hd-final, .hd-partial { margin: 0; opacity: 0; }
.hd-final {
  color: #fff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 3px rgba(0, 0, 0, 0.8);
}
.hd-partial {
  color: #b4b4b4;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
.hd-on {
  position: absolute; left: 0; bottom: -1cqw;
  font-size: 1.3cqw; color: rgb(0, 220, 80); text-shadow: 1px 1px 0 #000;
}

@keyframes hd-partial { 0%, 3% { opacity: 0; } 6%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes hd-final   { 0%, 12% { opacity: 0; } 15%, 90% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes hd-think   { 0%, 16% { opacity: 0; } 18%, 25% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes hd-line-1  { 0%, 27% { opacity: 0; transform: translateY(4px); } 30%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes hd-line-2  { 0%, 37% { opacity: 0; transform: translateY(4px); } 40%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes hd-line-3  { 0%, 47% { opacity: 0; transform: translateY(4px); } 50%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

.hd-partial { animation: hd-partial 14s linear infinite; }
.hd-final   { animation: hd-final 14s linear infinite; }
.hd-think   { animation: hd-think 14s linear infinite; }
.hd-line-1  { animation: hd-line-1 14s linear infinite; }
.hd-line-2  { animation: hd-line-2 14s linear infinite; }
.hd-line-3  { animation: hd-line-3 14s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero-demo .hd-partial, .hero-demo .hd-final,
  .hero-demo .hd-line, .hero-demo .hd-think { animation: none; }
  .hero-demo .hd-partial, .hero-demo .hd-final, .hero-demo .hd-line { opacity: 1; transform: none; }
  .hero-demo .hd-think { opacity: 0; }
}

/* ==========================================================================
   Prova antes de pagar: simulação por texto na landing
   ========================================================================== */
.demo-app {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 48px rgba(79, 70, 229, 0.15);
  overflow: hidden;
  max-width: 880px; margin: 0 auto;
}
.demo-app-bar {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--surface-container-high);
  font-size: 13px; color: var(--on-surface-variant);
}
.demo-config, .demo-chat { padding: var(--space-xl); }
.demo-fields {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.demo-field { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.demo-field .label { font-size: 11px; color: var(--on-surface-variant); }
.demo-field--wide { margin-bottom: var(--space-lg); }
.demo-app select, .demo-app textarea {
  width: 100%;
  background: var(--surface-container-low);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit; font-size: 14px;
}
.demo-app select:focus, .demo-app textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.demo-app textarea { resize: vertical; }
.demo-actions { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.demo-progress { margin-bottom: var(--space-md); }
.demo-messages {
  display: flex; flex-direction: column; gap: var(--space-md);
  max-height: 380px; overflow-y: auto;
  padding: var(--space-md);
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.demo-msg { max-width: 85%; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-lg); }
.demo-msg--recruiter { align-self: flex-start; background: var(--surface-container-high); }
.demo-msg--candidate { align-self: flex-end; background: var(--primary-container); color: var(--on-primary-container); }
.demo-msg-quem { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
.demo-msg-texto { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.demo-msg-texto.is-typing:empty::after { content: "..."; opacity: 0.6; }
.demo-compose { display: flex; gap: var(--space-md); align-items: flex-end; }
.demo-compose[hidden] { display: none; }
.demo-compose textarea { flex: 1; }
.demo-feedback { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--outline-variant); }
.demo-feedback-text { white-space: pre-wrap; line-height: 1.6; margin: var(--space-md) 0 var(--space-xl); }
.demo-convite {
  background: var(--surface-container-low);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start;
}
.demo-status-msg {
  margin: 0; padding: var(--space-md) var(--space-xl);
  background: var(--error-container); color: var(--on-error-container);
  font-size: 14px;
}
.demo-status-msg a { color: inherit; font-weight: 600; }

@media (max-width: 720px) {
  .demo-fields { grid-template-columns: 1fr 1fr; }
  .demo-config, .demo-chat { padding: var(--space-lg); }
  .demo-messages { max-height: 300px; }
  .demo-msg { max-width: 95%; }
  .demo-compose { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Página /baixar: instalador, SmartScreen ilustrado e próximos passos
   ========================================================================== */
.baixar-hero { padding: var(--space-section) 0 var(--space-2xl); text-align: center; }
.baixar-hero .btn { margin-top: var(--space-xl); }
.baixar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
.passos { list-style: none; padding: 0; margin: 0; counter-reset: passo; display: flex; flex-direction: column; gap: var(--space-lg); }
.passos li { display: flex; gap: var(--space-md); align-items: flex-start; }
.passos li::before {
  counter-increment: passo; content: counter(passo);
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.ss-dialog {
  background: #f3f3f3; color: #1b1b1b; border-radius: 8px;
  padding: 20px 24px; font-family: "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4); margin-bottom: var(--space-lg);
}
.ss-dialog h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: #1b1b1b; }
.ss-dialog p { margin: 0 0 12px; font-size: 13px; color: #333; }
.ss-dialog .ss-link { color: #0b5cad; text-decoration: underline; cursor: default; }
.ss-dialog .ss-botoes { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.ss-dialog .ss-btn { background: #e1e1e1; border: 1px solid #adadad; padding: 6px 18px; font-size: 13px; border-radius: 3px; }
.ss-dialog .ss-btn--ok { outline: 2px solid var(--primary-container); outline-offset: 2px; }
@media (max-width: 720px) { .baixar-grid { grid-template-columns: 1fr; } }
