/* GENERATED by scripts/build-site-content.mjs from tokens.css, ui.css, home.css. Do not edit; edit those files. */
/* Silkline design tokens: the ONE file that holds colours, type, spacing, radii and motion for the landing site
   and the console (docs/规格-自营站成品.md「设计方向」; teardown in docs/research/对标拆解-2026-11-19.md).
   Dark is the default. Light is its own palette, not an inversion. A first visit follows the system setting;
   the switch stores the choice (ui/theme.js sets data-theme on <html>).
   Rules: no brand accent. Colour appears only where it means good / bad / caution, and in JSON values.
   Nothing outside this file may write a colour, a font size, a radius or a duration. */
@font-face { font-family: Geist; src: url(/fonts/geist-latin.woff2) format("woff2"); font-weight: 400 600; 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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 400 500; 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-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Arial scaled to Geist's width (measured 1.019) so text does not move when Geist swaps in */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 101.9%; }

:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0A0A0B;
  --bg-1: #111113;      /* panels, cards */
  --bg-2: #18181B;      /* raised: inputs, hovered rows, chips */
  --bg-inv: #F4F4F5;    /* the primary button */
  /* text: three steps, no more */
  --fg: #F4F4F5;        /* 18.1:1 on --bg */
  --fg-2: #A1A1AA;      /* 7.7:1 */
  --fg-3: #7F7F8A;      /* 4.9:1: labels and meta only, never body text */
  --fg-inv: #0A0A0B;
  /* lines */
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --control: #5C5C66;   /* borders of inputs: 3:1 on --bg */
  --focus: #FFFFFF;
  /* the backing of the footer's directory badges: their own artwork is drawn for light pages, one is dark on dark */
  --badge-bg: #E4E4E7;
  /* meaning: always shown with a shape and a word, never alone */
  --ok: #3FB984;   --ok-bg: rgba(63, 185, 132, .12);
  --bad: #F0616D;  --bad-bg: rgba(240, 97, 109, .12);
  --warn: #F5C451; --warn-bg: rgba(245, 196, 81, .12);
  /* the request/response area: dark in both themes */
  --code-bg: #0E0E10;
  --code-bg-2: #17171A;
  --code-line: rgba(255, 255, 255, .08);
  --code-fg: #F2F2F3;
  --code-fg-2: #9A9DA3;
  --code-str: #C9B98A;
  --code-num: #A9C4A0;
  --code-ok: #3FB984; --code-ok-bg: rgba(63, 185, 132, .12);
  --code-bad: #F0616D;
  --code-btn: #F4F4F5; --code-btn-fg: #0A0A0B;
  --nav-glass: rgba(10, 10, 11, .72);
  --shadow: 0 0 0 1px var(--line), 0 24px 64px -24px rgba(0, 0, 0, .7);
  /* background light: a cool white and the green of a live answer. No brand hue. */
  --glow-a: rgba(168, 196, 255, .20);
  --glow-b: rgba(63, 185, 132, .13);
  --glow-c: rgba(255, 255, 255, .07);
  --grid: rgba(255, 255, 255, .045);
  --live: #3FB984;
  --dim: #6B6B76;       /* the second line of a two-tone heading: display sizes only (light: #62656A, 4.8:1 on every light ground) */
  --band: #141416;      /* a section set apart from its neighbours: visibly lighter than --bg in dark */
  --lift: #1C1C20;      /* the contrast section: clearly lighter than --band in dark, darker than --band in light */
  --sheen: rgba(10, 10, 11, .14);      /* the streak across the primary button (light button in dark) */
  --card-glow: rgba(255, 255, 255, .26); /* the border light that follows the pointer */
  --lit: rgba(63, 185, 132, .10);
  /* the catalog's groups: five greys, never a brand's colour */
  --cat-0: #3A3A40; --cat-1: #2E2E33; --cat-2: #45454C; --cat-3: #26262A; --cat-4: #333338;
  --cat-fg: #E4E4E7;
  --opaque: #000;      /* mask paint only: what a mask keeps, never seen as a colour */      /* a code line that stays the same across platforms */

  --sans: Geist, "Geist Fallback", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Geist Mono", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", ui-monospace, monospace;

  /* type: size/line-height pairs, the only ones */
  /* headline sizes are at the level of the references we were measured against (88 and 60), not below */
  --t-display: 600 88px/88px var(--sans);  --ls-display: -.04em;
  --t-display-zh: 600 88px/104px var(--sans); /* Chinese: 8 characters a line must fit a phone's width (see below) */   /* the first screen: one title, as large as the references' (88) */
  --lh-display-zh: 1.18;   /* Chinese display lines need more room between them than Latin */
  --t-h2: 600 60px/62px var(--sans);       --ls-h2: -.04em;
  --t-h3: 600 28px/34px var(--sans);       --ls-h3: -.03em;
  --t-h4: 600 20px/28px var(--sans);       --ls-h4: -.015em;
  --t-lead: 400 20px/30px var(--sans);
  --t-cta: 600 72px/74px var(--sans);      --ls-cta: -.04em;
  --t-body: 400 16px/26px var(--sans);
  --t-btn: 500 15px/20px var(--sans);
  --t-ui: 400 14px/20px var(--sans);
  --t-label: 400 13px/20px var(--sans);
  --t-micro: 500 12px/16px var(--mono);    --ls-micro: .06em;
  --t-code: 400 13px/20px var(--mono);
  --t-tiny: 600 10px/12px var(--sans);   /* a letter inside a small square */
  --t-mark: 600 12px/12px var(--sans);
  --t-code-s: 400 11px/14px var(--mono);   /* code inside a small picture */
  --t-q: 500 17px/24px var(--sans);        /* a question in the list */   /* a platform's mark in its square */
  --t-stat: 600 32px/36px var(--sans);     --ls-stat: -.03em;
  --t-big: 600 80px/84px var(--sans);      /* the numbers band: the size of the headline */
  --t-h2s: 600 40px/46px var(--sans);      --ls-h2s: -.03em;   /* a one-line section title, smaller than the two-tone ones */

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-pill: 999px;
  --wrap: 1232px;
  --gutter: 24px;
  --nav-h: 60px;
  --measure: 35rem;

  /* motion: colour 150, movement 200, reveal 500, arrival 600 (the only long one) */
  --t-fast: 150ms;
  --t-move: 200ms;
  --t-reveal: 500ms;
  --t-arrive: 600ms;
  --t-loop: 2400ms;   /* pictures that keep running: a packet, a caret */
  --t-drift: 22s;     /* the background light */
  --t-draw: 900ms;    /* a bar or a meter filling once */
  --t-word: 70ms;     /* between two words of the headline rising */
  --t-type: 38ms;     /* one character typed in a terminal */
  --t-sweep: 900ms;   /* the streak across a button */
  --t-swap: 180ms;    /* one platform's answer giving way to the next */
  --t-row: 90ms;      /* between two rows of the demo fading in */
  --e-std: cubic-bezier(.4, 0, .2, 1);
  --e-out: cubic-bezier(.19, 1, .22, 1);
}

/* light: set by the switch, or by the system on a first visit */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --bg-1: #F7F7F8; --bg-2: #EFEFF1; --bg-inv: #0B0B0C;
  --fg: #0B0B0C; --fg-2: #55575C; --fg-3: #5E6166; --fg-inv: #FFFFFF;
  --line: #E4E4E7; --line-2: #EFEFF1; --control: #8C8F94; --focus: #0B0B0C;
  --ok: #00754A;   --ok-bg: #E3F4EC;
  --bad: #C4303A;  --bad-bg: #FBE9EA;
  --warn: #8A5A00; --warn-bg: #FFF4D6;
  /* light: the code areas are a light panel with dark text, not a black block on a white page */ --code-bg: #F5F6F8; --code-bg-2: #ECEEF2; --code-line: rgba(11, 11, 12, .09); --code-fg: #17181C; --code-fg-2: #5E636E; --code-str: #7A4E00; --code-num: #2D6A3A; --code-ok: #00754A; --code-ok-bg: #E3F4EC; --code-bad: #C4303A; --code-btn: #0B0B0C; --code-btn-fg: #FFFFFF;
  --nav-glass: rgba(255, 255, 255, .78);
  --shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(11, 11, 12, .28);
  --glow-a: rgba(120, 150, 255, .16); --glow-b: rgba(0, 150, 100, .10); --glow-c: rgba(11, 11, 12, .04); --grid: rgba(11, 11, 12, .05); --live: #00754A; --dim: #62656A;
    --badge-bg: transparent;
    --band: #F3F3F5; --lift: #E8E8EC; --cat-0: #D4D4D8; --cat-1: #E4E4E7; --cat-2: #C4C4CA; --cat-3: #EDEDF0; --cat-4: #DADADF; --cat-fg: #18181B; --sheen: rgba(255, 255, 255, .26); --card-glow: rgba(11, 11, 12, .22);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #FFFFFF; --bg-1: #F7F7F8; --bg-2: #EFEFF1; --bg-inv: #0B0B0C;
    --fg: #0B0B0C; --fg-2: #55575C; --fg-3: #5E6166; --fg-inv: #FFFFFF;
    --line: #E4E4E7; --line-2: #EFEFF1; --control: #8C8F94; --focus: #0B0B0C;
    --ok: #00754A;   --ok-bg: #E3F4EC;
    --bad: #C4303A;  --bad-bg: #FBE9EA;
    --warn: #8A5A00; --warn-bg: #FFF4D6;
    /* light: the code areas are a light panel with dark text, not a black block on a white page */ --code-bg: #F5F6F8; --code-bg-2: #ECEEF2; --code-line: rgba(11, 11, 12, .09); --code-fg: #17181C; --code-fg-2: #5E636E; --code-str: #7A4E00; --code-num: #2D6A3A; --code-ok: #00754A; --code-ok-bg: #E3F4EC; --code-bad: #C4303A; --code-btn: #0B0B0C; --code-btn-fg: #FFFFFF;
    --nav-glass: rgba(255, 255, 255, .78);
    --shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(11, 11, 12, .28);
    --glow-a: rgba(120, 150, 255, .16); --glow-b: rgba(0, 150, 100, .10); --glow-c: rgba(11, 11, 12, .04); --grid: rgba(11, 11, 12, .05); --live: #00754A; --dim: #62656A;
    --badge-bg: transparent;
    --band: #F3F3F5; --lift: #E8E8EC; --cat-0: #D4D4D8; --cat-1: #E4E4E7; --cat-2: #C4C4CA; --cat-3: #EDEDF0; --cat-4: #DADADF; --cat-fg: #18181B; --sheen: rgba(255, 255, 255, .26); --card-glow: rgba(11, 11, 12, .22);
  }
}
@media (max-width: 720px) {
  :root {
    --t-display: 600 46px/46px var(--sans);
    --t-display-zh: 600 40px/48px var(--sans);
    --t-h2: 600 34px/36px var(--sans);
    --t-h3: 600 24px/30px var(--sans);
    --t-h4: 600 18px/26px var(--sans);
    --t-lead: 400 17px/27px var(--sans);
    --t-cta: 600 40px/42px var(--sans);
    --t-stat: 600 26px/30px var(--sans);
    --t-big: 600 44px/48px var(--sans);
    --t-h2s: 600 28px/34px var(--sans);
    --gutter: 20px;
    --s-10: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t-move: 0ms; --t-reveal: 0ms; --t-arrive: 0ms; --t-draw: 0ms; --t-word: 0ms; --t-type: 0ms; --t-sweep: 0ms; --t-swap: 0ms; --t-row: 0ms; }
}

/* Silkline shared components (landing site and console). Every value comes from ui/tokens.css.
   Motion rules: colour 150ms, movement 200ms, one reveal per block when it scrolls in, and one long motion on the
   whole site: a response arriving. Nothing here takes over scrolling. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--s-4)); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--t-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-1); }
::selection { background: var(--fg); color: var(--bg); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 30; }
.skip:focus { top: var(--s-2); }

/* type */
.t-display { font: var(--t-display); letter-spacing: var(--ls-display); margin: 0; text-wrap: balance; }
.t-h2 { font: var(--t-h2); letter-spacing: var(--ls-h2); margin: 0; text-wrap: balance; }
.t-h3 { font: var(--t-h3); letter-spacing: var(--ls-h3); margin: 0; }
.t-h4 { font: var(--t-h4); letter-spacing: var(--ls-h4); margin: 0; }
.dim { color: var(--dim); }
.t-lead { font: var(--t-lead); color: var(--fg-2); margin: 0; text-wrap: pretty; }
.t-body { font: var(--t-body); margin: 0; text-wrap: pretty; }
.t-ui { font: var(--t-ui); }
.t-label { font: var(--t-label); color: var(--fg-3); }
.t-code { font: var(--t-code); }
.eyebrow { font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--fg-3); margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.eyebrow b { color: var(--fg); font-weight: 500; }
.eyebrow span + span::before { content: ""; display: inline-block; width: 16px; height: 1px; background: var(--line); margin-right: var(--s-4); vertical-align: middle; }
:lang(zh) .eyebrow { letter-spacing: 0; }
.fg-2 { color: var(--fg-2); } .fg-3 { color: var(--fg-3); }

/* buttons: the solid one always points at the next step */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 44px; padding: 0 20px; border-radius: var(--r-2); border: 1px solid var(--bg-inv); background: var(--bg-inv); color: var(--fg-inv); font: var(--t-btn); text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--t-fast) var(--e-std), border-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std), opacity var(--t-fast) var(--e-std), transform var(--t-move) var(--e-out); }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: default; }
.btn.sm { height: 34px; padding: 0 14px; font: 500 14px/20px var(--sans); }
.btn.quiet { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.quiet:hover { background: var(--bg-2); opacity: 1; }
.btn .arrow { transition: transform var(--t-move) var(--e-out); }
.btn:hover .arrow { transform: translateX(3px); }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-2); border: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer; transition: background-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.iconbtn:hover { background: var(--bg-2); color: var(--fg); }
.iconbtn svg { width: 16px; height: 16px; }

/* nav: clear over the first screen, glass with a hairline once the page has moved */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color 300ms var(--e-std), border-color 300ms var(--e-std), backdrop-filter 300ms var(--e-std); }
.nav.is-stuck { background: var(--nav-glass); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 16px/20px var(--sans); letter-spacing: -.01em; text-decoration: none; color: var(--fg); }
.brand svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: var(--s-1); margin-right: auto; }
.nav-links a { font: var(--t-ui); color: var(--fg-2); text-decoration: none; padding: 6px 10px; border-radius: var(--r-1); transition: color var(--t-fast) var(--e-std), background-color var(--t-fast) var(--e-std); }
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }
.nav-tools { display: flex; align-items: center; gap: var(--s-2); }
.nav-tools .lang { font: var(--t-ui); color: var(--fg-2); text-decoration: none; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--r-2); border: 1px solid var(--line); transition: background-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.nav-tools .lang:hover { background: var(--bg-2); color: var(--fg); }
.nav-tools .signin { font: var(--t-ui); color: var(--fg-2); text-decoration: none; padding: 0 var(--s-2); }
.nav-tools .signin:hover { color: var(--fg); }
/* the theme switch shows the icon of the theme in use */
.theme .i-sun, :root[data-theme="light"] .theme .i-moon { display: none; }
:root[data-theme="light"] .theme .i-sun { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme .i-moon { display: none; } :root:not([data-theme]) .theme .i-sun { display: block; } }

/* scroll reveal: once, only when scripts run (html.js), never with reduced motion */
.js .rv { opacity: 1; transform: translateY(12px); transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* hero */
.hero { padding: calc(var(--nav-h) + 40px) 0 var(--s-8); }
.hero .wrap { display: grid; gap: var(--s-5); }
.hero-head { display: grid; gap: var(--s-4); justify-items: start; }
.hero .t-lead { max-width: 44rem; }

/* the live request: the one place a long motion is allowed */
.demo { margin-top: var(--s-4); background: var(--code-bg); color: var(--code-fg); border-radius: var(--r-3); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--code-line); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: var(--t-ui); color: var(--code-fg-2); background: transparent; border: 0; height: 32px; padding: 0 12px; border-radius: var(--r-1); cursor: pointer; white-space: nowrap; transition: background-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.tab:hover { color: var(--code-fg); }
.tab[aria-selected="true"] { background: var(--code-bg-2); color: var(--code-fg); box-shadow: inset 0 0 0 1px var(--code-line); }
.tab small { font: var(--t-label); color: var(--code-fg-2); margin-left: 6px; }
.demo-req { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-bottom: 1px solid var(--code-line); }
.method { font: var(--t-micro); letter-spacing: var(--ls-micro); color: var(--code-ok); background: var(--code-ok-bg); padding: 4px 8px; border-radius: var(--r-1); }
.url { font: var(--t-code); color: var(--code-fg); flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.url::-webkit-scrollbar { display: none; }
.url .q { color: var(--code-fg-2); }
.demo .btn { height: 36px; padding: 0 16px; background: var(--code-btn); border-color: var(--code-btn); color: var(--code-btn-fg); }
.demo .btn.quiet { background: transparent; color: var(--code-fg); border-color: var(--code-line); }
.demo .btn.quiet:hover { background: var(--code-bg-2); }
.demo-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 296px; }
.rows { margin: 0; padding: var(--s-2) var(--s-3); list-style: none; overflow: hidden; border-right: 1px solid var(--code-line); }
.row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; height: 56px; padding: 0 var(--s-2); border-radius: var(--r-1); border-bottom: 1px solid var(--code-line); cursor: default; }
.row:last-child { border-bottom-color: transparent; }
.row .rk { font: var(--t-code); color: var(--code-fg-2); text-align: right; }
.row .tx { min-width: 0; display: grid; }
.row .tx b { font: 500 14px/20px var(--sans); color: var(--code-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx i { font: 400 13px/18px var(--sans); font-style: normal; color: var(--code-fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .st { font: var(--t-code); color: var(--code-fg); text-align: right; display: grid; }
.row .st small { font: var(--t-label); color: var(--code-fg-2); }
.row.is-on { background: var(--code-bg-2); }
/* before a run: the shape of the answer, barely visible. An empty state, not a spinner. */
.row.ghost .tx b, .row.ghost .tx i, .row.ghost .rk, .row.ghost .st { color: transparent; }
.row.ghost .tx b::before, .row.ghost .tx i::before, .row.ghost .st::before { content: ""; display: block; height: 8px; border-radius: 4px; background: var(--code-bg-2); }
.row.ghost .tx b::before { width: 62%; margin: 6px 0; } .row.ghost .tx i::before { width: 38%; margin: 5px 0; } .row.ghost .st::before { width: 56px; }
.row.arrive { animation: arrive var(--t-move) var(--e-out) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.json { margin: 0; padding: var(--s-3) var(--s-4); font: var(--t-code); color: var(--code-fg-2); overflow: auto; white-space: pre; scrollbar-width: thin; scrollbar-color: var(--code-bg-2) transparent; tab-size: 2; }
.json .s { color: var(--code-str); } .json .n { color: var(--code-num); }
.json .rec { display: block; border-radius: var(--r-1); transition: background-color var(--t-move) var(--e-std); }
.json .rec.is-on { background: var(--code-bg-2); }
.json .hint { color: var(--code-fg-2); opacity: .6; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); padding: 10px var(--s-4); border-top: 1px solid var(--code-line); font: var(--t-label); color: var(--code-fg-2); min-height: 41px; }
.demo-foot b { color: var(--code-fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--code-fg-2); margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--code-ok); } .dot.bad { background: var(--code-bad); }
.demo-foot .grow { margin-left: auto; }
.demo-foot a { color: var(--code-fg); text-underline-offset: 3px; text-decoration-color: var(--code-line); }
.pane-tabs { display: none; }

/* a row of real numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-3); margin: 0 0 var(--s-9); padding: 0; list-style: none; }
.stats li { padding: var(--s-5); border-left: 1px solid var(--line); display: grid; gap: var(--s-1); }
.stats li:first-child { border-left: 0; }
.stats b { font: var(--t-stat); letter-spacing: var(--ls-stat); font-variant-numeric: tabular-nums; }
.stats span { font: var(--t-ui); color: var(--fg-2); }

/* sections */
.sec { padding: var(--s-10) 0; border-top: 1px solid var(--line-2); }
.sec-head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: var(--s-7); }
.kicker { font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--fg-3); margin: 0; display: flex; align-items: center; gap: var(--s-3); }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--control); }
:lang(zh) .kicker { letter-spacing: 0; }

/* platforms: each bar is as long as the platform's real number of endpoints */
.plat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-8); margin: 0; padding: 0; list-style: none; }
.plat li { border-top: 1px solid var(--line-2); }
.plat a { display: grid; grid-template-columns: 196px minmax(0, 1fr) 40px; align-items: center; gap: var(--s-4); height: 48px; text-decoration: none; color: var(--fg); padding: 0 var(--s-2); border-radius: var(--r-1); transition: background-color var(--t-fast) var(--e-std); }
.plat a:hover { background: var(--bg-1); }
.plat .nm { font: 500 15px/20px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plat svg { width: 100%; height: 6px; overflow: visible; }
.plat rect.tr { fill: var(--bg-2); }
.plat rect.vl { fill: var(--fg); transform-origin: left center; transition: transform 700ms var(--e-out); transition-delay: calc(var(--i, 0) * 30ms); }
.js .plat:not(.in) rect.vl { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .js .plat:not(.in) rect.vl { transform: none; } }
.plat .ct { font: var(--t-code); color: var(--fg-2); text-align: right; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-7); color: var(--fg-2); font: var(--t-ui); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; }
.foot a { color: var(--fg-2); text-decoration: none; transition: color var(--t-fast) var(--e-std); }
.foot a:hover { color: var(--fg); }
.foot .grow { margin-right: auto; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .wrap { gap: var(--s-3); justify-content: space-between; }
  .nav-tools .signin { display: none; }
  .hero { padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-7); }
  .demo-req { flex-wrap: wrap; }
  .url { flex-basis: calc(100% - 64px); order: 0; }
  .demo-req .btn { flex: 1; }
  .demo-body { grid-template-columns: minmax(0, 1fr); height: 296px; }
  .demo-bar { flex-wrap: wrap; gap: var(--s-2); }
  .demo-bar .tabs { flex-basis: 100%; }
  .stats { margin-bottom: var(--s-8); }
  .rows { border-right: 0; }
  .pane-tabs { display: flex; gap: 2px; }
  .pane-tabs .tab { height: 28px; padding: 0 10px; }
  .demo[data-pane="rows"] .json, .demo[data-pane="json"] .rows { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stats li { padding: var(--s-4); }
  .plat { grid-template-columns: minmax(0, 1fr); }
  .plat a { grid-template-columns: 136px minmax(0, 1fr) 32px; gap: var(--s-3); }
  .sec-head { margin-bottom: var(--s-6); }
}

/* ---- shared controls and data components (landing site and console) ---- */
.card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); }
.card.flat { background: transparent; }
.field { display: grid; gap: var(--s-2); }
.field > label, .label { font: var(--t-label); color: var(--fg-2); }
.input, .select, .textarea { font: var(--t-ui); color: var(--fg); background: var(--bg-1); border: 1px solid var(--control); border-radius: var(--r-2); height: 40px; padding: 0 var(--s-3); min-width: 0; width: 100%; transition: border-color var(--t-fast) var(--e-std), background-color var(--t-fast) var(--e-std); }
.textarea { height: auto; padding: var(--s-2) var(--s-3); font: var(--t-code); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg-2); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.hint { font: var(--t-label); color: var(--fg-3); margin: 0; }
.hint.bad { color: var(--bad); }

/* a status is a shape, a word and a colour: never the colour alone */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font: 500 12px/16px var(--sans); color: var(--fg-2); background: var(--bg-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.bad::before { border-radius: 1px; transform: rotate(45deg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.warn::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }
.badge.plain::before { display: none; }
.delta { font: var(--t-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.good { color: var(--ok); } .delta.poor { color: var(--bad); } .delta.flat { color: var(--fg-3); }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-3); }
.table { width: 100%; border-collapse: collapse; font: var(--t-ui); }
.table th { font: var(--t-label); color: var(--fg-3); text-align: left; font-weight: 400; height: 40px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-1); }
.table td { height: 44px; padding: 0 var(--s-4); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-fast) var(--e-std); }
.table tbody tr:hover { background: var(--bg-1); }
.table .r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font: var(--t-code); }

.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-2); }
.seg button, .seg a { font: var(--t-ui); color: var(--fg-2); background: transparent; border: 0; height: 30px; padding: 0 12px; border-radius: var(--r-1); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; transition: background-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.seg [aria-selected="true"], .seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--bg-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

/* code and JSON outside the demo: dark in both themes */
.code { background: var(--code-bg); color: var(--code-fg); border-radius: var(--r-3); box-shadow: var(--shadow); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--code-line); font: var(--t-label); color: var(--code-fg-2); }
.code pre { margin: 0; padding: var(--s-4); font: var(--t-code); color: var(--code-fg-2); overflow: auto; tab-size: 2; }
.code pre b { color: var(--code-fg); font-weight: 400; }
.code .s { color: var(--code-str); } .code .n { color: var(--code-num); }
code.inline { font: var(--t-code); background: var(--bg-2); padding: 1px 6px; border-radius: var(--r-1); }

.empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-7) var(--s-5); border: 1px dashed var(--line); border-radius: var(--r-3); color: var(--fg-2); }
.empty b { font: var(--t-h4); color: var(--fg); }
.note { border: 1px solid var(--line); border-left: 2px solid var(--fg-2); border-radius: var(--r-1); padding: var(--s-3) var(--s-4); font: var(--t-ui); color: var(--fg-2); }
.note.bad { border-left-color: var(--bad); } .note.warn { border-left-color: var(--warn); } .note.ok { border-left-color: var(--ok); }
.prose { max-width: var(--measure); display: grid; gap: var(--s-3); }
.prose h2 { font: var(--t-h4); margin: var(--s-6) 0 0; }
.prose p, .prose li { font: var(--t-body); margin: 0; color: var(--fg-2); text-wrap: pretty; }
.prose ul, .prose ol { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.prose a, a.link { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--control); transition: text-decoration-color var(--t-fast) var(--e-std); }
.prose a:hover, a.link:hover { text-decoration-color: var(--fg); }
.toast { position: fixed; left: 50%; bottom: var(--s-6); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--bg-inv); color: var(--fg-inv); font: var(--t-ui); padding: 10px var(--s-4); border-radius: var(--r-2); z-index: 40; transition: opacity var(--t-move) var(--e-std), transform var(--t-move) var(--e-out); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* the theme switch: the new theme is revealed by a circle from the button (site.js); no cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* the phone menu: a button in the bar opens the main links (and sign-in) as a panel under it; every target 44px high */
.iconbtn.menu, .nav-links .only-m { display: none; }
@media (max-width: 720px) {
  .iconbtn.menu { display: inline-grid; width: 44px; height: 44px; }
  .nav-tools .lang { display: none; }
  .nav-tools .theme { width: 44px; height: 44px; }
  .nav.open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.open .nav-links { display: grid; position: absolute; top: var(--nav-h); left: 0; right: 0; gap: 0; margin: 0; padding: var(--s-2) var(--gutter) var(--s-4); background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s-2); font: var(--t-btn); color: var(--fg); border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav.open .nav-links .only-m { display: flex; }
}
/* the phone menu covers the page under it: an opaque panel and a dimmed page below */
@media (max-width: 720px) {
  .nav.open::after { content: ""; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg); opacity: .92; z-index: -1; }
}
@media (max-width: 720px) {
  .nav.open .nav-links .only-m.primary { justify-content: center; margin: var(--s-2) 0; border: 0; border-radius: var(--r-2); background: var(--bg-inv); color: var(--fg-inv); }
}
/* the nav's square buttons have an edge that can be seen on the dark ground */
.nav-tools .lang, .nav-tools .iconbtn { border-color: var(--control); }

/* ---- components shared by the home page and the other public pages: footer, section heads, pill, live dot,
   terminal, chip, pointer-lit card, questions, the price calculator. Moved here from home.css and home-rest.css in
   their original order, so a fix to one of them reaches every page. Selectors that the console also uses are
   narrowed (.live:not(.dot), .calc .select, .nav .brand) so the console looks as before. ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn.lg { height: 48px; padding: 0 24px; border-radius: var(--r-3); }
.sec { position: relative; }
.sec-head { max-width: 52rem; }
.sec-head .t-lead { max-width: 40rem; }
.t-h2 .dim { display: block; }
.pill { display: inline-flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-1); color: var(--fg-2); font: var(--t-ui); text-decoration: none; transition: border-color var(--t-fast) var(--e-std), color var(--t-fast) var(--e-std); }
.pill:hover { border-color: var(--control); color: var(--fg); }
.pill b { color: var(--fg); font-weight: 500; }
.pill .sep { width: 1px; height: 14px; background: var(--line); }
.pill .arrow { transition: transform var(--t-move) var(--e-out); }
.pill:hover .arrow { transform: translateX(3px); }
.live:not(.dot) { width: 8px; height: 8px; border-radius: 50%; background: var(--live); position: relative; }
.live:not(.dot)::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); animation: ping var(--t-loop) var(--e-std) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + var(--s-6)); margin-bottom: 0; }
:lang(zh) .foot.big h2 { letter-spacing: 0; }
@media (max-width: 1000px) {
  .faq-grid .sec-head { position: static; margin-bottom: var(--s-6); }
}
@media (prefers-reduced-motion: reduce) {
  .live:not(.dot)::after { animation: none; }
}
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center .kicker::before { display: none; }
.sec-head.center .t-lead { margin-inline: auto; }
@keyframes tick { from { transform: translateY(4px); opacity: .5; } to { transform: none; opacity: 1; } }
.sec.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.band + .sec { border-top-color: transparent; }
.sec-head.wide { max-width: 60rem; }
.sec-head.sub { margin: var(--s-9) auto var(--s-6); }
.sec-head.sub .t-h3 .dim { color: var(--dim); }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--card-glow), transparent 70%);
  -webkit-mask: linear-gradient(var(--opaque) 0 0) content-box, linear-gradient(var(--opaque) 0 0); -webkit-mask-composite: xor; mask: linear-gradient(var(--opaque) 0 0) content-box exclude, linear-gradient(var(--opaque) 0 0);
  transition: opacity var(--t-fast) var(--e-std); }
.glow:hover::before { opacity: 1; }
@media (max-width: 1000px) {
  .pill .sep, .pill .pill-link { display: none; }
}
@media (max-width: 720px) {
  .pill { max-width: 100%; }
}
.pill b { font: var(--t-code); font-weight: 500; }
@media (max-width: 720px) {
  .nav-tools .btn.sm, .pill { min-height: 44px; }
  .nav .brand, .foot .brand { min-height: 44px; display: inline-flex; align-items: center; }
}
.term { background: var(--code-bg); border-radius: var(--r-3); box-shadow: 0 0 0 1px var(--code-line); overflow: hidden; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px var(--s-3); border-bottom: 1px solid var(--code-line); font: var(--t-micro); color: var(--code-fg-2); }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--code-bg-2); }
.term-bar span { margin-left: var(--s-2); }
.term pre { margin: 0; padding: var(--s-4); font: var(--t-code); color: var(--code-fg); overflow-x: auto; scrollbar-width: none; }
.term pre::-webkit-scrollbar { display: none; }
.term .p { color: var(--code-fg-2); }
.term .s { color: var(--code-str); }
.term .n { color: var(--code-num); }
.term .c { color: var(--code-fg-2); }
.term mark { background: var(--code-ok-bg); color: var(--code-ok); border-radius: 3px; padding: 1px 0; }
.pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5); align-items: stretch; }
.calc { display: grid; gap: var(--s-5); align-content: start; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-4); padding: var(--s-6); }
.calc .select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: var(--s-7); height: 44px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--fg) var(--fill, 50%), var(--bg-2) var(--fill, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--bg-2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fg); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-inv); border: 4px solid var(--bg-1); box-shadow: 0 0 0 1px var(--control); margin-top: -9px; transition: transform var(--t-fast) var(--e-out); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-inv); border: 4px solid var(--bg-1); box-shadow: 0 0 0 1px var(--control); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.calc-out p { margin: 0; display: grid; gap: 2px; }
.calc-out b { font: var(--t-h4); font-variant-numeric: tabular-nums; }
.calc-out .big { grid-column: 1 / -1; }
.calc-out .big b { font: var(--t-cta); letter-spacing: var(--ls-cta); }
.calc-out .big small { font: var(--t-ui); color: var(--fg-3); }
.term.big pre { padding: var(--s-5); line-height: 30px; min-height: 236px; white-space: normal; }
.term .ln { display: block; white-space: pre-wrap; }
.term .ln.ok { color: var(--code-ok); }
.term .ln.d { color: var(--code-fg-2); }
.js .term.play .ln { opacity: 0; transform: translateY(4px); transition: opacity var(--t-move) var(--e-std), transform var(--t-move) var(--e-out); }
.js .in .term.play .ln { opacity: 1; transform: none; }
.in .term.play .ln:nth-child(2) { transition-delay: 500ms; }
.in .term.play .ln:nth-child(3) { transition-delay: 1100ms; }
.in .term.play .ln:nth-child(4) { transition-delay: 1700ms; }
.in .term.play .ln:nth-child(5) { transition-delay: 2300ms; }
.in .term.play .ln:nth-child(6) { transition-delay: 2900ms; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: var(--t-h4); letter-spacing: var(--ls-h4); margin: 0; transition: color var(--t-fast) var(--e-std); }
.faq summary:hover h3 { color: var(--fg-2); }
.plus { position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--fg-2); transition: transform var(--t-move) var(--e-out); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.faq details p { margin: 0; padding: 0 var(--s-8) var(--s-5) 0; font: var(--t-body); color: var(--fg-2); text-wrap: pretty; }
.t-cta { font: var(--t-cta); letter-spacing: var(--ls-cta); margin: 0; text-wrap: balance; }
.foot.big { padding: var(--s-9) 0 var(--s-6); }
.foot.big > .wrap:first-child { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); align-items: start; }
.foot-brand { display: grid; gap: var(--s-3); justify-items: start; }
.foot-brand p { margin: 0; max-width: 18rem; }
.foot.big nav { display: grid; gap: var(--s-3); justify-items: start; }
.foot.big h2 { font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--fg-3); margin: 0 0 var(--s-2); }
.foot-base { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; color: var(--fg-3); }
@media (max-width: 1000px) {
  .pricing, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { gap: 0; }
  .foot.big > .wrap:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .term.play .ln { opacity: 1; transform: none; }
}
.calc-out .big b { display: inline-block; transform-origin: left center; }
.calc-out .big b.tick { animation: tick var(--t-move) var(--e-out); }
@media (prefers-reduced-motion: reduce) {
  .calc-out .big b.tick { animation: none; }
}
.odo { display: inline-flex; overflow: hidden; height: 1lh; vertical-align: top; }
.odo .dg { display: inline-block; height: 1lh; overflow: hidden; }
.odo .dg > span { display: flex; flex-direction: column; transition: transform var(--t-move) var(--e-out); }
.odo .dg > span > span { height: 1lh; }
.calc-out .big b.odo-on { animation: none; }
.faq details .ans { overflow: hidden; }
.faq details .ans > p { margin: 0; }
.t-h2s { font: var(--t-h2s); letter-spacing: var(--ls-h2s); margin: 0; text-wrap: balance; }
.sec-head.split { max-width: none; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-4) var(--s-8); align-items: end; }
.sec-head.split .t-lead { margin: 0; max-width: 34rem; }
.sec-head.center .t-h2s { max-width: 22ch; margin-inline: auto; }
.sec { padding: var(--s-9) 0; }
.sec.band { border-color: var(--line); }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--fg); text-decoration: none; font: var(--t-code); transition: border-color var(--t-fast) var(--e-std); }
.chip:hover { border-color: var(--fg-2); }
.foot-plat div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); }
.foot.big > .wrap:first-child { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.foot-base { border-top: 0; position: relative; }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-2); }
.calc-out b, .odo { font-variant-numeric: tabular-nums; }
.odo .dg { width: 1ch; text-align: center; }
.calc .field .label b { color: var(--fg); font-weight: 500; margin-left: var(--s-2); }
.calc-out { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) {
  .sec { padding: var(--s-8) 0; }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .foot.big > .wrap:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-plat { grid-column: 1 / -1; }
  .foot.big nav a { min-height: 32px; display: inline-flex; align-items: center; }
}
.sec-head.left-big { max-width: 46rem; display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.sec-head.left-big .t-h2s { font: var(--t-h2); letter-spacing: var(--ls-h2); }
.sec-head.left-big .t-lead { margin: 0; }
.sec.band { background: var(--band); border-top: 0; border-bottom: 0; }
.sec.band::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.sec { padding: var(--s-9) 0; }
.term.big.play pre { min-height: 0; }
.in .term.play .ln:nth-child(2) { transition-delay: 250ms; }
.in .term.play .ln:nth-child(3) { transition-delay: 500ms; }
.in .term.play .ln:nth-child(4) { transition-delay: 750ms; }
.in .term.play .ln:nth-child(5) { transition-delay: 1000ms; }
.in .term.play .ln:nth-child(6) { transition-delay: 1250ms; }
.faq summary h4 { font: var(--t-btn); margin: 0; transition: color var(--t-fast) var(--e-std); }
.faq summary { padding: var(--s-4) 0; }
.faq details p { padding-right: 0; font: var(--t-ui); }
.foot-plat .all { color: var(--fg); }
@media (max-width: 1000px) {
  .sec-head.left-big .t-h2s { font: var(--t-h2s); }
}
.sec-head.left-big { max-width: 60rem; }
:lang(zh) .t-h2s, :lang(zh) .t-h2, :lang(zh) .t-cta { word-break: keep-all; }
.sec.lift { background: var(--lift); }
.sec.lift::before { display: none; }
.sec-head.narrow { max-width: 40rem; margin: 0 auto var(--s-7); text-align: center; display: grid; gap: var(--s-3); justify-items: center; }
.sec-head.narrow .t-lead { margin: 0; }
.pricing { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
.price-words { display: grid; gap: var(--s-4); position: sticky; top: calc(var(--nav-h) + var(--s-7)); }
.price-words .t-lead { margin: 0; }
.rules-short { margin: var(--s-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.rules-short li { font: var(--t-ui); color: var(--fg-2); padding-left: var(--s-4); border-left: 2px solid var(--line); }
.rules-short b { color: var(--fg); font-weight: 500; }
.more-link { font: var(--t-ui); display: inline-flex; align-items: center; gap: var(--s-2); padding-block: var(--s-2); }
.calc { padding: var(--s-7); gap: var(--s-6); }
.calc-out { grid-template-columns: 1fr 1fr; }
.calc-out .big { min-height: 96px; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--live) var(--fill, 50%), var(--line) var(--fill, 50%)); }
.range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -7px; border: 1px solid var(--control); background: var(--bg-inv); box-shadow: 0 1px 3px var(--line); }
.range::-moz-range-progress { background: var(--live); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 1px solid var(--control); }
.js .term.typed .ln { opacity: 0; }
.in .term.typed .ln { animation: type-in var(--t-move) var(--e-out) forwards; }
.in .term.typed .ln:nth-child(2) { animation-delay: 250ms; }
.in .term.typed .ln:nth-child(3) { animation-delay: 500ms; }
.in .term.typed .ln:nth-child(4) { animation-delay: 750ms; }
.in .term.typed .ln:nth-child(5) { animation-delay: 1000ms; }
.in .term.typed .ln:nth-child(6) { animation-delay: 1250ms; }
.term.typed pre { line-height: 28px; }
.faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); }
.faq-side { position: sticky; top: calc(var(--nav-h) + var(--s-7)); display: grid; gap: var(--s-3); }
.faq-side p { margin: 0; font: var(--t-ui); color: var(--fg-2); }
.faq { max-width: 720px; }
.faq summary h3 { font: var(--t-h4); letter-spacing: var(--ls-h4); margin: 0; }
.foot-plat .nw { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-1); }
@media (max-width: 1000px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .price-words { position: static; }
  .calc { padding: var(--s-5); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .faq-side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .js .term.typed .ln { opacity: 1; animation: none; }
}
.term.big pre { white-space: pre; overflow-wrap: normal; overflow-x: auto; scrollbar-width: thin; }
.js .term.typed.wait .ln { opacity: 0; }
.term.typed.go .ln { animation: type-in 380ms var(--e-out) both; }
.term.typed.go .ln:nth-child(2) { animation-delay: 400ms; }
.term.typed.go .ln:nth-child(3) { animation-delay: 800ms; }
.term.typed.go .ln:nth-child(4) { animation-delay: 1200ms; }
.term.typed.go .ln:nth-child(5) { animation-delay: 1600ms; }
.term.typed.go .ln:nth-child(6) { animation-delay: 2000ms; }
.in .term.typed .ln { animation: none; }
.in .term.typed.go .ln { animation: type-in 380ms var(--e-out) both; }
.faq { max-width: none; }
.faq-side { gap: var(--s-5); }
.calc-out .big b, .calc-out .big b .odo { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.odo .dg { width: auto; }
.odo .dg > span { transition-duration: 300ms; }
@media (max-width: 720px) {
  .range { height: 44px; }
  .foot.big nav a, .chip { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js .term.typed.wait .ln { opacity: 1; transform: none; }
}
.foot-live { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--fg); text-decoration: none; }
.foot-ai { margin: 0; font: var(--t-label); color: var(--fg-3); }
.foot-ai b { color: var(--fg-2); font-weight: 500; }
.foot-note { margin-top: var(--s-6); }
/* the directories that list us: one quiet row under everything, never louder than the copyright line */
.foot-badges { margin-top: var(--s-4); gap: var(--s-3); }
.foot-badges a { display: inline-flex; padding: 3px 6px; border-radius: var(--r-1); background: var(--badge-bg); opacity: .55; transition: opacity var(--t-fast) var(--e-std); }
.foot-badges a:hover, .foot-badges a:focus-visible { opacity: 1; }
.foot-badges img { display: block; height: 22px; width: auto; }
.foot-note p { margin: 0; font: var(--t-label); color: var(--fg-3); max-width: 46rem; }
@media (max-width: 720px) {
  .foot-live, .foot-brand a, .foot-ai a { min-height: 44px; display: inline-flex; align-items: center; }
}
.foot-note a, .faq .ans .link { text-decoration: underline; text-underline-offset: 3px; }
.faq details p { font: var(--t-body); }
.faq details[open] summary h3, .faq summary:hover h3 { color: var(--fg); }
.ticks { position: relative; height: 16px; margin-top: -6px; font: var(--t-label); color: var(--fg-3); }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks .t0 { left: 0; transform: none; }
.ticks .t1 { left: 37%; }
.ticks .t2 { left: 74%; }
.ticks .t3 { right: 0; left: auto; transform: none; }
@media (max-width: 720px) {
  .foot.big > .wrap:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .foot-plat div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot.big nav a { min-height: 40px; }
  .foot.big nav a { min-height: 44px; }
  .foot-plat div { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); }
  .foot.big > .wrap:first-child > nav:not(.foot-plat) { grid-column: auto; }
}
.faq summary h3 { font: var(--t-q); }
.faq-grid { align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + var(--s-6)); align-self: start; }
.foot-plat div { grid-template-columns: repeat(2, minmax(10rem, 12rem)); }
@media (max-width: 720px) {
  .foot-plat div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .faq-side { position: static; }
}
/* phones: the footer's link lists are two columns of 44px rows */
@media (max-width: 720px) {
  .foot.big > .wrap:first-child > nav:not(.foot-plat) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: 0; justify-items: start; }
  .foot.big > .wrap:first-child > nav:not(.foot-plat) h2 { grid-column: 1 / -1; }
  .foot-plat div { row-gap: 0; }
}
/* the live dot's ring stays inside the column it starts; the dot and its words sit as far apart in the footer as in
   the questions' status card */
.foot-live .live { margin-left: 4px; }
.foot-live { gap: var(--s-3); }
/* the footer's line for assistants: its label on a line of its own */
.foot-ai b { display: block; }
/* Chinese leads break between phrases, not inside a word */
:lang(zh) .sec-head .t-lead { word-break: keep-all; overflow-wrap: anywhere; }
/* Chinese prose breaks between phrases, not inside a word (a phrase too long for its line still breaks) */
:lang(zh) :is(p, li, h1, h2, h3, h4, dd, figcaption, summary) { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
/* the calculator's line for paid options: what it says now and, invisible, the longest it can say, in one cell */
.calc-extra { display: grid; margin: 0; grid-column: 1 / -1; font: var(--t-label); color: var(--fg-2); }
.calc-extra > * { grid-area: 1 / 1; }
.calc-extra > .ph { visibility: hidden; }
/* the calculator's result: the two prices and the month in one row across the card (the month large, on the right), the
   price of 1,000 records under the two prices; no empty height under the month */
.calc-out { grid-template-columns: auto auto minmax(0, 1fr); column-gap: var(--s-7); align-items: end; }
.calc-out .per1k { grid-column: 1 / 3; grid-row: 2; }
.calc-out .big { grid-column: 3; grid-row: 1 / span 2; justify-items: end; text-align: right; min-height: 0; }
.calc-out .big b { transform-origin: right center; }
@media (max-width: 720px) {
  .calc-out { grid-template-columns: 1fr 1fr; }
  .calc-out .per1k { grid-column: 1 / -1; grid-row: auto; }
  .calc-out .big { grid-column: 1 / -1; grid-row: auto; justify-items: start; text-align: left; }
  .calc-out .big b { transform-origin: left center; }
}

/* ---- the top bar's large menu (layout.mjs megaMenu, site.js): both group buttons open one wide panel under the bar:
   product and developer pages in two columns, each with a line icon, a name and one line, and on the right one block
   to act on now (the home page's demo). The button that opened it marks its column. Without the script the panel opens
   on hover and focus. On a phone the panel is a plain part of the phone menu. ---- */
.nav .wrap { position: relative; }
.mm { display: flex; align-items: center; gap: var(--s-1); }
.mm-btn, .nav-links .nav-top { font: var(--t-ui); color: var(--fg-2); background: none; border: 0; padding: 6px 10px; border-radius: var(--r-1); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; transition: color var(--t-fast) var(--e-std), background-color var(--t-fast) var(--e-std); }
.mm-btn:hover, .mm-btn[aria-expanded="true"] { color: var(--fg); background: var(--bg-2); }
.mm-chev { transition: transform var(--t-fast) var(--e-std); }
.mm-btn[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
.mm-panel { position: absolute; top: calc(100% - 2px); left: var(--gutter); right: var(--gutter); margin-inline: auto; max-width: 1040px; max-height: calc(100dvh - var(--nav-h) - var(--s-4)); overflow-y: auto; z-index: 30; box-sizing: border-box; padding: var(--s-5); background: var(--bg); border-radius: var(--r-4); box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity var(--t-fast) var(--e-std), transform var(--t-fast) var(--e-std), visibility 0s linear var(--t-fast); }
/* the strip between the bar and the panel still counts as the menu, so the pointer can cross it */
.mm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.mm[data-open] .mm-panel, .mm:not([data-ready]):hover .mm-panel, .mm:not([data-ready]):focus-within .mm-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, .85fr); gap: var(--s-5); }
.mm-col { display: grid; align-content: start; gap: 2px; }
.mm-head { display: block; margin: 0; padding: 0 var(--s-2) var(--s-3); font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--fg-3); transition: color var(--t-fast) var(--e-std); }
:lang(zh) .mm-head { letter-spacing: .02em; }
.mm-panel[data-from="product"] [data-col="product"] .mm-head, .mm-panel[data-from="dev"] [data-col="dev"] .mm-head { color: var(--fg); }
.nav-links .mm-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding: 10px var(--s-2); border-radius: var(--r-2); color: var(--fg); text-decoration: none; transition: background-color var(--t-fast) var(--e-std); }
.nav-links .mm-item:hover, .nav-links .mm-item:focus-visible { background: var(--bg-2); }
.mm-ic { width: 20px; height: 20px; margin-top: 1px; color: var(--fg-2); }
.mm-item:hover .mm-ic, .mm-item:focus-visible .mm-ic { color: var(--fg); }
.mm-item span { display: grid; gap: 2px; }
.mm-item b { font: var(--t-ui); font-weight: 600; color: var(--fg); }
.mm-item small { font: var(--t-label); color: var(--fg-2); }
/* the block to act on now: a quiet card of thin lines, the request itself in mono */
.nav-links .mm-try { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--bg-1); color: var(--fg); text-decoration: none; transition: border-color var(--t-fast) var(--e-std); }
.nav-links .mm-try:hover, .nav-links .mm-try:focus-visible { border-color: var(--fg-3); }
.mm-try .mm-head { padding: 0 0 var(--s-1); }
.mm-try b { font: var(--t-h4); color: var(--fg); }
.mm-try small { font: var(--t-label); color: var(--fg-2); }
.mm-try code { margin-top: var(--s-2); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--bg); font: 12px/18px var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-try code i { font-style: normal; color: var(--fg-3); margin-right: 4px; }
.mm-go { margin-top: auto; padding-top: var(--s-3); display: inline-flex; align-items: center; gap: 6px; font: var(--t-ui); font-weight: 500; color: var(--fg); }
.mm-go svg { transition: transform var(--t-fast) var(--e-std); }
.mm-try:hover .mm-go svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .mm-panel, .mm-chev, .mm-go svg { transition: none; } }
/* between the phone and the desktop the bar keeps its links (the phone menu starts at 720); the block to act on goes
   under the two columns */
@media (min-width: 721px) and (max-width: 900px) { .nav-links { display: flex; } }
@media (min-width: 721px) and (max-width: 1000px) {
  .mm-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nav-links .mm-try { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-5); align-items: center; }
  .nav-links .mm-try > :not(.mm-go) { grid-column: 1; }
  .mm-go { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; }
}
@media (max-width: 720px) {
  .nav.open .nav-links { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .mm { display: block; }
  .mm-btn, .nav.open .nav-links .nav-top { display: none; }
  .mm-panel, .mm[data-open] .mm-panel { position: static; width: auto; max-height: none; overflow: visible; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: var(--s-3) 0 0; background: none; }
  .mm-panel::before { content: none; }
  .mm-cols { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .nav.open .nav-links .mm-item { display: grid; min-height: 48px; border: 0; padding: 10px var(--s-2); border-radius: var(--r-2); font: inherit; }
  .nav.open .nav-links .mm-try { display: flex; align-items: stretch; text-align: left; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4); font: inherit; }
}
/* under the calculator: the note and the paid-options line share one cell (calculator.mjs), the one not in use hidden */
.calc-foot { display: grid; }
.calc-foot > * { grid-area: 1 / 1; margin: 0; }
.calc-foot .hint[data-off] { visibility: hidden; }

/* The home page's sections. Values come from ui/tokens.css; shared components are in ui/ui.css.
   Each section carries one picture or one live block; pictures move only after they scroll in (.in), and not at
   all with reduced motion. */
/* First screen only (hero, demo, numbers) and what every section shares; the rest of the page is ui/home-rest.css,
   linked at the end of <body> so it never holds up the first paint. */
.mono { font-family: var(--mono); }
.acts { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.more { margin: var(--s-7) 0 0; display: flex; justify-content: center; }
.step p, .rules p, .points p, .use-panel .t-body { font: var(--t-body); color: var(--fg-2); margin: 0; text-wrap: pretty; }
/* Chinese running text in the three steps and the FAQ answers fills its line: ui.css keeps phrases whole
   (word-break: keep-all), which ends a line early whenever the next phrase is long. Headings keep that rule. */
:lang(zh) .steps .step p, :lang(zh) .faq .ans p { word-break: normal; }
/* and so does the line under the three steps' heading */
:lang(zh) #how .sec-head .t-lead { word-break: normal; }
/* background light: slow, behind everything, never over text contrast */
.aurora { position: absolute; inset: 0 0 auto 0; height: 980px; overflow: hidden; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, black 30%, transparent 78%); mask-image: radial-gradient(ellipse 70% 62% at 50% 0%, black 30%, transparent 78%); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; animation: drift var(--t-drift) ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 720px; height: 520px; left: 50%; top: -260px; margin-left: -520px; background: var(--glow-a); }
.aurora i:nth-child(2) { width: 620px; height: 460px; left: 50%; top: -200px; margin-left: 20px; background: var(--glow-b); animation-delay: calc(var(--t-drift) / -2); }
.aurora i:nth-child(3) { width: 900px; height: 300px; left: 50%; top: 120px; margin-left: -450px; background: var(--glow-c); animation-delay: calc(var(--t-drift) / -3); }
.aurora.low { height: 100%; inset: 0; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, black 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 100%, black 20%, transparent 75%); }
.aurora.low i:nth-child(1) { top: auto; bottom: -300px; }
.aurora.low i:nth-child(2) { top: auto; bottom: -260px; }
@keyframes drift { from { transform: translate3d(-40px, 0, 0) scale(1); } to { transform: translate3d(60px, 30px, 0) scale(1.12); } }
/* hero: centred, one thing to read, one thing to do */
.top { position: relative; overflow: hidden; padding-bottom: var(--s-10); }
.top .wrap { position: relative; z-index: 1; }
.hero { padding: calc(var(--nav-h) + 96px) 0 0; }
.hero .wrap { display: block; }
.hero-head { display: grid; gap: var(--s-5); justify-items: center; text-align: center; }
.hero .t-display { max-width: 20ch; }
.hero .t-lead { max-width: 43rem; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; font: var(--t-ui); color: var(--fg-3); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--live); }
.try { padding-top: var(--s-8); }
.try .demo { margin-top: 0; }
.numbers { padding-top: var(--s-8); }
.numbers .stats { margin: 0; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes blink { to { visibility: hidden; } }
:lang(zh) .step .no, :lang(zh) .out span { letter-spacing: 0; }
@media (max-width: 1000px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-7)); }
  .try, .numbers { padding-top: var(--s-7); }
  .top { padding-bottom: var(--s-8); }
  .aurora { height: 720px; background-size: 48px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .use-panel { animation: none; }
}
/* round 2: three sections open differently (centred), and three more pictures of a function at work */
/* rhythm: a banded section sits on its own ground, with a line above and below */
/* hero: the headline rises word by word */
.hero .w { display: inline-block; }
.js .hero .w { animation: rise var(--t-arrive) var(--e-out) both; }
.js .hero .w1 { animation-delay: calc(var(--t-word) * 1); }
.js .hero .w2 { animation-delay: calc(var(--t-word) * 2); }
.js .hero .w3 { animation-delay: calc(var(--t-word) * 3); }
.js .hero .w4 { animation-delay: calc(var(--t-word) * 4); }
.js .hero .w5 { animation-delay: calc(var(--t-word) * 5); }
.js .hero .w6 { animation-delay: calc(var(--t-word) * 6); }
/* the words are readable from the first frame: they only settle a short way into place, a little dim at the start */
@keyframes rise { from { opacity: .45; transform: translateY(.12em); } to { opacity: 1; transform: none; } }
/* the pill's ticker: the latest real requests, typed out; its box keeps one width so nothing moves */

/* the numbers: centred, the size of a headline, counting up once */
.numbers { padding-top: var(--s-9); }

/* cards: a light on the border follows the pointer (--mx/--my set by script) */
/* the primary button: a thin streak passes over it on hover */
.btn:not(.quiet) { position: relative; overflow: hidden; }
.btn:not(.quiet)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, var(--sheen), transparent); transform: translateX(0) skewX(-12deg); opacity: 0; }
.btn:not(.quiet):hover::after { animation: sweep var(--t-sweep) var(--e-std); }
@keyframes sweep { 0% { transform: translateX(0) skewX(-12deg); opacity: 1; } 100% { transform: translateX(560%) skewX(-12deg); opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero .w { animation: none; }
  .btn:not(.quiet):hover::after { animation: none; }
}
/* nothing on this page may widen it sideways (moving pictures included); clip does not make a scroll box, so sticky still works */
#main { overflow-x: clip; }
@keyframes page-step { 0% { opacity: .35; } 8%, 70% { opacity: 1; } 100% { opacity: .35; } }
@keyframes field-scan { 0% { opacity: 1; transform: translateY(0); } 18% { transform: translateY(0); } 20% { transform: translateY(34px); } 38% { transform: translateY(34px); } 40% { transform: translateY(68px); } 58% { transform: translateY(68px); } 60% { transform: translateY(102px); } 78% { transform: translateY(102px); } 80% { transform: translateY(136px); } 98% { transform: translateY(136px); opacity: 1; } 100% { transform: translateY(136px); opacity: 0; } }

@keyframes chain-run { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; transform: translateY(var(--run, 120px)); } 100% { opacity: 0; transform: translateY(var(--run, 120px)); } }
@keyframes node-on { from { background: var(--bg-1); } to { background: var(--live); box-shadow: inset 0 0 0 1px var(--live); } }
@keyframes chain-lit { 0% { border-color: var(--line); } 40% { border-color: var(--live); } 100% { border-color: var(--line); } }
/* round 4: the first screen */

/* the demo's rows fill the panel whatever their number: three rows are taller, never half a panel of nothing */
.demo .rows { display: grid; grid-auto-rows: minmax(56px, 1fr); align-content: stretch; }
.demo .row { height: auto; min-height: 56px; }
.demo .json { white-space: pre-wrap; overflow-wrap: anywhere; }
.demo #run { display: inline-flex; }

.numbers { padding-bottom: 0; }
.top { padding-bottom: var(--s-9); }
/* the numbers rise with their block, each a little after the one before; they never count, so no one reads a wrong figure */

  

/* the demo's platform tabs fade at the right edge on a phone, so it is plain that they scroll */
@media (max-width: 720px) { .demo-bar .tabs { -webkit-mask-image: linear-gradient(90deg, var(--opaque) 82%, transparent); mask-image: linear-gradient(90deg, var(--opaque) 82%, transparent); padding-right: var(--s-6); } }
/* round 5: the demo comes into the first screen (1280x800 shows its request line and the first rows) */
.hero { padding-top: calc(var(--nav-h) + var(--s-7)); }
.hero-head { gap: var(--s-4); }
.hero .t-lead { max-width: 38rem; }
.try { padding-top: var(--s-6); }
.top { padding-bottom: var(--s-8); }
.demo-acts { display: inline-flex; gap: var(--s-3); margin-left: auto; }
@media (max-width: 720px) {
  .demo-req { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .demo-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
  
  .demo-acts .btn { width: 100%; }
  
}

/* round 6: the first screen is our own: the headline on the left, its words and the way in on the right, and under
   them the live demo, wide, as the picture of the page (it turns through platforms by itself) */
.hero { padding-top: calc(var(--nav-h) + var(--s-7)); }

.hero .t-display { max-width: none; margin: 0; text-align: left; text-wrap: balance; }

.try { padding-top: var(--s-6); }
.demo .url b { font-weight: 500; color: var(--code-fg); background: var(--lit); box-shadow: 0 0 0 1px var(--code-ok); border-radius: 3px; padding: 0 2px; }
.demo-body:not(.ranked) .row { grid-template-columns: minmax(0, 1fr) auto; }
.demo-body.busy .rows, .demo-body.busy .json { opacity: .45; transition: opacity var(--t-fast) var(--e-std); }
.demo #run { background: var(--code-btn); color: var(--code-btn-fg); border-color: var(--code-btn); }
.demo #run[aria-busy="true"] { opacity: 1; }
.demo #run[aria-busy="true"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-foot .trip b, .demo-foot .trip { color: var(--code-ok); }

@media (prefers-reduced-motion: reduce) { .demo #run[aria-busy="true"]::before { animation: none; } }
:root[data-theme="light"] .aurora i { opacity: .5; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .aurora i { opacity: .5; } }
.demo-req .method { width: 44px; flex: none; text-align: center; box-sizing: border-box; }
/* ===== round 7 ===== */
/* code boxes, one rule: never wrapped, scroll sideways in their own box; a request line that does not fit ends in … */
.demo .json { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.demo .url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the first screen: tighter, so 1280x800 shows the demo's first rows */
.hero { padding-top: calc(var(--nav-h) + var(--s-6)); }

.try { padding-top: var(--s-5); }

:lang(zh) .hero .t-display { word-break: keep-all; }
.hero .t-display { text-wrap: balance; }
/* light: the first screen keeps its layers (a visible grid, a cool and a green light) */
:root[data-theme="light"] .aurora i { opacity: 1; }
:root[data-theme="light"] .aurora { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(180deg, var(--bg-1), var(--bg) 70%); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .aurora i { opacity: 1; }
  :root:not([data-theme]) .aurora { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(180deg, var(--bg-1), var(--bg) 70%); }
}
@media (max-width: 720px) {
  .demo .pane-tabs .tab, .demo-acts .btn, .demo .tabs .tab { min-height: 44px; }
}
/* round 9: the first screen. The pill sits over the headline on the left; the words and the way in on the right; the
   demo starts high enough that 1280x800 shows its first whole record */
.hero { padding-top: calc(var(--nav-h) + var(--s-5)); }

.try { padding-top: var(--s-4); }
.demo-req { padding-block: var(--s-2); }
/* round 11: the demo keeps one height in every state. Rows have one height whatever their number; the footer has a
   fixed first line (status, records, round trip) and the notes on their own line under it */
.demo .rows { grid-auto-rows: 56px; align-content: start; }
.demo .row { height: 56px; min-height: 0; }
.row.arrive { animation-delay: calc(var(--i, 0) * var(--t-row)); }
.demo-foot { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 2px var(--s-5); }
.demo-foot .trip { justify-self: end; }
/* the round trip and the notes: each a grid cell where what it says now and its longest text (kept invisible) lie on
   each other, so the cell is as tall as the longest whatever is shown */
.demo-foot .grow { grid-column: 1 / -1; margin-left: 0; }
.demo-foot .trip, .demo-foot .grow { display: grid; }
.demo-foot .now, .demo-foot .ph { grid-area: 1 / 1; }
.demo-foot .ph { visibility: hidden; }
:lang(zh) .hero .t-display { line-height: var(--lh-display-zh); }
/* phones: the round trip has a line of its own, kept even before the first request, so it never pushes the demo */
@media (max-width: 720px) {
  .demo-foot { grid-template-columns: auto minmax(0, 1fr); }
  .demo-foot .trip { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---- the rework of 2026-11-20 (the owner's version of 11/19 as the base): the first screen does one thing. Centred:
   the pill, a two-line title (the second line grey) as large as the references', one sentence, two buttons, a row of
   checks, under the light. The live demo is the section below it, then the numbers. */
.hero { padding: calc(var(--nav-h) + 96px) 0 0; }
.hero-head { display: grid; gap: var(--s-5); justify-items: center; text-align: center; }
.hero .t-display { max-width: 15ch; margin: 0; text-align: center; text-wrap: balance; }
.hero .t-lead { max-width: 43rem; margin: 0; text-align: center; }
.hero .acts { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin: 0; padding: 0; list-style: none; font: var(--t-ui); color: var(--fg-3); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--live); flex: none; }
.try { padding-top: var(--s-9); }
.numbers { padding-top: var(--s-8); }
.numbers .stats { margin: 0; }
.top { padding-bottom: var(--s-10); }
@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-7)); }
  .try, .numbers { padding-top: var(--s-7); }
  .top { padding-bottom: var(--s-8); }
}
/* the Chinese title: its first line ("各平台公开数据，", 8 characters) fits a phone's width, so the comma never sits
   alone on a line of its own */
:lang(zh) .hero .t-display { font: var(--t-display-zh); }

/* the numbers bar: five counts (platforms, endpoints, fields, lowest price, an error on our side); a count may carry a
   small line saying what it adds up */
.numbers .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.numbers .stats small { font: var(--t-label); color: var(--fg-3); }
@media (max-width: 1000px) {
  .numbers .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers .stats li:nth-child(odd) { border-left: 0; }
  .numbers .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .numbers .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .numbers .stats li:last-child { grid-column: 1 / -1; }
}

/* "See the API run" (the demo, 2026-11-20): choose on the left (platform, language), the whole request on the right.
   Every platform's code in every language lies in one grid cell, the ones not chosen invisible, so the box keeps the
   longest one's height and changing either choice never moves the page. */
.demo-req { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; padding: 0; align-items: stretch; }
.demo-req .pick { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-4); border-right: 1px solid var(--code-line); }
.demo-req .pick .side { margin: var(--s-2) 0 0; font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--code-fg-2); }
.demo-req .pick .side:first-child { margin-top: 0; }
:lang(zh) .demo-req .pick .side { letter-spacing: 0; }
.demo-req .pick .tabs { flex: none; flex-direction: column; overflow: visible; }
.demo-req .pick .tabs .tab { width: 100%; justify-content: flex-start; text-align: left; }
.snip-win { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.snip-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-bottom: 1px solid var(--code-line); }
/* the code box keeps the height of the longest program (every version lies in the same cell), so changing a tab never
   moves what is below; under a shorter one the top of the answer shows, dimmed (.peek, home.js), so the box is never
   mostly empty */
.snip-stack { display: grid; min-width: 0; position: relative; }
.snip-stack > .snip-code { grid-area: 1 / 1; margin: 0; padding: var(--s-4); font: var(--t-code); color: var(--code-fg); white-space: pre; tab-size: 4; align-self: start; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--code-line) transparent; }
.snip-code[data-off] { visibility: hidden; }
@media (min-width: 721px) { .demo-bar { display: none; } }
@media (max-width: 1000px) {
  .demo-req { grid-template-columns: minmax(0, 1fr); }
  .demo-req .pick { border-right: 0; border-bottom: 1px solid var(--code-line); }
  .demo-req .pick .tabs, .demo-req .pick .tabs.langs { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .demo-req .pick .tabs .tab { width: auto; }
}

/* the answer's top under a short program: from the line under the code to the bottom of the box, fading out */
.peek { position: absolute; inset: var(--peek-top, 100%) 0 0 0; display: flex; flex-direction: column; padding: var(--s-2) var(--s-4) 0; border-top: 1px dashed var(--code-line); overflow: hidden; visibility: hidden; -webkit-mask-image: linear-gradient(to bottom, var(--opaque) 40%, transparent); mask-image: linear-gradient(to bottom, var(--opaque) 40%, transparent); pointer-events: none; }
.snip-stack[data-peek] .peek { visibility: visible; }
.peek-h { margin: 0 0 var(--s-1); font: var(--t-micro); letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--code-fg-2); }
/* the answer's lines wrap rather than run out of the box, and the text stops at the box's bottom */
.peek pre { flex: 1; min-height: 0; overflow: hidden; margin: 0; font: var(--t-code); color: var(--code-fg-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.peek pre span { color: inherit; }
/* between the phone and the desktop the code box's two buttons keep their own width */
@media (min-width: 721px) { .snip-head .demo-acts .btn { flex: none; } }
