/* GTM Tested / lab territory. One stylesheet for brand, home and pricing. */
@layer reset, tokens, base, layout, components, pages, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, dl, dd, ol, ul, blockquote { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  button, input, select { font: inherit; color: inherit; }
  table { border-collapse: collapse; }
}

@layer tokens {
  :root {
    color-scheme: light;
    --bench: oklch(0.955 0.006 85);
    --well: oklch(0.925 0.008 85);
    --panel: oklch(0.99 0.003 90);
    --rule: oklch(0.87 0.008 85);
    --rule-2: oklch(0.74 0.01 80);
    --ink: oklch(0.23 0.012 65);
    --ink-2: oklch(0.42 0.012 70);
    --ink-3: oklch(0.51 0.01 75);
    --signal: oklch(0.65 0.19 40);
    --signal-ink: oklch(0.54 0.18 38);
    --signal-wash: color-mix(in oklch, var(--signal) 12%, var(--panel));
    --s-graphite: oklch(0.35 0.01 70);
    --s-steel: oklch(0.55 0.07 240);
    --s-olive: oklch(0.58 0.09 125);
    --s-ochre: oklch(0.66 0.12 75);
    --ok: oklch(0.52 0.12 150);
    --warn: oklch(0.62 0.13 70);
    --bad: oklch(0.52 0.19 25);
    --shadow-raise: 0 1px 0 oklch(1 0 0 / .9) inset, 0 1px 2px oklch(0.3 0.02 70 / .08), 0 6px 18px -8px oklch(0.3 0.02 70 / .18);
    --shadow-well: inset 0 1px 2px oklch(0.3 0.02 70 / .14), inset 0 0 0 1px oklch(0.3 0.02 70 / .06);
    --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
    --mono: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;
    --r: 6px;
    --r-lg: 10px;
    --gut: clamp(16px, 4vw, 40px);
    --max: 1240px;
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bench: oklch(0.2 0.008 70);
    --well: oklch(0.17 0.008 70);
    --panel: oklch(0.245 0.008 70);
    --rule: oklch(0.32 0.008 70);
    --rule-2: oklch(0.45 0.01 75);
    --ink: oklch(0.94 0.008 85);
    --ink-2: oklch(0.8 0.008 85);
    --ink-3: oklch(0.7 0.01 80);
    --signal: oklch(0.72 0.17 45);
    --signal-ink: oklch(0.76 0.15 48);
    --s-graphite: oklch(0.85 0.01 80);
    --s-steel: oklch(0.7 0.08 240);
    --s-olive: oklch(0.72 0.1 125);
    --s-ochre: oklch(0.78 0.12 80);
    --shadow-raise: 0 1px 0 oklch(1 0 0 / .05) inset, 0 6px 18px -8px oklch(0 0 0 / .6);
    --shadow-well: inset 0 1px 3px oklch(0 0 0 / .5);
  }
}

@layer base {
  body {
    background: var(--bench);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    font-variation-settings: "wdth" 100;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.015em; font-weight: 640; }
  h1 { font-size: clamp(34px, 5.2vw, 64px); font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: -0.025em; }
  h2 { font-size: clamp(24px, 2.6vw, 34px); font-variation-settings: "wdth" 108; }
  h3 { font-size: 18px; font-variation-settings: "wdth" 104; letter-spacing: -0.005em; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-color: var(--rule-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
  a:hover { text-decoration-color: var(--signal); }
  :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 3px; }
  .num, td, .tab { font-variant-numeric: tabular-nums; }
  .mono { font-family: var(--mono); font-variation-settings: "wdth" 87; font-size: 12px; letter-spacing: 0; }
  .muted { color: var(--ink-2); }
  .faint { color: var(--ink-3); }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  ::selection { background: color-mix(in oklch, var(--signal) 30%, transparent); }
}

@layer layout {
  .wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
  .section { padding-block: clamp(48px, 7vw, 96px); }
  .section + .section { padding-top: 0; }
  .grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
}

@layer components {
  /* ---------- Section rule: a plain hairline. Ticks only where something is measured ---------- */
  .rule { --tick: var(--rule-2); height: 1px; position: relative; color: var(--ink-3); background: var(--tick); }
  /* Calibration scale: only on real axes (calculator plan use, changelog timeline) */
  .cp-axis .rule, .tl .rule, .empty .timeline .rule, .du-bar ~ .rule, .du-time .rule, .rule.scale {
    height: 14px;
    background:
      linear-gradient(var(--tick), var(--tick)) 0 0 / 100% 1px no-repeat,
      repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 64px) 0 0 / 100% 12px no-repeat,
      repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat;
  }
  .rule-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px; margin-top: 10px; margin-bottom: 28px; }
  .rule-head .tag { justify-self: end; text-align: right; }
  .rule-head p { grid-column: 1 / -1; max-width: 62ch; color: var(--ink-2); }

  /* specimen tag (sits beside things, never above a heading) */
  .tag { font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-3); line-height: 1.5; white-space: nowrap; }
  .tag b { color: var(--ink); font-weight: 500; }

  /* ---------- Top bar ---------- */
  .top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklch, var(--bench) 88%, transparent); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--rule); }
  .top .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
  .brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
  .brand svg { height: 22px; width: auto; }
  .nav { display: flex; gap: 2px; font-size: 14px; font-variation-settings: "wdth" 96; }
  .nav a { text-decoration: none; padding: 6px 10px; border-radius: 5px; color: var(--ink-2); }
  .nav a:hover { color: var(--ink); background: var(--well); }
  .nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); border-radius: 0; }
  .top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .search-btn { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px 0 12px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--well); box-shadow: var(--shadow-well); color: var(--ink-3); font-size: 14px; cursor: pointer; min-width: 220px; }
  .search-btn:hover { border-color: var(--rule-2); color: var(--ink-2); }
  .search-btn .kbd-row { margin-left: auto; }
  .menu { display: none; }
  .status-strip { border-bottom: 1px solid var(--rule); background: var(--panel); }
  .status-strip .wrap { display: flex; gap: 22px; align-items: center; height: 32px; font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
  .status-strip a { text-decoration: none; }
  .live { display: inline-flex; align-items: center; gap: 7px; }
  .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in oklch, var(--signal) 22%, transparent); animation: pulse 2.4s var(--ease) infinite; }

  /* keycaps, Linear-style */
  .kbd-row { display: inline-flex; gap: 3px; }
  kbd { font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 87; min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 4px; background: var(--panel); color: var(--ink-2); border: 1px solid var(--rule); border-bottom-width: 2px; line-height: 1; }

  /* ---------- Buttons ---------- */
  .btn { --bg: var(--panel); --fg: var(--ink); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 560; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-raise); transition: transform .12s var(--ease), background .12s, border-color .12s; white-space: nowrap; }
  .btn:hover { border-color: var(--rule-2); }
  .btn:active { transform: translateY(1px); box-shadow: var(--shadow-well); }
  .btn.primary { --bg: var(--ink); --fg: var(--bench); border-color: var(--ink); }
  .btn.primary:hover { --bg: color-mix(in oklch, var(--ink) 88%, var(--signal)); }
  .btn.signal { --bg: var(--signal); --fg: oklch(0.2 0.02 40); border-color: color-mix(in oklch, var(--signal) 80%, black); }
  .btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-2); }
  .btn.ghost:hover { background: var(--well); color: var(--ink); }
  .btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .btn svg { width: 16px; height: 16px; }
  .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

  /* ---------- Inputs ---------- */
  .field { display: grid; gap: 6px; }
  .field label, .lbl { font-size: 13px; color: var(--ink-2); font-weight: 520; }
  .input { height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--well); box-shadow: var(--shadow-well); font-variant-numeric: tabular-nums; width: 100%; font-size: 15px; }
  .input:hover { border-color: var(--rule-2); }
  .input:focus { outline: none; border-color: var(--signal); box-shadow: var(--shadow-well), 0 0 0 3px color-mix(in oklch, var(--signal) 22%, transparent); }
  .input.err { border-color: var(--bad); }
  .hint { font-size: 12.5px; color: var(--ink-3); }
  .hint.err { color: var(--bad); }
  select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
  input[type=range] { accent-color: var(--signal); width: 100%; }

  /* ---------- Segmented control ---------- */
  .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--well); box-shadow: var(--shadow-well); }
  .seg input { position: absolute; opacity: 0; pointer-events: none; }
  .seg label { padding: 5px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; font-weight: 520; white-space: nowrap; }
  .seg label:hover { color: var(--ink); }
  .seg input:checked + label { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-raise); }
  .seg input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 1px; }
  .seg .save { font-family: var(--mono); font-size: 10.5px; color: var(--signal-ink); margin-left: 6px; }

  /* tabs */
  .tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); }
  .tabs button { background: none; border: 0; padding: 10px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
  .tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--signal); }
  .tabs button:hover { color: var(--ink); }

  /* ---------- Panel / readout ---------- */
  .panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-raise); }
  .well { background: var(--well); border-radius: var(--r); box-shadow: var(--shadow-well); }
  .price { display: flex; align-items: flex-start; gap: 2px; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 112; font-weight: 640; letter-spacing: -0.03em; line-height: 1; }
  .price .cur { font-size: .48em; color: var(--ink-2); margin-top: .12em; font-weight: 560; letter-spacing: 0; }
  .price .unit { font-family: var(--mono); font-variation-settings: "wdth" 87; font-size: 11px; color: var(--ink-3); letter-spacing: 0; align-self: flex-end; margin: 0 0 .3em 6px; font-weight: 400; }

  /* ---------- Source chip + preview ---------- */
  .chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 6px; border-radius: 12px; border: 1px solid var(--rule); background: var(--panel); font-family: var(--mono); font-variation-settings: "wdth" 87; font-size: 11px; color: var(--ink-2); text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .12s; }
  .chip:hover, .chip[aria-expanded=true] { border-color: var(--signal); color: var(--ink); }
  .src-pop { margin: 0; inset: auto; position: fixed; width: min(380px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--rule-2); border-radius: var(--r-lg); background: var(--panel); color: var(--ink); box-shadow: 0 18px 50px -12px oklch(0.25 0.02 60 / .35); }
  .src-pop:popover-open { opacity: 1; transform: none; }
  .src-pop .sp-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px 0; }
  .src-pop blockquote { padding: 10px 14px 12px; font-size: 15px; line-height: 1.45; }
  .src-pop blockquote::before { content: "“"; color: var(--signal); margin-right: 1px; }
  .src-pop blockquote::after { content: "”"; color: var(--signal); }
  .src-pop .sp-shot { margin: 0 14px; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 16/8; background: var(--well); }
  .src-pop .sp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .src-pop .sp-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--rule); margin-top: 12px; }
  .src-pop a { color: var(--signal-ink); }

  /* ---------- Data table ---------- */
  .table-wrap { container-type: inline-size; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--panel); overflow: clip; }
  .dt { width: 100%; font-size: 14px; }
  .dt th { position: sticky; top: 58px; z-index: 2; background: color-mix(in oklch, var(--panel) 94%, var(--bench)); text-align: left; font-weight: 560; font-size: 12px; font-variation-settings: "wdth" 80; letter-spacing: .01em; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
  .dt th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
  .dt th button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
  .dt th button::after { content: "↕"; color: var(--rule-2); font-size: 11px; }
  .dt th[aria-sort=ascending] button::after { content: "↑"; color: var(--signal-ink); }
  .dt th[aria-sort=descending] button::after { content: "↓"; color: var(--signal-ink); }
  .dt td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
  .dt tr:last-child td { border-bottom: 0; }
  .dt tbody tr:hover { background: color-mix(in oklch, var(--well) 50%, var(--panel)); }
  .dt td.r, .dt th.r { text-align: right; }
  .dt .vendor { display: flex; align-items: center; gap: 10px; font-weight: 560; }
  .dt .vendor img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; background: white; }
  .dt .sub { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }

  /* ---------- Change / diff row ---------- */
  .ledger { border-top: 1px solid var(--rule); }
  .ledger li { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
  .ledger time { font-family: var(--mono); font-size: 12px; font-variation-settings: "wdth" 87; color: var(--ink-2); }
  .ledger .what b { font-weight: 600; }
  .diff { display: inline-flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
  .diff del { color: var(--ink-3); text-decoration-color: var(--bad); }
  .diff ins { text-decoration: none; color: var(--ink); background: var(--signal-wash); padding: 0 4px; border-radius: 3px; }

  /* ---------- Code block ---------- */
  .code { position: relative; border-radius: var(--r-lg); background: oklch(0.22 0.01 65); color: oklch(0.92 0.01 85); font-family: var(--mono); font-size: 12px; font-variation-settings: "wdth" 87; line-height: 1.7; overflow: auto; }
  .code pre { margin: 0; padding: 16px 18px; }
  .code .k { color: oklch(0.78 0.12 50); }
  .code .s { color: oklch(0.82 0.08 125); }
  .code .c { color: oklch(0.62 0.01 80); }
  .code .copy { position: absolute; top: 8px; right: 8px; }
  .code .copy .btn { background: oklch(0.3 0.01 65); color: oklch(0.9 0.01 85); border-color: oklch(0.38 0.01 65); box-shadow: none; }

  /* ---------- Toast ---------- */
  .toast-host { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 60; display: grid; gap: 8px; pointer-events: none; }
  .toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bench); font-size: 14px; box-shadow: 0 12px 30px -10px oklch(0 0 0 / .4); transition: opacity .2s, translate .2s var(--ease); }
  @starting-style { .toast { opacity: 0; translate: 0 8px; } }
  .toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

  /* ---------- Empty state ---------- */
  .empty { display: grid; gap: 14px; padding: 28px; border: 1px dashed var(--rule-2); border-radius: var(--r-lg); background: repeating-linear-gradient(-45deg, transparent 0 9px, color-mix(in oklch, var(--well) 70%, transparent) 9px 10px); }
  .empty .timeline { position: relative; height: 34px; }
  .empty .timeline .rule { position: absolute; inset: 10px 0 auto; }
  .empty .timeline .mark { position: absolute; left: 0; top: 0; width: 3px; height: 26px; background: var(--signal); border-radius: 1px; }

  /* status pill */
  .status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-2); white-space: nowrap; }
  .status::before { content: ""; }
  .status.run::before { animation: pulse 2.4s var(--ease) infinite; }

  /* ---------- Specimen frame (screenshots) ---------- */
  .specimen { position: relative; padding: 14px; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }
  .specimen::before, .specimen::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
  .specimen::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
  .specimen::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
  .specimen img { width: 100%; height: auto; border: 1px solid var(--rule); }
  .specimen figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

  /* bench photo */
  .bench-photo { border-radius: var(--r); overflow: hidden; background: var(--well); }
  .bench-photo img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Cmd-K dialog ---------- */
  .cmdk { width: min(640px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px -20px oklch(0.2 0.02 60 / .5); margin-top: 12vh; transition: opacity .16s, scale .16s var(--ease), display .16s allow-discrete, overlay .16s allow-discrete; }
  .cmdk[open] { opacity: 1; scale: 1; }
  @starting-style { .cmdk[open] { opacity: 0; scale: .98; } }
  .cmdk::backdrop { background: oklch(0.3 0.02 60 / .28); backdrop-filter: blur(2px); }
  .cmdk .ck-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
  .cmdk input { flex: 1; height: 54px; border: 0; background: none; font-size: 17px; outline: none; }
  .cmdk .ck-list { max-height: 380px; overflow: auto; padding: 6px; }
  .cmdk .ck-group { padding: 10px 10px 4px; font-size: 12px; color: var(--ink-3); font-weight: 520; }
  .cmdk .ck-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 7px; text-decoration: none; font-size: 14.5px; }
  .cmdk .ck-item .ck-meta { margin-left: auto; font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-3); }
  .cmdk .ck-item[aria-selected=true] { background: var(--well); box-shadow: inset 2px 0 0 var(--signal); }
  .cmdk .ck-item mark { background: none; color: var(--signal-ink); font-weight: 600; }
  .cmdk .ck-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
  .cmdk .ck-foot span { display: inline-flex; gap: 6px; align-items: center; }

  /* ---------- Footer ---------- */
  .foot { margin-top: 40px; padding: 36px 0 48px; background: var(--panel); border-top: 1px solid var(--rule); }
  .foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; margin-top: 28px; font-size: 14px; }
  .foot h4 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
  .foot ul { display: grid; gap: 6px; }
  .foot a { text-decoration: none; color: var(--ink-2); }
  .foot a:hover { color: var(--ink); }

  @media (max-width: 900px) {
    .nav, .search-btn .kbd-row, .status-strip .hide-s { display: none; }
    .search-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
    .search-btn .lbl-s { display: none; }
    .menu { display: block; position: relative; }
    .menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 34px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
    .menu summary::-webkit-details-marker { display: none; }
    .menu nav { position: absolute; right: 0; top: 42px; width: 230px; display: grid; padding: 6px; background: var(--panel); border: 1px solid var(--rule-2); border-radius: 10px; box-shadow: 0 18px 40px -16px oklch(0.2 0.02 60 / .4); }
    .menu nav a { padding: 10px 12px; text-decoration: none; border-radius: 6px; }
    .menu nav a:hover { background: var(--well); }
    .top .wrap { gap: 12px; }
    .foot .cols { grid-template-columns: 1fr 1fr; }
    .foot .cols > :first-child { grid-column: 1 / -1; }
    .ledger li { grid-template-columns: 1fr; gap: 4px; }
  }
}

@layer motion {
  @keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--signal) 22%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--signal) 0%, transparent); } }
  .changed { background-image: linear-gradient(var(--signal), var(--signal)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; animation: changed 1.2s var(--ease) forwards; }
  @keyframes changed { to { background-size: 100% 0; } }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }
}

/* ======================= shared additions ======================= */
@layer components {
  .skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--bench); padding: 8px 12px; border-radius: 6px; }
  .skip:focus { left: 8px; }
  .ico .a { fill: var(--signal); stroke: none; }
  .ico .f { fill: currentColor; stroke: none; }
  .lockup { height: 22px; width: auto; color: var(--ink); }
  .src-pop { transition: opacity .14s, scale .14s var(--ease), display .14s allow-discrete, overlay .14s allow-discrete; opacity: 0; scale: .98; }
  .src-pop:popover-open { opacity: 1; scale: 1; }
  @starting-style { .src-pop:popover-open { opacity: 0; scale: .98; } }
  .src-pop .sp-foot a.tag { max-width: 60%; overflow: hidden; text-overflow: ellipsis; color: var(--signal-ink); }
  .ck-empty { padding: 24px 12px; color: var(--ink-2); font-size: 14px; }
  .btn.copied { border-color: var(--ok); }
  .btn.copied .ico { color: var(--ok); }
  /* billing state: CSS-only via :has() without JS, data-billing with JS (so the View Transition can wrap the change) */
  html:not(.js):has(input[name=billing][value=monthly]:checked) .p-a,
  html:not(.js):has(input[name=billing][value=annual]:checked) .p-m,
  html.js[data-billing=monthly] .p-a,
  html.js[data-billing=annual] .p-m { display: none !important; }
}

/* ======================= pricing page ======================= */
@layer pages {
  .crumbs { display: flex; gap: 8px; padding-top: 28px; font-size: 13px; color: var(--ink-3); }
  .crumbs a { color: var(--ink-2); text-decoration: none; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; }
  .ans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-top: 18px; }
  .ans-title { display: flex; align-items: center; gap: 16px; }
  .vlogo { width: 44px; height: 44px; border-radius: 10px; background: white; border: 1px solid var(--rule); padding: 4px; object-fit: contain; }
  .ans-meta { padding-bottom: 10px; }
  .ans-meta a { color: inherit; }
  .verdict { margin-top: 18px; max-width: 64ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }
  .verdict strong { color: var(--ink); font-weight: 600; }
  .bill-row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }

  .plans { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); padding: 0; view-transition-name: plans; }
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 14px; padding: 20px; position: relative; }
  .plan + .plan { border-left: 1px solid var(--rule); }
  .plan header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .plan-name { font-size: 17px; font-variation-settings: "wdth" 104; letter-spacing: 0; }
  .plan .readout { padding: 16px 16px 12px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; }
  .price.big { font-size: 46px; }
  .price.big .unit { font-size: 12px; }
  .price.quote { font-size: 34px; color: var(--ink-2); font-variation-settings: "wdth" 112; font-weight: 560; }
  .basis { font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-3); margin-top: 8px; }
  .incl { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
  .plan .chip { justify-self: start; align-self: end; }
  .plan.is-pick::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--signal); }

  .quickcalc { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px dashed var(--rule-2); text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: border-color .12s, background .12s; }
  .quickcalc b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
  .quickcalc:hover { border-color: var(--signal); background: var(--panel); }
  .quickcalc .qc-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--signal-ink); font-weight: 560; white-space: nowrap; }
  .quickcalc .qc-go .ico { width: 16px; height: 16px; transition: translate .15s var(--ease); }
  .quickcalc:hover .qc-go .ico { translate: 3px 0; }

  /* scroll-driven sticky summary */
  body { timeline-scope: --ans; }
  .answer { view-timeline: --ans block; padding-bottom: 8px; }
  .sumbar { position: fixed; z-index: 25; top: 58px; left: 0; right: 0; background: color-mix(in oklch, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); opacity: 0; translate: 0 -8px; pointer-events: none; }
  @supports (animation-timeline: view()) {
    .sumbar { animation: sumin linear both; animation-timeline: --ans; animation-range: exit 70% exit 100%; }
    @keyframes sumin { to { opacity: 1; translate: 0 0; pointer-events: auto; } }
  }
  .sumbar .wrap { display: flex; align-items: center; gap: 22px; height: 46px; font-size: 14px; }
  .sumbar .sb-name { display: inline-flex; gap: 8px; align-items: center; font-weight: 640; }
  .sumbar .sb-name img { border-radius: 4px; }
  .sumbar .sb-p b { font-variant-numeric: tabular-nums; font-weight: 640; }
  .sumbar .btn { margin-left: auto; }

  /* document area with rail */
  .doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; margin-top: 72px; }
  .rail { position: sticky; top: 124px; align-self: start; display: grid; gap: 28px; }
  .rail ol { display: grid; gap: 2px; border-left: 1px solid var(--rule); }
  .rail li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); font-size: 14px; }
  .rail li a:hover { color: var(--ink); border-left-color: var(--rule-2); }
  .rail li a:focus-visible { border-left-color: var(--signal); }
  .watch { display: grid; gap: 8px; }
  .watch-row { display: flex; gap: 6px; }
  .watch-row .input { height: 34px; font-size: 13px; min-width: 0; }
  .watch-row .btn { height: 34px; flex: none; }
  .sec { padding-bottom: 72px; scroll-margin-top: 120px; }
  .sec h2 { max-width: 30ch; }

  /* calculator */
  .calc { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; }
  #calc { container-type: inline-size; }
  .calc-in { padding: 18px 24px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr) auto; gap: 20px 24px; align-items: start; border-bottom: 1px solid var(--rule); background: color-mix(in oklch, var(--panel) 60%, var(--bench)); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .calc-in .hint { margin-top: 6px; }
  .big-in { height: 48px; font-size: 22px; font-weight: 600; font-variation-settings: "wdth" 108; }
  .calc-out { padding: 22px 24px; display: grid; gap: 22px; min-width: 0; }
  .need { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-well); }
  .need > div { background: var(--well); padding: 12px 14px; display: grid; gap: 6px; }
  .price.mid { font-size: 30px; }
  .need > .need-usage { background: var(--signal-wash); }
  .need-usage .price, .need-usage .price .cur { color: var(--signal-ink); }
  .cp { display: grid; }
  .cp-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 128px; gap: 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .cp-name { display: grid; gap: 4px; justify-items: start; }
  .cp-name b { font-weight: 600; }
  .cp-bar { height: 14px; background: var(--well); border-radius: 2px; box-shadow: var(--shadow-well); position: relative; overflow: hidden; }
  .cp-bar i { position: absolute; inset: 0 auto 0 0; background: var(--s-graphite); transition: inline-size .22s var(--ease); }
  .cp-row.is-pick .cp-bar i { background: var(--signal); }
  .cp-row.no .cp-price { color: var(--ink-3); }
  .cp-tier { font-family: var(--mono); font-size: 11.5px; font-variation-settings: "wdth" 82; color: var(--ink-3); margin-top: 8px; line-height: 1.45; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
  .cp-tier .t1 { color: var(--ink-2); }
  .cp-price { font-size: 26px; justify-content: flex-end; }
  .cp-axis { display: grid; grid-template-columns: 170px minmax(0, 1fr) 128px; column-gap: 24px; padding-top: 4px; }
  .cp-axis > span { grid-column: 1; }
  .cp-axis .rule { grid-column: 2; grid-row: 1; }
  .cp-axis .cp-ticks { grid-column: 2; grid-row: 2; }
  .cp-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 85; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .formula { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; background: var(--well); border-radius: var(--r); box-shadow: var(--shadow-well); padding: 14px 16px; }
  .formula pre { margin: 0; font-family: var(--mono); font-size: 12px; font-variation-settings: "wdth" 85; line-height: 1.8; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
  .formula pre b { color: var(--ink); font-weight: 600; }
  .formula pre .c { color: var(--ink-3); }
  .formula-act { display: flex; gap: 8px; }
  @container (max-width: 760px) {
    .calc-in { grid-template-columns: 1fr 1fr; }
    .calc-in .field:first-child { grid-column: 1 / -1; }
  }
  @container (max-width: 560px) {
    .calc-in { grid-template-columns: 1fr; padding: 18px; }
    .calc-out { padding: 18px 16px; }
    .need { grid-template-columns: 1fr 1fr; }
    .need-usage { grid-column: 1 / -1; }
    .cp-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .cp-name { grid-auto-flow: column; align-items: center; gap: 10px; }
    .cp-scale { grid-column: 1 / -1; grid-row: 2; }
    .cp-axis { grid-template-columns: 1fr; }
    .cp-axis .rule, .cp-axis .cp-ticks { grid-column: 1; }
    .cp-axis > span { display: none; }
    .formula { grid-template-columns: 1fr; }
    .formula-act { display: flex; }
  }

  /* rules table */
  .rules td:first-child { font-weight: 560; width: 22%; }
  .rules td.q { color: var(--ink-2); font-size: 13.5px; width: 34%; }
  .rules td:last-child { width: 1%; }
  @container (max-width: 700px) {
    .rules thead { display: none; }
    .rules tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
    .rules tr:last-child { border-bottom: 0; }
    .rules td { padding: 0; border: 0; width: auto !important; }
    .rules td:first-child { grid-column: 1; }
    .rules td:last-child { grid-column: 2; grid-row: 1; }
    .rules td:nth-child(2), .rules td:nth-child(3) { grid-column: 1 / -1; }
  }

  /* changes */
  .timeline-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; margin-bottom: 20px; }
  .tl { position: relative; height: 56px; }
  .tl .rule { position: absolute; left: 0; right: 0; top: 18px; }
  .tl-mark { position: absolute; left: 0; top: 4px; width: 3px; height: 32px; background: var(--signal); border-radius: 1px; }
  .tl-mark::after { content: ""; position: absolute; left: -4px; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in oklch, var(--signal) 20%, transparent); }
  .tl-lab { position: absolute; top: 38px; font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 85; color: var(--ink-3); }
  .tl-0 { left: 0; color: var(--ink); } .tl-1 { left: 25%; } .tl-2 { left: 50%; } .tl-3 { left: 75%; }
  .tl-note { font-size: 14px; }

  /* alternatives */
  .alts { display: grid; border-top: 1px solid var(--rule); }
  .alts li { display: grid; grid-template-columns: 340px minmax(0, 1fr) 96px; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .alt-v { display: grid; grid-template-columns: 20px auto; gap: 2px 10px; align-items: center; }
  .alt-v img { border-radius: 5px; background: white; grid-row: span 2; align-self: start; margin-top: 2px; object-fit: contain; }
  .alt-v .faint { grid-column: 2; font-size: 12.5px; }
  .alt-bar { height: 12px; background: var(--well); border-radius: 2px; box-shadow: var(--shadow-well); position: relative; }
  .alt-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--s-graphite); border-radius: 2px 0 0 2px; }
  .alts li.is-pick .alt-bar i { background: var(--signal); }
  .alt-p { font-size: 24px; justify-content: flex-end; }
  .alt-axis { display: grid; grid-template-columns: 340px minmax(0, 1fr) 96px; column-gap: 20px; margin: 6px 0 14px; }
  .alt-axis > * { grid-column: 2; }

  /* faq */
  .faq { display: grid; }
  .qa { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .qa:first-child { padding-top: 6px; }
  .qa h2 { font-size: 20px; font-variation-settings: "wdth" 104; letter-spacing: -0.01em; line-height: 1.25; }
  .qa p { color: var(--ink-2); }

  /* method */
  .method { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
  .method-txt { display: grid; gap: 18px; }
  .steps { display: grid; gap: 12px; counter-reset: st; }
  .steps li { padding-left: 34px; position: relative; color: var(--ink-2); }
  .steps li::before { counter-increment: st; content: "0" counter(st); position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: 11px; color: var(--signal-ink); }
  .steps b { color: var(--ink); }
  .links { font-size: 14px; }

  @media (max-width: 1100px) {
    .doc { grid-template-columns: 1fr; gap: 0; }
    .rail { display: none; }
    .alts li, .alt-axis { grid-template-columns: 260px minmax(0, 1fr) 90px; }
  }
  @media (max-width: 900px) {
    .plans { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(8, auto); }
    .plan:nth-child(3) { border-left: 0; }
    .plan:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .timeline-wrap { grid-template-columns: 1fr; gap: 8px; }
    .method, .qa { grid-template-columns: 1fr; gap: 10px; }
    .sumbar .hide-s { display: none; }
  }
  @media (max-width: 600px) {
    .plans { grid-template-columns: 1fr; grid-template-rows: none; }
    .plan { grid-template-rows: none; grid-row: auto; gap: 10px; padding: 16px; }
    .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
    .plan .readout { min-height: 0; padding: 10px 12px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    .plan .readout .basis { margin: 0; text-align: right; max-width: 15ch; }
    .plan .incl { font-size: 13.5px; }
    .quickcalc > .ico { display: none; }
    .price.big { font-size: 34px; }
    .price.quote { font-size: 24px; }
    .basis { margin-top: 4px; }
    .ans-meta { white-space: normal; }
    .quickcalc { flex-wrap: wrap; }
    .quickcalc .qc-go { margin-left: 30px; }
    .doc { margin-top: 48px; }
    .sec { padding-bottom: 56px; }
    .alts li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .alt-bar { grid-column: 1 / -1; grid-row: 2; }
    .alt-axis { grid-template-columns: 1fr; }
    .alt-axis > * { grid-column: 1; }
    .sumbar .wrap { gap: 12px; }
    .sumbar .btn { font-size: 12px; }
    .rule-head { grid-template-columns: 1fr; }
    .rule-head .tag { justify-self: start; text-align: left; white-space: normal; }
  }
}

@layer pages { p.tag { white-space: normal; } }

/* ================= HOME ================= */
@layer pages {
  .mono-id { font-family: var(--mono); font-size: 12px; font-variation-settings: "wdth" 87; color: var(--ink-3); letter-spacing: 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; padding-top: 64px; padding-bottom: 48px; align-items: start; }
  .hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em; font-variation-settings: "wdth" 104; font-weight: 680; text-wrap: balance; max-width: 16ch; margin: 0; }
  .hero .lede { margin-top: 22px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
  .hero-search { margin-top: 32px; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px 0 18px; max-width: 520px; border-radius: var(--r-lg); border: 1px solid var(--rule-2); background: var(--panel); box-shadow: var(--shadow-raise); text-decoration: none; color: var(--ink-3); font-size: 16px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
  .hero-search:hover { border-color: var(--signal); color: var(--ink-2); }
  .hero-search .ico { width: 18px; height: 18px; color: var(--ink-2); }
  .hero-search .kbd-row { margin-left: auto; }
  .hero-try { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
  .hero-try a { color: var(--ink-2); margin-inline: 2px; }

  .benchlog { padding: 18px 18px 14px; }
  .bl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .bl-head h2 { font-size: 15px; font-weight: 620; margin: 0; letter-spacing: -0.005em; }
  .bl-rule { position: relative; margin: 12px 0 6px; }
  .bl-rule i { position: absolute; left: 0; top: -2px; width: 3px; height: 20px; border-radius: 1px; background: var(--signal); }
  .bl-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .bl-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 540; }
  .bl-list li:nth-last-child(-n+2) { border-bottom: 0; }
  .bl-list img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: white; }
  .bl-list .bl-word { width: 18px; height: 18px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: white; }
  .bl-list .bl-word img { width: auto; height: 9px; max-width: none; border-radius: 0; }
  .bl-list a { text-decoration: none; }
  .bl-list .status { font-size: 10.5px; }
  .bl-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

  .channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 80px; overflow: clip; }
  .ch { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; padding: 20px 22px 18px; text-decoration: none; color: var(--ink); transition: background .2s var(--ease); }
  .ch + .ch { border-left: 1px solid var(--rule); }
  .ch::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--signal); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
  .ch:hover { background: color-mix(in oklch, var(--well) 45%, var(--panel)); }
  .ch:hover::before, .ch:focus-visible::before { scale: 1 1; }
  .ch-n { font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-3); }
  .ch h2 { font-size: 19px; font-weight: 640; margin: 0; letter-spacing: -0.015em; }
  .ch-read { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 12px 14px; }
  .ch-read .price { font-size: 38px; }
  .ch-two { gap: 10px; }
  .ch-two p { display: grid; gap: 6px; flex: 1; }
  .ch-two .price { font-size: 28px; }
  .ch-two p + p { padding-left: 12px; border-left: 1px solid var(--rule-2); }
  .ch-two .who { font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 87; color: var(--ink-3); }
  .ch-plan .mono-id { font-size: 22px; color: var(--ink-2); font-variation-settings: "wdth" 100; }
  .ch-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
  .ch-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 560; color: var(--signal-ink); }
  .ch-go .ico { width: 14px; height: 14px; transition: translate .2s var(--ease); }
  .ch:hover .ch-go .ico { translate: 3px 0; }

  .board td.num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
  .board td.gap { font-family: var(--mono); font-size: 11px; font-variation-settings: "wdth" 87; color: var(--ink-3); }
  .board .vendor .wm { width: 20px; height: 20px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: white; flex: none; }
  .board .vendor .wm img { width: auto; height: 10px; border-radius: 0; background: none; }
  .board .vendor a { text-decoration: none; }
  .board-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 80ch; }
  @container (max-width: 700px) {
    .board th:nth-child(2), .board td:nth-child(2), .board th:nth-child(5), .board td:nth-child(5) { display: none; }
    .board .status { font-size: 0; gap: 0; }
    .board th:last-child button { font-size: 0; }
    .dt.board td, .dt.board th { padding-inline: 10px; }
    .board .sub { display: none; }
  }

  .protocols { display: grid; border-top: 1px solid var(--rule); }
  .proto { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .proto .bench-photo { aspect-ratio: 16 / 9; filter: saturate(.85); }
  .proto h3 { font-size: 20px; font-weight: 620; letter-spacing: -0.015em; margin: 4px 0 6px; }
  .proto-body p:last-child { color: var(--ink-2); max-width: 60ch; }

  .cl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
  .cl-grid .ledger { margin-top: 24px; }
  .cl-grid .watch { padding: 20px; gap: 10px; }
  .cl-grid .watch .faint { font-size: 13.5px; }

  .method-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 32px; margin-top: 24px; }
  .method-strip h3 { font-size: 17px; font-weight: 620; margin: 6px 0 4px; }
  .method-strip p { font-size: 14px; color: var(--ink-2); }
  .ms-links { display: grid; gap: 6px; align-content: start; font-size: 14px; }

  @media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
    .channels { grid-template-columns: 1fr 1fr; }
    .ch:nth-child(3) { border-left: 0; }
    .ch:nth-child(n+3) { border-top: 1px solid var(--rule); }
    .cl-grid { grid-template-columns: 1fr; }
    .method-strip { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .hero h1 { font-size: 36px; }
    .hero .lede { font-size: 16.5px; }
    .hero-search { height: 48px; font-size: 15px; }
    .hero-search .kbd-row { display: none; }
    .bl-list { column-gap: 14px; }
    .bl-list li { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; font-size: 13.5px; }
    .bl-list .status { font-size: 0; gap: 0; }
    .ch { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; gap: 6px 14px; padding: 16px; }
    .ch-n { grid-column: 1 / -1; }
    .ch h2 { align-self: center; font-size: 17px; }
    .ch-read { grid-column: 2; grid-row: 2 / span 2; min-height: 0; padding: 8px 10px; align-self: start; }
    .ch-read .price { font-size: 26px; }
    .ch-two .price { font-size: 20px; }
    .ch-plan .mono-id { font-size: 16px; }
    .ch-plan .status { display: none; }
    .ch-sub, .ch-go { grid-column: 1; font-size: 13.5px; }
    .channels { grid-template-columns: 1fr; margin-bottom: 56px; }
    .ch + .ch { border-left: 0; border-top: 1px solid var(--rule); }
    .proto { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
    .proto > .status { grid-column: 2; }
    .proto h3 { font-size: 17px; }
    .method-strip { grid-template-columns: 1fr; gap: 18px; }
    .ledger li { grid-template-columns: 1fr; gap: 4px; }
  }
}

/* ================= BRAND ================= */
@layer pages {
  .b-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding-top: 56px; padding-bottom: 40px; align-items: end; }
  .b-intro h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.035em; font-weight: 680; font-variation-settings: "wdth" 112; margin: 0; }
  .b-intro .lede { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
  .b-intro-act { display: grid; gap: 10px; justify-items: end; }
  .b-intro .btn[aria-pressed=true] { border-color: var(--signal); }
  .b-toc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; }
  .b-toc a { text-decoration: none; color: var(--ink-2); }
  .b-toc a:hover { color: var(--ink); }

  .traits td { vertical-align: top; }
  .traits td:first-child { width: 140px; }
  .traits td:last-child { color: var(--ink-3); }
  .voice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--rule); }
  .voice figure { padding: 18px 24px 0 0; }
  .voice figure + figure { padding-left: 24px; border-left: 1px solid var(--rule); }
  .voice blockquote { margin-top: 8px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }

  .logo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .logo-hero { display: grid; place-items: center; min-height: 280px; padding: 40px; }
  .logo-hero .lockup { width: min(100%, 420px); height: auto; }
  .logo-sizes { padding: 24px; display: grid; gap: 24px; }
  .ls-row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
  .ls-row figure { display: grid; gap: 8px; justify-items: start; }
  .ls-box { display: grid; place-items: center; padding: 10px; border-radius: var(--r); background: var(--bench); border: 1px solid var(--rule); color: var(--ink); }
  .ls-box.ink { background: var(--ink); color: var(--bench); border-color: var(--ink); }
  .ls-box svg { display: block; }
  .s96 svg { width: 96px; height: 96px; } .s48 svg { width: 48px; height: 48px; } .s22 svg { width: 22px; height: 22px; } .s16 img { width: 16px; height: 16px; }
  .tab-mock { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px 8px 0 0; background: var(--panel); border: 1px solid var(--rule); border-bottom: 0; font-size: 12.5px; }
  .b-notes { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; color: var(--ink-2); }
  .b-notes li::before { content: "— "; color: var(--rule-2); }

  .swatches td { vertical-align: middle; }
  .swatches code { font-family: var(--mono); font-size: 12px; font-variation-settings: "wdth" 87; }
  .sw { display: inline-block; width: 22px; height: 22px; border-radius: 5px; background: var(--c); border: 1px solid color-mix(in oklch, var(--ink) 18%, transparent); vertical-align: middle; margin-right: 10px; }
  .swatches tr.sig td { background: var(--signal-wash); }
  .series { margin-top: 24px; display: grid; gap: 10px; max-width: 560px; }
  .series-bars { display: grid; gap: 6px; }
  .series-bars i { display: block; height: 12px; inline-size: var(--w); background: var(--c); border-radius: 2px; }
  .series-key { display: flex; gap: 18px; flex-wrap: wrap; }

  .type-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
  .ts-display { padding: 28px; display: grid; gap: 20px; align-content: start; }
  .ts-big { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -0.04em; font-weight: 700; font-variation-settings: "wdth" 118; text-wrap: balance; }
  .ts-axis { display: grid; gap: 4px; font-size: 22px; font-weight: 560; border-top: 1px solid var(--rule); padding-top: 14px; }
  .ts-mono { font-family: var(--mono); font-size: 13px; font-variation-settings: "wdth" 87; color: var(--ink-2); }
  .ts-price { padding: 24px; display: grid; gap: 14px; align-content: start; grid-row: span 2; }
  .tp-big { padding: 18px 20px; }
  .tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tp-row .well { padding: 12px 14px; }
  .tp-rules { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); counter-reset: r; }
  .tp-rules li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; }
  .tp-rules li::before { content: "0" counter(r); font-family: var(--mono); font-size: 11px; color: var(--signal-ink); padding-top: 3px; }
  .ts-scale { padding: 24px 28px; display: grid; gap: 12px; }

  .dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
  .dev-uses { padding: 24px; display: grid; gap: 28px; }
  .du { display: grid; gap: 8px; }
  .du-h { font-size: 24px; font-weight: 640; letter-spacing: -0.02em; }
  .du-bar { height: 14px; background: var(--well); border-radius: 2px; overflow: hidden; }
  .du-bar i { display: block; height: 100%; background: var(--signal); }
  .du-time { position: relative; }
  .du-time i { position: absolute; left: 0; top: -4px; width: 3px; height: 22px; background: var(--signal); border-radius: 1px; }

  .img-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 20px; }
  .img-grid .bench-photo { aspect-ratio: 16 / 9; }
  .img-grid figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; font-size: 14px; }

  .icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .icon-grid li { display: grid; justify-items: center; gap: 10px; padding: 20px 8px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .icon-grid .ico { width: 28px; height: 28px; color: var(--ink); }
  .icon-grid li:hover { background: var(--panel); }
  .icon-grid span { font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 87; color: var(--ink-3); }

  .kit { display: grid; border-top: 1px solid var(--rule); }
  .kit-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .kit-row h3 { font-size: 15px; font-weight: 600; }
  .kit-body { display: grid; gap: 14px; min-width: 0; }
  .kb-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .btn.is-hover { border-color: var(--rule-2); }
  .btn.is-focus { outline: 2px solid var(--signal); outline-offset: 2px; }
  .btn.is-active { transform: translateY(1px); box-shadow: var(--shadow-well); }
  .btn:disabled { opacity: .45; cursor: not-allowed; }
  .input.is-focus { border-color: var(--signal); box-shadow: var(--shadow-well), 0 0 0 3px color-mix(in oklch, var(--signal) 22%, transparent); }
  .kb-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .kb-inputs label { display: grid; gap: 6px; }
  .err-msg { font-size: 12.5px; color: var(--bad); }
  .kit-search { margin-top: 0; }
  .kit-note { font-size: 13.5px; color: var(--ink-3); }
  .kb-price { grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 24px; }
  .kit-plan { grid-template-rows: none; grid-row: auto; }
  .kit-plan h4 { margin: 0; }
  .kb-chips { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
  .kb-empty { grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 24px; }
  .kit-toast { margin-top: 14px; display: inline-flex; }

  .motion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .mo { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 20px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); }
  .mo h3 { font-size: 16px; font-weight: 620; margin-bottom: 4px; }
  .mo p { font-size: 14px; color: var(--ink-2); }
  .mo-demo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; min-height: 84px; flex-wrap: wrap; }
  .mo-tick { font-size: 17px; color: var(--ink) !important; }
  .mo-bill .price { margin-left: auto; }

  .app { display: grid; gap: 10px; margin: 0 0 28px; }
  .og { container-type: inline-size; aspect-ratio: 1200 / 630; width: 100%; max-width: 960px; background: var(--bench); border: 1px solid var(--rule); border-radius: 4px; padding: 5.5cqw 6cqw 4.5cqw; display: grid; grid-template-rows: auto 1fr auto auto; position: relative; overflow: hidden; }
  .og-top { display: flex; justify-content: space-between; align-items: center; }
  .og-top .lockup { height: 3.6cqw; width: auto; }
  .og-id { font-family: var(--mono); font-size: 1.5cqw; font-variation-settings: "wdth" 87; color: var(--ink-3); }
  .og-mid { display: flex; justify-content: space-between; align-items: center; gap: 4cqw; }
  .og-h { font-size: 8cqw; line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variation-settings: "wdth" 112; }
  .og-sub { font-size: 2.4cqw; color: var(--ink-2); margin-top: 1.6cqw; }
  .og-read { display: flex; align-items: flex-start; padding: 2cqw 2.6cqw; border-radius: 1cqw; background: var(--well); box-shadow: var(--shadow-well); font-size: 11cqw; line-height: 1; font-weight: 640; font-variation-settings: "wdth" 112; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
  .og-read .cur { font-size: .45em; color: var(--ink-2); margin-top: .1em; }
  .og-read .unit { font-family: var(--mono); font-size: 1.6cqw; letter-spacing: 0; color: var(--ink-3); align-self: flex-end; margin: 0 0 1cqw .8cqw; font-weight: 400; }
  .og-rule { position: relative; margin-top: 2cqw; }
  .og-rule i { position: absolute; left: 0; top: -.4cqw; width: .4cqw; height: 2.6cqw; background: var(--signal); }
  .og-foot { margin-top: 1.4cqw; font-family: var(--mono); font-size: 1.5cqw; font-variation-settings: "wdth" 87; color: var(--ink-3); }

  .app-pair { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .mail { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
  .mail-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--rule); background: var(--bench); }
  .mail-bar .lockup { height: 18px; width: auto; }
  .mail-body { padding: 24px; display: grid; gap: 12px; }
  .mail-h { font-size: 24px; font-weight: 660; letter-spacing: -0.02em; }
  .mail-p { color: var(--ink-2); font-size: 15px; }
  .mail-read { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; }
  .cl-head { background: var(--ink); color: var(--bench); border-radius: 6px; padding: 24px; display: grid; gap: 10px; --rule: oklch(0.45 0.01 75); }
  .cl-head .tag { color: oklch(0.78 0.01 80); }
  .clh-top { display: flex; justify-content: space-between; align-items: center; }
  .clh-top svg { width: 28px; height: 28px; color: var(--bench); }
  .clh-h { font-size: 30px; font-weight: 680; letter-spacing: -0.025em; font-variation-settings: "wdth" 112; margin-top: 10px; }
  .clh-p { font-size: 15px; color: oklch(0.82 0.01 80); }
  .clh-rule { position: relative; margin-top: 10px; color: oklch(0.6 0.01 75); }
  .clh-rule i { position: absolute; left: 0; top: -3px; width: 3px; height: 20px; background: var(--signal); }
  .cl-head .cp-ticks { color: oklch(0.7 0.01 80); }

  @media (max-width: 1000px) {
    .logo-grid, .type-grid, .dev-grid, .app-pair { grid-template-columns: 1fr; }
    .ts-price { grid-row: auto; }
    .motion { grid-template-columns: 1fr 1fr; }
    .img-grid { grid-template-columns: 1fr 1fr; }
    .kb-inputs { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 600px) {
    .b-intro { grid-template-columns: 1fr; padding-top: 36px; }
    .b-intro-act { justify-items: start; grid-auto-flow: column; align-items: center; }
    .voice { grid-template-columns: 1fr; }
    .voice figure, .voice figure + figure { padding: 16px 0 0; border-left: 0; }
    .traits td:first-child { width: auto; }
    .traits th:last-child, .traits td:last-child { display: none; }
    .ls-row { gap: 16px; }
    .s96 svg { width: 64px; height: 64px; }
    .img-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .img-grid figcaption { display: grid; gap: 2px; font-size: 13px; }
    .kit-row { grid-template-columns: 1fr; gap: 12px; }
    .kb-inputs, .kb-price, .kb-empty { grid-template-columns: 1fr; }
    .motion { grid-template-columns: 1fr; }
    .swatches th:nth-child(2), .swatches td:nth-child(2) { display: none; }
    .mail-body { padding: 18px; }
    .mail-bar { padding: 14px 18px; }
  }
}

@layer components { symbol .a { fill: var(--signal); stroke: none; } symbol .f { fill: currentColor; } }

@layer pages { .swatches code, .swatches td.r { white-space: nowrap; } .kit-tbl td.num { font-variant-numeric: tabular-nums; font-weight: 600; } .kit-tbl .vendor img { flex: none; } }

/* ===================== Pass 3: small touches ===================== */
@layer tokens {
  :root {
    --engrave: 0 1px 0 oklch(1 0 0 / .75);
    --key-hi: oklch(1 0 0 / .9);
    --lamp-ring: oklch(0.3 0.02 70 / .28);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .17 0 0 0 0 .13 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  :root[data-theme="dark"] {
    --engrave: 0 -1px 0 oklch(0 0 0 / .55);
    --key-hi: oklch(1 0 0 / .07);
    --lamp-ring: oklch(1 0 0 / .16);
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .97 0 0 0 0 .92 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

@layer base {
  /* bench grain: the ground reads as a surface */
  body { background-image: var(--grain); background-size: 180px 180px; }
}

@layer components {
  /* status lamps: an LED in a bezel; planned / quote = unlit */
  .status::before, .chip .dot {
    --lamp: var(--rule-2);
    width: 7px; height: 7px; border-radius: 50%; flex: none; border: 0;
    background: radial-gradient(circle at 34% 30%, oklch(1 0 0 / .85) 0 .6px, oklch(1 0 0 / 0) 2.6px), var(--lamp);
    box-shadow: 0 0 0 1px var(--lamp-ring), 0 0 5px -1px var(--lamp);
  }
  .status.ok::before, .chip .dot { --lamp: var(--ok); }
  .status.warn::before, .chip .dot.warn { --lamp: var(--warn); }
  .chip .dot.bad { --lamp: var(--bad); }
  .status.run::before { --lamp: var(--signal); }
  .status.q::before, .chip .dot.q {
    background: radial-gradient(circle at 34% 30%, oklch(1 0 0 / .35) 0 .5px, oklch(1 0 0 / 0) 2.4px), var(--well);
    box-shadow: 0 0 0 1px var(--lamp-ring), inset 0 1px 1.5px oklch(0 0 0 / .25);
  }

  /* keycaps: a top face and a skirt; they sink when the control is pressed */
  kbd {
    background: linear-gradient(var(--panel), color-mix(in oklch, var(--panel) 82%, var(--well)));
    border: 1px solid var(--rule-2); border-bottom-width: 1px;
    box-shadow: inset 0 1px 0 var(--key-hi), 0 1.5px 0 var(--rule-2), 0 2px 3px -1px oklch(0 0 0 / .18);
    margin-bottom: 2px; transition: translate .08s, box-shadow .08s;
  }
  a:active kbd, button:active kbd, kbd.down { translate: 0 1.5px; box-shadow: inset 0 1px 0 var(--key-hi), 0 0 0 var(--rule-2); }

  /* engraved labels inside wells and readouts */
  .basis, .price .unit, .mono-id, .need .lbl, .cp-tier, .readout .tag { text-shadow: var(--engrave); }

  /* footnote markers: each number in the answer is one press from its source */
  .fn { all: unset; cursor: pointer; font-family: var(--mono); font-size: .62em; font-variation-settings: "wdth" 87; color: var(--signal-ink); display: inline-block; vertical-align: .55em; line-height: 1; padding: 0 2px; margin-right: -1px; text-decoration: none; }
  .fn:hover { text-decoration: underline; text-underline-offset: 2px; }
  .fn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

}

@layer pages {
  /* hanging currency sign: figures line up with the line under them */
  .plan .readout .price, .ch-read .price, .need .price { position: relative; }
  .plan .readout .price { align-self: flex-start; }
  .plan .readout .price .cur, .ch-read .price .cur, .need .price .cur { position: absolute; right: 100%; top: 0; margin: .12em 2px 0 0; }
  .plan .readout { padding-left: 32px; }
  .ch-read { padding-left: 30px; }
  .need > div { padding-left: 28px; }

  /* hero plate: the evidence is the picture */
  .hero { grid-template-columns: minmax(0, 1fr) 380px; padding-top: 40px; padding-bottom: 28px; }
  .hero .lede { margin-top: 18px; }
  .hero-search { margin-top: 26px; }
  .hero-plate .tag { white-space: normal; }
  .hero-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
  .bench-sec { margin-top: 20px; }
  .bench-sec .bl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bench-sec .bl-list li:nth-last-child(-n+4) { border-bottom: 0; }
  @media (max-width: 1000px) {
    .hero { grid-template-columns: 1fr; }
    .hero-plate { max-width: 320px; }
    .bench-sec .bl-list { grid-template-columns: 1fr 1fr; }
    .bench-sec .bl-list li:nth-last-child(-n+4) { border-bottom: 1px solid var(--rule); }
    .bench-sec .bl-list li:nth-last-child(-n+2) { border-bottom: 0; }
  }
  .hero-plate { padding: 10px 10px 8px; }
  .hero-plate figcaption { margin-top: 8px; }
  .hp-img { position: relative; display: block; }
  .hp-img img { display: block; }
  .hp-ring { position: absolute; left: 5%; top: 51.5%; width: 37%; height: 13%; border: 1.5px solid oklch(0.65 0.19 40); border-radius: 4px; }
  .hp-note { position: absolute; left: calc(42% + 14px); top: 58%; translate: 0 -50%; font-family: var(--mono); font-size: 10.5px; font-variation-settings: "wdth" 87; line-height: 1; padding: 3px 6px; border-radius: 3px; white-space: nowrap; background: oklch(0.99 0.005 60); color: oklch(0.5 0.17 38); border: 1px solid oklch(0.65 0.19 40); }
  .hp-note::before { content: ""; position: absolute; right: 100%; top: 50%; width: 15px; height: 1.5px; margin-top: -.75px; background: oklch(0.65 0.19 40); }
  .hp-img:hover .hp-ring { box-shadow: 0 0 0 3px oklch(0.65 0.19 40 / .18); }
  @media (max-width: 600px) {
    .plan .readout { padding-left: 26px; }
    .ch-read { padding-left: 22px; }
    .need > div { padding-left: 24px; }
    .hp-note { font-size: 10px; padding: 2px 5px; }
  }
}

@layer pages {
  .kb-details { display: grid; gap: 0; }
  .kb-details > div { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .kb-details > div:last-child { border-bottom: 0; }
  .kb-details dt { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  .kb-details dd { margin: 0; color: var(--ink-2); font-size: 14px; }
  .kb-hang { display: inline-grid; gap: 4px; padding: 10px 14px 10px 30px; }
  .kb-hang .price { position: relative; font-size: 34px; }
  .kb-hang .price .cur { position: absolute; right: 100%; top: 0; margin: .12em 2px 0 0; }
  .kb-hang .basis { margin: 0; }
  .kb-fn { font-size: 16px; color: var(--ink-2); }
  .kb-logos { display: flex; gap: 8px; }
  .kb-logos img { border-radius: 5px; background: white; }
  @media (max-width: 600px) {
    .kb-details > div { grid-template-columns: 1fr; gap: 8px; }
  }
}
