/* ZIGEN's public page: FEIVO's homepage head. A floating header, a full-screen hero over a field of raised
   characters with pixel shapes drifting across it, one large two-line headline, a frosted prompt box with suggestion chips,
   then plain sections below. Here the shapes are characters and the prompt looks things up in the course. */

@import url("zigen.css");

:root {
  --site-bg: #fff;
  --site-bg-2: #f4f8fd;
  --site-ink: #172b4a;
  --site-muted: #5b6b83;
  --site-faint: #8796ab;
  --site-line: #dce5f0;
  --site-blue: #2464ed;
  --site-blue-soft: #e8f0ff;
  --site-glow: rgb(255 255 255 / .95);
  --site-glass: rgb(255 255 255 / .84);
  --site-glass-line: #d5e0ee;
  --site-shadow: 0 22px 54px -22px rgb(23 64 140 / .32), 0 2px 6px rgb(20 42 67 / .05);
  --site-pixel: 37 99 235;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --site-bg: #0e1625; --site-bg-2: #121c2e; --site-ink: #eef2fb; --site-muted: #a3adc2; --site-faint: #7f8aa3; --site-line: #2a3951;
    --site-blue: #8fb0ff; --site-blue-soft: rgb(143 176 255 / .14); --site-glow: rgb(14 22 37 / .92);
    --site-glass: rgb(27 41 62 / .84); --site-glass-line: #2f4262; --site-shadow: 0 22px 54px -22px rgb(0 0 0 / .6); --site-pixel: 143 176 255;
  }
}
:root[data-theme="dark"] {
  --site-bg: #0e1625; --site-bg-2: #121c2e; --site-ink: #eef2fb; --site-muted: #a3adc2; --site-faint: #7f8aa3; --site-line: #2a3951;
  --site-blue: #8fb0ff; --site-blue-soft: rgb(143 176 255 / .14); --site-glow: rgb(14 22 37 / .92);
  --site-glass: rgb(27 41 62 / .84); --site-glass-line: #2f4262; --site-shadow: 0 22px 54px -22px rgb(0 0 0 / .6); --site-pixel: 143 176 255;
}

html, body.site { background: var(--site-bg); }
/* Links to a section glide there and stop below the fixed header. */
html:has(body.site) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.site) { scroll-behavior: auto; } }
.site main > section[id] { scroll-margin-top: 72px; }
body.site { color: var(--site-ink); font-family: var(--display); letter-spacing: 0; }
.site a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Floating header */
.site-head { position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); transition: background .25s, box-shadow .25s; }
.site-head.scrolled { background: color-mix(in oklab, var(--site-bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--site-line); }
/* Logo, links and buttons in three columns, so the links sit on the page's centre line. */
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 94px; transition: height .25s; }
.site-head .site-logo { grid-column: 1; justify-self: start; }
.site-head .site-nav { grid-column: 2; }
.site-head .actions { grid-column: 3; justify-self: end; }
.site-head.scrolled .wrap { height: 68px; }
.site-logo { display: flex; align-items: baseline; gap: 5px; color: var(--site-ink); text-decoration: none; }
.site-logo b { font: 800 26px/1 var(--display); letter-spacing: -.03em; }
.site-logo span { font: 400 26px/1 var(--hanzi); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--site-ink); font-size: 15px; font-weight: 500; text-decoration: none; opacity: .86; }
.site-nav a:hover { opacity: 1; }
.site-head .actions { display: flex; align-items: center; gap: 20px; }
.site-head .signin { font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn-blue { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; white-space: nowrap; border: 0; border-radius: 99px; background: #1d5cf5; color: #fff !important; font: 700 16px/1 var(--display); text-decoration: none; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 8px 22px -10px rgb(29 92 245 / .7); transition: transform .15s, background .2s; }
.btn-blue:hover { background: #1650dd; transform: translateY(-1px); }
.btn-blue .ico { width: 16px; height: 16px; stroke-width: 2.2; }

/* Hero */
/* At least one screen tall, growing with an answer; the bottom padding keeps clear room for "See ZIGEN in action". */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: max(720px, 100svh); padding: 112px 0 112px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--site-bg), var(--site-bg-2)); }
/* Faded out under the header at the top and towards the bottom. */
.flock { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(transparent 0, transparent 70px, #000 150px, #000 78%, transparent); mask-image: linear-gradient(transparent 0, transparent 70px, #000 150px, #000 78%, transparent); }
.glow { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 40% 46% at 50% 52%, var(--site-glow) 0%, color-mix(in oklab, var(--site-glow) 70%, transparent) 50%, transparent 100%); pointer-events: none; }
/* The hero's background: raised characters, and a second canvas over the glow that lights them up under the
   cursor (both fade themselves where they should; landing.js). The glow in the middle breathes. */
.field { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.field.lit { z-index: 1; }
.glow { animation: glow-breathe 7s ease-in-out infinite; will-change: opacity; }
@keyframes glow-breathe { 50% { opacity: .6; } }
:root { --raise-hi: rgb(255 255 255 / 1); --raise-lo: rgb(30 70 150 / .22); --raise-face: #fbfcfe; }
:root[data-theme="dark"] { --raise-hi: rgb(143 176 255 / .16); --raise-lo: rgb(0 0 0 / .7); --raise-face: #111b2c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --raise-hi: rgb(143 176 255 / .16); --raise-lo: rgb(0 0 0 / .7); --raise-face: #111b2c; } }
.hero-center { position: relative; z-index: 2; width: min(740px, calc(100vw - 48px)); padding-top: 40px; text-align: center; }
/* Wider than the box under it, so the longest ending ("one sentence at a time.") stays on one centred line. */
.hero h1 { margin: 0 0 44px; margin-inline: calc((100% - min(100vw - 48px, 1120px)) / 2); font: 700 clamp(46px, 6vw, 84px)/1.02 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.hero h1 .lead { display: block; }
.hero h1 .tail { display: inline-block; white-space: nowrap; color: var(--site-blue); }
.hero h1 .stop { margin-left: -.06em; } /* the font leaves a wide gap before a full stop */
.hero h1 .px { display: inline-block; width: .46em; height: .46em; margin: 0 .05em; border-radius: .07em; background: currentColor; vertical-align: .06em; }
.hero h1 .px.p1 { opacity: .35; } .hero h1 .px.p2 { opacity: .65; }
/* Once measured, the hero stops centring itself, so an answer or late content only ever grows downwards. */
.hero.anchored { justify-content: flex-start; padding-top: var(--rest-top); }
.hero:not([data-answering]) h1 { min-height: var(--h1-rest, auto); }
.hero[data-answering] h1 { margin-bottom: 18px; font-size: 34px; }
.hero[data-answering] h1 .lead { display: inline; }

.prompt-box { position: relative; padding: 16px 14px 12px 20px; border: 1px solid var(--site-glass-line); border-radius: 22px; background: var(--site-glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), var(--site-shadow); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); text-align: left; transition: border-color .2s, box-shadow .2s; }
.prompt-box:focus-within { border-color: color-mix(in oklab, var(--site-blue) 50%, var(--site-glass-line)); box-shadow: var(--site-shadow), 0 0 0 4px rgb(23 100 237 / .1); }
.prompt-box textarea { display: block; width: 100%; min-height: 54px; max-height: 140px; padding: 2px 0; border: 0; outline: 0; background: transparent; color: var(--site-ink); font: 400 17px/1.55 var(--display); resize: none; }
.prompt-box textarea::placeholder { color: var(--site-faint); }
.prompt-tools { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.prompt-tools .spacer { flex: 1; }
.tool { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--site-line); border-radius: 50%; background: var(--site-bg); color: var(--site-muted); transition: background .2s, color .2s; }
.tool:hover { background: var(--site-blue-soft); color: var(--site-ink); }
.tool .ico { width: 15px; height: 15px; }
.tool .hz { font-size: 15px; }
.send { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--site-ink); color: var(--site-bg); transition: background .2s, transform .15s, opacity .2s; }
.send:hover:not(:disabled) { background: var(--site-blue); transform: translateY(-1px); }
.send:disabled { opacity: .35; cursor: default; }
.send .ico { width: 17px; height: 17px; stroke-width: 2.2; }
.prompt-hint { color: var(--site-faint); font-size: 12.5px; }

.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.suggestion { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border: 1px solid var(--site-line); border-radius: 99px; background: var(--site-glass); color: var(--site-ink); font: 500 14px/1 var(--display); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s; }
.suggestion:hover { background: var(--site-bg); border-color: color-mix(in oklab, var(--site-blue) 35%, var(--site-line)); transform: translateY(-1px); }
.suggestion[aria-pressed="true"] { border-color: var(--site-blue); background: var(--site-blue-soft); color: var(--site-blue); }
.suggestion .hz { margin: 0 .15em; font-size: 18px; line-height: 1; }
.hero-note { margin: 22px 0 0; color: var(--site-muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; min-height: 28px; margin-top: 16px; color: var(--site-muted); font-size: 14px; }
.facts b { color: var(--site-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.facts .sep { width: 1px; height: 18px; background: var(--site-line); }
.facts .tiles { display: inline-flex; }
.facts .tiles i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 2px solid var(--site-bg); border-radius: 8px; background: var(--site-ink); color: var(--site-bg); font: 400 15px/1 var(--hanzi); font-style: normal; }
.facts .tiles i:first-child { margin-left: 0; }
.facts .tiles i.l { background: var(--site-bg); color: var(--site-faint); box-shadow: inset 0 0 0 1px var(--site-line); }
.see-more { position: absolute; z-index: 2; bottom: 34px; left: 50%; display: inline-flex; align-items: center; gap: 6px; transform: translateX(-50%); color: var(--site-muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.see-more .ico { width: 15px; height: 15px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* The answer under the box (FEIVO's chat reply) */
/* The answer area eases between heights, so it clips; the padding (taken back by the margin) leaves the shadow room. */
#answer { position: relative; margin: 0 -36px -40px; padding: 0 36px 40px; overflow: hidden; }
.answer { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--site-glass-line); border-radius: 20px; background: var(--site-glass); box-shadow: var(--site-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: left; }
.answer .top { display: flex; gap: 18px; align-items: center; }
.answer .big { display: grid; place-items: center; min-width: 88px; height: 88px; padding: 0 10px; border: 1px solid var(--site-line); border-radius: 16px; background-color: var(--site-bg); background-image: linear-gradient(var(--site-line) 1px, transparent 1px), linear-gradient(90deg, var(--site-line) 1px, transparent 1px); background-size: 50% 50%; background-position: center; font: 400 60px/1 var(--hanzi); }
.answer .big.word { font-size: 40px; }
.answer .py { font: 600 18px/1.3 var(--ui); }
.answer h3 { margin: 2px 0 4px; font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.answer p { margin: 0; color: var(--site-muted); font-size: 14px; line-height: 1.55; }
.answer .chips { margin-top: 12px; }
.answer .level-list { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.answer .level-list li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--site-line); font-size: 14px; }
.answer .level-list b { flex: none; min-width: 68px; color: var(--site-ink); font: 700 14px/1.3 var(--display); }
.answer .level-list span { color: var(--site-muted); line-height: 1.45; }
.answer .chip { background: var(--site-blue-soft); color: var(--site-ink); }
.answer .foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.answer .zg-round { background: var(--site-bg); border-color: var(--site-line); color: var(--site-ink); box-shadow: none; }
.answer .link { color: var(--site-blue); font-size: 14px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.answer .link .ico { width: 14px; height: 14px; stroke-width: 2.2; }
.answer .matches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.answer .matches button { display: grid; justify-items: center; min-width: 56px; padding: 6px 8px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-bg); color: var(--site-ink); }
.answer .matches .hz { font-size: 22px; }
.answer .matches span:last-child { color: var(--site-faint); font-size: 10px; }

/* Sections */
.band { padding: 112px 0; }
.band.alt { background: var(--site-bg-2); }
.kicker { margin: 0 0 12px; color: var(--site-blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.band h2 { margin: 0; font: 700 clamp(32px, 4vw, 52px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.band .lede { max-width: 58ch; margin: 18px 0 0; color: var(--site-muted); font-size: 18px; line-height: 1.6; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; margin-top: 56px; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head .lede { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* How it works: three numbered steps read left to right (top to bottom on a phone): the pieces you learn
   first, the character they make, and what it opens. One plain sentence above says the same in words. */
/* Two lines are always kept for the sentence, and the steps keep one height, so switching never moves the page. */
.how-says { display: -webkit-box; height: 2.9em; max-width: 60ch; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 44px 0 0; font: 600 clamp(19px, 2.1vw, 25px)/1.45 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.how-says .hz { font-weight: 400; line-height: 1; }
.how-says em { font-style: normal; color: var(--site-blue); }
.flow { display: grid; grid-template-columns: minmax(0, .9fr) 44px minmax(0, 1fr) 44px minmax(0, 1.3fr); height: 460px; gap: 10px; align-items: stretch; margin-top: 24px; }
.flow-col { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--site-line); border-radius: 26px; background: var(--site-bg-2); }
.flow-col.focus { align-content: center; background: var(--site-bg); border-color: color-mix(in oklab, var(--site-blue) 28%, var(--site-line)); box-shadow: var(--site-shadow); }
.flow-step { display: inline-flex; align-items: center; gap: 8px; color: var(--site-muted); font-size: 13px; font-weight: 700; }
.flow-col.focus .flow-step { justify-self: center; }
.flow-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--site-ink); color: var(--site-bg); font-size: 12px; }
.flow-arrow { display: grid; place-items: center; align-self: center; width: 44px; height: 44px; border: 1px solid var(--site-line); border-radius: 50%; background: var(--site-bg); color: var(--site-blue); }
.flow-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.flow-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-tiles .plus { color: var(--site-faint); font-size: 24px; font-weight: 300; }
.flow-empty { margin: 0; color: var(--site-muted); font-size: 14px; line-height: 1.5; }
.ftile { display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 76px; min-height: 88px; padding: 8px 10px; border: 1px solid var(--site-line); border-radius: 18px; background: var(--site-bg); color: var(--site-ink); transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; animation: ftile-in .45s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 40ms + .1s); }
button.ftile:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--site-blue) 45%, var(--site-line)); box-shadow: 0 14px 28px -18px rgb(23 64 140 / .55); }
.ftile .hz { font-size: 32px; line-height: 1.1; }
.ftile .py { color: var(--site-blue); font: 600 11px/1.2 var(--ui); }
.ftile .m { max-width: 96px; overflow: hidden; color: var(--site-muted); font: 500 11px/1.25 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.ftile.word .hz { font-size: 25px; }
.ftile.grammar .hz { font: 600 15px/1.3 var(--hanzi-text); }
.ftile.more { border-style: dashed; background: none; color: var(--site-muted); font: 600 13px/1.2 var(--display); }
.ftile.sent { position: relative; justify-items: start; min-height: 0; width: 100%; padding: 12px 40px 12px 14px; text-align: left; }
.ftile.sent .zh { font: 400 20px/1.35 var(--hanzi-text); }
.ftile.sent .en { color: var(--site-muted); font: 500 12px/1.35 var(--ui); }
.ftile.sent .ico { position: absolute; top: 50%; right: 14px; width: 14px; height: 14px; margin-top: -7px; color: var(--site-blue); }
@keyframes ftile-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }

.focus-card { display: grid; justify-items: center; gap: 8px; text-align: center; animation: zg-rise-in .5s var(--spring); }
.focus-glyph { display: grid; place-items: center; min-width: 132px; height: 132px; padding: 0 16px; border-radius: 28px; background: var(--site-ink); color: var(--site-bg); box-shadow: 0 26px 50px -26px rgb(10 25 60 / .6); font: 400 92px/1 var(--hanzi); }
.focus-glyph.word { font-size: 60px; }
.focus-glyph.grammar { font: 600 30px/1.2 var(--hanzi-text); }
.focus-card .py { margin-top: 6px; font: 600 21px/1.2 var(--ui); }
.focus-card h3 { margin: 0; font: 700 25px/1.15 var(--display); letter-spacing: -.02em; }
.focus-card .hint { display: -webkit-box; max-width: 30ch; margin: 0; overflow: hidden; color: var(--site-muted); font-size: 14px; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.focus-card h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flow-col { overflow: hidden; }
.focus-card .zg-round { background: var(--site-bg); border-color: var(--site-line); color: var(--site-ink); box-shadow: none; }

/* Following a tile: the old step slides away in the direction you're going, the new one slides in. */
.flow.go-on > :is(.flow-col, .flow-arrow) { animation: flow-out-left .26s ease-in forwards; }
.flow.go-back > :is(.flow-col, .flow-arrow) { animation: flow-out-right .26s ease-in forwards; }
.flow.came-on > .flow-col { animation: flow-in-right .45s var(--spring); }
.flow.came-back > .flow-col { animation: flow-in-left .45s var(--spring); }
@keyframes flow-out-left { to { opacity: 0; transform: translateX(-22px); } }
@keyframes flow-out-right { to { opacity: 0; transform: translateX(22px); } }
@keyframes flow-in-right { from { opacity: 0; transform: translateX(22px); } }
@keyframes flow-in-left { from { opacity: 0; transform: translateX(-22px); } }

.flow-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.flow-back.is-off { visibility: hidden; }
.flow-back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border: 1px solid var(--site-line); border-radius: 99px; background: var(--site-bg); color: var(--site-ink); font: 600 13px/1 var(--display); }
.flow-back .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-back .hz { font-size: 17px; font-weight: 400; }
.flow-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; color: var(--site-muted); font-size: 13px; font-weight: 600; }
.root-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--site-line); border-radius: 99px; background: var(--site-bg); color: var(--site-ink); font: 500 13px/1 var(--display); transition: border-color .2s, transform .2s, background .2s; }
.root-chip:hover { border-color: color-mix(in oklab, var(--site-blue) 40%, var(--site-line)); transform: translateY(-1px); }
.root-chip .hz { font-size: 20px; }
.root-chip.surprise { padding: 0 14px; background: var(--site-ink); border-color: var(--site-ink); color: var(--site-bg); }
.root-chip.surprise .ico { width: 14px; height: 14px; }

/* Drag to learn: a white band (dark only when Dark is chosen), the course as a pixel mosaic and the
   reading curve. The mosaic reads its colours from these variables too. */
.meter { --m-bg: var(--site-bg-2); --m-ink: var(--site-ink); --m-muted: var(--site-muted); --m-line: var(--site-line); --m-blue: var(--site-blue); --m-glow: rgb(36 100 237 / .3);
  --m-part: #a9bbe6; --m-char: #2464ed; --m-word: #172b4a; --m-gram: #e8a33d; --m-empty: #e6ecf5; --m-panel: var(--site-bg); --m-wash: rgb(36 100 237 / .07);
  background: radial-gradient(900px 500px at 85% 10%, var(--m-wash), transparent 60%), var(--m-bg); color: var(--m-ink); }
:root[data-theme="dark"] .meter { --m-bg: #070b13; --m-ink: #eef2fb; --m-muted: #93a3bd; --m-line: #22304a; --m-blue: #8fb0ff; --m-glow: rgb(143 176 255 / .35); --m-part: #4f6fc4; --m-char: #8fb0ff; --m-word: #e8eeff; --m-gram: #f6bd5c; --m-empty: rgb(255 255 255 / .06); --m-panel: rgb(255 255 255 / .05); --m-wash: rgb(36 100 237 / .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meter { --m-bg: #070b13; --m-ink: #eef2fb; --m-muted: #93a3bd; --m-line: #22304a; --m-blue: #8fb0ff; --m-glow: rgb(143 176 255 / .35); --m-part: #4f6fc4; --m-char: #8fb0ff; --m-word: #e8eeff; --m-gram: #f6bd5c; --m-empty: rgb(255 255 255 / .06); --m-panel: rgb(255 255 255 / .05); --m-wash: rgb(36 100 237 / .22); } }
.meter .kicker { color: var(--m-blue); }
.meter .lede { color: var(--m-muted); }
.meter-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; margin-top: 56px; }
/* Which level the meter shows: a row of pills whose highlight slides (ui.js slide), scrolling sideways on a phone. */
.meter-levels { position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 0 0 26px; padding: 3px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--m-line); border-radius: 99px; background: var(--m-panel); }
.meter-levels[hidden] { display: none; }
.meter-levels::-webkit-scrollbar { display: none; }
.meter-levels .lbl { align-self: center; padding: 0 6px 0 10px; color: var(--m-muted); font: 700 12px/1 var(--display); letter-spacing: .04em; }
.meter-levels button { position: relative; flex: none; min-width: 34px; height: 30px; padding: 0 11px; border: 0; border-radius: 99px; background: none; color: var(--m-muted); font: 600 13px/1 var(--display); white-space: nowrap; transition: color .3s; }
.meter-levels button:hover { color: var(--m-ink); }
.meter-levels button[aria-pressed="true"] { color: var(--m-bg); }
.meter-levels > .mark { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 99px; background: var(--m-blue); transition: transform .42s cubic-bezier(.22, .68, 0, 1), width .42s cubic-bezier(.22, .68, 0, 1); }
.meter-big { display: grid; margin: 0; }
.meter-big b { font: 800 clamp(72px, 10vw, 132px)/.9 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--m-ink), var(--m-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meter-big span { margin-top: 8px; font: 700 20px/1.2 var(--display); }
.meter-sub { margin: 10px 0 0; color: var(--m-muted); font-size: 15px; }
.meter-sub b { color: var(--m-ink); font-variant-numeric: tabular-nums; }
.meter-range { display: block; margin-top: 28px; }
.meter-range input { width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: grab; }
.meter-range input:active { cursor: grabbing; }
.meter-range input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--m-blue) var(--p, 0%), var(--m-line) var(--p, 0%)); }
.meter-range input::-moz-range-track { height: 8px; border-radius: 99px; background: var(--m-line); }
.meter-range input::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--m-blue); }
.meter-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border: 3px solid var(--m-bg); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--m-blue), 0 6px 18px var(--m-glow); }
.meter-range input::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--m-bg); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--m-blue), 0 6px 18px var(--m-glow); }
.meter-range input:focus-visible { outline: none; }
.meter-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--m-blue), 0 0 0 7px var(--m-glow); }
/* Ticks sit where those days really fall on the slider (the thumb's centre travels 15px in from each end). */
.meter-ticks { position: relative; height: 16px; margin-top: 4px; color: var(--m-muted); font-size: 11px; font-weight: 600; }
.meter-ticks span { position: absolute; left: calc(15px + var(--at) * (100% - 30px)); transform: translateX(-50%); white-space: nowrap; }
.meter-ticks span:first-child { transform: translateX(-15px); }
.meter-ticks span:last-child { transform: translateX(calc(-100% + 15px)); }
.meter-play { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 18px; padding: 0 16px; border: 1px solid var(--m-line); border-radius: 99px; background: var(--m-panel); color: var(--m-ink); font: 600 14px/1 var(--display); transition: background .2s; }
.meter-play:hover { border-color: var(--m-blue); }
.meter-play .ico { width: 13px; height: 13px; }
.meter-now { display: flex; align-items: center; gap: 12px; min-height: 64px; margin-top: 26px; color: var(--m-muted); font-size: 14px; }
.meter-now .g { display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 8px; border-radius: 14px; background: var(--m-empty); color: var(--m-ink); font: 400 34px/1 var(--hanzi); }
.meter-now .g.word { font-size: 24px; }
.meter-now b { display: block; color: var(--m-ink); font-size: 15px; }
.meter-sentence { min-height: 128px; margin: 16px 0 0; padding: 18px 20px; border: 1px solid var(--m-line); border-radius: 20px; background: var(--m-panel); }
.meter-sentence .lbl { display: flex; align-items: center; justify-content: space-between; color: var(--m-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.meter-sentence .lbl button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--m-line); border-radius: 50%; background: none; color: var(--m-ink); }
.meter-sentence .lbl .ico { width: 13px; height: 13px; }
.meter-sentence .zhs { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 10px; align-items: flex-end; }
.meter-sentence .tk { display: grid; justify-items: center; }
.meter-sentence .tk small { min-height: 16px; font: 600 12px/1.3 var(--ui); }
.meter-sentence .tk span { font: 400 28px/1.2 var(--hanzi-text); }
.meter-sentence .en { margin: 8px 0 0; color: var(--m-muted); font-size: 14px; }
.meter-visual { display: grid; gap: 14px; min-width: 0; }
.mosaic { display: block; width: 100%; height: auto; aspect-ratio: 30 / 23; }
.mosaic-legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--m-muted); font-size: 12px; font-weight: 600; }
.mosaic-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mosaic-legend i { width: 11px; height: 11px; border-radius: 3px; }
.lg-part { background: var(--m-part); } .lg-char { background: var(--m-char); } .lg-word { background: var(--m-word); } .lg-gram { background: var(--m-gram); }
.curve { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.curve .axis { stroke: var(--m-line); stroke-width: 1; }
.curve text { fill: var(--m-muted); font: 600 11px var(--ui); }
.curve .area { fill: url(#curve-fill); }
.curve .line { fill: none; stroke: var(--m-blue); stroke-width: 2.5; stroke-linejoin: round; }
.curve .mark { stroke: var(--m-ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.curve .dot { fill: var(--m-panel); stroke: var(--m-blue); stroke-width: 3; }

/* Tones: five tone cards and one screen that draws the recording's pitch over the tone's shape. */
.tone-stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; margin-top: 48px; align-items: stretch; }
.tone-cards { display: grid; gap: 10px; }
.tone-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 72px; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border: 1px solid var(--site-line); border-radius: 20px; background: var(--site-bg); color: var(--site-ink); text-align: left; transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; }
.tone-card:hover { transform: translateX(4px); }
.tone-card[aria-pressed="true"] { border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc), 0 18px 40px -24px var(--tc); }
.tone-card .g { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: color-mix(in oklab, var(--tc) 14%, var(--site-bg)); color: var(--tc); font: 400 40px/1 var(--hanzi); }
.tone-card b { display: block; font: 700 17px/1.2 var(--display); color: var(--site-ink); }
.tone-card .py { font: 700 20px/1.2 var(--ui); }
.tone-card small { display: block; color: var(--site-muted); font-size: 13px; }
.tone-card svg { width: 72px; height: 40px; overflow: visible; }
.tone-card svg path { fill: none; stroke: var(--tc); stroke-width: 4; stroke-linecap: round; }
.tone-card.playing .g { animation: tone-pulse .9s ease-in-out infinite; }
@keyframes tone-pulse { 50% { transform: scale(1.06); } }
.tone-screen { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 380px; padding: 18px; border: 1px solid var(--site-line); border-radius: 28px; background: var(--site-bg); box-shadow: var(--site-shadow); }
.tone-screen canvas { display: block; width: 100%; height: 100%; min-height: 300px; }
.tone-caption { margin: 10px 4px 2px; color: var(--site-muted); font-size: 14px; }
.tone-caption b { color: var(--site-ink); }

/* Questions: the heading and a shortcut to the first lesson on the left, one list of answers on the right.
   Answers slide open where the browser can animate it. */
:root { interpolate-size: allow-keywords; }
.faq-band { background: var(--site-bg-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 104px; display: grid; gap: 18px; }
.faq-side .lede { margin: 0; }
.faq-start { display: flex; align-items: center; gap: 14px; justify-self: start; margin-top: 8px; padding: 12px 18px 12px 12px; border: 1px solid var(--site-line); border-radius: 20px; background: var(--site-bg); color: var(--site-ink); text-decoration: none; box-shadow: 0 14px 30px -22px rgb(23 64 140 / .5); transition: transform .2s var(--spring), border-color .2s; }
.faq-start:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--site-blue) 40%, var(--site-line)); }
.faq-start > .hz { display: grid; place-items: center; align-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--site-ink); color: var(--site-bg); font-size: 30px; line-height: .9; }
.faq-start > .hz i { margin-top: 4px; font: 600 11px/1 var(--display); font-style: normal; letter-spacing: .02em; opacity: .7; }
.faq-start b { display: block; font-size: 15px; }
.faq-start small { display: block; color: var(--site-muted); font-size: 13px; }
.faq-start .ico { width: 18px; height: 18px; margin-left: 6px; color: var(--site-blue); stroke-width: 2.2; }
.faq-list { border: 1px solid var(--site-line); border-radius: 28px; background: var(--site-bg); box-shadow: 0 30px 60px -44px rgb(23 64 140 / .45); overflow: hidden; }
.qa + .qa { border-top: 1px solid var(--site-line); }
.qa summary { display: flex; align-items: center; gap: 16px; padding: 22px 24px; cursor: pointer; list-style: none; transition: background .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: color-mix(in oklab, var(--site-blue) 4%, var(--site-bg)); }
.qa summary:focus-visible { outline: 2px solid var(--site-blue); outline-offset: -2px; }
.qa-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--site-blue-soft); color: var(--site-blue); }
.qa-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qa .q { flex: 1; font: 650 17px/1.35 var(--display); letter-spacing: -.01em; }
/* A plus that turns into a minus. */
.qa .pm { position: relative; width: 30px; height: 30px; flex: none; border: 1px solid var(--site-line); border-radius: 50%; transition: background .25s, border-color .25s; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.8px; margin: -0.9px 0 0 -6px; border-radius: 2px; background: var(--site-ink); transition: transform .3s var(--spring), background .25s; }
.qa .pm::after { transform: rotate(90deg); }
.qa[open] .pm { border-color: var(--site-ink); background: var(--site-ink); }
.qa[open] .pm::before, .qa[open] .pm::after { background: var(--site-bg); }
.qa[open] .pm::after { transform: rotate(0deg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--spring), content-visibility .35s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa .a p { margin: 0; padding: 0 24px 24px 80px; color: var(--site-muted); font-size: 15px; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .qa::details-content { transition: none; } }

/* Closing call to action: the sign-up page's sky, 字根 assembling from squares, and the way in. */
.cta-band { padding: 104px 0; text-align: center; }
.cta-card { position: relative; display: grid; justify-items: center; gap: 20px; padding: 56px 24px 48px; overflow: hidden; isolation: isolate; border: 1px solid var(--cta-edge); border-radius: 36px; color: var(--cta-ink);
  background:
    radial-gradient(140px 60px at 14% 24%, var(--cta-cloud), transparent 70%),
    radial-gradient(220px 80px at 24% 30%, var(--cta-cloud), transparent 70%),
    radial-gradient(200px 70px at 82% 18%, var(--cta-cloud), transparent 70%),
    radial-gradient(300px 100px at 90% 26%, var(--cta-cloud), transparent 72%),
    radial-gradient(360px 120px at 18% 96%, var(--cta-cloud), transparent 72%),
    radial-gradient(420px 140px at 80% 100%, var(--cta-cloud), transparent 72%),
    linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); }
:root { --cta-top: #8ec5ff; --cta-bottom: #eaf3ff; --cta-cloud: rgb(255 255 255 / .9); --cta-ink: #0f1a2e; --cta-muted: #34465f; --cta-edge: rgb(255 255 255 / .7); --cta-glass: rgb(255 255 255 / .72); --cta-pixel: 255 255 255; --cta-pixel-2: 36 100 237; }
:root[data-theme="dark"] { --cta-top: #0f2340; --cta-bottom: #1b2c45; --cta-cloud: rgb(160 190 230 / .14); --cta-ink: #eef2fb; --cta-muted: #a9b8cf; --cta-edge: rgb(255 255 255 / .08); --cta-glass: rgb(30 42 62 / .7); --cta-pixel: 210 225 255; --cta-pixel-2: 143 176 255; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cta-top: #0f2340; --cta-bottom: #1b2c45; --cta-cloud: rgb(160 190 230 / .14); --cta-ink: #eef2fb; --cta-muted: #a9b8cf; --cta-edge: rgb(255 255 255 / .08); --cta-glass: rgb(30 42 62 / .7); --cta-pixel: 210 225 255; --cta-pixel-2: 143 176 255; } }
/* 字根 keeps its place in the card; its squares are drawn on a canvas behind the whole card, so they can scatter. */
.cta-glyph { display: block; width: min(300px, 70%); aspect-ratio: 2 / 1; }
.cta-pixels { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Behind everything in the card; full strength at the bottom edge, gone a third of the way up, like a fire. */
.cta-rise { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to top, #000 0%, rgb(0 0 0 / .75) 14%, transparent 36%); mask-image: linear-gradient(to top, #000 0%, rgb(0 0 0 / .75) 14%, transparent 36%); }
.cta-card h2 { margin: 0; font: 800 clamp(34px, 4.6vw, 58px)/1.04 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.cta-card > p { margin: 0; max-width: 44ch; color: var(--cta-muted); font-size: 18px; line-height: 1.55; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.btn-glass { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border: 1px solid var(--cta-edge); border-radius: 99px; background: var(--cta-glass); color: var(--cta-ink); font: 700 16px/1 var(--display); text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .15s, background .2s; }
.btn-glass:hover { transform: translateY(-1px); }
.cta-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--cta-muted); font-size: 14px; font-weight: 600; }
.cta-points li { display: inline-flex; align-items: center; gap: 7px; }
.cta-points svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--cta-ink); fill: none; stroke: var(--cta-bottom); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }

/* The system: how ZIGEN schedules and drills, in four cards, and the evidence behind it. Its counts come from
   the course data (landing.js); the 21 bars and the typed answer are illustrations. */
.system { background: var(--site-bg-2); }
.system h2 em { font-style: normal; color: var(--site-blue); }
.sys-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.sys-card { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 30px; border: 1px solid var(--site-line); border-radius: 28px; background: var(--site-bg); box-shadow: 0 26px 50px -42px rgb(23 64 140 / .45); }
.sys-card.memory, .sys-card.shapes { grid-column: span 7; }
.sys-card.recall, .sys-card.tones { grid-column: span 5; }
.sys-tag { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--site-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sys-tag b { color: var(--site-blue); font-variant-numeric: tabular-nums; }
.sys-card h3 { margin: 6px 0 0; color: var(--site-ink); font: 700 23px/1.2 var(--display); letter-spacing: -.02em; }
.sys-card > p { margin: 0; color: var(--site-muted); font-size: 15px; line-height: 1.6; }
.sys-card > .sys-note { padding: 10px 14px; border-radius: 14px; background: var(--site-blue-soft); color: var(--site-ink); font-size: 13px; }
.sys-stat { display: flex; align-items: flex-end; gap: 16px; }
.sys-stat b { color: var(--site-ink); font: 800 clamp(60px, 7vw, 92px)/.82 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.sys-stat span { max-width: 20ch; color: var(--site-muted); font-size: 15px; font-weight: 600; line-height: 1.35; }
.sys-stat em { font-style: normal; color: var(--site-ink); }
/* 21 bars: FSRS's standard settings, nudged once the card is seen. */
.sys-bars { display: grid; grid-template-columns: repeat(21, minmax(0, 1fr)); align-items: end; gap: 5px; height: 72px; }
.sys-bars i { height: var(--h); border-radius: 4px 4px 2px 2px; background: color-mix(in oklab, var(--site-blue) 28%, var(--site-bg)); transition: height 1.3s cubic-bezier(.22, .68, 0, 1) var(--d), background-color .8s var(--d); }
.sys-bars.fitted i { height: var(--fit); background: var(--site-blue); }
/* A prompt being answered by typing. */
.sys-prompt { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--site-line); border-radius: 20px; background: var(--site-bg-2); }
.sys-prompt .hz { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--site-bg); color: var(--site-ink); font-size: 42px; line-height: 1; }
.sys-input { display: flex; flex: 1; align-items: center; height: 50px; padding: 0 16px; border: 1.5px solid var(--site-blue); border-radius: 14px; background: var(--site-bg); color: var(--site-ink); font: 600 21px/1 var(--ui); box-shadow: 0 0 0 4px var(--site-blue-soft); }
.sys-input i { width: 2px; height: 24px; margin-left: 3px; background: var(--site-blue); animation: sys-caret 1.1s steps(1) infinite; }
@keyframes sys-caret { 50% { opacity: 0; } }
.sys-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sys-modes li { padding: 7px 13px; border: 1px solid var(--site-line); border-radius: 99px; color: var(--site-ink); font-size: 13px; font-weight: 600; }
/* A word with its tones as spoken, and four voices taking turns. */
.sys-spoken { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.sys-spoken .hz { color: var(--site-ink); font-size: 58px; line-height: 1; }
.sys-spoken .py { font: 700 32px/1 var(--ui); letter-spacing: -.01em; }
.sys-was { color: var(--site-faint); font-size: 14px; font-weight: 600; }
.sys-voices { display: flex; gap: 10px; }
.sys-voices i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--site-blue-soft); color: var(--site-blue); font: 400 21px/1 var(--hanzi); font-style: normal; animation: sys-speak 4.8s ease-out infinite; }
.sys-voices i:nth-child(2) { animation-delay: 1.2s; } .sys-voices i:nth-child(3) { animation-delay: 2.4s; } .sys-voices i:nth-child(4) { animation-delay: 3.6s; }
@keyframes sys-speak { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--site-blue) 45%, transparent); } 22%, 100% { box-shadow: 0 0 0 10px transparent; } }
/* The pieces characters are built from most often, as bars that fill once seen. */
.sys-top { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sys-top li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.sys-top .hz { color: var(--site-ink); font-size: 28px; line-height: 1; text-align: center; }
.sys-top .bar { height: 10px; overflow: hidden; border-radius: 99px; background: var(--site-blue-soft); }
.sys-top .bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--site-blue); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.22, .68, 0, 1) var(--d); }
.sys-top.shown .bar i { transform: none; }
.sys-top .n { color: var(--site-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sys-top .n b { color: var(--site-ink); font-variant-numeric: tabular-nums; }
.sys-evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.sys-evidence figure { display: grid; align-content: space-between; gap: 14px; margin: 0; padding: 22px; border: 1px solid var(--site-line); border-radius: 22px; }
.sys-evidence blockquote { margin: 0; color: var(--site-ink); font: 600 15px/1.5 var(--display); letter-spacing: -.005em; }
.sys-evidence blockquote::before { content: "\201C"; display: block; height: 22px; color: var(--site-blue); font: 800 40px/1 var(--display); }
.sys-evidence figcaption { color: var(--site-faint); font-size: 12.5px; line-height: 1.45; }
@media (max-width: 1024px) {
  .sys-card.memory, .sys-card.shapes, .sys-card.recall, .sys-card.tones { grid-column: span 6; }
  .sys-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sys-grid { gap: 14px; margin-top: 36px; }
  .sys-card.memory, .sys-card.shapes, .sys-card.recall, .sys-card.tones { grid-column: 1 / -1; }
  .sys-card { padding: 22px; border-radius: 24px; }
  .sys-evidence { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* Footer: printed in one ink on porcelain, like blue-and-white ware. Brand and the way in, three link columns
   with each source's licence, and under them a river landscape (images/footer-landscape.webp: ink only, so
   CSS colours it per theme). The landscape rises into place in three bands the first time it comes into view,
   and a few birds cross its sky (landing.js). */
:root { --foot-paper: #f6f8fc; --foot-ink: #2346b5; --foot-ink-soft: rgb(35 70 181 / .66); --foot-line: rgb(35 70 181 / .16); --foot-art: 1; }
:root[data-theme="dark"] { --foot-paper: #0c1422; --foot-ink: #8eaaf3; --foot-ink-soft: rgb(142 170 243 / .66); --foot-line: rgb(142 170 243 / .16); --foot-art: .62; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --foot-paper: #0c1422; --foot-ink: #8eaaf3; --foot-ink-soft: rgb(142 170 243 / .66); --foot-line: rgb(142 170 243 / .16); --foot-art: .62; } }
.site-foot { position: relative; overflow: hidden; padding-top: 72px; border-top: 1px solid var(--foot-line); background: var(--foot-paper); color: var(--foot-ink-soft); font-size: 14px; }
.foot-top { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; align-content: start; }
.site-foot .site-logo { color: var(--foot-ink); }
.foot-brand .site-logo b, .foot-brand .site-logo span { font-size: 24px; }
.foot-brand p { margin: 0; max-width: 34ch; line-height: 1.6; }
.foot-brand .foot-copy { margin-top: 6px; font-size: 12.5px; }
.btn-blue.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h4 { margin: 0 0 14px; color: var(--foot-ink); font-size: 14px; }
.site-foot ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-foot a { color: inherit; text-decoration: none; transition: color .15s; }
.site-foot ul a:hover { color: var(--foot-ink); }
.sources li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lic { padding: 2px 7px; border: 1px solid var(--foot-line); border-radius: 99px; color: var(--foot-ink-soft); font-size: 11px; font-weight: 700; white-space: nowrap; }
/* The landscape spans the page (on a phone it keeps a readable size and its sides are cropped). Its empty sky
   tucks under the links. The image loads only as the footer comes near. */
.foot-scene { position: relative; z-index: 1; left: 50%; width: max(100%, 760px); aspect-ratio: 1894 / 830; margin-top: calc(max(100%, 760px) * -.11); transform: translateX(-50%); pointer-events: none; }
.foot-scene .band { position: absolute; inset: 0; opacity: var(--foot-art); background: var(--foot-ink); -webkit-mask: no-repeat 0 0 / 100% 100%; mask: no-repeat 0 0 / 100% 100%; transition: opacity 1s ease-out, transform 1.2s cubic-bezier(.22, .68, 0, 1); }
.site-foot.near .band { -webkit-mask-image: url(images/footer-landscape.webp); mask-image: url(images/footer-landscape.webp); }
.band.back { clip-path: inset(0 0 42% 0); }
.band.mid { clip-path: inset(58% 0 20% 0); transition-delay: .15s; }
.band.front { clip-path: inset(80% 0 0 0); transition-delay: .3s; }
.site-foot:not(.near) .foot-scene { visibility: hidden; } /* no script, no image: no solid block of ink */
.site-foot.waiting .band { opacity: 0; transform: translateY(32px); }
.foot-scene .birds { position: absolute; top: 0; left: 0; width: 100%; height: 48%; }


@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-head .wrap { grid-template-columns: auto 1fr; }
  .site-head .actions { grid-column: 2; }
  .section-head, .meter-grid, .tone-stage, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  /* The steps stack, and the arrows point down. */
  .flow { grid-template-columns: minmax(0, 1fr); height: auto; }
  .flow-col.from { height: 150px; }
  .flow-col.focus { height: 420px; }
  .flow-col.to { height: 300px; }
  .flow-arrow { justify-self: center; width: 36px; height: 36px; transform: rotate(90deg); }
  .flow-try { margin-left: 0; }
  .section-head { gap: 16px; }
  .meter-grid { gap: 36px; margin-top: 40px; }
  .faq-side { position: static; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  /* The pitch screen comes first and stays in view under the header while the tone cards scroll past. */
  .tone-screen { order: -1; position: sticky; top: 80px; z-index: 2; min-height: 0; }
  .tone-screen canvas { min-height: 190px; height: 190px; }
  .faq-grid { gap: 28px; }
}
@media (max-width: 640px) {
  .site-head .wrap { height: 70px; gap: 12px; }
  .site-logo b, .site-logo span { font-size: 22px; }
  .btn-blue { height: 42px; padding: 0 18px; font-size: 14px; }
  .site-head .btn-blue .ico { display: none; }
  .hero { min-height: 700px; height: auto; padding: 120px 0 96px; }
  .hero h1 { margin-bottom: 28px; font-size: clamp(38px, 11vw, 50px); }
  /* The changing line may wrap on a phone rather than run off the screen. */
  .hero h1 .tail { white-space: normal; }
  .hero-center { width: calc(100vw - 32px); padding-top: 0; }
  .suggestions { gap: 8px; }
  .suggestion { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .suggestion .hz { font-size: 15px; }
  .site-head .signin { display: none; }
  .facts .sep { display: none; }
  .band { padding: 72px 0; }
  .how-says { height: 5.8em; margin-top: 28px; -webkit-line-clamp: 4; }
  .flow-col { padding: 16px; border-radius: 22px; }
  .ftile { min-width: 66px; min-height: 78px; border-radius: 16px; }
  .ftile .hz { font-size: 27px; }
  .ftile.word .hz { font-size: 21px; }
  .focus-glyph { min-width: 112px; height: 112px; border-radius: 24px; font-size: 76px; }
  .focus-glyph.word { font-size: 50px; }
  .focus-card h3 { font-size: 23px; }
  .meter-big span { font-size: 17px; }
  .tone-card { grid-template-columns: 52px minmax(0, 1fr) 56px; gap: 12px; padding: 10px 12px 10px 10px; }
  .tone-card .g { width: 52px; height: 52px; font-size: 32px; }
  .tone-card svg { width: 56px; }
  .tone-screen { padding: 12px; border-radius: 22px; top: 76px; }
  .qa summary { gap: 12px; padding: 18px 16px; }
  .qa-ico { width: 36px; height: 36px; }
  .qa .q { font-size: 16px; }
  .qa .a p { padding: 0 16px 20px 64px; }
  .faq-list { border-radius: 22px; }
  .cta-band { padding: 72px 0; }
  .cta-card { padding: 40px 18px 36px; border-radius: 28px; }
  .cta-card > p { font-size: 16px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
  .site-foot { padding-top: 56px; }
  .foot-scene { margin-top: -12px; } /* the links run long here, so the sky starts below them */
  .answer .top { gap: 14px; }
  .answer .big { min-width: 72px; height: 72px; font-size: 48px; }
}
