/* Experiência D — "Hiperespaço": cena WebGL fixa ao fundo + capítulos em HTML animados pelo scroll (GSAP). */

:root {
  --h-bg: #03040a; --h-text: #e7eaf3; --h-strong: #ffffff; --h-muted: #b1b9cc;
  --h-line: rgb(255 255 255 / 0.12); --h-line-strong: rgb(255 255 255 / 0.3); --h-soft: rgb(255 255 255 / 0.06);
  --h-panel-a: rgb(12 14 30 / 0.88); --h-panel-b: rgb(6 7 16 / 0.84); --h-panel-solid: #0a0c1a;
  --h-glass: rgb(3 4 10 / 0.72); --h-header: rgb(3 4 10 / 0.85); --h-vignette: rgb(3 4 10 / 0.75);
  --h-red: #ff4d6d; --h-amber: #ffb547; --h-teal: #3ef0d0; --h-violet: #8b6cff; --h-cipher: #99f6e4; --h-note: #fcd34d;
  --h-glow-teal: 0 0 30px rgb(62 240 208 / 0.45); --h-glow-red: 0 0 30px rgb(255 77 109 / 0.5);
  --h-cta-a: #3ef0d0; --h-cta-b: #2bd9bb;
  --h-gl-filter: none; --h-cursor-blend: screen; --h-show-sun: block; --h-show-moon: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --h-bg: #f4f6fb; --h-text: #1f2433; --h-strong: #0b0e1a; --h-muted: #4b546a;
    --h-line: rgb(11 14 26 / 0.1); --h-line-strong: rgb(11 14 26 / 0.28); --h-soft: rgb(11 14 26 / 0.05);
    --h-panel-a: rgb(255 255 255 / 0.92); --h-panel-b: rgb(248 249 252 / 0.9); --h-panel-solid: #ffffff;
    --h-glass: rgb(244 246 251 / 0.82); --h-header: rgb(244 246 251 / 0.9); --h-vignette: rgb(244 246 251 / 0.65);
    --h-red: #d62846; --h-amber: #a85800; --h-teal: #08806e; --h-violet: #5b3fd6; --h-cipher: #08806e; --h-note: #92400e;
    --h-glow-teal: none; --h-glow-red: none;
    /* a cena 3D é desenhada no escuro; no modo dia ela é invertida mantendo os tons */
    --h-cta-a: #19c2a6; --h-cta-b: #10a88f;
    --h-gl-filter: invert(1) hue-rotate(180deg) saturate(1.4); --h-cursor-blend: normal; --h-show-sun: none; --h-show-moon: block;
  }
}
:root[data-theme='light'] {
  --h-bg: #f4f6fb; --h-text: #1f2433; --h-strong: #0b0e1a; --h-muted: #4b546a;
  --h-line: rgb(11 14 26 / 0.1); --h-line-strong: rgb(11 14 26 / 0.28); --h-soft: rgb(11 14 26 / 0.05);
  --h-panel-a: rgb(255 255 255 / 0.92); --h-panel-b: rgb(248 249 252 / 0.9); --h-panel-solid: #ffffff;
  --h-glass: rgb(244 246 251 / 0.82); --h-header: rgb(244 246 251 / 0.9); --h-vignette: rgb(244 246 251 / 0.65);
  --h-red: #d62846; --h-amber: #a85800; --h-teal: #08806e; --h-violet: #5b3fd6; --h-cipher: #08806e; --h-note: #92400e;
  --h-glow-teal: none; --h-glow-red: none;
  /* a cena 3D é desenhada no escuro; no modo dia ela é invertida mantendo os tons */
  --h-cta-a: #19c2a6; --h-cta-b: #10a88f;
  --h-gl-filter: invert(1) hue-rotate(180deg) saturate(1.4); --h-cursor-blend: normal; --h-show-sun: none; --h-show-moon: block;
}


html.h-root { overflow-x: hidden; } /* animações que entram pelos lados não podem alargar o layout no celular */
.h-body { background: var(--h-bg); color: var(--h-text); font-family: 'Inter', system-ui, sans-serif; overflow-x: clip; }
.h-body h1, .h-body h2, .h-body h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.025em; }
.h-body.has-cursor, .h-body.has-cursor a, .h-body.has-cursor button { cursor: none; }
.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.h-center-t { text-align: center; }
.h-body main { position: relative; z-index: 2; }
.h-mt { margin-top: 20px; }

/* ---------- Camadas fixas ---------- */
.h-gl { position: fixed; inset: 0; width: 100vw; height: 100lvh; z-index: 0; display: block; filter: var(--h-gl-filter); }
.h-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, var(--h-vignette) 100%);
}
.h-flash { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 55%, #eafffb, #3ef0d0 35%, rgb(62 240 208 / 0) 75%); }
.h-loader {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; gap: 14px; background: var(--h-bg);
  font: 500 0.78rem 'JetBrains Mono', monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--h-teal); transition: opacity 0.8s, visibility 0.8s;
}
.h-loader i { display: block; width: 180px; height: 2px; background: rgb(62 240 208 / 0.15); position: relative; overflow: hidden; }
.h-loader i::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--h-teal); animation: h-load 1s ease-in-out infinite; }
@keyframes h-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.h-loader.is-done { opacity: 0; visibility: hidden; }

.h-cursor {
  position: fixed; left: 0; top: 0; z-index: 100; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 99px;
  border: 1.5px solid rgb(62 240 208 / 0.8); pointer-events: none; mix-blend-mode: var(--h-cursor-blend); opacity: 0;
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, opacity 0.3s;
}
.h-cursor::after { content: ''; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 99px; background: var(--h-teal); }
.has-cursor .h-cursor { opacity: 1; }
.h-cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgb(62 240 208 / 0.12); }

/* ---------- Header e trilho ---------- */
.h-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; background: linear-gradient(180deg, var(--h-header), transparent);
}
.h-logo { display: flex; flex: none; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; color: var(--h-strong); }
.h-chapter { display: none; align-items: center; gap: 10px; font: 500 0.78rem 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-muted); }
.h-chapter b { color: var(--h-strong); font-weight: 600; }
.h-chapter span { color: var(--h-teal); }
@media (min-width: 760px) { .h-chapter { display: flex; } }
.h-rail { position: fixed; right: 18px; top: 50%; z-index: 50; transform: translateY(-50%); display: none; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .h-rail { display: flex; } }
.h-rail a { position: relative; display: block; width: 10px; height: 10px; border-radius: 99px; border: 1px solid var(--h-line-strong); transition: 0.3s; }
.h-rail a.is-active { background: var(--h-teal); border-color: var(--h-teal); box-shadow: 0 0 14px var(--h-teal); transform: scale(1.3); }
.h-rail a span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 0.7rem 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--h-muted); opacity: 0; transition: 0.3s; }
.h-rail a:hover span, .h-rail a.is-active span { opacity: 1; }

/* ---------- Botões ---------- */
.h-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px;
  font-weight: 700; color: #04110e; cursor: pointer; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--h-cta-a), var(--h-cta-b) 50%, var(--h-cta-a)); background-size: 200% 100%; transition: background-position 0.5s, box-shadow 0.3s;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15) inset, 0 18px 50px -16px var(--h-cta-a);
}
.h-btn span { display: inline-block; }
.h-btn:hover { background-position: 100% 0; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25) inset, 0 22px 60px -12px var(--h-cta-a); }
.h-btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.h-btn-xl { padding: 22px 42px; font-size: 1.2rem; margin-top: 30px; }
.h-btn-ghost { color: var(--h-strong); background: var(--h-soft); box-shadow: 0 0 0 1px var(--h-line-strong) inset; }
.h-btn-ghost:hover { background: var(--h-line); color: var(--h-strong); }

/* ---------- Tipografia ---------- */
.h-h1 { font-size: clamp(2.4rem, min(7.2vw, 11.5vh), 6rem); line-height: 0.98; font-weight: 700; color: var(--h-strong); }
.h-h2 { margin-top: 12px; font-size: clamp(1.7rem, 3.8vw, 3.1rem); line-height: 1.04; font-weight: 700; color: var(--h-strong); }
.h-p { margin-top: 14px; color: var(--h-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5; }
.h-small { font-size: 0.85rem; }
.h-fine { margin-top: 16px; font-size: 0.82rem; color: var(--h-muted); }
.h-step { font: 600 0.74rem 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-teal); }
.h-red, .h-red-t { color: var(--h-red); }
.h-amber, .h-amber-t { color: var(--h-amber); }
.h-teal { color: var(--h-teal); }
.h-red { text-shadow: var(--h-glow-red); }
.h-teal { text-shadow: var(--h-glow-teal); }
[data-split] .w, [data-split-simple] .w { display: inline-block; white-space: nowrap; }
[data-split] .c, [data-split-simple] .c { display: inline-block; will-change: transform; }

/* ---------- Hero ---------- */
.h-hero { position: relative; height: 175vh; }
.h-hero-inner {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  max-width: 1200px; margin: 0 auto; padding: 90px 22px 40px;
}
.h-hero-inner > * { max-width: 640px; }
@media (max-width: 759px) {
  .h-hero-inner { justify-content: flex-start; padding-top: 96px; }
}
.h-kicker { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 99px; font-size: 0.86rem; font-weight: 600; color: var(--h-teal); background: var(--h-soft); border: 1px solid var(--h-line); }
.h-live { width: 8px; height: 8px; border-radius: 99px; background: var(--h-red); animation: h-live 1.5s infinite; }
@keyframes h-live { 0% { box-shadow: 0 0 0 0 rgb(255 77 109 / 0.7); } 100% { box-shadow: 0 0 0 12px rgb(255 77 109 / 0); } }
.h-hero .h-h1 { margin-top: 20px; }
.h-lead { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--h-muted); }
.h-cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
@media (max-width: 759px) { .h-cta-row { position: absolute; left: 22px; right: 22px; bottom: 36px; } }
.h-scroll-cue { display: inline-flex; align-items: center; gap: 10px; font: 500 0.75rem 'JetBrains Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--h-muted); }
.h-scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--h-teal), transparent); animation: h-cue 1.6s infinite; transform-origin: top; }
@keyframes h-cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Faixa ---------- */
.h-marquee { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; border-block: 1px solid var(--h-line); background: var(--h-glass); backdrop-filter: blur(6px); transform: rotate(-2deg) scale(1.05); }
.h-marquee-track { display: flex; width: max-content; will-change: transform; }
.h-marquee span { font: 700 clamp(1.1rem, 2.4vw, 1.8rem) 'Space Grotesk', sans-serif; letter-spacing: 0.02em; color: var(--h-strong); white-space: nowrap; }

/* ---------- Beats ---------- */
.h-beat { position: relative; min-height: 115vh; display: flex; align-items: center; padding: 0 7vw; }
.h-beat[data-side='right'] { justify-content: flex-end; }
.h-beat[data-side='center'] { justify-content: center; }
.h-panel {
  max-width: 540px; padding: 30px; border-radius: 24px; will-change: transform, opacity;
  background: linear-gradient(160deg, var(--h-panel-a), var(--h-panel-b)); border: 1px solid var(--h-line);
  backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
.h-panel.h-center { text-align: center; }
@media (max-width: 759px) {
  .h-beat { align-items: flex-end; justify-content: center !important; padding: 0 14px 9vh; }
  .h-panel { padding: 22px; }
}

.h-term { font-family: 'JetBrains Mono', monospace; }
.h-term-bar { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--h-muted); }
.h-term-bar i { width: 9px; height: 9px; border-radius: 99px; background: rgb(255 255 255 / 0.14); }

.h-switch { margin: 26px auto 6px; width: 96px; height: 50px; border-radius: 99px; padding: 5px; background: rgb(255 77 109 / 0.2); border: 1px solid rgb(255 77 109 / 0.6); transition: 0.4s; }
.h-switch span { display: block; width: 38px; height: 38px; border-radius: 99px; background: var(--h-red); transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1), background 0.4s, box-shadow 0.4s; }
.h-switch.is-on { background: rgb(62 240 208 / 0.2); border-color: var(--h-teal); }
.h-switch.is-on span { transform: translateX(46px); background: var(--h-teal); box-shadow: 0 0 30px var(--h-teal); }

.h-beat-giant { overflow: hidden; }
.h-giant {
  font: 700 clamp(3rem, 13vw, 12rem)/1 'Space Grotesk', sans-serif; letter-spacing: -0.04em; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1.5px var(--h-teal); text-shadow: var(--h-glow-teal); will-change: transform, opacity;
}
.h-cipher { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font: 600 0.95rem 'JetBrains Mono', monospace; color: var(--h-cipher); background: rgb(62 240 208 / 0.08); border: 1px solid rgb(62 240 208 / 0.35); word-break: break-all; }

.h-stats { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.h-stats > div { padding: 14px; border-radius: 14px; background: var(--h-soft); border: 1px solid var(--h-line); }
.h-stats dt { font-size: 0.72rem; color: var(--h-muted); }
.h-stats dd { margin-top: 4px; font: 700 1.1rem 'Space Grotesk', sans-serif; color: var(--h-strong); }

.h-blocked { margin-top: 18px; color: var(--h-muted); }
.h-blocked b { display: inline-block; min-width: 2ch; font: 700 2.2rem 'Space Grotesk', sans-serif; color: var(--h-teal); vertical-align: -4px; margin-right: 6px; }
.h-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.h-chips li { padding: 7px 12px; border-radius: 99px; font-size: 0.86rem; background: var(--h-soft); border: 1px solid var(--h-line); }

/* ---------- Contratação: celular fixo guiado pelo scroll (vindo da experiência B) ---------- */
.h-demo {
  --m-bg: #f5f3ee; --m-ink: #15131f; --m-muted: #6b6878; --m-card: #fff; --m-line: rgb(21 19 31 / 0.09);
  --m-teal: #0f9f8f; --m-violet: #6841f5; --m-wa: #25d366;
  position: relative; height: 100svh;
}
.h-demo-stage {
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 76px 16px 16px;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; gap: 10px;
}
@media (min-width: 960px) { .h-demo-stage { grid-template-rows: none; grid-template-columns: 1fr auto 1fr; gap: 56px; padding: 70px 32px 20px; } }
.h-demo-copy { order: 3; width: 100%; max-width: 380px; }
@media (min-width: 960px) { .h-demo-copy { order: 0; justify-self: end; } }
.h-demo-copy .h-h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
@media (max-width: 959px) { .h-demo-copy .h-step, .h-demo-copy .h-h2 { display: none; } }
.h-steps { margin-top: 18px; display: grid; gap: 4px; }
.h-steps li {
  display: grid; grid-template-columns: 54px 1fr; column-gap: 10px; padding: 9px 12px; border-radius: 14px;
  border: 1px solid transparent; opacity: 0.35; transition: opacity 0.4s, background 0.4s, border-color 0.4s;
}
.h-steps time { grid-row: span 2; padding-top: 2px; font: 600 0.78rem 'JetBrains Mono', monospace; color: var(--h-muted); }
.h-steps b { font-size: 0.98rem; color: var(--h-strong); }
.h-steps span { font-size: 0.84rem; color: var(--h-muted); }
.h-steps li.is-done { opacity: 0.6; }
.h-steps li.is-done b::after { content: ' ✓'; color: var(--h-teal); }
.h-steps li.is-active { opacity: 1; background: var(--h-panel-a); border-color: rgb(62 240 208 / 0.35); backdrop-filter: blur(10px); }
.h-steps li.is-active time { color: var(--h-teal); }
@media (max-width: 959px) {
  .h-steps { margin-top: 0; }
  .h-steps li { display: none; }
  .h-steps li.is-active { display: grid; }
}
.h-timer { order: 1; text-align: center; font: 700 clamp(2.2rem, 7vw, 6rem)/1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; color: var(--h-strong); text-shadow: var(--h-glow-teal); }
.h-timer small { display: block; margin-top: 8px; font: 500 0.72rem 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h-muted); text-shadow: none; }
@media (min-width: 960px) { .h-timer { order: 3; justify-self: start; } }
@media (max-width: 959px) { .h-timer small { display: none; } }

.h-demo .m-phone-wrap { position: relative; order: 2; height: 100%; max-height: 620px; display: grid; place-items: center; min-height: 0; }
.h-demo .m-phone {
  position: relative; height: min(600px, 100%); aspect-ratio: 9 / 18.6; border-radius: 42px; padding: 12px;
  background: #111; box-shadow: 0 50px 90px -40px rgb(21 19 31 / 0.6), inset 0 0 0 2px #333;
}
.h-demo .m-notch { position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 99px; background: #111; z-index: 5; }
.h-demo .m-screen {
  /* A tela do celular é sempre clara (como um app real): usa a tinta própria, não a cor do tema da página.
     Sem isso, no modo escuro o texto herdava --h-text (quase branco) e sumia no fundo branco. */
  color: var(--m-ink);
  position: absolute; inset: 12px; border-radius: 32px; overflow: hidden; background: #fff; padding: 52px 16px 16px;
  opacity: 0; transform: translateX(26px) scale(0.98); transition: opacity 0.45s, transform 0.45s; font-size: 0.82rem;
}
.h-demo .m-screen.is-active { opacity: 1; transform: none; }
.h-demo .m-screen.is-past { transform: translateX(-26px) scale(0.98); }
.h-demo .m-app-title { font: 800 1.1rem 'Space Grotesk', sans-serif; margin-bottom: 14px; }

.h-demo .m-opt { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--m-line); transition: 0.3s; }
.h-demo .m-opt em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 99px; font-size: 0.62rem; font-style: normal; font-weight: 700; color: #fff; background: var(--m-violet); }
.h-demo .m-opt.is-picked { border-color: var(--m-teal); background: rgb(15 159 143 / 0.08); box-shadow: 0 0 0 4px rgb(15 159 143 / 0.12); }
.h-demo .m-fake-btn { margin-top: 16px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; color: #fff; background: var(--m-ink); transition: transform 0.2s, background 0.3s; }
.h-demo .m-fake-btn.is-pressed { transform: scale(0.95); background: var(--m-violet); }
.h-demo .m-fake-btn-ghost { background: transparent; color: var(--m-ink); border: 1.5px solid var(--m-line); }
.h-demo .m-fake-field { display: block; margin-bottom: 9px; padding: 8px 12px; border-radius: 10px; background: var(--m-bg); border: 1.5px solid transparent; min-height: 50px; }
.h-demo .m-fake-field small { display: block; font-size: 0.66rem; color: var(--m-muted); }
.h-demo .m-fake-field span { font-weight: 600; }
.h-demo .m-fake-field.is-typing { border-color: var(--m-violet); background: #fff; }
.h-demo .m-fake-field.is-typing span::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--m-violet); animation: m-caret 0.8s steps(1) infinite; }
@keyframes m-caret { 50% { opacity: 0; } }

.h-demo .m-qr { position: relative; width: 70%; aspect-ratio: 1; margin: 6px auto 12px; display: grid; grid-template-columns: repeat(21, 1fr); padding: 8px; border-radius: 12px; border: 1.5px solid var(--m-line); overflow: hidden; }
.h-demo .m-qr i { background: var(--m-ink); }
.h-demo .m-qr i.o { background: transparent; }
.h-demo .m-qr::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgb(15 159 143 / 0.35)); animation: m-scan 2s ease-in-out infinite; }
@keyframes m-scan { from { top: -30%; } to { top: 100%; } }
.h-demo .m-amount { text-align: center; font: 800 1.5rem 'Space Grotesk', sans-serif; }
.h-demo .m-wait { margin-top: 10px; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 0.72rem; color: var(--m-muted); }
.h-demo .m-wait span { width: 7px; height: 7px; border-radius: 99px; background: #f59e0b; animation: m-pulse 1.2s infinite; }

.h-demo .m-screen-bank { background: linear-gradient(160deg, #0f9f8f, #0b7a6e); color: #fff; display: grid; place-content: center; text-align: center; }
.h-demo .m-bank-check { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 99px; background: #fff; display: grid; place-items: center; }
.h-demo .m-bank-check svg { width: 48px; fill: none; stroke: var(--m-teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.h-demo .m-bank-check path { stroke-dasharray: 50; stroke-dashoffset: 50; transition: stroke-dashoffset 0.6s 0.3s; }
.h-demo .m-screen-bank.is-active .m-bank-check path { stroke-dashoffset: 0; }
.h-demo .m-bank-title { font-size: 1rem; opacity: 0.9; }
.h-demo .m-bank-value { font: 800 2rem 'Space Grotesk', sans-serif; }
.h-demo .m-bank-to { opacity: 0.8; }

.h-demo .m-screen-wa { padding: 0; background: #efeae2; }
.h-demo .m-wa-head { display: flex; gap: 10px; align-items: center; padding: 44px 14px 10px; background: #075e54; color: #fff; }
.h-demo .m-wa-head small { display: block; font-size: 0.66rem; opacity: 0.8; }
.h-demo .m-wa-avatar img { width: 32px; height: 32px; border-radius: 99px; }
.h-demo .m-wa-body { padding: 12px; display: grid; gap: 8px; }
.h-demo .m-bubble {
  justify-self: start; max-width: 88%; padding: 8px 10px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
  opacity: 0; transform: translateY(10px) scale(0.95); transform-origin: 0 0; transition: 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.h-demo .m-bubble.is-on { opacity: 1; transform: none; }
.h-demo .m-file { display: flex; gap: 8px; align-items: center; background: #d9fdd3; }
.h-demo .m-file span:first-child { font-size: 1.5rem; }
.h-demo .m-file small { display: block; color: var(--m-muted); font-size: 0.66rem; }

.h-demo .m-vpn-card { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: var(--m-bg); }
.h-demo .m-vpn-flag {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  font: 800 0.75rem 'Space Grotesk', sans-serif; color: #fff; background: linear-gradient(135deg, #3c3b6e 50%, #b22234 50%);
}
.h-demo .m-vpn-card div { flex: 1; }
.h-demo .m-vpn-card small { display: block; font-size: 0.7rem; color: var(--m-muted); transition: color 0.3s; }
.h-demo .m-toggle { width: 46px; height: 26px; border-radius: 99px; background: #cbd5e1; padding: 3px; transition: background 0.3s; }
.h-demo .m-toggle span { display: block; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.2); transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1); }
.h-demo .m-screen-vpn.is-on .m-toggle { background: var(--m-teal); }
.h-demo .m-screen-vpn.is-on .m-toggle span { transform: translateX(20px); }
.h-demo .m-screen-vpn.is-on .m-vpn-card small { color: var(--m-teal); font-weight: 700; }
.h-demo .m-vpn-graph { margin-top: 18px; height: 110px; display: flex; align-items: flex-end; gap: 6px; padding: 12px; border-radius: 14px; background: var(--m-bg); }
.h-demo .m-vpn-graph span { flex: 1; height: 6%; border-radius: 4px; background: rgb(15 159 143 / 0.3); transition: height 0.6s; }
.h-demo .m-screen-vpn.is-on .m-vpn-graph span { background: var(--m-teal); animation: m-bars 1.4s ease-in-out infinite alternate; }
.h-demo .m-vpn-graph span:nth-child(2n) { animation-delay: -0.4s; }
.h-demo .m-vpn-graph span:nth-child(3n) { animation-delay: -0.9s; }
@keyframes m-bars { from { height: 25%; } to { height: 90%; } }

.h-demo .m-screen-done { display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 35%, rgb(15 159 143 / 0.18), #fff 70%); }
.h-demo .m-done-shield svg { width: 96px; margin: 0 auto; }
.h-demo .m-done-shield path:first-child { fill: var(--m-teal); }
.h-demo .m-done-shield path:last-child { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.h-demo .m-screen-done.is-active .m-done-shield { animation: m-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1); }
.h-demo .m-done-title { margin-top: 12px; font: 800 1.7rem 'Space Grotesk', sans-serif; }
.h-demo .m-done-list { margin-top: 12px; display: grid; gap: 6px; font-weight: 600; }

.h-demo .m-confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.h-demo .m-confetti i { position: absolute; left: 50%; top: 40%; width: 8px; height: 12px; border-radius: 2px; }.h-demo .m-phone { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 120px -30px rgb(62 240 208 / 0.5), inset 0 0 0 2px #333; }


/* ---------- Planos ---------- */
.h-plans { position: relative; padding: 140px 0 120px; }
.h-plans .h-h2 { margin-left: auto; margin-right: auto; max-width: 760px; }
.h-plan-grid { margin: 50px auto 0; max-width: 1100px; display: grid; gap: 22px; perspective: 1400px; align-items: center; }
@media (min-width: 960px) { .h-plan-grid { grid-template-columns: 1fr 1fr 1.12fr; } .h-plan-hot { padding-block: 44px; } }
@media (max-width: 959px) { .h-plan-grid { max-width: 520px; } .h-plan-hot { order: -1; } } /* no celular, o recomendado vem primeiro */
/* Com o Família ativo (4 cartões): 2 × 2 em telas médias, 4 lado a lado nas largas */
@media (min-width: 960px) { .h-plan-grid-4 { grid-template-columns: 1fr 1fr; max-width: 900px; } }
@media (min-width: 1280px) { .h-plan-grid-4 { grid-template-columns: 1fr 1fr 1.12fr 1fr; max-width: 1280px; } }
.h-plan[hidden] { display: none; }
.h-plan-more { margin-top: 12px; text-align: center; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; opacity: 0.8; }
.h-plan {
  --mx: 50%; --my: 50%; position: relative; padding: 32px; border-radius: 28px; display: flex; flex-direction: column; transform-style: preserve-3d;
  background: linear-gradient(160deg, var(--h-panel-a), var(--h-panel-b)); border: 1px solid var(--h-line); backdrop-filter: blur(16px);
}
.h-plan::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--mx) var(--my), rgb(62 240 208 / 0.14), transparent 60%); }
.h-plan h3 { font-size: 1.5rem; color: var(--h-strong); }
.h-plan > .h-p { margin-top: 6px; font-size: 0.92rem; }
.h-plan ul { margin: 20px 0 26px; display: grid; gap: 10px; font-size: 0.95rem; flex: 1; }
.h-plan li::before { content: '✓'; margin-right: 10px; color: var(--h-teal); font-weight: 700; }
.h-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.h-price b { font: 700 3rem 'Space Grotesk', sans-serif; color: var(--h-strong); }
.h-price span { color: var(--h-muted); }
.h-perday { font-size: 0.86rem; color: var(--h-teal); }
.h-anchor { margin-top: 14px; font: 500 0.82rem 'JetBrains Mono', monospace; }
.h-anchor s { color: var(--h-muted); }
.h-anchor span { color: var(--h-teal); }
@property --h-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.h-plan-hot {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--h-panel-solid), var(--h-panel-solid)) padding-box, conic-gradient(from var(--h-ang), #3ef0d0, #7c5cff, rgb(255 255 255 / 0.05) 45%, #3ef0d0) border-box;
  animation: h-spin 5s linear infinite; box-shadow: 0 40px 100px -40px rgb(62 240 208 / 0.55);
}
@keyframes h-spin { to { --h-ang: 360deg; } }
.h-badge { position: absolute; top: -13px; right: 24px; padding: 5px 12px; border-radius: 99px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #04110e; background: linear-gradient(90deg, var(--h-cta-a), var(--h-cta-b)); }

/* ---------- Final ---------- */
.h-final { position: relative; padding: 80px 0 0; min-height: 110vh; display: flex; flex-direction: column; justify-content: space-between; }
.h-footer { margin-top: 110px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px 22px; border-top: 1px solid var(--h-line); font-size: 0.84rem; color: var(--h-muted); background: var(--h-glass); }
.h-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.h-footer a:hover { color: var(--h-strong); }


/* Sem WebGL: fundo estático para manter a leitura */
.no-gl .h-gl { display: none; }
.no-gl.h-body { background: radial-gradient(60% 50% at 70% 30%, rgb(124 92 255 / 0.25), transparent 70%), radial-gradient(50% 40% at 20% 80%, rgb(62 240 208 / 0.15), transparent 70%), var(--h-bg); background-attachment: fixed; }

.h-plan { transition: translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.h-plan:hover { translate: 0 -6px; }

/* Sombreado atrás do texto do hero: dá contraste sem esconder a cena 3D à direita */
.h-hero-inner { isolation: isolate; }
.h-hero-inner::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; left: -40vw; width: calc(40vw + 760px);
  background: linear-gradient(90deg, color-mix(in srgb, var(--h-bg) 82%, transparent) 0%, color-mix(in srgb, var(--h-bg) 55%, transparent) 60%, transparent 100%);
}
@media (max-width: 759px) {
  .h-hero-inner::before { left: -22px; right: -22px; width: auto; bottom: auto; height: 60%; background: linear-gradient(180deg, color-mix(in srgb, var(--h-bg) 88%, transparent) 40%, transparent); }
}

/* ---------- Tema dia/noite: botão e checkout ---------- */
.theme-anim .h-body { transition: background-color 0.4s, color 0.4s; }
.h-head-actions { display: flex; align-items: center; gap: 10px; }
.h-theme {
  width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; cursor: pointer;
  color: var(--h-strong); background: var(--h-soft); border: 1px solid var(--h-line); transition: background 0.2s, transform 0.3s;
}
.h-theme:hover { background: var(--h-line); transform: rotate(-15deg); }
.h-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-theme .h-sun { display: var(--h-show-sun); }
.h-theme .h-moon { display: var(--h-show-moon); fill: currentColor; stroke: none; }

.h-link { font-weight: 600; color: var(--h-strong); padding: 14px 4px; border-bottom: 1px solid var(--h-line-strong); }
.h-link:hover { color: var(--h-teal); border-color: var(--h-teal); }

/* ---------- Por que a PixVPN ---------- */
.h-why { position: relative; z-index: 2; padding: 110px 0 90px; background: var(--h-glass); backdrop-filter: blur(18px); border-top: 1px solid var(--h-line); }
.h-why .h-h2 { margin-left: auto; margin-right: auto; }
.h-why-grid { margin: 42px auto 0; max-width: 1000px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.h-why-grid li {
  display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 20px; border-radius: 20px; background: linear-gradient(160deg, var(--h-panel-a), var(--h-panel-b)); border: 1px solid var(--h-line);
  transition: transform 0.3s, border-color 0.3s;
}
.h-why-grid li:hover { transform: translateY(-4px); border-color: var(--h-teal); }
.h-why-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--h-teal); background: var(--h-soft); border: 1px solid var(--h-line); }
.h-why-grid b { font: 700 1.12rem 'Space Grotesk', sans-serif; color: var(--h-strong); }
.h-why-grid small { font-size: 0.92rem; color: var(--h-muted); }

.h-compare { margin: 46px auto 0; max-width: 760px; border-radius: 22px; overflow: hidden; border: 1px solid var(--h-line); background: linear-gradient(160deg, var(--h-panel-a), var(--h-panel-b)); }
.h-crow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: center; padding: 14px 20px; border-top: 1px solid var(--h-line); font-size: 0.98rem; color: var(--h-text); }
.h-crow > :not(:first-child) { justify-self: center; text-align: center; }
.h-chead { border-top: 0; background: var(--h-soft); font-size: 0.86rem; color: var(--h-muted); }
.h-chead b { color: var(--h-teal); font-weight: 700; }
@media (max-width: 560px) { .h-crow { grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr; padding: 12px; font-size: 0.84rem; } }
.h-compare i, .h-legend i { width: 26px; height: 26px; border-radius: 99px; display: inline-grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.8rem; }
.h-compare i.y, .h-legend i.y { color: var(--h-teal); background: color-mix(in srgb, var(--h-teal) 15%, transparent); }
.h-compare i.y::before, .h-legend i.y::before { content: '✓'; }
.h-compare i.n, .h-legend i.n { color: var(--h-red); background: color-mix(in srgb, var(--h-red) 13%, transparent); }
.h-compare i.n::before, .h-legend i.n::before { content: '✕'; }
.h-compare i.m, .h-legend i.m { color: var(--h-amber); background: color-mix(in srgb, var(--h-amber) 16%, transparent); }
.h-compare i.m::before, .h-legend i.m::before { content: '~'; }
.h-compare i.x { color: var(--h-muted); }
.h-compare i.x::before { content: '—'; }
.h-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 12px; border-top: 1px solid var(--h-line); font-size: 0.8rem; color: var(--h-muted); }
.h-legend i { width: 20px; height: 20px; font-size: 0.7rem; }

/* ---------- Tags, usos e perguntas ---------- */
.h-tags, .h-uses { margin-top: 18px; display: grid; gap: 10px; }
.h-tags { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.h-tags li { padding: 10px 14px; border-radius: 14px; font-weight: 600; color: var(--h-strong); background: var(--h-soft); border: 1px solid var(--h-line); }
.h-uses { grid-template-columns: 1fr 1fr; }
.h-uses li { display: grid; gap: 8px; padding: 16px; border-radius: 16px; font-weight: 600; color: var(--h-strong); background: var(--h-soft); border: 1px solid var(--h-line); }
.h-uses span { font-size: 1.6rem; }

.h-faq { max-width: 760px; margin: 0 auto 100px; }
.h-faq details {
  margin-top: 12px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--h-line);
  background: linear-gradient(160deg, var(--h-panel-a), var(--h-panel-b)); backdrop-filter: blur(12px);
}
.h-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1.02rem; color: var(--h-strong); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--h-teal); transition: transform 0.3s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin-top: 10px; color: var(--h-muted); line-height: 1.55; }
.h-faq a { color: var(--h-strong); text-decoration: underline; }

/* ---------- Seletor de idioma (rodapé) ---------- */
.h-lang { display: flex; flex-wrap: wrap; gap: 8px; }
.h-lang a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--h-line); color: var(--h-muted); transition: border-color 0.2s, color 0.2s; }
.h-lang a:hover, .h-lang a[aria-current] { color: var(--h-strong); border-color: var(--h-teal); }
.flag { width: 22px; height: 16px; flex: none; clip-path: inset(0 round 3px); }

/* Destaque do título em degradê (roxo claro → verde-água), como na página de oferta */
:root { --h-grad-a: #b5a3ff; --h-grad-b: #3ef0d0; }
@media (prefers-color-scheme: light) { :root:not([data-theme='dark']) { --h-grad-a: #5b3fd6; --h-grad-b: #08806e; } }
:root[data-theme='light'] { --h-grad-a: #5b3fd6; --h-grad-b: #08806e; }
.h-grad {
  display: inline-block; padding-bottom: 0.06em; /* sem nowrap: frases longas quebram linha no celular */
  background: linear-gradient(90deg, var(--h-grad-a), var(--h-grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* Preço "a partir de" no topo e atalho para os planos no cabeçalho */
.h-from { margin-top: 10px; font-size: clamp(0.95rem, 1.3vw, 1.05rem); color: var(--h-muted); }
.h-from b { font: 700 1.25em 'Space Grotesk', sans-serif; color: var(--h-strong); }
.h-head-link { display: none; padding: 8px 10px; font-size: 0.9rem; font-weight: 600; color: var(--h-muted); }
.h-head-link:hover { color: var(--h-strong); }
@media (min-width: 760px) { .h-head-link { display: inline-block; } }

/* Celular da demonstração: segunda localização (Alemanha), incluída mas não selecionada */
.h-demo .m-vpn-alt { margin-top: 8px; opacity: 0.7; }
.h-demo .m-screen-vpn.is-on .m-vpn-alt small { color: var(--m-muted); font-weight: 400; }
.h-demo .m-flag-de { background: linear-gradient(180deg, #111 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }

/* Identificação da empresa no rodapé (Decreto 7.962/2013) */
.h-footer .h-company { flex-basis: 100%; margin-top: 4px; font-size: 0.75rem; line-height: 1.6; text-align: center; opacity: 0.85; }
.h-footer .h-company a { text-decoration: underline; text-underline-offset: 3px; }
