/* Uazapio — LP. Layout das seções e animações próprias da página.
   Tokens, componentes e movimento base vêm de tokens.css, components.css e motion.js.
   Efeitos ligados à rolagem (GSAP) ficam em scroll.js; este arquivo só define os estados. */

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: 0.75rem 1rem; border-radius: var(--radius);
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); text-decoration: none; font-weight: 500; }
.skip:focus { top: 1rem; }

/* Enquanto o bloco não entrou na tela, as animações internas dele esperam. */
.js-reveal [data-reveal]:not(.is-in) *, .js-reveal [data-reveal]:not(.is-in)::before, .js-reveal [data-reveal]:not(.is-in) *::before,
.js-reveal [data-reveal]:not(.is-in) *::after { animation-play-state: paused !important; }

/* Rede de segurança: nada de rolagem lateral no celular. */
main { overflow-x: clip; }

/* ───────── Topo fixo ───────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background-color: hsl(var(--background) / 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.top.is-scrolled { border-bottom-color: hsl(var(--border) / 0.8); background-color: hsl(var(--background) / 0.86); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font-weight: 500; letter-spacing: -0.01em; min-height: 3rem; }
.brand-mark { width: 1.75rem; height: 1.75rem; }
.brand:hover .bm-path { animation: draw 900ms var(--ease-out); }
.brand:hover .bm-ring { animation: ring-pop 500ms var(--ease-spring) 650ms; transform-box: fill-box; transform-origin: center; }
.top nav { display: none; }
.top nav a { position: relative; text-decoration: none; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; padding: 0.75rem 0.25rem; transition: color var(--dur-fast) var(--ease-out); }
.top nav a::after { content: ''; position: absolute; left: 0.25rem; right: 0.25rem; bottom: 0.45rem; height: 1px; background: hsl(var(--primary));
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.top nav a:hover { color: hsl(var(--foreground)); }
.top nav a:hover::after, .top nav a[aria-current='true']::after { transform: scaleX(1); }
.top nav a[aria-current='true'] { color: hsl(var(--foreground)); }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
.top .btn-ghost { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: hsl(var(--primary));
  transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0.85; }

/* ───────── Seções ───────── */
.sec { padding: 4.5rem 0; }
.section-head { max-width: 42rem; display: grid; gap: 0.875rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 300; }
.section-head h2 em, .final h2 em { font-style: normal; color: hsl(var(--primary)); }
.eyebrow-amber { color: hsl(var(--amber)); }
.sec-cta { margin-top: 2.5rem; display: flex; justify-content: center; }
.sec-cta .btn { width: 100%; }
/* Palavras do título que sobem ao rolar (scroll.js quebra o h2 em .w) */
.w { display: inline-block; }

/* ═══════════════════════ 1. Topo (hero) ═══════════════════════ */
.hero { position: relative; padding: 2.5rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; }
.hero h1 { font-size: clamp(1.875rem, 1.2rem + 4vw, 4rem); font-size: clamp(1.875rem, min(1.2rem + 4vw, 6.6vh + 0.5rem), 4rem); overflow-wrap: break-word; font-weight: 300; letter-spacing: -0.035em; line-height: 1.06; }
.hero h1 em { font-style: normal; color: hsl(var(--primary)); font-weight: 400; }
/* Teste A/B: só o título sorteado aparece. Sem JS, o A. */
.hv { display: none; }
html:not([data-hero]) .hv-a, [data-hero='a'] .hv-a, [data-hero='b'] .hv-b, [data-hero='c'] .hv-c { display: inline; }
.hero .lead { font-size: 1.125rem; max-width: 34rem; }
.hero-actions { margin-top: 0.5rem; }
.hero-actions .btn { width: 100%; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust svg { width: 1.125rem; height: 1.125rem; color: hsl(var(--primary)); flex: none; }

/* Convite para rolar (só desktop, onde o topo ocupa a primeira dobra inteira) */
.scroll-cue { display: none; position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 2;
  flex-direction: column; align-items: center; gap: 0.5rem; text-decoration: none; padding: 0.25rem 0.75rem;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--subtle-foreground));
  transition: color var(--dur-fast) var(--ease-out); }
.scroll-cue:hover { color: hsl(var(--primary-soft-foreground)); }
.mouse { width: 1.375rem; height: 2.125rem; border-radius: 999px; border: 1.5px solid currentColor; display: grid; justify-items: center; padding-top: 0.4rem; }
.mouse i { width: 3px; height: 0.45rem; border-radius: 2px; background: hsl(var(--primary)); animation: wheel 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(0.65rem); opacity: 0; } 100% { opacity: 0; } }

/* A cena: anúncio → conversa → funil, e a venda voltando ao anúncio pela alça da direita. */
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem; padding: 1.25rem 0 2.75rem; max-width: 30rem; width: 100%; justify-self: center; }
.scene::before { /* brilho de fundo */
  content: ''; position: absolute; inset: 10% 0 0 -10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, hsl(var(--primary) / 0.12), transparent); filter: blur(8px);
}
.scene-col { display: grid; justify-items: stretch; }
.sc-ad, .sc-chat, .sc-funnel li {
  background: hsl(var(--surface-raised)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-card);
}
.sc-ad { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 0.875rem; align-items: center; padding: 1.375rem 0.875rem 0.875rem; border-radius: var(--radius-lg); }
.ad-thumb { --g1: 188 60% 40%; --g2: 142 55% 35%; width: 3rem; height: 3rem; border-radius: 0.625rem; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--g1)), hsl(var(--g2))); color: hsl(140 40% 96%); }
.ad-thumb svg { width: 1.5rem; height: 1.5rem; display: block; }
.ad-text { display: grid; gap: 0.125rem; }
.ad-text small { font-size: 0.75rem; color: hsl(var(--subtle-foreground)); }
.ad-text b { font-weight: 500; }
.ad-btn { grid-column: 1 / -1; text-align: center; font-size: 0.875rem; font-weight: 500; padding: 0.5rem; border-radius: var(--radius-sm);
  background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border)); }
.ping {
  position: absolute; right: 0.75rem; top: -0.9rem; display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 500;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-glow); white-space: nowrap;
}
.ping svg { width: 0.875rem; height: 0.875rem; }

.wire { width: 2.5rem; height: 2.75rem; justify-self: center; overflow: visible; }
.wire path, .loop path { fill: none; stroke-linecap: round; }
.w-base, .l-base { stroke: hsl(var(--border-strong)); stroke-width: 2; stroke-dasharray: 2 5; }
.w-draw, .l-draw { stroke: hsl(var(--primary) / 0.7); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; }
.w-run, .l-run { stroke: hsl(var(--primary)); stroke-width: 5; stroke-dasharray: 0.1 200; stroke-dashoffset: 200; opacity: 0; }

.sc-chat { border-radius: var(--radius-lg); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.875rem; border-bottom: 1px solid hsl(var(--border)); }
.chat-head b { font-weight: 500; display: block; line-height: 1.2; }
.chan { margin-left: auto; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill);
  background: hsl(var(--primary-soft)); color: hsl(var(--primary-soft-foreground)); white-space: nowrap; }
.chan.ig { background: hsl(var(--cyan-soft)); color: hsl(var(--cyan)); }
.chat-head small { color: hsl(var(--muted-foreground)); font-size: 0.75rem; }
.avatar { width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center; flex: none; background: hsl(var(--cyan-soft)); color: hsl(var(--cyan)); font-weight: 500; }
.chat-body { position: relative; display: grid; gap: 0.625rem; padding: 0.875rem; min-height: 8.25rem; align-content: start; }
.typing { position: absolute; left: 0.875rem; top: 0.875rem; display: inline-flex; gap: 0.25rem; padding: 0.625rem 0.75rem; border-radius: 0.875rem; border-top-left-radius: 0.25rem; background: hsl(var(--surface-sunken)); opacity: 0; }
.typing i { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: hsl(var(--muted-foreground)); }
.bubble { max-width: 90%; padding: 0.625rem 0.875rem; border-radius: 0.875rem; border-top-left-radius: 0.25rem; font-size: 0.9375rem; line-height: 1.45;
  background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border)); }
.origin { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius);
  background: hsl(var(--primary) / 0.09); border: 1px dashed hsl(var(--primary) / 0.5); font-size: 0.8125rem; justify-self: start; }
.origin svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
.origin b { font-weight: 500; color: hsl(var(--primary-soft-foreground)); }
.origin span { color: hsl(var(--muted-foreground)); }

.sc-funnel { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 0.5rem; }
.sc-funnel li { padding: 0.625rem 0.5rem; border-radius: var(--radius); font-size: 0.8125rem; text-align: center; color: hsl(var(--muted-foreground)); display: grid; gap: 0.125rem; align-content: center; }
.sc-funnel li.won { color: hsl(var(--primary-soft-foreground)); border-color: hsl(var(--primary) / 0.55); background: hsl(var(--primary-soft)); }
.sc-funnel li.won b { font-weight: 500; font-size: 1rem; color: hsl(var(--foreground)); }

.loop { grid-column: 2; grid-row: 1; width: 100%; height: 100%; overflow: visible; }
.loop .l-draw { stroke-dashoffset: 0; }
/* Rótulo da alça: um ponto de largura zero exatamente sobre a linha (x = 46 de 56 no desenho, meio da altura);
   o texto gira em volta dele e ganha um fundo próprio, então a linha "entra" e "sai" do selo sem cobrir as letras. */
.loop-label { grid-column: 2; grid-row: 1; align-self: center; justify-self: start; margin-left: calc(100% * 46 / 56);
  position: relative; z-index: 1; width: 0; height: 0; }
.ll-text { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) rotate(90deg); white-space: nowrap; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  color: hsl(var(--primary-soft-foreground)); background: hsl(var(--background)); border: 1px solid hsl(var(--primary) / 0.45); }
.scene-foot { position: absolute; left: 0; right: 3.5rem; bottom: 0; display: flex; align-items: center; gap: 0.75rem; }
.scene-note { font-size: 0.75rem; color: hsl(var(--subtle-foreground)); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-dots { display: flex; gap: 0.125rem; }
.scene-dots button { position: relative; width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.scene-dots button::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: hsl(var(--border-strong));
  transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.scene-dots button[aria-current='true']::before { width: 1.25rem; background: hsl(var(--primary)); }
.scene-dots button:hover::before { background: hsl(var(--primary) / 0.6); }
/* Troca de exemplo: o conteúdo some rápido e a sequência recomeça. */
.scene-col, .scene .loop, .scene .loop-label { transition: opacity 320ms var(--ease-in-out); }
.scene.out .scene-col, .scene.out .loop, .scene.out .loop-label { opacity: 0; }

/* Sequência de entrada (uma vez, ~4,5 s). Com "reduzir movimento", tudo já aparece pronto. */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(80ms + var(--d) * 90ms); }
  .scene.play .sc { animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: var(--t); }
  .scene.play .w-draw { animation: draw 420ms var(--ease-out) both; animation-delay: var(--t); }
  .scene.play .w-run { animation: run 700ms var(--ease-in-out) both; animation-delay: var(--t); }
  .scene.play .typing { animation: typing-life 700ms linear both; animation-delay: var(--t); }
  .scene.play .typing i { animation: blink 900ms ease-in-out infinite; }
  .scene.play .typing i:nth-child(2) { animation-delay: 150ms; }
  .scene.play .typing i:nth-child(3) { animation-delay: 300ms; }
  .scene.play .bubble { animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: var(--t); }
  .scene.play .origin { animation: pop 560ms var(--ease-spring) both; animation-delay: var(--t); }
  .scene.play .won { animation: rise var(--dur-slow) var(--ease-out) both, won-glow 1.4s var(--ease-out) 3.6s 2; animation-delay: var(--t), 3.7s; }
  .scene.play .l-draw { animation: draw-rev 900ms var(--ease-in-out) 3.5s both; }
  .scene.play .l-run { animation: run-rev 1.1s var(--ease-in-out) 3.5s both, run-rev 1.6s var(--ease-in-out) 5.4s infinite; }
  .scene.play .loop-label { animation: fade 600ms var(--ease-out) 4s both; }
  .scene.play .ping { animation: pop 560ms var(--ease-spring) both; animation-delay: var(--t); }
}
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes draw-rev { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes run { 0% { opacity: 1; stroke-dashoffset: 0; } 90% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes run-rev { 0% { opacity: 0; stroke-dashoffset: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes typing-life { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 0.3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes won-glow { 0% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.45); } 100% { box-shadow: 0 0 0 12px hsl(var(--primary) / 0); } }
@keyframes ring-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ═══════════════════════ 2. Dor ═══════════════════════ */
.pain-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 2.5rem; }
.pain-head .section-head { margin-bottom: 0; }
.broken { width: 100%; max-width: 20rem; height: auto; overflow: visible; }
.broken path { fill: none; stroke-linecap: round; stroke-width: 2.5; }
.br-a, .br-b { stroke: hsl(var(--muted-foreground) / 0.6); stroke-dasharray: 100; }
.br-frag path { stroke: hsl(var(--amber)); }
.br-frag { transform-box: view-box; }
.br-dot { fill: hsl(var(--muted-foreground)); }
.br-ring { fill: none; stroke: hsl(var(--muted-foreground) / 0.6); stroke-width: 2.5; stroke-dasharray: 4 4; }
.br-q { fill: hsl(var(--amber)); font: 300 28px var(--font-sans); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .broken .br-a { animation: draw 800ms var(--ease-out) 200ms both; }
  .broken .br-b { animation: draw 800ms var(--ease-out) 500ms both; }
  .broken .br-q { animation: bob 2.6s ease-in-out 1.2s infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.pains { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.pain { padding: 1.5rem; display: grid; gap: 0.625rem; align-content: start; }
.pain-ico { width: 2.5rem; height: 2.5rem; border-radius: var(--radius); display: grid; place-items: center; background: hsl(var(--amber-soft)); color: hsl(var(--amber)); margin-bottom: 0.25rem; }
.pain-ico svg { width: 1.25rem; height: 1.25rem; }
.pain h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.pain p { color: hsl(var(--muted-foreground)); }

/* ═══════════════════════ 3. Como funciona ═══════════════════════ */
.steps { display: grid; gap: 1rem; position: relative; }
.step { padding: 1.5rem; display: grid; gap: 0.625rem; align-content: start; position: relative; }
.js-reveal .steps .step { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js-reveal .steps.is-in .step { opacity: 1; transform: none; }
.js-reveal .steps.is-in .step:nth-child(2) { transition-delay: 140ms; }
.js-reveal .steps.is-in .step:nth-child(3) { transition-delay: 280ms; }
.step-n { position: relative; z-index: 1; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: grid; place-items: center;
  background: hsl(var(--surface-raised)); border: 1.5px solid hsl(var(--primary) / 0.6); color: hsl(var(--primary-soft-foreground)); font-weight: 500; }
.step h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.step p { color: hsl(var(--muted-foreground)); }

.mini { margin-top: 0.75rem; padding: 0.875rem; border-radius: var(--radius); background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border));
  display: grid; gap: 0.5rem; font-size: 0.8125rem; min-height: 6.5rem; align-content: center; position: relative; overflow: hidden; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.mc-sw { position: relative; width: 2.25rem; height: 1.25rem; border-radius: 999px; background: hsl(var(--border-strong)); flex: none;
  animation: sw-bg 260ms var(--ease-out) both; animation-delay: calc(var(--t) + 400ms); }
.mc-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1rem; height: 1rem; border-radius: 999px; background: hsl(var(--surface-raised));
  box-shadow: 0 1px 3px hsl(var(--shadow-color) / 0.3); animation: sw-knob 320ms var(--ease-spring) both; animation-delay: calc(var(--t) + 400ms); }
@keyframes sw-bg { to { background: hsl(var(--primary)); } }
@keyframes sw-knob { to { transform: translateX(1rem); } }
.mo-bubble { justify-self: start; padding: 0.5rem 0.75rem; border-radius: 0.75rem; border-top-left-radius: 0.25rem; background: hsl(var(--surface-raised)); border: 1px solid hsl(var(--border)); }
.mo-tag { justify-self: start; padding: 0.3rem 0.625rem; border-radius: var(--radius-pill); background: hsl(var(--primary-soft)); color: hsl(var(--primary-soft-foreground)); font-weight: 500;
  animation: pop 520ms var(--ease-spring) 900ms both; }
.mm-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; color: hsl(var(--subtle-foreground)); font-size: 0.75rem; text-align: center; }
.mm-track span { padding-bottom: 2.25rem; border-right: 1px dashed hsl(var(--border-strong)); }
.mm-track span:last-child { border-right: 0; color: hsl(var(--primary-soft-foreground)); }
.mm-chip { position: absolute; left: calc(16.66% - 2.25rem); top: 2.6rem; width: 4.5rem; text-align: center; padding: 0.25rem 0; border-radius: var(--radius-pill);
  background: hsl(var(--surface-raised)); border: 1px solid hsl(var(--primary) / 0.5); font-size: 0.75rem; animation: chip-move 1.6s var(--ease-in-out) 500ms both; }
@keyframes chip-move { 0% { left: calc(16.66% - 2.25rem); } 45% { left: calc(50% - 2.25rem); } 100% { left: calc(83.33% - 2.25rem); border-color: hsl(var(--primary)); background: hsl(var(--primary-soft)); } }
.mm-ok { display: inline-flex; align-items: center; gap: 0.375rem; justify-self: center; color: hsl(var(--primary-soft-foreground)); font-weight: 500;
  animation: rise var(--dur-slow) var(--ease-out) 2.1s both; }
.mm-ok svg { width: 0.875rem; height: 0.875rem; }

/* ═══════════════════════ 4. O que muda (bento) ═══════════════════════ */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.bx { position: relative; padding: 1.5rem; display: grid; gap: 0.625rem; align-content: start; overflow: hidden; isolation: isolate; }
.bx h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.bx p { color: hsl(var(--muted-foreground)); }
.bx-text { display: grid; gap: 0.625rem; align-content: start; }
/* Luz que segue o mouse no cartão (main.js define --mx/--my) */
.bx::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), hsl(var(--primary) / 0.08), transparent 70%); }
.bx:hover::before { opacity: 1; }
.bx { transition: border-color var(--dur-base) var(--ease-out); }
.bx:hover { border-color: hsl(var(--primary) / 0.3); }

/* Relatório por anúncio */
.report { display: grid; gap: 0.25rem; padding: 0.875rem; border-radius: var(--radius); background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border)); font-size: 0.875rem; margin-top: 0.5rem; }
.rp-head, .rp-row { display: grid; grid-template-columns: 1fr 3.5rem 6rem; gap: 0.5rem; align-items: center; }
.rp-head { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--subtle-foreground)); padding: 0 0.5rem 0.375rem; }
.rp-head span:not(:first-child), .rp-row span:not(.rp-name) { text-align: right; }
.rp-row { position: relative; padding: 0.625rem 0.5rem; border-radius: var(--radius-sm); isolation: isolate; }
.rp-row .rp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-bar { position: absolute; inset: 0; z-index: -1; border-radius: var(--radius-sm); background: hsl(var(--primary) / 0.14);
  width: var(--w); transform-origin: left; animation: bar 1s var(--ease-out) both; animation-delay: calc(300ms + var(--i) * 140ms); }
.rp-low .rp-bar { background: hsl(var(--amber) / 0.16); }
.rp-low { color: hsl(var(--muted-foreground)); }
.rp-note { font-size: 0.75rem; color: hsl(var(--subtle-foreground)); padding: 0.375rem 0.5rem 0; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Alvo: pontos verdes vão para o centro, os cinzas se afastam */
.target { width: 10rem; height: auto; overflow: visible; margin-bottom: 0.25rem; }
.tg-c { fill: none; stroke: hsl(var(--border-strong)); stroke-width: 1.5; }
.tg-core { fill: hsl(var(--primary) / 0.18); stroke: hsl(var(--primary)); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: core 2.4s var(--ease-out) 1.6s infinite; }
.tg-dot { transform-box: fill-box; transform-origin: center; }
.tg-dot.g { fill: hsl(var(--primary)); animation: to-core 1.2s var(--ease-in-out) both; animation-delay: calc(400ms + var(--t)); }
.tg-dot.n { fill: hsl(var(--muted-foreground) / 0.6); animation: away 1.2s var(--ease-in-out) both; animation-delay: calc(400ms + var(--t)); }
@keyframes to-core { to { transform: translate(var(--x), var(--y)) scale(0.8); } }
@keyframes away { to { transform: translate(var(--x), var(--y)); opacity: 0.25; } }
@keyframes core { 0% { transform: scale(1); } 30% { transform: scale(1.12); } 60%, 100% { transform: scale(1); } }

/* Relatório pronto */
.doc { display: grid; gap: 0.75rem; padding: 0.875rem; border-radius: var(--radius); background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border)); margin-bottom: 0.25rem; font-size: 0.8125rem; }
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.doc-top b { font-weight: 500; }
.doc-ok { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.5rem; border-radius: var(--radius-pill); background: hsl(var(--primary-soft)); color: hsl(var(--primary-soft-foreground)); font-weight: 500; font-size: 0.75rem; }
.doc-ok svg { width: 0.75rem; height: 0.75rem; }
.doc-ok path { stroke-dasharray: 100; animation: draw 500ms var(--ease-out) 1.4s both; }
.doc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.doc-kpis span { display: grid; }
.doc-kpis small { color: hsl(var(--subtle-foreground)); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-kpis b { font-weight: 300; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.doc-spark { width: 100%; height: 2.5rem; }
.doc-spark path { fill: none; stroke: hsl(var(--primary)); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 100; animation: draw 1.2s var(--ease-out) 300ms both; }

/* Caixa de entrada única */
.inbox { display: grid; gap: 0.375rem; margin-bottom: 0.25rem; }
.ib-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem 0.625rem; border-radius: var(--radius);
  background: hsl(var(--surface-sunken)); border: 1px solid hsl(var(--border)); font-size: 0.8125rem;
  animation: slide-in 520ms var(--ease-out) both; animation-delay: calc(300ms + var(--i) * 160ms); }
.ib-row b { font-weight: 500; }
.ib-row small { color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row em { font-style: normal; font-size: 0.6875rem; font-weight: 500; min-width: 1.25rem; height: 1.25rem; border-radius: 999px; display: grid; place-items: center;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.ch { width: 0.625rem; height: 0.625rem; border-radius: 999px; }
.ch.wa { background: hsl(var(--primary)); }
.ch.ig { background: hsl(var(--cyan)); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* Alerta */
.alert-demo { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: var(--radius); background: hsl(var(--amber-soft)); border: 1px solid hsl(var(--amber) / 0.35); margin-bottom: 0.25rem; }
.bell { width: 2.25rem; height: 2.25rem; border-radius: 999px; display: grid; place-items: center; background: hsl(var(--amber) / 0.18); color: hsl(var(--amber)); flex: none; }
.bell svg { width: 1.125rem; height: 1.125rem; transform-origin: 50% 10%; animation: ring 900ms var(--ease-out) 600ms both, ring 900ms var(--ease-out) 5s infinite; }
.al-row { display: grid; font-size: 0.8125rem; }
.al-row b { font-weight: 500; }
.al-row small { color: hsl(var(--amber)); }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }

/* Marca da agência: a prévia troca de cor com os botões */
.bx-brand { --bh: 142; --bs: 70%; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.sw { width: 2.25rem; height: 2.25rem; border-radius: 999px; cursor: pointer; border: 2px solid hsl(var(--surface));
  background: hsl(var(--h) var(--s) 50%); box-shadow: 0 0 0 1px hsl(var(--border-strong));
  transition: transform var(--dur-fast) var(--ease-spring), box-shadow var(--dur-fast) var(--ease-out); }
.sw:hover { transform: scale(1.1); }
.sw[aria-pressed='true'] { box-shadow: 0 0 0 2px hsl(var(--foreground)); }
@media (pointer: coarse) { .sw { width: 3rem; height: 3rem; } }
.sw-hint { font-size: 0.8125rem; color: hsl(var(--subtle-foreground)); margin-left: 0.25rem; }
.wl { border-radius: var(--radius); border: 1px solid hsl(var(--border)); background: hsl(var(--surface-sunken)); overflow: hidden; font-size: 0.8125rem; margin-top: 0.5rem; }
.wl-top { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border-bottom: 1px solid hsl(var(--border)); }
.wl-logo { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: grid; place-items: center; font-size: 0.6875rem; font-weight: 500;
  background: hsl(var(--bh) var(--bs) 45%); color: hsl(var(--bh) 40% 97%); transition: background-color var(--dur-slow) var(--ease-in-out); }
.wl-top b { font-weight: 500; }
.wl-nav { margin-left: auto; display: flex; gap: 0.375rem; }
.wl-nav i { width: 1.75rem; height: 0.375rem; border-radius: 999px; background: hsl(var(--border-strong)); }
.wl-nav i:first-child { background: hsl(var(--bh) var(--bs) 50% / 0.7); transition: background-color var(--dur-slow) var(--ease-in-out); }
.wl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding: 0.875rem 0.75rem; align-items: end; }
.wl-kpi { display: grid; }
.wl-kpi small { color: hsl(var(--subtle-foreground)); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.wl-kpi b { font-weight: 300; font-size: 1.375rem; letter-spacing: -0.02em; }
.wl-btn { grid-column: 1 / -1; text-align: center; padding: 0.5rem; border-radius: var(--radius-sm); font-weight: 500;
  background: hsl(var(--bh) var(--bs) 45%); color: hsl(var(--bh) 40% 97%); transition: background-color var(--dur-slow) var(--ease-in-out); }

/* ═══════════════════════ 5. Antes × depois ═══════════════════════ */
.ba { display: grid; gap: 0.75rem; }
.ba-head { display: none; }
.ba-row { display: grid; gap: 0.5rem; padding: 1.125rem 1.25rem; border-radius: var(--radius-lg); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.ba-old { position: relative; color: hsl(var(--muted-foreground)); justify-self: start; }
.ba-old::after { /* risco que o scroll.js desenha conforme a linha passa */
  content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 1.5px; background: hsl(var(--amber) / 0.8);
  transform: scaleX(var(--strike, 0)); transform-origin: left; }
.ba-arrow { width: 1.5rem; height: 1rem; position: relative; color: hsl(var(--primary)); }
.ba-arrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transform: scaleX(var(--go, 1)); transform-origin: left; }
.ba-arrow::after { content: ''; position: absolute; right: 1px; top: 50%; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg); opacity: var(--go, 1); }
.ba-new { position: relative; padding-left: 1.75rem; color: hsl(var(--foreground)); }
.ba-new::before { content: ''; position: absolute; left: 0; top: 0.2rem; width: 1.125rem; height: 1.125rem; border-radius: 999px; background: hsl(var(--primary-soft));
  box-shadow: inset 0 0 0 1.5px hsl(var(--primary)); }
.ba-new::after { content: ''; position: absolute; left: 0.38rem; top: 0.42rem; width: 0.3rem; height: 0.55rem; border-right: 1.5px solid hsl(var(--primary)); border-bottom: 1.5px solid hsl(var(--primary)); transform: rotate(45deg); }

/* ═══════════════════════ 6. Para quem é ═══════════════════════ */
.who { display: grid; gap: 1rem; }
.who-card { padding: 1.75rem; display: grid; gap: 0.5rem; align-content: start; }
.who-ico { width: 2.75rem; height: 2.75rem; border-radius: var(--radius); display: grid; place-items: center; background: hsl(var(--primary-soft)); color: hsl(var(--primary-soft-foreground)); margin-bottom: 0.5rem; }
.who-ico svg { width: 1.375rem; height: 1.375rem; }
.who-card h3 { font-size: 1.25rem; font-weight: 400; letter-spacing: -0.015em; }
.who-card p { color: hsl(var(--muted-foreground)); }

/* ═══════════════════════ 7. Perguntas ═══════════════════════ */
.faq { max-width: 48rem; }

/* ═══════════════════════ 8. Chamada final ═══════════════════════ */
.final { position: relative; overflow: hidden; padding: 2.5rem 1.5rem; display: grid; gap: 1.5rem; justify-items: center; text-align: center; isolation: isolate; }
.final::before { content: ''; position: absolute; left: 50%; top: -45%; translate: -50% 0; width: 44rem; height: 44rem; border-radius: 999px; z-index: -1;
  background: radial-gradient(hsl(var(--primary) / 0.16), transparent 65%); pointer-events: none; }
.final-copy { display: grid; gap: 1.25rem; justify-items: center; max-width: 40rem; }
.final h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 300; letter-spacing: -0.03em; }
.final .btn { width: 100%; }
.final-mark { width: 5.5rem; height: 5.5rem; overflow: visible; }
.fm-path, .fm-run { fill: none; stroke-linecap: round; }
.fm-path { stroke: hsl(var(--primary) / 0.75); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: var(--draw, 0); }
.fm-run { stroke: hsl(var(--primary)); stroke-width: 3; stroke-dasharray: 0.1 200; stroke-dashoffset: 200; animation: run-rev 2.4s var(--ease-in-out) 1s infinite; }
.fm-dot { fill: hsl(var(--primary)); }
.fm-ring { fill: none; stroke: hsl(var(--primary)); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: core 2.4s var(--ease-out) 2.6s infinite; }
.placeholder { width: 100%; margin-top: 0.75rem; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px dashed hsl(var(--border-strong));
  color: hsl(var(--subtle-foreground)); font-size: 0.9375rem; text-align: center; }

/* Botão fixo no celular */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: hsl(var(--background) / 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid hsl(var(--border));
  transform: translateY(110%); transition: transform var(--dur-slow) var(--ease-out); }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-on { transform: none; }

footer { padding: 2.5rem 0 6rem; color: hsl(var(--subtle-foreground)); font-size: 0.875rem; }
footer .wrap { display: flex; flex-direction: column; gap: 0.75rem; }

/* ───────── Tablet ───────── */
@media (min-width: 640px) {
  .hero-actions .btn { width: auto; }
  .pains, .who { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-wide { grid-column: 1 / -1; }
  .final .btn { width: auto; }
  .top .btn-ghost { display: inline-flex; }
  /* Seções em grade: cabeçalho e botão no eixo central, para equilibrar a grade de largura total */
  .section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
  .sec-cta .btn { width: auto; min-width: 16rem; }
  footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
  .ba-row { grid-template-columns: 1fr 1.5rem 1fr; align-items: center; gap: 1.25rem; }
  .sticky-cta { display: none; }
  footer { padding-bottom: 3rem; }
}

/* ───────── Desktop ───────── */
@media (min-width: 960px) {
  .sec { padding: 7rem 0; }
  .top nav { display: flex; gap: 1.75rem; }
  /* O topo ocupa exatamente a primeira dobra (tela menos o menu de 4rem), com o conteúdo no meio. */
  .hero { min-height: calc(100svh - 4rem); display: grid; align-items: center; padding: clamp(1.25rem, 3vh, 2.5rem) 0 clamp(5rem, 11vh, 6.5rem); }
  .hero-copy { gap: clamp(0.875rem, 2vh, 1.25rem); }
  .scroll-cue { display: flex; }
  /* Em telas mais baixas, a cena encolhe por inteiro para caber sem cortar nada. */
  @media (max-height: 880px) { .scene { zoom: 0.92; } }
  @media (max-height: 800px) { .scene { zoom: 0.84; } }
  @media (max-height: 720px) { .scene { zoom: 0.76; } }
  @media (max-height: 640px) { .scene { zoom: 0.68; } }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4rem; }
  .scene { justify-self: end; }
  .pain-head { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .broken { justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  /* Linha que liga os números dos passos; scroll.js preenche conforme a rolagem (--p) */
  .steps::before, .steps::after { content: ''; position: absolute; left: 2.75rem; right: calc(33.33% - 2.75rem); top: 2.75rem; height: 2px; border-radius: 2px; }
  .steps::before { background: hsl(var(--border-strong)); }
  .steps::after { background: hsl(var(--primary)); transform: scaleX(var(--p, 1)); transform-origin: left; }
  .bento { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .bx-wide { grid-column: span 2; grid-template-columns: 1fr 1.15fr; gap: 1.5rem; align-items: center; }
  .bx-brand { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .bx-wide .report, .bx-wide .wl { margin-top: 0; }
  .ba { gap: 0; border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); overflow: hidden; background: hsl(var(--surface)); }
  .ba-head { display: grid; grid-template-columns: 1fr 2rem 1fr; gap: 1.5rem; padding: 0.875rem 1.75rem; background: hsl(var(--surface-sunken));
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--subtle-foreground)); }
  .ba-head span:last-child { color: hsl(var(--primary-soft-foreground)); }
  .ba-row { grid-template-columns: 1fr 2rem 1fr; gap: 1.5rem; padding: 1.25rem 1.75rem; border: 0; border-top: 1px solid hsl(var(--border)); border-radius: 0; background: transparent; }
  .ba-row .ba-new { font-size: 1.0625rem; }
  .who-card { padding: 2.25rem; }
  .final { padding: 5rem 4.5rem; gap: 2rem; }
  .final-mark { width: 7rem; height: 7rem; }
  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: 7rem; }
}
