/* beadfocus.com: the app's paper and ink (tokens from www/css/bead.css); the seals' vermilion comes with materials.css.
   One warm white sheet of paper for everyone (no dark mode, no texture). The home page says what Bead is in its
   first screen, then lets people see themselves in four questions, each answered by a real exercise playing in an
   iPhone, then shows all 18, your own numbers, the climb to Master and the seals, then the price.
   docs/research/官网设计研究-2026-10-20/第四版文案.md
   The app's own styles come from app/css/ in this folder (liquid.css for the drop, materials.css for seals and
   beads), copied by tools/build-site.mjs; this file gives them the tokens they read and lays out the pages. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('app/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --paper-2: #FFFFFF;
  --ink: #1C1B1A;
  --ink-2: #57534C;
  --ink-3: #A9A49B;
  --line: #E2DDD4;
  --slot: #CFC9BF;
  --red: #B5382A;
  --red-soft: rgba(181, 56, 42, 0.09);
  --stage: #111110;
  --stage-ink: #EEEBE5;
  --stage-dim: #8C877F;
  --card: #FFFFFF;
  --card-edge: rgba(28, 27, 26, 0.09);
  --card-shadow: 0 1px 2px rgba(28, 27, 26, 0.05), 0 16px 32px -22px rgba(28, 27, 26, 0.35);
  --bead-shadow: rgba(28, 27, 26, 0.3);
  --rim: transparent;
  --plate: var(--paper-2);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'SF Pro Text', Roboto, 'Segoe UI', sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --section: clamp(100px, 14vw, 190px);
  color-scheme: light;
}

/* One warm white for everyone: the site does not follow the phone into dark mode (owner, 10-20). Pages carry
   data-theme="light" so the app styles they borrow stay light too. */

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

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

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(181, 56, 42, 0.18); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 22px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px;
}
.skip:focus { top: 12px; }

.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h2.display { font-size: clamp(46px, 11vw, 92px); line-height: 0.96; text-wrap: balance; }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.promise { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 650; color: var(--ink); }
.fine { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 28px; border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #000; }
.btn:active { transform: scale(0.97); }

section[id] { scroll-margin-top: 12px; }
.sec { padding-top: var(--section); }

.js-only { display: none !important; }
.js .js-only { display: revert !important; }

/* ---------------------------------------------------------------- header and footer */

.top { position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-family: var(--serif); font-size: 31px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.mark .mk-rim { fill: none; stroke: var(--rim); stroke-width: 1.6; }
.mark svg { width: 19px; height: 19px; flex: none; margin-top: 3px; filter: drop-shadow(0 2px 2px var(--bead-shadow)); }
.top-nav { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 22px; font-size: 15.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 400px) { .top-nav a { padding: 0 7px; font-size: 15px; } }
/* the narrowest phones: Support stays in the footer */
@media (max-width: 359px) { .top-nav .hide-xs { display: none; } }

.foot { margin-top: var(--section); padding: 48px 0 calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 28px; }
.foot-brand p { margin-top: 6px; color: var(--ink-2); font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-fine { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); max-width: 30em; }
.foot-fine a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--ink); }
@media (min-width: 860px) {
  .foot-in { grid-template-columns: 1.1fr 0.8fr 1.1fr; align-items: start; }
  .foot-nav { flex-direction: column; }
  .foot-nav a { min-height: 36px; }
}

/* ---------------------------------------------------------------- the iPhone (tools/build-site.mjs iphone())
   Drawn to an iPhone's proportions and scaled by its own width (--pw): container units, so the titanium edge, the
   side buttons, the Dynamic Island and the status bar keep their size against the phone at every width. The screen
   is 91.6% of the phone's width; inside it 1cqw is 1% of the screen. A demo frame is laid out at 393 points wide and
   scaled into the screen (js/frames.js), as the exercise looks on a real phone. */

.iphone {
  --pw: 300px;
  position: relative; flex: none; width: var(--pw); aspect-ratio: 1 / 2.07;
  container-type: inline-size;
  border-radius: 17.4cqw;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 3%, rgba(255, 255, 255, 0) 97%, rgba(255, 255, 255, 0.4)),
    linear-gradient(160deg, #DCD7CF 0%, #A39E95 16%, #EEEAE3 34%, #8F8A81 58%, #D4CFC7 80%, #9C978E 100%);
  box-shadow:
    inset 0 0 0 0.28cqw rgba(70, 66, 60, 0.45),
    0 2px 3px rgba(28, 27, 26, 0.18),
    0 34px 60px -30px rgba(28, 27, 26, 0.6),
    0 70px 90px -60px rgba(28, 27, 26, 0.45);
}
/* the black glass round the screen */
.iphone::before {
  content: ''; position: absolute; inset: 1.25cqw; border-radius: 16.2cqw; background: #070707;
  box-shadow: inset 0 0 0 0.35cqw #1B1B1A, inset 0 0 1.2cqw rgba(255, 255, 255, 0.06);
}
.ip-keys i {
  position: absolute; display: block; width: 1.05cqw; border-radius: 0.6cqw;
  background: linear-gradient(90deg, #8A857C, #D9D4CC 45%, #9A958C);
  box-shadow: 0 0 0 0.12cqw rgba(70, 66, 60, 0.35);
}
.ip-action { left: -0.75cqw; top: 15.6%; height: 4.2%; }
.ip-up { left: -0.75cqw; top: 22.6%; height: 7.4%; }
.ip-down { left: -0.75cqw; top: 31.6%; height: 7.4%; }
.ip-side { right: -0.75cqw; top: 25.4%; height: 11.6%; }
.ip-screen {
  position: absolute; inset: 4.2cqw; border-radius: 13.4cqw; overflow: hidden; isolation: isolate;
  container-type: inline-size; background: var(--stage); color: #FFFFFF;
}
.ip-screen iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--stage); pointer-events: none; }
.ip-screen.is-scaled iframe { width: 393px; height: var(--lh, 852px); transform: scale(var(--k, 1)); transform-origin: 0 0; }
.iphone.is-live iframe { pointer-events: auto; }
.ip-status {
  position: absolute; z-index: 3; left: 0; right: 0; top: 2.9cqw; height: 9cqw;
  display: grid; grid-template-columns: 1fr 31.5cqw 1fr; align-items: center; pointer-events: none;
}
.ip-status b { justify-self: center; padding-left: 4cqw; font-family: var(--sans); font-weight: 600; font-size: 4.3cqw; letter-spacing: -0.01em; line-height: 1; }
.ip-status > span { grid-column: 3; justify-self: center; display: flex; align-items: center; gap: 1.4cqw; padding-right: 2.5cqw; }
.ip-sig { width: 4.6cqw; height: auto; }
.ip-wifi { width: 4.1cqw; height: auto; }
.ip-batt { width: 7cqw; height: auto; }
.ip-island { position: absolute; z-index: 4; left: 50%; top: 2.9cqw; width: 31.5cqw; height: 9.1cqw; margin-left: -15.75cqw; border-radius: 5cqw; background: #000; pointer-events: none; }
.ip-island::after { content: ''; position: absolute; right: 7.6cqw; top: 50%; width: 3cqw; height: 3cqw; margin-top: -1.5cqw; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2A3346, #0B0D12 60%); }
.ip-home { position: absolute; z-index: 3; left: 50%; bottom: 2.1cqw; width: 34cqw; height: 1.3cqw; margin-left: -17cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.75); pointer-events: none; }
.iphone.is-paper .ip-screen { background: #FBFAF7; color: var(--ink); }
.iphone.is-paper .ip-home { background: rgba(28, 27, 26, 0.85); }
/* the playable phone: a ring of red round the glass while it's yours */
.iphone.is-live { box-shadow: inset 0 0 0 0.28cqw rgba(70, 66, 60, 0.45), 0 0 0 4px var(--paper), 0 0 0 6px var(--red), 0 34px 60px -30px rgba(28, 27, 26, 0.6); }

/* its pause button (js/frames.js); nothing plays without JavaScript, nothing moves under reduced motion */
.frame-pause {
  display: none; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: 22px;
  background: none; color: var(--ink-2); font-size: 15px; cursor: pointer;
}
.js .frame-pause { display: inline-flex; }
.frame-pause svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; border: 1px solid currentColor; overflow: visible; }
.frame-pause path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.frame-pause .fp-play { display: none; fill: currentColor; stroke: none; }
.frame-pause.is-paused .fp-play { display: inline; }
.frame-pause.is-paused .fp-pause { display: none; }
.frame-pause:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .js .frame-pause { display: none; } }

/* ---------------------------------------------------------------- the drop (js/ui/liquid.js) and its still fallback */

.drop-host { position: relative; display: grid; place-items: center; width: var(--drop); height: var(--drop); }
.drop-host > .liquid-bead { grid-area: 1 / 1; }
/* pure black ink, lit from the upper left */
.drop-still {
  grid-area: 1 / 1; width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(ellipse 20% 12% at 35% 27%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(circle, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 0.14) 94%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 40% 36%, #615E5A 0%, #1F1E1D 45%, #0B0B0A 85%, #34322F 100%);
  box-shadow: 0 46px 46px -36px rgba(28, 27, 26, 0.5);
}
.drop-host.is-live > .drop-still { display: none; }
.drop-hint { font-size: 15px; color: var(--ink-2); }

/* ---------------------------------------------------------------- 1. hero: what Bead is, what it's for, and a dare */

.hero { display: grid; grid-template-areas: 'text' 'dare' 'stage' 'soon'; padding-top: 14px; }
.hero-text { grid-area: text; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 13.6vw, 112px); line-height: 0.93; letter-spacing: -0.022em;
  text-wrap: balance;
}
/* each word lights while its exercise plays in the phone (js/frames.js; data-ex in index.html) */
.hw {
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 94% / 0% 0.075em;
  transition: background-size 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}
.hw.is-on { background-size: 100% 0.075em; color: var(--red); }
.hero-lede { margin-top: 22px; max-width: 22em; color: var(--ink); font-size: clamp(20px, 2vw, 24px); }
.dare { grid-area: dare; margin-top: 30px; display: grid; gap: 16px; justify-items: start; }
.dare-q { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; max-width: 16em; }
.dare-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.dare-out { font-size: 20px; font-weight: 650; color: var(--red); min-height: 0; }
.dare-out:empty { display: none; }
.hero-stage { grid-area: stage; justify-self: center; display: grid; justify-items: center; gap: 10px; margin-top: 40px; }
.hero-stage .iphone { --pw: min(78vw, 310px); }
.soon {
  grid-area: soon; justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px var(--red-soft); }

/* on a phone the whole first screen fits: the phone is sized by the screen's height, its Pause beside it */
@media (max-width: 959px) {
  .hero h1 { font-size: clamp(44px, 12.4vw, 76px); }
  .hero-lede { margin-top: 16px; font-size: clamp(18px, 4.8vw, 22px); }
  .dare { margin-top: 20px; gap: 14px; }
  .dare-q { font-size: clamp(20px, 5.4vw, 26px); }
  .hero-stage { justify-self: start; display: flex; align-items: flex-end; gap: 12px; margin-top: 24px; }
  .hero-stage .iphone { --pw: clamp(150px, calc((100svh - 430px) / 2.07), 300px); }
  .soon { margin-top: 14px; }
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text stage' 'dare stage' 'soon stage';
    grid-template-rows: auto auto 1fr; align-content: center; column-gap: clamp(48px, 6vw, 104px);
    min-height: min(calc(100svh - 72px), 900px); padding-top: 10px; padding-bottom: 40px;
  }
  .hero-text { align-self: end; padding-top: 4vh; }
  .hero h1 { font-size: clamp(76px, 8.2vw, 124px); }
  .hero-lede { margin-top: 28px; }
  .dare { margin-top: 44px; }
  .soon { align-self: start; margin-top: 30px; }
  .hero-stage { margin-top: 0; align-self: center; }
  .hero-stage .iphone { --pw: clamp(290px, calc((100svh - 150px) / 2.07), 360px); }
}

/* words that must not break apart ("day-one", a source's last word and its arrow) */
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- 2. the questions */

/* A source under a piece of science: "Source", then the short source linked to the paper (opens in a new tab). Body
   size, never fine print: the citation is the evidence. */
.cite { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.cite-k { margin-right: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-3); }
.cite a { color: var(--ink); text-decoration-color: rgba(28, 27, 26, 0.35); }
.cite a:hover { text-decoration-color: currentColor; }
/* on a phone, two sources go one under the other */
@media (max-width: 699px) {
  .cite-many .cite-k { display: block; }
  .cite-many .cite-sep { display: none; }
  .cite-many > a, .cite-many > span:not(.cite-k):not(.cite-sep) { display: table; margin-top: 2px; }
}
/* Under every set of sources that names institutions: Bead is not affiliated with them (core/exinfo.js SOURCES_NOTE).
   At the sources' own size, never smaller. */
.sources-note { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.asks > .sources-note { margin-top: clamp(40px, 7vh, 72px); padding-top: 14px; border-top: 1px solid var(--line); }
.notes > .sources-note { padding: 2px 4px 0; }
.cite .out { display: inline-block; width: 0.72em; height: 0.72em; margin-left: 0.22em; vertical-align: 0.02em; overflow: visible; }
.cite .out path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Each question with its phone fits one screen: type and phones are sized by the viewport (its height, too). */
.asks-head { display: grid; gap: 16px; }
.asks-lead { display: grid; gap: 4px; max-width: 34em; padding-left: 16px; border-left: 3px solid var(--red); }
.asks-stat { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.asks-stat b { font-weight: 750; color: var(--red); font-variant-numeric: lining-nums; }
.asks-head h2.display { margin-top: 18px; }
.asks-head .lede { color: var(--ink); text-wrap: pretty; max-width: 31em; }
.qa { display: grid; gap: 22px; padding-top: clamp(64px, 11vh, 120px); }
.qa:first-of-type { padding-top: clamp(48px, 7vh, 80px); }
.qa-text { display: grid; align-content: center; gap: 0; }
.qa-q { font-family: var(--serif); font-size: clamp(32px, 8.6vw, 46px); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; max-width: 11em; }
.qa-ex { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.qa-ex svg { width: 42px; height: 42px; padding: 8px; flex: none; border-radius: 50%; background: var(--card); border: 1px solid var(--card-edge); color: var(--red); box-shadow: var(--card-shadow); }
.qa-ex > span { display: grid; gap: 0; }
.qa-ex small { font-size: 14px; color: var(--ink-2); }
.qa-ex b { font-size: 21px; font-weight: 650; line-height: 1.15; }
.qa-line { margin-top: 12px; font-size: 16.5px; line-height: 1.5; color: var(--ink); max-width: 32em; text-wrap: pretty; }
.qa-text .cite { margin-top: 10px; max-width: 34em; }
/* on a phone: the phone sits at the left under the words, its Pause beside it */
.qa-stage { justify-self: start; display: flex; align-items: flex-end; gap: 12px; }
.qa-stage .iphone { --pw: clamp(132px, calc((100svh - 470px) / 2.07), 200px); }
@media (min-width: 900px) {
  .qa { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(48px, 7vw, 112px); align-items: center; }
  .qa-flip { grid-template-columns: auto minmax(0, 1fr); }
  .qa-flip .qa-stage { order: -1; }
  .qa-q { font-size: clamp(38px, 4.1vw, 58px); line-height: 0.98; }
  .qa-ex { margin-top: 24px; }
  .qa-ex b { font-size: clamp(21px, 1.8vw, 24px); }
  .qa-line { margin-top: 14px; font-size: clamp(17px, 1.4vw, 19.5px); }
  .qa-text .cite { margin-top: 12px; }
  .qa-stage { justify-self: center; display: grid; justify-items: center; gap: 8px; }
  .qa-stage .iphone { --pw: clamp(210px, calc((100svh - 250px) / 2.07), 290px); }
}

/* ---------------------------------------------------------------- 3. all 18 */

/* Tap a tile, read its note: what it works, the classic task behind it, the paper. The phone only plays a few in
   turn by itself. Wide: the phone at the left; the heading, the four skills side by side and the note at the right,
   all in one screen. Narrow: the note opens right under the tapped tile's group (site.js), the phone comes last. */
.workout { display: grid; grid-template-areas: 'head' 'skills' 'notes' 'stage' 'more'; }
.workout-head { grid-area: head; display: grid; gap: 14px; }
.workout-head h2.display { font-size: clamp(40px, 10.4vw, 64px); }
.workout-head .lede { color: var(--ink); max-width: 36em; }
.hint { font-size: 17px; font-weight: 600; color: var(--red); }
.skills { grid-area: skills; display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.skill-name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 15.5px; font-weight: 700; letter-spacing: 0.01em; }
.skill-name::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.tile {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; height: 100%; padding: 6px 8px;
  border: 1px solid var(--card-edge); border-radius: 13px; background: var(--card); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.05);
  text-align: left; cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.tile svg { width: 24px; height: 24px; flex: none; color: var(--ink); transition: color 0.18s ease; }
.tile b { font-size: 14.5px; font-weight: 600; line-height: 1.15; }
.tile:hover { border-color: rgba(28, 27, 26, 0.3); }
.tile[aria-pressed='true'] { border-color: var(--red); background: #FFFCFB; box-shadow: 0 0 0 1.5px var(--red), 0 12px 24px -18px rgba(181, 56, 42, 0.6); }
.tile[aria-pressed='true'] svg, .tile[aria-pressed='true'] b { color: var(--red); }
html:not(.js) .tile { cursor: default; }
html:not(.js) .tile[aria-pressed='true'] { border-color: var(--card-edge); background: var(--card); box-shadow: 0 1px 2px rgba(28, 27, 26, 0.05); }
html:not(.js) .tile[aria-pressed='true'] svg, html:not(.js) .tile[aria-pressed='true'] b { color: var(--ink); }

/* the notes: one shows at a time (site.js); without JavaScript all eighteen are on the page */
.notes { grid-area: notes; display: grid; gap: 12px; margin-top: 18px; }
.skills > .notes { margin-top: 0; }
.js .note:not(.is-on) { display: none; }
.note {
  display: grid; gap: 8px; padding: 18px 20px 18px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
}
.js .note.is-on { animation: note-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.note-top { display: flex; align-items: center; gap: 12px; }
.note-top svg { width: 40px; height: 40px; padding: 7px; flex: none; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.note-top > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.note-top b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.note-top small { font-size: 14px; font-weight: 700; color: var(--red); }
.note-ability { font-size: 17px; line-height: 1.35; font-weight: 650; color: var(--ink); }
.note-text { font-size: 16.5px; line-height: 1.5; color: var(--ink); max-width: 40em; text-wrap: pretty; }
/* the one sentence on a well-known institution (core/exinfo.js known): a fact about the task or the study, in plain text */
.note-known { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.note .cite { margin-top: 2px; }

.grid-stage { grid-area: stage; justify-self: start; display: flex; align-items: flex-end; gap: 12px; margin-top: 30px; }
.grid-stage .iphone { --pw: clamp(140px, 40vw, 190px); }
.more { grid-area: more; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); }
/* a phone: the heading and all 18 fill the first screen; the note and the looping phone the next */
@media (max-width: 999px) {
  .workout-head { gap: 12px; }
  .workout-head .lede { font-size: 18px; }
  .hint { font-size: 16px; }
  .skills { gap: 14px; margin-top: 20px; }
  .skill-name { margin-bottom: 6px; font-size: 15px; }
  .tiles { gap: 5px; }
  .tile { min-height: 44px; padding: 5px 8px; border-radius: 12px; }
  .tile b { font-size: 14px; }
}
@media (min-width: 700px) {
  .note { padding: 22px 26px; }
  .note-text { font-size: 17.5px; }
}
@media (min-width: 1000px) {
  .workout {
    grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'stage head' 'stage skills' 'stage notes' 'stage more';
    grid-template-rows: auto auto auto 1fr; column-gap: clamp(48px, 6vw, 96px);
  }
  .workout-head h2.display { font-size: clamp(44px, 4.4vw, 64px); }
  .workout-head .lede { font-size: clamp(18px, 1.5vw, 21px); }
  .grid-stage { margin-top: 0; align-self: start; position: sticky; top: 28px; display: grid; justify-items: center; gap: 8px; }
  .grid-stage .iphone { --pw: clamp(210px, calc((100svh - 290px) / 2.07), 270px); }
  /* the three skills side by side, each a column of names */
  .skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; margin-top: 24px; }
  .tiles { grid-template-columns: 1fr; gap: 5px; }
  .tile { min-height: 40px; padding: 5px 10px; }
  .tile svg { width: 22px; height: 22px; }
  .tile b { font-size: 15px; }
  .notes { margin-top: 16px; }
  html:not(.js) .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more { margin-top: 6px; }
}
/* a short laptop screen (about 1280×720): everything a little tighter, so the section still fits */
@media (min-width: 1000px) and (max-height: 820px) {
  .workout-head { gap: 10px; }
  .workout-head h2.display { font-size: clamp(44px, 3.8vw, 52px); }
  .workout-head .lede { font-size: 17.5px; max-width: 42em; }
  .hint { font-size: 16px; }
  .skills { margin-top: 16px; }
  .skill-name { margin-bottom: 6px; }
  .tiles { gap: 4px; }
  .tile { min-height: 34px; padding: 3px 10px; }
  .notes { margin-top: 12px; }
  .note { gap: 6px; padding: 16px 22px; }
  .note-top svg { width: 34px; height: 34px; padding: 6px; }
  .note-top b { font-size: 26px; }
  .note-text { font-size: 16.5px; }
}

/* ---------------------------------------------------------------- 4. your numbers: an example Benchmark */

.numbers { display: grid; grid-template-areas: 'text' 'stage'; gap: 44px; }
.numbers-text { grid-area: text; display: grid; gap: 20px; align-content: center; }
.numbers-text .lede { color: var(--ink); }
.checkin-stage { grid-area: stage; justify-self: center; }
.checkin-stage .iphone { --pw: min(78vw, 300px, calc((100svh - 330px) / 2.07)); }
@media (min-width: 900px) {
  .numbers { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text stage'; column-gap: clamp(56px, 8vw, 128px); align-items: center; }
  .checkin-stage .iphone { --pw: clamp(240px, min(24vw, calc((100svh - 140px) / 2.07)), 320px); }
}

/* the Benchmark screen, drawn in the app's paper; 1 point = 100cqw / 393 */
.ci { --u: calc(100cqw / 393); position: absolute; inset: 0; padding: calc(64 * var(--u)) calc(22 * var(--u)) calc(30 * var(--u)); display: flex; flex-direction: column; color: var(--ink); font-family: var(--sans); }
.ci-head { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--u)); }
.ci-title { font-family: var(--serif); font-size: calc(40 * var(--u)); line-height: 1; }
.ci-tag { padding: calc(5 * var(--u)) calc(12 * var(--u)); border-radius: calc(20 * var(--u)); border: calc(1.5 * var(--u)) solid var(--red); color: var(--red); font-size: calc(16 * var(--u)); font-weight: 700; }
.ci-sub { margin-top: calc(8 * var(--u)); font-size: calc(17 * var(--u)); color: var(--ink-2); }
.ci-lead { margin-top: calc(22 * var(--u)); padding: calc(20 * var(--u)) calc(20 * var(--u)) calc(18 * var(--u)); border-radius: calc(24 * var(--u)); background: #FFFFFF; border: 1px solid var(--card-edge); box-shadow: 0 calc(14 * var(--u)) calc(28 * var(--u)) calc(-20 * var(--u)) rgba(28, 27, 26, 0.35); }
.ci-nm { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(18 * var(--u)); }
.ci-nm svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; color: var(--ink-2); }
.ci-nm b { font-weight: 650; }
.ci-big { display: flex; align-items: baseline; gap: calc(6 * var(--u)); margin-top: calc(6 * var(--u)); font-family: var(--serif); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ci-num { font-size: calc(112 * var(--u)); letter-spacing: -0.02em; }
.ci-unit { font-size: calc(44 * var(--u)); }
.ci-was { margin-top: calc(4 * var(--u)); font-size: calc(17 * var(--u)); color: var(--ink-2); }
.ci-gain { margin-top: calc(10 * var(--u)); font-size: calc(21 * var(--u)); font-weight: 700; color: var(--red); }
.ci-rows { list-style: none; margin: calc(18 * var(--u)) 0 0; padding: 0; display: grid; }
.ci-rows li { display: flex; justify-content: space-between; align-items: center; gap: calc(10 * var(--u)); padding: calc(14 * var(--u)) calc(4 * var(--u)); border-bottom: 1px solid var(--line); }
.ci-rows .ci-nm { align-items: flex-start; font-size: calc(17 * var(--u)); }
.ci-rows .ci-nm > span { display: grid; gap: calc(2 * var(--u)); }
.ci-rows .ci-nm small { font-size: calc(14 * var(--u)); color: var(--ink-2); line-height: 1.25; }
.ci-v { display: grid; justify-items: end; gap: calc(1 * var(--u)); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ci-from { font-size: calc(14 * var(--u)); color: var(--ink-2); }
.ci-to { font-size: calc(20 * var(--u)); font-weight: 700; }
.ci-v small { font-size: calc(14 * var(--u)); color: var(--ink-2); }
.ci-v small.is-up { color: var(--red); font-weight: 650; }
.ci-foot { margin-top: auto; padding-top: calc(14 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.35; color: var(--ink-2); }

/* ---------------------------------------------------------------- 5. Starter to Master */

.levels { display: grid; gap: 30px; }
.levels-text { display: grid; gap: 20px; }
.levels-text .lede { color: var(--ink); }
.climb { display: grid; gap: 18px; }
.climb-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.climb-now b { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.climb-now span { font-size: 18px; color: var(--ink-2); }
.climb-track { position: relative; }
.bands { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column-reverse; gap: 2px; }
.band { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'bead name lv' 'bead mat lv'; column-gap: 14px; align-items: center; min-height: 54px; }
.band-bead { grid-area: bead; display: grid; place-items: center; width: 54px; height: 54px; }
.band-bead img { width: 44px; height: 44px; filter: drop-shadow(0 4px 4px rgba(28, 27, 26, 0.28)); transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.band b { grid-area: name; align-self: end; font-size: 19px; font-weight: 650; line-height: 1.1; }
.band-mat { grid-area: mat; align-self: start; font-size: 15px; color: var(--ink-2); }
.band small { grid-area: lv; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* the bands still to come wait in grey; the one you're in wears a ring */
.band:not(.is-past):not(.is-here) .band-bead img { filter: grayscale(1) opacity(0.38); }
.band:not(.is-past):not(.is-here) b { color: var(--ink-2); }
.band.is-here .band-bead { border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--red); }
.band.is-here b { color: var(--red); }
.band:last-child b { font-family: var(--serif); font-weight: 400; font-size: 27px; }
.meter { position: absolute; left: 25px; top: 27px; bottom: 27px; width: 4px; border-radius: 2px; background: var(--line); }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 7 / 6 * 100% - 100% / 12); border-radius: 2px; background: var(--red); transition: height 2.2s cubic-bezier(0.3, 0.6, 0.2, 1); }
/* scrolled in (site.js .is-go): the line climbs and each bead it passes takes its colour; before, it waits at zero */
.js .climb:not(.is-go) .meter i { height: 0; }
.js .climb:not(.is-go) .band .band-bead img { filter: grayscale(1) opacity(0.38); transform: scale(0.86); }
.js .climb .band .band-bead img { transition-delay: calc(var(--i) * 0.28s); }
@media (min-width: 900px) {
  .levels { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); column-gap: clamp(48px, 6vw, 96px); align-items: center; }
  .bands { flex-direction: row; gap: 0; }
  .band { flex: 1; grid-template-columns: 1fr; grid-template-areas: 'bead' 'name' 'mat' 'lv'; justify-items: center; text-align: center; row-gap: 3px; }
  .band-bead { width: 80px; height: 80px; margin-bottom: 10px; }
  .band-bead img { width: 64px; height: 64px; }
  .band b { font-size: 18px; }
  .band:last-child b { font-size: 26px; line-height: 1; }
  .band-mat { font-size: 15px; }
  .band small { font-size: 14px; }
  .meter { left: calc(100% / 14); right: calc(100% / 14); top: 38px; bottom: auto; width: auto; height: 4px; }
  .meter i { top: 0; bottom: 0; right: auto; width: calc(var(--fill) * 7 / 6 * 100% - 100% / 12); height: auto; transition: width 2.2s cubic-bezier(0.3, 0.6, 0.2, 1); }
  .js .climb:not(.is-go) .meter i { width: 0; height: auto; }
}

/* ---------------------------------------------------------------- 6. the seals
   The seals are the app's own (materials.css draws them: vermilion, multiplied into the paper). site.js presses
   each in turn with the app's own sealPress: the stone comes down, the ink spreads, a warm glow, and the page gives
   a small thud. */

.seals { display: grid; gap: 26px; overflow-x: clip; }
.seals-text { display: grid; gap: 20px; align-content: center; }
.seals-text .lede { color: var(--ink); }
.count { font-variant-numeric: lining-nums tabular-nums; color: var(--red); }
.seal-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.seal-show { display: grid; justify-items: center; gap: 6px; }
.seal-stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 300px; }
.seal-stage > .k-seal { width: auto; height: 240px; }
.seal-stage > .k-press { height: 100% !important; }
.seal-title { min-height: 2.4em; text-align: center; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; font-weight: 750; letter-spacing: -0.015em; max-width: 13em; text-wrap: balance; }
.seal-title.is-new { animation: title-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes title-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.seal-show.is-thud { animation: thud 0.32s cubic-bezier(0.3, 0.7, 0.3, 1); }
@keyframes thud { 0% { transform: none; } 30% { transform: translateY(3px) scale(0.995); } 60% { transform: translateY(-1px); } 100% { transform: none; } }
.seal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; border: 1px solid transparent; transition: border-color 0.3s ease, background-color 0.3s ease; }
.seal-mini { display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.seal-mini .k-seal { width: auto; height: 56px; }
.seal-cap { font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.seal-item.is-on { background: var(--card); border-color: var(--card-edge); box-shadow: var(--card-shadow); }
.seal-item.is-on .seal-cap { color: var(--ink); }
@media (max-width: 420px) {
  .seal-stage { height: min(220px, calc(100svh - 610px)); min-height: 170px; }
  .seal-stage > .k-seal { height: 82%; }
  .seal-title { min-height: 0; font-size: 24px; }
  .seal-list { gap: 6px; }
  .seal-item { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 8px 6px; text-align: center; }
  .seal-mini { width: 46px; height: 46px; }
  .seal-mini .k-seal { height: 42px; }
  .seal-cap { font-size: 14px; }
}
@media (min-width: 960px) {
  .seals { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: 'text show' 'list list'; column-gap: clamp(48px, 6vw, 96px); align-items: center; }
  .seals-text { grid-area: text; }
  .seal-show { grid-area: show; }
  .seal-list { grid-area: list; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
  .seal-stage { height: 340px; }
}

/* ---------------------------------------------------------------- 7. what it costs */

.plus { display: grid; grid-template-areas: 'text' 'plans' 'renew' 'fine'; gap: 32px; }
.plus-text { grid-area: text; display: grid; gap: 18px; }
.plus-text .lede { color: var(--ink); }
.plans { grid-area: plans; display: grid; gap: 14px; max-width: 760px; }
.renew { grid-area: renew; font-size: 18px; font-weight: 600; color: var(--ink); max-width: 34em; margin-top: -8px; }
.plus-fine { grid-area: fine; max-width: 46em; margin-top: -18px; }
.plan { position: relative; display: grid; gap: 14px; padding: 24px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow); }
.plan.is-main { border: 2px solid var(--ink); }
.plan-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: 16px; font-weight: 700; }
.plan-save { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 14px; background: var(--red); color: #FFFFFF; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
/* the price a week leads, largest (owner, 2026-10-25: 「周价格是大的，年和月的价格放小的」, as on the videos' ending
   page); the amount actually billed sits right under it in the same block, never small print: 17px, bold, in ink, saying
   how often it is billed (the website is not the store's paywall: the app's paywall keeps the billed amount largest,
   Apple 3.1.2(c); the law still wants the real charge clear and conspicuous) */
.plan-price { display: grid; gap: 8px; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; }
.plan-week { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 19px; color: var(--ink); }
.plan-week strong { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 11vw, 64px); line-height: 1; letter-spacing: -0.5px; color: var(--ink); }
.plan-billed { font-size: 17px; font-weight: 600; color: var(--ink); }
.plan-billed b { font-weight: 700; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .plus { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: 'text plans' 'text renew' 'text fine'; column-gap: clamp(48px, 6vw, 96px); row-gap: 30px; align-items: start; }
  .plus-text { padding-top: 6px; }
}

/* ---------------------------------------------------------------- closing */

.coda { display: grid; justify-items: center; gap: 18px; padding-top: var(--section); text-align: center; }
.coda-drop { display: grid; justify-items: center; gap: 14px; margin-bottom: 18px; }
.coda .drop-host { --drop: min(52vw, 210px); }
.coda h2 { font-family: var(--serif); font-size: clamp(44px, 7vw, 80px); line-height: 0.98; max-width: 11em; text-wrap: balance; }
.coda .private { font-size: clamp(19px, 2vw, 23px); font-weight: 650; max-width: 24em; text-wrap: balance; }
.coda .ask { color: var(--ink-2); }
.soon a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- the sign-up (_partials/join.html, js/join.js)
   The launch email, testing before launch, or both (owner, 2026-10-22). Shown only where its script runs (early.js
   sets .js before the first paint, so it never jumps in); without it, a line with the support address. The message
   line keeps its room, so an answer never moves the page; the testing choices open under their box when it is
   ticked. Inputs at 17px so phones don't zoom in. */
.join { display: none; }
.js .join { display: grid; }
.join {
  position: relative; gap: 18px; width: 100%; max-width: 30rem; margin: 4px 0 6px; padding: 24px 22px 8px;
  border-radius: 24px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
  text-align: left; font-size: 17px; line-height: 1.45;
}
.join fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.join-field { display: grid; gap: 6px; }
.join-field label, .join-phones legend { padding: 0; font-size: 16px; font-weight: 650; }
.join input[type='email'] {
  font: inherit; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--slot);
  background: var(--paper); color: var(--ink); font-size: 17px;
}
.join input[type='email']::placeholder { color: var(--ink-3); opacity: 1; }
.join input[type='email']:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); border-radius: 14px; }
.join input[type='email'][aria-invalid='true'] { border-color: var(--red); }
.join-wants { display: grid; }
.join-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 9px 0; cursor: pointer; }
.join-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.join-check input[aria-invalid='true'] { outline: 2px solid var(--red); outline-offset: 2px; }
.join-beta { display: grid; gap: 16px; margin-top: -8px; padding-left: 34px; }
.join-beta[hidden], .join-field[hidden] { display: none; }
.join-phones legend { margin-bottom: 8px; }
.join-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.join-seg label { position: relative; display: flex; }
.join-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.join-seg span {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px;
  border-radius: 24px; border: 1.5px solid var(--slot); font-weight: 600; transition: background-color 0.15s ease;
}
.join-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.join-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.join-phones[data-invalid] .join-seg span { border-color: var(--red); }
.join-hint, .join-consent { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.join-consent a { color: var(--ink); }
.join-go { width: 100%; }
.join-go[aria-disabled='true'] { opacity: 0.55; cursor: progress; }
.join-msg { min-height: 3em; margin-top: -6px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.join-msg[data-tone='bad'] { color: var(--red); }
.join-msg[data-tone='good'], .join-msg[data-tone='note'] { color: var(--ink); }
.join-msg a { color: inherit; overflow-wrap: anywhere; }
/* the honeypot: out of sight and out of reach (aria-hidden, tabindex -1); people never fill it */
.join-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.join-off { max-width: 30em; color: var(--ink-2); }
/* narrow phones: a little more room across, so the longest answer ("Sign-up opens soon…") still fits its two lines */
@media (max-width: 429px) {
  .join { padding-inline: 18px; }
  .join-msg { font-size: 15px; }
}
@media (max-width: 379px) { .join-msg { min-height: 4.5em; } }

/* ---------------------------------------------------------------- /exercises: six playing at a hard level, twelve more */

.ex-head { display: grid; gap: 22px; padding-top: 32px; }
.ex-head h1 { font-size: clamp(48px, 9vw, 104px); line-height: 0.95; max-width: 11em; text-wrap: balance; }
.ex-head .lede { color: var(--ink); }

.show { margin-top: clamp(40px, 6vw, 80px); }
.demos { display: grid; gap: clamp(96px, 13vw, 170px); }
.demo { display: grid; gap: 30px; }
.demo-text { display: grid; align-content: start; gap: 0; max-width: 30em; }
.demo-icon svg { width: 54px; height: 54px; padding: 10px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-edge); color: var(--red); box-shadow: var(--card-shadow); }
.demo-name { margin-top: 18px; font-family: var(--serif); font-size: clamp(48px, 10vw, 80px); line-height: 0.95; letter-spacing: -0.015em; }
.demo-second { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.demo-rule { margin-top: 22px; font-size: clamp(22px, 5.4vw, 28px); line-height: 1.25; font-weight: 600; text-wrap: pretty; }
.demo-facts { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.demo-level { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 16px; font-weight: 600; }
.demo-level img { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 1px 1.5px rgba(28, 27, 26, 0.4)); }
.demo-known { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 30em; text-wrap: pretty; }
.demo-cite { margin-top: 10px; font-size: 15px; }
.demo-stage { display: grid; justify-items: center; gap: 10px; }
.demo-stage .iphone { --pw: min(72vw, 290px); }
.demo-lead .demo-name { font-size: clamp(60px, 13vw, 112px); line-height: 0.9; }
@media (min-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(56px, 8vw, 128px); align-items: center; }
  .demo-flip { grid-template-columns: auto minmax(0, 1fr); }
  .demo-flip .demo-stage { order: -1; }
  .demo-stage .iphone { --pw: clamp(270px, 23vw, 310px); }
  .demo-lead .iphone { --pw: clamp(290px, calc((100svh - 120px) / 2.07), 350px); }
}

/* the other twelve */
.rest { display: grid; gap: 32px; padding-top: clamp(110px, 14vw, 180px); }
.rest-text { display: grid; gap: 10px; }
.rest h2 { font-family: var(--serif); font-size: clamp(42px, 6vw, 64px); line-height: 1; }
.rest-text p { color: var(--ink-2); max-width: 26em; font-size: 19px; }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wall li { display: grid; align-content: start; gap: 3px; padding: 18px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow); }
.wall li > svg { width: 32px; height: 32px; margin-bottom: 10px; color: var(--ink); }
.wall b { font-weight: 650; font-size: 18px; line-height: 1.2; }
.wall small { font-size: 14px; font-weight: 600; color: var(--red); }
.wall li > span { margin-top: 6px; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.wall li > .wall-rule { margin-top: 10px; color: var(--ink); }
.wall-cite { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.wall-cite .cite-k { display: none; }
.rest > .sources-note { margin-top: -8px; }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- text pages: support, consumer health data, legal, 404 */

.doc { max-width: 760px; padding-top: 32px; }
.doc .brand { display: none; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 9vw, 76px); line-height: 0.98; letter-spacing: -0.015em; }
.doc .date { color: var(--ink-2); font-size: 14px; margin: 14px 0 32px; }
.doc .intro { margin: 18px 0 10px; font-size: 19px; line-height: 1.55; }
.doc section { border-top: 1px solid var(--line); padding: 24px 0 8px; margin-top: 24px; }
.doc h2 { font-size: 19px; font-weight: 650; margin: 0 0 10px; line-height: 1.35; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc .ph { background: rgba(194, 64, 44, 0.12); border-radius: 3px; padding: 0 3px; }
.contact { display: grid; gap: 6px; margin: 32px 0 8px; padding: 22px 24px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); }
.contact-h { font-size: 15px; color: var(--ink-2); }
.contact a { font-family: var(--serif); font-size: clamp(26px, 5vw, 34px); line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }
.lost { display: grid; justify-items: start; gap: 24px; padding-top: 48px; }
.lost .drop-host { --drop: 120px; }
.lost .drop-still { box-shadow: inset 0 0 0 1px var(--rim), 0 18px 18px -14px rgba(28, 27, 26, 0.45); }
.lost h1 { font-family: var(--serif); font-size: clamp(56px, 12vw, 120px); line-height: 0.9; }
.lost p { color: var(--ink-2); font-size: 18px; }
.lost .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lost .hero-cta a { text-decoration: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
