/* Wold / Fen landing — static site stylesheet.
   Zero dependencies. No web fonts (system stack only) so the page renders
   without a network round trip.
   0.96.0: dark tech aesthetic is the DEFAULT palette (the hero visual); light
   mode auto-adapts via prefers-color-scheme. Both palettes share the same rust
   accent family so the brand holds across themes. */

:root {
  color-scheme: dark light;

  --ink: #e8eaf0;
  --ink-soft: #a6abb8;
  --ink-faint: #82879c;
  --paper: #0f1115;
  --paper-alt: #161a21;
  --line: #272c35;
  --accent: #e8703f;
  --accent-strong: #f2814f;
  --accent-soft: #251a13;
  /* Text colour on top of --accent / --accent-strong fills. Pure white on the
     dark-theme rust measures only 3.08:1 (WCAG AA wants 4.5) - the near-black
     paper tone measures 6.14:1, so each theme carries its own on-accent.
     Pinned by tool/verify_landing_perf_a11y.js (on-accent x accent pairs). */
  --on-accent: #0f1115;

  /* 0.96.0 tech-light layers: hero backdrop, neon glows, glass panels. */
  --hero-bg-1: #0b0d13;
  --hero-bg-2: #0f1115;
  --glow-warm: rgba(232, 112, 63, 0.20);
  --glow-cool: rgba(96, 128, 255, 0.16);
  --glow-teal: rgba(64, 224, 208, 0.10);
  --grid-line: rgba(232, 112, 63, 0.07);
  --glass-bg: rgba(22, 26, 33, 0.72);
  --glass-border: rgba(232, 112, 63, 0.22);
  --img-scrim: linear-gradient(180deg, rgba(15, 17, 21, 0.42) 0%, rgba(15, 17, 21, 0.72) 58%, var(--paper) 100%);
  /* 0.97.0: lighter photo scrim for the home hero / link band - the city
     photograph must stay clearly visible (image-first), unlike --img-scrim
     which fades to solid paper for city-page heroes. */
  --photo-scrim: linear-gradient(180deg, rgba(11, 13, 19, 0.18) 0%, rgba(11, 13, 19, 0.38) 52%, rgba(11, 13, 19, 0.84) 100%);

  --radius: 12px;
  --maxw: 1080px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #16181d;
    --ink-soft: #55595f;
    --ink-faint: #676b71;
    --paper: #ffffff;
    --paper-alt: #f7f5f2;
    --line: #e4e0da;
    --accent: #b4471f;
    --accent-strong: #963a19;
    --accent-soft: #fbf1ec;
    /* Light theme keeps white on its (darker) rust: 5.44:1 on --accent,
       7.20:1 on --accent-strong. See the dark-theme note above. */
    --on-accent: #ffffff;

    --hero-bg-1: #fdf8f4;
    --hero-bg-2: #ffffff;
    --glow-warm: rgba(180, 71, 31, 0.12);
    --glow-cool: rgba(96, 128, 255, 0.10);
    --glow-teal: rgba(64, 224, 208, 0.08);
    --grid-line: rgba(180, 71, 31, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(180, 71, 31, 0.25);
    --img-scrim: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.82) 58%, var(--paper) 100%);
    --photo-scrim: linear-gradient(180deg, rgba(253, 248, 244, 0.42) 0%, rgba(253, 248, 244, 0.62) 52%, rgba(253, 248, 244, 0.92) 100%);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

::selection { background: var(--accent); color: var(--on-accent); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 10px 16px; z-index: 10; border: 2px solid var(--accent);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 5;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand-mark {
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand-mark span { color: var(--accent); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px;
  padding: 4px 2px; border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

/* 0.96.0: tech-light backdrop. Layered neon glows + a faint perspective grid
   halo, all var-driven so light mode dims the same shapes instead of breaking. */
.hero {
  position: relative;
  padding: 132px 0 104px;
  background:
    radial-gradient(1100px 460px at 82% -14%, var(--glow-warm), transparent 62%),
    radial-gradient(820px 420px at 6% 6%, var(--glow-cool), transparent 64%),
    radial-gradient(560px 320px at 50% 118%, var(--glow-teal), transparent 68%),
    linear-gradient(180deg, var(--hero-bg-1), var(--hero-bg-2));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(900px 480px at 70% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 70% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.1; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: 20ch; font-weight: 750;
}
/* 中文标语两行收束（0.94.0 目视审查）：真实约束是 hero-grid 栏宽（≈528px），
   max-width 挡不住——58px 字号下第二行 10 个汉字（580px）放不进栏宽，
   「人。」被孤成第三行。zh 下去掉 max-width 并把字号上限降到 52px
   （10 字 ≈ 520px 恰好入栏），断行自然落在逗号后。 */
html[lang^="zh"] .hero h1 { max-width: none; font-size: clamp(32px, 4.8vw, 52px); }
.hero .lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); max-width: 62ch; margin: 0 0 14px; }
.hero .note { font-size: 15px; color: var(--ink-faint); margin: 0 0 34px; max-width: 62ch; }

/* docs / faq / changelog reuse the hero, tighter */
.hero.slim { padding: 60px 0 44px; }
.hero.slim h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.hero.slim .hero-sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); max-width: 66ch; margin: 0 0 10px; }
.hero.slim .hero-note { font-size: 14px; color: var(--ink-faint); margin: 0; font-family: var(--mono); }

/* 0.97.0: cinematic home hero. The homepage hero sits on a full-bleed city
   photograph (inline --hero-img, same pattern as city pages) under the lighter
   --photo-scrim so the picture stays clearly visible; the neon-glow gradient
   underneath stays as fallback texture. */
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: var(--photo-scrim), var(--hero-img, none);
  background-size: cover, cover;
  background-position: center, center 34%;
}
.hero .hero-stack h1,
.hero .hero-stack .lede,
.hero .hero-stack .trust li { text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 0 26px var(--glow-warm); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); box-shadow: 0 0 34px var(--glow-warm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Honest fallback: when there is no release URL yet, the primary action is
   rendered as a non-link. A download button that goes nowhere is worse than
   a button that admits it is not ready. */
.btn-disabled {
  background: var(--paper); color: var(--ink-faint);
  border-color: var(--line); cursor: not-allowed;
}

/* ---------- sections ---------- */

section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--paper-alt); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin: 0 0 10px;
}
.block h2 {
  font-size: clamp(26px, 3.3vw, 36px); line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 30ch; font-weight: 700;
}
.block p.body { color: var(--ink-soft); max-width: 68ch; margin: 0 0 22px; }

ul.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 68ch; }
ul.points li { position: relative; padding-left: 26px; color: var(--ink); }
ul.points li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* ---------- hero: copy + product visual ---------- */

.hero-grid {
  display: grid; gap: 34px; align-items: center;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}
.hero-art { display: flex; justify-content: center; }
.hero-phone { width: 100%; max-width: 262px; height: auto; }

.hero-phone .ph-body { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.hero-phone .ph-screen { fill: var(--paper-alt); }
.hero-phone .ph-bar { fill: var(--line); }
.hero-phone .bubble-in { fill: var(--paper); stroke: var(--line); stroke-width: 1; }
.hero-phone .bubble-out { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.hero-phone text { font-size: 11px; fill: var(--ink-soft); }
.hero-phone text.strong { fill: var(--ink); }
.hero-phone text.mono {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; fill: var(--ink-faint);
}

/* ---------- hero: the link diagram (0.94.0) ----------
   You -> your agent -> their agent -> the person. The hot middle leg is the
   part that actually happens first; the outer legs wait until it is worth it. */

.hero-link { width: 100%; max-width: 470px; height: auto; }
.hero-link .lk-line { stroke: var(--line); stroke-width: 2; fill: none; }
.hero-link .lk-line-hot { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.hero-link .lk-node-h { fill: var(--paper); stroke: var(--ink-soft); stroke-width: 1.5; }
.hero-link .lk-node-a { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.hero-link text { font-size: 13px; fill: var(--ink-soft); }
.hero-link text.lk-strong { fill: var(--ink); font-weight: 650; }
.hero-link text.lk-cap {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.06em; fill: var(--ink-faint);
}

.trust {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.trust li {
  font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; background: var(--paper);
}

/* ---------- feature sections: icon + two columns ---------- */

.feature {
  display: grid; gap: 26px 40px; align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); margin-bottom: 14px;
}
.feature-icon svg {
  width: 24px; height: 24px; fill: none;
  stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-head h2 { margin-bottom: 0; }
.feature-detail .body { margin-bottom: 18px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { order: 2; margin-top: 4px; }
  .hero-phone { max-width: 196px; }
  .hero-link { max-width: 420px; }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .band { padding: 64px 0; }
  .band-inner { flex-direction: column; text-align: center; }
  .band-glass .hero-link { max-width: 420px; }
  .bento { grid-template-columns: 1fr; }
}

/* ---------- home overview: entry cards (0.94.0) ---------- */

.entry-grid {
  display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.entry-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; background: var(--glass-bg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.entry-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 26px var(--glow-cool); }
.entry-card .entry-name { font-weight: 650; font-size: 18px; }
.entry-card .entry-desc { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.entry-card .entry-go { font-size: 14px; color: var(--accent); font-weight: 600; }

/* ---------- 0.97.0: full-bleed link band (image + glass) ---------- */

.band {
  position: relative;
  padding: 92px 0;
  background-image: var(--photo-scrim), var(--band-img, none);
  background-size: cover, cover;
  background-position: center, center 32%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.band-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 320px at 18% 30%, var(--glow-warm), transparent 66%),
    radial-gradient(640px 300px at 84% 72%, var(--glow-cool), transparent 66%);
}
.band-inner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.band-glass {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}
.band-line {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  letter-spacing: -0.015em; max-width: 24ch; margin: 0;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}

/* ---------- 0.97.0: bento overview (one line per feature) ---------- */

.bento {
  display: grid; gap: 16px;
  padding-top: 40px; padding-bottom: 30px;
  grid-template-columns: repeat(2, 1fr);
}
.bento-card {
  position: relative; overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.bento-card::before {
  content: ""; position: absolute; top: -74px; right: -74px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cool), transparent 70%);
  pointer-events: none;
}
.bento-card.bento-warm::before { background: radial-gradient(circle, var(--glow-warm), transparent 70%); }
.bento-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 36px var(--glow-cool); }
.bento-card .feature-icon { margin-bottom: 2px; }
.bento-card h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.bento-line { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* ---------- world page: official agent cards (0.94.0) ---------- */

.agent-grid {
  display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.agent-grid .city-card { cursor: default; }
.agent-grid .city-card:hover { border-color: var(--line); transform: none; }
.agent-id {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--accent); margin-top: 4px;
}
.agent-quote {
  margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent);
  background: var(--paper-alt); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.agent-note {
  font-size: 14px; color: var(--ink-faint); margin: 18px 0 0; max-width: 68ch;
}

/* ---------- city grid (0.96.0: image-led + glass) ---------- */

.city-grid {
  display: grid; gap: 16px; margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.city-card {
  display: block; padding: 18px 18px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--paper); transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.city-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.city-card .city-name { font-weight: 650; font-size: 18px; }
.city-card .city-country { font-size: 14px; color: var(--ink-faint); }
.city-card .city-blurb { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }

/* Image-led variant: the picture is the card. */
.city-card.has-media { padding: 0; overflow: hidden; background: var(--glass-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.city-card.has-media:hover { box-shadow: 0 10px 34px var(--glow-warm); }
.city-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-alt); }
.city-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.city-card.has-media:hover .city-media img { transform: scale(1.045); }
.city-body { padding: 13px 15px 14px; }

/* ---------- city page ---------- */

/* 0.96.0: full-bleed city photograph behind the intro, with a var-driven
   scrim so the headline stays readable in both themes. */
.city-hero {
  position: relative;
  padding: 120px 0 64px;
  background-image: var(--img-scrim), var(--city-img, none);
  background-size: cover, cover;
  background-position: center, center 36%;
  border-bottom: 1px solid var(--line);
}
.city-hero > .wrap { position: relative; }
.city-hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 750; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35); }
.city-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0 0 28px; font-size: 18px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3); }

.breadcrumb { font-size: 14px; color: var(--ink-faint); margin: 0 0 14px; }
.breadcrumb a { color: var(--ink-faint); }

/* ---------- docs (system knowledge portal) ---------- */

.kb-toc {
  display: grid; gap: 18px 14px; margin: 30px auto 8px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
.kb-toc a {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--ink);
  font-size: 14.5px; background: var(--paper);
  transition: border-color 120ms ease, transform 120ms ease;
}
.kb-toc a:hover { border-color: var(--accent); transform: translateY(-1px); }

.doc-body { padding-bottom: 80px; max-width: var(--maxw); }
.doc-entry {
  padding: 26px 0 6px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px; /* sticky header offset for #anchors */
}
.doc-entry:last-child { border-bottom: 0; }
.doc-entry h2 {
  font-size: 21px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.doc-entry h2::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); margin-right: 10px;
}
.doc-entry p { color: var(--ink-soft); max-width: 74ch; margin: 0; }

/* ---------- faq ---------- */

.faq-body { padding: 26px 0 80px; max-width: var(--maxw); }
.faq-item {
  padding: 26px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.faq-item h2 {
  font-size: 20px; font-weight: 700; margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.faq-item h2::before {
  content: "Q"; font-family: var(--mono); font-size: 13px;
  color: var(--accent); margin-right: 10px;
}
.faq-item p { color: var(--ink-soft); max-width: 74ch; margin: 0; }

/* ---------- changelog ---------- */

.log-body { padding: 26px 0 80px; max-width: 78ch; }
.log-item {
  padding: 24px 0 8px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.log-ver {
  font-family: var(--mono);
  font-size: 18px !important; font-weight: 700;
  letter-spacing: -0.01em; margin: 0 0 12px !important;
}
.log-ver::before {
  content: "v"; color: var(--accent); margin-right: 2px;
}
.log-item ul { color: var(--ink-soft); }

/* ---------- changelog pagination (0.115.0) ----------
   The changelog is paginated by byte budget (400 KB/page) so one page can
   never cross the 1 MB perf cap. The pager must read as a pager, not as a
   stray pair of links: it sits above the entries, centred, with the counter
   between the two directions. */

.cl-pages {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; padding: 18px 0 4px; margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
}
.cl-page-link {
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.cl-page-link:hover { text-decoration: underline; }
.cl-page-link.is-disabled { color: var(--ink-faint); cursor: default; }
.cl-page-counter {
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cl-pages { gap: 12px; flex-wrap: wrap; }
}

/* ---------- footer ---------- */

.site-foot { padding: 44px 0; font-size: 14.5px; color: var(--ink-faint); border-top: 1px solid var(--line); }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--ink-soft); }

/* ---------- policy / long-form document ----------
   Rendered from lib/compliance/隐私政策.md by build.js. Reads as prose, not as
   a wall: one column, generous vertical rhythm, tables that scroll instead of
   squeezing on a phone. */

.doc { max-width: 78ch; }
.doc h1 {
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 750;
}
.doc h2 {
  font-size: clamp(21px, 2.5vw, 27px); line-height: 1.25;
  margin: 46px 0 12px; font-weight: 700;
}
.doc h3 { font-size: 18px; margin: 30px 0 10px; font-weight: 700; }
.doc p { color: var(--ink-soft); margin: 0 0 15px; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { color: var(--ink-soft); margin: 0 0 17px; padding-left: 22px; display: grid; gap: 7px; }
.doc li { padding-left: 2px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em; background: var(--accent-soft); color: var(--ink);
  padding: 1px 5px; border-radius: 5px; word-break: break-word;
}
.doc blockquote {
  margin: 0 0 19px; padding: 14px 18px; background: var(--paper-alt);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
.doc blockquote p:last-child { margin-bottom: 0; }

.md-table { overflow-x: auto; margin: 0 0 20px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.md-table th, .md-table td {
  border: 1px solid var(--line); padding: 9px 12px;
  text-align: left; vertical-align: top;
}
.md-table th { background: var(--paper-alt); color: var(--ink); font-weight: 650; }
.md-table td { color: var(--ink-soft); }

/* ---------- legal pages: language switcher + translation notice ----------
   A policy is only readable in a language the reader has. The switcher is a
   plain list of links (no script, works offline); the notice states, in the
   reader's language, that a translated page is a translation. */

.lang-switch {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  font-size: 14.5px; margin: 0 0 22px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.lang-switch-label { color: var(--ink-faint); }
.lang-switch a { color: var(--ink-soft); text-decoration: none; }
.lang-switch a:hover { color: var(--accent); text-decoration: underline; }
.lang-current { color: var(--ink); font-weight: 650; }

.lang-note {
  margin: 0 0 26px; padding: 13px 16px; border-radius: var(--radius);
  background: var(--accent-soft); font-size: 15px; color: var(--ink-soft);
}
.lang-note strong { color: var(--ink); }
.lang-note a { word-break: break-word; }

@media (max-width: 620px) {
  .hero { padding: 60px 0 52px; }
  section.block { padding: 54px 0; }
  .nav { gap: 14px; }
  .doc h2 { margin-top: 34px; }
  .kb-toc { grid-template-columns: 1fr; }
}

/* ================= 0.98.0: the homepage is a theatre =================
   Eight chapters, one screen each. Everything below is var-driven, so the
   light theme is the same dream in daylight. No external art, no scripts
   from anywhere: the sprite is inline SVG, the interactions are 30 lines
   of inline JS. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- the sprite (小荒) ---------- */

.sprite-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sp-shell { fill: var(--paper-alt); stroke: var(--accent); stroke-width: 2; }
.sp-crack { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.sp-orb { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.sp-tail { fill: var(--accent); opacity: 0.45; }
.sp-shine { fill: rgba(255, 255, 255, 0.32); }
.sp-eye { fill: var(--ink); }
.sp-mouth { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.sprite-alert .sp-eye { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; }
.sprite-alert .sp-brow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.sprite-alert .sp-orb { fill: var(--glow-warm); }

/* ---------- prologue: the egg ---------- */

.story-tag {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
}
.scroll-hint {
  margin: 26px 0 0; font-size: 13.5px; color: var(--ink-faint);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.awaken {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 22px 0 4px;
}
.egg {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  width: 118px; height: 118px; position: relative; flex: 0 0 auto;
}
.egg .sprite-egg { animation: sp-float 3.6s ease-in-out infinite; }
.egg .sprite-hatched { display: none; }
.egg.is-hatched .sprite-egg { display: none; }
.egg.is-hatched .sprite-hatched { display: block; animation: sp-float 3.6s ease-in-out infinite; }
.egg:hover .sprite-svg { filter: drop-shadow(0 0 18px var(--glow-warm)); }
.egg-hint {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; color: var(--accent);
  font-family: var(--mono); letter-spacing: 0.08em;
}
@keyframes sp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.awaken-panel {
  opacity: 0.25; pointer-events: none; transition: opacity 260ms ease;
  display: flex; flex-direction: column; gap: 8px; max-width: 320px;
}
.awaken-panel.is-open { opacity: 1; pointer-events: auto; }
.name-input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
}
.name-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn-dice {
  align-self: flex-start; padding: 8px 14px; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--glass-bg); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 140ms ease, color 140ms ease;
}
.btn-dice:hover { border-color: var(--accent); color: var(--accent); }
.trait { margin: 0; font-size: 14.5px; color: var(--ink); min-height: 1.4em; font-weight: 600; }
.trait.is-on { color: var(--accent); }
.dice-note { margin: 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- chapters ---------- */

.chapter {
  position: relative;
  min-height: 100svh; display: flex; align-items: center;
  padding: 84px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 76px; overflow: hidden;
}
.chapter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% 8%, var(--glow-cool), transparent 66%),
    radial-gradient(680px 380px at 92% 84%, var(--glow-warm), transparent 68%);
}
.chapter > .wrap { position: relative; }
.chapter-cities::before {
  background:
    radial-gradient(760px 420px at 78% 6%, var(--glow-teal), transparent 66%),
    radial-gradient(680px 380px at 6% 88%, var(--glow-warm), transparent 68%);
}
.chapter-undo::before {
  background:
    radial-gradient(700px 400px at 50% 0%, var(--glow-warm), transparent 62%),
    radial-gradient(560px 320px at 88% 92%, var(--glow-cool), transparent 66%);
}
.chapter-finale::before {
  background:
    radial-gradient(820px 460px at 50% 6%, var(--glow-warm), transparent 64%),
    radial-gradient(620px 360px at 20% 92%, var(--glow-teal), transparent 66%);
}

.chapter-head { margin: 0 0 22px; }
.chapter-no {
  display: block; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.34em; color: var(--accent); margin-bottom: 8px;
}
.chapter-head h2 {
  font-size: clamp(28px, 4.6vw, 44px); line-height: 1.14;
  letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 750;
}
.chapter-sub { margin: 0; font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-soft); }

/* ---------- dialogue ---------- */

.bubbles { display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.bubble {
  display: flex; gap: 12px; padding: 13px 15px;
  background: var(--glass-bg); border: 1px solid var(--line);
  border-radius: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
}
.bubble-avatar { flex: 0 0 42px; width: 42px; }
.bubble-body { position: relative; flex: 1; padding-right: 26px; }
.bubble-who {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px;
}
.bubble-body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.bubble-body strong { color: var(--accent); font-weight: 700; }
.bubble-sig {
  position: absolute; right: 0; bottom: 2px; opacity: 0.55;
}
.bubble-sig svg { width: 15px; height: 15px; display: block; }

.hook {
  margin: 22px 0 0; padding-left: 14px; max-width: 58ch;
  border-left: 3px solid var(--accent);
  font-size: clamp(18px, 2.3vw, 24px); line-height: 1.5; font-weight: 650;
  color: var(--ink);
}
.value-tag {
  margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 12px; font-size: 13.5px;
}
.value-main { color: var(--accent); font-weight: 650; }
.value-note { color: var(--ink-faint); }

/* ---------- chapter 5: the city reel ---------- */

.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 260px);
  gap: 14px; overflow-x: auto; margin-top: 22px; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.reel-card { scroll-snap-align: start; }
.reel-line { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- chapter 6: the audit trail you can cross out ---------- */

.audit {
  margin-top: 22px; max-width: 64ch; padding: 14px 16px;
  background: var(--glass-bg); border: 1px dashed var(--line);
  border-radius: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.audit-label {
  margin: 0 0 4px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.16em; color: var(--accent);
}
.audit-hint { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-faint); }
.audit-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.audit-line {
  padding: 9px 12px; border-radius: 10px; font-size: 15px;
  color: var(--ink-soft); background: var(--paper-alt);
  border: 1px solid var(--line);
}
.audit-bad {
  cursor: pointer; color: var(--ink); border-color: var(--accent);
  transition: opacity 200ms ease, background 200ms ease;
}
.audit-bad:hover { background: var(--accent-soft); }
.audit-bad.is-undone { text-decoration: line-through; opacity: 0.5; cursor: default; border-style: solid; }
.audit-note {
  margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  color: var(--ink); background: var(--accent-soft); border-left: 3px solid var(--accent);
}

.fin-actions { margin-top: 24px; }

/* ---------- honest disclaimer + table of contents ---------- */

.disclaimer {
  max-width: var(--maxw); margin: 30px auto 0; padding: 0 20px;
  font-size: 13px; line-height: 1.7; color: var(--ink-faint); text-align: center;
}
.disclaimer strong { color: var(--ink-soft); }

.toc {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 30; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 12px 10px; max-width: 168px;
  background: var(--glass-bg); border: 1px solid var(--line);
  border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.toc-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--ink-faint); margin-bottom: 4px;
}
.toc a {
  display: flex; gap: 8px; align-items: baseline; padding: 4px 7px;
  border-radius: 8px; font-size: 12.5px; color: var(--ink-faint);
  text-decoration: none; transition: color 140ms ease, background 140ms ease;
}
.toc a span { font-family: var(--mono); font-size: 10.5px; opacity: 0.7; }
.toc a:hover { color: var(--ink); background: var(--paper-alt); }
.toc a.is-active { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 1100px) {
  .toc { display: none; }
}
@media (max-width: 620px) {
  .chapter { min-height: auto; padding: 58px 0; }
  .awaken { gap: 16px; }
  .egg { width: 96px; height: 96px; }
  .reel { grid-auto-columns: minmax(200px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
  .egg .sprite-svg { animation: none; }
}

/* ---------------- 0.99.0 / ADR-001: self-hosted download page ---------------- */
.dl-actions { margin: 22px 0 6px; }
.btn-dl { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 13px 30px; line-height: 1.25; }
.dl-btn-main { font-size: 15.5px; font-weight: 600; }
.dl-btn-sub { font-family: var(--mono); font-size: 11.5px; opacity: 0.78; }
.dl-version { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin: 0 0 4px; }

.dl-facts {
  margin: 0 0 26px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper-alt);
  display: grid; gap: 0;
}
.dl-fact { display: grid; grid-template-columns: minmax(150px, 26%) 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl-fact:last-child { border-bottom: 0; }
.dl-fact dt { font-size: 13px; color: var(--ink-faint); }
.dl-fact dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.dl-fact dd.mono, .dl-cmd { font-family: var(--mono); font-size: 12px; }
.dl-cmd {
  margin: 0 0 22px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--paper-alt); overflow-x: auto;
}
@media (max-width: 620px) {
  .dl-fact { grid-template-columns: 1fr; gap: 2px; }
  .btn-dl { width: 100%; }
}

/* ------------------------------------------------ 0.102.0 explain layer --
   Product explain layer: positioning -> three steps -> demo door -> honest
   status -> developer doors. Colours come from CSS variables only, so light
   and dark themes are free; no external assets, no gradients, no glow.
-------------------------------------------------------------------------- */
.explain { padding: 72px 0; border-top: 1px solid var(--line); }
.explain .eyebrow { margin-top: 0; }
.explain h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; margin: 0 0 14px; max-width: 24ch; }
.explain-lede { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; margin: 0 0 22px; }
.explain-cta { margin: 0 0 40px; }
.steps-block { margin: 0 0 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.steps .step { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt); }
.step-no { flex: 0 0 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step-body h3 { font-size: 16px; margin: 0 0 6px; }
.step-body p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.demo-door { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.demo-text h3 { font-size: 18px; margin: 0 0 8px; }
.demo-body { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 8px; max-width: 60ch; }
.demo-note { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin: 0; }
.status-cols { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.status-col { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt); }
.ok-head, .wip-head { font-size: 15px; margin: 0 0 12px; }
.ok-head { color: var(--accent-strong); }
.wip-head { color: var(--ink-faint); }
.status-list { margin: 0; padding-left: 20px; }
.status-list li { font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.ok-list li::marker { color: var(--accent-strong); }
.wip-list li::marker { color: var(--ink-faint); }
.dev-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.dev-card { display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--paper-alt); transition: border-color 120ms ease; }
.dev-card:hover { border-color: var(--accent); }
.dev-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.dev-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.dev-go { font-size: 13px; color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .steps, .status-cols, .dev-grid { grid-template-columns: 1fr; }
  .demo-door { flex-direction: column; align-items: flex-start; }
  .explain { padding: 52px 0; }
}

/* 0.103.0 — demo page (/demo/): the eight-step Agent walkthrough.
   Every colour here is a CSS variable, so light/dark mode comes for free and
   the offline-self-sufficiency check stays true (no font, no image, no
   external request of any kind). */

.demo-banner {
  margin: 22px 0 0; padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--ink-soft);
}
.demo-intent {
  margin: 0; padding: 20px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-alt);
  font-size: 18px; line-height: 1.6;
}

/* 0.111.0 — demo page walkthrough video (/demo/, en while the zh cut is in
   production). Self-hosted mp4 + poster, zero external requests; the frame
   caps the player width because the recording is a tall phone screen. */
.demo-video-lede { color: var(--ink-soft); max-width: 68ch; margin: 0 0 22px; }
.demo-video-frame {
  max-width: 400px; margin: 0 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper-alt);
}
.demo-video { display: block; width: 100%; height: auto; }
.demo-video-meta {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
  margin: 0 0 10px;
}
.demo-video-meta a { color: inherit; text-decoration: underline; }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.demo-bar .btn { cursor: pointer; font-family: inherit; font-size: 15px; padding: 11px 20px; }
.demo-bar .btn[disabled] { opacity: 0.45; cursor: default; }
.demo-progress { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }

.demo-dots { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.demo-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper-alt);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
}
.demo-dot.is-done { border-color: var(--accent); color: var(--accent-strong); }
.demo-dot.is-on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

.demo-flow { list-style: none; margin: 0; padding: 0; }
/* Progressive enhancement: without JS the .js class is never added, so all
   eight steps stay visible. A control that looks live and does nothing is
   worse than no control at all (R14). */
.demo-flow.js .demo-step { display: none; }
.demo-flow.js .demo-step.is-done,
.demo-flow.js .demo-step.is-on { display: block; }
.demo-step {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-alt); padding: 20px 22px; margin-bottom: 14px;
}
.demo-step.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--glass-border); }
.demo-step.is-done { opacity: 0.62; }
.demo-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.demo-step-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  font-family: var(--mono); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
/* Step titles are h2 on purpose: the page is h1 (hero) -> h2 (each step) ->
   h2 (self-check title) -> h3 (each question). An h1 -> h3 skip is a real
   accessibility defect (caught by tool/verify_landing_perf_a11y.js). */
.demo-step-head h2 { font-size: 17px; margin: 0; }

.demo-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.demo-col { padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line); }
.demo-col-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px;
}
.demo-col-body { font-size: 14.5px; line-height: 1.7; margin: 0; }
.demo-happened .demo-col-label { color: var(--ink-soft); }
.demo-control {
  border-style: solid; border-color: var(--glass-border); background: var(--glass-bg);
}
.demo-control .demo-col-label { color: var(--accent-strong); }

.check-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.check-item {
  padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper-alt);
}
.check-q { font-size: 15px; margin: 0 0 8px; color: var(--accent-strong); }
.check-a { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .demo-cols, .check-grid { grid-template-columns: 1fr; }
  .demo-progress { margin-left: 0; width: 100%; }
}

/* 0.104.0 — security page (/security/): mechanism groups.
   Variables only, so both palettes come for free; no external resource. */

.sec-group { border-top: 1px solid var(--line); padding: 26px 0 6px; }
.sec-group:first-child { border-top: 0; padding-top: 0; }
.sec-group-title { font-size: 19px; margin: 0 0 16px; }
.sec-items { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.sec-item {
  padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper-alt);
}
.sec-item-title { font-size: 15.5px; margin: 0 0 8px; }
.sec-item-body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.sec-proof { margin: 12px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.sec-proof code { background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; }
.sec-proof-note { margin: 22px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 860px) {
  .sec-items { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------ self-host (7.2) ----
   Owner: the /self-host/ page built by selfHostHtml(). Kept in its own block
   so the revenue cards can change without touching the rest of the sheet. */
.sh-need { margin: 0 0 26px; display: grid; gap: 12px; }
.sh-item {
  display: grid; grid-template-columns: minmax(180px, 28%) 1fr; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper-alt);
}
.sh-item dt { font-weight: 600; color: var(--ink); font-size: 14px; }
.sh-item dd { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.sh-not { margin: 0 0 26px; padding-left: 20px; color: var(--ink-soft); }
.sh-not li { margin: 0 0 10px; line-height: 1.7; }
.sh-not strong { color: var(--ink); }
.sh-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 14px; }
.sh-table th, .sh-table td {
  text-align: left; vertical-align: top; padding: 10px 12px;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); line-height: 1.6;
}
.sh-table thead th {
  color: var(--ink); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase;
}
.sh-table tbody th { color: var(--ink); font-weight: 600; width: 26%; }
.sh-support {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 0 0 26px;
}
.sh-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-alt); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.sh-card h3 { margin: 0; font-size: 16px; color: var(--ink); }
.sh-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.sh-card .btn { align-self: flex-start; }
.sh-card .sh-pending { font-size: 12.5px; color: var(--ink-faint); }
.sh-disc {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 14px 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7;
}
.sh-disc strong { color: var(--ink); }
@media (max-width: 640px) {
  .sh-item { grid-template-columns: 1fr; gap: 4px; }
  .sh-table tbody th { width: auto; }
}

/* ------------------------------------------------- download channels ------
   Owner: the /download/ page's "three ways to install" section (0.113.0).
   Same visual language as .sh-card so both pages read as one site. */
.dl-channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin: 0 0 26px;
}
.dl-channel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-alt); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.dl-channel h3 {
  margin: 0; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dl-channel p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
.dl-channel ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.dl-channel ol li { margin: 0 0 6px; }
.dl-channel-status {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line);
}
.dl-channel-live { color: var(--accent); border-color: var(--accent); }
.dl-channel-pending { color: var(--ink-faint); }
.dl-channel-warn {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 12px 16px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7;
}
.dl-channel-warn strong { color: var(--ink); }
@media (max-width: 640px) {
  .dl-channels { grid-template-columns: 1fr; }
}
