/* Parrovio landing. Colours, radii and spacing come from
   design-system/parrovio/tokens.json. Every colour is a custom property,
   checked for contrast by apps/landing/check.mjs. */

/* Be Vietnam Pro (SIL OFL, assets/fonts/OFL.txt), the subsets Google Fonts
   serves, in its order. */
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-400-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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-400-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: "Be Vietnam Pro";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-600-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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-600-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: "Be Vietnam Pro";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-800-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-800-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;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-v12-800-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;
}

:root {
  /* Light only, whatever the device is set to (owner, 22/11/2026). */
  color-scheme: only light;
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --surface-2: #F4F4F8;
  --line: #D6D7E3;
  --text: #0F172A;
  --muted: #4D5068;
  --link: #4F46E5;
  --action: #4F46E5;
  --action-down: #332C9E;
  --on-action: #FFFFFF;
  --card-back: #332C9E;
  --card-under: #E2E1FF;
  --soft: #F0F0FF;
  --on-soft: #332C9E;
  --teal: #0F766E;
  --teal-soft: #EAFBF7;
  --on-teal-soft: #0D5F59;
  --right: #137341;
  --wrong: #B02A2F;
  --gold-soft: #FFF8E6;
  --on-gold-soft: #6B3F00;
  --coral-soft: #FFF1EC;
  --on-coral-soft: #B83A1E;
  --quote: #E2E1FF;
  --marker: #C7C4FF;
  --on-quote: #0F172A;
  --panel-indigo: #F0F0FF;
  --panel-gold: #FFF8E6;
  --xp-bar: #FFBE3D;
  --xp-track: #FFEDC2;
  --streak: #F25A38;
  --track: #E9E9F1;
  --doc-pdf: #B02A2F;
  --doc-word: #4F46E5;
  --doc-slides: #B83A1E;
  --doc-image: #137341;
  --shadow: 0 8px 24px -12px rgb(15 23 42 / .25);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --wide: 1120px;
  --r-small: 12px;
  --r-button: 14px;
  --r-card: 16px;
  --r-sheet: 20px;
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}

/* Leaning cards may reach past the edge when the text is very large. */
main { overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0; font-weight: 800; letter-spacing: -.015em; }
h2 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
h3 { margin: 0; font-weight: 600; }
p { text-wrap: pretty; }
.hero__lead, .band__lead, .end__lead, .story__words span { text-wrap: balance; }

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: var(--r-button);
  background: var(--action);
  color: var(--on-action);
}
.skip:focus { top: 12px; }

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* A short screen, or one zoomed far in, keeps its room for the page. */
@media (max-height: 560px) { .site-header { position: static; } }

.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  text-decoration: none;
}
/* The mark's own clear space would push it off the text's edge. */
.brand picture { flex: none; }
.brand img { display: block; max-width: none; margin-left: -5px; }
.main-nav { display: flex; gap: 4px; margin: 0 -10px 0 auto; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--text); text-decoration: underline; }
/* A narrow phone shows what fits; the footer has every link. */
@media (max-width: 479px) { .main-nav a:nth-child(3) { display: none; } }
@media (max-width: 359px) { .main-nav a:nth-child(2) { display: none; } }

.site-footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); background: var(--surface); }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 64px; padding-block: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 44px); }
.site-footer__brand .brand { margin-top: -12px; }
.site-footer__brand p { max-width: 26em; margin-top: 2px; }
.site-footer__brand a:not(.brand) { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.site-footer h2 { font-size: .9375rem; font-weight: 600; letter-spacing: 0; }
.site-footer ul { margin: 8px 0 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--link); text-decoration: underline; }
.lang span { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.site-footer .site-footer__bottom { padding-block: 20px 24px; border-top: 1px solid var(--line); font-size: .9375rem; }

@media (min-width: 860px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 640px) {
  .site-footer__links { grid-template-columns: repeat(4, auto); gap: 28px clamp(24px, 4vw, 56px); }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--action);
  border-radius: var(--r-button);
  background: var(--action);
  color: var(--on-action);
  font: 600 1rem/1.4 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--action-down); border-color: var(--action-down); }
.button--line { background: transparent; color: var(--link); border-color: var(--line); }
.button--line:hover { background: var(--soft); border-color: var(--link); }

/* Landing: the top of the page */

.sprite { position: absolute; }
.glyph { flex: none; width: 1.1em; height: 1.1em; }
.glyph--line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* `minmax(0, …)`: a long word in very large text breaks, never widens the page. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 64px;
  padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px);
}
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}
/* The marker the app draws over a question's source. */
.hero mark {
  margin-inline: -.08em;
  padding-inline: .08em;
  border-radius: .1em;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 72% / 100% 62%;
  color: inherit;
  animation: marker .7s ease-out .35s both;
}
@keyframes marker { from { background-size: 0 62%; } }
.hero__lead {
  max-width: 27em;
  margin: clamp(18px, 2.4vw, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + .55vw, 1.375rem);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: clamp(20px, 2.8vw, 34px) 0 0; }
.hero__actions span { color: var(--muted); font-weight: 600; }
/* On a phone the cards are right below; the button would only push them down. */
@media (max-width: 599px) { .hero__actions .button { display: none; } }

@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 452px; align-items: center; }
  .hero .play__top { top: 52px; right: 226px; }
  .hero .deck { padding-top: 118px; }
  .hero .deck__under { top: 118px; }
  .hero .deck__parrot { top: 6px; right: 26px; width: 186px; }
}

/* The sample session: a deck with a parrot behind it. An answer turns the top
   card over; the next card comes forward (MASTER §5, §8). */

/* The session's bar shares the parrot's row, so it stays in sight with the card. */
.play { position: relative; width: 100%; max-width: 452px; margin-inline: auto; }
.play__top { position: absolute; z-index: 4; top: 22px; left: 10px; right: 166px; display: flex; align-items: center; gap: 12px; }
.meter { flex: 1 1 90px; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter__fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); transform: translateX(-100%); transition: transform .45s cubic-bezier(.3, 1.2, .5, 1); }

.game { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game--xp { background: var(--gold-soft); color: var(--on-gold-soft); }
.game--combo, .game--streak { background: var(--coral-soft); color: var(--on-coral-soft); }
.game--combo .glyph, .game--streak .glyph { color: var(--streak); }
.game--level { background: var(--action); color: var(--on-action); }
.game--combo { position: absolute; left: 14px; top: 42px; visibility: hidden; opacity: 0; transform: scale(.6); }
.game--combo.is-on { visibility: visible; opacity: 1; transform: none; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .15s; }
.game__pop { position: absolute; right: 12px; bottom: 100%; color: var(--on-gold-soft); font-weight: 800; opacity: 0; pointer-events: none; }
.game__pop.is-up { animation: pop-up .9s ease-out; }
@keyframes pop-up {
  0% { opacity: 0; transform: translateY(14px) scale(.8); }
  25% { opacity: 1; transform: translateY(-2px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-18px) scale(1); }
}

@media (max-width: 359px) { .meter { display: none; } }
.deck { position: relative; isolation: isolate; padding: 82px 10px 20px; }
.deck__parrot {
  position: absolute;
  z-index: 0;
  top: 10px;
  right: 40px;
  width: 118px;
  transform: rotate(-12deg);
  animation: rise .7s cubic-bezier(.3, 1.4, .5, 1) .25s both;
}
.parrot { display: block; width: 100%; height: auto; }
.parrot__smile { fill: none; stroke: #0F172A; stroke-width: 8; stroke-linecap: round; opacity: 0; }
.is-smiling .parrot__smile { opacity: 1; }
.is-smiling .parrot__eye { opacity: 0; }
.deck__parrot.is-up { animation: none; }
.deck__parrot.is-hopping, .end__parrot.is-hopping { animation: hop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes rise { from { transform: translateY(78px) rotate(-12deg); } }
@keyframes hop { 40% { transform: translateY(-16px) rotate(-9deg); } }

.deck__under { position: absolute; inset: 82px 10px 20px; border-radius: var(--r-card); }
.deck__under--far { z-index: 1; background: var(--card-back); transform: rotate(4.5deg); }
.deck__under--near { z-index: 2; background: var(--card-under); border: 1px solid var(--line); transform: rotate(-2.5deg); }

.deck__stage { position: relative; z-index: 3; display: grid; }
.qcard { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(14px) scale(.96); }
.qcard.is-current { visibility: visible; opacity: 1; transform: none; transition: transform .3s cubic-bezier(.3, 1.2, .5, 1), opacity .2s; }
.qcard.is-gone { transform: translateX(-70%) rotate(-9deg); transition: transform .28s ease-in, opacity .25s ease-in, visibility 0s .28s; }

.flip { display: grid; height: 100%; perspective: 1600px; }
.face, .finish__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.face { backface-visibility: hidden; transition: transform .28s ease-in-out; }
.face p { margin: 0; }
/* The side turned away is not painted, and site.js makes it inert. */
.face--back { transform: rotateY(-180deg); }
.is-answered .face--front { transform: rotateY(180deg); }
.is-answered .face--back { transform: none; }

.doc-chip {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
}
.face .face__question { margin: 14px 0 16px; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.face__question:focus-visible, .result:focus-visible, .finish__title:focus-visible { outline-offset: 6px; }
/* The answers take what room the other side of the card leaves. */
.answers { flex: 1; display: grid; grid-auto-rows: minmax(56px, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.answer, .map__card, .face__question, .recall__question { text-wrap: balance; }
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--text);
  font: 400 1rem/1.4 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .12s;
}
.answer:hover { border-color: var(--link); background: var(--soft); transform: translateY(-2px); }
.answer:active { transform: scale(.97); }
.answer__key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--on-soft); font-size: .875rem; font-weight: 600; }
.text-button {
  align-self: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-button);
  background: none;
  color: var(--link);
  font: 600 1rem/1.4 var(--font);
  cursor: pointer;
}
.text-button:hover { text-decoration: underline; text-underline-offset: .2em; }

/* Its height is there before an answer, so turning the card moves nothing. */
.result { display: flex; align-items: center; min-height: 2rem; font-size: 1.25rem; line-height: 2rem; font-weight: 800; }
.result span { align-items: center; gap: 10px; }
.result__right { color: var(--right); }
.result__wrong { color: var(--wrong); }
.result span { display: none; }
.is-right .result__right, .is-wrong .result__wrong, .is-skipped .result__skip { display: flex; }
.icon { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-right .draw { stroke-dashoffset: 0; transition: stroke-dashoffset .35s .25s; }
.face .face__answer { margin-top: 8px; font-weight: 600; }
.face .face__why { margin-top: 6px; color: var(--muted); }
.paper {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  background: var(--surface-2);
}
.paper p { font-size: .9375rem; }
.paper mark, .hl { border-radius: 3px; background: linear-gradient(var(--quote), var(--quote)) no-repeat 0 0 / 100% 100%; color: var(--on-quote); }
.paper mark { padding: .12em .1em; }
.paper__line { display: block; height: 7px; border-radius: 4px; background: var(--line); opacity: .7; }
.paper__line--short { width: 64%; }
.paper figcaption { margin-top: 2px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.moves { display: grid; }
.face .move { grid-area: 1 / 1; visibility: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 40px; margin-bottom: 14px; color: var(--muted); font-size: .9375rem; }
.move .level { min-height: 34px; padding: 3px 11px; font-size: .9375rem; }
.is-right .move--up, .is-wrong .move--down, .is-skipped .move--down { visibility: visible; }
.face__next { margin-top: auto; }

.finish__face { position: relative; align-items: center; justify-content: center; gap: 6px; height: 100%; text-align: center; }
.finish p { margin: 0; }
.finish__title { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem); font-weight: 800; letter-spacing: -.01em; }
.finish__xp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; border-radius: 999px; background: var(--gold-soft); color: var(--on-gold-soft); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.finish__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin: 18px 0; padding: 0; list-style: none; }
.finish__stats li { flex: 1 1 120px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-small); color: var(--muted); }
.finish__stats b { display: block; color: var(--text); font-size: 1.5rem; line-height: 1.3; font-weight: 800; font-variant-numeric: tabular-nums; }
.finish .finish__play { margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.finish__sparks { position: absolute; left: 50%; top: 30%; }
.spark { position: absolute; color: var(--xp-bar); opacity: 0; }
.spark .glyph { display: block; width: 15px; height: 15px; }
.finish.is-current .spark { animation: spark .9s ease-out .25s; }
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.15) rotate(50deg); }
}
.spark:nth-child(1) { --x: -150px; --y: -60px; } .spark:nth-child(2) { --x: -110px; --y: -120px; }
.spark:nth-child(3) { --x: -50px; --y: -150px; } .spark:nth-child(4) { --x: 20px; --y: -160px; }
.spark:nth-child(5) { --x: 90px; --y: -140px; } .spark:nth-child(6) { --x: 140px; --y: -80px; }
.spark:nth-child(7) { --x: 160px; --y: 0px; } .spark:nth-child(8) { --x: -165px; --y: 20px; }
.spark:nth-child(9) { --x: -90px; --y: 70px; } .spark:nth-child(10) { --x: 100px; --y: 70px; }

/* Without scripts nothing can turn the cards: every side shows, one after the
   other. */
@media (scripting: none) {
  .play__top, .finish { display: none; }
  .deck__stage, .flip { display: block; }
  .qcard { visibility: visible; opacity: 1; transform: none; }
  .face { margin-bottom: 16px; }
  .face--back { transform: none; }
  .result, .text-button, .moves, .face__next, .deck__under { display: none; }
  .answer, .story__step, .map__card { cursor: default; pointer-events: none; }
  .curve__switch, .recall__foot { display: none; }
}

/* Landing: the sections below */

.band { padding-block: clamp(64px, 9vw, 112px) 0; }
.band__title, .end h2 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.25rem); line-height: 1.14; letter-spacing: -.025em; }
.band__lead { max-width: 30em; margin: 14px 0 0; color: var(--muted); font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); }
@media (min-width: 860px) {
  .band--mid { text-align: center; }
  .band--mid .band__lead { margin-inline: auto; }
}
.panel { margin-top: clamp(64px, 9vw, 112px); padding-block: clamp(56px, 8vw, 96px); }
.panel--indigo { background: var(--panel-indigo); }
.panel--gold { background: var(--panel-gold); }

.step__number {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  border-radius: 10px;
  background: var(--card-back);
  color: var(--on-action);
  font-size: 1.375rem;
  font-weight: 800;
  transform: rotate(-4deg);
  transition: transform .3s cubic-bezier(.3, 1.8, .5, 1);
}

/* How it works: three steps beside a small stage that plays each one. */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; margin-top: 32px; }
.story__steps { display: grid; gap: 12px; align-content: center; margin: 0; padding: 0; list-style: none; }
.story__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 1.5px solid transparent;
  border-radius: var(--r-card);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .25s, border-color .25s;
}
.story__step:hover { background: var(--surface); }
.story__step[aria-pressed="true"] { border-color: var(--line); background: var(--surface); }
.story__step[aria-pressed="true"] .step__number { transform: rotate(4deg) scale(1.06); }
.story__words { min-width: 0; }
.story__words strong { display: block; font-size: 1.1875rem; font-weight: 600; }
.story__words span { display: block; color: var(--muted); }
.story__step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--action); transform: scaleX(0); transform-origin: left; }
.story.is-playing .story__step[aria-pressed="true"]::after { transform: scaleX(1); transition: transform var(--for, 1.8s) linear; }

.story__stage {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 100 / 80;
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  background: var(--surface);
  overflow: hidden;
}
.sheet {
  position: absolute;
  left: 29cqw; top: 8cqw; width: 42cqw; height: 64cqw;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6cqw 5cqw;
  border: 1px solid var(--line);
  border-radius: 2.4cqw;
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .35s;
}
.sheet__line { position: relative; height: 2.2cqw; border-radius: 1.1cqw; background: var(--line); overflow: hidden; }
.sheet__line:nth-child(3n) { width: 72%; }
.sheet__line--key::after { content: ""; position: absolute; inset: 0; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.sheet__scan { position: absolute; left: 0; right: 0; top: 0; height: 9cqw; border-bottom: .6cqw solid var(--action); background: var(--soft); opacity: 0; mix-blend-mode: multiply; }
.file {
  position: absolute;
  display: grid; place-items: center;
  width: 15cqw; height: 18cqw;
  border-radius: 2cqw;
  color: var(--on-action);
  font-size: max(11px, 3.6cqw);
  font-weight: 800;
  opacity: 0;
}
.file--pdf { left: 7cqw; top: 11cqw; --fx: 35cqw; --fy: 20cqw; background: var(--doc-pdf); transform: rotate(-8deg); }
.file--doc { left: 78cqw; top: 9cqw; --fx: -36cqw; --fy: 22cqw; background: var(--doc-word); transform: rotate(7deg); }
.file--ppt { left: 6cqw; top: 50cqw; --fx: 36cqw; --fy: -19cqw; background: var(--doc-slides); transform: rotate(6deg); }
.file--img { left: 79cqw; top: 51cqw; --fx: -37cqw; --fy: -20cqw; background: var(--doc-image); transform: rotate(-7deg); }
.mini {
  position: absolute;
  left: 56cqw; width: 38cqw; height: 16cqw;
  display: flex; align-items: center; justify-content: space-between; gap: 1cqw;
  padding: 0 3.4cqw;
  border: 1.5px solid var(--line);
  border-radius: 2.6cqw;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: max(12px, 3.3cqw);
  line-height: 1.25;
  opacity: 0;
  transform: translate(-30cqw, 0) scale(.5);
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), opacity .3s, background-color .4s, border-color .4s;
}
.mini b { font-weight: 600; }
.mini em { flex: none; display: grid; place-items: center; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: var(--soft); color: var(--on-soft); font-style: normal; font-weight: 800; }
.mini--1 { top: 10cqw; } .mini--2 { top: 32cqw; } .mini--3 { top: 54cqw; }
.due { position: absolute; left: 49cqw; width: 45cqw; height: 16cqw; display: grid; grid-template-columns: auto 1fr; align-content: center; gap: 1.6cqw 2cqw; font-size: max(12px, 3.3cqw); color: var(--muted); opacity: 0; transition: opacity .3s; }
.due i { position: relative; grid-column: 1 / -1; height: 1.6cqw; border-radius: 1cqw; background: var(--track); }
.due i::after { content: ""; position: absolute; left: 0; top: 50%; width: 4.8cqw; height: 4.8cqw; border: .8cqw solid var(--surface); border-radius: 50%; background: var(--teal); transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.3, 1.1, .5, 1) .35s; }
.due b { color: var(--text); font-weight: 600; white-space: nowrap; }
.due--1 { top: 10cqw; } .due--2 { top: 32cqw; } .due--3 { top: 54cqw; }
.due--2 i::after { background: var(--action); } .due--3 i::after { background: var(--xp-bar); }

[data-step="1"] .file { opacity: 1; }
[data-step="1"] .sheet { transform: none; }
.is-live[data-step="1"] .file { animation: fly .65s cubic-bezier(.5, 0, .8, .4) both; }
.is-live[data-step="1"] .file--pdf { animation-delay: .5s; } .is-live[data-step="1"] .file--doc { animation-delay: .68s; }
.is-live[data-step="1"] .file--ppt { animation-delay: .86s; } .is-live[data-step="1"] .file--img { animation-delay: 1.04s; }
.is-live[data-step="1"] .sheet { animation: bump .4s ease-out 1.5s; }
@keyframes fly { to { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.3); } }
@keyframes bump { 40% { transform: scale(1.05); } }

[data-step="2"] .sheet { transform: translateX(-23cqw); }
[data-step="2"] .sheet__line--key::after { transform: none; }
[data-step="2"] .mini { opacity: 1; transform: none; }
.is-live[data-step="2"] .sheet__scan { animation: scan 1.2s ease-in-out .35s; }
.is-live[data-step="2"] .sheet__line:nth-child(2)::after { transition-delay: .6s; } .is-live[data-step="2"] .sheet__line:nth-child(5)::after { transition-delay: .95s; }
.is-live[data-step="2"] .sheet__line:nth-child(8)::after { transition-delay: 1.3s; }
.is-live[data-step="2"] .mini--1 { transition-delay: .75s; } .is-live[data-step="2"] .mini--2 { transition-delay: 1.1s; } .is-live[data-step="2"] .mini--3 { transition-delay: 1.45s; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-9cqw); } 15% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(64cqw); } }

[data-step="3"] .sheet { opacity: 0; transform: translateX(-40cqw) scale(.92); }
[data-step="3"] .mini { opacity: 1; transform: translateX(-51cqw); }
[data-step="3"] .mini--1 { border-color: var(--teal); background: var(--teal-soft); }
[data-step="3"] .mini--2 { border-color: var(--action); background: var(--soft); }
[data-step="3"] .mini--3 { border-color: var(--xp-bar); background: var(--gold-soft); }
[data-step="3"] .due { opacity: 1; transition-delay: .3s; }
[data-step="3"] .due--1 i::after { left: 26%; } [data-step="3"] .due--2 i::after { left: 55%; } [data-step="3"] .due--3 i::after { left: 94%; }

/* On a phone the stage comes first, so a step and its scene share the screen. */
@media (max-width: 899px) {
  .story__stage { order: -1; }
  .gamey__text { order: -1; }
}
@media (min-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; }
}

/* A question and the sentence it came from. */
.map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.map__cards { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.map__card {
  position: relative;
  width: 100%;
  min-height: 60px;
  padding: 14px 18px 14px 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  font: 600 1.0625rem/1.4 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.map__card::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-50%); transition: border-width .2s, border-color .2s; }
.map__card:hover { border-color: var(--link); }
.map__card[aria-pressed="true"] { border-color: var(--link); box-shadow: var(--shadow); transform: translateX(6px) rotate(-.6deg); }
.map__card[aria-pressed="true"]::before { border-width: 6px; border-color: var(--link); }
.page {
  position: relative;
  margin: 0;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.page .doc-chip { display: inline-block; }
.page p { margin: 18px 0 0; font-size: 1.125rem; line-height: 1.85; }
.hl { padding: .16em 0; color: inherit; transition: background-size .6s ease-out, opacity .3s; }
.is-live .hl { background-size: 0% 100%; }
.is-live .hl.is-on { background-size: 100% 100%; color: var(--on-quote); }

@media (min-width: 900px) {
  .map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

/* Remembering and forgetting, drawn across the page. */
.curve__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.curve__switch { display: inline-flex; padding: 4px; border-radius: var(--r-button); background: var(--track); }
.curve__switch button { min-height: 44px; padding: 6px 18px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: 600 1rem/1.4 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.curve__switch [aria-pressed="true"] { background: var(--surface); color: var(--link); box-shadow: 0 1px 4px rgb(15 23 42 / .16); }
.curve__figure { position: relative; margin: 60px 0 0; }
.curve__plot { position: relative; height: clamp(210px, 27vw, 330px); border: solid var(--line); border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.curve__label { position: absolute; left: 0; bottom: calc(100% + 6px); color: var(--muted); font-size: .9375rem; font-weight: 600; }
.curve__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve__line path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.curve__line--free { opacity: .45; }
.curve__line--free path { stroke: var(--muted); stroke-width: 4; }
.curve__line--kept { clip-path: inset(-12px -12px -12px 0); }
.curve__line--kept path { stroke: var(--teal); stroke-width: 6; }
/* Each review is a small card, like the ones being learnt. */
.curve__dot { position: absolute; top: 10%; width: 22px; height: 28px; border: 4px solid var(--teal); border-radius: 7px; background: var(--surface); transform: translate(-50%, -50%) rotate(-8deg); }
.curve__dot--1 { left: 14%; } .curve__dot--2 { left: 32.2%; border-color: var(--action); } .curve__dot--3 { left: 58.4%; border-color: var(--xp-bar); }
.curve figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.curve figcaption span + span { font-weight: 600; }
.levels { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.level { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-small); background: var(--surface-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
.level--1 { background: var(--teal-soft); color: var(--on-teal-soft); }
.level--2 { background: var(--soft); color: var(--on-soft); }
.level--3 { background: var(--gold-soft); color: var(--on-gold-soft); }
.stars { display: inline-flex; gap: 2px; }
.stars .glyph { width: .85em; height: .85em; }
.due .stars { color: var(--muted); align-self: center; }
.curve[data-mode="off"] .curve__line--free { opacity: 1; }
.curve[data-mode="off"] .curve__line--kept, .curve.will-draw .curve__line--kept { clip-path: inset(-12px 100% -12px 0); }
.curve[data-mode="off"] .curve__dot, .curve.will-draw .curve__dot { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(.3); }
.curve.is-live .curve__line--kept { transition: clip-path 1.9s ease-in-out; }
.curve.is-live .curve__line--free { transition: opacity .3s; }
.curve.is-live .curve__dot { transition: opacity .25s, transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.curve.is-live[data-mode="on"] .curve__dot--1 { transition-delay: .45s; } .curve.is-live[data-mode="on"] .curve__dot--2 { transition-delay: .8s; } .curve.is-live[data-mode="on"] .curve__dot--3 { transition-delay: 1.1s; }

/* With room, each level stands at the review that reaches it. */
@media (min-width: 1100px) {
  .curve__figure { margin-top: 104px; }
  .curve__label { left: 10px; bottom: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .curve__figure .levels { position: absolute; inset: 0 0 auto; height: 0; margin: 0; }
  .curve__figure .level { position: absolute; bottom: 4px; transform: translateX(-50%); transition: opacity .3s; }
  .curve__figure .level--0 { left: 0; transform: none; } .level--1 { left: 14%; } .level--2 { left: 32.2%; } .level--3 { left: 58.4%; }
  .curve[data-mode="off"] .level { opacity: .25; } .curve[data-mode="off"] .level--0 { opacity: 1; }
}

/* XP, the streak and the day's quests, as Today shows them. */
.gamey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.today { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-sheet); background: var(--surface); box-shadow: var(--shadow); }
.today__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.today__xp { margin-left: auto; color: var(--on-gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.xpbar { display: block; height: 10px; margin-top: 14px; border-radius: 999px; background: var(--xp-track); overflow: hidden; }
.xpbar__fill { display: block; height: 100%; width: 18%; border-radius: 999px; background: var(--xp-bar); transition: width 1.1s cubic-bezier(.3, 1.1, .5, 1); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 22px 0 0; padding: 0; list-style: none; text-align: center; color: var(--muted); font-size: .8125rem; font-weight: 600; }
.day { display: grid; gap: 6px; justify-items: center; }
.day__dot { display: grid; place-items: center; width: min(40px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--track); color: transparent; }
.day__dot .glyph { width: 56%; height: 56%; }
.day.is-on .day__dot { background: var(--coral-soft); color: var(--streak); transition: background-color .3s, color .3s, transform .4s cubic-bezier(.3, 2, .5, 1); }
.today__quests { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 10px; font-size: 1.0625rem; }
.quests { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-card); list-style: none; overflow: hidden; }
.quest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 60px; padding: 10px 16px; }
.quest + .quest { border-top: 1px solid var(--line); }
.quest__name { flex: 1 1 10em; font-weight: 600; }
.quest__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.quest__done { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--on-gold-soft); font-weight: 600; font-size: .9375rem; }
.today.will-run .xpbar__fill { width: 2%; }
.today.will-run .day.is-on .day__dot { background: var(--track); color: transparent; transform: scale(.7); }
.today.will-run .quest__done { opacity: 0; transform: scale(.5); }
.today.is-live .quest__done { transition: opacity .2s, transform .4s cubic-bezier(.3, 2, .5, 1); }
.today.is-live .day:nth-child(1) .day__dot { transition-delay: .3s; } .today.is-live .day:nth-child(2) .day__dot { transition-delay: .42s; }
.today.is-live .day:nth-child(3) .day__dot { transition-delay: .54s; } .today.is-live .day:nth-child(4) .day__dot { transition-delay: .66s; } .today.is-live .day:nth-child(5) .day__dot { transition-delay: .78s; }
.today.is-live .quest:nth-child(1) .quest__done { transition-delay: 1s; } .today.is-live .quest:nth-child(2) .quest__done { transition-delay: 1.3s; }

@media (min-width: 900px) {
  .gamey { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* Three screens of the app, as a fan; on a phone, a row to swipe. */
.fan { display: flex; gap: 20px; margin: 36px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) 28px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fan::-webkit-scrollbar { display: none; }
.fan__item { flex: 0 0 min(74%, 290px); scroll-snap-align: center; }
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 624 / 1180;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* The sheet with the source is the lower part of that screen. */
.shot--source img { object-position: bottom; }

@media (min-width: 860px) {
  .fan { justify-content: center; gap: 0; margin: 28px 0 0; padding: 36px 0 24px; overflow: visible; }
  .fan__item { flex: 0 0 300px; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
  .fan__item--1 { transform: translateX(34px) translateY(22px) rotate(-5deg); }
  .fan__item--2 { z-index: 2; transform: translateY(-8px); }
  .fan__item--3 { transform: translateX(-34px) translateY(22px) rotate(5deg); }
  .fan__item:hover { z-index: 3; }
  .fan__item--1:hover { transform: translateX(8px) translateY(0) rotate(-2deg); }
  .fan__item--2:hover { transform: translateY(-20px); }
  .fan__item--3:hover { transform: translateX(-8px) translateY(0) rotate(2deg); }
  .fan.will-run .fan__item--1, .fan.will-run .fan__item--3 { transform: translateY(40px); }
  .fan.will-run .fan__item--1 { transform: translateX(300px) translateY(10px); }
  .fan.will-run .fan__item--3 { transform: translateX(-300px) translateY(10px); }
}

.faq { display: grid; gap: 8px 72px; }
.asks { margin-top: 16px; border-top: 1px solid var(--line); }
.ask { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.ask::details-content { height: 0; overflow: clip; transition: height .3s ease-out, content-visibility .3s allow-discrete; }
.ask[open]::details-content { height: auto; }
.ask summary { position: relative; display: block; padding: 18px 44px 18px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after { content: ""; position: absolute; top: 50%; right: 8px; width: 10px; height: 10px; border: solid var(--link); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.ask[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ask summary:hover { color: var(--link); }
.ask p { max-width: 62ch; margin: 0; padding: 0 0 22px; color: var(--muted); }

@media (min-width: 860px) {
  .faq { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .asks { margin-top: 0; }
}

.end-wrap { position: relative; margin-top: clamp(64px, 9vw, 104px); padding-top: 92px; }
.end__parrot { position: absolute; top: 8px; right: max(calc(var(--gutter) + 8%), 40px); width: 124px; transform: rotate(-12deg); }
.end__parrot.will-peek { transform: translateY(96px) rotate(-12deg); }
.end__parrot.is-in { transition: transform .7s cubic-bezier(.3, 1.5, .5, 1) .15s; }
.end { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; align-items: center; padding: clamp(24px, 5vw, 64px); border-radius: 28px; background: var(--card-back); color: var(--on-action); }
.end p { margin: 0; }
.end .end__lead { max-width: 22em; margin-top: 14px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); }
.end .end__chip { display: inline-block; margin-top: 26px; padding: 10px 18px; border: 1.5px solid currentColor; border-radius: 24px; font-weight: 600; }
.recall { padding: clamp(18px, 3vw, 26px); border-radius: var(--r-card); background: var(--surface); color: var(--text); }
.recall .recall__question { margin-bottom: 16px; font-size: 1.25rem; line-height: 1.4; font-weight: 600; }
.recall .icon { visibility: hidden; margin-left: auto; }
.recall .is-right, .recall .is-right:hover { border-color: var(--right); background: var(--surface); color: var(--right); transform: none; }
.recall .is-wrong, .recall .is-wrong:hover { border-color: var(--wrong); background: var(--surface); color: var(--wrong); transform: none; }
.recall .is-right .icon, .recall .is-wrong .icon { visibility: visible; }
.recall .answer.is-right .draw { stroke-dashoffset: 0; transition: stroke-dashoffset .35s .1s; }
.recall.is-done .answer { cursor: default; }
.recall.is-done .answer:not(.is-right, .is-wrong) { opacity: .55; transform: none; border-color: var(--line); background: var(--surface); }
/* The room for the result and the marks is kept, so nothing moves. */
.recall__foot { display: grid; align-items: center; min-height: 3.2rem; margin-top: 14px; }
.recall__foot > * { grid-area: 1 / 1; margin: 0; justify-self: start; }
.recall__foot .text-button { justify-self: center; }
.recall.is-done .text-button { visibility: hidden; }
.recall__result { display: grid; }
.recall__result p { grid-area: 1 / 1; visibility: hidden; }
.recall__result .is-shown { visibility: visible; }

@media (min-width: 900px) {
  .end { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

/* Going from page to page fades, where the browser can. */
@view-transition { navigation: auto; }

/* Long pages: privacy, terms, support, delete account */

.doc { padding-block: 32px 0; }
.doc__head { max-width: 720px; }
.doc__head h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); }
.doc .meta { margin: 12px 0 0; color: var(--muted); }
.doc .lead { margin: 18px 0 0; font-size: 1.125rem; }
.prose > * { max-width: 68ch; }
.prose h2 { margin-top: 48px; font-size: 1.375rem; }
.prose h2:first-child { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--link); }

.toc { display: none; }
.toc a { display: block; padding: 8px 14px; border-left: 3px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a[aria-current] { border-color: var(--link); color: var(--link); }
.toc strong { display: block; margin-bottom: 10px; font-size: .9375rem; }

.prose > .ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: none; margin-top: 32px; }
.way { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.prose .way h2 { margin: 0; font-size: 1.25rem; }
.way ol { margin: 14px 0; }
.way p { margin: 0; color: var(--muted); }
.prose .asks { max-width: 760px; margin-top: 18px; }
.contact { margin: 28px 0 0; }
.contact strong { display: block; font-size: 1.25rem; font-weight: 600; }
.contact span { color: var(--muted); }
.callout { padding: 14px 18px; border-radius: var(--r-small); background: var(--gold-soft); color: var(--on-gold-soft); font-weight: 600; }

@media (min-width: 800px) {
  .prose > .ways { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (min-width: 1040px) {
  .doc--toc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 0 72px; align-items: start; }
  .doc--toc .doc__head { grid-column: 2; }
  .doc--toc .toc { display: block; grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 104px; padding-top: 14px; }
  .doc--toc .prose { grid-column: 2; }
}

/* Page not found: the deck, its top card blank but for the number. No parrot:
   it never shows on an error (MASTER §6). */
.lost { display: grid; justify-items: center; gap: 8px; padding-block: clamp(32px, 7vw, 80px) 0; text-align: center; }
.lost h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); }
.lost p { margin: 8px 0; color: var(--muted); font-size: 1.125rem; }
.lost__deck { position: relative; width: 168px; height: 212px; margin-bottom: 40px; }
.lost__deck span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--r-card); font-size: 3rem; font-weight: 800; }
.lost__deck span:nth-child(1) { background: var(--card-back); transform: rotate(8deg); }
.lost__deck span:nth-child(2) { border: 1px solid var(--line); background: var(--card-under); transform: rotate(-5deg); }
.lost__deck span:nth-child(3) { border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow); }
