/* ==========================================================================
   Persona Code — identidade "palco"
   Teatro × minimalismo × código. Base de todas as páginas:
   - palco.css    → tokens, base e componentes compartilhados (este arquivo)
   - home.css     → seções exclusivas da página inicial
   - personas.css → vitrine de personas (LP de site institucional)
   Tema escuro (palco) por padrão; <html data-theme="papel"> ativa o tema claro.
   ========================================================================== */

/* ---------- Paleta e medidas ---------- */
:root {
  --palco: #0c0b0a;
  --palco-2: #141210;
  --palco-3: #1b1916;
  --papel: #efe8dc;
  --papel-2: #e6ded0;
  --papel-3: #dcd3c3;
  --tinta: #1c1814;
  --veludo: #6f1913;        /* vermelho profundo, para superfícies */
  --luz: 255, 236, 204;     /* cor da luz de palco, em RGB */

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --roteiro: "Courier Prime", "Courier New", ui-monospace, monospace;
  --corpo: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Tema palco (padrão) — e as superfícies invertidas dentro do tema papel */
:root,
[data-theme="papel"] .inverso,
[data-theme="papel"] .form-card,
[data-theme="papel"] .plan.is-featured,
[data-theme="papel"] .compare-card.is-good {
  --fundo: var(--palco);
  --fundo-2: var(--palco-2);
  --fundo-3: var(--palco-3);
  --texto: #efe8dc;
  --texto-2: rgba(239, 232, 220, 0.68);
  --texto-3: rgba(239, 232, 220, 0.44);
  --linha: rgba(239, 232, 220, 0.12);
  --linha-forte: rgba(239, 232, 220, 0.26);
  --cortina: #d9493c;       /* vermelho para texto (contraste AA sobre o palco) */
  --sombra: 0 50px 100px -50px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

/* Tema papel — e as superfícies invertidas dentro do palco */
[data-theme="papel"],
:root:not([data-theme="papel"]) .inverso,
:root:not([data-theme="papel"]) .form-card,
:root:not([data-theme="papel"]) .plan.is-featured,
:root:not([data-theme="papel"]) .compare-card.is-good {
  --fundo: var(--papel);
  --fundo-2: var(--papel-2);
  --fundo-3: var(--papel-3);
  --texto: var(--tinta);
  --texto-2: rgba(28, 24, 20, 0.72);
  --texto-3: rgba(28, 24, 20, 0.52);
  --linha: rgba(28, 24, 20, 0.13);
  --linha-forte: rgba(28, 24, 20, 0.28);
  --cortina: #b3261e;       /* vermelho mais escuro: contraste AA sobre o papel */
  --sombra: 0 40px 80px -44px rgba(40, 28, 16, 0.4);
  color-scheme: light;
}

/* Nomes antigos, usados pela vitrine de personas (personas.css) */
:root {
  --bg: var(--fundo);
  --surface: var(--fundo-2);
  --surface-2: var(--fundo-3);
  --border: var(--linha);
  --border-strong: var(--linha-forte);
  --text: var(--texto);
  --text-2: var(--texto-2);
  --text-3: var(--texto-3);
  --accent: var(--cortina);
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--cortina) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--cortina) 45%, transparent);
  --mono: var(--roteiro);
  --serif: var(--display);
  --font: var(--corpo);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 400 1.0625rem/1.65 var(--corpo);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
/* Grão de película sobre tudo: tira o aspecto "digital liso" */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="papel"] body::after { opacity: 0.07; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
strong { font-weight: 600; }
::selection { background: var(--cortina); color: #fff; }
:focus-visible { outline: 2px solid var(--cortina); outline-offset: 3px; }

.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap, .container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 16px;
  background: var(--texto); color: var(--fundo); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Rubrica: a "indicação de cena" — rótulos, notas e créditos em fonte de roteiro */
.rubrica {
  display: inline-block;
  font: 400 0.76rem/1.5 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-2);
}
.kicker { display: block; margin-bottom: 22px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.nav.is-scrolled, .nav.is-open {
  background: color-mix(in srgb, var(--fundo) 86%, transparent); border-color: var(--linha);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: var(--nav-h); }

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font: 500 1.02rem/1 var(--corpo); letter-spacing: -0.01em; color: var(--texto); text-decoration: none;
}
/* Símbolo: a máscara — metade luz (a persona), metade sombra (o código por trás) */
.logo-mark {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.logo-code { font-family: var(--roteiro); color: var(--texto-2); }

.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--texto-2); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--texto); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-cta {
  padding: 11px 18px; border: 1px solid var(--linha-forte); color: var(--texto); text-decoration: none;
  font: 400 0.76rem/1 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover { background: var(--texto); border-color: var(--texto); color: var(--fundo); }

/* Seletor de idioma (PT / EN) */
.lang { display: flex; align-items: center; gap: 6px; font: 400 0.74rem/1 var(--roteiro); letter-spacing: 0.12em; color: var(--texto-3); }
.lang a { padding: 8px 2px; color: var(--texto-3); text-decoration: none; transition: color 0.2s; }
.lang a:hover, .lang a[aria-current] { color: var(--texto); }

.nav-toggle {
  display: none; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--linha-forte); background: transparent; color: var(--texto); cursor: pointer;
}
.nav-toggle span { grid-area: 1 / 1; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav.is-open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none; position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 4px;
    padding: 20px var(--gutter) 32px; background: var(--fundo); border-bottom: 1px solid var(--linha);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 8px 0; font: 400 1.9rem/1.2 var(--display); color: var(--texto); }
  .nav-cta { margin-left: auto; }
  .nav-links + .lang { margin-left: auto; }
  .lang ~ .nav-cta { margin-left: 0; }
  .nav-toggle { display: grid; }
}
@media (max-width: 520px) { .hide-sm { display: none !important; } } /* utilitário: vence o display dos botões */
@media (max-width: 420px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .lang ~ .nav-toggle { margin-left: 0; }
}

/* ---------- Botões ---------- */
.cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 24px; border: 1px solid var(--linha-forte); background: transparent; color: var(--texto);
  font: 400 0.8rem/1.3 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.cta .i, .btn .i { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.cta:hover, .btn:hover { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.cta:hover .i, .btn:hover .i-move { transform: translateX(4px); }
.cta-solid, .btn-primary { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.cta-solid:hover, .btn-primary:hover { background: transparent; border-color: var(--linha-forte); color: var(--texto); }
.cta-quiet { border-color: transparent; padding-inline: 4px; color: var(--texto-2); }
.cta-quiet:hover { background: none; border-color: transparent; color: var(--texto); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 0.72rem; }
.btn-lg { min-height: 56px; padding-inline: 28px; }
.btn-block, .cta-block { width: 100%; }

/* ---------- Atos e cenas (cabeçalhos de seção) ---------- */
.act { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.act-num { font: 400 0.76rem/1 var(--roteiro); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cortina); }
.act-rule { align-self: center; width: 56px; height: 1px; background: var(--linha-forte); }
.act-name { font: italic 400 1.35rem/1.1 var(--display); }
.act-note { font: 400 0.82rem/1 var(--roteiro); color: var(--texto-3); }

.display { font: 400 clamp(2.6rem, 5.4vw, 4.9rem)/1.02 var(--display); letter-spacing: -0.022em; }
.display em, .hl { font-style: italic; }
:root:not([data-theme="papel"]) .display em,
:root:not([data-theme="papel"]) .hl { text-shadow: 0 0 46px rgba(var(--luz), 0.35); }
.h2, .section-head h2 { font: 400 clamp(2.1rem, 4.4vw, 3.8rem)/1.05 var(--display); letter-spacing: -0.02em; }
.lead { max-width: 40ch; margin-top: 26px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--texto-2); }
.muted { color: var(--texto-2); }

/* ---------- Seções (LPs) ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 150px); border-top: 1px solid var(--linha); }
.section-tight { padding-top: 0; border-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.section-head p { max-width: 56ch; margin-top: 20px; color: var(--texto-2); }
.section-head.center, .center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.center .act, .cta-band .act { justify-content: center; }
.note { margin-top: 40px; text-align: center; font: italic 400 1.15rem/1.4 var(--display); color: var(--texto-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

/* ---------- Abertura das LPs: texto + "em cena" sob o foco de luz ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) 0 clamp(80px, 10vw, 128px);
}
/* Foco de luz vindo do alto, sobre a coluna da direita (ou ao centro) */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 74%; width: min(1100px, 120vw); transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% -4%, transparent 0deg 162deg, rgba(var(--luz), 0.13) 171deg 189deg, transparent 198deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}
.hero:has(.hero-center)::before { left: 50%; }
.js .hero::before { animation: acender 2.4s var(--ease) 0.3s both; }
[data-theme="papel"] .hero::before { display: none; }
@keyframes acender {
  0% { opacity: 0; }
  6% { opacity: 0.55; }
  9% { opacity: 0.12; }
  14% { opacity: 0.8; }
  17% { opacity: 0.35; }
  45%, 100% { opacity: 1; }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(48px, 6vw, 88px); align-items: center; }
.hero-center { max-width: 900px; margin-inline: auto; text-align: center; }
.hero-center .lead { margin-inline: auto; }
.hero-center .hero-ctas { justify-content: center; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 0.76rem/1.4 var(--roteiro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-2);
}
.hero-trust .i { width: 14px; height: 14px; color: var(--cortina); stroke-width: 2.2; }

/* ---------- Cards: sem caixa — linhas, como colunas de um programa de peça ---------- */
.grid { display: grid; gap: 0 clamp(24px, 3vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 28px 0 40px; border-top: 1px solid var(--linha-forte); }
.card h3 { margin-bottom: 10px; font: 400 1.5rem/1.15 var(--display); letter-spacing: -0.01em; }
.card p { color: var(--texto-2); font-size: 0.98rem; }
.card-icon { display: block; margin-bottom: 20px; color: var(--cortina); }
.card-icon .i { width: 24px; height: 24px; stroke-width: 1.4; }
.card-icon.is-danger { color: var(--texto-3); }
.card-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.card-row .card-icon { margin: 4px 0 0; }

/* ---------- Listas ---------- */
.list-check, .list-x { display: grid; gap: 12px; }
.list-check li, .list-x li { position: relative; padding-left: 30px; color: var(--texto-2); }
.list-check li strong, .list-x li strong { color: var(--texto); font-weight: 600; }
.list-check li::before, .list-x li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 15px; height: 15px; background: var(--cortina);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.list-check { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.list-x { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.list-x li::before { background: var(--texto-3); }

/* ---------- Etapas ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 clamp(20px, 2.4vw, 36px); }
.steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
.step { padding: 24px 0 36px; border-top: 1px solid var(--linha-forte); }
.step-num { display: block; margin-bottom: 30px; font: 400 0.76rem/1 var(--roteiro); letter-spacing: 0.14em; color: var(--cortina); }
.step-num::before { content: "ETAPA "; }
:lang(en) .step-num::before { content: "STEP "; }
.step h3 { margin-bottom: 10px; font: 400 1.4rem/1.15 var(--display); }
.step p { color: var(--texto-2); font-size: 0.95rem; }

/* ---------- Comparativos ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.compare-card { padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--linha-forte); background: var(--fundo); color: var(--texto); }
.compare-card h3 { margin-bottom: 26px; }
.compare-card.is-good { border-color: transparent; box-shadow: var(--sombra); }
.tag { font: 400 0.76rem/1.4 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-2); }
.compare-card.is-good .tag { color: var(--cortina); }

/* Tabela: a coluna "boa" fica sob a luz */
.ctable { border-top: 1px solid var(--linha-forte); }
.ctable-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--linha); }
.ctable-row > div { display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 0; font-size: 0.98rem; }
.ctable-row > div:first-child { font: 400 1.2rem/1.25 var(--display); }
.ctable-row > div + div { padding-left: 18px; }
.ctable-head > div,
.ctable-head > div:first-child { font: 400 0.74rem/1.4 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-3); }
.ctable-head > div.good { color: var(--cortina); }
.ctable .bad { color: var(--texto-3); }
.ctable .good { color: var(--texto); background: rgba(var(--luz), 0.045); }
[data-theme="papel"] .ctable .good { background: rgba(28, 24, 20, 0.04); }
.ctable-row:not(.ctable-head) .bad::before,
.ctable-row:not(.ctable-head) .good::before {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.ctable .bad::before {
  background: var(--texto-3);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}
.ctable .good::before {
  background: var(--cortina);
  --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- Planos: o destacado é impresso em papel ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 26px;
  padding: 36px 30px 30px; border: 1px solid var(--linha-forte); background: var(--fundo); color: var(--texto);
}
.plan h3 { font: 400 2rem/1.05 var(--display); letter-spacing: -0.015em; }
.plan-desc { margin-top: 8px; color: var(--texto-2); font-size: 0.95rem; }
.plan .list-check { flex: 1; font-size: 0.95rem; }
.plan.is-featured { border-color: transparent; box-shadow: var(--sombra); }
.plan-badge {
  position: absolute; top: -12px; left: 30px; padding: 4px 10px;
  background: var(--cortina); color: #fff;
  font: 400 0.7rem/1.4 var(--roteiro); letter-spacing: 0.12em; text-transform: uppercase;
}
.plan-price {
  padding-top: 20px; border-top: 1px solid var(--linha);
  font: 400 0.76rem/1.4 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-3);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px;
  border: 1px solid var(--linha-forte); font-size: 0.93rem;
}
.chip .i { width: 16px; height: 16px; color: var(--cortina); }
.chips.mono .chip { font: 400 0.84rem/1.4 var(--roteiro); color: var(--texto-2); }

/* ---------- Destaque ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: clamp(28px, 4vw, 52px); border: 1px solid var(--linha-forte);
  background: radial-gradient(70% 120% at 0% 0%, rgba(var(--luz), 0.06), transparent 70%);
}
.callout .card-icon { margin: 4px 0 0; }
.callout .card-icon .i { width: 30px; height: 30px; }
.callout h3 { margin-bottom: 12px; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--display); }
.callout p { max-width: 70ch; color: var(--texto-2); }

/* ---------- Perguntas frequentes ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--linha-forte); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; list-style: none; cursor: pointer;
  font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; font: 400 1.4rem/1 var(--roteiro); color: var(--texto-3);
  transition: transform 0.3s var(--ease), color 0.2s;
}
.faq summary:hover::after, .faq details[open] summary::after { color: var(--cortina); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 56px 26px 0; color: var(--texto-2); }

/* ---------- Chamada final: um foco de luz sobre a pergunta ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(64px, 9vw, 128px) clamp(24px, 5vw, 64px); border: 1px solid var(--linha);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(45% 75% at 50% 0%, rgba(var(--luz), 0.13), transparent 75%);
}
[data-theme="papel"] .cta-band::before { background: radial-gradient(45% 75% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 75%); }
.cta-band h2 { max-width: 18ch; margin-inline: auto; font: 400 clamp(2.2rem, 4.6vw, 4rem)/1.05 var(--display); letter-spacing: -0.02em; }
.cta-band p { max-width: 52ch; margin: 22px auto 0; color: var(--texto-2); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Contato e formulários ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-grid .lead { max-width: 46ch; }

.channels { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--linha); }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--linha); text-decoration: none;
}
.channel .card-icon { margin: 0; }
.channel small { display: block; font: 400 0.72rem/1.4 var(--roteiro); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-3); }
.channel span { font: 400 1.3rem/1.3 var(--display); }
.channel:hover span { font-style: italic; }

.next-steps { display: grid; gap: 14px; margin-top: 36px; counter-reset: ns; }
.next-steps li { display: flex; gap: 16px; color: var(--texto-2); counter-increment: ns; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font: 400 0.8rem/1.95 var(--roteiro); color: var(--cortina); }

/* A ficha: um cartão de papel (ou de palco, no tema papel) com o formulário */
.form-card { padding: clamp(26px, 3.4vw, 44px); background: var(--fundo); color: var(--texto); box-shadow: var(--sombra); }
.form { display: grid; gap: 26px; align-content: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font: 400 0.76rem/1.4 var(--roteiro); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-2); }
.opt { text-transform: none; letter-spacing: 0; color: var(--texto-3); }
.input {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--linha-forte); border-radius: 0;
  background: transparent; color: var(--texto); font: 400 1.05rem/1.5 var(--corpo);
  -webkit-appearance: none; appearance: none; transition: border-color 0.25s;
}
.input::placeholder { color: var(--texto-3); }
.input:focus { outline: none; border-bottom-color: var(--texto); }
textarea.input { resize: vertical; min-height: 84px; }
select.input {
  cursor: pointer; padding-right: 28px;
  background: linear-gradient(45deg, transparent 50%, var(--texto-2) 50%) calc(100% - 9px) 52% / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--texto-2) 50%) calc(100% - 4px) 52% / 6px 6px no-repeat;
}
select.input option { background: var(--fundo); color: var(--texto); }
.form > .cta, .form > .btn { margin-top: 6px; }
.form > .cta:not(.btn-block) { justify-self: start; }
.form-success { display: none; align-items: flex-start; gap: 10px; font-size: 0.94rem; color: var(--texto-2); }
.form-success .i { color: var(--cortina); margin-top: 3px; }
.form.is-sent .form-success { display: flex; }
.form-note { font-size: 0.82rem; color: var(--texto-3); }
.form-note a { color: var(--texto-2); }

/* ---------- Rodapé ---------- */
.foot { padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--linha); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-brand p { max-width: 36ch; margin-top: 18px; font-size: 0.94rem; color: var(--texto-2); }
.foot nav { display: grid; align-content: start; gap: 10px; }
.foot nav .rubrica { margin-bottom: 6px; color: var(--texto-3); }
.foot nav a { justify-self: start; color: var(--texto-2); text-decoration: none; font-size: 0.94rem; }
.foot nav a:hover { color: var(--texto); }
.foot-end {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 24px 32px; border-top: 1px solid var(--linha);
  font-size: 0.84rem; color: var(--texto-3);
}
.foot-quote { font: italic 400 1rem/1.4 var(--display); color: var(--texto-2); }

/* Rodapé curto das LPs */
.footer-min { padding: 30px 0; border-top: 1px solid var(--linha); }
.footer-min .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px;
  font-size: 0.86rem; color: var(--texto-3);
}
.footer-min nav { display: flex; gap: 22px; }
.footer-min nav a { color: var(--texto-2); text-decoration: none; }
.footer-min nav a:hover { color: var(--texto); }

/* ---------- WhatsApp flutuante (só nas LPs) ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .i { width: 26px; height: 26px; stroke-width: 2; }

/* ==========================================================================
   Em cena nas LPs: maquetes feitas em HTML/CSS
   ========================================================================== */
.mock { position: relative; }
/* Foco de luz no chão, sob a maquete */
.mock::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -16%; width: 130%; height: 40%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(var(--luz), 0.17), rgba(var(--luz), 0.04) 55%, transparent 72%);
}
[data-theme="papel"] .mock::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(28, 24, 20, 0.12), transparent 70%); }

.window {
  position: relative; overflow: hidden; container-type: inline-size;
  border-radius: 10px; background: var(--fundo-2);
  box-shadow: var(--sombra), 0 0 0 1px var(--linha);
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--fundo-3); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--linha-forte); }
.window-url {
  flex: 1; max-width: 280px; margin-inline: auto; padding: 3px 10px; border-radius: 5px;
  background: var(--fundo-2); color: var(--texto-3); text-align: center;
  font: 400 0.7rem/1.4 var(--roteiro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Mini-página dentro do navegador */
.mini { display: grid; gap: clamp(14px, 4cqi, 22px); padding: clamp(16px, 5cqi, 28px); }
.mini-nav { display: flex; justify-content: space-between; align-items: center; }
.mini-logo { width: 72px; height: 12px; background: var(--texto); opacity: 0.8; }
.mini-pill { width: 64px; height: 22px; border-radius: 99px; background: var(--cortina); }
.mini-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.mini-tag {
  display: inline-block; margin-bottom: 10px; color: var(--cortina);
  font: 400 clamp(0.55rem, 2cqi, 0.68rem)/1.4 var(--roteiro); letter-spacing: 0.12em; text-transform: uppercase;
}
.mini-title { margin-bottom: 12px; font: 400 clamp(1rem, 5cqi, 1.7rem)/1.08 var(--display); color: var(--texto); }
.mini-line { display: block; height: 6px; margin-bottom: 7px; background: var(--linha-forte); }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; } .w40 { width: 40%; }
.mini-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: clamp(6px, 2cqi, 9px) clamp(10px, 3.4cqi, 16px); background: var(--texto); color: var(--fundo);
  font: 400 clamp(0.55rem, 2.1cqi, 0.72rem)/1.2 var(--roteiro); letter-spacing: 0.08em; text-transform: uppercase;
}
.mini-img {
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 65% 30%, rgba(var(--luz), 0.28), transparent 60%), linear-gradient(160deg, var(--fundo-3), var(--fundo));
}
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-cards span { display: grid; gap: 8px; align-content: start; height: clamp(44px, 14cqi, 68px); padding-top: 10px; border-top: 1px solid var(--linha-forte); }
.mini-cards span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--cortina); }
.mini-cards span::after { content: ""; width: 70%; height: 5px; background: var(--linha-forte); }

/* Etiquetas flutuantes */
.chip-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; white-space: nowrap;
  background: color-mix(in srgb, var(--fundo-2) 92%, transparent); box-shadow: var(--sombra), 0 0 0 1px var(--linha-forte);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: flutuar 6s ease-in-out infinite;
}
.chip-float small { display: block; font: 400 0.68rem/1.4 var(--roteiro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); }
.chip-float strong { display: block; font: 400 1.05rem/1.2 var(--display); }
.cf-icon { display: grid; place-items: center; color: var(--cortina); }
.cf-icon .i { width: 20px; height: 20px; }
.cf-1 { top: 18%; left: -36px; }
.cf-2 { bottom: 10%; right: -28px; animation-delay: -3s; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Funil (LP + tráfego) */
.funnel-body { padding: clamp(18px, 5cqi, 28px); }
.funnel-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--linha); }
.funnel-step.is-final { border-color: var(--cortina); background: color-mix(in srgb, var(--cortina) 8%, transparent); }
.funnel-step strong { display: block; font: 400 1.05rem/1.25 var(--display); }
.funnel-step small { display: block; color: var(--texto-3); font-size: 0.78rem; }
.fs-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--linha-forte); border-radius: 50%; color: var(--cortina); }
.fs-icon .i { width: 17px; height: 17px; }
.fs-tag {
  margin-left: auto; padding: 4px 8px; border: 1px solid var(--linha); white-space: nowrap;
  font: 400 0.64rem/1.4 var(--roteiro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-2);
}
.funnel-line { position: relative; height: 26px; margin-left: 33px; border-left: 1px dashed var(--linha-forte); }
.funnel-line span {
  position: absolute; left: -4px; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cortina); animation: descer 1.6s linear infinite;
}
.funnel-line:nth-of-type(2) span { animation-delay: -0.8s; }
@keyframes descer { 0% { top: -4px; opacity: 0; } 25%, 75% { opacity: 1; } 100% { top: 22px; opacity: 0; } }
.funnel-chart { margin-top: 20px; padding: 16px; border: 1px solid var(--linha); }
.fc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fc-head small { color: var(--texto-3); font-size: 0.78rem; }
.fc-trend { font: 400 0.74rem var(--roteiro); color: var(--cortina); }
.fc-bars { display: flex; align-items: flex-end; gap: 8px; height: 84px; }
.fc-bars i {
  flex: 1; height: var(--h); background: linear-gradient(180deg, var(--texto), color-mix(in srgb, var(--texto) 15%, transparent));
  opacity: 0.75; transform-origin: bottom; animation: crescer 0.9s var(--ease) both; animation-delay: calc(var(--i) * 0.08s + 0.6s);
}
.fc-bars i:last-child { background: linear-gradient(180deg, var(--cortina), color-mix(in srgb, var(--cortina) 15%, transparent)); opacity: 1; }
@keyframes crescer { from { transform: scaleY(0); } }

/* Sistema / painel (empresas) */
.appui-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.appui-side { display: grid; align-content: start; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--linha); background: var(--fundo-3); }
.appui-logo { width: 70px; height: 11px; margin: 4px 8px 18px; background: var(--texto); opacity: 0.8; }
.appui-side span { display: flex; align-items: center; gap: 9px; padding: 8px; font-size: 0.78rem; color: var(--texto-2); }
.appui-side span .i { width: 15px; height: 15px; }
.appui-side span.is-active { background: var(--fundo-2); color: var(--texto); font-weight: 600; }
.appui-side span.is-active .i { color: var(--cortina); }
.appui-main { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 18px; }
.appui-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.appui-top strong { font: 400 1.2rem/1.2 var(--display); }
.appui-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--linha); font: 400 0.68rem/1.4 var(--roteiro); color: var(--texto-2); }
.appui-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3f9b5b; }
.appui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.appui-kpis div { min-width: 0; padding: 12px; border: 1px solid var(--linha); background: var(--fundo); }
.appui-kpis small { display: block; overflow: hidden; font-size: 0.68rem; color: var(--texto-3); white-space: nowrap; text-overflow: ellipsis; }
.appui-kpis strong { display: block; margin: 2px 0; font: 400 clamp(1rem, 3.6cqi, 1.3rem)/1.2 var(--display); }
.appui-kpis em { font: normal 400 0.68rem var(--roteiro); color: #2f7a46; }
.appui-chart { height: 90px; padding-top: 10px; overflow: hidden; border: 1px solid var(--linha); background: var(--fundo); }
.appui-chart svg { width: 100%; height: 100%; }
.appui-chart .area { fill: color-mix(in srgb, var(--cortina) 12%, transparent); stroke: none; }
.appui-chart .line { fill: none; stroke: var(--cortina); stroke-width: 2; vector-effect: non-scaling-stroke; }
.appui-table { display: grid; overflow: hidden; border: 1px solid var(--linha); }
.appui-table div { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--linha); font-size: 0.75rem; }
.appui-table div:first-child { border-top: 0; }
.appui-table span:first-child { font-family: var(--roteiro); color: var(--texto-3); }
.appui-table span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st { padding: 2px 8px; font: 400 0.64rem/1.5 var(--roteiro); }
.st.ok { background: rgba(63, 155, 91, 0.14); color: #2f7a46; }
.st.wait { background: color-mix(in srgb, var(--cortina) 12%, transparent); color: var(--cortina); }

/* ---------- Páginas simples (privacidade, 404) ---------- */
.page-simple { padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); }
.prose { max-width: 760px; }
.prose h1 { margin-bottom: 20px; font: 400 clamp(2.6rem, 5vw, 4.2rem)/1.04 var(--display); letter-spacing: -0.02em; }
.prose h2 { margin: 48px 0 12px; font: 400 1.7rem/1.2 var(--display); }
.prose p, .prose li { color: var(--texto-2); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; list-style: disc; }
.prose li::marker { color: var(--cortina); }
.prose strong { color: var(--texto); }
.prose a { color: var(--texto); text-decoration-color: var(--cortina); text-underline-offset: 3px; }

/* ---------- Entradas ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 0.1s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Telas menores ---------- */
@media (max-width: 1200px) { .cf-1 { left: -12px; } .cf-2 { right: -10px; } }
@media (max-width: 1080px) {
  .steps, .steps.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { left: 50%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .compare { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .ctable-row { grid-template-columns: 1fr 1fr; }
  .ctable-row > div { padding: 14px 12px 14px 0; font-size: 0.9rem; }
  .ctable-row > div:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .ctable-row > div + div { padding-left: 12px; }
  .ctable-row > div:nth-child(2) { padding-left: 0; }
  .ctable-head > div:first-child { display: none; }
  .faq details p { padding-right: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .steps, .steps.cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .cf-1 { top: auto; bottom: -22px; left: 8px; }
  .cf-2 { display: none; }
}
@media (max-width: 560px) {
  .appui-body { grid-template-columns: 1fr; }
  .appui-side { display: none; }
}

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