:root {
  color-scheme: light dark;
  --page: #f5f5f7;
  --page-alt: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-2: #eceef2;
  --glass: rgb(255 255 255 / 0.78);
  --material: rgb(245 245 247 / 0.82);
  --text: #1d1d1f;
  --muted: #49494f;
  --faint: #5b5b62;
  --edge: rgb(0 0 0 / 0.085);
  --edge-strong: rgb(0 0 0 / 0.17);
  --edge-specular: rgb(255 255 255 / 0.9);
  --grid-dot: rgb(0 0 0 / 0.08);
  --accent: #0071e3;
  --accent-hover: #005ec2;
  --accent-text: #0066cc;
  --accent-soft: rgb(0 113 227 / 0.1);
  --accent-glow: rgb(0 113 227 / 0.16);
  --accent-rim: rgb(0 113 227 / 0.42);
  --logo-blue: #0071e3;
  --logo-orange: #ff9500;
  --teal: #0f6b5b;
  --teal-soft: rgb(15 107 91 / 0.11);
  --green: #16702e;
  --green-soft: rgb(22 112 46 / 0.11);
  --orange: #a84600;
  --orange-soft: rgb(168 70 0 / 0.11);
  --red: #bf2118;
  --red-soft: rgb(191 33 24 / 0.11);
  --focus-halo: rgb(0 113 227 / 0.28);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 22px 48px -16px rgb(0 0 0 / 0.14);
  --shadow-stage: 0 2px 6px rgb(0 0 0 / 0.06), 0 32px 72px -22px rgb(0 30 70 / 0.18);
  --float-bg: #141519;
  --float-surface: #1d1f25;
  --float-text: #f2f2f5;
  --float-muted: #b4b7c2;
  --float-edge: rgb(255 255 255 / 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --card: rgb(255 255 255 / 0.86);
  --veil: rgb(255 255 255 / 0.5);
  --seg-track: rgb(118 122 136 / 0.14);
  --seg-pill: #ffffff;
  --amber-soft: rgb(255 149 0 / 0.16);
  --spot-rim: rgb(0 113 227 / 0.95);
  --spot-rim-2: rgb(255 149 0 / 0.75);
  --spot-wash: rgb(0 113 227 / 0.07);
  --spot-pool: rgb(0 113 227 / 0.1);
  --sheen-hot: rgb(255 255 255 / 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.44, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #050507;
    --page-alt: #0a0b0f;
    --surface: #111217;
    --surface-elevated: #15171e;
    --surface-2: #1c1f28;
    --glass: rgb(17 18 23 / 0.72);
    --material: rgb(9 10 14 / 0.78);
    --text: #f4f5f8;
    --muted: #b1b4bf;
    --faint: #8e929f;
    --edge: rgb(255 255 255 / 0.09);
    --edge-strong: rgb(255 255 255 / 0.19);
    --edge-specular: rgb(255 255 255 / 0.22);
    --grid-dot: rgb(255 255 255 / 0.11);
    --accent: #0a84ff;
    --accent-hover: #2f98ff;
    --accent-text: #6eb7ff;
    --accent-soft: rgb(10 132 255 / 0.15);
    --accent-glow: rgb(10 132 255 / 0.26);
    --accent-rim: rgb(10 132 255 / 0.55);
    --logo-blue: #0a84ff;
    --logo-orange: #ff9f0a;
    --teal: #45d1b7;
    --teal-soft: rgb(69 209 183 / 0.15);
    --green: #4fd36b;
    --green-soft: rgb(79 211 107 / 0.14);
    --orange: #ffa94d;
    --orange-soft: rgb(255 169 77 / 0.14);
    --red: #ff6961;
    --red-soft: rgb(255 105 97 / 0.15);
    --focus-halo: rgb(10 132 255 / 0.36);
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.07), 0 24px 56px -14px rgb(0 0 0 / 0.75);
    --shadow-stage: 0 0 0 1px rgb(255 255 255 / 0.1), 0 36px 90px -18px rgb(0 0 0 / 0.9), 0 0 80px -24px rgb(10 132 255 / 0.32);
    --float-bg: #0f1116;
    --float-surface: #181b22;
    --float-edge: rgb(255 255 255 / 0.13);
    --card: rgb(17 18 23 / 0.8);
    --veil: rgb(255 255 255 / 0.022);
    --seg-track: rgb(255 255 255 / 0.07);
    --seg-pill: rgb(255 255 255 / 0.15);
    --amber-soft: rgb(255 159 10 / 0.17);
    --spot-rim: rgb(96 174 255 / 1);
    --spot-rim-2: rgb(255 159 10 / 0.8);
    --spot-wash: rgb(64 150 255 / 0.1);
    --spot-pool: rgb(96 174 255 / 0.16);
    --sheen-hot: rgb(190 222 255 / 1);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #050507;
  --page-alt: #0a0b0f;
  --surface: #111217;
  --surface-elevated: #15171e;
  --surface-2: #1c1f28;
  --glass: rgb(17 18 23 / 0.72);
  --material: rgb(9 10 14 / 0.78);
  --text: #f4f5f8;
  --muted: #b1b4bf;
  --faint: #8e929f;
  --edge: rgb(255 255 255 / 0.09);
  --edge-strong: rgb(255 255 255 / 0.19);
  --edge-specular: rgb(255 255 255 / 0.22);
  --grid-dot: rgb(255 255 255 / 0.11);
  --accent: #0a84ff;
  --accent-hover: #2f98ff;
  --accent-text: #6eb7ff;
  --accent-soft: rgb(10 132 255 / 0.15);
  --accent-glow: rgb(10 132 255 / 0.26);
  --accent-rim: rgb(10 132 255 / 0.55);
  --logo-blue: #0a84ff;
  --logo-orange: #ff9f0a;
  --teal: #45d1b7;
  --teal-soft: rgb(69 209 183 / 0.15);
  --green: #4fd36b;
  --green-soft: rgb(79 211 107 / 0.14);
  --orange: #ffa94d;
  --orange-soft: rgb(255 169 77 / 0.14);
  --red: #ff6961;
  --red-soft: rgb(255 105 97 / 0.15);
  --focus-halo: rgb(10 132 255 / 0.36);
  --shadow: 0 0 0 1px rgb(255 255 255 / 0.07), 0 24px 56px -14px rgb(0 0 0 / 0.75);
  --shadow-stage: 0 0 0 1px rgb(255 255 255 / 0.1), 0 36px 90px -18px rgb(0 0 0 / 0.9), 0 0 80px -24px rgb(10 132 255 / 0.32);
  --float-bg: #0f1116;
  --float-surface: #181b22;
  --float-edge: rgb(255 255 255 / 0.13);
  --card: rgb(17 18 23 / 0.8);
  --veil: rgb(255 255 255 / 0.022);
  --seg-track: rgb(255 255 255 / 0.07);
  --seg-pill: rgb(255 255 255 / 0.15);
  --amber-soft: rgb(255 159 10 / 0.17);
  --spot-rim: rgb(96 174 255 / 1);
  --spot-rim-2: rgb(255 159 10 / 0.8);
  --spot-wash: rgb(64 150 255 / 0.1);
  --spot-pool: rgb(96 174 255 / 0.16);
  --sheen-hot: rgb(190 222 255 / 1);
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* Theme toggle icon visibility */
.icon-sun { display: none; }
.icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* One language at a time; both stay in HTML for readers without script. */
html[data-lang="zh"] body [lang="en"],
html[data-lang="en"] body [lang="zh-CN"] { display: none !important; }
[hidden] { display: none !important; }
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Progressive-enhancement scroll reveal (GPU transform/opacity only) */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
html.has-reveal [data-reveal-delay="1"] { transition-delay: 75ms; }
html.has-reveal [data-reveal-delay="2"] { transition-delay: 150ms; }
html.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  caret-color: var(--accent);
  overflow-x: clip;
}
::selection { background: var(--accent-soft); color: var(--text); }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--focus-halo); border-radius: 6px; }
img, svg { display: block; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.wrap.narrow { max-width: 46rem; }
.wrap.wide { max-width: 80rem; }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--edge-strong);
  border-radius: 8px;
}
.skip:focus { top: .75rem; }

/* Ambient cursor aura: fx.js paints it; everything else sits above it. */
.aura {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
main, .foot { position: relative; z-index: 1; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--material);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--edge);
}
.top-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 3.65rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
  font: 700 1.24rem/1 var(--display);
  letter-spacing: -.025em;
}
.brand .mark { width: 2.5rem; height: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: 1.2rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .18s var(--ease-out); }
.nav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.icon-toggle, .lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out);
}
.icon-toggle { width: 2.25rem; padding: 0; }
.lang-toggle { padding: 0 .8rem; font: 600 .84rem/1 var(--sans); }
.icon-toggle:hover, .lang-toggle:hover { background: var(--surface-2); border-color: var(--edge-strong); }
.icon-toggle:active, .lang-toggle:active { transform: scale(.96); }
.theme-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-mobile { display: none; border-top: 1px solid var(--edge); }
.nav-mobile-inner {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: .55rem;
}
.nav-mobile-inner::-webkit-scrollbar { display: none; }
.nav-mobile a { color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.nav-mobile a:hover { color: var(--text); }

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 2.85rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: var(--glass);
  color: var(--text);
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.button:hover { background: var(--surface-2); transform: translateY(-1px); }
.button:active { transform: scale(.98); }
.button.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 8px 22px -8px var(--accent-glow);
}
.button.primary:hover {
  background: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 12px 28px -8px var(--accent-glow);
}
.button.small { min-height: 2.25rem; padding: 0 1rem; font-size: .87rem; }
.button:disabled { opacity: .55; cursor: default; transform: none; }

.mini-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Small shared parts of the miniature interfaces */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.65;
  white-space: nowrap;
}
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.warn { background: var(--orange-soft); color: var(--orange); }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); }
.chip.neutral { background: transparent; box-shadow: inset 0 0 0 1px var(--edge-strong); color: var(--faint); }
.chip.dark { background: rgb(255 255 255 / 0.1); color: #d4d7e0; }
.chip.dark.ok { background: rgb(79 211 107 / 0.18); color: #6fe08a; }
.mini-toggle {
  display: inline-flex;
  width: fit-content;
  padding: 2px;
  border-radius: 999px;
  background: var(--seg-track);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--faint);
  white-space: nowrap;
}
.mini-toggle > span { padding: 0 8px; border-radius: 999px; }
.mini-toggle > .on { background: var(--accent); color: #fff; }

/* Segmented control with a sliding pill. fx.js measures the selected tab and
   writes the pill's box into /fx.css; without it the selected tab shows its own
   background. */
.seg {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--seg-track);
}
.seg-tab {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 .9rem/1.3 var(--sans);
  cursor: pointer;
  transition: color .2s var(--ease-out);
}
.seg-tab:hover { color: var(--text); }
.seg-tab[aria-selected="true"] { color: var(--text); }
.seg:not(.has-pill) .seg-tab[aria-selected="true"] { background: var(--seg-pill); }
.seg-pill {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--pill-w, 0);
  height: var(--pill-h, 0);
  border-radius: 999px;
  background: var(--seg-pill);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 6px 14px -6px rgb(0 0 0 / 0.22);
  transform: translate3d(var(--pill-x, 0), var(--pill-y, 0), 0);
  opacity: 0;
  pointer-events: none;
}
.seg.has-pill .seg-pill { opacity: 1; }
.seg.pill-live .seg-pill {
  transition: transform .52s var(--ease-spring), width .36s var(--ease-out), height .36s var(--ease-out);
}

/* Proximity spotlight. fx.js adds one .spot-glow per [data-spot] card and
   moves its light through /fx.css. */
[data-spot] { position: relative; }
.spot-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--lit, 0);
  transition: opacity .3s ease-out;
}
.spot-glow::before, .spot-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.spot-glow::before {
  padding: 1.5px;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), var(--spot-rim) 0 14%, var(--spot-rim-2) 46%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot-glow::after {
  background:
    radial-gradient(9rem circle at var(--mx, 50%) var(--my, 50%), var(--spot-pool), transparent 72%),
    radial-gradient(24rem circle at var(--mx, 50%) var(--my, 50%), var(--spot-wash), transparent 64%);
}

/* Act 1 · Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2.25rem, 4.6vw, 3.75rem) 0 clamp(2.25rem, 4.4vw, 3.25rem);
  background: radial-gradient(60rem 30rem at 70% -12%, var(--accent-soft), transparent 64%);
  overflow: hidden;
}
.hero-stage-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 72% at 62% 28%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 62% 28%, #000 18%, transparent 78%);
  opacity: .75;
}
.hero-grid { display: grid; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center; }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.3fr); }
}
h1 {
  font: 700 clamp(1.9rem, 3.1vw, 2.6rem)/1.13 var(--display);
  letter-spacing: -.032em;
  text-wrap: balance;
}
h1 [lang="zh-CN"], .section-title [lang="zh-CN"] { word-break: keep-all; }
/* Three lines of ten characters each: the size follows the line, never the reverse. */
h1 [lang="zh-CN"] {
  font-size: min(clamp(1.9rem, 3.25vw, 2.7rem), 8.2vw);
  letter-spacing: -.018em;
  line-height: 1.24;
}
.lead {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.3vw, 1.06rem);
  color: var(--muted);
  max-width: 34rem;
}
.cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.hero-invite { margin-top: .95rem; font-size: .89rem; color: var(--faint); }
.hero-invite a { font-weight: 600; }
.trust-strip {
  list-style: none;
  padding: 1.15rem 0 0;
  margin-top: 1.45rem;
  border-top: 1px solid var(--edge);
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.05rem;
  color: var(--muted);
  font-size: .85rem;
}
.trust-strip li { display: inline-flex; align-items: center; gap: .42rem; }
.trust-strip .mini-icon { color: var(--accent-text); }

/* The 11 languages, each written in its own script */
.lang-strip {
  margin-top: clamp(1.75rem, 3.4vw, 2.5rem);
  padding: .8rem 1.2rem;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1.75rem;
}
.lang-strip-label { font: 600 .98rem/1.5 var(--display); color: var(--text); }
.lang-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}

/* Interactive demo window: the optical stage */
.demo-figure { min-width: 0; perspective: 1500px; }
.demo-figure figcaption {
  margin-top: .9rem;
  color: var(--faint);
  font-size: .835rem;
  text-align: center;
  line-height: 1.5;
}
.demo-shell {
  position: relative;
  border-radius: 17px;
  padding: 1px;
  background: linear-gradient(180deg, var(--edge-specular) 0%, var(--edge) 38%, var(--edge) 100%);
  box-shadow: var(--shadow-stage);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* Top-edge light: a steady rim plus a hot spot that tracks the pointer. */
.demo-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2.4rem;
  border-radius: 17px 17px 0 0;
  pointer-events: none;
  background:
    radial-gradient(8rem 2px at var(--sx, 50%) 0, var(--sheen-hot), transparent) top / 100% 2px no-repeat,
    radial-gradient(12rem 100% at var(--sx, 50%) 0, var(--accent-glow), transparent 74%);
  opacity: var(--sheen, 0);
}
.demo {
  container-type: inline-size;
  background: var(--surface-elevated);
  border-radius: 16px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.55rem;
  padding: 0 .9rem;
  border-bottom: 1px solid var(--edge);
  background: var(--page-alt);
  white-space: nowrap;
  overflow: hidden;
}
.dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.demo-title { font-weight: 600; font-size: 13px; color: var(--muted); }
.demo-interp {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  margin-left: .2rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.demo-interp > span { overflow: hidden; text-overflow: ellipsis; }
.demo-interp.speaking { background: var(--accent-soft); color: var(--accent-text); }
.interp-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.demo-live {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font: 600 12.5px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}
.demo-live i {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.demo.paused .demo-live i { animation: none; opacity: .45; }
@keyframes pulse { 50% { opacity: .35; } }

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--edge);
  background: var(--page);
}
.demo-tabs { border-radius: 13px; }
.demo-tabs .seg-pill, .demo-tab { border-radius: 10px; }
.demo-tab {
  display: grid;
  gap: 1px;
  padding: .26rem .72rem .3rem;
  text-align: left;
  font-size: 12.5px;
}
.demo-tab b { font-weight: 600; }
.demo-tab small { font-size: 11px; font-weight: 500; color: var(--faint); }
.demo-playback { display: inline-flex; gap: .35rem; margin-left: auto; }
.demo-ctrl {
  min-width: 3.4rem;
  border: 1px solid var(--edge-strong);
  background: var(--surface);
  color: var(--muted);
  padding: .24rem .62rem;
  border-radius: 999px;
  font: 600 12px/1.3 var(--sans);
  cursor: pointer;
  transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
.demo-ctrl:hover { background: var(--surface-2); color: var(--text); }
.demo-ctrl[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
/* Wide enough for either label (Pause / Resume), so toggling never reflows the bar. */
.demo-ctrl[data-demo-toggle] { min-width: 4.4rem; }
html[data-lang="zh"] .demo-ctrl[data-demo-toggle] { min-width: 3.4rem; }

/* Both views share one locked height per width tier, so the page below never
   moves while the script types, loops or switches view. */
.demo-body, .demo-float {
  --demo-h: 36rem;
  block-size: var(--demo-h);
  overflow: hidden;
  transition: opacity .45s ease;
}
.demo.fade .demo-body, .demo.fade .demo-float { opacity: 0; }
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) 20.5rem;
  grid-template-areas: "page" "lines" "side";
}
.demo-pane {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  min-height: 0;
  padding: .7rem .85rem .8rem;
  overflow: hidden;
}
.pane-name { flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.demo-pane-lines { grid-area: lines; }
.demo-pane-page { grid-area: page; border-bottom: 1px solid var(--edge); background: var(--page); }
.demo-side { grid-area: side; border-top: 1px solid var(--edge); background: var(--page-alt); }
@container (min-width: 30rem) {
  .demo-body, .demo-float { --demo-h: 25.5rem; }
  .demo-body {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "page side" "lines side";
  }
  .demo-side { border-top: 0; border-left: 1px solid var(--edge); }
}
@container (min-width: 40rem) {
  .demo-body, .demo-float { --demo-h: 26rem; }
  .demo-body {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "lines page side";
  }
  .demo-pane-page { border-bottom: 0; border-left: 1px solid var(--edge); }
}

.demo-page {
  display: flex;
  gap: .65rem;
  align-items: center;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.demo-page.show { opacity: 1; transform: none; }
.slide-thumb {
  position: relative;
  flex-shrink: 0;
  width: 4.3rem;
  aspect-ratio: 43 / 25;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1);
  overflow: hidden;
}
.slide-thumb b { position: absolute; left: 9%; top: 12%; width: 52%; height: 9%; min-height: 4px; border-radius: 2px; background: #1d1d1f; opacity: .7; }
.slide-thumb i { position: absolute; bottom: 12%; width: 12%; border-radius: 2px 2px 0 0; background: #0071e3; }
.slide-thumb i:nth-of-type(1) { left: 10%; height: 24%; }
.slide-thumb i:nth-of-type(2) { left: 28%; height: 40%; }
.slide-thumb i:nth-of-type(3) { left: 46%; height: 32%; background: #3b82f6; opacity: .65; }
.slide-thumb i:nth-of-type(4) { left: 64%; height: 52%; }
.demo-page-text { min-width: 0; flex: 1; }
.demo-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.demo-page-title { font-weight: 600; font-size: 12.5px; }
.demo-page-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.demo-page-summary { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.demo-page-points { display: none; list-style: none; padding: 0; margin-top: .45rem; color: var(--muted); font-size: 12.5px; }
.demo-page-points li { position: relative; padding-left: .8rem; }
.demo-page-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
@container (min-width: 40rem) {
  .demo-page { flex-direction: column; align-items: stretch; gap: .6rem; }
  .slide-thumb { width: 100%; border-radius: 7px; }
  .demo-page-points { display: block; }
  .demo-page-summary { margin-top: .3rem; }
}

.demo-lines { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .62rem; flex: 1; min-height: 0; overflow: hidden; }
.line { opacity: 0; transform: translateY(5px); transition: opacity .32s var(--ease-out), transform .32s var(--ease-out); }
.line.show { opacity: 1; transform: none; }
.line.has-gloss .said { padding-top: 1.25em; }
.speaker-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 2px;
}
.speaker-a { background: var(--accent-soft); color: var(--accent-text); }
.speaker-b { background: var(--teal-soft); color: var(--teal); }
.said { font-size: 14px; color: var(--text); }
.tr { color: var(--muted); font-size: 13px; margin-top: .1rem; }
.g-word { position: relative; display: inline-block; }
.g-note {
  position: absolute;
  left: 50%;
  bottom: calc(100% - .08em);
  transform: translate(-50%, 4px) scale(.92);
  opacity: 0;
  white-space: nowrap;
  padding: 0 .45em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.g-word.show > span:first-child { text-decoration: underline dotted var(--accent-text); text-underline-offset: 4px; }
.g-word.show .g-note { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fix .wrong { text-decoration: underline wavy var(--orange); text-underline-offset: 4px; }
.fix .right { display: none; }
.fix.fixed .wrong { display: none; }
.fix.fixed .right {
  display: inline;
  padding: 0 .18em;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  animation: arrive .4s var(--ease-out);
}
.fix-tag {
  display: inline-block;
  margin-left: .4em;
  padding: 0 .5em;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  vertical-align: 1px;
  white-space: nowrap;
  animation: arrive .4s var(--ease-out);
}
@keyframes arrive { from { opacity: 0; transform: translateY(3px); } }

.demo-tts {
  padding: .45rem .6rem;
  border-radius: 10px;
  background: var(--accent-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.demo-tts.show { opacity: 1; transform: none; }
.demo-tts-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--accent-text); }
.demo-tts-text { font-size: 12.5px; color: var(--text); margin-top: 1px; min-height: 1.55em; }
.demo-alert {
  width: fit-content;
  max-width: 100%;
  padding: .12rem .64rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
}
.demo-alert.show { opacity: 1; transform: none; }
.demo-answer {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .36s var(--ease-out), transform .36s var(--ease-out);
}
.demo-answer.show { opacity: 1; transform: none; }
.demo-answer-label { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.demo-answer-label.say { margin-top: .4rem; }
.demo-points { font-size: 12.5px; color: var(--muted); min-height: 1.5em; }
.demo-say { font-size: 13.5px; font-weight: 600; line-height: 1.45; min-height: 1.5em; color: var(--text); }
.demo-say-note { font-size: 12px; color: var(--muted); margin-top: .15rem; }
/* The ask box needs the taller side column; the stacked phone layout omits it. */
.demo-ask {
  margin-top: auto;
  flex-shrink: 0;
  display: none;
  gap: .35rem;
  padding-top: .5rem;
  border-top: 1px solid var(--edge);
}
@container (min-width: 30rem) {
  .demo-ask { display: grid; }
}
.ask-field {
  display: flex;
  align-items: center;
  gap: .3rem;
  min-width: 0;
  padding: .22rem .3rem .22rem .55rem;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--edge-strong);
}
.ask-hint {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--faint);
  font-size: 12px;
}
.ask-opt {
  flex-shrink: 0;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.75;
}

/* Overlay view: your shared screen underneath, the window only you see on top */
.demo-float {
  position: relative;
  background: var(--float-bg);
  color: var(--float-text);
}
.share-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .75rem .85rem .85rem;
}
.share-flag { display: inline-flex; align-items: center; gap: .42rem; font-size: 12px; font-weight: 600; color: #ff8f88; }
.share-flag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.demo.paused .share-flag i { animation: none; }
.share-slide {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: 9px;
  background: #f4f5f8;
  color: #1d1d1f;
}
.share-slide-title { font: 700 14px/1.3 var(--display); }
.share-bars { display: flex; align-items: flex-end; gap: 9px; height: 4.6rem; }
.share-bars i { width: 20px; border-radius: 3px 3px 0 0; background: #0071e3; }
.share-bars i:nth-child(1) { height: 38%; opacity: .55; }
.share-bars i:nth-child(2) { height: 66%; opacity: .75; }
.share-bars i:nth-child(3) { height: 52%; opacity: .65; }
.share-bars i:nth-child(4) { height: 92%; }
.share-seen { margin-top: auto; max-width: 34%; font-size: 11.5px; font-weight: 600; color: #5b5b62; }
.hud {
  position: absolute;
  top: 4.4rem;
  right: .6rem;
  bottom: .6rem;
  left: .6rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .65rem .75rem .7rem;
  border-radius: 12px;
  background: rgb(15 17 22 / 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(10 132 255 / 0.5);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.6);
  overflow: hidden;
}
@container (min-width: 30rem) {
  .hud { top: .7rem; right: .7rem; bottom: .7rem; left: auto; width: min(62%, 27rem); }
}
.float-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .5rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--float-edge);
  font-size: 12px;
}
.float-shield { display: inline-flex; align-items: center; gap: .38rem; color: #4fd36b; font-weight: 600; }
.float-queue-meta { color: var(--float-muted); font-variant-numeric: tabular-nums; }
.float-queue {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
  min-height: 0;
}
.float-q {
  padding: .5rem .65rem .55rem;
  border-radius: 10px;
  background: var(--float-surface);
  border: 1px solid var(--float-edge);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.float-q.show { opacity: 1; transform: none; }
.float-q-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.float-q-who { font-size: 11.5px; font-weight: 600; color: var(--float-muted); }
.float-q-badge {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.float-q-badge.pinned { background: rgb(10 132 255 / 0.2); color: #7ac0ff; }
.float-q-badge.timer { background: rgb(255 169 77 / 0.18); color: #ffba70; }
.float-q-ask { font-size: 12.5px; color: var(--float-muted); margin-bottom: .2rem; }
.float-q-say { font-size: 13.5px; font-weight: 600; color: var(--float-text); line-height: 1.42; min-height: 2.84em; }
.float-q-note { font-size: 12px; color: var(--float-muted); margin-top: .15rem; }
.float-checks { list-style: none; padding: 0; display: grid; gap: .22rem; }
.float-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-left: 1.25rem;
  font-size: 12.5px;
  color: var(--float-text);
}
.float-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--float-muted);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.float-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 5px;
  height: 8px;
  margin-top: -5.5px;
  border: solid #0f1116;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(40deg) scale(0);
  transition: transform .3s var(--ease-spring);
}
.float-check.done::before { background: #4fd36b; box-shadow: none; }
.float-check.done::after { transform: rotate(40deg) scale(1); }
.float-check.pending::before { box-shadow: inset 0 0 0 1.5px #ffba70; }
.float-check-state {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.float-check.done .float-check-state { opacity: 1; background: rgb(79 211 107 / 0.16); color: #6fe08a; }
.float-check.pending .float-check-state { opacity: 1; background: rgb(255 169 77 / 0.18); color: #ffba70; }
.float-caption {
  flex-shrink: 0;
  padding-top: .5rem;
  border-top: 1px solid var(--float-edge);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.float-caption.show { opacity: 1; }
.float-caption-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .15rem; }
.float-caption-live { font-size: 11.5px; color: var(--float-muted); }
.float-caption-said { font-size: 13px; color: var(--float-text); min-height: 1.55em; }
.float-caption-tr { font-size: 12px; color: var(--float-muted); min-height: 1.55em; }
.hud .speaker-pill { background: rgb(10 132 255 / 0.2); color: #7ac0ff; margin-bottom: 0; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 2.85rem) 0 clamp(2.1rem, 4.2vw, 3rem); }
.section.follow { padding-top: 0; }
.section.alt { background: var(--veil); border-block: 1px solid var(--edge); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.section-title {
  font: 700 clamp(1.7rem, 3.1vw, 2.35rem)/1.18 var(--display);
  letter-spacing: -.028em;
  text-wrap: balance;
}
.section-title [lang="zh-CN"] { letter-spacing: -.012em; }
.section-title.small { font-size: clamp(1.3rem, 2.2vw, 1.62rem); text-align: center; }
.section-lead { margin-top: .85rem; color: var(--muted); font-size: 1.02rem; }
.section-title.left, .section-lead.left { text-align: left; }

/* Act 2 · Category comparison: three older ways, then Gloss */
.compare { margin-top: 1.35rem; display: grid; gap: .8rem; }
@media (min-width: 40rem) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .compare { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.24fr); } }
.cat-card {
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.cat-card h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font: 600 .96rem/1.35 var(--display);
  color: var(--text);
}
.cat-card h3 .mini-icon { color: var(--faint); }
.cat-card h3 .mark { width: 1.9rem; height: auto; flex-shrink: 0; }
.cat-list { list-style: none; padding: 0; margin-top: .55rem; display: grid; gap: .28rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.cat-list li { position: relative; padding-left: 1.05rem; }
.cat-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .72em;
  width: 8px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--faint);
  opacity: .7;
}
.cat-card.is-gloss {
  background: radial-gradient(22rem 11rem at 100% 0%, var(--amber-soft), transparent 70%),
    radial-gradient(22rem 12rem at 0% 0%, var(--accent-soft), transparent 72%), var(--surface-elevated);
  box-shadow: inset 0 0 0 1px var(--accent-rim);
}
.cat-card.is-gloss h3 { font-size: 1.06rem; }
.cat-card.is-gloss .cat-list { color: var(--text); font-weight: 500; }
.cat-card.is-gloss .cat-list li::before {
  left: 2px;
  top: .32em;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: none;
  opacity: 1;
  transform: rotate(40deg);
}

/* Act 3 · Five scenes */
.scenes { margin-top: clamp(1.75rem, 3.6vw, 2.5rem); display: grid; gap: 1.15rem; justify-items: center; }
.scene-tabs { max-width: 100%; flex-wrap: wrap; justify-content: center; padding: 4px; border-radius: 1.6rem; }
.scene-tab {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .55rem 1.05rem;
  font-size: .95rem;
}
.scene-tab[aria-selected="true"] .mini-icon { color: var(--accent-text); }
.scene-deck {
  width: 100%;
  display: grid;
  border-radius: 20px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow);
}
/* Every scene shares one grid cell: the deck keeps the height of the tallest,
   so switching never moves the page. */
.scene {
  grid-area: 1 / 1;
  min-width: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.05rem, 2.6vw, 1.85rem);
  visibility: hidden;
  opacity: 0;
  transition: opacity .32s var(--ease-out), visibility 0s linear .32s;
}
.scene.is-active { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (min-width: 62rem) {
  .scene { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.42fr); }
}
.scene .sv { transform: translateY(10px); transition: transform .5s var(--ease-out); }
.scene.is-active .sv { transform: none; }
.scene-copy h3 { font: 700 1.3rem/1.3 var(--display); letter-spacing: -.01em; }
.scene-role { margin-top: .3rem; color: var(--muted); font-size: .97rem; }
.phases { list-style: none; padding: 0; margin-top: 1.15rem; display: grid; gap: .85rem; }
.phases li { position: relative; padding-left: 1.35rem; }
.phases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--page);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.phases li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15rem;
  bottom: -.95rem;
  width: 1px;
  background: var(--edge-strong);
}
.phases li[data-phase="live"]::before { background: var(--accent); }
.phase-when { display: block; font-size: .82rem; font-weight: 600; color: var(--accent-text); }
.phases p { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.scene-guard {
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--edge);
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  color: var(--faint);
  font-size: .86rem;
  line-height: 1.5;
}
.scene-guard .mini-icon { margin-top: .16rem; color: var(--green); }

/* Scene preview window: three bands that mirror before, during, after */
.sv {
  min-width: 0;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--edge-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.5;
}
.sv-chrome {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.15rem;
  padding: 0 .8rem;
  border-bottom: 1px solid var(--edge);
  background: var(--page-alt);
}
.sv-title { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sv-rec {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font: 600 12px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}
.sv-rec i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sv-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .35rem;
  padding: .65rem .8rem;
  transition: background-color .25s var(--ease-out);
}
.sv-band + .sv-band { border-top: 1px solid var(--edge); }
@media (min-width: 36rem) {
  .sv-band { grid-template-columns: 3.1rem minmax(0, 1fr); gap: .7rem; }
}
.sv-when { font-size: 11.5px; font-weight: 600; color: var(--faint); padding-top: .12rem; }
.sv-live { background: var(--page); }
.sv-live > :not(.sv-when) { min-height: 12.6rem; }
.sv-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
.sv-row.spread { justify-content: space-between; }
.sv-file {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: 1px 8px 1px 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--edge-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.65;
  white-space: nowrap;
}
.sv-file::before {
  content: "";
  width: 8px;
  height: 10px;
  border-radius: 1.5px;
  background: var(--accent);
  opacity: .75;
  clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%);
}
.sv-arrow { width: 14px; height: 1.5px; background: var(--edge-strong); position: relative; margin-inline: .1rem; }
.sv-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border: solid var(--faint);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.sv-out { font-size: 12.5px; font-weight: 700; color: var(--text); margin-right: .15rem; }
.sv-cols { display: grid; gap: .6rem; min-width: 0; }
@media (min-width: 36rem) {
  .sv-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-cols-2.wide-right { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
@media (min-width: 44rem) {
  .sv-cols-3 { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.94fr) minmax(0, 1.08fr); }
}
.sv-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .42rem;
  padding: .6rem .65rem .65rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.sv-pane > * { max-width: 100%; }
.sv-pane-name { display: flex; align-items: center; gap: .35rem; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.sv-line { display: flex; flex-direction: column; align-items: flex-start; gap: .18rem; }
.sv-said { font-size: 13px; color: var(--text); }
.sv-said.has-gloss { padding-top: 1.15em; }
.sv-tr { font-size: 12px; color: var(--muted); }
.sv-g { position: relative; display: inline-block; text-decoration: underline dotted var(--accent-text); text-underline-offset: 4px; }
.sv-g-note {
  position: absolute;
  left: 50%;
  bottom: calc(100% - .05em);
  transform: translateX(-50%);
  padding: 0 .45em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.sv-slide {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  min-height: 5.4rem;
  padding: .6rem .7rem;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1);
  color: #1d1d1f;
}
.sv-slide-title { font: 700 12.5px/1.3 var(--display); }
.sv-formula {
  font: italic 500 15px/1.3 "Cambria Math", "STIX Two Math", "Latin Modern Math", "Times New Roman", ui-serif, serif;
  letter-spacing: .01em;
  white-space: nowrap;
}
.sv-bars { display: flex; align-items: flex-end; gap: 7px; height: 2.6rem; }
.sv-bars i { width: 15px; border-radius: 2px 2px 0 0; background: #0071e3; }
.sv-bars i:nth-child(1) { height: 38%; opacity: .55; }
.sv-bars i:nth-child(2) { height: 66%; opacity: .75; }
.sv-bars i:nth-child(3) { height: 52%; opacity: .65; }
.sv-bars i:nth-child(4) { height: 94%; }
.sv-note { font-size: 12px; color: var(--muted); }
.sv-nudge {
  padding: .25rem .5rem;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 11.5px;
  font-weight: 600;
}
.share-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.sv-card {
  align-self: stretch;
  display: grid;
  justify-items: start;
  gap: .25rem;
  padding: .45rem .55rem;
  border-radius: 8px;
  background: var(--page);
  box-shadow: inset 0 0 0 1px var(--edge);
  font-size: 12px;
  color: var(--muted);
}
.sv-tag {
  display: inline-block;
  margin-right: .35rem;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 1px;
  white-space: nowrap;
}
.sv-tag.src { background: var(--surface-2); color: var(--muted); }
.sv-tag.add { background: var(--accent-soft); color: var(--accent-text); }
.sv-tag.core { background: rgb(10 132 255 / 0.24); color: #8cc8ff; }
.sv-q { font-size: 12px; color: var(--muted); }
.sv-a { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.45; }
.sv-checks { align-self: stretch; list-style: none; padding: 0; display: grid; gap: .28rem; }
.sv-checks li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding-left: 1.2rem;
  font-size: 12.5px;
  color: var(--text);
}
.sv-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--orange);
}
.sv-checks li.done::before { background: var(--green); box-shadow: none; }
.sv-checks li.done::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 7px;
  margin-top: -5px;
  border: solid var(--surface);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(40deg);
}
.sv-facts { align-self: stretch; list-style: none; padding: 0; display: grid; gap: .3rem; }
.sv-facts li {
  display: grid;
  gap: 0;
  padding: .3rem .5rem .35rem .65rem;
  border-radius: 7px;
  background: var(--page);
  box-shadow: inset 3px 0 0 var(--green);
}
.sv-facts li.warn { box-shadow: inset 3px 0 0 var(--orange); }
.sv-facts b { font-size: 12.5px; font-weight: 600; color: var(--text); }
.sv-facts li > span { font-size: 11.5px; color: var(--faint); }
.sv-facts li.warn > span { color: var(--orange); font-weight: 600; }
.sv-recap { list-style: none; padding: 0; display: grid; gap: .1rem; color: var(--muted); font-size: 12.5px; }
.sv-recap li { position: relative; padding-left: .8rem; }
.sv-recap li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Interview: a video call with the compact overlay right under the webcam */
.sv-call {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.15rem .8rem .8rem;
  border-radius: 10px;
  background: #15171d;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  color: #f2f2f5;
  overflow: hidden;
}
.sv-cam {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 34px;
  height: 9px;
  margin-left: -17px;
  border-radius: 999px;
  background: #060709;
  display: grid;
  place-items: center;
}
.sv-cam i { width: 4px; height: 4px; border-radius: 50%; background: #4fd36b; box-shadow: 0 0 6px #4fd36b; }
.sv-peer {
  position: absolute;
  left: .7rem;
  bottom: .65rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 11.5px;
  font-weight: 600;
  color: #b4b7c2;
}
.sv-peer i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #8e929f 0 27%, transparent 28%), radial-gradient(circle at 50% 108%, #8e929f 0 46%, transparent 47%), #2a2d37;
}
.sv-overlay {
  width: min(100%, 25rem);
  display: grid;
  gap: .38rem;
  margin-bottom: 1.9rem;
  padding: .55rem .7rem .65rem;
  border-radius: 10px;
  background: rgb(10 12 17 / 0.82);
  border: 1px solid rgb(10 132 255 / 0.5);
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.7);
}
.sv-call .sv-q { color: #b4b7c2; }
.sv-call .sv-a { color: #f2f2f5; }
.sv-star { display: flex; flex-wrap: wrap; gap: .3rem; }
.sv-star > span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: 1px 8px 1px 3px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: #e3e5ec;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}
.sv-star b {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ff9f0a;
  color: #17181d;
  font: 700 9.5px/1 var(--sans);
}

/* The phase you point at lights up its band in the preview. */
.scene:has(.phases [data-phase="before"]:hover) .sv-before,
.scene:has(.phases [data-phase="live"]:hover) .sv-live,
.scene:has(.phases [data-phase="after"]:hover) .sv-after { background: var(--accent-soft); }

/* Act 4 · Asymmetric 12-column bento grid */
.bento {
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 56rem) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bento-card.span-7 { grid-column: span 7; }
  .bento-card.span-5 { grid-column: span 5; }
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.55rem 1.55rem 1.45rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  overflow: hidden;
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-specular) 50%, transparent);
  pointer-events: none;
}
.bento-copy, .micro-vis { position: relative; z-index: 1; }

.pillar-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .7rem; }
.pillar-head .icon {
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  padding: .38rem;
  border-radius: 9px;
  background: var(--accent-soft);
  stroke: var(--accent-text);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-card h3 { font: 600 1.14rem/1.35 var(--display); padding-top: .14rem; }
.bento-card p { color: var(--muted); font-size: .94rem; }

/* Embedded micro-visuals inside bento cards */
.micro-vis {
  padding: .9rem 1rem;
  border-radius: 12px;
  background: var(--page);
  border: 1px solid var(--edge);
}

/* Micro-visual 1: live gloss + earphone wave */
.vis-gloss { display: flex; flex-direction: column; gap: .85rem; }
.vis-gloss-sentence {
  font-size: .95rem;
  color: var(--text);
  padding-top: 1.35rem;
  line-height: 1.5;
}
.vis-phrase { color: var(--muted); }
.vis-annotated { position: relative; display: inline-block; margin-inline: .15rem; }
.vis-word {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline dotted var(--accent-text);
  text-underline-offset: 4px;
}
.vis-gloss-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 600;
}
.vis-audio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding-top: .75rem;
  border-top: 1px solid var(--edge);
  font-size: 12.5px;
}
.vis-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.vis-wave i {
  display: block;
  width: 3px;
  height: 16px;
  border-radius: 99px;
  background: var(--accent);
  transform-origin: center;
  animation: wave 1.4s ease-in-out infinite;
}
.vis-wave i:nth-child(1) { animation-delay: 0s; transform: scaleY(.45); }
.vis-wave i:nth-child(2) { animation-delay: .15s; transform: scaleY(.85); }
.vis-wave i:nth-child(3) { animation-delay: .3s; transform: scaleY(.55); }
.vis-wave i:nth-child(4) { animation-delay: .45s; transform: scaleY(1); }
.vis-wave i:nth-child(5) { animation-delay: .6s; transform: scaleY(.65); }
.vis-wave i:nth-child(6) { animation-delay: .75s; transform: scaleY(.9); }
.vis-wave i:nth-child(7) { animation-delay: .9s; transform: scaleY(.4); }
@keyframes wave {
  0%, 100% { transform: scaleY(.35); opacity: .65; }
  50% { transform: scaleY(1); opacity: 1; }
}
.vis-audio-text { color: var(--muted); font-weight: 500; }
.vis-pill {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.vis-pill.accent { background: var(--accent-soft); color: var(--accent-text); }

/* Micro-visual 2: phonetic glossary correction + speakers */
.vis-phonetic { display: flex; flex-direction: column; gap: .55rem; }
.vis-fix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
}
.vis-wrong {
  color: var(--muted);
  text-decoration: underline wavy var(--orange);
  text-underline-offset: 3px;
}
.vis-rule {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--faint);
  font: 500 11px/1.6 var(--mono);
}
.vis-right {
  position: relative;
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.vis-speakers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  padding-top: .65rem;
  border-top: 1px solid var(--edge);
}
.vis-spk {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.spk-me { background: var(--surface-2); color: var(--text); }
.spk-a { background: var(--accent-soft); color: var(--accent-text); }
.spk-b { background: var(--teal-soft); color: var(--teal); }
.vis-spk-note { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* Micro-visual 3: local OCR + AI deep-read pipeline */
.vis-ocr { display: flex; flex-direction: column; gap: .45rem; }
.vis-stage { display: flex; align-items: flex-start; gap: .6rem; }
.vis-stage-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vis-stage-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.vis-stage-dot.accent { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.vis-stage-body { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.vis-stage-body strong { color: var(--text); font-weight: 600; }
.vis-stage-body > span { color: var(--faint); font-size: 11.5px; }
.vis-stage-link {
  width: 1px;
  height: 12px;
  margin-left: 4px;
  background: var(--edge-strong);
}

/* Micro-visual 4: screen-share comparison */
.vis-stealth {
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 32rem) {
  .vis-stealth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stealth-pane { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.stealth-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.vis-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.vis-dot.ok { background: var(--green); }
.vis-dot.accent { background: var(--accent); }
.mini-deck {
  position: relative;
  min-height: 7.4rem;
  padding: .65rem .7rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.mini-deck.with-hud { border-color: var(--accent-rim); }
.mini-deck-title { width: 48%; height: 6px; border-radius: 3px; background: var(--edge-strong); }
.mini-deck-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 36px;
  margin-top: .5rem;
}
.mini-deck-bars.muted { opacity: .42; }
.mini-deck-bars i {
  display: block;
  width: 14px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.mini-deck-bars .b1 { height: 14px; opacity: .55; }
.mini-deck-bars .b2 { height: 24px; opacity: .75; }
.mini-deck-bars .b3 { height: 19px; opacity: .65; }
.mini-deck-bars .b4 { height: 34px; }
.stealth-tag {
  align-self: flex-start;
  margin-top: .45rem;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.stealth-tag.ok { background: var(--green-soft); color: var(--green); }
.mini-hud {
  position: absolute;
  inset: 1.55rem .45rem .45rem .45rem;
  padding: .38rem;
  border-radius: 8px;
  background: rgb(15 17 22 / 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(10 132 255 / 0.5);
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
}
.mini-hud-q {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .24rem .42rem;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.06);
  color: #d4d7e0;
  font-size: 11px;
  line-height: 1.3;
}
.mini-hud-q.active {
  background: rgb(10 132 255 / 0.22);
  color: #fff;
}
.hud-id {
  font: 700 10px/1 var(--mono);
  color: #7ac0ff;
  flex-shrink: 0;
}
.hud-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Six controls, divided by hairlines */
.more-features { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.sub-heading { font: 600 1.05rem/1.4 var(--display); color: var(--text); margin-bottom: 1.15rem; }
.more-grid {
  display: grid;
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 40rem) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-item {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  transition: background-color .2s var(--ease-out);
}
.more-item:hover { background: var(--surface-elevated); }
.more-item dt {
  display: flex;
  align-items: center;
  gap: .48rem;
  font: 600 .96rem/1.4 var(--display);
  color: var(--text);
  margin-bottom: .35rem;
}
.more-item dt .mini-icon { color: var(--accent-text); }
.more-item dd { color: var(--muted); font-size: .91rem; line-height: 1.6; }

/* Act 5 · Four editions */
.editions {
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 48rem) {
  .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.edition {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.55rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  overflow: hidden;
}
.edition.featured {
  box-shadow: inset 0 0 0 1px var(--accent-rim);
  background:
    radial-gradient(28rem 14rem at 50% -15%, var(--accent-soft), transparent 70%),
    var(--surface-elevated);
}
.edition.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  pointer-events: none;
}
.edition.planned {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--edge-strong);
}
.edition-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.edition h3 { font: 700 1.15rem/1.35 var(--display); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .77rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge.accent { background: var(--accent); color: #fff; }
.badge.ready { background: var(--green-soft); color: var(--green); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.badge.planned { background: var(--orange-soft); color: var(--orange); }
.edition-platforms {
  margin-top: .45rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--faint);
}
.edition > p:not(.edition-platforms):not(.edition-foot) {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .94rem;
  flex: 1;
}
.edition-foot {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--edge);
  font-size: .87rem;
  color: var(--muted);
}
.edition-foot a:not(.button) { font-weight: 600; }
.edition-foot .button { margin: 0 .6rem .35rem 0; }
.muted-note { display: block; margin-top: .3rem; color: var(--faint); font-size: .82rem; }

/* Comparison matrix */
.matrix-wrap {
  margin-top: 1.85rem;
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: var(--card);
  overflow-x: auto;
  scrollbar-color: var(--edge-strong) transparent;
}
.matrix {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: .895rem;
  text-align: left;
}
.matrix caption {
  padding: .95rem 1.2rem .75rem;
  text-align: left;
  font: 600 .96rem/1.4 var(--display);
  color: var(--text);
  border-bottom: 1px solid var(--edge);
}
.matrix th, .matrix td {
  padding: .82rem 1.05rem;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
  line-height: 1.5;
}
.matrix tbody tr { transition: background-color .15s ease; }
.matrix tbody tr:hover { background: var(--surface-2); }
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix thead th { font-weight: 600; color: var(--text); background: var(--page); font-size: .85rem; }
.matrix tbody th { font-weight: 600; color: var(--text); width: 23%; }
.matrix td { color: var(--muted); }
.matrix .col-featured { background: var(--accent-soft); color: var(--text); font-weight: 500; }
.matrix thead .col-featured { color: var(--accent-text); font-weight: 700; }
.dash { color: var(--faint); }

/* Act 6 · Three-route optical data flow */
.data-flow {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1.2rem 1.35rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
  display: grid;
  gap: .85rem;
  align-items: center;
}
@media (min-width: 54rem) {
  .data-flow {
    grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1.25fr) 2.6rem minmax(0, 1.35fr);
    gap: .75rem;
  }
}
.flow-node {
  padding: .8rem 1rem;
  border-radius: 12px;
  background: var(--page);
  border: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.flow-local { border-color: var(--edge-strong); box-shadow: inset 0 1px 0 var(--edge-specular); }
.flow-kicker { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.flow-node strong { font-size: .92rem; font-weight: 600; color: var(--text); }
/* A beam with a pulse of light travelling toward the next stop. */
.flow-connector {
  position: relative;
  height: 20px;
  width: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--edge-strong);
  overflow: hidden;
}
.flow-connector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent) 50%, transparent);
  animation: beam-y 2.4s linear infinite;
}
.flow-connector.split::after { animation-delay: 1.2s; }
@keyframes beam-y { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes beam-x { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (min-width: 54rem) {
  .flow-connector { width: 100%; height: 2px; }
  .flow-connector::after {
    background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
    animation-name: beam-x;
  }
}
.flow-routes { display: flex; flex-direction: column; gap: .45rem; }
.flow-route {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .75rem;
  border-radius: 9px;
  background: var(--page);
  border: 1px solid var(--edge);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}
.route-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.flow-route.device .route-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.flow-route.service .route-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flow-route.trial .route-dot { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }

/* The three places */
.places { display: grid; gap: 1.15rem; margin-top: 1.15rem; }
@media (min-width: 48rem) { .places { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.place {
  padding: 1.35rem 1.45rem 1.4rem;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.place-name { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; margin-bottom: .6rem; }
.place-name i { width: .68rem; height: .68rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.place.service .place-name i { background: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.place.trial .place-name i { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.place ul { list-style: none; padding: 0; display: grid; gap: .5rem; color: var(--muted); font-size: .925rem; line-height: 1.6; }

.fine { color: var(--faint); font-size: .87rem; margin-top: 1rem; }
.fine.center { text-align: center; max-width: 46rem; margin: 1.65rem auto 0; }

/* Act 7 · Trial form */
.trial-grid { display: grid; gap: 2.25rem; align-items: start; }
@media (min-width: 56rem) { .trial-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); } }
.trial-steps {
  list-style: none;
  padding: 0;
  margin-top: 1.3rem;
  display: grid;
  gap: .55rem;
  counter-reset: step;
  color: var(--muted);
  font-size: .95rem;
}
.trial-steps li { counter-increment: step; display: grid; grid-template-columns: 1.55rem minmax(0, 1fr); gap: .65rem; align-items: baseline; }
.trial-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: .8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trial-existing {
  margin-top: 1.35rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  padding: .65rem .95rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--edge);
  font-size: .92rem;
  color: var(--muted);
}
.inline-cta { font-weight: 600; }
.apply {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: 1.6rem;
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.apply::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-rim) 50%, transparent);
  pointer-events: none;
}
.apply label { font-weight: 600; font-size: .93rem; }
.apply label:not(:first-child) { margin-top: .55rem; }
.apply input[type="email"], .apply select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0 .85rem;
  border-radius: 10px;
  border: 1px solid var(--edge-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .16s var(--ease-out);
}
.apply input[type="email"]:hover, .apply select:hover { border-color: var(--accent-rim); }
.apply input[type="email"]::placeholder { color: var(--faint); }
.apply input[aria-invalid="true"], .apply select[aria-invalid="true"] { border-color: var(--red); }
.apply .consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: .885rem;
  color: var(--muted);
  margin: .75rem 0 .45rem;
}
.apply .consent input { margin-top: .28rem; width: 1.05rem; height: 1.05rem; flex-shrink: 0; accent-color: var(--accent); }
.apply .button { width: 100%; margin-top: .3rem; }
.apply-status { min-height: 1.4em; font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.apply-status[data-tone="ok"] { color: var(--green); font-weight: 600; }
.apply-status[data-tone="error"] { color: var(--red); }

/* FAQ */
#faq details { border-bottom: 1px solid var(--edge); }
#faq details:first-of-type { margin-top: 1.85rem; border-top: 1px solid var(--edge); }
#faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.08rem .15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color .16s var(--ease-out);
}
#faq summary:hover { color: var(--accent-text); }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "";
  flex-shrink: 0;
  width: .52rem;
  height: .52rem;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s var(--ease-out);
}
#faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
#faq details p { padding: 0 .15rem 1.18rem; color: var(--muted); font-size: .95rem; }

/* Footer */
.foot { padding: 2.1rem 0 2.6rem; border-top: 1px solid var(--edge); color: var(--faint); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Privacy notice page */
.doc { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.doc h1 { font-size: clamp(1.85rem, 3.8vw, 2.5rem); margin-bottom: .55rem; }
.doc h2 { font: 600 1.18rem/1.4 var(--display); margin: 2.1rem 0 .5rem; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2rem; margin: .45rem 0 0; }
.doc .updated { color: var(--faint); font-size: .9rem; }

@media (max-width: 47.99rem) {
  .nav { display: none; }
  .nav-mobile { display: block; }
  .brand .mark { width: 2.25rem; }
  html { scroll-padding-top: 6.5rem; }
  .lang-strip { justify-content: flex-start; }
  .scene-tab { padding: .5rem .8rem; font-size: .9rem; }
}
@media (max-width: 39.99rem) {
  /* Comparison stays a quick scan on phones: the older ways become three plain
     rows, each read as one line, and only Gloss keeps its card. */
  .compare { gap: .65rem; }
  .cat-card:not(.is-gloss) {
    padding: 0 .15rem .65rem;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border-bottom: 1px solid var(--edge);
  }
  .cat-card:not(.is-gloss) .cat-list { display: block; margin-top: .2rem; }
  .cat-card:not(.is-gloss) .cat-list li { display: inline; padding-left: 0; }
  .cat-card:not(.is-gloss) .cat-list li::before { content: none; }
  .cat-card:not(.is-gloss) .cat-list li:not(:last-child)::after { content: "；"; margin-right: -.3em; }
  html[data-lang="en"] .cat-card:not(.is-gloss) .cat-list li:not(:last-child)::after { content: ";"; margin-right: 0; }
}
@media (max-width: 23rem) {
  .top-actions .button.small { padding: 0 .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-reveal [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
