/* Reel Study public landing page. Standalone: the signed-in app and policy pages use their own styles. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/landing/nunito-latin.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b1e3c;
  --text: #4a5072;
  --muted: #6b7192;
  --line: #e6e8f1;
  --line-strong: #d4d8e6;
  --mist: #f4f6fb;
  --blue: #1f5eff;
  --blue-edge: #1443c7;
  --blue-tint: #e9efff;
  --sun: #ffc629;
  --sun-edge: #dc9f00;
  --orange: #ff7a2e;
  --orange-edge: #d65a12;
  --teal: #0fb0aa;
  --teal-edge: #0a8a85;
  --pink: #f2478a;
  --pink-edge: #c42c68;
  --green: #1fae5b;
  --green-edge: #148a45;
  --green-ink: #12793c;
  --green-tint: #e3f7ea;
  --red: #ee3d4a;
  --red-edge: #c22632;
  --red-ink: #b11d29;
  --red-tint: #fdebed;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 72px;
  --rail-h: 92px;
  --spring: cubic-bezier(.3, 1.55, .5, 1);
  --swift: cubic-bezier(.6, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { display: block; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.reg { font-size: .62em; vertical-align: .62em; line-height: 0; margin-left: .04em; }
sup { font-size: .62em; line-height: 0; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.mentor-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons: a solid face on a darker edge that compresses when pressed. */
.btn {
  --face: var(--blue); --edge: var(--blue-edge); --label: #fff; --lift: 4px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px; border: 0; border-radius: 16px;
  background: var(--face); color: var(--label); box-shadow: 0 var(--lift) 0 var(--edge);
  font-family: var(--font); font-size: 15px; font-weight: 800; line-height: 1.15; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: translate .08s ease, box-shadow .08s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { translate: 0 var(--lift); box-shadow: 0 0 0 var(--edge); }
.btn--quiet { --face: #fff; --edge: var(--line-strong); --label: var(--blue); box-shadow: inset 0 0 0 2px var(--line-strong), 0 var(--lift) 0 var(--edge); }
.btn--quiet:hover { filter: none; background: var(--mist); }
.btn--quiet:active { box-shadow: inset 0 0 0 2px var(--line-strong), 0 0 0 var(--edge); }
.btn--sun { --face: var(--sun); --edge: var(--sun-edge); --label: var(--ink); }
.btn--xl { width: 100%; max-width: 340px; min-height: 54px; font-size: 15.5px; }
.btn--sm { --lift: 3px; min-height: 42px; padding: 8px 16px; border-radius: 12px; font-size: 13px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px);
  transition: box-shadow .25s ease;
}
.top.is-scrolled { box-shadow: 0 2px 0 var(--line); }
.top-row { position: relative; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 12px;
  color: var(--blue); font-size: 27px; font-weight: 900; letter-spacing: -.025em; text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 40px; height: 40px; flex: none; transition: rotate .4s var(--spring); }
.brand:hover .brand-mark { rotate: -8deg; }
/* Out of flow, so revealing it never moves the brand. */
.top-cta { position: absolute; right: clamp(16px, 4vw, 40px); top: calc((var(--top-h) - 45px) / 2); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s var(--spring), visibility 0s linear .25s; }
.top.has-cta .top-cta { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .25s var(--spring), visibility 0s; }

/* Hero */
.hero { display: flex; align-items: center; min-height: calc(100svh - var(--top-h) - var(--rail-h)); padding: 4px 0 18px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(20px, 4vw, 56px); }
.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero-accent { color: var(--blue); }
.hero-title {
  margin: 0; max-width: 11ch; color: var(--ink);
  font-size: clamp(34px, 3.9vw, 54px); font-weight: 900; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance;
}
.hero-lead { margin: 16px 0 0; max-width: 29ch; font-size: clamp(17px, 1.55vw, 20.5px); font-weight: 700; line-height: 1.42; text-wrap: balance; }
.hero-actions { display: grid; justify-items: center; gap: 14px; width: 100%; margin-top: clamp(22px, 3vw, 34px); }

/* The stage keeps a 5:4 composition and contain-fits it into whatever space the layout gives. */
.stage { position: relative; height: clamp(380px, calc(100svh - var(--top-h) - var(--rail-h) - 36px), 620px); container-type: size; }
.comp {
  position: absolute; left: 50%; top: 50%; width: min(100cqw, 125cqh); height: min(80cqw, 100cqh);
  translate: -50% -50%; container-type: inline-size;
}
.stage-toggle {
  position: absolute; z-index: 5; left: calc(50% + min(100cqw, 125cqh) / 2 - 46px); top: calc(50% + min(80cqw, 100cqh) / 2 - 46px); width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line-strong);
  transition: translate .08s ease, box-shadow .08s ease;
}
.stage-toggle:active { translate: 0 3px; box-shadow: 0 0 0 var(--line-strong); }
.stage-toggle[hidden] { display: none; }
.stage-toggle svg { width: 20px; height: 20px; }
.stage-toggle .icon-play, .stage.is-paused .stage-toggle .icon-pause { display: none; }
.stage.is-paused .stage-toggle .icon-play { display: block; }
.stage.is-paused .comp *, .stage.is-paused .comp *::before, .stage.is-paused .comp *::after,
.stage.is-idle .comp *, .stage.is-idle .comp *::before, .stage.is-idle .comp *::after,
.mentor.is-idle *, .is-still *, .is-still *::before, .is-still *::after { animation-play-state: paused !important; }

.doodle {
  --c: var(--blue); position: absolute; color: var(--c); font-size: 7.4cqw; font-weight: 900; line-height: 1;
  pointer-events: none; user-select: none;
}
/* Idle loops start once the script is running, so it can also pause them. */
.is-ready .doodle { animation: drift 5.6s ease-in-out infinite alternate; }
.doodle--1 { left: 41%; top: -1%; --c: var(--sun); font-size: 6.4cqw; animation-duration: 6.4s; }
.doodle--2 { left: 93%; top: 34%; --c: var(--pink); animation-duration: 5.2s; animation-delay: -2s; }
.doodle--3 { left: 89%; top: 58%; --c: var(--teal); font-size: 6.8cqw; animation-duration: 7s; animation-delay: -1s; }
.doodle--4 { left: 87%; top: 84%; --c: var(--orange); font-size: 8.4cqw; animation-duration: 4.8s; animation-delay: -3s; }
.doodle--5 { left: 1%; top: 84%; --c: var(--blue); font-size: 6.2cqw; animation-duration: 6s; animation-delay: -4s; }
@keyframes drift { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(.6cqw, -2.2cqw) rotate(10deg); } }

/* Phone */
.phone {
  position: absolute; left: 46.5%; top: 3.5%; width: 36%; height: 90%; rotate: -5deg;
  border-radius: 14% / 7%; background: var(--ink);
  box-shadow: inset 0 0 0 .35cqw #34395f, 2.2cqw 2.4cqw 0 rgba(27, 30, 60, .1);
}
.phone-screen {
  position: absolute; inset: 2.3% 4.6%; overflow: hidden; isolation: isolate;
  border-radius: 10.5% / 5%; background: #0e1129; container-type: inline-size;
  /* Keeps WebKit from letting the sliding reels escape the rounded clip of a rotated parent. */
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
}
.phone-island { position: absolute; z-index: 6; top: 3.2cqw; left: 50%; width: 27cqw; height: 7cqw; translate: -50% 0; border-radius: 99px; background: #0b0d1f; }

.reel {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 15cqw 7cqw 9cqw; overflow: hidden;
  color: #fff; transform: translateY(100%); transition: transform .6s var(--swift);
}
.reel.is-current { transform: none; }
.reel.is-past { transform: translateY(-100%); }
.reel.is-instant { transition: none; }
.reel--blue { background: radial-gradient(120% 70% at 85% 0%, #4b7dff 0%, rgba(75, 125, 255, 0) 60%), #1d56f2; }
.reel--orange { background: radial-gradient(120% 70% at 15% 0%, #ffa25e 0%, rgba(255, 162, 94, 0) 60%), #ff7a2e; color: var(--ink); }
.reel-top { display: flex; align-items: center; gap: 2cqw; }
.reel-chip {
  padding: 1.4cqw 3.4cqw; border-radius: 99px; background: rgba(255, 255, 255, .22);
  font-size: 5cqw; font-weight: 900; letter-spacing: .02em;
}
.reel--orange .reel-chip { background: rgba(27, 30, 60, .12); }
.reel-chip--ghost { background: none !important; padding-left: 0; opacity: .82; white-space: nowrap; }
.reel-title { margin: 3.6cqw 0 0; font-size: 10.2cqw; font-weight: 900; line-height: 1.04; letter-spacing: -.01em; }
.reel-cap {
  align-self: center; margin: auto 0 0; padding: 2cqw 4cqw; border-radius: 3.4cqw;
  background: rgba(14, 17, 41, .62); color: #fff; font-size: 5.6cqw; font-weight: 800; white-space: nowrap;
}
.reel-cap::after { content: ""; display: inline-block; width: 1.2cqw; height: 4.6cqw; margin-left: 1cqw; vertical-align: -.6cqw; background: var(--sun); opacity: 0; }
.reel.is-playing .reel-cap { animation: cap-in .35s ease-out .9s both; }
.reel.is-playing .reel-cap::after { animation: caret .5s steps(1) 1s 6; }
@keyframes cap-in { from { opacity: 0; transform: translateY(2cqw); } }
@keyframes caret { 50% { opacity: 1; } }

/* Reel 1: the lesson's own growth-factor example. */
.gmr { margin-top: 12cqw; }
.gmr-chart {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 3.2cqw;
  height: 48cqw; border-bottom: .9cqw solid rgba(255, 255, 255, .55);
}
.gmr-col { position: relative; height: calc(var(--v) * 100%); }
.gmr-col::before {
  content: ""; position: absolute; inset: 0; border-radius: 2.6cqw 2.6cqw .6cqw .6cqw;
  background: #fff; transform-origin: 50% 100%;
}
.gmr-col--down::before { background: #ffd0bd; }
.gmr-col b {
  position: absolute; left: -2cqw; right: -2cqw; top: 1.6cqw; text-align: center;
  color: #1d56f2; font-size: 4.4cqw; font-weight: 900; letter-spacing: -.02em;
}
.gmr-col--down b { color: #c2410c; }
.gmr-col em {
  position: absolute; left: 50%; bottom: calc(100% + 1.8cqw); translate: -50% 0; padding: .8cqw 1.8cqw; border-radius: 99px;
  background: var(--sun); color: var(--ink); font-size: 4.4cqw; font-style: normal; font-weight: 900; white-space: nowrap;
}
.gmr-col i { position: absolute; left: -2cqw; right: -2cqw; top: calc(100% + 2.2cqw); text-align: center; font-size: 3.7cqw; font-style: normal; font-weight: 800; opacity: .78; }
.gmr-sum { margin: 10cqw 0 0; font-size: 6.1cqw; font-weight: 900; white-space: nowrap; letter-spacing: -.01em; }
.gmr-sum mark { padding: .4cqw 1.6cqw; border-radius: 1.8cqw; background: var(--sun); color: var(--ink); }
.reel.is-playing .gmr-col::before { animation: grow-up .55s var(--spring) both; animation-delay: calc(var(--i, 0) * .32s + .2s); }
.reel.is-playing .gmr-col b, .reel.is-playing .gmr-col em { animation: pop-in .4s var(--spring) both; animation-delay: calc(var(--i, 0) * .32s + .5s); }
.reel.is-playing .gmr-sum { animation: rise-in .45s var(--spring) 1.7s both; }
.reel.is-playing .gmr-sum mark { animation: flash .6s ease-out 2.15s both; }
/* Heights follow the lesson: €100, €50, €67.50, €85.73. */
.gmr-col:nth-child(1) { --v: 1; }
.gmr-col:nth-child(2) { --i: 1; --v: .5; } .gmr-col:nth-child(3) { --i: 2; --v: .675; } .gmr-col:nth-child(4) { --i: 3; --v: .857; }
@keyframes grow-up { from { transform: scaleY(0); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(4cqw); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 41, .9); } 100% { box-shadow: 0 0 0 4cqw rgba(255, 198, 41, 0); } }

/* Reel 2: the holding period return lesson example. */
.hpr { position: relative; height: 82cqw; margin-top: 8cqw; }
.hpr-tag {
  position: absolute; left: 2cqw; top: 6cqw; width: 58cqw; padding: 4cqw 4.6cqw; border-radius: 5cqw;
  background: #fff; color: var(--ink); rotate: -4deg; box-shadow: 0 1.6cqw 0 rgba(27, 30, 60, .16);
}
.hpr-label { display: block; font-size: 4.2cqw; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hpr-price { position: relative; display: block; height: 14cqw; margin-top: 1cqw; overflow: hidden; font-size: 12.5cqw; font-weight: 900; line-height: 14cqw; }
.hpr-old, .hpr-new { position: absolute; left: 0; top: 0; }
.hpr-old { opacity: 0; }
.hpr-new { color: var(--green-ink); }
.hpr-new::after { content: "▲"; margin-left: 1.6cqw; font-size: 6cqw; vertical-align: 2cqw; color: var(--green); }
.hpr-coin {
  position: absolute; right: 5cqw; top: 2cqw; width: 23cqw; height: 23cqw; display: grid; place-items: center;
  border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 6.8cqw; font-weight: 900;
  box-shadow: inset 0 -1.6cqw 0 rgba(0, 0, 0, .12), 0 0 0 1.4cqw rgba(255, 255, 255, .45);
}
.hpr-eq {
  position: absolute; left: 0; right: 0; bottom: 4cqw; margin: 0; padding: 3.4cqw 2cqw; border-radius: 4cqw;
  background: var(--ink); color: #fff; font-size: 5.6cqw; font-weight: 900; text-align: center; white-space: nowrap;
}
.hpr-eq mark { padding: .4cqw 1.6cqw; border-radius: 1.8cqw; background: var(--sun); color: var(--ink); }
.reel.is-playing .hpr-tag { animation: rise-in .5s var(--spring) .2s both; }
.reel.is-playing .hpr-old { animation: price-out .35s ease-in 1.1s both; }
.reel.is-playing .hpr-new { animation: price-in .45s var(--spring) 1.35s both; }
.reel.is-playing .hpr-coin { animation: coin-drop .7s cubic-bezier(.4, 1.6, .5, 1) 1.8s both; }
.reel.is-playing .hpr-eq { animation: rise-in .45s var(--spring) 2.5s both; }
.reel.is-playing .hpr-eq mark { animation: flash .6s ease-out 2.9s both; }
@keyframes price-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-100%); } }
@keyframes price-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes coin-drop { from { opacity: 0; transform: translateY(-30cqw) rotate(-40deg); } 60% { opacity: 1; } }

/* Video-style scrub line along the bottom of each reel. */
.reel::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.1cqw; width: 100%;
  background: var(--sun); transform-origin: 0 50%; transform: scaleX(.72);
}
.reel--orange::after { background: var(--ink); }
.reel.is-playing::after { animation: scrub var(--reel-ms, 9s) linear both; }
@keyframes scrub { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Quick check sheet that slides up over the reel. */
.sheet {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 6.4cqw 6cqw 24cqw;
  border-radius: 7cqw 7cqw 0 0; background: #fff; color: var(--ink);
  box-shadow: 0 -2cqw 8cqw rgba(14, 17, 41, .28);
  transform: translateY(104%); transition: transform .5s var(--spring);
}
.reel[data-quiz="on"] .sheet { transform: none; }
.sheet-kicker { margin: 0; color: var(--blue); font-size: 4.4cqw; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sheet-q { margin: 1.6cqw 0 4cqw; font-size: 5.6cqw; font-weight: 800; line-height: 1.28; }
.sheet-opts { display: grid; gap: 2.4cqw; }
.opt {
  display: flex; align-items: center; gap: 3cqw; padding: 2.4cqw 3cqw;
  border: .7cqw solid var(--line-strong); border-bottom-width: 1.5cqw; border-radius: 3.8cqw;
  font-size: 6cqw; font-weight: 900; transition: background-color .2s, border-color .2s, color .2s;
}
.opt-key {
  display: grid; place-items: center; width: 7.6cqw; height: 7.6cqw; flex: none; border: .6cqw solid var(--line-strong);
  border-radius: 2.2cqw; color: var(--muted); font-size: 4.2cqw; transition: inherit;
}
.opt.is-pressed { transform: translateY(.8cqw); border-bottom-width: .7cqw; }
.opt.is-right { border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.opt.is-right .opt-key { border-color: var(--green); background: var(--green); color: #fff; }
.opt.is-wrong { border-color: var(--red); background: var(--red-tint); color: var(--red-ink); animation: shake .45s ease-in-out; }
.opt.is-wrong .opt-key { border-color: var(--red); background: var(--red); color: #fff; }
.sheet-fb {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 4cqw 6cqw 6cqw;
  font-size: 4.6cqw; font-weight: 800; line-height: 1.25; white-space: nowrap; transform: translateY(105%); transition: transform .35s var(--spring);
}
.sheet-fb b { display: block; font-size: 6.4cqw; font-weight: 900; }
.sheet-fb--right { background: var(--green-tint); color: var(--green-ink); }
.sheet-fb--wrong { background: var(--red-tint); color: var(--red-ink); }
.sheet[data-fb="right"] .sheet-fb--right, .sheet[data-fb="wrong"] .sheet-fb--wrong { transform: none; }
@keyframes shake { 20% { translate: -2.4cqw 0; } 40% { translate: 2cqw 0; } 60% { translate: -1.4cqw 0; } 80% { translate: .8cqw 0; } }

/* Progress card and the answer token that flies into it. */
.progress-card {
  position: absolute; left: 76%; top: 5.5%; display: flex; align-items: center; gap: 1.6cqw;
  padding: 1.5cqw 2.6cqw 1.5cqw 1.5cqw; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 3.4cqw;
  background: #fff; color: var(--ink); rotate: 4deg; white-space: nowrap;
}
.ring-wrap { position: relative; display: grid; place-items: center; width: 10.6cqw; height: 10.6cqw; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring-track, .ring-fill { fill: none; stroke-width: 6; }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 5 16; transition: stroke-dasharray .7s var(--spring); }
.ring-count { position: relative; font-size: 3.9cqw; font-weight: 900; }
.progress-text { display: grid; line-height: 1.12; font-size: 2.6cqw; font-weight: 800; color: var(--muted); }
.progress-text b { color: var(--ink); font-size: 3.4cqw; font-weight: 900; }
.progress-card.is-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { scale: 1.12; } }
.saved-chip {
  position: absolute; right: 0; top: 22.5%; display: inline-flex; align-items: center; gap: 1cqw; padding: 1.2cqw 2.2cqw 1.2cqw 1.4cqw;
  border-radius: 99px; background: var(--green); color: #fff; font-size: 2.8cqw; font-weight: 900; white-space: nowrap;
  box-shadow: 0 .8cqw 0 var(--green-edge); rotate: -3deg; opacity: 0; scale: .4; transition: opacity .2s, scale .35s var(--spring);
}
.saved-chip svg { width: 4.2cqw; height: 4.2cqw; }
.saved-chip.is-on { opacity: 1; scale: 1; }
.token {
  position: absolute; left: 0; top: 0; z-index: 8; width: 6.4cqw; height: 6.4cqw; display: grid; place-items: center;
  margin: -3.2cqw 0 0 -3.2cqw; border-radius: 50%; background: var(--green); color: #fff; opacity: 0;
  box-shadow: 0 .7cqw 0 var(--green-edge); pointer-events: none;
}
.token svg { width: 72%; height: 72%; }

.confetti { position: absolute; left: 0; top: 0; z-index: 10; pointer-events: none; will-change: transform, opacity; }
.phone.is-land { animation: phone-land .55s var(--spring); }
@keyframes phone-land { 35% { rotate: -6.6deg; translate: 0 .6cqw; } 70% { rotate: -4.2deg; } }

/* Finger that taps answers and swipes reels. Its hotspot is the fingertip. */
.hand {
  position: absolute; left: 0; top: 0; z-index: 9; width: 7.6cqw; margin: -.6cqw 0 0 -3cqw;
  opacity: 0; transition: transform .5s var(--swift), opacity .25s ease; pointer-events: none;
  filter: drop-shadow(0 .5cqw .6cqw rgba(14, 17, 41, .25));
}
.hand.is-on { opacity: 1; }
.hand.is-tap svg { animation: tap .32s ease-in-out; }
@keyframes tap { 50% { transform: scale(.82) translateY(4%); } }

/* Speech bubble */
.bubble {
  position: absolute; z-index: 7; left: 2.5%; top: 6%; min-width: 27cqw; max-width: 44%; margin: 0; text-wrap: balance; padding: 1.7cqw 2.6cqw 1.9cqw;
  border: 2px solid var(--line-strong); border-bottom-width: 4px; border-radius: 3.6cqw; background: #fff; color: var(--ink);
  font-size: clamp(10.5px, 3.15cqw, 19px); font-weight: 800; line-height: 1.2; transform-origin: 35% 120%;
}
.bubble::after {
  content: ""; position: absolute; left: 17.5cqw; bottom: -2.1cqw; width: 3.2cqw; height: 3.2cqw;
  border: solid var(--line-strong); border-width: 0 4px 4px 0; border-bottom-right-radius: .8cqw; background: #fff; rotate: 45deg;
}
.bubble.is-pop { animation: bubble-pop .42s var(--spring); }
@keyframes bubble-pop { from { scale: .6; opacity: .2; } }

/* Mentor: the original character, posed through the generated pivot groups. */
.mentor { overflow: visible; }
.mentor g, .mentor use { transform-box: view-box; transform-origin: 0 0; }
.mentor--hero { position: absolute; z-index: 6; left: -8.5%; top: 21%; width: 64%; height: 80%; }
.mentor .m-arm { transition: transform .55s cubic-bezier(.3, 1.35, .45, 1); }
.mentor .m-pupil {
  transform: translate(clamp(-2.6px, calc(var(--plx, 0px) + var(--tlx, 0px)), 2.6px), clamp(-1.8px, calc(var(--ply, 0px) + var(--tly, 0px)), 1.8px));
  transition: transform .3s ease-out;
}
.mentor .m-brows { transition: transform .3s var(--spring); }
.is-ready .mentor .m-fig { animation: breathe 3.4s ease-in-out infinite alternate; }
.is-ready .mentor .m-lid { animation: blink 5.2s linear infinite; }
.is-ready .mentor--coach .m-lid { animation-duration: 4.4s; animation-delay: -1.5s; }
.is-ready .mentor--final .m-lid { animation-duration: 6.1s; animation-delay: -3s; }
.is-ready .mentor .m-tuft-1 { animation: sway 2.9s ease-in-out infinite alternate; --sway: -2.5deg; }
.is-ready .mentor .m-tuft-2 { animation: sway 3.3s ease-in-out -1s infinite alternate; --sway: -3deg; }
.is-ready .mentor .m-tuft-3 { animation: sway 3.1s ease-in-out -.6s infinite alternate; --sway: 3deg; }
.is-ready .mentor .m-tuft-4 { animation: sway 2.7s ease-in-out -1.8s infinite alternate; --sway: 2.4deg; }
.mentor .m-tuft-1 .m-boing, .mentor .m-tuft-2 .m-boing { --dir: -1; }
.mentor .m-tuft-3 .m-boing, .mentor .m-tuft-4 .m-boing { --dir: 1; }
.mentor[data-pose="present"] .m-arm-r { transform: rotate(46deg); }
.mentor[data-pose="point"] .m-arm-r { transform: rotate(82deg); }
.mentor[data-pose="point"], .mentor[data-pose="present"] { --plx: 2.4px; --ply: .8px; }
.mentor[data-pose="wave"] .m-arm-l { transform: rotate(132deg); }
.mentor[data-pose="wave"] .m-arm-l .m-swing { animation: wave .52s ease-in-out .35s 4 alternate; }
.mentor[data-pose="cheer"] .m-arm { transform: rotate(150deg); }
.mentor[data-pose="cheer"] .m-swing { animation: cheer .26s ease-in-out .45s 4 alternate; }
.mentor[data-pose="cheer"] .m-brows, .mentor[data-pose="shrug"] .m-brows { transform: translateY(-3.5px); }
.mentor[data-pose="shrug"] .m-arm { transform: rotate(34deg); }
.mentor[data-pose="shrug"] .m-hop { transform: rotate(-3deg); }
.mentor[data-pose="shrug"] { --plx: -1.4px; --ply: -1px; }
.mentor .m-hop { transition: transform .4s var(--spring); }
.mentor.is-hop .m-hop { animation: hop .66s cubic-bezier(.3, .7, .4, 1); }
.mentor.is-hop .m-shadow { animation: hop-shadow .66s cubic-bezier(.3, .7, .4, 1); }
.mentor.is-hop .m-boing { animation: boing .9s ease-out .12s; }
.mentor.is-talk .m-stache { animation: talk .16s ease-in-out 5 alternate; }
@keyframes breathe { from { transform: scale(1, 1); } to { transform: scale(1.012, .985); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(1.95); } }
@keyframes sway { from { transform: rotate(0deg); } to { transform: rotate(var(--sway)); } }
@keyframes wave { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@keyframes cheer { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes hop {
  0% { transform: scale(1.05, .93); }
  32% { transform: translateY(-26px) scale(.97, 1.04); }
  62% { transform: translateY(0) scale(1.06, .92); }
  80% { transform: scale(.98, 1.02); }
  100% { transform: none; }
}
@keyframes hop-shadow { 32% { transform: scale(.72); opacity: .55; } }
@keyframes boing {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(calc(var(--dir) * -16deg)); }
  45% { transform: rotate(calc(var(--dir) * 11deg)); }
  70% { transform: rotate(calc(var(--dir) * -5deg)); }
  100% { transform: rotate(0deg); }
}
@keyframes talk { to { transform: scale(1.02, .9); } }

/* Study level rail */
.rail { display: flex; align-items: center; min-height: var(--rail-h); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.rail-list {
  display: flex; gap: clamp(4px, 1.6vw, 26px); margin: 0 auto; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail-list::-webkit-scrollbar { display: none; }
.rail-list li { flex: none; scroll-snap-align: start; }
/* Auto margins centre the rail when it fits and keep its start reachable when it scrolls. */
.rail-list li:first-child { margin-left: auto; }
.rail-list li:last-child { margin-right: auto; }
.rail-item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 16px;
  color: var(--text); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.rail-item:hover { background: var(--mist); color: var(--ink); }
.rail-item--school { --tone: var(--orange); --tone-edge: var(--orange-edge); }
.rail-item--university { --tone: var(--teal); --tone-edge: var(--teal-edge); }
.rail-item--postgraduate { --tone: var(--pink); --tone-edge: var(--pink-edge); }
.rail-item--cfa { --tone: var(--blue); --tone-edge: var(--blue-edge); }
.rail-item--cma { --tone: var(--green); --tone-edge: var(--green-edge); }
.rail-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tone); color: #fff;
  box-shadow: 0 3px 0 var(--tone-edge); transition: transform .35s var(--spring);
}
.rail-icon svg { width: 22px; height: 22px; }
.rail-item:hover .rail-icon, .rail-item:focus-visible .rail-icon { transform: translateY(-4px) rotate(-8deg); }
.rail-item:active .rail-icon { transform: translateY(2px) scale(.94); }
.rail-label .reg { letter-spacing: 0; }
.is-ready .rail-icon { animation: rail-in .55s var(--spring) both; }
.is-ready .rail-list li:nth-child(2) .rail-icon { animation-delay: .07s; }
.is-ready .rail-list li:nth-child(3) .rail-icon { animation-delay: .14s; }
.is-ready .rail-list li:nth-child(4) .rail-icon { animation-delay: .21s; }
.is-ready .rail-list li:nth-child(5) .rail-icon { animation-delay: .28s; }
@keyframes rail-in { from { transform: translateY(14px) scale(.5); opacity: 0; } }
/* The sub-second entrance always finishes, even under Pause, so the levels are never left hidden. */
.is-still .rail-icon { animation-play-state: running !important; }

/* How it works */
.how { padding: clamp(56px, 7vw, 96px) 0 clamp(60px, 7vw, 100px); }
.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px); color: var(--ink); text-align: center;
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 900; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance;
}
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0 clamp(16px, 2vw, 26px); margin: 0; padding: 0; list-style: none; }
.tile {
  --tone: var(--blue); display: grid; grid-row: span 2; grid-template-rows: subgrid; overflow: hidden;
  border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 28px; background: #fff;
}
.tile--check { --tone: var(--sun); }
.tile--keep { --tone: var(--teal); }
.tile-art { position: relative; min-height: 430px; display: grid; place-items: center; padding: 22px; background: var(--tone); overflow: hidden; }
.tile-copy { padding: 22px 24px 26px; }
.tile-title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--ink); font-size: 21px; font-weight: 900; line-height: 1.2; }
.tile-num {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px;
  background: var(--tone); color: #fff; font-size: 17px; box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.tile--check .tile-num { color: var(--ink); }
.tile-copy p { margin: 0; font-size: 16.5px; line-height: 1.5; }

.mini-phone {
  position: relative; width: 196px; aspect-ratio: 196 / 340; padding: 7px; border-radius: 30px; background: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 10px 12px 0 rgba(14, 17, 41, .2); rotate: -3deg;
}
.mini-video { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; background: #dfe9ef; }
.media-controls { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 10px; }
.media-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 rgba(14, 17, 41, .25);
  transition: translate .08s ease, box-shadow .08s ease;
}
.media-btn:active { translate: 0 3px; box-shadow: none; }
.media-btn svg { width: 22px; height: 22px; }
.media-btn .icon-pause, .tile-art.is-playing .media-btn .icon-play { display: none; }
.tile-art.is-playing .media-btn .icon-pause { display: block; }
.media-btn .icon-sound, .media-btn[aria-pressed="true"] .icon-muted { display: none; }
.media-btn[aria-pressed="true"] .icon-sound { display: block; }
.tile-tag {
  position: absolute; left: 16px; top: 16px; margin: 0; padding: 6px 12px; border-radius: 99px;
  background: rgba(14, 17, 41, .28); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
.video-error {
  position: absolute; left: 16px; right: 72px; bottom: 16px; margin: 0; padding: 10px 12px; border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 800;
}

.tile--check .tile-art { align-content: start; justify-items: stretch; gap: 14px; padding-top: 18px; }
.coach { display: flex; align-items: flex-end; gap: 10px; height: 104px; }
.mentor--coach { width: 104px; height: 104px; flex: none; margin: 0 -8px 0 -14px; }
.coach-bubble {
  position: relative; align-self: center; margin: 0 0 14px; padding: 9px 14px 11px; border: 2px solid rgba(27, 30, 60, .14);
  border-bottom-width: 4px; border-radius: 16px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 900; line-height: 1.25;
}
.coach-bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 16px; width: 13px; height: 13px; background: #fff;
  border: solid rgba(27, 30, 60, .14); border-width: 0 0 2px 2px; rotate: 45deg;
}
.coach-bubble.is-pop { animation: bubble-pop .42s var(--spring); }
.quiz { min-width: 0; margin: 0; padding: 16px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(27, 30, 60, .14); }
.quiz-q { float: left; width: 100%; padding: 0; margin: 0 0 12px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.38; }
.quiz-kicker { display: block; margin-bottom: 4px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.quiz-opts { clear: both; display: grid; gap: 9px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 12px;
  border: 2px solid var(--line-strong); border-bottom-width: 4px; border-radius: 14px; background: #fff;
  color: var(--ink); font-size: 16px; font-weight: 800; text-align: left; cursor: pointer; touch-action: manipulation;
  transition: background-color .15s, border-color .15s, color .15s;
}
.quiz-opt:hover { background: var(--mist); }
.quiz-opt:active { translate: 0 2px; border-bottom-width: 2px; margin-bottom: 2px; }
.quiz-key {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 2px solid var(--line-strong);
  border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 900;
}
.quiz-opt.is-right { border-color: var(--green); background: var(--green-tint); color: var(--green-ink); }
.quiz-opt.is-right .quiz-key { border-color: var(--green); background: var(--green); color: #fff; }
.quiz-opt.is-wrong { border-color: var(--red); background: var(--red-tint); color: var(--red-ink); animation: shake-px .45s ease-in-out; }
.quiz-opt.is-wrong .quiz-key { border-color: var(--red); background: var(--red); color: #fff; }
.quiz[data-done] .quiz-opt:not(.is-right) { opacity: .55; }
@keyframes shake-px { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }
/* The feedback area keeps its size, so answering never shifts the page. */
.quiz-fb { display: grid; align-content: center; min-height: 94px; padding: 12px 14px; border-radius: 16px; font-size: 15px; font-weight: 700; line-height: 1.42; }
.quiz-hint { color: rgba(27, 30, 60, .72); font-weight: 800; text-align: center; }
.quiz-fb b { font-weight: 900; }
.quiz-fb.is-right { background: #fff; color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green); }
.quiz-fb.is-wrong { background: #fff; color: var(--red-ink); box-shadow: inset 0 0 0 2px var(--red); }
.quiz-fb .quiz-again { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Progress sync illustration */
.tile--keep .tile-art { padding: 0 0 64px; }
.sync-scene { position: relative; width: min(100%, 360px); aspect-ratio: 360 / 330; container-type: inline-size; }
.device { position: absolute; background: var(--ink); color: var(--ink); }
.device--phone { left: 7%; top: 20%; width: 37%; aspect-ratio: 1 / 1.75; padding: 6px; border-radius: 20px; rotate: -4deg; box-shadow: 8px 10px 0 rgba(14, 17, 41, .18); z-index: 1; }
.device--phone .device-list { font-size: clamp(8.5px, 2.8cqw, 10px); gap: 7px; padding: 6px 7px 10px; }
.device--phone .device-head { padding-left: 8px; padding-right: 8px; }
.device--phone .device-head b { overflow: hidden; text-overflow: ellipsis; font-size: clamp(7.5px, 2.6cqw, 9px); letter-spacing: .02em; }
.device--laptop { right: 4%; top: 33%; width: 53%; }
.laptop-screen { aspect-ratio: 1.55; padding: 7px; border-radius: 12px 12px 4px 4px; background: var(--ink); box-shadow: 8px 10px 0 rgba(14, 17, 41, .18); }
.laptop-base { display: block; height: 9px; margin: 0 -9%; border-radius: 0 0 10px 10px; background: #2d3157; }
.device--phone > .device-head, .device--phone > .device-list, .device--phone > .device-next, .laptop-screen > * { background: #fff; }
.device--phone { display: flex; flex-direction: column; }
.device--phone > .device-head { border-radius: 14px 14px 0 0; padding-top: 16px; }
.device--phone > .device-list { flex: 1; }
.device--phone > .device-next { display: grid; place-items: center; height: 30%; padding: 0 8px 8px; border-radius: 0 0 14px 14px; }
.device-next svg { width: 100%; height: 100%; padding: 22% 0; border-radius: 10px; background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-edge); }
.laptop-screen { display: flex; flex-direction: column; }
.laptop-screen > .device-head { border-radius: 6px 6px 0 0; }
.laptop-screen > .device-list { flex: 1; border-radius: 0 0 6px 6px; }
.device-head { display: grid; gap: 5px; padding: 9px 10px 6px; }
.device-head b { font-size: 10.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); white-space: nowrap; }
.device-bar { display: block; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.device-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--fill, .67)); transition: transform .6s var(--spring); }
.device-list { display: grid; align-content: start; gap: 7px; margin: 0; padding: 4px 10px 10px; list-style: none; font-size: clamp(9px, 3.05cqw, 11px); font-weight: 800; line-height: 1.2; }
.device-list li { display: flex; align-items: center; gap: 7px; }
.tick { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background-color .25s, border-color .25s; }
.tick::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; opacity: 0; transition: opacity .2s; }
.device-list li.is-done .tick { border-color: var(--green); background: var(--green); }
.device-list li.is-done .tick::after { opacity: 1; }
.device-list li.is-fresh .tick { animation: tick-pop .45s var(--spring); }
@keyframes tick-pop { 40% { scale: 1.45; } }
.sync-path { position: absolute; left: 24%; top: 0; width: 52%; color: rgba(255, 255, 255, .7); overflow: visible; }
.sync-dot { fill: #fff; opacity: 0; }
.sync-chip {
  position: absolute; left: 50%; bottom: 18px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px 7px 10px;
  border-radius: 99px; background: #fff; color: var(--green-ink); font-size: 14px; font-weight: 900; white-space: nowrap;
  translate: -50% 0; box-shadow: 0 4px 0 rgba(14, 17, 41, .18);
}
.sync-chip svg { width: 22px; height: 22px; color: var(--green); }
.sync-chip.is-pulse { animation: bump .5s var(--spring); }

/* Final call to action */
.final { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0; background: var(--blue); color: #fff; }
.final-doodle { position: absolute; color: rgba(255, 255, 255, .26); font-size: 54px; font-weight: 900; line-height: 1; pointer-events: none; }
.is-ready .final-doodle { animation: drift-px 6s ease-in-out infinite alternate; }
.final-doodle--1 { left: 6%; top: 14%; color: var(--sun); font-size: 44px; }
.final-doodle--2 { right: 8%; top: 16%; animation-delay: -2s; }
.final-doodle--3 { right: 14%; bottom: 12%; color: var(--sun); font-size: 46px; animation-delay: -3.5s; }
.final-doodle--4 { left: 38%; bottom: 8%; font-size: 40px; animation-delay: -1.2s; }
@keyframes drift-px { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(4px, -12px) rotate(10deg); } }
.final-row { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-content: center; gap: clamp(16px, 4vw, 56px); max-width: 980px; }
.final-art { display: grid; place-items: center; width: clamp(180px, 22vw, 270px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.mentor--final { width: 112%; height: 112%; margin-top: -14%; }
.final-title { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.final-lead { margin: 12px 0 0; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; }
.final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.final-actions .btn { width: auto; min-width: 230px; }
.final-link {
  display: inline-flex; align-items: center; min-height: 44px; border-radius: 10px; color: #fff;
  font-size: 14.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.final :focus-visible { outline-color: #fff; }

/* Footer */
.foot { padding: 26px 0 36px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--text); font-weight: 800; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 800; text-decoration: none; }
.foot-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.foot-fine { margin-top: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.55; }
.foot-fine p { margin: 4px 0; max-width: 92ch; }
.foot-fine a { color: var(--text); text-underline-offset: 2px; }

/* Tablet */
@media (max-width: 980px) {
  .hero-row { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .hero { min-height: 0; padding: 0 0 28px; }
  .stage { width: 100%; height: clamp(300px, 52vw, 470px); }
  .hero-copy { margin-top: 4px; }
  .hero-title { max-width: 16ch; }
  /* The three steps become a row of cards to swipe through, like the reels themselves. */
  .tiles {
    display: flex; gap: 14px; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 4px clamp(16px, 4vw, 40px) 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 clamp(16px, 4vw, 40px); scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { display: flex; flex-direction: column; flex: 0 0 min(84%, 400px); scroll-snap-align: start; }
  .tile-art { flex: 1 0 auto; min-height: 0; padding: 26px 18px; }
  .tile--keep .tile-art { padding: 6px 0 60px; }
  .rail-list { gap: 2px; }
  .rail-item { gap: 10px; font-size: 13.5px; letter-spacing: .05em; padding-right: 10px; }
  .rail-icon { width: 34px; height: 34px; }
}

/* Phones: the offer and both actions stay inside the first screen. */
@media (max-width: 640px) {
  :root { --top-h: 58px; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-bottom: 22px; }
  .stage { height: clamp(150px, min(calc(100svh - var(--top-h) - 342px), calc((100vw - 32px) * .8)), 400px); }
  .stage-toggle { left: auto; top: auto; right: 0; bottom: 0; }
  .bubble { max-width: 48%; }
  .hero-title { font-size: clamp(28px, 8.4vw, 36px); }
  .hero-lead { margin-top: 10px; font-size: clamp(15.5px, 4.3vw, 17.5px); }
  .hero-actions { gap: 12px; margin-top: 18px; }
  .btn--xl { min-height: 50px; font-size: 14.5px; }
  .rail { border-bottom: 0; padding: 10px 0; }
  .rail-list { flex-wrap: wrap; justify-content: center; gap: 4px 2px; overflow: visible; }
  .rail-list li:first-child, .rail-list li:last-child { margin: 0; }
  .rail-item { min-height: 48px; gap: 7px; padding: 6px 8px 6px 5px; font-size: 12.5px; letter-spacing: .04em; }
  .rail-icon { width: 30px; height: 30px; border-radius: 10px; }
  .rail-icon svg { width: 19px; height: 19px; }
  .how { padding-top: 44px; }
  .tile-copy { padding: 18px 18px 22px; }
  .tile-title { font-size: 19.5px; }
  .tile-copy p { font-size: 16px; }
  .tile-art { padding: 22px 14px; }
  .tile--check .tile-art { padding: 14px 12px 16px; }
  .final-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .final-art { width: 170px; }
  .final-doodle { font-size: 34px; }
  .final-doodle--3, .final-doodle--4 { display: none; }
  .final-actions { justify-content: center; flex-direction: column; }
  .final-actions .btn { width: 100%; max-width: 340px; }
  .foot-row { justify-content: center; text-align: center; }
  .foot-nav { justify-content: center; }
  .foot-fine { text-align: center; }
}

/* Landscape phones keep the two-column hero so both actions stay in the first screen. */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: calc(100svh - var(--top-h)); padding: 0 0 12px; }
  .hero-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); justify-items: stretch; gap: 16px; }
  .stage { height: max(200px, calc(100svh - var(--top-h) - 20px)); }
  .stage-toggle { left: auto; top: auto; right: 0; bottom: 0; }
  .hero-copy { margin-top: 0; }
  .hero-title { font-size: clamp(24px, 4.3vw, 34px); }
  .hero-lead { margin-top: 8px; font-size: 15px; }
  .hero-actions { margin-top: 14px; gap: 10px; }
  .btn--xl { min-height: 46px; padding-left: 12px; padding-right: 12px; font-size: 13px; letter-spacing: .05em; }
}

@media (max-width: 640px) and (max-height: 600px) {
  .hero-lead { font-size: 15px; }
  .hero-actions { margin-top: 14px; gap: 10px; }
  .btn--xl { min-height: 46px; }
}

@media (max-width: 380px) {
  .brand { font-size: 21px; }
  .tile { flex-basis: 90%; }
  .tile--check .tile-art { padding-left: 8px; padding-right: 8px; }
  .quiz { padding: 12px; }
  .quiz-opt { gap: 10px; padding: 8px 10px; font-size: 15px; }
  .quiz-key { width: 28px; height: 28px; }
  .btn--xl { padding-left: 14px; padding-right: 14px; font-size: 13px; letter-spacing: .06em; }
}

/* Reduced motion: every element already rests in its composed final state, so stopping motion is enough. */
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-ok) *, :root:not(.motion-ok) *::before, :root:not(.motion-ok) *::after {
    animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}
