/* AKL website. Mobile first: base = phone, 640px = tablet, 1024px = desktop, 1440px = wide.
   Brand colours match the Android app (night #0B0D0E, sun #FFD23F). */

:root {
  --night: #0b0d0e;
  --night-2: #111517;
  --card: #161a1c;
  --raised: #1f2427;
  --line: #2a3033;
  --line-soft: #1f2427;
  --bright: #f4f6f5;
  --dim: #a3acae;
  --mute: #6f787b;
  --sun: #ffd23f;
  --sun-deep: #f5b700;
  --on-sun: #241b00;
  --mint: #3fd07f;
  --sky: #59bfff;
  --peach: #ff8a4c;
  --aqua: #45d6c4;
  --pink: #ff8fa8;
  --lilac: #b9a4ff;
  --red: #ff5d5d;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Sora", "Noto Sans Devanagari", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4.5vw, 3.5rem);
  --max: 1200px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
  --accent: var(--sun);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--on-sun); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 7vw, 4rem); }
h3 { font-size: clamp(1.25rem, 3.4vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(4.5rem, 12vw, 9rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; color: var(--sun);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { color: var(--dim); font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 56ch; margin-top: 1.1rem; }
.section-head { margin-bottom: clamp(2.2rem, 6vw, 3.8rem); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.section-head--center h2 { margin: 0 auto; max-width: 18ch; }
.hl { color: var(--sun); }
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -4%; bottom: -.18em; width: 108%; height: .42em; overflow: visible; }
.scribble path { fill: none; stroke: var(--sun); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Grain ---------- */
.noise {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--raised); --fg: var(--bright);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.45rem; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sun { --bg: var(--sun); --fg: var(--on-sun); box-shadow: 0 10px 30px -12px rgba(255, 210, 63, .55); }
.btn--sun:hover { box-shadow: 0 16px 38px -12px rgba(255, 210, 63, .7); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--dim); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn .icon { width: 1.15em; height: 1.15em; }

.store {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 58px; padding: 0 1.4rem 0 1.1rem;
  border-radius: 16px; background: var(--bright); color: var(--night); font-weight: 700;
  transition: transform .25s var(--ease);
}
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store .icon { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.08rem; }
.store small { font-size: .7rem; font-weight: 500; opacity: .7; }
.store--soon { background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--line); pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px;
  background: var(--raised); color: var(--dim); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.chip .icon { width: 1em; height: 1em; }
.chip--sun { background: rgba(255, 210, 63, .12); color: var(--sun); }
.chip--soon { background: rgba(185, 164, 255, .13); color: var(--lilac); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav.is-scrolled { background: rgba(11, 13, 14, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line-soft); }
.nav__brand img { width: 62px; height: auto; }
.nav__links { display: none; }
.nav__links a { position: relative; color: var(--dim); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--bright); }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--sun); }
.nav__right { display: flex; align-items: center; gap: .6rem; }
.nav__cta { display: none; }
.nav__toggle {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--raised);
  display: grid; place-items: center;
}
.nav__toggle .icon { width: 22px; height: 22px; }

.menu {
  position: fixed; inset: 0; z-index: 79; background: var(--night);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 2rem;
  clip-path: circle(0% at calc(100% - 2.6rem) 2rem); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2rem); visibility: visible; transition: clip-path .7s var(--ease); }
.menu__links { display: flex; flex-direction: column; gap: .25rem; }
.menu__links a {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.15;
  display: flex; align-items: baseline; gap: .9rem; opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .5s var(--ease), color .2s;
}
.menu__links a small { font-family: var(--font-body); font-size: .8rem; color: var(--mute); font-weight: 600; letter-spacing: 0; }
.menu__links a:hover { color: var(--sun); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .24s; }
.menu__foot { display: flex; flex-direction: column; gap: 1rem; }
.menu__foot p { color: var(--mute); font-size: .9rem; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
  display: flex; align-items: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__sunrise {
  position: absolute; width: 130vmax; height: 130vmax; left: 50%; top: 62%; transform: translate(-50%, 0);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 63, .22), rgba(255, 138, 76, .08) 45%, transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; display: grid; gap: 2.8rem; align-items: center; }
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.7rem, 11.5vw, 6.2rem); letter-spacing: -0.045em; line-height: .98; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { color: var(--dim); font-size: clamp(1.05rem, 2.6vw, 1.25rem); max-width: 46ch; margin-top: 1.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.hero__stage { position: relative; display: grid; place-items: center; padding: 1rem 0 2rem; }

.float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem .9rem; border-radius: 16px; font-weight: 700; font-size: .85rem;
  background: rgba(31, 36, 39, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation: bob 5s ease-in-out infinite;
}
.float .icon { width: 1.15em; height: 1.15em; }
.float--streak { left: 2%; top: 12%; color: var(--peach); }
.float--xp { right: 0; top: 30%; color: var(--sun); animation-delay: -1.5s; }
.float--combo { left: 0; bottom: 22%; color: var(--mint); animation-delay: -3s; }
.float--sparks { right: 4%; bottom: 8%; color: var(--sky); animation-delay: -2s; display: none; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Phone ---------- */
.phone {
  --w: min(300px, 76vw);
  position: relative; width: var(--w); aspect-ratio: 9 / 19; z-index: 2;
  border-radius: calc(var(--w) * .15); padding: calc(var(--w) * .035);
  background: linear-gradient(150deg, #3a4044, #15191b 40%, #2a2f33);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .12); background: var(--night);
  display: flex; flex-direction: column;
}
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 0; font-size: 11px; font-weight: 600; height: 30px; }
.phone__island { width: 30%; height: 20px; border-radius: 20px; background: #000; }
.phone__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 4px; gap: 6px; }
.phone__bar img { width: 40px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: var(--raised); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill .icon { width: 12px; height: 12px; }
.pill--streak { color: var(--peach); }
.pill--sparks { color: var(--sky); }
.pill--clock { color: var(--bright); font-variant-numeric: tabular-nums; }
.lang { display: inline-flex; border-radius: 999px; background: var(--raised); padding: 2px; }
.lang button { border: 0; background: transparent; padding: 3px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--dim); }
.lang button[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); }

.deck { position: relative; flex: 1; margin: 6px 10px 0; }
.qcard {
  position: absolute; inset: 0 0 8px; border-radius: 20px; padding: 16px 14px 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .55s var(--ease), opacity .45s;
}
.qcard.is-leaving { transform: translateY(-108%) scale(.94); opacity: 0; }
.qcard.is-coming { transform: translateY(40%) scale(.92); opacity: 0; }
.qcard__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.qcard__tag { font-size: 10.5px; font-weight: 700; color: var(--sun); background: rgba(255, 210, 63, .1); padding: 3px 8px; border-radius: 999px; }
.qcard__n { font-size: 10.5px; color: var(--mute); font-weight: 600; }
.qcard__q { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; flex: 1; display: flex; align-items: flex-start; padding-top: 14px; }
.qcard__opts { display: grid; gap: 7px; }
.qcard__opts button {
  position: relative; display: flex; align-items: center; justify-content: space-between; text-align: left;
  min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 0; background: var(--raised);
  font-size: 13px; font-weight: 600; transition: background .2s, transform .15s, box-shadow .2s;
}
.qcard__opts button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--sun); }
.qcard__opts button:active:not(:disabled) { transform: scale(.97); }
.qcard__opts button:disabled { cursor: default; }
.qcard__opts button .icon { width: 15px; height: 15px; opacity: 0; }
.qcard__opts button.is-right { background: var(--mint); color: #062312; }
.qcard__opts button.is-wrong { background: var(--red); color: #2b0505; animation: shake .35s; }
.qcard__opts button.is-right .icon, .qcard__opts button.is-wrong .icon { opacity: 1; }
.qcard__opts button.is-dim { opacity: .45; }
.qcard__why { font-size: 11.5px; color: var(--dim); line-height: 1.4; min-height: 2.8em; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.qcard__why.is-on { opacity: 1; transform: none; }
.qcard__why b { color: var(--sun); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.phone__hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; font-size: 11px; font-weight: 700; color: var(--on-sun); background: var(--sun); padding: 5px 10px; border-radius: 999px; white-space: nowrap; pointer-events: none; animation: hint 1.6s ease-in-out infinite; transition: opacity .3s; }
.phone__hint.is-gone { opacity: 0; }
@keyframes hint { 50% { transform: translate(-50%, -4px); } }
.phone__home { height: 22px; display: grid; place-items: center; }
.phone__home span { width: 34%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.xp-pop { position: absolute; z-index: 6; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--sun); animation: pop 1s var(--ease) forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-10px) scale(1.1); } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--line-soft); background: var(--night-2); }
.marquee__track { display: flex; gap: 2.6rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 2.6rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: -0.03em; color: var(--dim); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 14px; height: 14px; background: var(--sun); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Compare (reels vs AKL) ---------- */
.compare { display: grid; gap: 1rem; }
.cmp {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.6rem;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.cmp h3 { display: flex; align-items: center; gap: .6rem; }
.cmp__visual { position: relative; height: 180px; border-radius: 16px; background: var(--night); overflow: hidden; }
.cmp__rows { display: grid; gap: 1.2rem; }
.cmp__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.cmp__row:last-child { border-bottom: 0; padding-bottom: 0; }
.cmp__row > span { color: var(--dim); font-size: .92rem; }
.cmp__row strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; text-align: right; }
.cmp--reels strong { color: var(--mute); }
.cmp--akl { background: linear-gradient(160deg, #1c1a0f, var(--card) 55%); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, .35); }
.cmp--akl strong { color: var(--sun); }
.reel-stack { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; animation: reelscroll 3.2s linear infinite; filter: saturate(.3); }
.reel-stack i { flex: none; height: 74px; border-radius: 12px; background: linear-gradient(135deg, #2a2f33, #1a1e20); }
.reel-stack i:nth-child(3n) { background: linear-gradient(135deg, #3a2a35, #1a1e20); }
.reel-stack i:nth-child(3n+1) { background: linear-gradient(135deg, #22303a, #1a1e20); }
@keyframes reelscroll { to { transform: translateY(-168px); } }
.cmp__visual--reels::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night) 0, transparent 25%, transparent 75%, var(--night)); }
.ring { position: absolute; inset: 0; display: grid; place-items: center; }
.ring svg { width: 140px; height: 140px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring__bg { stroke: var(--raised); }
.ring .ring__fg { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 2.2s var(--ease); }
.is-in .ring .ring__fg { stroke-dashoffset: 0; }
.ring__label { position: absolute; text-align: center; }
.ring__label b { display: block; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.03em; line-height: 1; }
.ring__label small { color: var(--dim); font-size: .75rem; }

/* ---------- Steps (how a break works) ---------- */
.steps { position: relative; }
.steps__track { display: grid; gap: 1rem; }
.step {
  position: relative; border-radius: var(--radius); padding: 1.6rem; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.step__n { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; line-height: .8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.step p { color: var(--dim); margin-top: .6rem; max-width: 40ch; }
.step__art { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
.timepick { display: flex; gap: .6rem; }
.timepick span { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--raised); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.timepick span small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; color: var(--dim); margin-top: -.55rem; }
.timepick span.is-on { background: var(--sun); color: var(--on-sun); transform: translateY(-6px); box-shadow: 0 14px 30px -14px rgba(255,210,63,.7); }
.timepick span.is-on small { color: var(--on-sun); }
.minicards { display: flex; gap: .5rem; }
.minicards i { width: 64px; height: 92px; border-radius: 14px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.minicards i::before, .minicards i::after { content: ""; position: absolute; left: 10px; right: 10px; height: 8px; border-radius: 4px; background: var(--line); top: 18px; }
.minicards i::after { top: 34px; right: 24px; }
.minicards i:nth-child(2) { transform: translateY(-14px) rotate(4deg); background: var(--sun); }
.minicards i:nth-child(2)::before, .minicards i:nth-child(2)::after { background: rgba(36, 27, 0, .25); }
.minicards i:nth-child(3) { transform: rotate(-3deg); }
.summary-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; max-width: 320px; }
.summary-mini div { border-radius: 14px; background: var(--raised); padding: .7rem .8rem; }
.summary-mini b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.03em; }
.summary-mini small { color: var(--dim); font-size: .72rem; }
.summary-mini div:first-child b { color: var(--mint); }
.summary-mini div:nth-child(2) b { color: var(--sun); }
.summary-mini div:nth-child(3) b { color: var(--peach); }

/* ---------- Bento of modes ---------- */
.bento { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem var(--pad) 1.2rem; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.bento::-webkit-scrollbar { display: none; }
.tile {
  --accent: var(--sun);
  position: relative; flex: 0 0 78%; scroll-snap-align: center; min-height: 300px;
  border-radius: var(--radius); padding: 1.4rem; overflow: hidden;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  transition: box-shadow .3s, transform .4s var(--ease);
  transform-style: preserve-3d;
}
.tile::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(30px); transition: opacity .3s; pointer-events: none; }
.tile:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent); }
.tile:hover::before { opacity: .2; }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tile__icon .icon { width: 26px; height: 26px; }
.tile p { color: var(--dim); margin-top: .5rem; font-size: .95rem; }
.tile__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.tile__meta .chip { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.tile__art { position: relative; }
.dots10 { display: flex; gap: 5px; }
.dots10 i { width: 100%; max-width: 22px; height: 8px; border-radius: 4px; background: var(--raised); }
.dots10 i.on { background: var(--accent); }
.bigtime { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -0.05em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.swipe-demo { display: flex; align-items: center; gap: .5rem; }
.swipe-demo span { flex: 1; text-align: center; padding: .6rem .4rem; border-radius: 12px; background: var(--raised); font-weight: 700; font-size: .85rem; }
.swipe-demo span:first-child { animation: swl 2.6s ease-in-out infinite; }
@keyframes swl { 40%, 60% { background: var(--accent); color: #2a0610; transform: translateX(-4px) rotate(-3deg); } }

/* Feed tile: fanned question cards */
.feedstack { position: relative; height: 190px; margin: .4rem 0; }
.feedstack div { position: absolute; left: 50%; top: 10px; width: min(250px, 70%); border-radius: 16px; padding: 14px; background: var(--raised); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 0 0 1px var(--line); transform-origin: 50% 120%; }
.feedstack div:nth-child(1) { transform: translateX(-50%) rotate(-9deg) translateY(10px); opacity: .55; }
.feedstack div:nth-child(2) { transform: translateX(-50%) rotate(6deg) translateY(4px); opacity: .75; }
.feedstack div:nth-child(3) { transform: translateX(-50%); animation: feedup 4s var(--ease) infinite; }
.feedstack b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; margin: .5rem 0 .7rem; }
.feedstack span { display: block; height: 26px; border-radius: 8px; background: var(--card); margin-top: 6px; }
.feedstack span.ok { background: var(--mint); }
.feedstack small { font-size: .7rem; font-weight: 700; color: var(--sun); }
@keyframes feedup { 0%, 55% { transform: translateX(-50%); } 70% { transform: translateX(-50%) translateY(-14px) rotate(-2deg); } 100% { transform: translateX(-50%); } }

/* ---------- Speed game ---------- */
.game {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, #1d2a33 0%, var(--card) 45%); box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: 2rem;
}
.game__intro p { color: var(--dim); margin-top: .8rem; max-width: 42ch; }
.game__intro ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .55rem; color: var(--dim); font-size: .95rem; }
.game__intro li { display: flex; gap: .6rem; align-items: center; }
.game__intro li .icon { color: var(--sky); }
.board { position: relative; border-radius: var(--radius); background: var(--night); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 1.2rem; min-height: 360px; display: flex; flex-direction: column; }
.board__hud { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.board__hud .pill { font-size: .85rem; padding: .4rem .8rem; }
.board__bar { height: 6px; border-radius: 6px; background: var(--raised); margin: 1rem 0; overflow: hidden; }
.board__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky), var(--aqua)); transform-origin: left; }
.board__q { flex: 1; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 9vw, 3.6rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-align: center; min-height: 110px; }
.board__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.board__opts button { min-height: 60px; border: 0; border-radius: 16px; background: var(--raised); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; transition: transform .12s, background .2s; font-variant-numeric: tabular-nums; }
.board__opts button:hover:not(:disabled) { background: #2a3135; }
.board__opts button:active:not(:disabled) { transform: scale(.96); }
.board__opts button.is-right { background: var(--mint); color: #062312; }
.board__opts button.is-wrong { background: var(--red); color: #2b0505; }
.board__overlay { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: rgba(11, 13, 14, .92); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 1.5rem; }
.board__overlay[hidden] { display: none; }
.board__overlay h3 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.board__overlay p { color: var(--dim); }
.board__score { font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; letter-spacing: -0.05em; line-height: 1; color: var(--sun); }
.board__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.level-tag { font-size: .78rem; color: var(--dim); font-weight: 600; }

/* ---------- Puzzles ---------- */
.puzzles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.pz {
  --accent: var(--aqua);
  position: relative; border-radius: var(--radius-sm); padding: 1rem; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; flex-direction: column; gap: .8rem;
  transition: transform .35s var(--ease), box-shadow .3s;
}
.pz:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.pz__art { aspect-ratio: 1.3; border-radius: 12px; background: var(--night); display: grid; place-items: center; overflow: hidden; color: var(--accent); }
.pz__art svg { width: 72%; height: 72%; overflow: visible; }
.pz h3 { font-size: 1.05rem; }
.pz small { color: var(--dim); font-size: .78rem; display: block; margin-top: .15rem; }
.spin { transform-origin: 50px 50px; animation: spin 8s linear infinite; }
.spin--fast { animation-duration: 2.4s; }
.spin--rev { animation-direction: reverse; animation-duration: 14s; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash { stroke-dasharray: 6 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.blink { animation: blink 1.8s ease-in-out infinite; }
.blink:nth-child(2n) { animation-delay: -.6s; }
.blink:nth-child(3n) { animation-delay: -1.2s; }
@keyframes blink { 50% { opacity: .25; } }
.walker { animation: walk 4s ease-in-out infinite; }
@keyframes walk { 0% { transform: translate(0, 0); } 25% { transform: translate(0, -30px); } 50% { transform: translate(30px, -30px); } 75% { transform: translate(30px, 0); } 100% { transform: translate(0, 0); } }
.slide { animation: slidey 3s ease-in-out infinite; }
@keyframes slidey { 50% { transform: translateX(14px); } }

/* ---------- Progress ---------- */
.progress-grid { display: grid; gap: 1rem; }
.panel { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.panel p { color: var(--dim); font-size: .95rem; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.week div { aspect-ratio: 1; border-radius: 12px; background: var(--raised); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--mute); position: relative; transform: scale(.8); opacity: .4; transition: transform .5s var(--ease), opacity .5s, background .5s; }
.is-in .week div { transform: none; opacity: 1; }
.week div.done { background: var(--peach); color: #2b1200; }
.week div.today { box-shadow: inset 0 0 0 2px var(--sun); color: var(--sun); }
.week div:nth-child(2) { transition-delay: .08s; } .week div:nth-child(3) { transition-delay: .16s; } .week div:nth-child(4) { transition-delay: .24s; } .week div:nth-child(5) { transition-delay: .32s; } .week div:nth-child(6) { transition-delay: .4s; } .week div:nth-child(7) { transition-delay: .48s; }
.big-stat { display: flex; align-items: baseline; gap: .5rem; }
.big-stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 10vw, 4.6rem); letter-spacing: -0.05em; line-height: .9; }
.big-stat span { color: var(--dim); font-weight: 600; }
.divisions { display: grid; gap: .55rem; }
.div-row { display: grid; grid-template-columns: 6.2rem 1fr 3rem; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 600; }
.div-row span:last-child { color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.div-bar { height: 10px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.div-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--c); transition: width 1.2s var(--ease); }
.is-in .div-bar i { width: var(--w); }
.levelring { position: relative; width: 150px; height: 150px; }
.levelring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.levelring circle { fill: none; stroke-width: 12; }
.levelring .bg { stroke: var(--raised); }
.levelring .fg { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 402; stroke-dashoffset: 402; transition: stroke-dashoffset 1.6s var(--ease); }
.is-in .levelring .fg { stroke-dashoffset: 120; }
.levelring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.levelring b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; }
.levelring small { color: var(--dim); font-size: .75rem; }
.adapt { display: flex; align-items: flex-end; gap: .4rem; height: 120px; }
.adapt i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--raised); height: 20%; transition: height 1s var(--ease); }
.is-in .adapt i { height: var(--h); }
.adapt i.up { background: var(--mint); }
.adapt i.down { background: var(--peach); }

/* ---------- Duel ---------- */
.duel { display: grid; gap: 2.4rem; align-items: center; }
.duel__card { position: relative; border-radius: calc(var(--radius) + 6px); padding: 1.6rem; background: linear-gradient(150deg, #2a1d14, var(--card) 60%); box-shadow: inset 0 0 0 1px rgba(255, 138, 76, .3); display: grid; gap: 1.4rem; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; }
.player { border-radius: 18px; background: var(--raised); padding: 1rem; text-align: center; }
.player .ava { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto .6rem; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.player b { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; display: block; }
.player small { color: var(--dim); font-size: .78rem; }
.vs__mid { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--peach); }
.code { display: flex; justify-content: center; gap: .35rem; }
.code span { width: clamp(34px, 9vw, 46px); aspect-ratio: .8; border-radius: 10px; background: var(--night); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.6rem); color: var(--sun); }
.code span.typing { box-shadow: inset 0 0 0 2px var(--sun); }
.duel__share { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--dim); font-size: .88rem; }
.list-check { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.list-check li { display: flex; gap: .8rem; align-items: flex-start; color: var(--dim); }
.list-check li b { color: var(--bright); font-weight: 600; }
.list-check .icon { color: var(--mint); margin-top: .15rem; }

/* ---------- Coming soon / mood ---------- */
.mood { display: grid; gap: 1rem; }
.mood__picker { border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 4vw, 2.4rem); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); display: grid; gap: 1.4rem; }
.mood__faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.mood__faces button { border: 0; border-radius: 18px; background: var(--raised); padding: .9rem .3rem .7rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--dim); transition: transform .25s var(--ease), background .25s, color .25s; }
.mood__faces button svg { width: 38px; height: 38px; }
.mood__faces button:hover { transform: translateY(-3px); }
.mood__faces button[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); transform: translateY(-4px); }
.mood__answer { border-radius: 18px; background: var(--night); padding: 1.2rem; min-height: 132px; display: flex; gap: 1rem; align-items: flex-start; }
.mood__answer .tile__icon { flex: none; }
.mood__answer h4 { font-size: 1.2rem; letter-spacing: -0.02em; }
.mood__answer p { color: var(--dim); font-size: .92rem; margin-top: .35rem; }
.soon-grid { display: grid; gap: .75rem; }
.soon { border-radius: var(--radius-sm); padding: 1.2rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); display: flex; gap: 1rem; align-items: flex-start; }
.soon .tile__icon { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.soon .tile__icon .icon { width: 22px; height: 22px; }
.soon h3 { font-size: 1.05rem; }
.soon p { color: var(--dim); font-size: .88rem; margin-top: .25rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); transition: background .3s; }
.faq details[open] { background: var(--raised); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--sun); font-size: 1.2rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--dim); }

/* ---------- Download ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 10px);
  padding: clamp(2.4rem, 8vw, 5rem) clamp(1.4rem, 5vw, 4rem); text-align: center;
  background: var(--sun); color: var(--on-sun);
}
.cta__mark { position: absolute; right: -8%; bottom: -30%; width: 70%; opacity: .1; pointer-events: none; }
.cta h2 { font-size: clamp(2.6rem, 10vw, 5.4rem); letter-spacing: -0.05em; }
.cta p { margin: 1rem auto 0; max-width: 40ch; font-size: clamp(1rem, 2.4vw, 1.2rem); opacity: .85; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.cta .store { background: var(--night); color: var(--bright); }
.cta .store--soon { background: transparent; color: var(--on-sun); box-shadow: inset 0 0 0 1.5px rgba(36, 27, 0, .35); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 3rem 0 6.5rem; }
.footer__inner { display: grid; gap: 2rem; }
.footer__brand img { width: 74px; }
.footer__brand p { color: var(--dim); margin-top: .9rem; max-width: 32ch; font-size: .92rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.footer__cols h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: 0; color: var(--mute); font-weight: 600; margin-bottom: .8rem; }
.footer__cols a { display: block; color: var(--dim); padding: .25rem 0; font-size: .93rem; transition: color .2s; }
.footer__cols a:hover { color: var(--sun); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; color: var(--mute); font-size: .82rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .55rem .55rem .55rem 1rem; border-radius: 20px;
  background: rgba(31, 36, 39, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta img { width: 40px; }
.sticky-cta p { font-size: .82rem; color: var(--dim); line-height: 1.3; flex: 1; }
.sticky-cta p b { color: var(--bright); display: block; font-size: .9rem; }
body.menu-open .sticky-cta { transform: translateY(140%); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(3rem, 10vw, 6rem)) 0 clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 10vw, 5.6rem); letter-spacing: -0.045em; line-height: .98; max-width: 14ch; }
.page-hero .lede { font-size: clamp(1.05rem, 2.6vw, 1.3rem); }
.page-hero .hero__sunrise { top: 40%; left: 80%; width: 90vmax; height: 90vmax; }

/* Feature rows (features page) */
.frow { display: grid; gap: 2rem; align-items: center; padding: clamp(2.5rem, 7vw, 5rem) 0; border-top: 1px solid var(--line-soft); }
.frow__copy .tile__icon { margin-bottom: 1.2rem; }
.frow__copy h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
.frow__copy p { color: var(--dim); margin-top: 1rem; max-width: 48ch; }
.frow__art { position: relative; display: grid; place-items: center; border-radius: calc(var(--radius) + 6px); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); min-height: 340px; padding: 2rem 1rem; overflow: hidden; }
.frow__art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--accent, var(--sun)); opacity: .12; filter: blur(50px); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; }
.stat-row div b { display: block; font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.04em; line-height: 1; color: var(--accent, var(--sun)); }
.stat-row div small { color: var(--dim); font-size: .82rem; }
.mini-phone { --w: min(250px, 66vw); position: relative; z-index: 1; }
.mini-phone .phone { --w: inherit; }

.rules { width: 100%; border-collapse: collapse; font-size: .92rem; }
.rules th, .rules td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.rules th { color: var(--mute); font-weight: 600; font-size: .8rem; }
.rules td:last-child { color: var(--sun); font-weight: 700; white-space: nowrap; text-align: right; }
.rules th:last-child { text-align: right; }
.table-wrap { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); padding: .4rem 1rem; overflow-x: auto; }

/* ---------- Exams page ---------- */
.exam-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem var(--pad) .8rem; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; }
.exam-tabs::-webkit-scrollbar { display: none; }
.exam-tab { flex: none; border: 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); padding: .8rem 1.1rem; text-align: left; transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.exam-tab b { display: block; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -0.02em; }
.exam-tab small { color: var(--dim); font-size: .75rem; font-weight: 600; }
.exam-tab:hover { transform: translateY(-2px); }
.exam-tab[aria-selected="true"] { background: var(--sun); color: var(--on-sun); box-shadow: none; }
.exam-tab[aria-selected="true"] small { color: var(--on-sun); opacity: .75; }
.exam-view { display: grid; gap: 1rem; margin-top: 1rem; }
.exam-summary { display: grid; gap: 1.2rem; }
.donut { position: relative; width: min(240px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease); }
.donut__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__mid b { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: -0.04em; line-height: 1; }
.donut__mid small { color: var(--dim); font-size: .8rem; }
.legend { display: grid; gap: .5rem; }
.legend div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .92rem; font-weight: 600; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); margin-right: .5rem; display: inline-block; vertical-align: -1px; }
.legend span:last-child { color: var(--dim); font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.kv div { border-radius: 14px; background: var(--raised); padding: .8rem .9rem; }
.kv b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.03em; }
.kv small { color: var(--dim); font-size: .78rem; }
.sections { display: grid; gap: 1rem; }
.sec-card { --c: var(--sun); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 1.4rem; }
.sec-card h3 { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.1rem; }
.sec-card h3 .chip { background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) 42%; align-items: center; gap: .8rem; padding: .32rem 0; font-size: .88rem; }
.topic span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic .bar { height: 8px; border-radius: 5px; background: var(--raised); overflow: hidden; }
.topic .bar i { display: block; height: 100%; border-radius: 5px; background: var(--c); width: 0; transition: width .8s var(--ease); }
.sec-card--off { opacity: .55; }
.sec-card--off p { color: var(--dim); font-size: .9rem; }
.planned { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); letter-spacing: -0.025em; margin: 2.6rem 0 .8rem; }
.legal p, .legal li { color: var(--dim); }
.legal p + p { margin-top: .9rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .45rem; margin: .8rem 0 0; }
.legal a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { color: var(--mute); font-size: .9rem; }
.callout { border-radius: var(--radius-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-soft); padding: 1.2rem 1.3rem; margin-top: 1.4rem; display: flex; gap: .9rem; }
.callout .icon { color: var(--sun); width: 24px; height: 24px; flex: none; margin-top: .1rem; }
.callout p { margin: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: .8rem !important; }
.steps-list li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; border-radius: var(--radius-sm); background: var(--card); padding: 1rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line-soft); }
.steps-list li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--on-sun); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--pad) 2rem; }
.lost b { font-family: var(--font-display); font-size: clamp(6rem, 30vw, 14rem); letter-spacing: -0.06em; line-height: .8; color: var(--sun); display: block; }
.lost p { color: var(--dim); margin: 1.2rem auto 2rem; max-width: 36ch; }

/* ---------- Reveal fallback ---------- */
.js [data-reveal] { will-change: transform, opacity; }

/* =====================================================================
   TABLET  (≥ 640px)
   ===================================================================== */
@media (min-width: 640px) {
  :root { --nav-h: 72px; }
  .nav__cta { display: inline-flex; }
  .hero__inner { gap: 3rem; }
  .float--sparks { display: inline-flex; }
  .float--streak { left: 12%; }
  .float--xp { right: 10%; }
  .float--combo { left: 8%; }
  .float--sparks { right: 14%; }
  .phone { --w: 300px; }
  .compare { grid-template-columns: 1fr 1fr; }
  .steps__track { grid-template-columns: 1fr 1fr; }
  .steps__track .step:last-child { grid-column: span 2; }
  .bento { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; padding: 0; margin: 0; }
  .tile { min-height: 280px; }
  .tile--wide { grid-column: span 2; }
  .puzzles { grid-template-columns: repeat(4, 1fr); }
  .progress-grid { grid-template-columns: 1fr 1fr; }
  .progress-grid .panel--wide { grid-column: span 2; }
  .soon-grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer { padding-bottom: 3rem; }
  .sticky-cta { left: 50%; right: auto; width: min(460px, calc(100% - 2rem)); transform: translate(-50%, 140%); }
  .sticky-cta.is-on { transform: translate(-50%, 0); }
  body.menu-open .sticky-cta { transform: translate(-50%, 140%); }
  .exam-summary { grid-template-columns: auto 1fr; align-items: center; }
  .sections { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: repeat(4, 1fr); }
  .game { grid-template-columns: 1fr; }
}

/* =====================================================================
   DESKTOP  (≥ 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  .nav__links { display: flex; gap: 2rem; }
  .nav__toggle { display: none; }
  .menu { display: none; }
  .sticky-cta { display: none; }
  .nav__brand img { width: 70px; }

  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 2rem; }
  .hero__title { font-size: clamp(3.6rem, 6.2vw, 5.6rem); }
  .hero__copy { text-align: left; align-items: flex-start; }
  .hero__cta, .hero__facts { justify-content: flex-start; }
  .hero__sunrise { left: 72%; top: 18%; width: 95vmax; height: 95vmax; }
  .phone { --w: 320px; }
  .float--streak { left: 0; top: 14%; }
  .float--xp { right: -2%; top: 28%; }
  .float--combo { left: -4%; bottom: 24%; }
  .float--sparks { right: 2%; bottom: 10%; }

  .compare { grid-template-columns: .9fr 1.1fr; gap: 1.4rem; }
  .cmp { padding: 2rem; }
  .cmp__visual { height: 220px; }

  /* Horizontal pinned steps */
  .steps { height: auto; }
  .steps__pin { overflow: hidden; }
  .steps__track { display: flex; gap: 1.4rem; width: max-content; padding-right: var(--pad); }
  .steps__track .step { width: min(560px, 44vw); min-height: 430px; padding: 2.4rem; }
  .steps__track .step:last-child { grid-column: auto; }
  .step__n { font-size: 7rem; }

  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 1rem; }
  .tile--big { grid-column: span 2; grid-row: span 2; padding: 2rem; }
  .tile--big h3 { font-size: 2rem; }
  .tile--wide { grid-column: span 2; }

  .game { grid-template-columns: .85fr 1.15fr; align-items: center; gap: 3rem; }
  .puzzles { gap: 1rem; }
  .pz { padding: 1.2rem; }

  .progress-grid { grid-template-columns: 1.1fr .9fr 1fr; }
  .progress-grid .panel--wide { grid-column: auto; }

  .duel { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .mood { grid-template-columns: 1.05fr .95fr; gap: 1.4rem; align-items: start; }
  .soon-grid { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr 1.4fr; }

  .frow { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .frow:nth-child(even) .frow__art { order: -1; }
  .frow__art { min-height: 460px; }
  .exam-view { grid-template-columns: .8fr 1.2fr; gap: 1.4rem; align-items: start; }
  .exam-summary { grid-template-columns: 1fr; position: sticky; top: calc(var(--nav-h) + 1rem); }
  .exam-tabs { flex-wrap: wrap; overflow: visible; padding: 0; margin: 0; }
}

@media (min-width: 1440px) {
  :root { --max: 1320px; }
  .phone { --w: 340px; }
}

/* Pointer devices get tilt; touch devices get tap feedback only */
@media (hover: none) {
  .tile:hover, .pz:hover { transform: none; }
  .hide-touch { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .scribble path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
}

@media (min-width: 640px) { .hide-desktop { display: none; } }
