/* Site público. Seções curtas, sem rolagem presa: o conteúdo aparece logo e a prova vem logo depois do título. */

/* polígonos do fundo (js/bg-shapes.js) */
.bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-shape { position: absolute; top: 0; left: 0; fill: none; stroke-width: 2; will-change: transform; }
.bg-shape--sun { stroke: var(--sun); opacity: .2; }
.bg-shape--line { stroke: var(--fg); opacity: .11; }

/* topo */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(10, 9, 6, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px; margin-inline: auto; padding: 0 var(--gutter); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topnav { display: none; gap: 28px; }
.topnav a { font-size: 14px; font-weight: 600; color: var(--mute); text-decoration: none; transition: color .2s; }
.topnav a:hover { color: var(--sun); }
@media (min-width: 900px) { .topnav { display: flex; } }

/* hero */
.hero {
  position: relative;
  padding: 120px 0 64px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 230, 0, .10), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95;
  font-size: clamp(44px, 10vw, 112px);
}
.hero-lede { max-width: 60ch; color: var(--mute); font-size: clamp(15px, 1.6vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }

.hero-proof {
  list-style: none; margin-top: 18px; width: 100%; max-width: 900px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.hero-proof li {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.hero-proof strong { display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--sun); line-height: 1.1; }
.hero-proof span { font-size: 13px; color: var(--mute); }

/* seções */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: rgba(20, 19, 14, .7); } /* translúcido para os polígonos aparecerem */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-title {
  font-weight: 900; text-transform: uppercase; letter-spacing: -.015em; line-height: .98;
  font-size: clamp(34px, 6vw, 64px); text-wrap: balance;
}
.section-title-long { max-width: 22ch; font-size: clamp(28px, 4.6vw, 52px); }
.section-lede { max-width: 56ch; color: var(--mute); }

/* portfólio */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; font-size: 14px; font-weight: 700; color: var(--mute); text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.tab:hover { color: var(--sun); border-color: var(--sun); }

.portfolio-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: start;
}
.portfolio-grid--resultado { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.portfolio-grid--video { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 768px) { .portfolio-grid--video { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.portfolio-more { display: flex; justify-content: center; margin-top: 28px; }

.page-hero { padding: 112px 0 8px; }
.page-hero .tabs { margin-top: 8px; }
.topnav a[aria-current="page"] { color: var(--sun); }
.portfolio-block { padding: 40px 0 16px; scroll-margin-top: 72px; }
.portfolio-block-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 24px; }
.portfolio-block-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(26px, 4vw, 40px); font-weight: 900; text-transform: uppercase; line-height: 1; }
.portfolio-block-head p { color: var(--mute); }
.portfolio-count { padding: 4px 10px; border-radius: 999px; background: var(--sun-soft); color: var(--sun); font-size: 14px; }
.cta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-block: 48px; border-top: 1px solid var(--line); }
.card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
  overflow: hidden; text-align: left; cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 230, 0, .5); }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--ink-3); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card--resultado .card-media, .card--site .card-media { aspect-ratio: 16 / 10; }
.card--resultado .card-media img { object-fit: contain; }
.card--video .card-media { aspect-ratio: 9 / 16; }
.card--video .card-body { padding: 12px 14px 14px; }
.card--video .card-metric { font-size: 20px; }
.card-play {
  position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sun); color: var(--on-sun);
}
.card-play svg { width: 20px; height: 20px; fill: currentColor; transform: translateX(2px); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.card-kind { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.card-metric { font-size: 26px; font-weight: 900; line-height: 1.1; }
.card-title { font-size: 15px; font-weight: 700; }
.card-client { font-size: 13px; color: var(--dim); }
.portfolio-empty { text-align: center; color: var(--mute); }
.portfolio-empty a { color: var(--sun); }

/* serviços: grade centralizada, 2x2 no PC e 1 coluna no celular */
.services {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 960px; margin-inline: auto;
}
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
.service {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink);
}
.service:first-child { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.service-icon { width: 48px; height: 48px; margin-bottom: 6px; fill: none; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.service:first-child .service-icon { stroke: var(--on-sun); }
.service h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; text-transform: uppercase; line-height: 1; }
.service-tags { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.service:first-child .service-tags { color: rgba(10, 9, 6, .6); }
.service p:last-of-type { max-width: 38ch; color: var(--mute); font-size: 15px; }
.service:first-child p:last-of-type { color: rgba(10, 9, 6, .8); }
.tool-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.tool-chips a {
  display: inline-block; padding: 5px 12px; border: 1px solid rgba(255, 230, 0, .35); border-radius: 999px;
  background: var(--sun-soft); color: var(--sun); font-size: 12px; font-weight: 700; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.tool-chips a:hover { background: var(--sun); color: var(--on-sun); }

/* animações dos serviços: cada uma mostra o que o serviço faz, em loop */
.service-anim {
  width: 160px; height: 90px; margin-bottom: 4px; color: var(--sun);
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.service:first-child .service-anim { color: var(--on-sun); }
.service-anim * { transform-box: fill-box; }
.service-anim .faint { opacity: .3; }
.service-anim .faint-fill { fill: currentColor; stroke: none; opacity: .15; }
.service-flow { font-size: 12px; font-weight: 700; color: var(--mute); margin-bottom: 4px; }
.service:first-child .service-flow { color: rgba(10, 9, 6, .7); }

.anim-traffic .bar { fill: currentColor; stroke: none; opacity: .85; transform-origin: bottom; animation: bar-grow 3.6s var(--ease) infinite; animation-delay: calc(var(--i) * .15s); }
.anim-traffic .trend { stroke-width: 3; stroke-dasharray: 100; animation: trend-draw 3.6s var(--ease) infinite; }
.anim-traffic .trend-head { stroke-width: 3; animation: trend-head 3.6s infinite; }
@keyframes bar-grow { 0% { transform: scaleY(0); } 25%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes trend-draw { 0%, 35% { stroke-dashoffset: 100; } 65%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes trend-head { 0%, 60% { opacity: 0; } 66%, 85% { opacity: 1; } 100% { opacity: 0; } }

.anim-content .phone { stroke-width: 2; }
.anim-content .play { fill: currentColor; stroke: none; transform-origin: center; animation: play-pulse 3.6s var(--ease) infinite; }
.anim-content .progress { fill: currentColor; stroke: none; transform-origin: left; animation: progress-fill 3.6s linear infinite; }
.anim-content .heart { fill: currentColor; stroke: none; opacity: 0; animation: heart-float 3.6s var(--ease) infinite; animation-delay: calc(1.2s + var(--i) * .5s); }
@keyframes play-pulse { 0%, 100% { transform: scale(1); } 8% { transform: scale(.75); } 16% { transform: scale(1.1); } 24% { transform: scale(1); } }
@keyframes progress-fill { 0%, 15% { transform: scaleX(0); } 95% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes heart-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; transform: translateY(-8px) scale(1); } 55%, 100% { opacity: 0; transform: translateY(-40px) scale(.9); } }

.anim-crm .column { stroke-width: 1.6; opacity: .5; }
.anim-crm .lead { animation: lead-move 4.2s var(--ease) infinite; }
.anim-crm .lead rect { fill: currentColor; stroke: none; opacity: .35; animation: lead-close 4.2s infinite; }
.anim-crm .lead-check { stroke: var(--ink); stroke-width: 2.6; opacity: 0; animation: lead-check 4.2s infinite; }
@keyframes lead-move {
  0%, 15% { transform: translateX(0); opacity: 1; }
  30%, 45% { transform: translateX(52px); }
  60%, 88% { transform: translateX(104px); opacity: 1; }
  96% { transform: translateX(104px); opacity: 0; }
  100% { transform: translateX(0); opacity: 0; }
}
@keyframes lead-close { 0%, 58% { opacity: .35; } 64%, 90% { opacity: 1; } 100% { opacity: .35; } }
@keyframes lead-check { 0%, 62% { opacity: 0; } 68%, 90% { opacity: 1; } 100% { opacity: 0; } }

.anim-site .window { stroke-width: 1.6; opacity: .6; }
.anim-site .block { fill: currentColor; stroke: none; transform-origin: left; }
.anim-site .headline { animation: site-build 4.2s var(--ease) infinite; }
.anim-site .line { opacity: .35; animation: site-build 4.2s var(--ease) infinite; animation-delay: calc(.25s + var(--i) * .15s); }
.anim-site .cta { transform-origin: center; animation: site-cta 4.2s var(--ease) infinite; }
.anim-site .cursor { fill: var(--fg); stroke: var(--ink); stroke-width: 1; animation: site-cursor 4.2s var(--ease) infinite; }
.anim-site .bubble { transform-origin: left bottom; animation: site-bubble 4.2s cubic-bezier(.34, 1.45, .64, 1) infinite; }
.anim-site .bubble path:first-child { fill: #25D366; stroke: none; }
.anim-site .bubble-dots { stroke: var(--fg); stroke-width: 2.6; }
@keyframes site-build { 0% { transform: scaleX(0); } 18%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes site-cta { 0%, 22% { transform: scale(0); } 32%, 58% { transform: scale(1); } 62% { transform: scale(.88); } 66%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes site-cursor { 0%, 30% { transform: translate(70px, 14px); opacity: 0; } 36% { opacity: 1; } 58%, 88% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes site-bubble { 0%, 64% { transform: scale(0); opacity: 0; } 72%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

.js .service:not(.is-visible) .service-anim * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .service-anim * { animation: none !important; }
  .anim-content .heart { opacity: 0; }
}

/* método */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-top: 3px solid var(--line); background: var(--ink-2); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--sun); transform-origin: left; }
.step-n { display: block; font-family: var(--f-up); font-size: 28px; color: var(--sun); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--mute); }

/* questionário */
.quiz {
  max-width: 640px; margin-inline: auto;
  padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--ink);
}
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 13px; font-weight: 700; color: var(--dim); }
.quiz-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--sun); transition: width .3s var(--ease); }
.quiz-question { font-size: clamp(20px, 3vw, 26px); font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.quiz-hint { font-size: 14px; color: var(--dim); margin-bottom: 18px; }
.quiz-options { display: grid; gap: 10px; margin-top: 18px; }
.quiz-option {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 18px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--ink-2);
  text-align: left; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.quiz-option:hover { border-color: rgba(255, 230, 0, .5); }
.quiz-option[aria-pressed="true"] { border-color: var(--sun); background: var(--sun-soft); }
.quiz-check { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--dim); display: grid; place-items: center; }
.quiz-option[aria-pressed="true"] .quiz-check { background: var(--sun); border-color: var(--sun); }
.quiz-option[aria-pressed="true"] .quiz-check::after { content: ""; width: 9px; height: 5px; border: 2.5px solid var(--on-sun); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.quiz-fields { display: grid; gap: 14px; margin-top: 18px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-summary { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.quiz-summary li { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 12px; background: var(--ink-2); }
.quiz-summary span { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.quiz-summary strong { font-weight: 700; }
.quiz-send { width: 100%; min-height: 60px; font-size: 16px; }
.quiz-send svg { width: 22px; height: 22px; fill: currentColor; }
.quiz-restart { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--dim); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* rodapé */
.footer { padding: 48px 0 96px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer .mark-logo { height: 64px; }
.footer p { font-size: 14px; color: var(--dim); }
.footer-link { font-size: 14px; font-weight: 700; color: var(--mute); }
.footer-wa { font-weight: 800; color: var(--sun); text-decoration: none; }
.footer-copy { font-size: 12px; }

/* botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }

/* visualizador de print / vídeo */
.viewer {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); color: var(--fg);
}
.viewer::backdrop { background: rgba(0, 0, 0, .85); }
.viewer-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(10, 9, 6, .8); font-size: 28px; line-height: 1; cursor: pointer;
}
.viewer-media img, .viewer-media video { width: 100%; max-height: 72dvh; object-fit: contain; background: #000; }
.viewer-caption { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
.viewer-caption p { color: var(--mute); font-size: 14px; }
.viewer-caption a { color: var(--sun); font-weight: 700; }

/* entrada suave, uma vez, sem prender a rolagem */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- interações (js/effects.js) ---------- */

/* topo: luz que segue o mouse, palavras entrando e "achismo" riscado */
.hero { overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 35%), rgba(255, 230, 0, .14), transparent 70%);
}
.hero-title .word { display: inline-block; }
.js .hero-title .word { opacity: 0; transform: translateY(.45em) rotate(4deg); animation: word-in .7s var(--ease) forwards; animation-delay: calc(.1s + var(--w) * .12s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.word-strike { position: relative; }
.word-strike::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; top: 50%; height: .09em; border-radius: .05em;
  background: var(--fg); transform: scaleX(0) rotate(-4deg); transform-origin: left;
  animation: strike .45s var(--ease) 1.05s forwards;
}
@keyframes strike { to { transform: scaleX(1) rotate(-4deg); } }

/* faixa amarela com os serviços */
.ticker {
  position: relative; z-index: 1; overflow: hidden; margin: 0 -24px; padding: 14px 0;
  background: var(--sun); color: var(--on-sun); transform: rotate(-2deg);
  box-shadow: 0 12px 40px rgba(255, 230, 0, .18);
}
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 30s linear infinite; }
.ticker span, .ticker b { padding-right: 28px; white-space: nowrap; }
.ticker span { font-weight: 900; text-transform: uppercase; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -.01em; }
.ticker b { font-size: 16px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* cards 3D com brilho que segue o mouse */
[data-tilt] { position: relative; transition: transform .35s var(--ease); }
[data-tilt].is-tilting { transition: transform .08s linear; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 230, 0, .16), transparent 60%);
}
.service:first-child[data-tilt]::after { background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, .5), transparent 60%); }
[data-tilt].is-tilting::after { opacity: 1; }

/* botões magnéticos e brilho no botão principal */
.btn-magnetic { transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  animation: shine 3.6s var(--ease) 1.8s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* WhatsApp flutuante: pulso e balão "Fale com a gente" */
.wa-float::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.75); opacity: 0; } }
.wa-float::after {
  content: "Fale com a gente 👋"; position: absolute; right: calc(100% + 12px); top: 50%; pointer-events: none;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--fg); color: var(--on-sun);
  font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(8px, -50%); animation: wa-tip 10s var(--ease) 3s forwards;
}
.wa-float:hover::after { opacity: 1; transform: translate(0, -50%); animation: none; }
@keyframes wa-tip { 0% { opacity: 0; transform: translate(8px, -50%); } 5%, 88% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(8px, -50%); } }

/* método: a linha amarela de cada etapa se desenha em sequência */
.js .step::before { transform: scaleX(0); transition: transform .8s var(--ease) .15s; }
.js .step.is-visible::before { transform: scaleX(1); }
.js .step:nth-child(2)::before { transition-delay: .35s; }
.js .step:nth-child(3)::before { transition-delay: .55s; }
.js .step:nth-child(4)::before { transition-delay: .75s; }

/* diagnóstico: pergunta desliza, opções entram em sequência, comemoração no fim */
.quiz { position: relative; }
.quiz-body { animation: quiz-next .35s var(--ease); }
.quiz-body--back { animation-name: quiz-back; }
@keyframes quiz-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes quiz-back { from { opacity: 0; transform: translateX(-28px); } }
.quiz-option { animation: option-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes option-in { from { opacity: 0; transform: translateY(10px); } }

.confetti { position: absolute; left: 50%; top: 30%; width: 0; height: 0; z-index: 5; pointer-events: none; }
.confetti-piece { position: absolute; width: 12px; height: 12px; background: var(--sun); animation: confetti 1.3s cubic-bezier(.2, .7, .3, 1) forwards; }
.confetti-piece--triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.confetti-piece--diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--fg); }
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 90px)) rotate(var(--spin)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .word, .word-strike::after, .ticker-track, .btn-shine::after, .wa-float::before,
  .quiz-body, .quiz-option { animation: none; opacity: 1; transform: none; }
  .word-strike::after { transform: rotate(-4deg); }
  .wa-float::after { display: none; }
  .js .step::before { transform: none; transition: none; }
}
