/* ============================================================
   OpenFluxo Growth — tema escuro (fundo com grade) e peças novas
   Vale só para a página com <body class="escuro">.
   Cores sólidas nos cartões, para o contraste ser medido com precisão.
   ============================================================ */
:root {
  --e-fundo: #07070f; --e-faixa: #0b0a17; --e-cartao: #121126; --e-cartao2: #17162f; --e-borda: #2a2850;
  --e-texto: #f4f3ff; --e-texto2: #cfcbe8; --e-texto3: #aaa6cc;
  --e-roxo: #c4b5fd; --e-ciano: #67e8f9; --e-rosa: #f472b6; --e-ponto: #ec4899; --e-ouro: #f5d68a;
}

/* ---------- fundo: preto com grade e brilho ---------- */
html:has(body.escuro) { background: var(--e-fundo) !important; }
html body.escuro {
  background-color: var(--e-fundo) !important;
  background-image:
    radial-gradient(900px 620px at 78% -8%, rgba(124, 58, 237, .30), transparent 62%),
    radial-gradient(760px 560px at -6% 38%, rgba(236, 72, 153, .14), transparent 60%),
    radial-gradient(820px 600px at 104% 72%, rgba(6, 182, 212, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) !important;
  background-size: auto, auto, auto, 64px 64px, 64px 64px !important;
  color: var(--e-texto) !important;
}
body.escuro #particles-js { background: transparent !important; opacity: .55; }

/* seções sem fundo próprio: deixam a grade aparecer */
body.escuro .hero-conv, body.escuro .g-secao, body.escuro .secao, body.escuro .faq-conv, body.escuro .cta-fim,
body.escuro .secao-clara, body.escuro .g-clara { background: transparent !important; border-color: var(--e-borda) !important; }
body.escuro .g-clara, body.escuro .secao-clara { background: rgba(11, 10, 23, .72) !important; }
body.escuro .hero-conv::before, body.escuro .hero-conv::after { display: none !important; }

/* ---------- textos claros ---------- */
body.escuro section h1, body.escuro section h2, body.escuro section h3, body.escuro section h4,
body.escuro .prova-faixa li, body.escuro section b, body.escuro section strong { color: var(--e-texto) !important; }
body.escuro section p, body.escuro section li, body.escuro section label, body.escuro section td,
body.escuro section th, body.escuro section blockquote, body.escuro section figcaption,
body.escuro .hero-sub, body.escuro .intro, body.escuro .g-intro, body.escuro .cta-reassure,
body.escuro .legenda-ilus, body.escuro .video-leg, body.escuro .faq-resposta, body.escuro .nota-30 { color: var(--e-texto2) !important; }
body.escuro section a:not([class]) { color: var(--e-ciano) !important; }
body.escuro .hero-kicker, body.escuro .g-etq, body.escuro .metodo .etapa-n, body.escuro .dias30 .sem,
body.escuro .setor-painel small, body.escuro .medimos b, body.escuro .rot-m, body.escuro .metodo li.nosso .selo-nosso { color: var(--e-roxo) !important; }
body.escuro .hero-conv .hero-kicker { background: var(--e-cartao) !important; border: 1px solid var(--e-borda) !important; }
body.escuro .destaque-vivo .pal { background-image: linear-gradient(90deg, #c4b5fd 0%, #67e8f9 50%, #f9a8d4 100%) !important; }
body.escuro .destaque-vivo { background-image: linear-gradient(90deg, rgba(236, 72, 153, .35), rgba(124, 58, 237, .35)) !important; }
body.escuro .ponto-final { color: var(--e-ponto) !important; -webkit-text-fill-color: var(--e-ponto) !important; }

/* ---------- cartões escuros ---------- */
body.escuro .prova-faixa { background: var(--e-faixa) !important; border-color: var(--e-borda) !important; }
body.escuro .prova-faixa li i { color: #4ade80 !important; }
body.escuro .g-canais { background: var(--e-faixa) !important; border-color: var(--e-borda) !important; }
body.escuro .g-canais span { background: var(--e-cartao) !important; border-color: var(--e-borda) !important; color: var(--e-texto) !important; }
body.escuro .g-canais .fa-tiktok { color: #fff !important; }
body.escuro .g-dor, body.escuro .metodo li, body.escuro .g-painel, body.escuro .plat, body.escuro .perguntas li,
body.escuro .resultado-t, body.escuro .calc-ent, body.escuro .dias30 li, body.escuro .modelo-g, body.escuro .setor-painel,
body.escuro .faq-item, body.escuro .lista-artigos li, body.escuro .mais-card, body.escuro .etapa-v {
  background: var(--e-cartao) !important; border-color: var(--e-borda) !important;
}
body.escuro .setor-painel > div, body.escuro .medimos { background: var(--e-cartao2) !important; border-color: var(--e-borda) !important; }
body.escuro .setor-painel .num-s { background: #0f2a1c !important; }
body.escuro .setor-painel .num-s small { color: #86efac !important; }
body.escuro .metodo li.nosso, body.escuro .modelo-g.destaque-m, body.escuro .resultado-t { border-color: #7C3AED !important; }
body.escuro .metodo .ic-m { background: var(--e-cartao2) !important; border-color: var(--e-borda) !important; }
body.escuro .metodo .ic-m svg * { stroke: var(--e-roxo); }
body.escuro .g-dor .num { color: #fb7185 !important; }
body.escuro .g-abas button, body.escuro .sn button { background: var(--e-cartao) !important; border-color: var(--e-borda) !important; color: var(--e-texto2) !important; }
body.escuro .g-abas button[aria-selected="true"] { background: #7C3AED !important; border-color: #7C3AED !important; color: #fff !important; }
body.escuro .sn { border-color: var(--e-borda) !important; }
body.escuro .sn button[aria-pressed="true"].sim { background: #15803d !important; color: #fff !important; }
body.escuro .sn button[aria-pressed="true"].nao { background: #dc2626 !important; color: #fff !important; }
body.escuro .resultado-t .placar span, body.escuro .resultado-t .falta { color: var(--e-texto2) !important; }
body.escuro .resultado-t .barra-t, body.escuro .plano-g .barra-p { background: var(--e-cartao2) !important; }
body.escuro .modelo-g .para { border-color: var(--e-borda) !important; color: var(--e-texto2) !important; }
body.escuro .modelo-g .rot-m { background: var(--e-cartao2) !important; }
body.escuro .plat span { color: var(--e-texto2) !important; }
body.escuro .plat b { color: var(--e-texto) !important; }
body.escuro .plat:hover { box-shadow: 0 18px 40px -20px rgba(124, 58, 237, .6); }
body.escuro .faq-item button { color: var(--e-texto) !important; background: transparent !important; }
body.escuro .faq-item button::after { color: var(--e-roxo) !important; }
body.escuro .lista-artigos a { color: var(--e-texto) !important; }
body.escuro .lista-artigos a:hover { background: var(--e-cartao2) !important; }
body.escuro .calc-ent output { color: var(--e-texto) !important; }
body.escuro .btn-ghost { background: transparent !important; border: 1.5px solid #4b4880 !important; }
body.escuro .btn-ghost, body.escuro .btn-ghost * { color: var(--e-texto) !important; }
body.escuro .btn-ghost:hover { border-color: var(--e-roxo) !important; }

/* tabela do comparativo */
body.escuro section table { background: var(--e-cartao) !important; border-color: var(--e-borda) !important; }
body.escuro section th { background: var(--e-cartao2) !important; }
body.escuro section td, body.escuro section th { border-color: var(--e-borda) !important; }
body.escuro section td i.fa-check, body.escuro section td .sim { color: #4ade80 !important; }
body.escuro section td i.fa-times, body.escuro section td i.fa-xmark { color: #fb7185 !important; }

/* ---------- ilhas brancas: continuam com texto escuro ---------- */
body.escuro .form-g { background: #ffffff !important; }
body.escuro .form-g h3, body.escuro .form-g label, body.escuro .form-g b { color: #1a1a2e !important; }
body.escuro .form-g p, body.escuro .form-g .sub-f, body.escuro .form-g .priv { color: #4a4858 !important; }
body.escuro .form-g a { color: #6d28d9 !important; }
body.escuro .mock b, body.escuro .mock strong { color: #1a1a2e !important; }
body.escuro .g-painel .mock { background: linear-gradient(160deg, #ede9fe, #cffafe) !important; }

/* ---------- 1. topo: composição 3D ---------- */
.g-hero .hero-grid { align-items: center; }
.g-hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; }
.cena-3d { width: 100%; max-width: 580px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.cena-3d .fl1 { animation: fl 6s ease-in-out infinite; }
.cena-3d .fl2 { animation: fl 7s ease-in-out -2s infinite; }
.cena-3d .fl3 { animation: fl 6.5s ease-in-out -4s infinite; }
.cena-3d .fl4 { animation: fl 5s ease-in-out -1s infinite; }
@keyframes fl { 50% { transform: translateY(-14px); } }
.cena-3d .barra3d { transform-box: fill-box; transform-origin: bottom; animation: b3d 2.8s cubic-bezier(.2, .8, .2, 1) infinite alternate; }
@keyframes b3d { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.cena-3d .rosca { transform-box: fill-box; transform-origin: center; animation: gira 9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.cena-3d .brilha { animation: brilha 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.cena-3d .brilha.b2 { animation-delay: .9s; } .cena-3d .brilha.b3 { animation-delay: 1.7s; }
@keyframes brilha { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }
.cena-3d .chip-v { animation: chip 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes chip { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(1); } }
.cena-3d .linha-o { stroke-dasharray: 14 10; animation: tracejado 2.2s linear infinite; }
@keyframes tracejado { to { stroke-dashoffset: -48; } }

/* ---------- 2. clientes rolando ---------- */
.clientes-g { padding: 2.6rem 0 2.2rem; position: relative; z-index: 2; overflow: hidden; }
.clientes-g .titulo-c { text-align: center; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--e-texto3) !important; margin: 0 0 1.4rem; padding: 0 1rem; }
.clientes-g .rolo-c { display: flex; gap: 1.1rem; width: max-content; animation: g-rola 38s linear infinite; }
.clientes-g:hover .rolo-c { animation-play-state: paused; }
.clientes-g .pilula { background: #fff; border-radius: 16px; height: 76px; min-width: 170px; padding: 0 1.4rem; display: flex; align-items: center; justify-content: center; }
.clientes-g .pilula img { max-height: 48px; max-width: 150px; width: auto; height: auto; }

/* ---------- 3. manifesto de estreia ---------- */
.manifesto { position: relative; overflow: hidden; z-index: 2; padding: 5.5rem 0; color: #fff;
  background: linear-gradient(120deg, #3b0f7a, #6d28d9 30%, #a3136b 62%, #3b0f7a); background-size: 220% 220%; animation: mf-cor 14s ease-in-out infinite; }
@keyframes mf-cor { 50% { background-position: 100% 50%; } }
.manifesto .ondas { position: absolute; left: 0; right: 0; bottom: -2px; height: 160px; pointer-events: none; }
.manifesto .onda { animation: onda 12s linear infinite; }
.manifesto .onda.o2 { animation-duration: 18s; animation-direction: reverse; opacity: .55; }
@keyframes onda { to { transform: translateX(-50%); } }
.manifesto .container { position: relative; }
.manifesto .rot-lux { display: flex; align-items: center; gap: .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--e-ouro) !important; }
.manifesto .rot-lux::before, .manifesto .rot-lux::after { content: ""; height: 1px; width: 42px; background: var(--e-ouro); opacity: .8; }
.manifesto blockquote { margin: 1.4rem 0 2.6rem; max-width: 30ch; font-family: "Georgia", "Times New Roman", serif; font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.16; letter-spacing: -.01em; color: #fff !important; }
.manifesto blockquote em { font-style: italic; color: var(--e-ouro) !important; }
.promessas { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 820px; border-top: 1px solid rgba(245, 214, 138, .45); }
.promessas li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid rgba(245, 214, 138, .45); color: #fff !important; }
.promessas .rom { font-family: "Georgia", serif; font-size: 1.6rem; color: var(--e-ouro) !important; }
.promessas p { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.4; color: #fff !important; font-weight: 600; }
.manifesto .assina { margin-top: 1.8rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .86) !important; }

/* ---------- 4. órbita do método ---------- */
.orbita-caixa { display: flex; justify-content: center; margin: 0 0 2.5rem; }
.orbita { width: 100%; max-width: 620px; height: auto; overflow: visible; }
.orbita .aneis { transform-box: view-box; transform-origin: 280px 230px; animation: gira 60s linear infinite; }
.orbita .pulsa { transform-box: fill-box; transform-origin: center; animation: pulsa 3s ease-in-out infinite; }
@keyframes pulsa { 50% { transform: scale(1.06); } }
.orbita .rotulo-o { font: 800 15px Inter, "Noto Sans", sans-serif; letter-spacing: .14em; fill: #f4f3ff; }

/* ---------- 5. certificados ---------- */
.certs-g { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .certs-g { grid-template-columns: 1fr 1fr; } }
.cert-g { background: var(--e-cartao); border: 1px solid var(--e-borda); border-radius: 22px; padding: 1.4rem; display: grid; gap: 1.1rem; }
.cert-g .selo-img { background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 150px; }
.cert-g .selo-img img { max-height: 130px; width: auto; max-width: 100%; }
.cert-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cert-g li { display: flex; gap: .55rem; align-items: flex-start; }
.cert-g li::before { content: "✓"; color: #4ade80; font-weight: 900; }

/* ---------- 6. conteúdo da página original ---------- */
.mais-grade { display: grid; gap: 1rem; }
@media (min-width: 760px) { .mais-grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mais-grade { grid-template-columns: repeat(4, 1fr); } }
.mais-card { border: 1px solid var(--e-borda); border-radius: 20px; padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.mais-card .ic-mais { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff !important;
  background: linear-gradient(135deg, #7C3AED, #db2777); box-shadow: 0 12px 26px -14px rgba(219, 39, 119, .8); }
.mais-card .ic-mais i { color: #fff !important; }
.mais-card h3 { font-size: 1.12rem; margin: .3rem 0 .1rem; }
.mais-card p { margin: 0; font-size: .93rem; line-height: 1.55; }
.mais-card ul { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .35rem; }
.mais-card li { font-size: .88rem; line-height: 1.45; padding-left: 1.1rem; position: relative; }
.mais-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--e-rosa); }
.exclusiva-g { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 960px) { .exclusiva-g { grid-template-columns: 1.1fr .9fr; } }
.exclusiva-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.exclusiva-g li { background: var(--e-cartao); border: 1px solid var(--e-borda); border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.exclusiva-g li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #67e8f9, #c4b5fd); box-shadow: 0 0 12px rgba(103, 232, 249, .8); }
.etapas-v { display: grid; gap: 1rem; counter-reset: ev; }
@media (min-width: 900px) { .etapas-v { grid-template-columns: repeat(4, 1fr); } }
.etapa-v { border: 1px solid var(--e-borda); border-radius: 20px; padding: 1.4rem; position: relative; overflow: hidden; }
.etapa-v::before { counter-increment: ev; content: "0" counter(ev); position: absolute; right: 1rem; top: .6rem; font-size: 3.2rem; font-weight: 900; color: #221f44; }
.etapa-v h3 { font-size: 1.15rem; margin: 0 0 .4rem; position: relative; }
.etapa-v p { margin: 0; line-height: 1.55; position: relative; }

@media (prefers-reduced-motion: reduce) {
  .cena-3d *, .clientes-g .rolo-c, .manifesto, .manifesto .onda, .orbita .aneis, .orbita .pulsa { animation: none !important; }
  .orbita animateMotion { display: none; }
}

/* ---------- correções de contraste apontadas na verificação ---------- */
body.escuro .metodo li.nosso .selo-nosso { background: #2a1f55 !important; color: #ddd6fe !important; }
body.escuro .setor-painel .num-s p { color: #f4f3ff !important; }
body.escuro .form-g .priv a { color: #6d28d9 !important; }
body.escuro .modelo-g .para b { color: #f4f3ff !important; }
body.escuro .resultado-t .placar b { color: #f4f3ff !important; }
body.escuro .resultado-t h3 { color: #f4f3ff !important; }

/* ---------- faixa branca do topo, com o logo original ---------- */
body.escuro .g-topo-branco { background: #ffffff !important; position: relative; z-index: 3; text-align: center; padding: 2rem 1rem 4.2rem; overflow: hidden; }
.g-topo-branco picture, .g-topo-branco img { display: block; margin: 0 auto; }
.g-topo-branco img { width: min(360px, 68vw); height: auto; animation: sobe-suave .8s ease-out both; }
.g-topo-branco .curva-b { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; display: block; }
body.escuro .g-hero { padding-top: 2.5rem !important; }
@media (min-width: 980px) { body.escuro .g-hero { padding-top: 3.5rem !important; } .g-topo-branco { padding: 2.4rem 1rem 4.8rem; } }
/* faixa branca mais compacta: o botão principal volta para a primeira tela */
body.escuro .g-topo-branco { padding: 1.1rem 1rem 2.9rem !important; }
.g-topo-branco img { width: min(200px, 56vw) !important; }
.g-topo-branco .curva-b { height: 40px !important; }
body.escuro .g-hero { padding-top: 1.6rem !important; }
@media (min-width: 980px) {
  body.escuro .g-topo-branco { padding: 1.3rem 1rem 3.2rem !important; }
  .g-topo-branco img { width: 230px !important; }
  .g-topo-branco .curva-b { height: 52px !important; }
  body.escuro .g-hero { padding-top: 1.8rem !important; }
  .g-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem) !important; }
}

/* ============================================================
   Mais chamativo: título que se transforma, luz no cursor, cartões 3D
   ============================================================ */
body.escuro .kinetico .kw { text-shadow: 0 0 28px currentColor; }

/* luz que segue o cursor sobre a grade */
.luz-cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 30%), rgba(124, 58, 237, .20), rgba(236, 72, 153, .07) 38%, transparent 62%); }
.luz-cursor.acesa { opacity: 1; }

/* cartões que inclinam em 3D */
.inclina { position: relative; transform-style: preserve-3d; will-change: transform; }
.inclina .reflexo { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 62%); }
.inclina:hover .reflexo { opacity: 1; }
.inclina:hover { border-color: #5b4bb8 !important; box-shadow: 0 26px 50px -28px rgba(124, 58, 237, .75); }
.hero-arte { transition: transform .25s ease-out; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .kinetico .kl { opacity: 1 !important; animation: none !important; }
  .luz-cursor { display: none; }
}

/* logos de marca embutidos na página (não dependem da internet) */
svg.lg { width: 1.05em; height: 1.05em; fill: currentColor; display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }
.plat .logo-p svg.lg { width: 28px; height: 28px; color: #fff; fill: #fff; }
.g-canais svg.lg-google { color: #4285F4; } .g-canais svg.lg-meta { color: #0668E1; } .g-canais svg.lg-instagram { color: #E1306C; }
.g-canais svg.lg-facebook { color: #1877F2; } .g-canais svg.lg-youtube { color: #FF0000; } .g-canais svg.lg-whatsapp { color: #25D366; }
.g-canais svg.lg-linkedin { color: #0A66C2; } body.escuro .g-canais svg.lg-tiktok { color: #ffffff; }

/* ---------- vídeo em loop no fundo do topo ---------- */
body.escuro .g-hero { position: relative; overflow: hidden; }
.hero-video { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-veu { position: absolute; inset: 0;
  background: linear-gradient(180deg, #07070f 0%, rgba(7, 7, 15, 0) 14%),
              linear-gradient(0deg, #07070f 0%, rgba(7, 7, 15, 0) 20%),
              linear-gradient(90deg, rgba(7, 7, 15, .88) 0%, rgba(7, 7, 15, .66) 46%, rgba(7, 7, 15, .30) 100%); }
@media (max-width: 979px) {
  .hero-veu { background: linear-gradient(180deg, #07070f 0%, rgba(7, 7, 15, .72) 10%, rgba(7, 7, 15, .80) 45%, rgba(7, 7, 15, .45) 72%, #07070f 100%); }
}
body.escuro .g-hero > .container { position: relative; z-index: 1; }
body.escuro .plat .logo-p[style*="#111111"] { background: #000 !important; box-shadow: 0 0 0 1.5px #4b4880; }

/* ============================================================
   Inspirado em grandes marcas: texto que acende, história ao rolar,
   cartão compartilhável e borda de luz
   ============================================================ */
/* ---------- 1. texto que acende ao rolar (Apple) ---------- */
.acende { padding: 7rem 0; position: relative; z-index: 2; }
.acende-texto { max-width: 26ch; margin: 0; font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; }
body.escuro .acende-texto, body.escuro .acende-texto .pa { color: #6b6893 !important; }
.acende-texto .pa { transition: color .35s ease, text-shadow .35s ease; }
body.escuro .acende-texto .pa.on { color: #ffffff !important; text-shadow: 0 0 22px rgba(196, 181, 253, .35); }
body.escuro .acende-texto .pa.on.cor { color: #67e8f9 !important; }

/* ---------- 2. a história do método, com a ilustração fixa (Apple) ---------- */
.historia { display: grid; gap: 0 3rem; position: relative; margin-top: 1rem; }
@media (min-width: 980px) { .historia { grid-template-columns: 1fr 1fr; } }
.historia-visual { position: sticky; top: 108px; z-index: 3; height: 360px; display: flex; align-items: center; justify-content: center; background: var(--e-fundo); border-radius: 0 0 22px 22px; }
@media (min-width: 980px) { .historia-visual { order: 2; top: calc(50vh - 240px); height: 480px; background: transparent; } }
.aparelho { width: min(330px, 86vw); height: 330px; border-radius: 26px; background: #0f0e22; border: 1px solid var(--e-borda); position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, .8); }
@media (min-width: 980px) { .aparelho { width: 380px; height: 440px; } }
.aparelho .cena-h { position: absolute; inset: 0; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; justify-content: center;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.aparelho .cena-h.ativa { opacity: 1; transform: none; }
.aparelho .pontos-h { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center; gap: .45rem; z-index: 2; }
.aparelho .pontos-h i { width: 8px; height: 8px; border-radius: 50%; background: #3a3770; transition: all .3s; }
.aparelho .pontos-h i.on { width: 22px; border-radius: 4px; background: linear-gradient(90deg, #c4b5fd, #67e8f9); }
.historia-passos { list-style: none; margin: 0; padding: 0; }
.passo-h { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0; opacity: .45; transition: opacity .4s; }
@media (min-width: 980px) { .passo-h { min-height: 78vh; order: 1; } }
.passo-h.atual { opacity: 1; }
.passo-h h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .35rem 0 .6rem; letter-spacing: -.02em; }
.passo-h p { font-size: 1.08rem; line-height: 1.65; max-width: 44ch; margin: 0; }
.passo-h .selo-nosso { align-self: flex-start; margin-top: .9rem; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: .3rem .75rem; }
body.escuro .passo-h .selo-nosso { background: #2a1f55 !important; color: #ddd6fe !important; }
/* peças dentro das cenas */
.h-card { background: #fff; border-radius: 14px; padding: .8rem .9rem; color: #1a1a2e; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
body.escuro .aparelho .h-card b, body.escuro .aparelho .h-card strong { color: #1a1a2e !important; }
body.escuro .aparelho .h-card small, body.escuro .aparelho .h-card span { color: #4a4858 !important; }
.h-busca { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.h-busca::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #7c3aed; flex: 0 0 auto; }
.h-res { border: 2px solid #7c3aed; }
.h-res em { font-style: normal; font-size: .68rem; font-weight: 800; background: #1a1a2e; color: #fff; border-radius: 4px; padding: .1rem .35rem; margin-right: .35rem; }
body.escuro .aparelho .h-res em { color: #fff !important; }
.h-res b { display: block; margin-top: .25rem; font-size: .92rem; color: #1a4fd6 !important; }
.h-anuncio .img-h { height: 110px; border-radius: 10px; background: linear-gradient(135deg, #fde68a, #f472b6 55%, #7c3aed); position: relative; }
.h-anuncio .coracao { position: absolute; right: 12px; bottom: 10px; font-size: 1.6rem; color: #fff; }
.cena-h.ativa .coracao { animation: coracao 1.6s ease-in-out .5s infinite; }
@keyframes coracao { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.35); } 30% { transform: scale(1); } }
.h-btn { margin-top: .6rem; background: #1a1a2e; color: #fff; border-radius: 9px; padding: .55rem; text-align: center; font-weight: 800; font-size: .85rem; position: relative; }
body.escuro .aparelho .h-btn { color: #fff !important; }
.h-btn .toque-h { position: absolute; right: 22%; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: rgba(255, 255, 255, .6); opacity: 0; }
.cena-h.ativa .toque-h { animation: toque-h 1.8s ease-out .9s infinite; }
@keyframes toque-h { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
.h-campo { border: 1.5px solid #e6e3f0; border-radius: 9px; padding: .45rem .6rem; font-size: .85rem; margin-top: .45rem; }
.h-campo small { display: block; font-size: .66rem; }
.h-ok { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; opacity: 0; }
body.escuro .aparelho .h-ok { color: #86efac !important; }
.cena-h.ativa .h-ok { animation: aparece .4s ease-out 1.3s forwards; }
@keyframes aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.h-zap { background: #1f7a5c; border-radius: 12px 12px 0 0; padding: .55rem .8rem; font-weight: 800; font-size: .9rem; }
body.escuro .aparelho .h-zap { color: #fff !important; }
.h-chat { background: #efeae2; border-radius: 0 0 12px 12px; padding: .7rem; display: flex; flex-direction: column; gap: .45rem; }
.h-msg { max-width: 85%; border-radius: 12px; padding: .5rem .65rem; font-size: .82rem; line-height: 1.35; opacity: 0; }
.h-msg.in { background: #fff; align-self: flex-start; } .h-msg.out { background: #d9fdd3; align-self: flex-end; }
body.escuro .aparelho .h-msg { color: #1a1a2e !important; }
.cena-h.ativa .h-msg.in { animation: aparece .4s ease-out .3s forwards; }
.cena-h.ativa .h-msg.out { animation: aparece .4s ease-out 1.1s forwards; }
.h-tempo { align-self: flex-end; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .15rem .55rem; background: #ecfaf1; opacity: 0; }
body.escuro .aparelho .h-tempo { color: #15803d !important; }
.cena-h.ativa .h-tempo { animation: aparece .4s ease-out 1.6s forwards; }
.h-pix { background: linear-gradient(135deg, #15803d, #0e7490); border-radius: 16px; padding: 1rem; }
body.escuro .aparelho .h-pix, body.escuro .aparelho .h-pix * { color: #fff !important; }
.h-pix strong { display: block; font-size: 1.9rem; font-weight: 900; margin-top: .2rem; }
.cena-h.ativa .h-pix { animation: pix-pula .6s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes pix-pula { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.h-linha { display: flex; justify-content: space-between; font-size: .82rem; }

/* ---------- 3. cartão do resultado, para baixar e compartilhar (Spotify Wrapped) ---------- */
.compartilha { margin-top: .9rem; }
.btn-cartao { width: 100%; border: 1.5px solid #7c3aed; background: transparent; border-radius: 12px; padding: .8rem; font-family: var(--font-body); font-weight: 800; font-size: .95rem; cursor: pointer; }
body.escuro .btn-cartao { color: #ddd6fe !important; }
.btn-cartao:hover { background: #2a1f55; }
.cartao-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(7, 7, 15, .88); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cartao-modal[hidden] { display: none; }
.cartao-caixa { display: flex; flex-direction: column; align-items: center; gap: .9rem; max-height: 100%; }
.cartao-caixa img { max-height: min(68vh, 640px); max-width: 100%; width: auto; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.cartao-acoes { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.cartao-acoes a, .cartao-acoes button { border: 0; border-radius: 12px; padding: .8rem 1.2rem; font-weight: 800; font-family: var(--font-body); font-size: .95rem; cursor: pointer; text-decoration: none; }
.cartao-acoes .baixar { background: #15803d; color: #fff !important; }
.cartao-acoes .enviar { background: #7c3aed; color: #fff !important; }
.cartao-acoes .fechar { background: #2a2850; color: #fff !important; }

/* ---------- 4. borda de luz que corre (Linear) ---------- */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.borda-luz { isolation: isolate; }
.borda-luz::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--ang), transparent 0 68%, #c4b5fd 78%, #67e8f9 86%, #f472b6 93%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gira-borda 4.5s linear infinite; }
.modelo-g.borda-luz, .resultado-t.borda-luz, .form-g.borda-luz { position: relative; }
@keyframes gira-borda { to { --ang: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  .acende-texto .pa { color: #ffffff !important; }
  .aparelho .cena-h, .cena-h.ativa * { transition: none !important; animation: none !important; opacity: 1; }
  .aparelho .cena-h:not(.ativa) { opacity: 0; }
  .borda-luz::before { animation: none; }
}

/* ---------- Top 10 (Netflix) ---------- */
.top-caixa { position: relative; }
.top10 { list-style: none; margin: 0; padding: .5rem .2rem 1.2rem; display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #3a3770 transparent; }
.top10:focus-visible { outline: 3px solid #67e8f9; outline-offset: 4px; border-radius: 12px; }
.top-item { flex: 0 0 min(340px, 84vw); scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; align-items: end; }
.top-num { font-size: clamp(7rem, 18vw, 10rem); font-weight: 900; line-height: .78; letter-spacing: -.06em; margin-right: -1.4rem; position: relative; z-index: 0;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 3px #7c3aed; text-shadow: 0 0 30px rgba(124, 58, 237, .45); user-select: none; }
.top-item:nth-child(3n+2) .top-num { -webkit-text-stroke-color: #db2777; text-shadow: 0 0 30px rgba(219, 39, 119, .4); }
.top-item:nth-child(3n) .top-num { -webkit-text-stroke-color: #0891b2; text-shadow: 0 0 30px rgba(8, 145, 178, .45); }
.top-card { position: relative; z-index: 1; min-height: 210px; border-radius: 18px; padding: 1.2rem; background: var(--e-cartao); border: 1px solid var(--e-borda);
  box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .9); display: flex; flex-direction: column; justify-content: flex-end; }
.top-card h3 { font-size: 1.12rem; margin: 0 0 .5rem; line-height: 1.3; }
.top-card p { margin: 0; font-size: .92rem; line-height: 1.55; }
.top-seta { display: none; position: absolute; top: 42%; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--e-borda);
  background: rgba(18, 17, 38, .92); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.top-seta:hover { background: #2a1f55; }
.top-seta:focus-visible { outline: 3px solid #67e8f9; }
.top-seta.ant { left: -18px; } .top-seta.prox { right: -18px; }
@media (hover: hover) and (pointer: fine) { .top-seta { display: block; } }

/* ---------- grade bento (Apple) ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); } }
.bento-t { border-radius: 22px; padding: 1.3rem; background: var(--e-cartao); border: 1px solid var(--e-borda); display: flex; flex-direction: column; gap: .5rem; position: relative; overflow: hidden; }
.bento-t p { margin: 0; font-size: .95rem; line-height: 1.5; }
.b-num { font-size: clamp(1.8rem, 4.2vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(90deg, #c4b5fd, #67e8f9, #f9a8d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.b-grande { grid-column: span 2; }
@media (min-width: 900px) { .b-grande { grid-row: span 2; } .b-largo { grid-column: span 2; } .b-grande .b-num { font-size: 3.6rem; } }
.b-largo { grid-column: span 2; }
.b-painel { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 1rem; }
.b-painel i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #c4b5fd, #7c3aed); transform-origin: bottom; animation: b3d 3s cubic-bezier(.2, .8, .2, 1) infinite alternate; }
.b-painel i:nth-child(2) { animation-delay: .2s; } .b-painel i:nth-child(3) { animation-delay: .4s; } .b-painel i:nth-child(4) { animation-delay: .6s; } .b-painel i:nth-child(5) { animation-delay: .8s; } .b-painel i:nth-child(6) { animation-delay: 1s; }
.b-logos { display: flex; flex-wrap: wrap; gap: .55rem; font-size: 1.5rem; }
.b-logos svg.lg { width: 1.5rem; height: 1.5rem; color: #e9e7ff; }
.b-cert { background: linear-gradient(160deg, #1b1840, #121126); }
@media (prefers-reduced-motion: reduce) { .b-painel i { animation: none; } }
/* setas do Top 10 dentro da área, e só em telas largas */
.top-seta.ant { left: 4px !important; } .top-seta.prox { right: 4px !important; }
@media (max-width: 699px) { .top-seta { display: none !important; } }
