/* lessonleech.com: one stylesheet for every page. Fonts come from this site and there are no trackers. The home page
   adds one small script of its own (assets/site.js) for the playable parts; without it everything still reads. */

:root {
  --ink: #0c0b11;
  --ink-2: #13121a;
  --ink-3: #1a1923;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f2ee;
  --muted: #a6a3b5;
  --faint: #6f6c80;
  --coral: #ff5212;
  --pink: #ff6bb5;
  --violet: #8c5cf5;
  --mint: #3dcf8f;
  --amber: #f5b84a;
  --sky: #59a8ff;
  --turq: #1ae6c7;
  --paper: #f6f4ef;
  --accent: linear-gradient(90deg, var(--coral), var(--pink) 52%, var(--violet));
  --mascot: linear-gradient(135deg, var(--turq), var(--sky) 55%, var(--violet));
  --display: "Outfit", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --bar: 38px;
  --notch-w: 196px;
  --wrap: 1120px;
  --spring: cubic-bezier(.2, 1.25, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 500 17.5px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain over everything: the page reads like a screen at night, not a flat colour */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 107, 181, .35); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- the menu bar (= the site's navigation) */

.menubar {
  position: sticky; top: 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px;
  background: rgba(12, 11, 17, .72); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line); font: 600 14px/1 var(--display);
}
.menubar .left, .menubar .right { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.menubar .right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; }
.menu a { text-decoration: none; color: rgba(244, 242, 238, .78); white-space: nowrap; }
.menu a:hover { color: #fff; }
.menu { display: flex; gap: 18px; }
.status-icons { display: flex; align-items: center; gap: 12px; color: rgba(244, 242, 238, .7); }
.status-icons svg { width: 17px; height: 17px; }
.pill-dl {
  text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 13px/1 var(--display); white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(255, 82, 18, .6);
}
.pill-dl:hover { filter: brightness(1.08); }
/* the notch, dead centre, with the soft shoulders of the real one */
.notch {
  position: absolute; left: 50%; top: 0; width: var(--notch-w); height: calc(var(--bar) + 1px); transform: translateX(-50%);
  background: #000; border-radius: 0 0 14px 14px; z-index: 2;
}
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; width: 10px; height: 10px;
  background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px);
}
.notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px); }
.notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #000 10px); }
.notch .cam { position: absolute; top: 13px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3350, #07080d 70%); }
/* how far down the page you are, as a thin line under the menu bar (where the browser can do it without scripts) */
@supports (animation-timeline: scroll()) {
  .menubar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
    transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding-bottom: 96px; isolation: isolate; overflow: hidden; }   /* its lamps never widen the page */
.hero::before, .hero::after {                                   /* two soft lamps behind the widget */
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.hero::before { width: 560px; height: 420px; left: calc(50% - 620px); top: 120px; background: radial-gradient(circle, rgba(255, 82, 18, .55), transparent 65%); }
.hero::after { width: 620px; height: 480px; left: calc(50% + 40px); top: 40px; background: radial-gradient(circle, rgba(140, 92, 245, .6), transparent 65%); }

/* the widget, hanging from the notch */
.widget-wrap { position: relative; width: min(690px, calc(100vw - 24px)); margin: 0 auto; animation: drop .9s var(--spring) .15s both; }
.widget-wrap::before {                                           /* the coral → violet rim, fading in towards the bottom */
  content: ""; position: absolute; left: -1.5px; right: -1.5px; bottom: -1.5px; height: 72%; border-radius: 0 0 27.5px 27.5px;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--violet));
  -webkit-mask: linear-gradient(180deg, transparent, #000 80%); mask: linear-gradient(180deg, transparent, #000 80%);
  transition: opacity .3s, transform .55s var(--spring);
}
.widget-wrap::after {                                            /* and its glow on the "desk" */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; z-index: -1; filter: blur(26px); opacity: .5;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--violet)); transition: opacity .3s;
}
.widget {
  position: relative; z-index: 1; width: 100%; margin: 0; padding: 16px 20px 18px 16px;   /* a <figure>: no UA margins */
  background: linear-gradient(180deg, #000 0, #000 34px, #0e0d15 120px, #121019);
  border-radius: 0 0 26px 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; transition: transform .6s var(--spring);
}
.leechy-box { position: relative; transform-origin: 50% 100%; }
.widget .leechy { width: 56px; height: 56px; margin-top: 2px; animation: bob 4s ease-in-out 1.2s infinite; }
.w-col { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.w-head { display: flex; align-items: center; gap: 9px; min-width: 0; font: 600 12.5px/1 var(--display); }
.w-head .topic { color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.w-head .spacer { flex: 1; }
.w-head .timer { font: 500 12px/1 var(--mono); color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font: 700 12px/1 var(--display); }
.pill.violet { color: #b7a0ff; background: rgba(140, 92, 245, .18); }
.pill.mint { color: var(--mint); background: rgba(61, 207, 143, .14); }
.pill.skyp { color: #9fc4ff; background: rgba(89, 168, 255, .15); }
.pill.turq { color: #6ef0da; background: rgba(26, 230, 199, .13); }
.pill.pinkp { color: #ffa0cc; background: rgba(255, 107, 181, .15); }
.pill.amberp { color: var(--amber); background: rgba(245, 184, 74, .15); }
.pill.coralp { color: #ff9a75; background: rgba(255, 82, 18, .15); }
.bars { display: flex; align-items: center; gap: 2.5px; height: 14px; flex: none; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(var(--pink), var(--coral)); transform-origin: center; animation: eq 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.3s; } .bars i:nth-child(3) { animation-delay: -.6s; } .bars i:nth-child(4) { animation-delay: -.15s; }

.tag {
  display: inline-block; padding: 3px 7px; border-radius: 6px; font: 800 9.5px/1 var(--display);
  letter-spacing: .13em; text-transform: uppercase; white-space: nowrap;
}
.tag.grad-bg { background: var(--accent); color: #fff; }
.tag.amber { color: var(--amber); background: rgba(245, 184, 74, .15); }
.tag.violet { color: #b7a0ff; background: rgba(140, 92, 245, .2); }
.w-card { position: relative; display: grid; gap: 6px; padding: 11px 13px 12px 17px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.w-card::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 3px; border-radius: 2px; background: var(--accent); }
.w-card.ask { background: rgba(245, 184, 74, .09); }
.w-card.ask::before { background: var(--amber); }
.w-card .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.w-card .q { min-width: 0; color: rgba(255, 255, 255, .72); font: 600 12.5px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-card .num { font: 700 11px/1 var(--mono); color: rgba(255, 255, 255, .4); }
.w-card p { margin: 0; font: 800 15.5px/1.35 var(--body); letter-spacing: -.005em; }
.w-card.point p { font-weight: 700; }
.fast {                                                          /* how long the answer took */
  display: inline-flex; align-items: center; gap: 3px; flex: none; margin-left: auto; padding: 3px 8px 3px 6px; border-radius: 999px;
  background: rgba(255, 82, 18, .16); color: #ffb08d; font: 800 11px/1 var(--mono); white-space: nowrap;
}
.fast svg { width: 11px; height: 11px; color: var(--coral); }
.caret { display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -.12em; border-radius: 2px; background: var(--coral); }
.dots { display: none; gap: 4px; align-items: center; height: 1.2em; vertical-align: -.2em; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.w-simple { display: flex; gap: 9px; align-items: baseline; }
.w-simple p { margin: 0; padding: 1px 4px; margin-left: -4px; border-radius: 6px; color: #dcd1ff; font: 700 13.5px/1.4 var(--body); }
.w-simple.flash p { animation: flash 1.1s ease-out; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; gap: 6px; align-items: baseline; max-width: 100%; padding: 4px 10px; border-radius: 999px;
  font: 600 11.5px/1.35 var(--body); color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip b { font: 800 11.5px/1.35 var(--display); }
.chip.amber { background: rgba(245, 184, 74, .12); box-shadow: inset 0 0 0 1px rgba(245, 184, 74, .3); } .chip.amber b { color: var(--amber); }
.chip.pink { background: rgba(255, 107, 181, .11); box-shadow: inset 0 0 0 1px rgba(255, 107, 181, .3); } .chip.pink b { color: var(--pink); }
.chip.mint { background: rgba(61, 207, 143, .1); box-shadow: inset 0 0 0 1px rgba(61, 207, 143, .3); } .chip.mint b { color: var(--mint); }
.w-foot { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; }
.w-foot .live { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(61, 207, 143, .18); flex: none; }
.w-foot em { flex: 1; min-width: 0; color: rgba(255, 255, 255, .55); font: italic 500 12px/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
.w-btn { flex: none; padding: 6px 11px; border: 0; border-radius: 999px; font: 700 11.5px/1 var(--display); white-space: nowrap; cursor: pointer; transition: filter .15s, transform .2s var(--spring); }
.w-btn:hover { filter: brightness(1.2); }
.w-btn:active { transform: scale(.96); }
.w-btn.amber { color: var(--amber); background: rgba(245, 184, 74, .13); }
.w-btn.coral { color: #fff; background: #e4501d; }
.w-btn.red { color: #ff6b6b; background: rgba(255, 91, 91, .12); }

/* without the script the widget plays one moment once, in CSS: the answer from 1.5 s, the point from 3.3 s */
html:not(.js) .w-card.ask { animation: rise .5s ease-out 1.05s both; }
html:not(.js) .w-card.point { animation: rise .5s ease-out 2.85s both; }
html:not(.js) .w-simple { animation: rise .5s ease-out 4.4s both; }
html:not(.js) .fast { animation: pop .35s var(--spring) 1.5s both; }
html:not(.js) .chip { animation: rise .45s ease-out both; }
html:not(.js) .chips .chip:nth-child(1) { animation-delay: 4.8s; }
html:not(.js) .chips .chip:nth-child(2) { animation-delay: 5s; }
html:not(.js) .chips .chip:nth-child(3) { animation-delay: 5.2s; }
html:not(.js) .caret { animation: show 0s linear 4.4s both, blink 1s steps(2, jump-none) 4.4s infinite; }
html:not(.js) .w-btn, html:not(.js) .w-tuck { pointer-events: none; }
html:not(.js) .stream span { animation: word .01s linear both; }
html:not(.js) .ask .stream span:nth-child(1) { animation-delay: 1.50s } html:not(.js) .ask .stream span:nth-child(2) { animation-delay: 1.56s }
html:not(.js) .ask .stream span:nth-child(3) { animation-delay: 1.62s } html:not(.js) .ask .stream span:nth-child(4) { animation-delay: 1.68s }
html:not(.js) .ask .stream span:nth-child(5) { animation-delay: 1.74s } html:not(.js) .ask .stream span:nth-child(6) { animation-delay: 1.80s }
html:not(.js) .ask .stream span:nth-child(7) { animation-delay: 1.86s } html:not(.js) .ask .stream span:nth-child(8) { animation-delay: 1.92s }
html:not(.js) .ask .stream span:nth-child(9) { animation-delay: 1.98s } html:not(.js) .ask .stream span:nth-child(10) { animation-delay: 2.04s }
html:not(.js) .ask .stream span:nth-child(11) { animation-delay: 2.10s } html:not(.js) .ask .stream span:nth-child(12) { animation-delay: 2.16s }
html:not(.js) .ask .stream span:nth-child(13) { animation-delay: 2.22s } html:not(.js) .ask .stream span:nth-child(14) { animation-delay: 2.28s }
html:not(.js) .point .stream span:nth-child(1) { animation-delay: 3.30s } html:not(.js) .point .stream span:nth-child(2) { animation-delay: 3.37s }
html:not(.js) .point .stream span:nth-child(3) { animation-delay: 3.44s } html:not(.js) .point .stream span:nth-child(4) { animation-delay: 3.51s }
html:not(.js) .point .stream span:nth-child(5) { animation-delay: 3.58s } html:not(.js) .point .stream span:nth-child(6) { animation-delay: 3.65s }
html:not(.js) .point .stream span:nth-child(7) { animation-delay: 3.72s } html:not(.js) .point .stream span:nth-child(8) { animation-delay: 3.79s }
html:not(.js) .point .stream span:nth-child(9) { animation-delay: 3.86s } html:not(.js) .point .stream span:nth-child(10) { animation-delay: 3.93s }
html:not(.js) .point .stream span:nth-child(11) { animation-delay: 4.00s } html:not(.js) .point .stream span:nth-child(12) { animation-delay: 4.07s }
html:not(.js) .point .stream span:nth-child(13) { animation-delay: 4.14s } html:not(.js) .point .stream span:nth-child(14) { animation-delay: 4.21s }
html:not(.js) .point .stream span:nth-child(15) { animation-delay: 4.28s }

/* with the script: site.js plays the lessons, word by word, and toggles these states */
.js .w-card, .js .w-simple, .js .chips { overflow: hidden; transition: opacity .3s; }
.js .w-card:not(.on), .js .w-simple:not(.on), .js .chips:not(.on) { display: none; }
.js .chip { opacity: 0; transform: translateY(6px) scale(.92); transition: opacity .25s ease, transform .4s var(--spring); }
.js .chip.on { opacity: 1; transform: none; }
.js .w-col.switching .w-card, .js .w-col.switching .w-simple, .js .w-col.switching .chips, .js .w-col.switching .w-foot em { opacity: 0; }
.js .w { display: none; }
.js .w.on { display: inline; }
.js .caret { display: none; }
.js .point.typing .caret { display: inline-block; animation: blink 1s steps(2, jump-none) infinite; }
.js .ask.waiting .dots { display: inline-flex; }
.js .ask.landed { animation: landed 1.3s ease-out; }
.js .fast { opacity: 0; transform: scale(.5); transition: opacity .2s, transform .45s var(--spring); }
.js .fast.on { opacity: 1; transform: none; }
.js .widget .leechy { cursor: pointer; }
.widget.paused .bars i, .widget.ended .bars i { animation-play-state: paused; }
.widget.paused .live, .widget.ended .live { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 184, 74, .18); }
.stage { position: relative; }
.widget.measure { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.measure, .measure * { animation: none !important; transition: none !important; }

/* Leechy's moods: listening, thinking (brow up, eyes up), happy (eyes closed in a smile), asleep */
.leechy { overflow: visible; }
.leechy .pupil { transform-box: fill-box; transform-origin: center; animation: wink 4.6s ease-in-out 2s infinite; }
.leechy .look-g { transition: transform .14s ease-out, opacity .15s; }
.leechy .eye { transition: opacity .15s; }
.leechy .squint, .leechy .brow, .leechy .lid, .leechy .zz { opacity: 0; transition: opacity .2s; }
.leechy.happy .squint, .leechy.thinking .brow, .leechy.asleep .lid, .leechy.asleep .zz { opacity: 1; }
.leechy.happy .eye, .leechy.happy .look-g, .leechy.asleep .look-g { opacity: 0; }
.leechy .zz text { font: 800 26px/1 var(--display); fill: var(--amber); }
.leechy.asleep .zz text { animation: zz 2.6s ease-in-out infinite; }
.leechy.asleep .zz text:nth-child(2) { animation-delay: .9s; }
.leechy-box.booped { animation: squish .55s var(--spring); }
.boop {
  position: absolute; left: 46px; top: -10px; z-index: 3; padding: 6px 10px; border-radius: 12px 12px 12px 4px;
  background: var(--paper); color: #16151c; font: 800 12px/1.2 var(--display); white-space: nowrap;
  opacity: 0; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
}
.boop:empty { display: none; }
.boop.show { animation: say 1.7s ease both; }

/* the tuck button hangs under the widget; tucked, the widget slides into the notch and leaves a tab behind */
.w-tuck {
  position: absolute; left: 50%; bottom: -15px; z-index: 2; display: none; place-items: center; width: 30px; height: 30px;
  margin-left: -15px; padding: 0; border: 0; border-radius: 50%; background: #1c1a26; color: rgba(255, 255, 255, .6); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px -6px rgba(0, 0, 0, .8); transition: color .2s, transform .25s var(--spring);
}
.js .w-tuck { display: grid; }
.w-tuck svg { width: 15px; height: 15px; }
.w-tuck:hover { color: #fff; transform: translateY(-2px); }
.tucked .widget { transform: translateY(calc(-100% - 70px)); }
.tucked .widget-wrap::before, .tucked .widget-wrap::after { opacity: 0; }
.tuck-tab {
  position: absolute; top: 0; left: 50%; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  width: min(var(--notch-w), 60vw); height: 26px; padding: 0 14px 2px; border: 0; border-radius: 0 0 14px 14px;
  background: #000; color: rgba(255, 255, 255, .7); cursor: pointer; transform: translate(-50%, -110%);
  box-shadow: 0 10px 30px -10px rgba(255, 82, 18, .5); transition: transform .45s var(--spring);
}
.tuck-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.8s ease-in-out infinite; }
.tuck-tab svg { width: 14px; height: 14px; transform: rotate(180deg); }
.tuck-tab:hover { color: #fff; }
.tucked .tuck-tab { transform: translate(-50%, 0); transition-delay: .2s; }
.tuck-hint {
  position: absolute; left: 0; right: 0; top: 38%; margin: 0; text-align: center; color: var(--muted);
  font: 700 15px/1.55 var(--body); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.tucked .tuck-hint { opacity: 1; transition-delay: .35s; }

/* End lesson: the widget says what it saved */
.w-ended {
  position: absolute; top: 38px; left: 0; right: 0; bottom: 0; display: grid; align-content: center; justify-items: start; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.ended .w-ended { opacity: 1; visibility: visible; transition: opacity .35s .15s; }
.js .ended .w-col { min-height: 210px; }
.js .ended .w-col > :not(.w-head):not(.w-ended) { opacity: 0; pointer-events: none; }
.w-ended .big { margin: 0; font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.w-ended p { margin: 0; color: #cfcbd9; font: 700 15px/1.45 var(--body); }
.w-ended .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.w-ended .links a, .w-ended .links button {
  padding: 9px 14px; border: 0; border-radius: 999px; font: 700 13px/1 var(--display); text-decoration: none; cursor: pointer;
}
.w-ended .links a { color: #fff; background: rgba(255, 255, 255, .08); }
.w-ended .links a:first-child { background: var(--accent); }
.w-ended .links button { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }

/* play a lesson: one button per subject, the active one fills up as its moment plays */
.play { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 38px; }
.play[hidden] { display: flex; visibility: hidden; }
.play-label { margin-right: 6px; font: 800 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.subj {
  position: relative; overflow: hidden; padding: 9px 15px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: #d9d6e2; font: 700 14px/1 var(--display);
  transition: background .2s, color .2s, transform .25s var(--spring);
}
.subj:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: translateY(-1px); }
.subj.on { color: #fff; background: rgba(140, 92, 245, .2); box-shadow: inset 0 0 0 1px rgba(140, 92, 245, .55); }
.subj::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); opacity: 0;
}
.subj.on::after { opacity: 1; transform: scaleX(var(--p, 0)); }

.hero-copy { position: relative; text-align: center; padding-top: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px;
  font: 700 13px/1 var(--display); color: var(--muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 207, 143, .15); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 96px); font-weight: 800; }
h1 .line2 { display: block; }
.lede { max-width: 660px; margin: 22px auto 0; color: #cfcbd9; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn-dl {
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px 15px 20px; border-radius: 16px;
  text-decoration: none; color: #fff; font: 800 18px/1 var(--display); letter-spacing: -.01em;
  background: var(--accent); box-shadow: 0 18px 40px -16px rgba(255, 82, 18, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.btn-dl:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(255, 82, 18, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-dl svg { width: 22px; height: 22px; }
.btn-dl small { display: block; margin-top: 5px; font: 700 12px/1 var(--body); opacity: .85; letter-spacing: 0; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 15px 22px; border: 0; border-radius: 16px; text-decoration: none; cursor: pointer;
  font: 700 17px/1 var(--display); color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-ghost.small { padding: 11px 16px; border-radius: 12px; font-size: 14.5px; }
.fine { margin: 18px 0 0; color: var(--faint); font: 700 13.5px/1.5 var(--body); }
.fine b { color: var(--muted); font-weight: 800; }

/* the three things it does best, straight under the download */
.pillars { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; }
.pillar {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 5px 15px;
  padding: 20px 20px 18px; border-radius: 22px; text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.pillar::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 200px; height: 200px; border-radius: 50%;
  filter: blur(40px); opacity: .35; transition: opacity .3s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 44px -26px rgba(0, 0, 0, .9); }
.pillar:hover::before { opacity: .6; }
.pillar .ic { grid-row: 1 / 4; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.pillar .ic svg { width: 22px; height: 22px; }
.pillar b { font: 800 18.5px/1.2 var(--display); letter-spacing: -.02em; }
.pillar > span:not(.ic) { color: #bdb9ca; font: 600 14.5px/1.45 var(--body); }
.pillar em { align-self: end; margin-top: 8px; font: 800 13px/1 var(--display); font-style: normal; }
.pillar em::after { content: " ↓"; }
.p-answers .ic { color: var(--amber); background: rgba(245, 184, 74, .14); } .p-answers em { color: var(--amber); }
.p-answers::before { background: var(--amber); }
.p-cards .ic { color: #b7a0ff; background: rgba(140, 92, 245, .17); } .p-cards em { color: #b7a0ff; }
.p-cards::before { background: var(--violet); }
.p-night .ic { color: #9fc4ff; background: rgba(89, 168, 255, .15); } .p-night em { color: #9fc4ff; }
.p-night::before { background: var(--sky); }

/* ---------------------------------------------------------------- sections */

section { position: relative; }
.sec { padding: 110px 0; }
.kicker { margin: 0 0 14px; font: 800 12.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; max-width: 16ch; }
.sec-lede { max-width: 620px; margin: 18px 0 0; color: #c9c5d4; font-size: 18.5px; }

/* the answer function: a race against the class */
.answers { background: radial-gradient(60% 50% at 50% 38%, rgba(245, 184, 74, .08), transparent 72%); }
.answers h2 { max-width: 20ch; }
.race {
  margin-top: 48px; padding: 28px 30px 26px; border-radius: 28px;
  background: radial-gradient(90% 90% at 0 0, rgba(255, 82, 18, .1), transparent 55%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.race-q { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.race-q p { flex: 1; min-width: 240px; margin: 0; font: 800 clamp(20px, 2.3vw, 27px)/1.25 var(--display); letter-spacing: -.02em; }
.race-subj { font: 800 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.lanes { display: grid; grid-template-columns: 215px 1fr 120px; align-items: center; gap: 16px 18px; margin-top: 28px; }
.lane { display: contents; }
.who { font: 700 15px/1.25 var(--display); color: var(--muted); }
.lane.you .who { color: #fff; }
.lane.you .who b { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.track {
  position: relative; height: 14px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 20%), rgba(255, 255, 255, .04);
}
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
.lane.you .fill { width: 16%; background: var(--accent); box-shadow: 0 0 20px rgba(255, 82, 18, .45); }
.lane.class .fill { width: 84%; background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .24)); }
.flag, .hand {
  position: absolute; right: -16px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; transform: scale(.3); opacity: 0; transition: transform .45s var(--spring), opacity .2s;
}
.flag { background: #fff; color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 82, 18, .22), 0 8px 22px -6px rgba(255, 82, 18, .8); }
.flag svg { width: 16px; height: 16px; }
.hand { background: #211c12; box-shadow: inset 0 0 0 1px rgba(245, 184, 74, .45); }
.hand svg { width: 19px; height: 19px; }
html:not(.js) .flag, html:not(.js) .hand, .race.answered .flag, .race.hands .hand { transform: none; opacity: 1; }
.when { font: 700 14.5px/1.1 var(--mono); color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lane.you .when { color: #fff; font-weight: 800; }
.scale { grid-column: 2; display: flex; justify-content: space-between; margin-top: -8px; font: 600 11px/1 var(--mono); color: var(--faint); }
.race-a {
  display: flex; gap: 12px; align-items: baseline; margin-top: 24px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s;
}
.race-a p { margin: 0; font: 800 17.5px/1.45 var(--body); }
.js .race-a .w { display: inline; visibility: hidden; }             /* the whole answer keeps its place, words appear in it */
.js .race-a .w.on { visibility: visible; }
.race.answered .race-a { background: rgba(255, 107, 181, .06); box-shadow: inset 0 0 0 1px rgba(255, 107, 181, .35); }
.race-again { margin-top: 16px; }
.race-again:not([hidden]) {
  display: inline-flex; padding: 11px 16px; border: 0; border-radius: 12px; cursor: pointer; font: 700 14.5px/1 var(--display);
  color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2);
}
.race-again:hover { background: rgba(255, 255, 255, .1); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.fact { padding: 20px 20px 18px; border-radius: 20px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; margin-bottom: 8px; font: 800 21px/1.15 var(--display); letter-spacing: -.02em; }
.fact:first-child b { font-size: 30px; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: #bdb9ca; font: 600 15px/1.5 var(--body); }

/* flashcards: a deck you can drill right here */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; color: #d3cfdc; font: 600 16.5px/1.5 var(--body); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  background: rgba(61, 207, 143, .14); color: var(--mint); font: 900 13px/1 var(--display);
}
.ticks b { font-family: var(--display); color: #fff; }
.deck {
  position: relative; padding: 22px 22px 24px; border-radius: 28px;
  background: radial-gradient(100% 70% at 100% 0, rgba(140, 92, 245, .2), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.deck-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.deck-top .count { font: 700 12.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.deck-bar { height: 5px; margin: 14px 0 18px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.deck-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--spring); }
.deck-stage { position: relative; }
.deck-stage::before, .deck-stage::after {                         /* the rest of the deck, under the top card */
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -9px; height: 40px; border-radius: 0 0 18px 18px; background: rgba(246, 244, 239, .14);
}
.deck-stage::after { left: 32px; right: 32px; bottom: -17px; background: rgba(246, 244, 239, .07); }
.fcard {
  position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; background: none;
  text-align: left; cursor: pointer; perspective: 1200px; transition: transform .3s ease-in, opacity .3s ease-in;
}
.fcard-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .6s var(--spring); }
.fcard.flipped .fcard-inner { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 236px; padding: 22px 24px 20px;
  border-radius: 20px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.face.front { background: var(--paper); color: #16151c; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.face.back { background: linear-gradient(135deg, #2c1c52, #3d1836); color: #fff; transform: rotateY(180deg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.face .tag { justify-self: start; }
.face.front .tag { color: var(--coral); background: rgba(255, 82, 18, .1); }
.face.back .tag { color: #ffd1e6; background: rgba(255, 107, 181, .2); }
.face .txt { font: 800 22px/1.32 var(--display); letter-spacing: -.015em; }
.face em { font: italic 600 13px/1.2 var(--body); opacity: .55; }
.fcard:hover .face.front { box-shadow: 0 24px 46px -22px rgba(0, 0, 0, .95); }
.fcard.out { transform: translate(55%, -8px) rotate(9deg); opacity: 0; }
.fcard.out-back { transform: translate(-30%, 14px) rotate(-6deg) scale(.94); opacity: 0; }
.fcard.swap, .fcard.swap * { transition: none !important; }
.fcard.in { animation: deal .5s var(--spring); }
.finished .fcard { visibility: hidden; }
.deck-toast {
  position: absolute; left: 50%; top: -15px; z-index: 3; padding: 7px 12px; border-radius: 999px; background: #fff; color: #16151c;
  font: 800 12.5px/1 var(--display); white-space: nowrap; transform: translateX(-50%); opacity: 0; pointer-events: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
}
.deck-toast.show { animation: toast 1.5s ease both; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 30px; }
.grades button {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border: 0; border-radius: 14px; cursor: pointer;
  font: 800 14.5px/1 var(--display); transition: transform .2s var(--spring), opacity .2s, filter .2s;
}
.grades button:disabled { opacity: .3; cursor: default; }
.grades button:not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.15); }
.grades kbd { padding: 3px 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); font: 600 10.5px/1 var(--mono); }
.grades [data-g="again"] { color: #ff8a8a; background: rgba(255, 91, 91, .13); }
.grades [data-g="hard"] { color: var(--amber); background: rgba(245, 184, 74, .13); }
.grades [data-g="good"] { color: var(--mint); background: rgba(61, 207, 143, .13); }
.grades [data-g="easy"] { color: #9fc4ff; background: rgba(89, 168, 255, .14); }
html:not(.js) .grades { display: none; }
html:not(.js) .fcard:hover .fcard-inner, html:not(.js) .fcard:focus .fcard-inner { transform: rotateY(180deg); }
.deck-done {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px;
  text-align: center; border-radius: 20px; animation: rise .5s var(--spring) both;
  background: radial-gradient(80% 70% at 50% 25%, rgba(140, 92, 245, .28), transparent 70%), var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2);
}
.deck-done[hidden] { display: none; }
.deck-done .leechy { width: 72px; height: 72px; margin-bottom: 4px; }
.deck-done h3 { font-size: 30px; }
.deck-done p { margin: 0; max-width: 34ch; color: #cfcbd9; font: 600 15.5px/1.5 var(--body); }
.deck-done .btn-ghost { margin-top: 8px; }
.confetti { position: absolute; left: 50%; top: 38%; z-index: 4; width: 8px; height: 12px; margin: -6px 0 0 -4px; border-radius: 2px; pointer-events: none; }

/* tonight: the night sky, the plan, the summary */
.night { background: radial-gradient(90% 70% at 85% 0, #1c1745 0, #110e29 45%, var(--ink) 100%); border-block: 1px solid var(--line); overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; background-repeat: no-repeat; animation: twinkle 4.5s ease-in-out infinite alternate; }
.sky::before {
  background-image:
    radial-gradient(1.6px 1.6px at 6% 9%, #fff 50%, transparent 100%), radial-gradient(1.2px 1.2px at 17% 24%, #fff 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 29% 7%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 38% 19%, #fff 50%, transparent 100%),
    radial-gradient(1.8px 1.8px at 47% 5%, #fff 50%, transparent 100%), radial-gradient(1.1px 1.1px at 58% 15%, #fff 50%, transparent 100%),
    radial-gradient(1.3px 1.3px at 66% 29%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 74% 8%, #fff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 94% 22%, #fff 50%, transparent 100%), radial-gradient(1.2px 1.2px at 12% 58%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 3% 81%, #fff 50%, transparent 100%), radial-gradient(1.4px 1.4px at 52% 92%, #fff 50%, transparent 100%),
    radial-gradient(1.1px 1.1px at 97% 67%, #fff 50%, transparent 100%);
}
.sky::after {
  animation-delay: -2.2s;
  background-image:
    radial-gradient(1.2px 1.2px at 10% 38%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 22% 12%, #fff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 34% 31%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 43% 11%, #fff 50%, transparent 100%),
    radial-gradient(1.3px 1.3px at 55% 27%, #fff 50%, transparent 100%), radial-gradient(1.1px 1.1px at 63% 4%, #fff 50%, transparent 100%),
    radial-gradient(1.6px 1.6px at 79% 34%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 88% 12%, #fff 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 7% 71%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 36% 86%, #fff 50%, transparent 100%),
    radial-gradient(1.3px 1.3px at 71% 88%, #fff 50%, transparent 100%), radial-gradient(1px 1px at 91% 48%, #fff 50%, transparent 100%);
}
.moon {
  position: absolute; top: 72px; right: max(5%, calc(50% - 540px)); width: 68px; height: 68px; border-radius: 50%;
  box-shadow: inset -15px 7px 0 0 #f4e3ae; transform: rotate(-18deg); filter: drop-shadow(0 0 24px rgba(245, 214, 140, .45));
}
.shoot {
  position: absolute; top: 60px; left: 12%; width: 150px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); opacity: 0; transform: rotate(16deg);
}
.night.shooting .shoot { animation: shoot 1.5s ease-out both; }
.tonight-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
.plan {
  margin-top: 34px; padding: 16px 16px 14px; border-radius: 24px; background: rgba(12, 11, 24, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.plan-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.clock { padding: 6px 9px; border-radius: 8px; background: rgba(89, 168, 255, .13); color: #c9d6ff; font: 800 14.5px/1 var(--mono); }
.plan-title { flex: 1; font: 800 18px/1.2 var(--display); letter-spacing: -.01em; }
.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: rgba(255, 255, 255, .1); }
.ring-fg { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; transition: stroke-dashoffset .6s var(--spring); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11.5px/1 var(--display); }
.task {
  position: relative; display: grid; grid-template-columns: 22px auto 1fr auto; grid-template-areas: "box pill what min";
  align-items: center; gap: 8px 12px; padding: 11px 10px; border-radius: 14px; cursor: pointer; transition: background .2s;
}
.task:hover { background: rgba(255, 255, 255, .045); }
.task input { position: absolute; left: 12px; top: 50%; width: 1px; height: 1px; margin: 0; opacity: 0; }
.task .box {
  grid-area: box; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); transition: background .2s, box-shadow .2s, transform .3s var(--spring);
}
.task .box::after {
  content: ""; width: 10px; height: 6px; border-left: 2.5px solid #0c0b11; border-bottom: 2.5px solid #0c0b11;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s var(--spring);
}
.task input:checked + .box { background: var(--mint); box-shadow: none; transform: scale(1.08); }
.task input:checked + .box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.task input:focus-visible + .box { outline: 2px solid var(--pink); outline-offset: 3px; }
.task .pill { grid-area: pill; justify-self: start; font-size: 11px; }
.task .what { grid-area: what; color: #e6e3ee; font: 700 15px/1.4 var(--body); transition: color .2s; }
.task .min { grid-area: min; color: var(--muted); font: 700 12.5px/1 var(--mono); white-space: nowrap; }
.task input:checked ~ .what { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.task input:checked ~ .min { opacity: .45; }
.ask-tomorrow {
  display: flex; gap: 10px; align-items: baseline; margin: 8px 4px 0; padding: 11px 13px; border-radius: 14px;
  background: rgba(245, 184, 74, .07); color: #e9e2cf; font: 700 14.5px/1.45 var(--body);
}
.ask-tomorrow .tag { flex: none; }
.plan-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 6px 2px; border-top: 1px solid var(--line); color: var(--muted); font: 700 15px/1.3 var(--display); }
.plan-foot .leechy { flex: none; width: 46px; height: 46px; }
.plan.all .plan-foot { color: #fff; }
.plan.all .ring-fg { stroke: var(--amber); }
.summary {
  padding: 30px 32px 26px; border-radius: 24px; background: var(--paper); color: #1a1920;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); rotate: -1.2deg;     /* rotate, not transform: the reveal animates transform */
}
.summary .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.summary h3 { font-size: 26px; }
.summary .date { font: 600 12.5px/1 var(--mono); color: #7a7686; white-space: nowrap; }
.summary h4 { margin: 18px 0 6px; font: 800 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.summary > p { margin: 0; font: 600 15.5px/1.55 var(--body); }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 4px 0; font: 600 15.5px/1.5 var(--body); }
.summary li::marker { color: var(--violet); }
.summary .exam { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: #ece8ff; font: 700 14.5px/1.45 var(--body); color: #2c2158; }
.summary .exam b { font-family: var(--display); }

/* IB */
.ib { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; margin-top: 12px; }
.groups { display: grid; gap: 14px; margin-top: 8px; }
.group { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.group .g { padding-top: 7px; font: 800 12px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.subjects { display: flex; flex-wrap: wrap; gap: 7px; }
.subjects span { padding: 7px 12px; border-radius: 999px; font: 700 14px/1 var(--body); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); color: #e7e4ee; }
.subjects span.hl { box-shadow: inset 0 0 0 1px rgba(140, 92, 245, .5); background: rgba(140, 92, 245, .14); }
.terms-card {
  position: sticky; top: calc(var(--bar) + 30px); padding: 28px; border-radius: 26px;
  background: radial-gradient(120% 80% at 100% 0, rgba(255, 82, 18, .16), transparent 60%), linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line);
}
.terms-card h3 { font-size: 28px; }
.terms-card p { color: #c2becf; font-size: 16.5px; margin: 12px 0 18px; }
.cterms { display: flex; flex-wrap: wrap; gap: 8px; }
.cterms span {
  padding: 8px 13px; border-radius: 10px; font: 800 15px/1 var(--display); letter-spacing: -.01em; background: rgba(255, 255, 255, .06);
  transition: background .2s, box-shadow .2s, transform .25s var(--spring);
}
.cterms span:nth-child(3n+1) { color: #ffb08d; } .cterms span:nth-child(3n+2) { color: #ffb3d8; } .cterms span:nth-child(3n) { color: #c7b4ff; }
.js .cterms span { cursor: default; }
.js .cterms span.on { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transform: translateY(-2px); }
.terms-card .cterm-def { min-height: 3.2em; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .045); color: #e2dfea; font: 600 15.5px/1.5 var(--body); }
.cterm-def b { font-family: var(--display); color: #fff; }
.paper-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); font: 600 14.5px/1.5 var(--body); color: #d7d3e2; }
.paper-note b { font-family: var(--display); color: #fff; }

/* privacy */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; }
.tile { padding: 24px 22px; border-radius: 22px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line); }
.tile svg { width: 30px; height: 30px; margin-bottom: 18px; }
.tile h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.tile p { margin: 10px 0 0; color: #bdb9ca; font-size: 15.5px; line-height: 1.55; }
.consent {
  display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 20px 24px; border-radius: 20px;
  background: linear-gradient(90deg, rgba(245, 184, 74, .12), rgba(245, 184, 74, .03)); box-shadow: inset 0 0 0 1px rgba(245, 184, 74, .25);
}
.consent svg { flex: none; width: 34px; height: 34px; }
.consent p { margin: 0; font: 600 16.5px/1.5 var(--body); }
.consent b { font-family: var(--display); }

/* schools & IT */
.it { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; margin-top: 12px; }
.spec {
  border-radius: 20px; overflow: hidden; background: #08070c; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .8);
  font: 500 14.5px/1.7 var(--mono);
}
.spec .head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.spec .head i { width: 11px; height: 11px; border-radius: 50%; background: #2a2833; }
.spec .head i:nth-child(1) { background: #ff5f57; } .spec .head i:nth-child(2) { background: #febc2e; } .spec .head i:nth-child(3) { background: #28c840; }
.spec .head span { margin-left: 8px; }
.spec dl { margin: 0; padding: 18px 20px 20px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; }
.spec dt { color: var(--pink); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; padding-top: 2px; }
.spec dd { margin: 0; color: #e9e6f0; overflow-wrap: anywhere; }
.spec dd .ok { color: var(--mint); }
.it p { color: #c9c5d4; font-size: 17.5px; }

/* install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px; border-radius: 24px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 1px var(--line); }
.step::before { counter-increment: s; content: counter(s); display: block; margin-bottom: 16px; font: 800 44px/1 var(--display); background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 21px; letter-spacing: -.02em; }
.step p { margin: 10px 0 0; color: #c2becf; font-size: 16px; }
.step code { font: 600 13.5px/1 var(--mono); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #fff; white-space: nowrap; }
.reqs { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: var(--muted); font: 700 14.5px/1.4 var(--body); }
.reqs span::before { content: "✓"; margin-right: 8px; color: var(--mint); font-weight: 900; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 44px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.faq details[open] { background: var(--ink-3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 700 19px/1.3 var(--display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .06); font: 600 20px/1 var(--display); color: var(--pink); transition: transform .25s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: #c6c2d2; font-size: 16.5px; }

/* last call + footer */
.last { padding: 40px 0 120px; }
.last .box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 38px 40px; border-radius: 32px; background: radial-gradient(90% 140% at 0 100%, rgba(255, 82, 18, .28), transparent 55%),
    radial-gradient(90% 140% at 100% 0, rgba(140, 92, 245, .32), transparent 55%), var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.last .leechy { width: 96px; height: 96px; }
.last h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: none; }
.last p { margin: 8px 0 0; color: #cfcbd9; }
.last .contact-line { font-size: 15px; color: var(--muted); }
.last .contact-line a { color: #ffa0cc; }
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--faint); font: 600 14.5px/1.6 var(--body); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: #fff; }

/* documents (privacy, terms) */
.doc { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 110px; }
.doc h1 { font-size: clamp(38px, 6vw, 58px); margin-bottom: 26px; }
.doc h2 { font-size: 26px; max-width: none; margin: 42px 0 12px; letter-spacing: -.02em; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: #d3cfdc; font-size: 17px; }
.doc a { color: #ffa0cc; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; color: #d3cfdc; }
.doc th { font-family: var(--display); color: #fff; background: rgba(255, 255, 255, .04); }
.doc code { font: 600 14px/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.lost { min-height: calc(100vh - var(--bar)); display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 40px 20px; }
.lost .leechy { width: 120px; height: 120px; animation: spin 2.4s linear infinite; }
.lost p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- motion */

@keyframes drop { from { transform: translateY(-105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes show { from { visibility: hidden; } to { visibility: visible; } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-2deg); } }
@keyframes wink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes landed { from { box-shadow: 0 0 0 0 rgba(245, 184, 74, .55), 0 0 34px rgba(245, 184, 74, .3); } to { box-shadow: 0 0 0 14px rgba(245, 184, 74, 0), 0 0 34px rgba(245, 184, 74, 0); } }
@keyframes flash { from { background: rgba(140, 92, 245, .45); } to { background: rgba(140, 92, 245, 0); } }
@keyframes squish { 30% { transform: scale(1.14, .86); } 60% { transform: scale(.93, 1.08); } 100% { transform: none; } }
@keyframes say { 0% { opacity: 0; transform: translateY(5px) scale(.9); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 207, 143, .5); } 50% { box-shadow: 0 0 0 5px rgba(61, 207, 143, 0); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 4px); } 30%, 65% { opacity: 1; } 100% { opacity: 0; transform: translate(5px, -7px); } }
@keyframes deal { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(16deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(560px, 160px) rotate(16deg); } }

/* sections slide in as they scroll into view, where the browser can do that without scripts. Never on the last
   box: nothing below it scrolls, so on a tall window it would stay half faded at the bottom of the page */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
}

/* a still frame: tools/og.html renders the link preview with this stylesheet */
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- smaller screens */

/* the menu never runs into the notch (at least 16 px apart, measured 1 Oct 2026): Schools goes first, then Contact,
   then Tonight, then the whole menu */
@media (max-width: 1303px) { .menu a:nth-child(5) { display: none; } }
@media (max-width: 1170px) { .menu a:nth-child(6) { display: none; } }
@media (max-width: 1032px) { .menu a:nth-child(3) { display: none; } }
@media (max-width: 901px) { .menu { display: none; } }
@media (max-width: 1060px) {
  .tiles, .facts { grid-template-columns: repeat(2, 1fr); }
  .ib, .it, .cards-grid, .tonight-grid { grid-template-columns: 1fr; }
  .terms-card { position: static; }
  .summary { rotate: none; }
  .deck { max-width: 560px; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .steps, .pillars { grid-template-columns: 1fr; }
  .last .box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .lanes { grid-template-columns: 160px 1fr 104px; }
}
@media (max-width: 620px) {
  :root { --bar: 34px; --notch-w: 118px; }
  body { font-size: 16.5px; }
  .status-icons { display: none; }
  .brand span { display: none; }
  .widget { grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 12px 18px 10px; border-radius: 0 0 20px 20px; }
  .widget-wrap::before { border-radius: 0 0 21.5px 21.5px; }
  .widget .leechy { width: 40px; height: 40px; }
  .boop { left: 32px; }
  .w-head .topic, .w-head .timer, .w-btn { display: none; }
  .w-card p { font-size: 14px; }
  .chip:nth-child(3) { display: none; }
  .w-ended { top: 32px; }
  .w-ended .big { font-size: 22px; }
  .tuck-hint { top: 30%; padding: 0 20px; font-size: 14px; }
  .play { gap: 7px; margin-top: 34px; }
  .play-label { width: 100%; margin: 0 0 4px; text-align: center; }
  .subj { padding: 8px 12px 9px; font-size: 13.5px; }
  .sec { padding: 80px 0; }
  .tiles, .facts { grid-template-columns: 1fr; }
  .race { padding: 22px 18px 20px; border-radius: 22px; }
  .lanes { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .who { grid-column: 1 / -1; margin-top: 8px; }
  .scale { grid-column: 1; margin-top: 0; }
  .race-a { flex-direction: column; gap: 8px; }
  .deck { padding: 18px 16px 20px; border-radius: 24px; }
  .face { min-height: 220px; padding: 20px; }
  .face .txt { font-size: 19px; }
  .grades { gap: 6px; }
  .grades button { padding: 12px 2px; font-size: 13.5px; }
  .grades kbd { display: none; }
  .task { grid-template-columns: 22px 1fr auto; grid-template-areas: "box pill min" ". what what"; }
  .plan { padding: 12px 10px 12px; }
  .plan-title { font-size: 16px; }
  .ask-tomorrow { flex-direction: column; gap: 6px; }
  .moon { top: 36px; width: 52px; height: 52px; box-shadow: inset -12px 5px 0 0 #f4e3ae; }
  .group { grid-template-columns: 1fr; gap: 8px; }
  .group .g { padding-top: 0; }
  .summary { padding: 24px 20px; }
  .spec dl { grid-template-columns: 1fr; gap: 2px; }
  .spec dd { margin-bottom: 10px; }
  .last .box { padding: 30px 22px; }
}
