/* lessonleech.com, the home page: white and quiet, so the demos are the colour. Soft pastel panels (one per feature),
   black pill tabs, one violet for the main button and links, and Geist served from this site (assets/fonts, OFL). The
   app itself (the widget, the Mac screen, tonight's plan) keeps its own dark material. The moving parts are springs
   (assets/home.js). No trackers, nothing inline (the Content-Security-Policy allows none). No em dashes. */

@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --font: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;            /* the page */
  --bg-2: #ffffff;          /* raised surfaces */
  --bg-3: #f6f6f8;          /* quiet grey fields: FAQ rows, install steps */
  --fill: rgba(17, 17, 26, .06);
  --fill-2: rgba(17, 17, 26, .1);
  --label: #111118;
  --label-2: #4b4b57;
  --label-3: #686875;
  --sep: rgba(17, 17, 26, .09);
  --tint: #5b35d5;          /* links and focus: the worm's violet, deep enough for text */
  --glass: rgba(255, 255, 255, .8);
  --glass-edge: rgba(17, 17, 26, .08);
  --shadow-s: 0 1px 2px rgba(17, 17, 26, .05);
  --shadow-m: 0 1px 2px rgba(17, 17, 26, .04), 0 12px 32px -12px rgba(17, 17, 26, .14);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .06), 0 40px 90px -20px rgba(0, 0, 0, .35);
  --leechy: linear-gradient(135deg, #1ae6c7, #59a8ff 55%, #8c5cf5);
  --amber: #a35f00; --violet: #6d45e0; --mint: #0f7a50; --pink: #b02a72;
  --solid: #6b3df0; --solid-hover: #5a2fdc; --on-solid: #fff; --solid-glow: rgba(17, 17, 26, .22);   /* the main button */
  --ink: #111118; --on-ink: #fff;                                                                  /* tabs, small buttons */
  --tag-amber: #7a4a00; --tag-amber-bg: #ffe7b8; --tag-violet: #4a2aa8; --tag-violet-bg: #e9e1ff;
  --alt-section: #fff; --alt-surface: #f6f6f8; --card-face: #fff;
  /* one pastel per feature; each has a deep partner for text on it */
  --lav: #efeaff; --lav-deep: #4a2aa8;
  --sun: #fff3c4; --sun-deep: #6b4a00;
  --sky: #e5efff; --sky-deep: #1d4a99;
  --mint-bg: #e2f6ec; --mint-deep: #0f5c3c;
  --rose: #ffe9f1; --rose-deep: #8a1f55;
  --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 9px; --r-pill: 980px;
  --wrap: 1080px;
  --wide: 1180px;
  --display: var(--font); --body: var(--font);
}
.leecho-btn, .leecho-panel, .leecho-swarm {
  --ink-2: #14121c; --ink-3: #1a1923; --text: #f4f2ee; --muted: #a6a3b5; --faint: #6f6c80;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --accent: linear-gradient(90deg, #ff5212, #ff6bb5 52%, #8c5cf5); --spring: cubic-bezier(.2, 1.25, .35, 1);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 400 1.0625rem/1.5 var(--font); letter-spacing: -.005em;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--label); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--tint) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, #8c5cf5 30%, transparent); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; border-radius: var(--r-s); background: var(--bg-2); box-shadow: var(--shadow-m); }
.skip:focus { top: 1rem; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 2.5rem)); }

/* type: medium weight, tracking that tightens as it grows */
h1 { font-size: clamp(2.6rem, 5.6vw, 4.25rem); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.lead { margin-top: 1.1rem; max-width: 40rem; color: var(--label-2); font-size: clamp(1.1875rem, 1.7vw, 1.375rem); line-height: 1.42; letter-spacing: -.01em; }
.fine { margin-top: 1rem; color: var(--label-3); font-size: .8125rem; line-height: 1.45; letter-spacing: .004em; }
.fine b { color: var(--label-2); font-weight: 600; }

/* press feedback lives on pointer-down, and it's instant */
.btn-dl, .btn-plain, .bar-dl, .btn-quiet, .pill-btn, .term-row button, .lessons button, .w-btn, .tab, .w-tuck, .pcard, .task {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform 100ms ease-out, background-color .2s, color .2s, box-shadow .2s;
}
.btn-dl:active, .btn-plain:active, .bar-dl:active, .btn-quiet:active, .pill-btn:active, .term-row button:active,
.lessons button:active, .w-btn:active, .tab:active, .w-tuck:active, .task:active,
.btn-soft:active, .btn-ink:active, .tabs [role="tab"]:active { transform: scale(.97); }
.pcard:active { transform: scale(.985); }

.btn-dl {
  display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.45rem .85rem 1.2rem; border-radius: var(--r-pill);
  color: var(--on-solid); background: var(--solid); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 8px 24px -10px var(--solid-glow);
}
.btn-dl svg { width: 1.15rem; height: 1.15rem; }
.btn-dl:hover { text-decoration: none; background: var(--solid-hover); }
button.btn-dl { border: 0; font-family: inherit; cursor: pointer; }
.btn-dl[hidden] { display: none; }

/* the other downloads, one quiet line under the main button (left out by the build when there are none) */
.also { margin-top: .5rem; color: var(--label-3); font-size: .8125rem; line-height: 1.45; }
.also a { color: var(--tint); }
.also a::before { content: " "; }
.also a + a::before { content: " · "; color: var(--label-3); }
.also:not(:has(a)) { display: none; }
.phone .also, .phone .bar-dl { display: none; }
.btn-plain { display: inline-flex; align-items: center; padding: .85rem .4rem; color: var(--tint); font-size: 1.0625rem; font-weight: 500; }
.btn-quiet, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .5rem 1.05rem; border: 0;
  border-radius: var(--r-pill); cursor: pointer; color: var(--label); background: var(--fill); font-size: .9375rem; font-weight: 500;
}
.btn-quiet:hover, .pill-btn:hover { background: var(--fill-2); }

.tag {
  display: inline-flex; align-items: center; height: 1.4rem; padding: 0 .55rem; border-radius: 6px;
  font-size: .75rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
}
.tag.amber { color: var(--tag-amber); background: var(--tag-amber-bg); }
.tag.violet { color: var(--tag-violet); background: var(--tag-violet-bg); }
.tag.grad { color: #fff; background: #6d45e0; }

/* ---------------------------------------------------------------- the menu bar: a translucent layer, content under it */

.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.bar::before {           /* the material */
  content: ""; position: absolute; inset: 0; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.bar::after {            /* the scroll edge: a soft shade where content meets the bar, only once content is under it */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; opacity: 0;
  background: linear-gradient(var(--glass-edge), transparent); transition: opacity .25s;
}
.bar.under::after { opacity: 1; }
.bar-in { position: relative; display: flex; align-items: center; gap: 1.5rem; width: min(var(--wide), calc(100% - 2rem)); height: 3.25rem; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--label); font-weight: 650; letter-spacing: -.012em; text-decoration: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 1.375rem; height: 1.375rem; }
.bar-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .8125rem; letter-spacing: .005em; }
.bar-links a { color: var(--label-2); text-decoration: none; }
.bar-links a:hover { color: var(--label); }
.bar-dl {
  margin-left: .25rem; padding: .32rem .85rem; border-radius: var(--r-pill); color: var(--on-solid); background: var(--solid);
  font-size: .8125rem; font-weight: 600; text-decoration: none;
}
.bar-dl:hover { text-decoration: none; background: var(--solid-hover); }

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

.hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 2rem; text-align: center; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-inline: auto; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.1rem; margin-top: 2rem; }
.hero .fine { max-width: 34rem; }

/* the Mac: the top of a MacBook's screen, cut off by the page, with the notch and the app under it */
.mac { width: min(var(--wide), calc(100% - 2rem)); margin: clamp(2.25rem, 5vw, 3.5rem) auto 0; }
.mac-screen {
  position: relative; overflow: hidden; min-height: 36rem; padding: 1.95rem 1rem 6.5rem; border-radius: 26px 26px 0 0;
  border: 12px solid #0d0d0f; border-bottom: 0; color: #f5f5f7; text-align: left;
  background:
    radial-gradient(70% 90% at 18% 0%, rgba(140, 92, 245, .55), transparent 60%),
    radial-gradient(60% 80% at 92% 30%, rgba(26, 230, 199, .32), transparent 62%),
    radial-gradient(90% 70% at 50% 120%, rgba(255, 107, 181, .28), transparent 60%),
    #120f24;
  box-shadow: var(--shadow-l);
  -webkit-mask-image: linear-gradient(#000 84%, transparent);
  mask-image: linear-gradient(#000 84%, transparent);
}
.mac-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  height: 1.6rem; padding: 0 .9rem; font-size: .75rem; font-weight: 600; letter-spacing: .01em; color: rgba(255, 255, 255, .88);
  background: rgba(10, 8, 22, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mac-status { display: inline-flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; }
.mac-status svg { width: .95rem; height: .95rem; }
.mac-status .batt { width: 1.2rem; }
.notch {
  position: absolute; left: 50%; top: 0; z-index: 5; width: clamp(7.5rem, 17vw, 11.5rem); height: 1.95rem; translate: -50% 0;
  border-radius: 0 0 .95rem .95rem; background: #000;
}
/* the widget, drawn like the app (notch/LessonLeech.swift, its --demo-shots): a black bar hanging from the notch
   with Leechy in a pill beside it; hovered (or tapped) it opens into the whole card. home.js plays a lesson in it
   and moves it with springs (tuck it up into the notch, pull it back down). Opening and closing is one shape: home.js
   (morph) animates the box's width and height together while the bar and the card, laid out at their own final
   widths, cross-fade inside it and Leechy flies between the pill and the card. */
.sheet {
  position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; margin-top: -1.95rem;
  will-change: transform, opacity; touch-action: pan-y;
  --amber: #ffbf47; --mint: #34d399; --pink: #ff5f8f; --vio: #9b6bff; --coral: #ff7a45;
}
.widget {
  --w: min(25.5rem, calc(100% - 7.25rem));
  position: relative; width: var(--w); margin: 0; padding: 1.95rem 0 0; border-radius: 0 0 1.35rem 1.35rem;
  color: #fff; font-family: ui-rounded, "SF Pro Rounded", var(--font, system-ui), sans-serif;
  border: 1px solid transparent; border-top: 0;
  background: linear-gradient(180deg, #000 30%, #110d1c) padding-box, linear-gradient(90deg, #ff6a3d, #c04fd0 50%, #8c5cf5) border-box;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7);
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.sheet.dragging .widget { cursor: grabbing; }
.widget.open { --w: min(44rem, 100%); }
.w-bar, .w-full { position: relative; }
/* Leechy's pill: beside the bar, inside the card once it opens. The pill keeps its box either way (so home.js can fly
   it from one place to the other); its background and the sound bars fade, Leechy grows. */
.w-leechy {
  position: absolute; right: calc(100% + .6rem); bottom: .2rem; display: flex; align-items: center; gap: .55rem; width: max-content;
  height: 2.75rem; padding: 0 .85rem 0 .7rem; isolation: isolate;
}
.w-leechy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.4rem; transition: opacity .25s ease-out;
  background: linear-gradient(180deg, #1c1622, #0d0b12); box-shadow: inset 0 0 0 1px rgba(155, 107, 255, .35), 0 10px 24px -8px rgba(0, 0, 0, .6);
}
.w-leechy .leechy { width: 2rem; height: 2rem; overflow: visible; transition: transform .3s, width .42s cubic-bezier(.32, .72, 0, 1), height .42s cubic-bezier(.32, .72, 0, 1); }
.w-leechy .w-bars { transition: opacity .2s; }
.widget.open .w-leechy { right: auto; left: .2rem; top: 2.275rem; bottom: auto; }   /* Leechy itself at .9rem, 2.2rem */
.widget.open .w-leechy .leechy { width: 2.9rem; height: 2.9rem; }
.widget.open .w-leechy::before, .widget.open .w-leechy .w-bars { opacity: 0; }
.w-leechy.think .leechy { transform: rotate(-8deg); }
/* ending: Leechy curls up and chases its tail, the apps' own loading pose and motion (notch/LessonLeech.swift
   CurlBody and its spin, windows/ui/leechy.js "loading"): a full turn anticlockwise every 1.4s, linear, about its
   centre. With reduced motion it stays curled and still. */
.w-leechy .leechy-curl { display: none; width: 2rem; height: 2rem; overflow: visible; }
.w-leechy.curl .leechy { display: none; }
.w-leechy.curl .leechy-curl { display: block; }
.leechy-curl .spin { transform-box: view-box; transform-origin: 50px 50px; animation: w-curl 1.4s linear infinite; }
@keyframes w-curl { to { transform: rotate(-360deg); } }
/* the sound bars: pink while it hears the class, grey dots when nobody is talking */
.w-bars { display: inline-flex; align-items: center; gap: 3px; height: 1rem; }
.w-bars i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.w-bars.on i { background: var(--pink); height: .85rem; }
.w-bars.on i:nth-child(2) { height: .55rem; } .w-bars.on i:nth-child(3) { height: 1rem; } .w-bars.on i:nth-child(4) { height: .6rem; }
.w-bars.on.talk i { animation: w-bar .9s ease-in-out infinite alternate; }
.w-bars.on.talk i:nth-child(2) { animation-delay: -.3s; } .w-bars.on.talk i:nth-child(3) { animation-delay: -.6s; } .w-bars.on.talk i:nth-child(4) { animation-delay: -.15s; }
@keyframes w-bar { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

/* the bar: one line (or a point, or the answer) and the clock */
.w-bar {
  display: flex; align-items: flex-start; gap: .75rem; width: 100%; padding: .55rem 1.05rem .8rem; border: 0; border-radius: 0 0 1.35rem 1.35rem;
  cursor: pointer; color: inherit; background: none; font: inherit; text-align: left; transition: background .25s, color .25s;
}
.widget.open .w-bar { display: none; }
.w-line { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 700; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-time { flex: none; color: rgba(255, 255, 255, .42); font: 600 .8125rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.w-bar.multi .w-line { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.w-bar.paused .w-line::before { content: "❙❙"; margin-right: .5rem; color: var(--amber); letter-spacing: -.1em; }
/* a new point lands: the bar goes white for a moment (pointFresh). A layer under the bar fades in and out (a gradient
   background can't), and it never shows on the open card (it goes at once when the card opens) */
.widget::before {
  content: ""; position: absolute; inset: 0; border-radius: 0 0 calc(1.35rem - 1px) calc(1.35rem - 1px); background: #f4f2ee;
  opacity: 0; transition: opacity .4s ease-out; pointer-events: none;
}
.widget:not(.open):has(> .w-bar.fresh)::before { opacity: 1; transition-duration: .2s; }
.widget.open::before { opacity: 0; transition: none; }
.w-bar.fresh { color: #18151f; }
.w-bar.fresh .w-time { color: rgba(0, 0, 0, .35); }
.w-new { flex: none; margin-top: .12rem; color: var(--vio); font-size: .6875rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
/* the answer in the bar */
.w-ans { flex: 1; min-width: 0; padding-left: .7rem; box-shadow: inset 3px 0 0 var(--amber); }
.w-ans .w-row { gap: .5rem; }
.w-ans .w-q { color: rgba(255, 255, 255, .62); }
.w-ans .w-a { margin-top: .15rem; font-size: .9375rem; line-height: 1.3; }
.w-ans .w-k.amber { padding: 0; background: none; }

/* the whole card */
.w-full { padding: .35rem 1.15rem 1.1rem 5rem; }
.w-full[hidden], .w-card[hidden], .w-simple[hidden], .w-chips[hidden] { display: none; }
/* while it opens or closes (home.js morph): the bar and the card are both shown, each at its own final width, pinned
   where they end up (--a: 0.5 when the widget grows from its middle, 1 when it grows from its right edge), so no line
   re-wraps; the card is clipped to the moving box */
.widget.morph > .w-bar { position: absolute; display: flex; top: var(--bt); width: var(--bw); left: calc(var(--a) * (100% - var(--bw))); }
.widget.morph > .w-full { position: absolute; display: block; top: var(--ft); width: var(--fw); left: calc(var(--a) * (100% - var(--fw))); }
.widget.morph > .w-leechy { left: var(--lx); top: var(--ly); right: auto; bottom: auto; }
.w-head { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.w-subject { flex: none; padding: .22rem .65rem; border-radius: 999px; color: #a98bff; background: rgba(140, 92, 245, .2); font-size: .8125rem; font-weight: 700; }
.w-topic { flex: 1; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .5); font-size: .8125rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.w-state { flex: none; padding: .22rem .65rem; border-radius: 999px; color: var(--mint); background: rgba(52, 211, 153, .13); font-size: .8125rem; font-weight: 700; }
.w-state.paused { color: var(--amber); background: rgba(255, 191, 71, .13); }
.w-card { position: relative; margin-top: .6rem; padding: .7rem .9rem .75rem 1.3rem; border-radius: .8rem; background: #17141d; }
.w-card::before { content: ""; position: absolute; left: .6rem; top: .75rem; bottom: .75rem; width: 3px; border-radius: 2px; background: var(--pink); }
.w-ask { background: #241c14; }
.w-ask::before { background: var(--amber); }
.w-row { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.w-k { flex: none; display: inline-flex; align-items: center; height: 1.35rem; padding: 0 .55rem; border-radius: 999px; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.w-k.amber { color: var(--amber); background: rgba(255, 191, 71, .14); }
.w-k.grad { color: #fff; background: linear-gradient(90deg, #ff6a3d, #ff4f8b 55%, #a46bff); }
.w-k.violet { color: #a98bff; background: rgba(140, 92, 245, .2); }
.w-q { flex: 1; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: .8125rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.w-fast { flex: none; display: inline-flex; align-items: center; gap: .15rem; padding: .12rem .45rem; border-radius: 999px; color: #ff8a5c; background: rgba(255, 90, 60, .16); font: 700 .75rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.w-fast svg { width: .75rem; height: .75rem; }
.w-pin { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.w-pin svg { width: .85rem; height: .85rem; }
.w-a { margin-top: .3rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.32; }
.w-num { color: rgba(255, 255, 255, .4); font-size: .75rem; font-weight: 700; }
.w-p { margin-top: .35rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.32; }
.w-simple { display: flex; align-items: flex-start; gap: .6rem; margin-top: .65rem; color: #d9cbff; font-size: .9375rem; font-weight: 600; line-height: 1.38; }
.w-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.w-chip { display: inline-flex; gap: .4rem; padding: .3rem .65rem; border-radius: 999px; color: rgba(255, 255, 255, .78); font-size: .8125rem; font-weight: 600; line-height: 1.3;
  background: rgba(255, 191, 71, .07); box-shadow: inset 0 0 0 1px rgba(255, 191, 71, .2); }
.w-chip b { color: var(--amber); font-weight: 750; }
.w-chip:nth-child(2) { background: rgba(255, 95, 143, .07); box-shadow: inset 0 0 0 1px rgba(255, 95, 143, .22); }
.w-chip:nth-child(2) b { color: var(--pink); }
.w-chip:nth-child(3) { background: rgba(52, 211, 153, .07); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .2); }
.w-chip:nth-child(3) b { color: var(--mint); }
.w-foot { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.w-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--mint); }
.w-cap { flex: 1; min-width: 0; overflow: hidden; color: rgba(255, 255, 255, .55); font-size: .8125rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.w-btn { flex: none; padding: .38rem .8rem; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: .8125rem; font-weight: 700; transition: filter .15s; }
.w-btn:hover { filter: brightness(1.15); }
.w-btn.amber { color: var(--amber); background: #33281b; }
.w-btn.orange { color: #fff; background: #e4501c; }
.w-btn.red { color: #ff6b81; background: #3a1820; }
/* the arrow under the widget tucks it into the notch */
.w-tuck {
  display: grid; place-items: center; width: 3.1rem; height: 1.55rem; margin-top: -1px; padding: 0; border: 0; border-radius: 0 0 .7rem .7rem;
  cursor: pointer; color: rgba(255, 255, 255, .85); background: #000; touch-action: none;
}
.w-tuck svg { width: 1rem; height: 1rem; }
.w-tuck:hover { color: #fff; }
/* tucked: the notch grows a little, with the two lights and an arrow to bring it back */
.tab {
  position: absolute; left: 50%; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between;
  width: calc(clamp(7.5rem, 17vw, 11.5rem) + 7rem); height: 1.95rem; padding: 0 .85rem; translate: -50% 0; border: 0;
  border-radius: 0 0 .95rem .95rem; cursor: pointer; color: rgba(255, 255, 255, .6); background: #000; touch-action: none;
}
.tab[hidden] { display: none; }
.tab svg { width: .95rem; height: .95rem; rotate: 180deg; }
.tab-dots { display: inline-flex; gap: .4rem; }
.tab-dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--mint, #34d399); }
.tab-dots i + i { background: #ffbf47; }
/* the lesson streams in word by word (home.js) */
.playing .wd { opacity: 0; transition: opacity .2s ease-out; }
.playing .wd.on { opacity: 1; }
.playing .w-chip { opacity: 0; transition: opacity .3s ease-out; }
.playing .w-chip.on { opacity: 1; }

.hero-play { display: flex; flex-direction: column; align-items: center; gap: .85rem; margin-top: -3.5rem; position: relative; z-index: 2; }
.lessons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
.lessons[hidden], .hint[hidden], .deck-ctrl[hidden], .btn-quiet[hidden] { display: none; }
.lessons-label { margin-right: .35rem; color: var(--label-3); font-size: .8125rem; }
.lessons button {
  padding: .4rem .85rem; border: 0; border-radius: var(--r-pill); cursor: pointer;
  color: var(--label); background: var(--bg-2); box-shadow: var(--shadow-s); font-size: .875rem; font-weight: 500;
}
.lessons button[aria-pressed="true"] { color: var(--on-solid); background: var(--solid); }
.hint { color: var(--label-3); font-size: .8125rem; }
.demo-note { color: var(--label-3); font-size: .75rem; }
.touch-only { display: none; }
@media (hover: none) { .hover-only { display: none; } .touch-only { display: inline; } }


/* Leechy's eye */
.leechy .pupil { transform-box: fill-box; transform-origin: center; animation: wink 5.2s ease-in-out 2.2s infinite; }
@keyframes wink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

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

.sec { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.sec.alt { background: var(--alt-section); }
.sec.alt .tile, .sec.alt .steps li { background: var(--alt-surface); }
.sec > .wrap > h2, .sec > .wrap > .lead { text-align: center; margin-inline: auto; }
.sec > .wrap > h2 { max-width: 18ch; }

/* the answer race */
.race {
  max-width: 46rem; margin: 3rem auto 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-xl);
  background: var(--bg-2); box-shadow: var(--shadow-m);
}
.race-q { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; }
.race-q p { flex: 1 1 18rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.race-subj { color: var(--label-3); font-size: .8125rem; }
.lanes { display: grid; grid-template-columns: 7.5rem 1fr 6.5rem; align-items: center; gap: .8rem 1rem; margin-top: 1.6rem; }
.lane { display: contents; }
.who { color: var(--label-2); font-size: .875rem; font-weight: 600; }
.track { position: relative; height: .7rem; overflow: hidden; border-radius: var(--r-pill); background: var(--fill); }
.fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 1)); border-radius: inherit; }
.lane.you .fill { background: var(--leechy); }
.lane.class .fill { background: var(--fill-2); }
.when { color: var(--label-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.lane.you .when { color: var(--mint); font-weight: 650; }
.scale { grid-column: 2; display: flex; justify-content: space-between; color: var(--label-3); font-size: .6875rem; font-variant-numeric: tabular-nums; }
.race-a { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: var(--r-l); background: var(--fill); }
.race-a p { font-size: 1.0625rem; font-weight: 500; line-height: 1.42; }
.race .btn-quiet { margin-top: 1.1rem; }
.race-a.wait { opacity: 0; }
.race-a { transition: opacity .3s; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: var(--wrap); margin: 4rem auto 0; padding: 0; list-style: none; }
.facts b { display: block; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.012em; }
.facts span { display: block; margin-top: .35rem; color: var(--label-3); font-size: .9375rem; line-height: 1.45; }

/* after the bell: tiles sized by what matters most */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; width: min(var(--wide), calc(100vw - 2.5rem)); margin: 3.5rem 0 0; position: relative; left: 50%; translate: -50% 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: .6rem; overflow: hidden; padding: clamp(1.4rem, 2.6vw, 2.1rem); border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow-s); }
.tile > p { color: var(--label-3); font-size: 1rem; line-height: 1.45; max-width: 34rem; }
.t-cards { grid-column: span 4; grid-row: span 2; }
.t-summary, .t-ask { grid-column: span 2; }

/* the flashcards: a deck you flick (home.js) */
.deck { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; margin-top: 1rem; }
.deck-stage { position: relative; width: min(25rem, 100%); aspect-ratio: 8 / 5; margin: .5rem 0 1.4rem; perspective: 1400px; }
.card { position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; }
.card.static { position: relative; cursor: default; }
.card-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem 1.4rem;
  border-radius: var(--r-l); background: var(--bg-2); box-shadow: 0 0 0 1px var(--sep), 0 14px 30px -14px rgba(0, 0, 0, .3);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card.static .face { position: relative; }
.t-cards .face { background: var(--card-face); }
.face.back { transform: rotateY(180deg); }
.face p { font-size: 1.1875rem; font-weight: 600; line-height: 1.32; letter-spacing: -.012em; }
.face.back p { font-weight: 500; }
.card-subj { color: var(--violet); font-size: .75rem; font-weight: 650; letter-spacing: .01em; }
.card-hint { margin-top: auto; color: var(--label-3); font-size: .8125rem; }
.stamp {      /* the grade a throw would give, at the card's empty corner (the subject is on the left) */
  position: absolute; top: 1.1rem; right: 1.1rem; padding: .2rem .55rem; border-radius: 7px; font-size: .8125rem; font-weight: 700;
  opacity: 0; pointer-events: none; transform: translateZ(1px);
}
.stamp.again { color: #8a5300; background: #ffe7b8; }
.stamp.good { color: #0a5c3b; background: #c9f2dd; }
.card.dragging { cursor: grabbing; }
.card.leaving { opacity: 0; transition: opacity .18s ease-out; }
/* reduced motion: the card's two sides cross-fade instead of turning over */
.flat .face { transition: opacity .2s ease-out; }
.flat .face.back { transform: none; opacity: 0; }
.flat .card.show-back .face.back { opacity: 1; }
.flat .card.show-back .face.front { opacity: 0; }
.deck-ctrl { display: flex; gap: .5rem; }
.deck-count { margin-top: .9rem; min-height: 1.3em; color: var(--label-3); font-size: .875rem; font-variant-numeric: tabular-nums; }
.deck-done { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .5rem; text-align: center; }
.deck-done .leechy { width: 4.5rem; height: 4.5rem; overflow: visible; }
.deck-done b { font-size: 1.3125rem; letter-spacing: -.012em; }

/* the summary */
.mini-sum { margin-top: .8rem; padding: 1rem 1.1rem; border-radius: var(--r-l); background: var(--fill); font-size: .9375rem; line-height: 1.45; }
.ms-top { display: flex; justify-content: space-between; gap: .5rem; font-size: .8125rem; }
.ms-top span { color: var(--label-3); }
.ms-h { margin-top: .75rem; color: var(--label-3); font-size: .75rem; font-weight: 650; letter-spacing: .01em; }
.mini-sum .ms-h + p { margin-top: .2rem; }

/* ask leechy */
.chat { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.bubble { max-width: 88%; padding: .6rem .85rem; border-radius: 1.1rem; font-size: .9375rem; line-height: 1.4; }
.bubble.me { align-self: flex-end; color: #fff; background: #6d45e0; border-bottom-right-radius: .35rem; }
.bubble.bot { align-self: flex-start; background: var(--fill); border-bottom-left-radius: .35rem; }

.ring-bg { fill: none; stroke: var(--fill); stroke-width: 4.5; }
.ring-fg { fill: none; stroke: #8c5cf5; stroke-width: 4.5; stroke-linecap: round; }


/* tonight: the page turns to evening */
.sec.night { background: var(--bg); }
.plan {
  margin: 3rem auto 0; padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: var(--r-xl); text-align: left;
  color: #f5f5f7; background: #17161c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow-l);
}
.plan h3 { color: #fff; }
.plan-head { display: flex; align-items: center; gap: .8rem; padding: .2rem .3rem 1rem; }
.plan-clock { color: #c9b8ff; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-title { flex: 1; font-weight: 650; letter-spacing: -.01em; }
.ring { position: relative; width: 2.6rem; height: 2.6rem; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.plan .ring-bg { stroke: rgba(255, 255, 255, .14); stroke-width: 3.4; }
.plan .ring-fg { stroke: #3dcf8f; stroke-width: 3.4; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .6875rem; font-variant-numeric: tabular-nums; }
.task {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .75rem; padding: .8rem .6rem; border-radius: var(--r-m);
  cursor: pointer; border-top: 1px solid rgba(255, 255, 255, .08);
}
.task:hover { background: rgba(255, 255, 255, .04); }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.box { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.box svg { width: .95rem; height: .95rem; color: #05040c; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.task input:checked + .box { background: #3dcf8f; box-shadow: none; }
.task input:checked + .box svg { opacity: 1; transform: none; }
.task input:checked ~ .what { color: rgba(255, 255, 255, .45); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.task input:focus-visible + .box { outline: 3px solid #c9b8ff; outline-offset: 3px; }
.pill { padding: .15rem .5rem; border-radius: 6px; font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.pill.amber { color: #1d1300; background: #f5b84a; }
.pill.violet { color: #fff; background: #7a52e8; }
.pill.mint { color: #04291a; background: #4fd69c; }
.pill.pink { color: #33061d; background: #ff8cc6; }
.what { font-size: .9375rem; line-height: 1.4; }
.min { color: rgba(255, 255, 255, .55); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-tomorrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; padding: .9rem .6rem .2rem; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: .9375rem; }
.plan-foot { padding: .9rem .6rem .2rem; color: rgba(255, 255, 255, .6); font-size: .875rem; }

/* it speaks IB */
.ib { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; margin-top: 3.5rem; }
.terms, .groups { padding: clamp(1.4rem, 3vw, 2.1rem); border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow-s); }
.terms-intro { margin-top: .6rem; color: var(--label-3); font-size: 1rem; line-height: 1.45; }
.term-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.term-row button { padding: .45rem .85rem; border: 0; border-radius: var(--r-pill); cursor: pointer; color: var(--label); background: var(--fill); font-size: .9375rem; font-weight: 500; }
.term-row button[aria-pressed="true"] { color: #fff; background: #6d45e0; }
.term-def { margin-top: 1.1rem; min-height: 3em; font-size: 1.0625rem; line-height: 1.45; transition: opacity .15s; }
.term-def.swap { opacity: 0; }
.paper-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sep); color: var(--label-3); font-size: .9375rem; line-height: 1.45; }
.groups { display: grid; gap: 1rem; align-content: start; }
.group h3 { font-size: .8125rem; font-weight: 650; letter-spacing: .01em; color: var(--label-3); }
.group p { margin-top: .2rem; font-size: .9375rem; line-height: 1.45; }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3.5rem; }
.pv svg { width: 2rem; height: 2rem; color: var(--violet); }
.pv h3 { margin-top: .9rem; font-size: 1.125rem; }
.pv p { margin-top: .4rem; color: var(--label-3); font-size: .9375rem; line-height: 1.47; }
.consent { display: flex; align-items: flex-start; gap: 1rem; max-width: 46rem; margin: 3.5rem auto 0; padding: 1.2rem 1.4rem; border-radius: var(--r-l); background: var(--fill); }
.consent svg { flex: none; width: 1.8rem; height: 1.8rem; color: var(--amber); }
.consent p { font-size: 1rem; line-height: 1.47; color: var(--label-2); }
.consent b { color: var(--label); }

/* plans */
.pstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem 1.6rem 1.6rem; border-radius: var(--r-xl);
  color: var(--label); background: var(--bg-2); box-shadow: var(--shadow-s); text-decoration: none;
}
.pcard:hover { text-decoration: none; box-shadow: var(--shadow-m); }
.pc-plus { box-shadow: 0 0 0 2px #8c5cf5, var(--shadow-m); }
.pc-pop, .pc-best { position: absolute; top: 1.2rem; right: 1.2rem; padding: .2rem .6rem; border-radius: var(--r-pill); font-size: .75rem; font-weight: 650; }
.pc-pop { color: #fff; background: #6d45e0; }
.pc-best { color: var(--mint); background: color-mix(in srgb, #3dcf8f 16%, transparent); }
.pc-top { display: flex; flex-direction: column; gap: .2rem; }
.pc-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -.022em; }
.pc-for { color: var(--label-3); font-size: .9375rem; }
.pc-pricing { display: flex; flex-direction: column; gap: .35rem; }
.pc-price b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pc-price .per { margin-left: .2rem; color: var(--label-3); font-size: .9375rem; }
/* the launch offer, read the way the app's plan tiles show it (leech/onboarding.py price_of): the saving as a green
   pill, the regular price struck through just above the price you pay, at a size that reads as a price */
.pc-was { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; color: var(--label-3); font-size: .8125rem; }
.pc-was .save {
  padding: .3rem .7rem; border-radius: var(--r-pill); color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent);
  font-size: .9375rem; font-weight: 750; line-height: 1; white-space: nowrap;
}
.pc-was .was { white-space: nowrap; }
.pc-was s {
  margin-right: .3rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  text-decoration-color: var(--pink); text-decoration-thickness: 2px;
}
.pc-hrs { display: flex; align-items: baseline; gap: .45rem; margin-top: .4rem; padding-top: .9rem; border-top: 1px solid var(--sep); }
.pc-hrs b { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.pc-hrs span { color: var(--label-2); font-size: .9375rem; }
.pc-note { color: var(--label-2); font-size: .9375rem; line-height: 1.45; }
.pc-go { margin-top: auto; color: var(--tint); font-weight: 600; }
.pstrip-fine { margin-top: 1.6rem; text-align: center; color: var(--label-3); font-size: .875rem; }
.hot { color: var(--pink); font-weight: 650; }
/* the launch offer: both prices are in the page, the class on <html> picks one (tools/build_site.py, assets/offer.js) */
.offer-on .regular-only { display: none !important; }
html:not(.offer-on) .offer-only { display: none !important; }

/* install */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.steps li { padding: 1.6rem; border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow-s); }
.step-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--on-solid); background: var(--solid); font-weight: 650; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 1rem; font-size: 1.1875rem; }
.steps p { margin-top: .45rem; color: var(--label-2); font-size: .9375rem; line-height: 1.47; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.reqs li { padding: .35rem .8rem; border-radius: var(--r-pill); background: var(--fill); color: var(--label-2); font-size: .8125rem; }

/* schools */

/* faq */
.faq { margin-top: 3rem; border-top: 1px solid var(--sep); }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem; margin-right: .3rem; border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3);
  rotate: 45deg; translate: 0 -.15rem; transition: rotate .25s ease, translate .25s ease;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 .15rem; }
.faq details p { padding: 0 0 1.3rem; color: var(--label-2); font-size: 1rem; line-height: 1.55; max-width: 44rem; }

/* last word */
/* reviews (site/_pages/reviews.json, tools/build_site.py): the student's words, then a name row with initials */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: 1.25rem; margin-top: 3.5rem; }
.review { display: flex; flex-direction: column; margin: 0; padding: 1.8rem 1.7rem 1.5rem; border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow-s); }
.review blockquote { flex: 1; margin: 0; }
.review blockquote p { color: var(--label); font-size: 1.0625rem; line-height: 1.5; quotes: "\201C" "\201D"; }
.review blockquote p::before { content: open-quote; }
.review blockquote p::after { content: close-quote; }
.review figcaption { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--sep); }
.review .avatar { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--leechy); color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .02em; }
.review .who { display: grid; gap: .2rem; min-width: 0; }
.review .who b { font-size: .9375rem; font-weight: 650; }
.review .who span { color: var(--label-3); font-size: .8125rem; }
.reviews-note { margin-top: 1.5rem; color: var(--label-3); font-size: .8125rem; }

.last { padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: center; }
.last-leechy { width: 6rem; height: 6rem; margin: 0 auto 1.4rem; overflow: visible; }
.last .lead { margin-inline: auto; }
.last .fine a { color: var(--tint); }

/* footer */
.foot { padding: 2rem 0 5.5rem; border-top: 1px solid var(--sep); color: var(--label-3); font-size: .8125rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot .brand { font-size: .9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.foot nav a { color: var(--label-2); }
.copy { margin-left: auto; }

/* ---------------------------------------------------------------- the white, pastel layer */

/* the bar: white, links in the middle, the violet Download on the right */
.bar-links { margin: 0 auto; gap: 1.9rem; font-size: .9375rem; font-weight: 500; }
.bar-links a { color: var(--label); }
.bar-links a:hover { color: var(--tint); text-decoration: none; }
.bar-dl { padding: .45rem 1rem; border-radius: var(--r-pill); color: var(--on-solid); background: var(--solid); font-size: .875rem; font-weight: 600; }

/* hero: one underlined word, one big button, two small doors for parents and schools */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem; }
.hero h1 { max-width: 16ch; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark-line { position: absolute; left: -2%; right: -2%; bottom: -.12em; width: 104%; height: .2em; overflow: visible; }
.mark-line path { fill: none; stroke: var(--solid); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cta-stack { display: grid; gap: .6rem; width: min(25rem, 100%); margin-top: 2.2rem; }
.cta-stack .btn-dl { justify-content: center; width: 100%; padding: .95rem 1.4rem; border-radius: 14px; font-size: 1.0625rem; }
.roles { display: grid; gap: .6rem; }
.btn-soft { transition: transform 100ms ease-out, background-color .2s; display: flex; align-items: center; justify-content: center; padding: .8rem 1rem; border-radius: 14px; color: var(--label); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--sep); font-size: .9375rem; font-weight: 500; text-align: center; }
.btn-soft:hover { text-decoration: none; background: var(--fill-2); }
.btn-dl { border-radius: 14px; box-shadow: 0 10px 24px -12px var(--solid-glow); }

/* four facts in one bordered strip */
.stats-sec { padding: 1rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--sep); border-radius: var(--r-l); background: var(--bg); }
.stats li { padding: 1.3rem 1.4rem 1.4rem; }
.stats li + li { border-left: 1px solid var(--sep); }
.stats b { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -.025em; }
.stats span { display: block; margin-top: .4rem; color: var(--label-3); font-size: .875rem; line-height: 1.45; }

/* sections: a calmer rhythm on white */
.sec { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.sec.alt { background: var(--bg); }

/* pill tabs, black when picked */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 2.2rem auto 0; }
.tabs [role="tab"] { padding: .55rem 1.1rem; border: 0; border-radius: var(--r-pill); color: var(--label-2); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--sep); font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.tabs [role="tab"]:hover { color: var(--label); background: var(--fill-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--on-ink); background: var(--ink); box-shadow: none; }

/* one big pastel panel per feature: the demo on the left, the words on the right */
.panels { margin-top: 1.8rem; }
.panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.4rem, 3.5vw, 3rem); border-radius: var(--r-xl); text-align: left; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; letter-spacing: -.035em; }
.panel-copy > p { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.55; }
.panel-note { font-weight: 600; }
.ticks { display: grid; gap: .55rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .9875rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1rem; height: 1rem; border-radius: 50%; background: currentColor; opacity: .18; }
.ticks li::after { content: ""; position: absolute; left: .33rem; top: .52em; width: .34rem; height: .2rem; border: solid currentColor; border-width: 0 0 2px 2px; rotate: -45deg; }
.p-lav { background: var(--lav); color: var(--lav-deep); }
.p-sun { background: var(--sun); color: var(--sun-deep); }
.p-sky { background: var(--sky); color: var(--sky-deep); }
.p-mint { background: var(--mint-bg); color: var(--mint-deep); }
.panel h3, .bcard h3 { color: inherit; }
.panel .race, .panel .deck, .panel .mini-sum, .panel .plan { margin: 0; color: var(--label); }
.panel .race { padding: 1.4rem; border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-m); }
.panel .mini-sum { padding: 1.4rem; border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-m); }
.panel .plan { color: #f5f5f7; }

/* pastel cards: a small bento */
.bento { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; width: auto; margin: 3rem 0 0; position: static; translate: none; left: auto; }
.bcard { padding: clamp(1.3rem, 2.5vw, 1.9rem); border-radius: var(--r-xl); text-align: left; }
.bcard > p { margin-top: .5rem; font-size: 1rem; line-height: 1.5; }
.c-wide { grid-column: span 3; }
.c-lav { grid-column: span 2; background: var(--lav); color: var(--lav-deep); }
.c-sky { background: var(--sky); color: var(--sky-deep); }
.c-sun { background: var(--sun); color: var(--sun-deep); }
.c-full { grid-column: 1 / -1; }
.bcard .terms, .bcard .groups { margin: 0; padding: 0; background: none; box-shadow: none; color: inherit; }
.bcard .groups { margin-top: 1rem; }
.bcard .chat { margin-top: 1.2rem; }

/* parents: four plain facts, then the teacher's OK */
.privacy { gap: 1rem; }
.pv { padding: 1.4rem; border-radius: var(--r-l); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--sep); }
.pv:nth-child(1) { background: var(--mint-bg); box-shadow: none; }
.pv:nth-child(2) { background: var(--sky); box-shadow: none; }
.pv:nth-child(3) { background: var(--rose); box-shadow: none; }
.pv:nth-child(4) { background: var(--sun); box-shadow: none; }
.pv svg { color: var(--label); }
.pv p { color: var(--label-2); }
.consent { background: var(--lav); }
.consent svg { color: var(--lav-deep); }

/* plans and setup: white cards with a hairline */
.pcard { border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--sep); }
.pc-plus { box-shadow: inset 0 0 0 2px var(--solid), var(--shadow-m); }
.pc-pop { background: var(--solid); }
.steps li { background: var(--bg-3); box-shadow: none; }

/* FAQ: grey rows with a round plus */
.faq { display: grid; gap: .55rem; margin-top: 1.6rem; border-top: 0; }
.faq[hidden] { display: none; }
.faq details { border: 0; border-radius: var(--r-m); background: var(--bg-3); }
.faq summary { position: relative; padding: 1rem 3.6rem 1rem 1.2rem; font-size: 1rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 1rem; width: 1.6rem; height: 1.6rem; margin: 0; border: 0; border-radius: 50%; display: grid; place-items: center; translate: 0 -50%; rotate: 0deg; color: var(--on-ink); background: var(--ink); font-size: 1.1rem; font-weight: 500; line-height: 1; transition: rotate .25s; }
.faq details[open] summary::after { rotate: 45deg; translate: 0 -50%; }
.faq details p { padding: 0 1.2rem 1.2rem; }
.still { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.6rem; padding: 1.5rem 1.6rem; border-radius: var(--r-l); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--sep); text-align: left; }
.still h3 { font-size: 1.1875rem; }
.still p { margin-top: .35rem; color: var(--label-2); font-size: .9375rem; }
.btn-ink { display: inline-flex; align-items: center; margin-top: 1rem; padding: .6rem 1.1rem; border-radius: var(--r-pill); color: var(--on-ink); background: var(--ink); font-size: .9375rem; font-weight: 600; }
.btn-ink:hover { text-decoration: none; background: #000; }
.panel-leechy { flex: none; width: 4.5rem; height: 4.5rem; overflow: visible; }

/* the close: Leechy, large, on lavender */
.last-box { display: flex; flex-direction: column; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; border-radius: var(--r-xl); background: var(--lav); }
.last-box h2 { max-width: 16ch; }
.last-box .lead { color: var(--label-2); }
.last-leechy { width: 7rem; height: 7rem; }

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

@media (max-width: 1068px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wide, .c-lav { grid-column: 1 / -1; }
  .facts, .privacy { grid-template-columns: repeat(2, 1fr); }
  .bar-links { gap: 1.1rem; }
}
@media (max-width: 860px) {
  .bar-links { display: none; }
  .bar-dl { margin-left: auto; }
  .ib { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-copy { order: -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--sep); }
  /* the plans: a row you swipe, with the browser's own momentum and snapping */
  .pstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 21rem); overflow-x: auto; padding: .4rem 1.25rem 1.2rem;
            margin-inline: -1.25rem; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pstrip::-webkit-scrollbar { display: none; }
  .pcard { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .wrap, .wrap.narrow { width: calc(100% - 2rem); }
  .pstrip { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--sep); }
  .stats li { padding: 1rem 1.2rem; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: .2rem 1rem; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] { flex: none; }
  .panel { padding: 1.2rem; }
  .still .panel-leechy { display: none; }
  .facts, .privacy { grid-template-columns: 1fr; gap: 1.4rem; }
  .lanes { grid-template-columns: 5.6rem 1fr 4.6rem; gap: .7rem .7rem; }
  .mac-screen { min-height: 45rem; padding: 1.95rem .5rem 5.5rem;   /* room for the open card, so the page under it never moves */
  border-width: 8px; border-radius: 18px 18px 0 0; }
  .widget { --w: calc(100% - 3.6rem); align-self: flex-end; }
  .widget.open { --w: 100%; }
  .w-leechy { right: calc(100% + .45rem); padding: 0 .5rem; }
  .w-leechy .w-bars, .w-bar .w-q { display: none; }
  .w-ask .w-row { flex-wrap: wrap; }
  .w-ask .w-q { order: 5; flex-basis: 100%; white-space: normal; }
  .w-leechy .leechy, .w-leechy .leechy-curl { width: 1.7rem; height: 1.7rem; }
  .w-full { padding-left: 1rem; padding-top: 3.4rem; }
  .widget.open .w-leechy { top: 1.775rem; left: .5rem; }   /* Leechy itself at 1rem, 2.15rem */
  .widget.open .w-leechy .leechy { width: 2rem; height: 2rem; }
  .w-head { padding-left: 2.6rem; flex-wrap: wrap; margin-top: -3.1rem; min-height: 2.6rem; }
  .w-topic, .w-cap, .w-head > .w-bars { display: none; }
  .w-foot { justify-content: flex-end; }
  .w-foot .w-dot { margin-right: auto; }
  .hero-play { margin-top: -2.5rem; }
  .lessons { flex-wrap: nowrap; justify-content: flex-start; align-self: stretch; margin-inline: -1rem; overflow-x: auto; padding: .3rem 1rem .5rem;
             scroll-padding-inline: 1rem; scroll-snap-type: x proximity; scrollbar-width: none; }
  .lessons::-webkit-scrollbar { display: none; }
  .lessons button, .lessons-label { flex: none; scroll-snap-align: start; }
  .task { grid-template-columns: auto 1fr auto; }
  .task .pill { grid-column: 2; justify-self: start; }
  .task .what { grid-column: 2; }
  .task .min { grid-column: 3; grid-row: 1 / span 2; }
  .task .box { grid-row: 1 / span 2; }
  .copy { margin-left: 0; }
}

/* ---------------------------------------------------------------- the user's settings */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .btn-dl:active, .btn-plain:active, .bar-dl:active, .btn-quiet:active, .pill-btn:active, .term-row button:active,
  .lessons button:active, .w-btn:active, .tab:active, .w-tuck:active, .task:active, .pcard:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar::before { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .widget { background: #0e0d14; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mac-bar { background: #0a0816; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --label-2: var(--label); --label-3: var(--label); --sep: currentColor; }
  .tile, .race, .pcard, .steps li, .terms, .groups { box-shadow: 0 0 0 1.5px var(--label); }
  .bar::before { background: var(--bg-2); }
}
@media (forced-colors: active) {
  .fill { background: Highlight; }
}

/* ------------------------------------------------------------ small motions (freefrontend-style, kept quiet) */

/* a highlighter swipes under a few key phrases as they come into view (home.js adds .on) */
mark.hl {
  color: inherit; padding: .04em .14em; margin: 0 -.06em; border-radius: .25em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(#e4daff, #e4daff) no-repeat 0 0 / 100% 100%;
}
.js-hl mark.hl { background-size: 0% 100%; transition: background-size .9s cubic-bezier(.3, .8, .25, 1); }
.js-hl mark.hl.on { background-size: 100% 100%; }

/* the subjects it follows, drifting past under the four facts; the edges fade */
.ticker {
  display: flex; overflow: hidden; margin-top: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-row { flex: none; display: flex; gap: .5rem; margin: 0; padding: 0 .5rem 0 0; list-style: none; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker li { flex: none; padding: .45rem .9rem; border-radius: 999px; color: var(--label-2); background: var(--bg-3); font-size: .875rem; font-weight: 500; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* From the bell to bedtime: each line darkens as it reaches the middle of the screen (home.js adds .on) */
.lit { max-width: 34rem; margin: 2rem auto 0; padding: 0; list-style: none; text-align: center; }
.lit li + li { margin-top: .35rem; }
.lit a { color: var(--label); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.25; text-decoration: none; background: none; }
.lit a:hover { color: var(--tint); text-decoration: none; }
.js-lit .lit a { color: #c9c9d2; transition: color .5s ease; }
.js-lit .lit li.on a { color: var(--label); }
.js-lit .lit li.on a:hover { color: var(--tint); }

/* links in running text: a soft fill sweeps in behind them */
.hero a:not([class]), .sec p a:not([class]), .sec li a:not([class]), .fine a, .also a, .foot a {
  text-decoration: none; border-radius: .25em; padding: 0 .1em; margin: 0 -.1em;
  background: linear-gradient(var(--lav), var(--lav)) no-repeat 0 100% / 0% 100%; transition: background-size .35s cubic-bezier(.3, .8, .25, 1);
}
.hero a:not([class]):hover, .sec p a:not([class]):hover, .sec li a:not([class]):hover, .fine a:hover, .also a:hover, .foot a:hover { text-decoration: none; background-size: 100% 100%; }

/* the first screen arrives in order: words, buttons, then the Mac */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .8, .25, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(n+4) { animation-delay: .24s; }
  .hero .mac { animation: rise 1s cubic-bezier(.2, .8, .25, 1) .32s both; }
  .hero-play { animation: rise .8s cubic-bezier(.2, .8, .25, 1) .5s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-row { animation: none; flex-wrap: wrap; justify-content: center; flex: 1; }
  .ticker-row[aria-hidden] { display: none; }
}
