/* Landing page in the friendly game-app idiom: one 988px column, a
   70px sticky nav that grows a button once the hero scrolls away, 50px
   uppercase lip buttons, 530px alternating feature rows
   with lowercase brand headings over grey copy, one pale-blue band, and a
   full-bleed brand footer with pale link columns. Learn Britain's logo blue
   carries the accent, and the corgi is the mascot.
   Light-only, like the reference. */
@font-face {font-family:Nunito;src:url('/fonts/nunito.woff2') format('woff2');font-style:normal;font-weight:200 1000;font-display:swap}
/* The wordmark is live text in Fredoka Bold, the same mark the study app's rail uses. */
@font-face {font-family:Fredoka;src:url('/fonts/fredoka-700.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
html {scroll-behavior:smooth;scroll-padding-top:90px}
.wrap {max-width:none;padding:0}
.landing {color-scheme:light dark;
 --paper:#fff;--panel:#f8fbfd;--ink:#404b60;--ink-1:#4c586e;--ink-2:#5c6980;--ink-3:#667286;--line:#dce1e6;--lip:#d4dce0;
 --brand:#36bffa;--brand-lip:#0ba5ec;--brand-hover:#5ccdfb;--brand-soft:#e0f2fe;--brand-line:#7cd4fd;--brand-ink:#026aa2;--navy:#042c60;
 /* White on --brand is 2.10:1. This ink keeps the brand fill and makes the
    label readable; --focus-ring stops the ring matching the button. */
 --brand-on:#071827;--focus-ring:#b54708;--on-brand:#fff;
 --green:#58cc02;--green-lip:#58a700;--green-soft:#d7ffb8;--green-line:#a5ed6e;
 --red:#ff4b4b;--red-lip:#ea2b2b;--red-soft:#ffdfe0;--red-line:#ffb2b2;
 --yellow:#ffc800;--orange:#ff9600;--purple:#ce82ff;--corgi:#f6a21c;
 --wrong:var(--red);--wrong-lip:var(--red-lip);--wrong-soft:var(--red-soft);
 --ease:cubic-bezier(.2,.7,.3,1);
 background:var(--paper);color:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:17px;line-height:1.4;overflow-x:clip}
.landing img {max-width:100%;height:auto;display:block}
.landing a {color:var(--brand-ink)}
.landing button {font-family:inherit}
.landing [hidden] {display:none!important}
.landing h1,.landing h2,.landing h3 {font-family:Nunito,sans-serif;margin:0}
.landing :where(a,button,summary,video):focus-visible {outline:3px solid var(--brand);outline-offset:3px}
.skip-link {position:fixed;top:8px;left:16px;z-index:100;padding:10px 20px;background:var(--paper);border:2px solid var(--brand);border-radius:12px;font-weight:700;transform:translateY(-180%)}
.skip-link:focus {transform:translateY(0)}

/* Pressable buttons: a 46px face plus a solid 4px lip that closes on press,
   uppercase 15px with .8px tracking, 12px corners. The secondary is white
   with a 2px stroke and a 2px lip. */
.btn-press {position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-height:46px;margin-bottom:4px;padding:10px 16px;border:0;border-radius:12px;font:inherit;font-size:15px;font-weight:700;letter-spacing:.8px;line-height:1.2;text-transform:uppercase;text-decoration:none;text-align:center;cursor:pointer;user-select:none;transition:transform .1s var(--ease),box-shadow .1s var(--ease),background-color .15s}
/* Oliver's call: the primary CTA keeps white on the brand blue. That is
   2.10:1 against AA's 4.5:1 — the deliberate exception to the contrast pass,
   kept here rather than spread, so the rest of the page stays compliant. */
.btn-press.primary {background:var(--brand);color:#fff;box-shadow:0 4px 0 var(--brand-lip)}
.btn-press.primary:hover {background:var(--brand-hover)}
.btn-press.primary:active {transform:translateY(4px);box-shadow:none}
.btn-press.secondary {min-height:48px;margin-bottom:2px;border:2px solid var(--line);background:var(--paper);color:var(--brand-ink);box-shadow:0 2px 0 var(--line)}
.btn-press.secondary:hover {background:var(--panel)}
.btn-press.secondary:active {transform:translateY(2px);box-shadow:none}
.btn-press span {font-size:inherit}

/* Nav: logo left, a muted uppercase link right; once the hero copy has
   scrolled under it the link swaps for the primary button and the bar gains
   a 2px bottom rule. Without JS it simply stays in the rest state. */
.land-nav {position:sticky;top:0;z-index:20;background:var(--paper);border-bottom:2px solid transparent;transition:border-color .2s}
.land-nav.is-scrolled {border-bottom-color:var(--line)}
.land-nav-inner {width:min(988px,calc(100% - 48px));height:70px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand-lockup {display:flex;align-items:center;height:56px;flex-shrink:0;text-decoration:none}
.landing .wordmark {font:700 34px/1 Fredoka,Nunito,system-ui,sans-serif;letter-spacing:-.4px;color:#1cb0f6;white-space:nowrap}
.land-nav-links {display:flex;align-items:center}
.landing .land-nav-link {display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--ink-3);font-size:15px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;text-decoration:none}
.landing .land-nav-link:hover {color:var(--ink-2)}
.land-nav-link svg {width:14px;height:14px}
.land-nav-cta {display:none;margin-bottom:0}
.mobile-start {display:none}
.land-nav.is-scrolled .land-nav-link {display:none}
.land-nav.is-scrolled .land-nav-cta {display:inline-flex}

/* Pip leads into Britain's stories. Keep the scene and invitation together
   instead of stretching this opening across every available viewport height. */
.land-hero {width:min(1120px,calc(100% - 64px));margin:auto;padding:54px 0 28px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:48px}
.hero-art {position:relative;min-width:0}
.hero-copy {min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding-bottom:12px}
.hero-copy h1 {font-family:Fredoka,Nunito,sans-serif;font-size:clamp(40px,5.2vw,62px);font-weight:700;line-height:1.08;color:var(--ink);letter-spacing:-1.2px;text-wrap:balance}
.hero-intro {max-width:30ch;margin:24px 0 0;font-size:20px;font-weight:600;line-height:1.55;color:var(--ink-2)}
.hero-actions {display:flex;align-items:center;gap:18px;width:100%;margin-top:30px}
.hero-actions .btn-press {min-height:56px;padding:14px 25px;border-radius:14px;font-size:18px;font-weight:800;letter-spacing:0;text-transform:none}
.hero-actions .secondary {min-height:48px;padding-inline:4px;border:0;box-shadow:none;background:transparent}
.hero-actions .secondary:hover {background:transparent;text-decoration:underline;text-underline-offset:5px}
.hero-corgi {width:100%;margin:auto}
.hero-trust {margin:17px 0 0;font-size:14px;font-weight:700;color:var(--ink-3)}
.hero-next {width:min(1120px,calc(100% - 64px));margin:0 auto 24px;display:flex;justify-content:center}
.hero-next a {display:inline-flex;align-items:center;gap:12px;min-height:44px;color:var(--ink-2);font-size:14px;font-weight:700;text-decoration:none}
.hero-next a:hover {color:var(--brand-ink)}
.hero-next span {font-size:21px;color:var(--brand-ink)}
/* One opening beat: app icon in a blue phone, phone folds toward the path,
   then Pip's world springs out. The final scene's WebP supplies the idle loop. */
.hero-scene {isolation:isolate;--hero-reveal-time:3.7s}
.hero-stage {position:relative;aspect-ratio:1;perspective:1100px}
.hero-world {position:relative;z-index:3;transform-origin:50% 55%;opacity:1}
.hero-phone {position:absolute;z-index:2;left:31%;top:12%;width:38%;height:67.5%;opacity:0;transform-style:preserve-3d;transform-origin:50% 75%;transform:rotateX(6deg) rotateY(-18deg) rotateZ(-10deg);pointer-events:none}
.hero-phone-back {position:absolute;inset:0;border-radius:16% / 9%;background:#079bdc;transform:translate(-5%,3%) translateZ(-15px)}
.hero-phone-face {position:absolute;inset:0;overflow:hidden;border:7px solid #7cddff;border-radius:16% / 9%;background:#fff;backface-visibility:hidden}
.hero-phone-camera {position:absolute;top:4%;left:36%;width:28%;height:3%;border-radius:30px;background:#103348}
.hero-phone-home {position:absolute;bottom:3%;left:33%;width:34%;height:1.3%;border-radius:20px;background:#c8d9e1}
.landing .hero-phone-icon {position:absolute;z-index:2;left:23%;top:35%;width:54%;height:auto;border-radius:23%;transform-origin:50% 50%}
.hero-phone-path {position:absolute;inset:18% 13% 11%;opacity:0}
.hero-phone-path::before {content:"";position:absolute;inset:9% 38%;border-left:4px dashed #c4ecfa;transform:rotate(12deg)}
.hero-phone-path i {position:absolute;width:34%;aspect-ratio:1;border-radius:50%;background:#ffd34d;box-shadow:0 4px 0 #edaa16}
.hero-phone-path i:nth-child(1) {top:0;left:14%}.hero-phone-path i:nth-child(2) {top:26%;right:8%}.hero-phone-path i:nth-child(3) {top:52%;left:8%}.hero-phone-path i:nth-child(4) {bottom:0;right:15%}
.hero-scene[data-phase="intro"] .hero-phone {animation:hero-phone-open var(--hero-reveal-time) cubic-bezier(.2,.7,.3,1) both}
.hero-scene[data-phase="intro"] .hero-phone-icon {animation:hero-icon-open var(--hero-reveal-time) ease-in-out both}
.hero-scene[data-phase="intro"] .hero-phone-path {animation:hero-phone-path var(--hero-reveal-time) ease-in-out both}
.hero-scene[data-phase="intro"] .hero-world {animation:hero-world-reveal var(--hero-reveal-time) cubic-bezier(.2,.7,.3,1) both}
.hero-scene[data-playing="false"] .hero-phone,.hero-scene[data-playing="false"] .hero-phone-icon,.hero-scene[data-playing="false"] .hero-phone-path,.hero-scene[data-playing="false"] .hero-world {animation-play-state:paused}
.hero-scene[data-phase="reset"] .hero-world {opacity:0}.hero-scene[data-phase="reset"] .hero-phone {opacity:1}
.hero-motion-controls {position:relative;z-index:4;display:flex;justify-content:flex-end;gap:6px;min-height:40px;margin-top:2px}
.hero-motion-controls button {min-height:40px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink-2);font:700 12px/1.2 Nunito,sans-serif;cursor:pointer}
.hero-motion-controls button:hover {color:var(--brand-ink);border-color:var(--brand-line)}
@keyframes hero-phone-open {
 0% {opacity:1;transform:translateY(5%) rotateX(6deg) rotateY(-18deg) rotateZ(-10deg) scale(.9)}
 10%,31% {opacity:1;transform:translateY(0) rotateX(6deg) rotateY(-18deg) rotateZ(-10deg) scale(1)}
 36% {opacity:1;transform:translateY(-2%) rotateX(0deg) rotateY(-15deg) rotateZ(-8deg) scale(1.02)}
 53% {opacity:1;transform:translateY(35%) rotateX(57deg) rotateY(-8deg) rotateZ(-18deg) scale(.96)}
 66% {opacity:.5;transform:translateY(58%) rotateX(73deg) rotateY(0deg) rotateZ(-18deg) scale(.94)}
 77%,100% {opacity:0;transform:translateY(60%) rotateX(73deg) rotateY(0deg) rotateZ(-18deg) scale(.94)}
}
@keyframes hero-icon-open {0%,30% {opacity:1;transform:scale(1)} 35% {opacity:1;transform:scale(.91)} 43% {opacity:.75;transform:translateY(-10%) scale(1.25)} 52%,100% {opacity:0;transform:translateY(-20%) scale(1.5)}}
@keyframes hero-phone-path {0%,38% {opacity:0} 48%,100% {opacity:1}}
@keyframes hero-world-reveal {
 0%,34% {opacity:0;transform:translateY(2%) scale(.13)}
 41% {opacity:.2;transform:translateY(-2%) scale(.25)}
 60% {opacity:1;transform:translateY(-3%) rotate(-1.5deg) scale(1.025)}
 77% {opacity:1;transform:translateY(1%) rotate(.4deg) scale(.98)}
 92%,100% {opacity:1;transform:translateY(0) rotate(0deg) scale(1)}
}
@media(prefers-reduced-motion:reduce) {.hero-motion-controls{display:none}.hero-scene .hero-phone{opacity:0}.hero-scene .hero-world{opacity:1;transform:none}}
.install-hint {max-width:330px;margin:14px 0 0;font-size:13px;font-weight:600;line-height:1.6;color:var(--ink-2)}
.install-hint b {color:var(--ink)}
.install-hint a {font-weight:700}
/* The reel sits in a handset drawn flat and friendly: a
   white, pale-rimmed face on a solid brand-blue body, tipped so the body shows
   along the right and bottom edges. The body is four plates 14px apart on the
   z-axis under a mild perspective, so it is a real extrusion: the side facing
   the viewer is the side that shows, as thick as the angle makes it, and its
   edges stay flush with the face. Each plate carries a short in-plane sweep
   down and to the right that bridges the gap to the plate behind it. The slow
   rock only runs when the page marks the handset data-sway. */
.reel-preview {display:block;width:258px;max-width:100%;margin:auto;text-decoration:none;perspective:1200px;perspective-origin:50% 40%;transition:transform .16s var(--ease)}
.reel-preview:hover {transform:translateY(-4px)}
.reel-preview:active {transform:translate(4px,4px)}
.reel-device {--pitch:14px;position:relative;display:block;aspect-ratio:9/16;transform-style:preserve-3d;transform:rotateX(16deg) rotateY(-16deg) rotateZ(5deg)}
.reel-device[data-sway] {animation:reel-sway 7s ease-in-out infinite}
.reel-preview:active .reel-device {--pitch:7px}
.reel-body {position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.reel-body i {position:absolute;inset:0;border-radius:48px;background:var(--brand);box-shadow:2px 2px 0 var(--brand),4px 4px 0 var(--brand),6px 6px 0 var(--brand);transform:translateZ(calc(var(--i) * var(--pitch) * -1))}
.reel-face {position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;border:11px solid var(--brand-line);border-radius:48px;background:#30291f}
/* The handset demo: the story fills the screen, its question slides up over
   it, a finger taps the answer, then the whole thing swipes on to the next. */
.reel-demo {position:absolute;inset:0;overflow:hidden;border-radius:37px;background:#30291f}
/* Both stories ride one strip, twice the screen tall, so the swipe moves them
   as a single piece and no seam can open between them. */
.reel-demo-strip {position:absolute;top:0;left:0;right:0;height:200%;transition:transform .6s var(--ease);will-change:transform}
.reel-demo-video {display:block;width:100%;height:50%;object-fit:cover;background:#30291f}
.reel-demo-card {position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:18px 15px;background:var(--paper);overflow:hidden;transform:translateY(100%);transition:transform .6s var(--ease);will-change:transform}
.reel-demo-kicker {font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.reel-demo-question {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;font-size:13px;font-weight:700;line-height:1.35;color:var(--ink-1);text-wrap:pretty}
.reel-demo-answers {display:grid;gap:5px;margin-top:4px}
.reel-demo-answer {display:block;padding:7px 9px;border:2px solid var(--line);border-radius:10px;font-size:11px;font-weight:600;line-height:1.25;color:var(--ink-1);box-shadow:0 2px 0 var(--lip);transition:background .15s,border-color .15s,color .15s}
.reel-demo-answer[data-state="correct"] {border-color:var(--green-line);background:var(--green-soft);color:var(--green-lip);box-shadow:0 2px 0 var(--green-line)}
.reel-demo-toast {margin-top:4px;font-size:13px;font-weight:800;color:var(--green-lip)}
.reel-demo-finger {position:absolute;z-index:2;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;background:rgba(54,191,250,.5);box-shadow:0 0 0 3px #fff,0 4px 10px rgba(0,0,0,.25);transition:transform .12s var(--ease)}
.reel-demo-finger.is-tap {transform:scale(.7)}
/* The step the handset is on glows. */
.how-num {transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.how-steps li.is-live .how-num {transform:scale(1.12);box-shadow:0 2px 0 var(--brand-lip),0 0 0 4px var(--brand-soft)}
@keyframes reel-sway {
 0%,100% {transform:rotateX(14deg) rotateY(-13deg) rotateZ(6deg) translateY(0)}
 50% {transform:rotateX(18deg) rotateY(-20deg) rotateZ(3deg) translateY(-8px)}
}
@media(prefers-reduced-motion:reduce) {.reel-device {animation:none}}
.reel-caption {display:block;margin-top:34px;font-size:13px;font-weight:700;color:var(--ink-3);text-align:center}

/* The loop is spelled out in three numbered steps beside the reel. */
.how-steps {list-style:none;margin:20px 0 0;padding:0;display:grid;gap:14px;text-align:left}
.how-steps li {display:flex;align-items:flex-start;gap:14px;margin:0}
.how-num {display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--brand);color:var(--brand-on);font-size:16px;font-weight:800;box-shadow:0 2px 0 var(--brand-lip)}
.how-steps h3 {margin:4px 0 0;font-size:17px;font-weight:800;line-height:1.25;color:var(--ink)}
.how-steps p {margin:2px 0 0;font-size:15px;font-weight:500;line-height:1.4;color:var(--ink-2)}


/* Feature rows: 473px copy column, illustration fills the rest, 101px between,
   alternating sides, 48px lowercase brand headings over 17px grey copy. */
.land-section {width:min(988px,calc(100% - 48px));margin:auto;padding:72px 0;display:flex;align-items:center;justify-content:space-between;gap:101px;scroll-margin-top:80px}
.land-section.reverse {flex-direction:row-reverse}
.land-copy {flex:0 0 473px;min-width:0}
.land-art {flex:1 1 auto;min-width:0;display:flex;justify-content:center;align-items:center}
.land-heading {font-size:48px;font-weight:800;line-height:1.2;color:var(--brand-ink);letter-spacing:-.2px;text-wrap:balance}
.section-copy {margin:24px 0 0;font-size:17px;font-weight:500;line-height:24px;color:var(--ink-2);text-wrap:pretty}
.section-copy a {font-weight:700;text-decoration:none}
.section-copy a:hover {text-decoration:underline;text-underline-offset:4px}
.nowrap {white-space:nowrap}
.section-note {margin:16px 0 0;font-size:13px;font-weight:600;line-height:1.6;color:var(--ink-3)}
.inline-cta {display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:12px;font-size:17px;font-weight:700;text-decoration:none}
.inline-cta:hover {text-decoration:underline;text-underline-offset:4px}
.inline-cta span {font-size:20px;line-height:1}
/* A row can close on a proper button instead of an inline link. */
.section-cta {min-width:240px;margin-top:28px}
/* Every few seconds the section button dips into its own lip and springs back:
   the press it is inviting, performed once, gently. A real hover or press
   takes over from it, and it holds still for anyone who asked for less motion. */
@keyframes cta-invite {
  0%, 86%, 100% {transform:translateY(0);box-shadow:0 4px 0 var(--brand-lip)}
  91% {transform:translateY(3px);box-shadow:0 1px 0 var(--brand-lip)}
  96% {transform:translateY(0);box-shadow:0 4px 0 var(--brand-lip)}
}
.btn-press.primary.section-cta {animation:cta-invite 3.6s ease-in-out infinite}
.btn-press.primary.section-cta:hover, .btn-press.primary.section-cta:active, .btn-press.primary.section-cta:focus-visible {animation:none}
@media (prefers-reduced-motion: reduce) {.btn-press.primary.section-cta {animation:none}}

/* Step list drawn as an app screen: a corgi-orange phone outline with a
   progress bar and three tile rows, in the spirit of the splash page's
   phone-with-tiles illustration. */
.demo-bar i::after {content:'';position:absolute;left:8px;right:8px;top:4px;height:4px;border-radius:2px;background:rgba(255,255,255,.3)}
/* Mascot art standing in as a feature row's illustration. */
.section-art {width:min(100%,360px)}

/* The demo quiz is the illustration for its row. */
.quiz-art {min-width:0}
.demo-quiz {position:relative;width:100%;max-width:414px;padding:24px;border:2px solid var(--line);border-radius:16px;background:var(--paper)}
/* The turn is clipped to the question area so it cannot slide over the chips;
   the celebration is not, so colour can spill past the card's edge. */
.demo-quiz [data-demo-play] {overflow:hidden}
/* Turning to the next question: the old one lifts away, the new one rises in. */
.demo-turn {transition:opacity .15s var(--ease),transform .15s var(--ease)}
.demo-turn.is-out {opacity:0;transform:translateY(-14px)}
.demo-turn.is-in {opacity:0;transform:translateY(14px);transition:none}
@media (prefers-reduced-motion: reduce) {.demo-turn {transition:none}}
.demo-context {margin:0 0 8px;color:var(--ink-3);font-size:13px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.demo-hud {display:flex;align-items:center;gap:8px;margin:0 0 12px}
.demo-chip {display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 10px;border:2px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink-2);font-size:13px;font-weight:700;letter-spacing:.4px;font-variant-numeric:tabular-nums;text-transform:uppercase;transition:color .15s,border-color .15s,background-color .15s,transform .15s}
.demo-chip svg {width:14px;height:14px;fill:currentColor}
.demo-chip.xp {color:var(--brand-ink)}
.demo-chip.xp.bump {transform:translateY(-2px)}
.demo-chip.streak {color:var(--ink-3)}
.demo-chip.streak.lit {color:var(--orange);border-color:#ffd9a8;background:#fff4e5}
.demo-bar {height:16px;margin:0 0 20px;border-radius:8px;background:var(--line);overflow:hidden}
.demo-bar i {position:relative;display:block;width:0;height:100%;border-radius:8px;background:var(--brand);transition:width .3s var(--ease)}
.demo-quiz h3 {margin:0 0 16px;font-size:22px;font-weight:700;line-height:1.3;color:var(--ink-1);text-wrap:pretty}
.demo-answers {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.demo-answer {min-height:52px;padding:10px 12px;border:2px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink-1);font:inherit;font-size:15px;font-weight:600;line-height:1.3;text-align:left;cursor:pointer;box-shadow:0 2px 0 var(--line);transition:transform .1s var(--ease),box-shadow .1s var(--ease),background-color .15s}
.demo-answer:hover:not(:disabled) {background:var(--panel)}
.demo-answer:active:not(:disabled) {transform:translateY(2px);box-shadow:none}
.demo-answer[data-state="correct"] {border-color:var(--green-line);background:var(--green-soft);color:var(--green-lip);box-shadow:0 2px 0 var(--green-line)}
.demo-answer[data-state="wrong"] {border-color:var(--red-line);background:var(--red-soft);color:var(--red-lip);box-shadow:0 2px 0 var(--red-line)}
.demo-answer:disabled {cursor:default}
.demo-answer:disabled:not([data-state]) {opacity:.5;box-shadow:none}
.demo-result {min-height:1.5em;margin:14px 0 0;font-size:15px;font-weight:700;line-height:1.5;color:var(--ink-2)}
.demo-result.good {color:var(--green-lip)}
.demo-result.bad {color:var(--red-lip)}
.demo-scorecard {text-align:center}
.demo-scorecard:focus-visible {outline:none}
/* The finish: the corgi with its trophy, a cheer, and the three numbers worth
   keeping, in the same lipped tiles the rest of the product uses. */
.demo-trophy {width:132px;margin:0 auto 4px}
.demo-cheer {margin:0 0 18px;color:var(--brand-ink);font-size:30px;font-weight:900;line-height:1.15;letter-spacing:-.4px;text-wrap:balance}
.demo-cards {display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0}
.demo-card {padding:10px 6px 12px;border:2px solid var(--line);border-radius:14px;box-shadow:0 3px 0 var(--lip)}
.demo-card dt {font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:var(--ink-3)}
.demo-card dd {display:flex;align-items:baseline;justify-content:center;gap:3px;margin:4px 0 0}
.demo-card b {font-size:26px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.demo-card span {font-size:12px;font-weight:700;color:var(--ink-3)}
.demo-card.gold {border-color:#fde68a;box-shadow:0 3px 0 #fde68a}
.demo-card.gold b {color:var(--orange)}
.demo-card.blue {border-color:var(--brand-line);box-shadow:0 3px 0 var(--brand-line)}
.demo-card.blue b {color:var(--brand-lip)}
.demo-card.teal {border-color:var(--green-line);box-shadow:0 3px 0 var(--green-line)}
.demo-card.teal b {color:var(--green-lip)}
.demo-passmark {margin:16px 0 0;color:var(--ink-3);font-size:13px;font-weight:700}
.demo-scorecard .btn-press {width:100%;margin-top:20px}
.hero-alt {display:inline-flex;align-items:center;min-height:44px;margin-top:6px;font-size:15px;font-weight:700;text-decoration:none}
.hero-alt:hover {text-decoration:underline;text-underline-offset:4px}

/* Mock row: the trophy corgi with a stat ticket tucked in front. */
.mock-art {position:relative;width:414px;max-width:100%;min-height:420px;display:flex;justify-content:flex-end;align-items:flex-start}
.mock-art>img {width:300px;max-width:80%}
.mock-ticket {position:absolute;left:0;bottom:0;width:260px;max-width:85%;padding:18px 16px;border:2px solid var(--line);border-radius:16px;background:var(--paper);text-align:center}
.mock-ticket>strong {display:block;margin:0 0 14px;font-size:17px;font-weight:700;color:var(--ink-1)}
.mock-stats {display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mock-stats span {font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--ink-2);line-height:1.6}
.mock-stats b {display:block;font-size:30px;font-weight:800;color:var(--brand-ink);line-height:1.2}

/* Pale-blue band, like "learn anytime, anywhere": centred navy heading,
   tiles, one primary button. */

/* Maker note: avatar tile and heading left, copy right. */
.land-maker {width:min(988px,calc(100% - 48px));margin:auto;padding:96px 0;display:flex;align-items:flex-start;gap:101px}
.maker-intro {flex:0 0 300px;display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.maker-avatar {display:grid;place-items:center;width:96px;height:96px;border-radius:24px;background:var(--corgi);color:var(--brand-on);font-size:44px;font-weight:800;box-shadow:inset 0 -4px 0 rgba(0,0,0,.12)}
.maker-intro h2 {font-size:32px;font-weight:800;line-height:1.2;color:var(--brand-ink)}
.maker-copy {flex:1 1 auto;min-width:0;max-width:560px}
.maker-copy p {margin:0 0 16px;font-size:17px;font-weight:500;line-height:24px;color:var(--ink-2)}
.maker-copy details {margin:0 0 20px;border-top:2px solid var(--line);border-bottom:2px solid var(--line)}
.maker-copy summary {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;color:var(--ink-1);font-size:15px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;list-style:none;cursor:pointer}
.maker-copy summary::-webkit-details-marker {display:none}
.maker-copy summary>span {color:var(--brand-ink);font-size:24px;line-height:1;transition:transform .2s}
.maker-copy details[open] summary>span {transform:rotate(45deg)}
.maker-detail {padding:4px 0 8px}
.maker-detail p {font-size:15px;line-height:22px}
.maker-copy a {font-weight:700}
.maker-copy .maker-contact {margin:0;font-size:15px}

/* Closer and footer: the centred brand heading and button, the waving corgi
   in a white valley, and a brand-blue wave rolling into the footer. */
.land-closer {padding:80px 0 0;text-align:center;overflow:hidden}
.closer-inner {width:min(988px,calc(100% - 48px));margin:auto;display:flex;flex-direction:column;align-items:center}
.closer-inner h2 {margin:0 0 32px;font-size:48px;font-weight:800;line-height:1.2;color:var(--brand-ink);text-wrap:balance}
.closer-inner .btn-press {width:min(100%,330px)}
.closer-note {max-width:520px;margin:18px auto 0;font-size:13px;font-weight:600;line-height:1.7;color:var(--ink-3);text-align:center}
.closer-note a {font-weight:700}
.closer-scene {position:relative;height:320px;margin-top:8px}
.closer-corgi {position:absolute;left:50%;bottom:6px;z-index:1;width:280px;transform:translateX(-50%)}
.closer-wave {position:absolute;left:0;right:0;bottom:-1px;display:block;width:100%;height:170px;color:var(--brand)}
/* Oliver's call, same as the primary CTA: the footer is white on the brand
   blue. That is 2.10:1 against AA's 4.5:1 — a deliberate exception, kept
   together here so the rest of the page stays compliant. It still beats the
   pale blue it replaced, which was 1.73:1 and the least readable text on the
   site. --on-brand is #fff in both themes, so the dark theme follows. */
.land-footer {background:var(--brand);color:var(--on-brand)}
.land-footer-inner {width:min(988px,calc(100% - 48px));margin:auto;padding:80px 0 56px;display:grid;grid-template-columns:repeat(4,178px);justify-content:space-between;gap:24px}
.footer-col h3 {margin:0 0 14px;font-size:19px;font-weight:700;color:var(--on-brand)}
.footer-col ul {list-style:none;margin:0;padding:0;display:grid;gap:10px}
.footer-col a {color:var(--on-brand);font-size:15px;font-weight:700;line-height:22px;text-decoration:none}
.footer-col a:hover {color:var(--on-brand);text-decoration:underline;text-underline-offset:4px}
.land-footer hr {margin:0;border:0;border-top:2px solid rgba(255,255,255,.4)}
.footer-note {width:min(988px,calc(100% - 48px));margin:auto;padding:40px 0 64px}
.footer-note p {margin:0;font-size:15px;font-weight:700;line-height:22px;color:var(--on-brand)}
.footer-note>span {display:block;margin-top:12px;font-size:13px;font-weight:700;color:var(--on-brand)}

/* The landing page carries its own tokens and never loads base.css, and it used
   to declare color-scheme: light — so it was the one surface that stayed white
   when everything else went dark. Same ground and ink as base.css and the
   server-rendered pages, so the product agrees with itself. The brand blue, the
   corgi orange and the state colours are unchanged: they read on both grounds. */
@media (prefers-color-scheme: dark) {
 .landing {
  --paper:#0d1520;--panel:#131e2b;--ink:#f0f5fa;--ink-1:#dbe4ee;--ink-2:#a3b0bf;--ink-3:#98a6b6;
  --line:#233242;--lip:#060b11;
  --brand-soft:#0b3448;--brand-line:#065986;--brand-ink:#7cd4fd;--navy:#b9e6fe;
  --green-soft:#17300a;--green-line:#2f5a12;
  --red-soft:#3a1a1c;--red-line:#6d2f31;
 }
}
@media(max-width:1050px) {
 .land-hero {gap:32px;padding-top:44px}.hero-copy h1 {font-size:clamp(38px,5.2vw,54px)}
 .hero-intro {font-size:18px}.hero-actions {gap:14px}.hero-actions .btn-press {padding-inline:20px}.hero-actions .secondary {padding-inline:0}.reel-preview {width:240px}
 .land-section {gap:48px}.land-copy {flex-basis:400px}.land-heading {font-size:40px}
 .land-maker {gap:48px}.maker-intro {flex-basis:240px}
 .land-footer-inner {grid-template-columns:repeat(2,1fr);gap:32px}
}
@media(max-width:760px) {
 .landing {padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .mobile-start {position:fixed;z-index:30;inset:auto 0 0;display:flex;justify-content:center;padding:12px 20px calc(16px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line)}
 .mobile-start .btn-press {width:min(100%,420px);min-height:48px;margin:0}
 html {scroll-padding-top:70px}
 .land-nav-inner {height:60px;width:calc(100% - 32px);justify-content:center}
 .land-nav-links {display:none}.brand-lockup {height:48px}.landing .wordmark {font-size:29px}
 .land-hero {width:calc(100% - 40px);padding:10px 0 22px;display:flex;flex-direction:column;justify-content:center;gap:14px}
 .hero-art {width:clamp(210px,32svh,300px);max-width:100%}.hero-copy {width:100%;align-items:center;text-align:center;padding:0}
 .hero-corgi {width:100%}
 .reel-preview {width:220px}
 .hero-copy h1 {font-size:39px;letter-spacing:-.7px}.hero-intro {max-width:31ch;font-size:17px;line-height:1.5;margin-top:16px}
 .hero-actions {width:min(100%,350px);flex-direction:column;gap:6px;margin-top:22px}.hero-actions .primary {width:100%}.hero-actions .secondary {min-height:40px;padding-block:8px}
 .hero-trust {margin-top:8px;font-size:13px}.hero-next {margin-bottom:0}
 .land-section,.land-section.reverse {width:calc(100% - 48px);min-height:0;padding:56px 0;flex-direction:column;gap:32px;text-align:center}
 .land-copy {flex:0 0 auto;width:100%}.land-art {width:100%}.land-heading {font-size:32px}.section-copy {margin-top:16px}
 .how-steps {width:min(100%,360px);margin-inline:auto}
 .inline-cta {justify-content:center}.demo-quiz {max-width:none}.section-art {width:min(100%,280px)}
 .mock-art {width:100%;min-height:380px}.mock-art>img {width:260px}.mock-ticket {width:230px}
 .land-maker {width:calc(100% - 48px);padding:64px 0;flex-direction:column;gap:24px}.maker-intro {flex:0 0 auto;gap:16px}
 .maker-avatar {width:72px;height:72px;font-size:34px;border-radius:18px}.maker-intro h2 {font-size:28px}
 .land-closer {padding-top:64px}.closer-inner h2 {font-size:32px;margin-bottom:24px}.closer-inner .btn-press {width:100%}
 .closer-scene {height:230px}.closer-corgi {width:190px}.closer-wave {height:120px}
 .land-footer-inner {width:calc(100% - 48px);padding:56px 0 40px;grid-template-columns:1fr;gap:32px}
 .footer-note {width:calc(100% - 48px);padding:32px 0 48px}
}
/* 761-899px: two columns still fitted a 400px copy block and almost nothing
   else, so the interactive demo — the page's only try-before-you-buy moment —
   was squeezed to 257px with 99px answer buttons wrapping to mismatched heights,
   beside a copy column with room to spare. Stack them; the vertical room is
   free, and the demo gets its full width back. Everything else about the tablet
   layout is left alone. */
@media (min-width:761px) and (max-width:899px) {
 .land-section,.land-section.reverse {flex-direction:column;gap:40px;text-align:center}
 .land-copy {flex:0 0 auto;width:min(100%,600px);margin-inline:auto}
 .land-art {width:100%}
 .demo-quiz {max-width:480px;margin-inline:auto}
 .inline-cta {justify-content:center}
 .how-steps {width:min(100%,420px);margin-inline:auto;text-align:left}
}
@media(max-width:370px) {
 .landing .wordmark {font-size:26px}.hero-copy h1 {font-size:34px}.reel-preview {width:200px}
 .land-heading,.closer-inner h2 {font-size:28px}.demo-quiz {padding:18px}.demo-answers {grid-template-columns:1fr}.mock-ticket {width:210px}
}
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto}.landing * {animation:none!important;transition:none!important} }

/* Animate the approved corgi painting without changing the source. */
.corgi-mascot {display:block;height:auto;overflow:visible}
.corgi-breathe {transform-origin:50% 94%;animation:corgi-breathe 4.8s ease-in-out infinite}
.corgi-paw {transform-origin:333px 758px;animation:corgi-wave 6.5s ease-in-out infinite}
.corgi-blink {opacity:0;animation:corgi-blink 6.5s linear infinite}
@keyframes corgi-breathe {
  0%,100%{transform:translateY(0) rotate(-1deg)}
  50%{transform:translateY(-13px) rotate(1deg)}
}
@keyframes corgi-wave {
  0%,8%,32%,100%{transform:rotate(0)}
  14%,25%{transform:rotate(-16deg)}
  19%,29%{transform:rotate(-3deg)}
}
@keyframes corgi-blink {
  0%,43%,47%,78%,82%,100%{opacity:0}
  44%,46%,79%,81%{opacity:1}
}
@media(prefers-reduced-motion:reduce) {
  .corgi-breathe,.corgi-paw,.corgi-blink {animation:none!important;transform:none!important}
  .corgi-blink {opacity:0}
}

/* The reward: points fly up off the answer, colour bursts out of it, and the
   right answer and the chips give a little kick. */
.demo-float {position:absolute;z-index:6;pointer-events:none;font-size:16px;font-weight:900;color:var(--green-lip);text-shadow:0 1px 0 #fff;animation:demo-rise .95s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes demo-rise {
  0% {opacity:0;transform:translate(-50%,-50%) scale(.7)}
  18% {opacity:1;transform:translate(-50%,-60%) scale(1.18)}
  100% {opacity:0;transform:translate(-50%,-190%) scale(1)}
}
.demo-spark {position:absolute;z-index:5;width:9px;height:9px;border-radius:2px;pointer-events:none;animation:demo-burst .8s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes demo-burst {
  0% {opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}
  100% {opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy))) scale(.35) rotate(var(--spin))}
}
/* The streak flame: it leaps up off the answer, big, and gets bigger the
   longer the run goes. */
.demo-flame-pop {position:absolute;z-index:7;line-height:1;pointer-events:none;filter:drop-shadow(0 6px 12px rgba(255,150,0,.45));animation:demo-flame-rise 1.2s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes demo-flame-rise {
  0% {opacity:0;transform:translate(-50%,-40%) scale(.3) rotate(-10deg)}
  18% {opacity:1;transform:translate(-50%,-80%) scale(1.35) rotate(5deg)}
  52% {opacity:1;transform:translate(-50%,-165%) scale(1.05) rotate(-4deg)}
  100% {opacity:0;transform:translate(-50%,-290%) scale(.85) rotate(3deg)}
}
.demo-answer[data-state="correct"] {animation:demo-pop .45s var(--ease)}
@keyframes demo-pop {0% {transform:scale(1)} 32% {transform:scale(1.07)} 100% {transform:scale(1)}}
.demo-chip.xp.bump {transform:translateY(-3px) scale(1.1)}
.demo-chip.streak.bump {animation:demo-flame .42s var(--ease)}
@keyframes demo-flame {0% {transform:scale(1)} 40% {transform:scale(1.22) rotate(-6deg)} 100% {transform:scale(1)}}
@media (prefers-reduced-motion: reduce) {
  .demo-float, .demo-spark, .demo-flame-pop {display:none}
  .demo-answer[data-state="correct"], .demo-chip.streak.bump {animation:none}
}
