body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Inter for Latin letters and figures (the app's own file); Chinese falls through to the system's faces.
   “ ” ‘ ’ — … are left out of the range so Chinese punctuation stays full-width. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter.2c295d99e2.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-2013, U+2020-2025, U+2027-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: the page is one replay. A centred headline over a desk you can play, then the replay's own
   steps in order (抽取 → 报告), each a symmetric pair of words and the instrument they describe.
   Colours are the app's tokens: greys only, ink for the main action, colour kept for meaning. */
:root {
  --page: #f5f5f5;
  --surface: #ffffff;
  --sunken: #fafafa;
  --gutter: #e0e0e0;
  --chart-bg: #ffffff;
  --fg: #0f0f0f;
  --fg-muted: #575757;
  --fg-subtle: #6b6b6b;
  --fg-faint: #9c9c9c;
  --primary: #0f0f0f;
  --primary-hover: #262626;
  --on-primary: #ffffff;
  --line: #ebebeb;
  --line-default: #d1d1d1;
  --line-strong: #b3b3b3;
  --wash: rgba(15, 15, 15, 0.04);
  --wash-strong: rgba(15, 15, 15, 0.07);
  --hover: rgba(15, 15, 15, 0.05);
  --thumb: #ffffff;
  --thumb-shadow: 0 1px 2px rgba(15, 15, 15, 0.14);
  --emphasis: #1f1f1f;
  --on-emphasis: #ffffff;
  --on-fill: #ffffff;
  --up: #089981;
  --up-fg: #007a66;
  --up-subtle: #e6f5f2;
  --down: #f23645;
  --down-fg: #c92636;
  --down-subtle: #fdeef0;
  --buy: #2962ff;
  --buy-hover: #1e53e5;
  --buy-fg: #1e53e5;
  --sell: #e02f3e;
  --sell-hover: #c92636;
  --sell-fg: #c92636;
  --warn: #ff9800;
  --warn-fg: #a85600;
  --warn-subtle: #fff4e5;
  --focus: #2962ff;
  /* The author's chart style: white, no grid, green ups, black downs, black outlines and wicks. */
  --candle-up: #089981;
  --candle-down: #0a0a0a;
  --candle-line: #0a0a0a;
  --chart-text: #0f0f0f;
  --chart-axis: #6b6b6b;
  --chart-cross: #9c9c9c;
  --logo-tile: #0b0b0b;
  --logo-ink: #f2f2f2;
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05), 0 2px 6px rgba(15, 15, 15, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 15, 15, 0.05), 0 8px 24px rgba(15, 15, 15, 0.12);
  --shadow-lg: 0 4px 8px rgba(15, 15, 15, 0.05), 0 24px 64px rgba(15, 15, 15, 0.16);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Microsoft YaHei UI", monospace;
  --page-w: 1180px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f0f0f;
    --surface: #171717;
    --sunken: #0a0a0a;
    --gutter: #2e2e2e;
    --chart-bg: #0f0f0f;
    --fg: #ebebeb;
    --fg-muted: #9c9c9c;
    --fg-subtle: #8c8c8c;
    --fg-faint: #6b6b6b;
    --primary: #ebebeb;
    --primary-hover: #ffffff;
    --on-primary: #0f0f0f;
    --line: #262626;
    --line-default: #3d3d3d;
    --line-strong: #575757;
    --wash: rgba(255, 255, 255, 0.045);
    --wash-strong: rgba(255, 255, 255, 0.08);
    --hover: rgba(255, 255, 255, 0.07);
    --thumb: #3d3d3d;
    --thumb-shadow: none;
    --emphasis: #2e2e2e;
    --on-emphasis: #ffffff;
    --on-fill: #ffffff;
    --up: #089981;
    --up-fg: #22ab94;
    --up-subtle: rgba(8, 153, 129, 0.18);
    --down: #f23645;
    --down-fg: #f7525f;
    --down-subtle: rgba(242, 54, 69, 0.18);
    --buy: #2962ff;
    --buy-hover: #1e53e5;
    --buy-fg: #5b8cff;
    --sell: #e02f3e;
    --sell-hover: #c92636;
    --sell-fg: #f7525f;
    --warn: #ff9800;
    --warn-fg: #ffab40;
    --warn-subtle: rgba(255, 152, 0, 0.16);
    --focus: #5b8cff;
    --candle-up: #089981;
    --candle-down: #d1d1d1;
    --candle-line: #d1d1d1;
    --chart-text: #ebebeb;
    --chart-axis: #8c8c8c;
    --chart-cross: #6b6b6b;
    --logo-tile: #262626;
    --logo-ink: #f2f2f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 64px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f0f0f;
  --surface: #171717;
  --sunken: #0a0a0a;
  --gutter: #2e2e2e;
  --chart-bg: #0f0f0f;
  --fg: #ebebeb;
  --fg-muted: #9c9c9c;
  --fg-subtle: #8c8c8c;
  --fg-faint: #6b6b6b;
  --primary: #ebebeb;
  --primary-hover: #ffffff;
  --on-primary: #0f0f0f;
  --line: #262626;
  --line-default: #3d3d3d;
  --line-strong: #575757;
  --wash: rgba(255, 255, 255, 0.045);
  --wash-strong: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.07);
  --thumb: #3d3d3d;
  --thumb-shadow: none;
  --emphasis: #2e2e2e;
  --on-emphasis: #ffffff;
  --on-fill: #ffffff;
  --up: #089981;
  --up-fg: #22ab94;
  --up-subtle: rgba(8, 153, 129, 0.18);
  --down: #f23645;
  --down-fg: #f7525f;
  --down-subtle: rgba(242, 54, 69, 0.18);
  --buy: #2962ff;
  --buy-hover: #1e53e5;
  --buy-fg: #5b8cff;
  --sell: #e02f3e;
  --sell-hover: #c92636;
  --sell-fg: #f7525f;
  --warn: #ff9800;
  --warn-fg: #ffab40;
  --warn-subtle: rgba(255, 152, 0, 0.16);
  --focus: #5b8cff;
  --candle-up: #089981;
  --candle-down: #d1d1d1;
  --candle-line: #d1d1d1;
  --chart-text: #ebebeb;
  --chart-axis: #8c8c8c;
  --chart-cross: #6b6b6b;
  --logo-tile: #262626;
  --logo-ink: #f2f2f2;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 64px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--fg);
  font: 400 15px/1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num, time { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--page-w); margin-inline: auto; padding-inline: 24px; }
.up { color: var(--up-fg); }
.down { color: var(--down-fg); }
.muted { color: var(--fg-subtle); }
.i { width: 18px; height: 18px; flex: none; }
.i--sm { width: 15px; height: 15px; }
span[lang="en"] { letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px;
  font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: transparent; border-color: var(--line-default); color: var(--fg); }
.btn--ghost:hover { background: var(--hover); border-color: var(--line-strong); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 15px; }

.kicker { font: 500 12px/1.4 var(--font-sans); letter-spacing: 0.08em; color: var(--fg-subtle); }
.h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; font-weight: 600; letter-spacing: 0.01em; text-wrap: balance; }
.lede { color: var(--fg-muted); font-size: 16px; text-wrap: pretty; }
.intro { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin-inline: auto; text-align: center; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--line-default); border-bottom-width: 2px; border-radius: 5px; background: var(--surface);
  font: 500 11px/1 var(--font-sans); color: var(--fg); white-space: nowrap;
}

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--page);
  background: color-mix(in srgb, var(--page) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand [lang="en"] { margin-inline-end: 0.12em; }
.mark { display: block; flex: none; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--fg-muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.nav a:hover { color: var(--fg); background: var(--hover); }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(44px, 7vw, 88px) 0; }
.hero__head { display: grid; justify-items: center; gap: 20px; max-width: 780px; margin-inline: auto; text-align: center; }
.tape { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; font: 500 12px/1.4 var(--font-mono); color: var(--fg-subtle); letter-spacing: 0.02em; }
.tape__sep { width: 1px; height: 12px; background: var(--line-default); }
.hero h1 { font-size: clamp(38px, 6.6vw, 70px); line-height: 1.12; font-weight: 600; letter-spacing: 0.02em; text-wrap: balance; }
.hero__lede span { display: block; }
.hero__lede { max-width: 33em; font-size: clamp(16px, 1.6vw, 18px); color: var(--fg-muted); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

.desk-wrap { margin-top: clamp(40px, 5vw, 60px); display: grid; gap: 14px; }
.desk-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; text-align: center; font-size: 14px; color: var(--fg-muted); }
.desk-cap b { color: var(--fg); font-weight: 600; }
.desk-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: var(--fg-subtle); }
.desk-keys span { display: inline-flex; align-items: center; gap: 6px; }
.desk-note { max-width: 46em; margin-inline: auto; text-align: center; font-size: 13px; color: var(--fg-subtle); text-wrap: balance; }

/* ------------------------------------------------------------ the desk (a small copy of the replay page) */
.desk {
  --panel-w: 300px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: auto auto;
  gap: 4px; padding: 4px; border-radius: 14px; background: var(--gutter); box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.5; outline: none;
}
.desk:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 2px var(--focus); }
.desk__bar, .desk__chart, .desk__play, .desk__panel { background: var(--chart-bg); border-radius: 9px; min-width: 0; }
.desk__bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 42px; padding: 6px 12px 6px 8px; }
.desk__main { display: grid; grid-template-rows: auto auto; gap: 4px; min-width: 0; container: deskmain / inline-size; }
.desk__chart { position: relative; height: clamp(320px, 40vw, 480px); overflow: hidden; }
.desk__chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.sym { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-weight: 600; font-size: 14px; }
.sym:hover { background: var(--hover); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--warn-subtle); color: var(--warn-fg); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.done { background: var(--up-subtle); color: var(--up-fg); }
.desk__node { margin-inline-start: auto; color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 7px; background: var(--wash-strong); }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--fg-muted); font-size: 12px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--thumb); color: var(--fg); box-shadow: var(--thumb-shadow); }
.seg--tf { width: 150px; }

.legend { position: absolute; top: 8px; left: 10px; right: 76px; display: flex; flex-wrap: wrap; gap: 2px 12px; pointer-events: none; color: var(--chart-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.legend b { font-weight: 600; }
.legend .k { color: var(--chart-axis); margin-inline-end: 3px; }
.toast {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 2;
  max-width: calc(100% - 32px); padding: 7px 14px; border-radius: 999px;
  background: var(--emphasis); color: var(--on-emphasis); box-shadow: var(--shadow-md);
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}

.desk__play { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 12px; }
.play__side { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.play__side--end { justify-content: flex-end; }
.play__status { font-weight: 600; }
.play__time { color: var(--fg-muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.play__center { display: flex; align-items: center; gap: 2px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-faint); }
.dot.live { background: var(--up); box-shadow: 0 0 0 3px var(--up-subtle); }
.dot.warn { background: var(--warn); }
.play-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; min-width: 104px; padding: 0 16px; margin: 0 6px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.play-main:hover:not(:disabled) { background: var(--primary-hover); }
.play-main.stop { background: var(--sell); color: var(--on-fill); }
.play-main.stop:hover { background: var(--sell-hover); }
.play-main:disabled { background: var(--wash-strong); color: var(--fg-faint); }
.play-main.pulse { animation: pulse 2.4s var(--ease) 1.2s infinite; }
@keyframes pulse { 0%, 60%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 6px var(--wash-strong); } }
.tb { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; white-space: nowrap; }
.tb:hover:not(:disabled) { background: var(--hover); }
.tb:disabled { color: var(--fg-faint); }
.tb--icon { width: 28px; padding: 0; font-size: 16px; }
.tb--sm { height: 26px; padding: 0 8px; font-size: 12px; border: 1px solid var(--line-default); }
.tb-div { width: 1px; height: 18px; margin: 0 4px; background: var(--line); }
.speed { display: inline-flex; align-items: center; }
.speed__now { min-width: 40px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@container deskmain (max-width: 700px) {
  .play__time, .play__center .tb > span { display: none; }
}
@container deskmain (max-width: 560px) {
  .desk__play { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: 6px; }
  .play__status, .tb-div, #d-bucket { display: none; }
  .play-main { min-width: 0; margin: 0 2px; padding: 0 14px; }
}

.desk__panel { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.panel__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.quote { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.quote__sym { display: block; font-weight: 600; font-size: 14px; }
.quote__cap { display: block; font-size: 12px; color: var(--fg-subtle); }
.quote__right { display: grid; justify-items: end; }
.quote__px { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.quote__chg { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--fg-subtle); }
.ticket { display: grid; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-subtle); white-space: nowrap; }
.field__cap b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.field .seg button { padding: 0 4px; }
.stepper { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; height: 30px; border: 1px solid var(--line-default); border-radius: 7px; }
.stepper button { height: 100%; border: 0; background: transparent; color: var(--fg-muted); font-size: 15px; }
.stepper button:hover { color: var(--fg); background: var(--hover); }
.stepper output { text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.trade-btn { display: grid; place-content: center; gap: 1px; height: 46px; border: 0; border-radius: 7px; color: var(--on-fill); font-weight: 600; font-size: 14px; line-height: 1.2; }
.trade-btn small { font-size: 11px; font-weight: 500; opacity: 0.85; }
.trade-btn--sell { background: var(--sell); }
.trade-btn--sell:hover:not(:disabled) { background: var(--sell-hover); }
.trade-btn--buy { background: var(--buy); }
.trade-btn--buy:hover:not(:disabled) { background: var(--buy-hover); }
.trade-btn:disabled { opacity: 0.4; }
.ticket__sum { text-align: center; font-size: 12px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.plist { display: grid; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.plist:last-child { border-bottom: 0; }
.plist__head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--fg-subtle); }
.plist__head b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { font-size: 12px; color: var(--fg-subtle); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.row:first-child { border-top: 0; }
.row__main, .row__fig { display: grid; line-height: 1.35; min-width: 0; }
.row__fig { justify-items: end; }
.row__main span:last-child, .row__fig span:last-child { font-size: 11px; color: var(--fg-subtle); }
.long { color: var(--buy-fg); }
.short { color: var(--sell-fg); }
.row .tb--sm { margin-inline-start: 2px; }

.result { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; overflow-y: auto; background: var(--chart-bg); }
.result__k, .reveal__k { font-size: 12px; color: var(--fg-subtle); }
.result__pnl { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result__sub { margin-top: -8px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.reveal { display: grid; gap: 8px; padding: 12px; border-radius: 8px; background: var(--wash); }
.reveal dl { display: grid; gap: 4px; }
.reveal dl div { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; }
.reveal dt { color: var(--fg-subtle); }
.reveal dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.reveal__note { font-size: 12px; color: var(--fg-muted); }
.result__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result__actions .btn { height: 38px; padding: 0 8px; font-size: 13px; }
.result__fine { font-size: 12px; color: var(--fg-subtle); }

@media (max-width: 900px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
  .desk__panel { min-height: 0; }
  .panel__scroll { overflow: visible; }
  .result { position: relative; inset: auto; }
  .desk__panel.has-result .panel__scroll { display: none; }
}

/* ------------------------------------------------------------ facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-block: 1px solid var(--line); }
.fact { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 26px 18px; text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact b { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fact b small { margin-inline-start: 4px; font-size: 0.42em; font-weight: 500; letter-spacing: 0; color: var(--fg-muted); }
.fact span { max-width: 15em; font-size: 13px; line-height: 1.6; color: var(--fg-muted); text-wrap: balance; }

/* ------------------------------------------------------------ the six steps */
.chapters { padding-top: clamp(72px, 9vw, 120px); }
.stepnav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 20; margin-top: 36px;
  background: var(--page);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.stepnav ol { display: flex; justify-content: center; align-items: center; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.stepnav ol::-webkit-scrollbar { display: none; }
.stepnav li { display: flex; align-items: center; flex: none; }
.stepnav li + li::before { content: ""; width: clamp(12px, 3vw, 36px); height: 1px; margin-inline: 4px; background: var(--line-default); }
.stepnav a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; color: var(--fg-subtle); font-size: 13px; text-decoration: none; white-space: nowrap; }
.stepnav a:hover { color: var(--fg); background: var(--hover); }
.stepnav .n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-default); font: 500 11px/1 var(--font-sans); }
.stepnav a[aria-current="step"] { color: var(--fg); font-weight: 600; }
.stepnav a[aria-current="step"] .n { border-color: var(--fg); background: var(--fg); color: var(--page); }
.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: 112px;
}
.step:first-child { border-top: 0; }
.step--flip .step__text { order: 2; }
.step__text { display: grid; gap: 16px; align-content: center; min-width: 0; }
.step__k { font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-subtle); }
.step__text h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: 0.01em; text-wrap: balance; }
.step__text > p { color: var(--fg-muted); text-wrap: pretty; }
.points { display: grid; gap: 10px; margin-top: 2px; }
.points li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.7; }
.points li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--fg); }

.fig { position: relative; display: grid; gap: 16px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.fig__tag { position: absolute; top: -10px; right: 16px; line-height: 18px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--fg-subtle); background: var(--surface); }
.fig figcaption, .fig__cap { font-size: 12px; color: var(--fg-subtle); text-wrap: balance; }
.fig__label { font-size: 12px; color: var(--fg-subtle); }

/* 1 · draw */
.tl { position: relative; height: 64px; margin: 18px 6px 4px; }
.tl__line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; border-radius: 1px; background: var(--line-default); }
.tl__year { position: absolute; top: 44px; transform: translateX(-50%); font-size: 11px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.tl__year::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 5px; background: var(--line-strong); }
.tl__pin { position: absolute; top: 0; width: 0; height: 36px; transition: left 600ms var(--ease); }
.tl__pin::before { content: ""; position: absolute; left: -1px; top: 14px; width: 2px; height: 22px; background: var(--fg); }
.tl__pin span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); color: var(--page); font: 600 11px/1 var(--font-sans); }
.cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.cfg div { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface); }
.cfg dt { font-size: 12px; color: var(--fg-subtle); }
.cfg dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.seed { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.seed label { font-size: 13px; color: var(--fg-subtle); }
.seed input { height: 34px; min-width: 0; padding: 0 10px; border: 1px solid var(--line-default); border-radius: 7px; background: var(--sunken); font: 500 14px/1 var(--font-mono); }
.draws { display: grid; }
.draws li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) 2.5em; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.draws li:first-child { border-top: 0; }
.draws .n { color: var(--fg-subtle); }
.draws .s { text-align: end; font-weight: 600; }

/* 2 · play */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.path { display: grid; gap: 6px; justify-items: center; padding: 12px 8px 10px; border-radius: 8px; background: var(--wash); }
.path svg { width: 100%; max-width: 230px; height: auto; overflow: visible; }
.path__trace { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 4 4; }
.path__run { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: run 3.2s var(--ease) infinite; }
@keyframes run { 0% { stroke-dashoffset: 320; } 55%, 100% { stroke-dashoffset: 0; } }
.path__dot { fill: var(--fg); }
.path__lbl { fill: var(--fg-muted); font: 500 11px var(--font-sans); }
.path__num { fill: var(--surface); font: 600 9px var(--font-sans); }
.path__wick { fill: var(--candle-line); }
.path__body--up { fill: var(--candle-up); stroke: var(--candle-line); stroke-width: 1.5; }
.path__body--down { fill: var(--candle-down); stroke: var(--candle-line); stroke-width: 1.5; }
.grow { position: relative; height: 210px; border-radius: 8px; background: var(--wash); overflow: hidden; }
.grow canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 3 · orders */
.card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--chart-bg); font-size: 13px; line-height: 1.5; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card__head b { font-size: 14px; }
.legs { display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--wash); font-variant-numeric: tabular-nums; }
.legs div { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 8px; }
.legs .muted { font-size: 12px; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; font-size: 12px; color: var(--fg-muted); }
.keys div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* 4 · verify */
.log { display: grid; gap: 8px; }
.log__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-subtle); }
.log ol { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.log li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.log li:first-child { border-top: 0; }
.log time { font-family: var(--font-mono); font-size: 12px; color: var(--fg-subtle); line-height: 1.75; }
.verify { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.verify__col { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 8px; background: var(--wash); text-align: center; }
.verify__col span, .verify__col small { font-size: 12px; color: var(--fg-subtle); }
.verify__col b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.verify__eq { font-size: 20px; color: var(--fg-subtle); }
.ok { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; border-radius: 8px; background: var(--up-subtle); color: var(--up-fg); font-weight: 600; font-size: 13px; }

/* 5 · review */
.td__nav { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.td__nav .sp { flex: 1; }
.td__hero { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.td__hero b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.td__side { padding: 1px 8px; border-radius: 5px; background: var(--wash-strong); font-weight: 600; font-size: 13px; }
.td__r { color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.facts-dl { display: grid; gap: 4px; font-size: 13px; }
.facts-dl div { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; }
.facts-dl dt { color: var(--fg-subtle); }
.facts-dl dd { font-variant-numeric: tabular-nums; }
.pa__title { font-size: 12px; font-weight: 600; color: var(--fg-muted); }
.ruler { position: relative; padding: 6px 14px 20px; }
.ruler__track { position: relative; height: 18px; }
.ruler__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--line-default); }
.ruler__band { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--wash-strong); }
.ruler__tick { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; border-radius: 1px; }
.ruler__tick--zero { background: var(--fg-muted); }
.ruler__tick--stop { background: var(--down); }
.ruler__tick--target { background: var(--up); }
.ruler__exit { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 2px var(--surface); }
.ruler__labels { position: absolute; left: 14px; right: 14px; bottom: 0; height: 14px; }
.ruler__labels span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }
.pa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.pa div { display: grid; gap: 1px; padding: 8px 12px; background: var(--surface); }
.pa dt { font-size: 12px; color: var(--fg-subtle); }
.pa dd { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.pa .warn { color: var(--warn-fg); }

/* 6 · report */
.eq svg { display: block; width: 100%; height: auto; }
.eq__line { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; }
.eq__area { fill: var(--wash-strong); }
.eq__sep { stroke: var(--line-default); stroke-width: 1; stroke-dasharray: 3 3; }
.eq__grid { stroke: var(--line); stroke-width: 1; }
.eq__lbl { fill: var(--fg-subtle); font: 400 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.eq__dot { fill: var(--surface); stroke: var(--fg); stroke-width: 1.5; }
.factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.factors div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.factors dt { color: var(--fg-subtle); }
.factors dd { font-weight: 500; font-variant-numeric: tabular-nums; text-align: end; }
.hint { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--warn-subtle); font-size: 13px; line-height: 1.7; }
.hint::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--warn); }
.hint--info { background: var(--wash); }
.hint--info::before { background: var(--fg-faint); }

/* ------------------------------------------------------------ modes */
.modes-sec { padding-block: clamp(80px, 10vw, 128px) 0; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.mode { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.mode h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.mode header { display: grid; gap: 8px; }
.mode header p { color: var(--fg-muted); font-size: 14px; text-wrap: pretty; }
.mini { position: relative; min-height: 220px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--chart-bg); }
.mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mini__bar { position: absolute; left: 10px; top: 8px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; font-size: 12px; color: var(--chart-text); }
.mini__bar button { pointer-events: auto; }
.mode__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--fg-subtle); }
.prop svg { display: block; width: 100%; height: auto; }
.prop__bal { fill: none; stroke: var(--fg); stroke-width: 1.75; stroke-linejoin: round; }
.prop__dot { fill: var(--fg); }
.prop__target { stroke: var(--up); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.prop__dd { stroke: var(--down); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.prop__size { stroke: var(--line-default); stroke-width: 1; fill: none; }
.prop__lbl { font: 500 11px var(--font-sans); font-variant-numeric: tabular-nums; }
.prop__lbl--up { fill: var(--up-fg); }
.prop__lbl--down { fill: var(--down-fg); }
.prop__lbl--muted { fill: var(--fg-subtle); }
.prop__pass { fill: var(--up); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.rules div { display: grid; gap: 1px; padding: 9px 12px; background: var(--surface); }
.rules dt { font-size: 12px; color: var(--fg-subtle); }
.rules dd { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ access, questions, closing */
.access { padding-block: clamp(80px, 10vw, 128px) 0; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.how li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--fg); }
.how__n { font: 500 12px/1 var(--font-mono); color: var(--fg-subtle); }
.how h3 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.how p { color: var(--fg-muted); font-size: 14px; text-wrap: pretty; }
.access__foot { display: grid; justify-items: center; gap: 16px; margin-top: 40px; text-align: center; }
.access__note { font-size: 13px; color: var(--fg-subtle); }
.faq-sec { padding-block: clamp(80px, 10vw, 128px) 0; }
.faq { max-width: 780px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wash-strong); color: var(--fg-muted); font-weight: 400; font-size: 18px; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 44px 20px 2px; color: var(--fg-muted); text-wrap: pretty; }
.closing { padding-block: clamp(96px, 12vw, 152px); }
.closing__in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 24px; font-size: 13px; color: var(--fg-subtle); }
.foot .brand { font-size: 14px; color: var(--fg); }

/* ------------------------------------------------------------ narrow screens */
@media (max-width: 960px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step--flip .step__text { order: 0; }
  .modes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top__cta { margin-inline-start: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .desk-keys { display: none; }
  .stepnav ol { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .fig { padding: 16px; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa, .rules, .factors { grid-template-columns: minmax(0, 1fr); }
  .seg--tf { width: 128px; }
  .desk__node { margin-inline-start: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path__run { animation: none; stroke-dashoffset: 0; }
  .play-main.pulse { animation: none; }
  .tl__pin { transition: none; }
}

/* ------------------------------------------------------------ the quieter page: verses beside the figures */
.hero__lede { font-size: clamp(17px, 1.9vw, 21px); letter-spacing: 0.14em; color: var(--fg-subtle); }
.desk-cap { display: block; font-size: 13px; letter-spacing: 0.32em; color: var(--fg-subtle); }
.chapters__title, .sec-title { text-align: center; letter-spacing: 0.12em; }
.step { grid-template-columns: auto minmax(0, 620px); justify-content: center; gap: clamp(48px, 9vw, 136px); }
.step--flip { grid-template-columns: minmax(0, 620px) auto; }
.step--flip .verse { order: 2; }
/* A title and its line set top to bottom, right to left, as an inscription beside a picture. */
.verse { writing-mode: vertical-rl; align-self: center; }
.verse h3 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: 0.2em; white-space: nowrap; }
.verse p { margin-block-start: 0.9em; padding-inline-start: 3.6em; font-size: 15px; line-height: 1.2; letter-spacing: 0.3em; color: var(--fg-muted); white-space: nowrap; }
/* The step's number as a small stamp, in the capital numerals of receipts and ledgers. */
.seal {
  display: inline-block; writing-mode: horizontal-tb; vertical-align: middle;
  width: 32px; height: 32px; margin-bottom: 18px; border-radius: 3px;
  background: var(--fg); color: var(--page);
  font-size: 17px; font-weight: 600; line-height: 32px; letter-spacing: 0; text-align: center;
}
.how li { justify-items: center; text-align: center; }
.how p { font-size: 14px; letter-spacing: 0.06em; }
.mode header p { letter-spacing: 0.08em; }
.access__note { letter-spacing: 0.12em; }
@media (max-width: 960px) {
  .step, .step--flip { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 28px; }
  .step--flip .verse { order: 0; }
  .verse { writing-mode: horizontal-tb; display: grid; justify-items: center; gap: 10px; text-align: center; }
  .verse h3 { font-size: 28px; letter-spacing: 0.12em; }
  .verse p { margin: 0; padding: 0; letter-spacing: 0.16em; }
  .seal { width: 24px; height: 24px; line-height: 24px; font-size: 13px; margin: 0 12px 0 0; vertical-align: 4px; }
}


/* ------------------------------------------------------------ header tools: pricing, language, theme */
.top__tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.top__link { padding: 6px 10px; border-radius: 8px; color: var(--fg-muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.top__link:hover { color: var(--fg); background: var(--hover); }
.top__btn { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--fg-muted); font-size: 13px; font-weight: 600; }
.top__btn:hover { color: var(--fg); background: var(--hover); }
.top__tools .btn { margin-inline-start: 6px; }

/* ------------------------------------------------------------ features: a ledger of sixteen */
.features { padding-block: clamp(80px, 10vw, 128px) 0; }
.flist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.flist li { display: grid; align-content: start; gap: 6px; padding: 22px 20px 24px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flist b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.flist span { font-size: 13px; line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; }
.features__foot { display: flex; justify-content: center; margin-top: 36px; }

/* ------------------------------------------------------------ English: the same page, set horizontally */
:root[lang="en"] .verse { writing-mode: horizontal-tb; display: grid; align-content: center; gap: 12px; max-width: 250px; }
:root[lang="en"] .verse h3 { white-space: normal; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
:root[lang="en"] .verse p { margin: 0; padding: 0; white-space: normal; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
:root[lang="en"] .seal { display: block; margin: 0 0 16px; }
:root[lang="en"] .hero h1 { letter-spacing: -0.03em; }
:root[lang="en"] .hero__lede, :root[lang="en"] .desk-cap, :root[lang="en"] .chapters__title, :root[lang="en"] .sec-title,
:root[lang="en"] .how p, :root[lang="en"] .mode header p, :root[lang="en"] .access__note { letter-spacing: 0; }
:root[lang="en"] .h2, :root[lang="en"] .mode h3, :root[lang="en"] .how h3 { letter-spacing: -0.015em; }

@media (max-width: 960px) {
  .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root[lang="en"] .verse { max-width: none; justify-items: center; text-align: center; }
  :root[lang="en"] .seal { margin: 0 auto 12px; }
}
@media (max-width: 560px) {
  .top__link { display: none; }
  .top__tools .btn { margin-inline-start: 2px; }
  .flist li { padding: 16px 14px 18px; }
}

/* ------------------------------------------------------------ the pricing page, until there are prices */
.soon { padding-block: clamp(96px, 16vh, 180px); }
.soon__in { display: grid; justify-items: center; gap: 18px; text-align: center; }
.soon__line { font-size: clamp(17px, 1.9vw, 21px); letter-spacing: 0.14em; color: var(--fg-subtle); }
:root[lang="en"] .soon__line { letter-spacing: 0; }
.top__link[aria-current="page"] { color: var(--fg); font-weight: 600; }

/* ------------------------------------------------------------ footer: social and copyright, then the small print */
.foot { border-top: 1px solid var(--line); background: var(--sunken); }
.foot > .wrap { display: grid; gap: 24px; padding-block: 32px 40px; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.foot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-size: 13px; color: var(--fg-muted); }
.foot__meta a { color: var(--fg); text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.social { display: flex; gap: 2px; margin-inline-start: -8px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--fg); transition: background 120ms var(--ease); }
.social a:hover { background: var(--hover); }
.social svg { width: 19px; height: 19px; }
.legal { display: grid; gap: 10px; }
.legal p { font-size: 12px; line-height: 1.75; color: var(--fg-subtle); text-wrap: pretty; }
@media (max-width: 760px) {
  .foot__bar { flex-direction: column; text-align: center; }
  .foot__meta { justify-content: center; }
  .social { margin-inline-start: 0; }
}

/* ------------------------------------------------------------ pricing: one plan while in beta */
.pricing { padding-block: clamp(72px, 12vh, 128px) clamp(80px, 12vh, 140px); }
.pricing__in { display: grid; justify-items: center; gap: 14px; text-align: center; }
.pricing__lead { font-size: clamp(17px, 1.9vw, 21px); letter-spacing: 0.14em; color: var(--fg-subtle); }
.plan { display: grid; gap: 16px; width: min(100%, 380px); margin-top: 26px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); text-align: start; }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 16px; font-weight: 600; }
.plan__price { display: flex; align-items: baseline; gap: 10px; }
.plan__price b { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; color: var(--fg-subtle); }
.plan__incl { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg-muted); }
.plan__list { display: grid; gap: 10px; }
.plan__list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.5; }
.plan__list li::before { content: ""; width: 6px; height: 6px; margin-top: 7px; background: var(--fg); }
.plan__cta { margin-top: 6px; }
.pricing__note { margin-top: 10px; font-size: 13px; color: var(--fg-subtle); }
.pricing__home { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.pricing__home:hover { color: var(--fg); }
:root[lang="en"] .pricing__lead { letter-spacing: 0; }
