/* Misty · página de download
   Tokens e componentes do guia de design (DESIGN.md), que vêm de src/constants/theme.ts no app. */

:root {
  --bg: #240046; --bg-deep: #1A0033; --bg-deepest: #12001F;
  --surface: #2E0B57; --surface-raised: #3A1468; --surface-selected: #3B1A63;
  --line: #4A2A7A; --line-soft: #33105E; --line-strong: #5B3A8E; --line-dim: #3A1F63; --edge-deep: #26084A;
  --cream: #FFEDA8; --cream-edge: #CDB25E; --cream-light: #FFF6D6; --on-cream: #240046; --on-cream-muted: #5B3D84;
  --text: #F7F0FF; --text-soft: #D9CCF0; --text-muted: #B9A6D9; --text-faint: #A48BCB; --text-disabled: #9A84C4; --icon: #8F78BA;
  --amber: #FFB547; --rose: #FF7A9C; --lavender: #C7A6FF; --lavender-deep: #8E62E0; --sky: #A8D8FF;
  --correct: #7BE8C0; --correct-edge: #4DB591; --correct-bg: #123B37; --correct-tile: #143F3A; --correct-ink: #0B2A24; --correct-body: #D3F5E8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* curvas de animação do app */
  --ease-soft: cubic-bezier(.37, 0, .63, 1);
  --ease-bounce: cubic-bezier(.3, 1.6, .55, 1);
  --ease-rise: cubic-bezier(.1, .55, .45, 1);

  /* o brilho de 4 pontas do guia, para usar como marcador */
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c.6 6 4 9.4 10 10-6 .6-9.4 4-10 10-.6-6-4-9.4-10-10 6-.6 9.4-4 10-10z'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- idioma: só o idioma ativo aparece ---------- */
html[lang="pt-BR"] [lang="en"],
html[lang="en"] [lang="pt-BR"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  font: 600 16px/1.55 var(--font-body);
  color: var(--text);
  background: var(--bg) url("../assets/sky/stars.svg") 0 0 / 1200px 1200px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2 { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; border-radius: 14px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- topo ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--line-soft), 0 4px 0 var(--bg-deepest); }
.brand__name { font: 900 27px/1 var(--font-display); letter-spacing: -.01em; }

.lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-deep); border: 2px solid var(--line-soft); }
.lang button {
  font: 900 12px/1 var(--font-body); letter-spacing: 1.2px;
  color: var(--text-faint); background: none; border: 0; border-radius: 999px;
  padding: 9px 13px; cursor: pointer; transition: color .15s, background-color .15s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--surface-raised); color: var(--cream); }

/* ---------- títulos ---------- */
.display {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(46px, 6.1vw, 82px); line-height: 1.04; letter-spacing: -.022em;
  color: var(--text); text-wrap: balance;
}
.display--md { font-size: clamp(36px, 4.3vw, 58px); }
.display--lg { font-size: clamp(38px, 5vw, 66px); }
.display em { font-style: italic; color: var(--cream); }

/* a palavra de destaque num “selo” creme, como nos screenshots da App Store */
.pill {
  display: inline-block; white-space: nowrap; font-style: italic; line-height: 1;
  color: var(--on-cream); background: var(--cream);
  padding: .04em .2em .1em; margin: .08em .03em 0 .05em; border-radius: .2em;
  box-shadow: 0 .075em 0 var(--cream-edge);
  transform: rotate(-2.4deg);
}

.eyebrow { font: 900 13px/1 var(--font-body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--lavender); margin-bottom: 16px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center; gap: clamp(36px, 5.5vw, 84px);
  padding-block: clamp(20px, 3.5vw, 40px) clamp(72px, 9vw, 120px);
}
.hero__copy { max-width: 580px; }

.stats { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.stats__sparks { width: 26px; height: 36px; fill: var(--cream); flex: none; }
.stats__sparks--r { transform: scaleX(-1); }
.stat { display: grid; justify-items: center; gap: 5px; padding-inline: 6px; }
.stat__value { font: 800 34px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.stat__label { font: 700 13px/1.2 var(--font-body); color: var(--text-muted); white-space: nowrap; }
.stats__rule { width: 2px; align-self: stretch; margin-block: 2px; border-radius: 2px; background: var(--line); }

.lead { margin: 24px 0 34px; max-width: 32em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: var(--text-soft); text-wrap: pretty; }

/* ---------- botões das lojas: o botão 3D do app ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.stores--center { justify-content: center; }
.store {
  --face: var(--cream); --edge: var(--cream-edge); --ink: var(--on-cream);
  display: inline-flex; align-items: center; gap: 13px;
  min-width: 214px; height: 64px; padding: 0 24px 0 20px; border-radius: 16px;
  background: var(--face); color: var(--ink); box-shadow: 0 4px 0 var(--edge);
  text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .06s, box-shadow .06s, background-color .15s;
}
.store:hover { background: var(--cream-light); }
.store:active, .store.is-pressed { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.store__logo { width: 26px; height: 30px; fill: currentColor; flex: none; }
.store__logo--play { width: 24px; height: 26px; }
.store__text { display: grid; gap: 4px; text-align: left; }
.store__kicker { font: 800 11px/1 var(--font-body); letter-spacing: .9px; text-transform: uppercase; color: var(--on-cream-muted); }
.store__name { font: 900 21px/1 var(--font-body); letter-spacing: .1px; }
.store .live { display: none; }
html[data-appstore="live"] .store[data-store="appStore"] .soon,
html[data-googleplay="live"] .store[data-store="googlePlay"] .soon { display: none; }
html[data-appstore="live"] .store[data-store="appStore"] .live,
html[data-googleplay="live"] .store[data-store="googlePlay"] .live { display: inline; }

/* ---------- rostinho + balão de fala ---------- */
.face {
  --s: 56px;
  position: relative; flex: none; width: var(--s); height: var(--s);
  border-radius: 50%; overflow: hidden; background: var(--surface-raised); box-shadow: 0 0 0 2px var(--line);
}
/* igual ao MistyFace do app: o palco cresce 1,7× e a cabeça fica no centro do círculo */
.face img { position: absolute; max-width: none; width: calc(var(--s) * 1.7); height: calc(var(--s) * 1.7); left: calc(var(--s) * -.3475); top: calc(var(--s) * -.1136); }
.face--sm { --s: 46px; }

.bubble {
  position: relative; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--line);
  font: 700 15px/1.45 var(--font-body); color: var(--text-soft);
}
.bubble::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--surface); border-left: 2px solid var(--line); border-bottom: 2px solid var(--line);
  border-bottom-left-radius: 3px; transform: rotate(45deg);
}

.note { display: flex; align-items: center; gap: 16px; margin-top: 30px; max-width: 470px; }
html.has-live .note { display: none; }

.qr { display: none; align-items: center; gap: 18px; margin-top: 30px; }
html.has-live .qr { display: flex; }
.qr__code { flex: none; width: 132px; height: 132px; padding: 12px; border-radius: 18px; background: var(--cream); box-shadow: 0 4px 0 var(--cream-edge); }
.qr__code svg { width: 100%; height: 100%; }
.qr__text { max-width: 240px; font: 700 15px/1.5 var(--font-body); color: var(--text-soft); }

/* ---------- o Misty: sempre com brilho lavanda atrás e sombra nos pés ---------- */
.misty { position: relative; aspect-ratio: 1; }
.misty::before {
  content: ""; position: absolute; left: 4%; top: 8%; width: 92%; height: 92%;
  background: radial-gradient(closest-side, rgba(196, 160, 255, .30), rgba(196, 160, 255, .12) 55%, rgba(196, 160, 255, 0));
}
.misty::after {
  content: ""; position: absolute; left: 32%; width: 36%; top: 88%; height: 5.2%;
  border-radius: 50%; background: rgba(12, 0, 30, .5);
}
.misty img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  transform-origin: 50% 90%;
  animation: misty-breathe 3.2s var(--ease-soft) infinite;
}
.misty[data-hop] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.misty.is-hopping img { animation: misty-hop .52s var(--ease-soft); }

@keyframes misty-breathe { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(.986, 1.02); } }
@keyframes misty-hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.03, .96); }
  50% { transform: translateY(-9%) scale(.98, 1.03); }
  82% { transform: translateY(0) scale(1.02, .98); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* ---------- palco do hero ---------- */
.hero__art { position: relative; }
.stage {
  position: relative; container-type: inline-size; isolation: isolate; overflow: hidden;
  aspect-ratio: 560 / 640; border-radius: 32px; border: 2px solid var(--line-soft);
  background:
    radial-gradient(56% 44% at 46% 44%, rgba(142, 98, 224, .40), rgba(142, 98, 224, 0) 72%),
    radial-gradient(42% 26% at 78% 94%, rgba(199, 166, 255, .16), rgba(199, 166, 255, 0) 70%),
    var(--bg-deep);
  box-shadow: 0 40px 90px -40px rgba(5, 0, 15, .9);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url("../assets/sky/stars.svg") 160px 40px / 900px 900px;
}
.stage__card { position: absolute; width: 25cqw; height: auto; filter: drop-shadow(0 2cqw 3cqw rgba(5, 0, 15, .55)); }
.stage__card--l { left: 3.5cqw; top: 25cqw; rotate: -13deg; }
.stage__card--r { right: 4.5cqw; top: 8cqw; rotate: 11deg; }

.misty--hero { position: absolute; z-index: 3; width: 50cqw; right: -5.5cqw; bottom: 0; }

.twinkle { position: absolute; z-index: 2; width: 3.2cqw; fill: var(--cream); animation: twinkle 3.6s var(--ease-soft) infinite; }
.twinkle--1 { left: 9cqw; top: 9cqw; }
.twinkle--2 { right: 9cqw; top: 54cqw; width: 2.4cqw; animation-delay: -1.2s; }
.twinkle--3 { left: 12cqw; bottom: 12cqw; width: 2.2cqw; animation-delay: -2.4s; }
@keyframes twinkle { 0%, 100% { opacity: .2; scale: .55; } 50% { opacity: 1; scale: 1; } }

/* ---------- o celular ---------- */
.phone {
  position: absolute; z-index: 2; left: 22cqw; top: 7cqw; width: 46cqw;
  padding: 1.4cqw; border-radius: 7.6cqw;
  background: linear-gradient(150deg, #3d1f6b 0%, #170029 28%, #0b0015 70%, #2c1352 100%);
  box-shadow: inset 0 0 0 .3cqw rgba(199, 166, 255, .26), 0 3.5cqw 8cqw rgba(5, 0, 15, .65);
}
.screen {
  /* 1 “px” do app = 1/390 da largura da tela: tudo dentro escala junto com o celular */
  --u: calc(100cqw / 390);
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  aspect-ratio: 390 / 844; border-radius: 6.3cqw;
  background: var(--bg) url("../assets/sky/stars.svg") 0 0 / 600px 600px;
}
.statusbar {
  position: absolute; z-index: 6; inset: 0 0 auto; height: calc(54 * var(--u));
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(4 * var(--u)) calc(30 * var(--u)) 0 calc(46 * var(--u));
  font: 800 calc(16 * var(--u))/1 var(--font-body); color: var(--text);
}
.statusbar__icons { display: flex; align-items: center; gap: calc(6 * var(--u)); }
.statusbar__icons svg { height: calc(12 * var(--u)); fill: currentColor; }
.statusbar__icons svg:nth-child(1) { width: calc(18 * var(--u)); }
.statusbar__icons svg:nth-child(2) { width: calc(16 * var(--u)); }
.statusbar__icons svg:nth-child(3) { width: calc(27 * var(--u)); }
.island {
  position: absolute; z-index: 7; top: calc(11 * var(--u)); left: 50%;
  width: calc(122 * var(--u)); height: calc(35 * var(--u)); transform: translateX(-50%);
  border-radius: 999px; background: #05000a;
}
.homebar {
  position: absolute; z-index: 7; bottom: calc(8 * var(--u)); left: 50%;
  width: calc(134 * var(--u)); height: calc(5 * var(--u)); transform: translateX(-50%);
  border-radius: 999px; background: rgba(247, 240, 255, .7);
}

.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-soft), visibility 0s linear .5s; }
.screen[data-scene="home"] .scene--home,
.screen[data-scene="splash"] .scene--splash,
.screen[data-scene="quiz"] .scene--quiz { opacity: 1; visibility: visible; transition-delay: 0s; }

/* 1. tela inicial do celular, com o app instalando */
.scene--home {
  display: grid; justify-items: center; align-content: start; gap: calc(9 * var(--u));
  padding-top: calc(132 * var(--u));
  background:
    radial-gradient(95% 55% at 50% 16%, rgba(142, 98, 224, .55), rgba(142, 98, 224, 0) 72%),
    linear-gradient(180deg, rgba(26, 0, 51, 0) 40%, var(--bg-deep));
}
.appicon {
  position: relative; width: calc(78 * var(--u)); aspect-ratio: 1; border-radius: 23%; overflow: hidden;
  box-shadow: 0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(5, 0, 15, .5);
  transition: transform .28s var(--ease-bounce);
}
.appicon img { width: 100%; height: 100%; filter: brightness(.45) saturate(.5); transition: filter .6s var(--ease-soft); }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.appicon__pie {
  position: absolute; inset: 30%; border-radius: 50%;
  background: conic-gradient(rgba(255, 255, 255, .95) var(--p), rgba(255, 255, 255, .14) 0);
  box-shadow: 0 0 0 calc(2.4 * var(--u)) rgba(255, 255, 255, .95);
  transition: opacity .35s, scale .35s;
}
.screen.is-installing .appicon__pie { animation: install 2.6s cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes install { to { --p: 100%; } }
.screen.is-installed .appicon img { filter: none; }
.screen.is-installed .appicon__pie { opacity: 0; scale: .5; }
.screen.is-tapped .appicon { transform: scale(.86); }
.appicon__label { font: 700 calc(13 * var(--u))/1.2 var(--font-body); color: var(--text); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.appicon__name { display: none; }
.screen.is-installed .appicon__installing { display: none; }
.screen.is-installed .appicon__name { display: inline; }

/* 2. abertura: o medalhão do verso da carta e o mergulho */
.scene--splash { background: var(--bg); }
.splash__glow, .splash__medallion, .splash__star { position: absolute; left: 50%; top: 46%; translate: -50% -50%; }
.splash__glow {
  width: calc(340 * var(--u)); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(199, 166, 255, .34), rgba(199, 166, 255, 0));
}
.splash__medallion { width: calc(170 * var(--u)); border-radius: 50%; scale: .6; opacity: 0; }
.splash__star { width: calc(98 * var(--u)); scale: 0; opacity: 0; rotate: -40deg; }
.screen.is-splash-in .splash__medallion { scale: 1; opacity: 1; transition: scale .8s var(--ease-rise), opacity .5s var(--ease-soft); }
.screen.is-splash-in .splash__star { scale: 1; opacity: 1; rotate: 0deg; transition: scale .6s var(--ease-bounce) .5s, opacity .3s .5s, rotate .6s var(--ease-rise) .5s; }
.screen.is-dive .splash__medallion { scale: 9; opacity: 0; transition: scale .9s cubic-bezier(.55, 0, .85, .4), opacity .6s .25s; }
.screen.is-dive .splash__star { scale: 4; opacity: 0; transition: scale .8s cubic-bezier(.55, 0, .85, .4), opacity .45s; }

/* 3. lição: “Que carta é esta?” */
.scene--quiz { background: var(--bg); }
.quiz__top {
  position: absolute; top: calc(64 * var(--u)); left: calc(22 * var(--u)); right: calc(22 * var(--u));
  display: flex; align-items: center; gap: calc(16 * var(--u));
}
.quiz__close { flex: none; width: calc(24 * var(--u)); height: calc(24 * var(--u)); fill: none; stroke: var(--icon); stroke-width: 2.6; stroke-linecap: round; }
.quiz__bar { flex: 1; height: calc(16 * var(--u)); border-radius: 999px; background: var(--surface-raised); overflow: hidden; }
.quiz__fill {
  display: block; height: 100%; width: var(--progress, 8%); border-radius: inherit;
  background: var(--cream); box-shadow: inset 0 calc(-4 * var(--u)) 0 rgba(205, 178, 94, .55);
  transition: width .6s var(--ease-rise);
}
.quiz__hearts { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font: 900 calc(18 * var(--u))/1 var(--font-body); color: var(--rose); }
.quiz__hearts svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: var(--rose); }

.quiz__body {
  position: absolute; top: calc(112 * var(--u)); left: calc(22 * var(--u)); right: calc(22 * var(--u));
  transition: opacity .3s var(--ease-soft), translate .35s var(--ease-rise);
}
.screen.is-leaving .quiz__body { opacity: 0; translate: calc(-24 * var(--u)) 0; }
.screen.is-entering .quiz__body { opacity: 0; translate: calc(24 * var(--u)) 0; transition: none; }
.quiz__label { font: 900 calc(13 * var(--u))/1 var(--font-body); letter-spacing: calc(1.4 * var(--u)); text-transform: uppercase; color: var(--lavender); }
.quiz__prompt { margin-top: calc(10 * var(--u)); font: 800 calc(27 * var(--u))/1.15 var(--font-display); color: var(--text); }
.quiz__card { position: relative; width: calc(150 * var(--u)); margin: calc(22 * var(--u)) auto 0; }
.quiz__card img { width: 100%; height: auto; }
.quiz__secret, .quiz__numeral {
  position: absolute; left: 0; right: 0; text-align: center;
  font: 800 calc(13 * var(--u))/1 var(--font-display); letter-spacing: calc(1.5 * var(--u)); color: var(--cream);
}
.quiz__secret { top: 8.6%; color: var(--text-soft); }
.quiz__numeral { bottom: 4.6%; }

.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12 * var(--u)); margin-top: calc(26 * var(--u)); }
.opt {
  display: grid; place-items: center; height: calc(64 * var(--u)); padding: 0 calc(8 * var(--u));
  border-radius: calc(14 * var(--u)); background: var(--surface);
  border: calc(2 * var(--u)) solid var(--line-dim); box-shadow: 0 calc(4 * var(--u)) 0 var(--edge-deep);
  font: 800 calc(15 * var(--u))/1.15 var(--font-body); color: var(--text-muted); text-align: center;
  transition: background-color .2s, border-color .2s, color .2s, transform .08s, box-shadow .08s;
}
.opt.is-selected { background: var(--surface-selected); border-color: var(--cream); color: var(--text); }
.opt.is-pressing { transform: translateY(calc(4 * var(--u))); box-shadow: 0 0 0 var(--edge-deep); }
.opt.is-right { background: var(--correct-tile); border-color: var(--correct); color: var(--correct); box-shadow: 0 calc(4 * var(--u)) 0 var(--correct-edge); }

.quiz__check, .quiz__continue {
  display: grid; place-items: center; height: calc(54 * var(--u)); border-radius: calc(16 * var(--u));
  font: 900 calc(15 * var(--u))/1 var(--font-body); letter-spacing: calc(1.2 * var(--u)); text-transform: uppercase;
  transition: background-color .2s, color .2s, transform .08s, box-shadow .08s;
}
.quiz__check {
  position: absolute; left: calc(22 * var(--u)); right: calc(22 * var(--u)); bottom: calc(42 * var(--u));
  background: var(--surface-raised); color: var(--text-disabled); box-shadow: 0 calc(4 * var(--u)) 0 var(--edge-deep);
}
.screen.is-ready .quiz__check { background: var(--cream); color: var(--on-cream); box-shadow: 0 calc(4 * var(--u)) 0 var(--cream-edge); }
.quiz__check.is-pressing, .quiz__continue.is-pressing { transform: translateY(calc(4 * var(--u))); box-shadow: none; }

.quiz__panel {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 0;
  display: grid; gap: calc(12 * var(--u));
  padding: calc(22 * var(--u)) calc(22 * var(--u)) calc(42 * var(--u));
  border-radius: calc(24 * var(--u)) calc(24 * var(--u)) 0 0; background: var(--correct-bg);
  translate: 0 150%; transition: translate .45s var(--ease-rise);
}
.screen.is-right .quiz__panel { translate: 0 0; }
.quiz__praise { display: flex; align-items: center; gap: calc(10 * var(--u)); font: 800 calc(23 * var(--u))/1.1 var(--font-display); color: var(--correct); }
.quiz__tick { flex: none; display: grid; place-items: center; width: calc(34 * var(--u)); height: calc(34 * var(--u)); border-radius: 50%; background: var(--correct); }
.quiz__tick svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: var(--correct-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.quiz__explain { font: 700 calc(15 * var(--u))/1.45 var(--font-body); color: var(--correct-body); }
.quiz__continue { margin-top: calc(4 * var(--u)); background: var(--correct); color: var(--correct-ink); box-shadow: 0 calc(4 * var(--u)) 0 var(--correct-edge); }

/* sem JavaScript: mostra a lição já respondida */
html:not(.js) .screen .scene--home { opacity: 0; visibility: hidden; }
html:not(.js) .screen .scene--quiz { opacity: 1; visibility: visible; }
html:not(.js) .quiz__panel { translate: 0 0; }

/* ---------- por dentro do app ---------- */
.peek { padding-block: 0 clamp(72px, 9vw, 120px); }
.peek__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 4vw, 48px); }
.peek__lead { margin-top: 16px; max-width: 38em; font-size: 17px; color: var(--text-soft); text-wrap: pretty; }
.pause {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; border: 2px solid var(--line); background: var(--bg); color: var(--cream);
  box-shadow: 0 4px 0 var(--line); cursor: pointer; transition: transform .06s, box-shadow .06s;
}
.pause:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.pause__icon { width: 20px; height: 20px; fill: currentColor; }
.pause__icon--play, .pause[aria-pressed="true"] .pause__icon--pause { display: none; }
.pause[aria-pressed="true"] .pause__icon--play { display: block; }
html:not(.js) .pause { display: none; }

.marquee {
  overflow: hidden; padding-block: 6px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; gap: 22px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.shot { flex: none; width: clamp(200px, 20vw, 264px); }
.shot img {
  width: 100%; height: auto; border-radius: 26px; background: var(--bg-deep);
  border: 2px solid var(--line-soft); box-shadow: 0 26px 50px -24px rgba(5, 0, 15, .85);
}

/* ---------- CTA final ---------- */
.cta { padding-bottom: clamp(56px, 7vw, 96px); }
.cta__card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 76px);
  border-radius: 32px; border: 2px solid var(--line-soft);
  background: radial-gradient(60% 55% at 50% 26%, rgba(142, 98, 224, .34), rgba(142, 98, 224, 0) 72%), var(--bg-deep);
}
.cta__card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/sky/stars.svg") -300px -200px / 900px 900px; opacity: .9; }
.cta__deco { position: absolute; z-index: -1; width: clamp(120px, 14vw, 190px); height: auto; filter: drop-shadow(0 18px 30px rgba(5, 0, 15, .6)); }
.cta__deco--l { left: clamp(-40px, -1vw, 0px); bottom: -9%; rotate: -15deg; }
.cta__deco--r { right: clamp(-40px, -1vw, 0px); top: -7%; rotate: 13deg; }
.misty--cta { width: clamp(184px, 19vw, 236px); margin-bottom: 4px; }
.cta .display { max-width: 15em; }
.cta__lead { margin: 20px auto 34px; max-width: 32em; font-size: clamp(17px, 1.4vw, 19px); color: var(--text-soft); text-wrap: pretty; }

/* ---------- rodapé ---------- */
.foot { background: var(--bg-deep); border-top: 2px solid var(--line-soft); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 18px 22px; }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand p { display: grid; gap: 2px; font-size: 14px; color: var(--text-faint); }
.foot__brand strong { font-weight: 800; color: var(--text-soft); }
.misty--foot { width: 84px; }
.misty--foot img { animation-duration: 4.8s; }
.foot__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 28px; }
.foot__link { padding: 8px 0; border-radius: 6px; font: 800 14px/1 var(--font-body); color: var(--text-soft); text-decoration: none; }
.foot__link:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.foot__link[aria-current="page"] { color: var(--cream); }
.foot__lang { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-faint); }
.foot__lang button { font: 800 14px/1 var(--font-body); color: var(--text-faint); background: none; border: 0; padding: 8px 2px; cursor: pointer; }
.foot__lang button:hover { color: var(--text); }
.foot__lang button[aria-pressed="true"] { color: var(--cream); }

/* ---------- recado do Misty (toast) ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  translate: -50% 160%; opacity: 0; pointer-events: none;
  transition: translate .45s var(--ease-rise), opacity .3s var(--ease-soft);
}
.toast.is-open { translate: -50% 0; opacity: 1; }
.bubble--toast { box-shadow: 0 20px 44px -14px rgba(5, 0, 15, .8); }
.bubble--toast:empty { display: none; }

/* ---------- política de privacidade ---------- */
.legal { max-width: 760px; padding-block: clamp(16px, 3vw, 32px) clamp(64px, 8vw, 104px); }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); padding: 6px 0;
  font: 800 14px/1 var(--font-body); color: var(--text-muted); text-decoration: none;
}
.legal__back:hover { color: var(--cream); }
.legal__doc h1 { color: var(--cream); }
.legal__updated { margin-top: 14px; font: 700 14px/1.4 var(--font-body); color: var(--text-muted); }
.legal__intro {
  margin-top: 28px; padding: 20px 22px; border-radius: 20px;
  background: var(--surface); border: 2px solid var(--line);
  font: 700 17px/1.65 var(--font-body); color: var(--text-soft); text-wrap: pretty;
}
.legal__doc section { margin-top: clamp(32px, 4vw, 44px); scroll-margin-top: 24px; }
.legal__doc h2 { margin-bottom: 12px; font: 800 clamp(22px, 2.3vw, 26px)/1.25 var(--font-display); color: var(--text); text-wrap: balance; }
.legal__doc section p, .legal__doc li { font-size: 16.5px; line-height: 1.7; color: var(--text-soft); text-wrap: pretty; }
.legal__doc section > * + * { margin-top: 12px; }
.legal__doc section > h2 + * { margin-top: 0; }
.legal__doc ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.legal__doc li { position: relative; padding-left: 26px; }
.legal__doc li::before {
  content: ""; position: absolute; left: 1px; top: .45em; width: 14px; height: 14px; background: var(--cream);
  -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat;
}
.ui { font-weight: 800; color: var(--text); }
.legal__email {
  display: inline-block; padding: 4px 0;
  font: 900 18px/1.3 var(--font-body); color: var(--cream);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere;
}
.legal__email:hover { color: var(--cream-light); }
.legal__tel { font-weight: 900; color: var(--cream); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- telas menores ---------- */
@media (max-width: 940px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__art { order: -1; width: 100%; max-width: 540px; margin-inline: auto; }
  .hero__copy { max-width: 640px; margin-inline: auto; text-align: center; }
  .stats, .stores { justify-content: center; }
  .lead { margin-inline: auto; }
  .note { margin-inline: auto; text-align: left; }
  html.has-live .qr { display: none; }
}
@media (hover: none) { html.has-live .qr { display: none; } }
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .top { padding-top: 16px; }
  .stage { border-radius: 26px; }
  .stat__value { font-size: 28px; }
  .stats { gap: 10px; margin-bottom: 22px; }
  .lead { margin: 20px auto 28px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .peek__head { align-items: flex-start; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { gap: 14px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
  .cta__card { border-radius: 26px; }
  .cta__deco { width: 104px; opacity: .45; }
  .cta__deco--l { left: -38px; bottom: -40px; }
  .cta__deco--r { right: -38px; top: -36px; }
  .foot__inner { justify-content: center; text-align: center; }
}

/* ---------- menos movimento: tudo parado ---------- */
@media (prefers-reduced-motion: reduce) {
  .misty img, .misty.is-hopping img, .twinkle { animation: none !important; }
  .scene, .quiz__body, .quiz__panel, .opt, .quiz__fill, .appicon, .store, .toast { transition: none !important; }
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; scrollbar-color: var(--line) transparent; }
  .marquee__track { animation: none; padding-inline: max(24px, (100vw - 1200px) / 2); }
  .marquee__track > [aria-hidden="true"], .pause { display: none; }
  .shot { scroll-snap-align: center; }
}
