/* 考考鵝 landing page. Colours, radii, keys and motion follow ios/ExamBank/DesignSystem
   (Tokens.swift `DS`, HomeArt.swift `HomeArt`); the art in assets/ is copied from ios/ArtSource. */
:root {
  --ink: #1A2453; --ink-soft: #2A3560; --muted: #566089; --key-ink: #432813; --plain-ink: #3E4C72; --accent: #396CF4; --accent-ink: #2550C8;
  --sky: #62AEFF; --mist: #D2E3FE; --page: #EAF1FF; --surface: #F6F8FE; --inner: #FBFCFF; --stroke: #E8EBF2; --track: #E2E4EF;
  --correct: #34A65A; --wrong: #E9473B; --gold: #FDBB51; --shadow: 44, 74, 143;
  --gold-face: linear-gradient(#FFE36F, #FED865 30%, #FEC958 70%, #FDBB51);
  --gold-bar: linear-gradient(#FFDB60, #FDC34B, #F5A932);
  --r-chip: 12px; --r-row: 18px; --r-card: 23px; --r-panel: 28px;
  --spring: cubic-bezier(.3, 1.5, .5, 1); --ease: cubic-bezier(.2, .7, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; } img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; } .skip:focus { left: 12px; }

/* ---------- Surfaces and keys ---------- */
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: 0 6px 16px rgba(var(--shadow), .12), inset 0 1px 0 #fff; }
.cream { background: linear-gradient(160deg, #FFFEFB, #FAF5E9); border-color: #E5DFD9; }
.key { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 30px 5px; border-radius: 999px; font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.2; white-space: nowrap; color: var(--key-ink); isolation: isolate; transition: transform .06s ease-out; }
.key::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2; background: linear-gradient(#F8AE42, #EC9233); box-shadow: 0 3px 0 #8E4A20, 0 8px 14px rgba(138, 74, 18, .28); }
.key::after { content: ""; position: absolute; inset: 0 0 5px; border-radius: inherit; z-index: -1; background: var(--gold-face); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 0 0 1px rgba(227, 154, 46, .5); overflow: hidden; transition: transform .06s ease-out; }
.key > * { transition: transform .06s ease-out; }
.key:active::after, .key:active > * { transform: translateY(4px); } .key:active::before { box-shadow: 0 3px 0 #8E4A20, 0 2px 4px rgba(138, 74, 18, .2); }
.key .sheen { position: absolute; inset: 0 0 5px; border-radius: inherit; overflow: hidden; pointer-events: none; }
.key .sheen::after { content: ""; position: absolute; top: 0; bottom: 0; width: 42%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: sheen 7s ease-in-out 1.5s 3; }
.key.plain { color: var(--plain-ink); } .key.plain::before { background: #C9D3EA; box-shadow: 0 3px 0 #A9B6D6, 0 8px 14px rgba(var(--shadow), .16); }
.key.plain::after { background: linear-gradient(#fff, #EEF2FC); box-shadow: inset 0 0 0 1px #fff; }
.key.off { color: rgba(62, 76, 114, .45); cursor: default; } .key.off::before { background: #C4CCDC; box-shadow: 0 3px 0 #A9B3C8, 0 3px 4px rgba(90, 107, 146, .14); }
.key.off::after { background: linear-gradient(#EEF1F7, #DCE2EE); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); } .key.off:active::after, .key.off:active > * { transform: none; }
.key.sm { min-height: 46px; font-size: 16px; padding: 0 22px 5px; } .key.block { display: flex; width: 100%; }
.play { width: 0; height: 0; border: 9px solid transparent; border-left: 15px solid #fff; border-right: 0; filter: drop-shadow(0 0 1.5px #F0921A) drop-shadow(0 1px 1px rgba(200, 116, 15, .5)); }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--accent-ink); background: #fff; box-shadow: 0 3px 10px rgba(var(--shadow), .12); white-space: nowrap; }
.pill img { width: 18px; height: 18px; }
.bar { height: 10px; border-radius: 999px; background: var(--track); padding: 1px; overflow: hidden; }
.bar > i { display: block; height: 100%; min-width: 8px; border-radius: 999px; background: var(--gold-bar); transition: width 1.1s var(--ease) .2s; }
.bar.blue > i { background: linear-gradient(#5BA3F5, #388BEC); } .bar.red > i { background: linear-gradient(#FF8E7C, #E9473B); } .bar.green > i { background: linear-gradient(#6FD08A, #34A65A); }
@property --v { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring { --v: 0; --s: 70px; --w: 7px; position: relative; display: grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex: none; background: conic-gradient(#388BEC calc(var(--v) * 1%), #B6D7FC 0); transition: --v 1.3s var(--ease) .25s; }
.ring::before { content: ""; position: absolute; inset: var(--w); border-radius: 50%; background: #FDFBFA; } .ring > * { position: relative; }
.js .reveal:not(.in) .ring, .pre .hero .ring { --v: 0 !important; } .js .reveal:not(.in) .bar > i, .pre .hero .bar > i { width: 0 !important; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none; }
.nav .wrap { pointer-events: auto; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 12px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(var(--shadow), .14); transition: box-shadow .2s; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand span { display: grid; place-items: end center; width: 40px; height: 40px; border-radius: 13px; overflow: hidden; background: linear-gradient(#8CC6FF, #62AEFF); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 6px rgba(var(--shadow), .2); }
.brand img { width: 44px; max-width: none; margin-bottom: -9px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--accent-ink); background: #E9F0FF; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 150px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.3vw, 64px); line-height: 1.16; font-weight: 900; margin: 22px 0 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .34em; border-radius: 99px; background: linear-gradient(90deg, #FFE36F, #FDBB51); z-index: -1; transform-origin: left; animation: underline .7s var(--ease) .7s both; }
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.clouds i { position: absolute; background: url(assets/home-cloud.svg) center / contain no-repeat; width: 220px; height: 150px; opacity: .9; animation: drift 90s linear infinite; }
.clouds i:nth-child(1) { top: 90px; left: 0; animation-delay: -12s; } .clouds i:nth-child(2) { top: 300px; left: 0; animation-duration: 120s; animation-delay: -50s; width: 150px; opacity: .6; }
.clouds i:nth-child(3) { top: 60px; left: 0; animation-duration: 104s; animation-delay: -80s; width: 180px; opacity: .75; } .clouds i:nth-child(4) { bottom: 150px; left: 0; animation-duration: 130s; animation-delay: -30s; width: 260px; opacity: .55; }
.bank-l, .bank-r { position: absolute; bottom: -2px; width: max(52%, 520px); z-index: 1; pointer-events: none; } .bank-l { left: 0; } .bank-r { right: 0; }
.stage { position: relative; display: grid; place-items: center; perspective: 1200px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; }

/* ---------- Phone ---------- */
.phone { position: relative; width: 300px; height: 630px; border-radius: 48px; padding: 9px; background: #1B2140; flex: none; box-shadow: inset 0 0 0 1.5px #4B5486, 0 3px 0 #0E1228, 0 40px 50px -24px rgba(var(--shadow), .55); }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; width: 80px; height: 23px; margin-left: -40px; border-radius: 14px; background: #0B0E1E; z-index: 9; }
.screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--mist); font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; }
.time { position: absolute; top: 14px; left: 28px; font-size: 13px; font-weight: 800; z-index: 8; }
/* home: a 393-wide design drawn at 282 (k = .7176) */
.home { background: var(--mist) url(assets/backdrop.webp) top / 100% auto no-repeat; }
.home .top { position: absolute; top: 46px; left: 12px; right: 12px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.hex { display: grid; place-items: center; width: 30px; height: 33px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, #56649E, #3A4778); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.lvl { flex: 1; max-width: 74px; } .lvl small { display: block; font-size: 10px; font-weight: 800; color: var(--ink); line-height: 1.3; } .lvl .bar { height: 7px; background: rgba(255, 255, 255, .7); }
.rb { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(#fff, #EAF0FD); box-shadow: 0 2px 0 #B9C7E8, 0 4px 8px rgba(var(--shadow), .2); margin-left: auto; } .rb + .rb { margin-left: 0; }
.rb img { width: 19px; height: 19px; } .rb b { position: absolute; right: -5px; bottom: -4px; min-width: 16px; padding: 0 3px; border-radius: 9px; background: #fff; font-size: 10px; line-height: 16px; text-align: center; box-shadow: 0 1px 3px rgba(var(--shadow), .3); }
.home .bank-name { position: absolute; left: 14px; top: 86px; width: 110px; font-size: 19px; line-height: 1.22; font-weight: 900; }
.home .rays { position: absolute; left: 92px; top: 80px; width: 17px; animation: twinkle 1.6s ease-in-out infinite; }
.home .goal { position: absolute; left: 12px; top: 149px; width: 86px; padding: 9px 9px 10px; border-radius: 12px; transform: rotate(-3deg); z-index: 2; }
.home .goal span { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 900; margin-bottom: 7px; white-space: nowrap; } .home .goal img { width: 16px; } .home .goal .bar { height: 7px; }
.home .mascot { position: absolute; left: 88px; top: 116px; width: 124px; z-index: 2; transform-origin: 50% 90%; animation: bob 3.6s ease-in-out infinite; }
.home .mascot.poke { animation: poke .7s var(--spring); }
.home .sign { position: absolute; right: 2px; top: 188px; width: 72px; transform: rotate(-6deg); transform-origin: bottom; }
.home .sign::before { content: ""; position: absolute; left: 44%; top: 30%; width: 9px; height: 62px; background: linear-gradient(90deg, #B07A47, #8A5630); border-radius: 2px; }
.home .sign .board { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px; background: url(assets/home-wood-sign.svg) center / 100% 100% no-repeat; color: #FFF9EB; font-size: 9.5px; font-weight: 900; padding-right: 8px; } .home .sign img { width: 17px; }
.home .stats { position: absolute; left: 12px; right: 12px; top: 292px; display: grid; grid-template-columns: repeat(3, 1fr); height: 86px; align-items: center; text-align: center; border-radius: 14px; background: #FDFBFA; }
.home .stats > div + div { border-left: 1px solid #D8DCE3; } .home .stats img { height: 28px; margin: 0 auto 1px; } .home .stats small { display: block; font-size: 10px; font-weight: 700; line-height: 1.3; } .home .stats b { font-size: 16px; line-height: 1.2; }
.home .stats .ring { --s: 52px; --w: 5px; margin: auto; font-size: 14px; font-weight: 800; }
.home .quest { position: absolute; left: 12px; right: 12px; top: 394px; padding: 10px 12px; border-radius: 14px; display: grid; grid-template-columns: 30px 1fr auto; gap: 3px 9px; align-items: center; font-size: 11.5px; font-weight: 800; }
.home .quest img:nth-of-type(2) { margin-top: 6px; } .home .quest .q-h { grid-column: 1 / -1; margin: 0 0 3px; font-size: 13px; font-weight: 900; } .home .quest img { width: 30px; height: 30px; grid-row: span 2; } .home .quest .bar { grid-column: 2 / -1; height: 6px; } .home .quest em { font-style: normal; color: var(--muted); font-size: 10.5px; }
.plank { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 54px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border-radius: 18px; border: 1.5px solid #975334; background: linear-gradient(#EDAE6D, #D68E52); box-shadow: inset 0 3px 0 rgba(255, 217, 163, .7), 0 5px 0 #8E4C28, 0 10px 12px rgba(36, 87, 63, .3); z-index: 5; }
.plank span { position: relative; display: grid; justify-items: center; font-size: 10.5px; font-weight: 900; color: #FFF6E2; text-shadow: 0 1px 0 rgba(142, 76, 40, .75); }
.plank img { width: 22px; height: 22px; filter: brightness(0) invert(96%) sepia(20%) drop-shadow(0 1px 0 rgba(142, 76, 40, .7)); }
.plank .on { margin-top: -22px; gap: 5px; } .plank .on i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-face); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #EC9233, 0 6px 0 #8E4A20, 0 0 18px 6px rgba(255, 228, 130, .75); }
.plank .on img { filter: brightness(0) invert(17%) sepia(40%) saturate(1200%) hue-rotate(350deg); }
.grass { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: url(assets/study-grassland.svg) bottom / 100% auto no-repeat; }
/* question */
.quiz { background: linear-gradient(#7DBBFF, #B9D7FF 30%, var(--mist) 46%); }
.q-mascot { position: relative; height: 92px; margin-top: 50px; flex: none; }
.q-mascot::before { content: ""; position: absolute; left: 50%; bottom: -92px; width: 250px; height: 150px; margin-left: -125px; border-radius: 50%; background: radial-gradient(circle at 35% 20%, #D8EE7C, #8ACB73 45%, #4FB39A); box-shadow: inset 0 6px 0 rgba(236, 248, 160, .8); }
.q-mascot img { position: absolute; left: 50%; bottom: 8px; width: 104px; margin-left: -52px; transition: transform .35s var(--spring); } .q-mascot img.hop { transform: translateY(-12px) scale(1.06); }
.q-body { position: relative; flex: 1; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.q-card { padding: 12px 14px 14px; border-radius: 20px; background: #FDF9F5; }
.q-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #546583; font-weight: 700; }
.q-card header span:first-child { padding: 3px 10px; border-radius: 99px; background: #F3EDE7; color: #3E4766; font-size: 12px; font-weight: 800; } .q-card header b { color: #1E2650; font-size: 16px; }
.stem { font-size: 15.5px; font-weight: 800; line-height: 1.55; color: #1E2650; }
.opts { display: grid; gap: 7px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 7px 12px; text-align: left; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #2A2F55; border-radius: var(--r-row); background: #FAFBFF; border: 1.5px solid #fff; box-shadow: 0 3px 8px rgba(var(--shadow), .1); transition: transform .12s var(--spring), background .15s, border-color .15s; }
.opt:not(:disabled):active { transform: translateY(3px) scale(.97); } .opt:disabled { cursor: default; }
.opt .t { flex: 1; } .opt .t i { font-style: normal; color: #546583; margin-right: 6px; }
.opt .m { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2.2px solid #B0B3C3; flex: none; color: #fff; font-size: 12px; font-weight: 900; line-height: 1; transition: transform .25s var(--spring); }
.opt.picked { background: #E9F0FF; border-color: #7FA4F8; } .opt.picked .m { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, #fff 50%); }
.opt.is-correct { background: #DFF3DB; border-color: #7DD073; } .opt.is-correct .m { border: 0; background: var(--correct); transform: scale(1.15); } .opt.is-correct .m::after { content: "✓"; }
.opt.is-wrong { background: #FCD7DD; border-color: #FCB8C0; animation: shake .4s; } .opt.is-wrong .m { border: 0; background: #D93644; } .opt.is-wrong .m::after { content: "✕"; font-size: 11px; }
.opt.is-dim { opacity: .55; box-shadow: none; }
.q-foot { margin-top: auto; }
.phone.tall { width: min(100%, 340px); height: auto; min-height: 622px; display: flex; } .phone.tall .screen { height: auto; flex: 1; }
.q-mascot, .q-mascot img, .opt { transition-duration: .3s; } .q-mascot { transition: height .3s var(--ease); } .q-mascot img { transition: transform .35s var(--spring), width .3s var(--ease), margin .3s var(--ease); }
.answered .q-mascot { height: 66px; } .answered .q-mascot img { width: 84px; margin-left: -42px; } .answered .opt { min-height: 40px; padding-block: 4px; }
.verdict { padding: 12px 14px; border-radius: 20px; background: #FEFBFA; box-shadow: 0 -2px 24px rgba(58, 76, 134, .12); animation: rise .4s var(--ease) both; }
.verdict .v-h { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: #23783B; display: flex; align-items: center; gap: 8px; } .verdict.bad .v-h { color: #C3202F; }
.verdict .v-h span { margin-left: auto; padding: 2px 10px; border-radius: 99px; background: #FFF3CF; color: #8A5A0C; font-size: 12px; }
.verdict p { font-size: 12.5px; line-height: 1.6; color: #4F5A7C; margin-bottom: 10px; } .verdict .v-h b { color: inherit; } .verdict p a, .nojs a { color: var(--accent-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
main section:focus { outline: none; }
.poke-btn { position: absolute; left: 97px; top: 125px; width: 124px; height: 128px; border-radius: 50%; z-index: 6; }
.hint i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); } .hint i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.8s ease-out infinite; }
/* results */
.done { background: linear-gradient(#7DBBFF, #C4DCFF 40%, var(--mist) 58%); align-items: center; }
.ribbon { position: relative; margin-top: 54px; padding: 7px 26px 9px; border-radius: 10px; background: linear-gradient(#FFEB8F, #FFD04A 55%, #F7BC35); box-shadow: 0 3px 0 #C27B14, 0 8px 14px rgba(194, 123, 20, .3); display: flex; gap: 6px; z-index: 2; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 9px; width: 30px; height: 100%; background: #F0A92C; z-index: -1; } .ribbon::before { left: -18px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); } .ribbon::after { right: -18px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.ribbon img { width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(160, 96, 10, .5)); transition: transform .5s var(--spring), opacity .2s; transition-delay: calc(var(--n) * 260ms + 300ms); } .ribbon img:nth-child(2) { width: 42px; height: 42px; margin-top: -8px; }
.js .reveal:not(.in) .ribbon img { transform: scale(2.6) rotate(-30deg); opacity: 0; }
.done .hill { position: relative; width: 100%; height: 172px; flex: none; } .done .hill::before { content: ""; position: absolute; inset: auto -20% -70px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 35% 15%, #D8EE7C, #8ACB73 45%, #4FB39A); box-shadow: inset 0 6px 0 rgba(236, 248, 160, .8); }
.done .hill img { position: absolute; left: 50%; bottom: 10px; width: 140px; margin-left: -70px; animation: bob 2.4s ease-in-out infinite; }
.done .say { position: absolute; right: 16px; top: 34px; padding: 6px 12px; border-radius: 14px 14px 14px 4px; background: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 4px 10px rgba(var(--shadow), .16); }
.done .pad { position: relative; width: 100%; padding: 10px 12px 16px; display: grid; gap: 8px; flex: 1; align-content: start; }
.score { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; } .score .ring { --s: 76px; font-size: 19px; font-weight: 800; }
.score dl { flex: 1; display: grid; gap: 4px; font-size: 13px; font-weight: 700; } .score dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .score dd { font-size: 17px; font-weight: 800; }
.reward { padding: 11px 16px; border-radius: 18px; font-size: 12px; font-weight: 800; color: var(--muted); } .reward div { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; } .reward b { font-size: 17px; color: #B8730D; }
.miss { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 18px; font-size: 12px; color: var(--muted); font-weight: 700; line-height: 1.4; } .miss img { width: 34px; height: 34px; } .miss b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; }
.done .keys { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 6px; }

/* ---------- Sections: one continuous sky that ends on the grassland ---------- */
main { background: linear-gradient(var(--mist) 0, var(--mist) 760px, #C3DCFF 55%, #8CC2FF 100%); }
.hero { background: linear-gradient(#62AEFF, #8CC2FF 38%, #BBD8FF 72%, var(--mist)); }
section { position: relative; padding: 76px 0; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; font-weight: 900; text-align: center; margin: 0 0 40px; text-wrap: balance; }
.wood { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: fit-content; margin: -14px auto 30px; padding: 10px 30px 14px; border-radius: 22px; color: #FFF1D6; font-size: 16px; font-weight: 800; background: linear-gradient(#E3A768, #CD8A4C 60%, #BE7A40); box-shadow: inset 0 2px 0 rgba(255, 233, 196, .7), inset 0 0 0 3px #A8632F, 0 8px 16px rgba(138, 74, 18, .2); text-shadow: 0 1px 0 #8E4A20; }
.wood b { font-size: 30px; line-height: 1.2; font-weight: 900; color: #fff; } .wood i { align-self: center; width: 2px; height: 26px; margin: 0 12px; background: rgba(142, 74, 32, .4); }
.mock-note { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.stem span { display: inline-block; }
.pedestal { position: relative; display: grid; place-items: center; padding-bottom: 54px; }
.pedestal::before { content: ""; position: absolute; left: 50%; bottom: 0; width: min(760px, 118%); height: 200px; translate: -50%; background: url(assets/study-grassy-hill.svg) center bottom / 100% 100% no-repeat; }
.pedestal .phone { z-index: 1; } .pedestal .bush { position: absolute; bottom: 26px; width: 120px; z-index: 2; } .pedestal .bush.a { left: calc(50% - 330px); } .pedestal .bush.b { left: calc(50% + 220px); width: 92px; scale: -1 1; }
.cloud { position: absolute; width: 190px; opacity: .9; } .cloud.c1 { left: calc(50% - 520px); top: 70px; } .cloud.c2 { left: calc(50% + 330px); top: 230px; width: 140px; }
.hint { display: flex; align-items: center; gap: 8px; margin: 2px 0 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-soft); } .answered .hint, html:not(.js) .hint, html:not(.js) #check { display: none; }
.nojs { padding: 12px 14px; border-radius: 20px; background: #FEFBFA; font-size: 12.5px; line-height: 1.6; color: #4F5A7C; } html:not(.js) .opt { pointer-events: none; } html:not(.js) .opt[data-k="B"] { background: #DFF3DB; border-color: #7DD073; }
.modes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mode { display: grid; justify-items: center; gap: 10px; padding: 22px 8px 18px; border-radius: var(--r-panel); text-align: center; background: linear-gradient(160deg, #FFFEFB, #FAF5E9); box-shadow: inset 0 0 0 3px #fff, 0 8px 18px rgba(var(--shadow), .12); }
.mode img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(74, 92, 154, .22)); transition: transform .35s var(--spring); } .mode h3 { font-size: 17px; font-weight: 900; line-height: 1.3; }
.duo { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 72px); }
.record { width: min(100%, 380px); }
.record h3 { display: flex; align-items: center; justify-content: space-between; font-size: 21px; font-weight: 900; margin-bottom: 14px; } .record h3 img { width: 64px; margin: -34px -6px -10px 0; }
.acc { display: flex; align-items: center; height: 128px; border-radius: 22px; background: #FDFBFA; margin-bottom: 14px; }
.acc .ring { --s: 92px; --w: 9px; margin: 0 26px; font-size: 24px; font-weight: 900; } .acc dl { flex: 1; align-self: stretch; display: grid; padding: 0 22px 0 20px; border-left: 1px solid #E2E6EF; margin: 14px 0; }
.acc dl div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); } .acc dl div + div { border-top: 1px solid #E2E6EF; } .acc dt { display: flex; align-items: center; gap: 8px; } .acc dd { margin-left: auto; font-size: 20px; font-weight: 900; color: var(--ink); }
.acc i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-style: normal; font-size: 12px; font-weight: 900; line-height: 1; } .acc .ok { background: var(--correct); } .acc .no { background: #D93644; font-size: 10px; }
.recent { padding: 8px 12px 13px; border-radius: 22px; background: #F7F9FE; } .recent h4 { display: flex; align-items: center; gap: 10px; height: 32px; padding-left: 6px; font-size: 16.5px; font-weight: 800; } .recent h4::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: #C9D3EA; }
.recent small { display: block; margin: 6px 0 5px 6px; font-size: 12.5px; font-weight: 700; color: #5E6A88; } .recent ul { display: grid; gap: 5px; }
.recent li { display: flex; align-items: center; height: 56px; padding: 0 11px 0 9px; border-radius: 18px; background: #FBFCFF; border: 1px solid #fff; box-shadow: 0 3px 8px rgba(var(--shadow), .08); }
.recent .ico { display: grid; place-items: center; width: 55px; height: 42px; flex: none; background-color: var(--t); -webkit-mask: url(assets/home-cloud.svg) center / contain no-repeat; mask: url(assets/home-cloud.svg) center / contain no-repeat; } .recent .ico img { width: 44px; height: 34px; object-fit: contain; }
.recent .what { flex: 1; min-width: 0; margin-left: 8px; display: grid; gap: 2px; } .recent .what b { font-size: 15.5px; font-weight: 800; line-height: 1.25; } .recent .what > span { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stars { display: inline-flex; gap: 1px; margin-right: 7px; vertical-align: -1px; } .stars img { width: 13px; height: 13px; } .stars .off { filter: grayscale(1) opacity(.3); }
.recent strong { flex: none; margin-left: 8px; min-width: 54px; padding: 5px 0; border-radius: 12px; text-align: center; font-size: 15px; font-weight: 900; } .recent .good { color: #23783B; background: #DFF3DB; } .recent .fair { color: #A8560A; background: #FFEFD2; }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin-inline: auto; }
.bank { display: grid; justify-items: center; gap: 12px; padding: 26px 16px 22px; text-align: center; border-radius: var(--r-panel); }
.emblem { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: linear-gradient(var(--c1), var(--c2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 12px rgba(var(--shadow), .2); }
.emblem img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.bank h3 { font-size: 20px; font-weight: 900; line-height: 1.3; } .bank p { font-size: 15px; font-weight: 800; color: var(--muted); } .bank p b { font-size: 30px; font-weight: 900; color: var(--ink); margin-right: 2px; } .bank p span { display: block; font-size: 13.5px; font-weight: 700; }
.note { margin-top: 24px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); } .note a { color: var(--accent-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.final { padding: 60px 0 0; overflow: hidden; } .final h2 { margin-bottom: 26px; } .final .cta-row { justify-content: center; margin: 0; position: relative; z-index: 2; }
.land { position: relative; height: 330px; margin-top: 10px; }
.land::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -190px; height: 340px; border-radius: 50%; background: radial-gradient(ellipse at 40% 0, #D8EE7C, #8ACB73 45%, #6CBF7C); box-shadow: inset 0 6px 0 rgba(255, 255, 255, .35); }
.land img { position: absolute; bottom: 110px; } .land .mountain { left: calc(50% - 470px); width: 230px; bottom: 96px; opacity: .9; } .land .castle { left: calc(50% + 250px); width: 170px; bottom: 112px; }
.land .mascot { left: 50%; width: 170px; margin-left: -85px; bottom: 124px; animation: bob 3s ease-in-out infinite; } .land .bush { width: 120px; bottom: 104px; } .land .bush.a { left: calc(50% - 250px); } .land .bush.c { left: calc(50% - 400px); width: 80px; bottom: 100px; } .land .bush.b { left: calc(50% + 120px); width: 90px; scale: -1 1; }
footer { background: #6CBF7C; padding: 6px 0 26px; font-size: 14px; font-weight: 700; color: var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease, transform .7s var(--spring); } .js .reveal.in { opacity: 1; transform: none; }
.hero .copy > * { animation: rise .8s var(--ease) both; } .hero .copy > :nth-child(2) { animation-delay: .08s; } .hero .copy > :nth-child(3) { animation-delay: .16s; } .hero .copy > :nth-child(4) { animation-delay: .24s; } .hero .copy > :nth-child(5) { animation-delay: .32s; }
.stage .phone { animation: popin .9s var(--spring) .15s both; }
@media (hover: hover) { .key:hover::after { filter: brightness(1.05); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes popin { from { opacity: 0; transform: translateY(30px) scale(.86); } }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(var(--r, 4deg)); } }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes poke { 30% { transform: translateY(-26px) scale(1.08, .94) rotate(-8deg); } 60% { transform: translateY(0) scale(.94, 1.06); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
@keyframes drift { from { transform: translateX(-16vw); } to { transform: translateX(112vw); } }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes pulse { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
/* scenery: the app's props, stars and clouds, always moving a little */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco img { position: absolute; left: var(--x); top: var(--y); width: var(--w); opacity: var(--o, 1); filter: drop-shadow(0 8px 8px rgba(74, 92, 154, .2)); animation: floaty var(--t) ease-in-out var(--dl) infinite; }
.deco .tw { filter: none; animation-name: twinkle; } .deco .still { filter: none; animation: none; } .deco .drift { left: 0; filter: none; animation: drift var(--t) linear var(--dl) infinite; }
section > .wrap, .final .land { position: relative; z-index: 1; }
.bank .emblem { animation: floaty 5s ease-in-out infinite; --r: 0deg; } .bank:nth-child(2) .emblem { animation-delay: -1.6s; } .bank:nth-child(3) .emblem { animation-delay: -3.2s; }
.burst { position: absolute; left: 50%; top: 96px; width: 22px; height: 22px; margin: -11px; z-index: 6; pointer-events: none; animation: burst .9s var(--ease) both; }
@keyframes burst { from { transform: translate(0, 0) scale(.3); opacity: 1; } 70% { opacity: 1; } to { transform: translate(var(--bx), var(--by)) scale(1.1) rotate(160deg); opacity: 0; } }
@media (max-width: 1300px) { .deco .xl { display: none; } }
@media (max-width: 860px) { .deco .lg { display: none; } }
.brand, .nav-links a { white-space: nowrap; }
.motion { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #E9F0FF; color: var(--accent-ink); cursor: pointer; }
.motion i { width: 12px; height: 14px; border: solid currentColor; border-width: 0 4px; } .motion[aria-pressed="true"] i { width: 0; height: 0; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.motion:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* the map trail: stepping stones from the first question to the last hill, filled as you scroll */
main { position: relative; }
.trail { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.trail svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trail path { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: .1 25; stroke: rgba(255, 255, 255, .85); } .trail .gone { stroke: var(--gold); }
.trail .stop { position: absolute; z-index: 0; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: #fff; box-shadow: 0 4px 0 #C9D8F5, 0 8px 14px rgba(var(--shadow), .18); transition: background .3s, box-shadow .3s, transform .45s var(--spring); }
.trail .stop img { width: 24px; filter: grayscale(1) opacity(.45); transition: filter .3s; }
.trail .stop.on { background: #FFF3D0; box-shadow: 0 4px 0 #E79A28, 0 8px 14px rgba(var(--shadow), .2); transform: scale(1.12); } .trail .stop.on img { filter: none; }
.trail .walker { position: absolute; left: 0; top: 0; width: 56px; margin: -50px 0 0 -28px; filter: drop-shadow(0 5px 4px rgba(74, 92, 154, .3)); transition: opacity .3s; will-change: transform; }
.trail .walker.home, .paused .trail .walker { opacity: 0; }
.trail.hop .walker { transition: opacity .3s, transform .5s var(--spring); }
.trail .stop::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2px; width: 230px; height: 60px; translate: -50%; background: url(assets/study-grassy-hill.svg) center top / 100% 100% no-repeat; }
.trail .stop::after { content: ""; position: absolute; left: calc(100% + 14px); bottom: 4px; width: 46px; height: 46px; background: var(--lm) center bottom / contain no-repeat; }
#demo.won .cheer { animation: cheer .7s var(--spring); } #demo.lost .cheer { animation: shake .4s; }
@keyframes cheer { 40% { transform: translateY(-26px) scale(1.25) rotate(12deg); } }
/* each mode shows its own move once when it arrives, and again on hover */
.mode img { transform-origin: 50% 70%; } .mode.go img { animation: .55s var(--spring) calc(var(--i) * 90ms + .25s) both; }
.mode[data-play="classic"].go img { animation-name: m-open; } .mode[data-play="timed"].go img { animation-name: m-tick; } .mode[data-play="true-false"].go img { animation-name: m-swipe; }
.mode[data-play="flashcards"].go img { animation-name: m-flip; } .mode[data-play="mock"].go img { animation-name: m-stamp; } .mode[data-play="weak"].go img { animation-name: m-return; }
.mode.again img { animation-delay: 0s !important; }
@keyframes m-open { from { transform: scaleX(.45) rotate(-10deg); } }
@keyframes m-tick { 0% { transform: rotate(-16deg); } 35% { transform: rotate(13deg); } 65% { transform: rotate(-7deg); } }
@keyframes m-swipe { 0% { transform: translateX(-18px) rotate(-14deg); } 50% { transform: translateX(16px) rotate(12deg); } }
@keyframes m-flip { from { transform: perspective(300px) rotateY(180deg); } }
@keyframes m-stamp { 0% { transform: translateY(-22px) scale(1.3); } 60% { transform: scale(.9); } }
@keyframes m-return { from { transform: translate(30px, -10px) rotate(45deg) scale(.6); opacity: .3; } }
.js .reveal:not(.in) .miss { opacity: 0; transform: translateX(-36px); } .miss { transition: opacity .4s ease 1.1s, transform .55s var(--spring) 1.1s; }
:is(.paused, .away) :is(.clouds i, .home .rays, .home .mascot:not(.poke), .done .hill img, .land .mascot, .deco img, .bank .emblem), :is(.paused, .away) .hint i::after { animation-play-state: paused; } .paused .key .sheen::after, .paused .mode.go img, .paused #demo .cheer { animation: none; }
@media (prefers-reduced-motion: reduce) { .motion { display: none; } .trail .walker { display: none; } *, *::before, *::after { animation: none !important; transition: none !important; } .js .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) { .modes { grid-template-columns: repeat(3, 1fr); max-width: 640px; margin-inline: auto; } .cloud { display: none; } }
@media (max-width: 860px) {
  .land .mountain { left: -30px; width: 180px; opacity: .55; } .land .castle { left: auto; right: 10px; width: 120px; } .land .bush.c { display: none; }
  section { padding: 60px 0; }
  .nav { inset: 8px 0 auto; } .nav .wrap { height: 58px; gap: 10px; padding: 0 8px 0 12px; } .nav-links a { padding: 8px 8px; }
  .hero { padding: 104px 0 110px; } .hero .wrap { gap: 24px; }
}
@media (max-width: 700px) {
  .hero { padding: 86px 0 100px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero .copy { text-align: center; } .hero .pill { margin-bottom: 10px; } .lede { margin: 8px auto 0; } .hero .cta-row { justify-content: center; margin-top: 16px; }
  .duo { flex-direction: column; gap: 26px; } .duo > div { width: min(100%, 380px); } .duo .phone { width: 100%; padding: 0; border-radius: 28px; background: none; box-shadow: 0 0 0 3px #fff, 0 14px 26px rgba(var(--shadow), .2); } .duo .phone::before, .done .time { display: none; } .duo > div:nth-child(2) { display: none; } .duo .phone .screen { border-radius: 28px; } .done .ribbon { margin-top: 24px; } .done .hill { height: 158px; }
}
@media (max-width: 560px) {
  section { padding: 56px 0; } h2 { margin-bottom: 28px; } .modes { grid-template-columns: repeat(2, 1fr); gap: 12px; } .mode { padding: 16px 6px 14px; } .mode img { width: 76px; height: 76px; }
  .bank-grid { grid-template-columns: 1fr; max-width: 320px; } .bank { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; padding: 16px 18px; } .bank .emblem { grid-row: span 2; } .bank h3 br { display: none; }
  .phone.tall { min-height: 0; } .q-mascot { height: 86px; } .q-mascot img { width: 88px; margin-left: -44px; } .q-foot { margin-top: 6px; } .trail .stop { width: 34px; height: 34px; margin: -17px; } .trail .stop img { width: 19px; } .trail .walker { width: 44px; margin: -40px 0 0 -22px; }
  .pedestal .bush { display: none; } .final .cta-row .key { flex: 0 1 280px; } footer .wrap { justify-content: center; text-align: center; }
  .wrap { width: min(100% - 32px, 1120px); }
  .nav .wrap { gap: 6px; padding: 0 6px 0 8px; } .nav .brand { font-size: 0; gap: 0; } .nav-links { gap: 0; } .nav-links a { padding: 12px 5px; font-size: 14px; } .nav-links a[href="#demo"] { display: none; } .nav .key.sm { padding: 0 14px 5px; font-size: 15px; }
  .trail .stop::before { width: 170px; height: 46px; } .trail .stop::after { width: 36px; height: 36px; left: calc(100% + 10px); }
}
@media (max-width: 380px) { .acc .ring { --s: 76px; --w: 8px; margin: 0 16px; font-size: 20px; } .acc dl { padding: 0 14px; } .acc dl div { font-size: 13px; gap: 6px; } .acc dt { white-space: nowrap; gap: 6px; } .recent strong { min-width: 48px; } }
@media (max-width: 350px) { .nav .brand { display: none; } .nav-links { margin-left: 4px; } .phone { transform: scale(.9); margin: -32px 0; } }
#demo { overflow: hidden; scroll-margin-top: 84px; }
.duo .phone { height: auto; } .duo .phone .screen { height: auto; }
