/* ============================================================================
   FlashStory — flashstory.ft07.com
   Aesthetic: film-slate industrial. Charcoal, clapper stripes, timecode mono,
   one amber signal colour, and the product's six identity hues as punctuation.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}

/* ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --sans: 'Archivo', var(--cjk);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --c-red: #e0312e;  --c-green: #2e9e44; --c-blue: #2456d6;
  --c-yellow: #f2c200; --c-magenta: #d6259e; --c-cyan: #17b0b8;

  --wrap: 1180px;
  --r: 14px;
  --dur: 6s;                 /* master loop of the hero animation */
}

:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-2: #101217;
  --panel: #15171d;
  --panel-2: #1b1e25;
  --line: #23262e;
  --line-2: #2e323c;
  --text: #eceef2;
  --sub: #a5abb7;
  --muted: #737a88;
  --amber: #ffb02e;
  --amber-2: #ff8a00;
  --on-amber: #17130a;
  --stripe: #e6e9ed;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.85);
  --glow: radial-gradient(60% 60% at 20% 30%, rgba(255,176,46,.16), transparent 70%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ee;
  --bg-2: #eeebe5;
  --panel: #ffffff;
  --panel-2: #faf8f5;
  --line: #e0dbd2;
  --line-2: #cfc9be;
  --text: #16171b;
  --sub: #4e535d;
  --muted: #7d838f;
  --amber: #c47800;
  --amber-2: #a85f00;
  --on-amber: #fffaf0;
  --stripe: #1b1c20;
  --shadow: 0 20px 44px -26px rgba(30,25,15,.35);
  --glow: radial-gradient(60% 60% at 20% 30%, rgba(255,176,46,.24), transparent 70%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* language switching — both languages are in the DOM for SEO + zero flash */
:root[data-lang="en"] .zh, :root[data-lang="zh"] .en { display: none; }
:root[data-lang="zh"] body { line-height: 1.85; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
:root[data-theme="light"] .grain { opacity: .16; mix-blend-mode: multiply; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }

/* ── shared type ──────────────────────────────────────────────────────── */
.label {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 1.1rem;
}
.label::before { content: "▸ "; opacity: .65; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.022em; }
:root[data-lang="zh"] h1, :root[data-lang="zh"] h2, :root[data-lang="zh"] h3 {
  font-weight: 700; letter-spacing: -.005em;
}
h2 { font-size: clamp(1.85rem, 3.5vw, 2.9rem); line-height: 1.12; margin: 0 0 1.4rem; text-wrap: balance; }
:root[data-lang="zh"] h2 { line-height: 1.3; }
.section-title { max-width: 20ch; margin-bottom: 3rem; }
:root[data-lang="zh"] .section-title { max-width: 30ch; }
.body { color: var(--sub); margin: 0 0 1.1rem; max-width: 56ch; }
.body em { font-style: italic; color: var(--text); }

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .82rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .18s, border-color .18s, box-shadow .18s;
}
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  color: var(--on-amber);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--amber) 70%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--amber) 75%, transparent); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: color-mix(in srgb, var(--panel) 60%, transparent); }
.btn-ghost:hover { border-color: var(--amber); transform: translateY(-2px); }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.badge-soon {
  font-family: var(--mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .16rem .42rem; border-radius: 4px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.cta-stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-row.center { justify-content: center; }
.cta-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.cta-note a, .link-arrow { color: var(--amber); border-bottom: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.cta-note a:hover, .link-arrow:hover { border-bottom-color: var(--amber); }

/* ── top bar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .7rem max(1.25rem, calc((100vw - var(--wrap)) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.03em; font-size: 1.06rem; }
.brand img { border-radius: 8px; }
.topnav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .92rem; color: var(--sub); }
.topnav a { position: relative; padding: .2rem 0; }
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--amber); transition: right .25s ease;
}
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { right: 0; }
.topbar-actions { display: flex; align-items: center; gap: .55rem; }
.toggle {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em;
  background: transparent; color: var(--sub); border: 1px solid var(--line);
  border-radius: 8px; padding: .42rem .6rem; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .18s, border-color .18s;
}
.toggle:hover { color: var(--text); border-color: var(--line-2); }
.toggle.icon-only { width: 33px; height: 29px; padding: 0; }
:root[data-theme="dark"] .ico-sun, :root[data-theme="light"] .ico-moon { display: none; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 3rem; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 120%; background: var(--glow); pointer-events: none; }
.hero-inner {
  position: relative;
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.02fr 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.5rem; padding: .35rem .7rem .35rem .55rem;
  border: 1px solid var(--line); border-radius: 999px;
}
.dot-rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-red) 18%, transparent);
  animation: blink 1.8s steps(1, end) infinite;
}
@keyframes blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: .25 } }

.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 4.6rem);
  font-variation-settings: 'wght' 800, 'wdth' 92;
  line-height: 1.02; margin: 0 0 1.5rem; letter-spacing: -.035em;
}
/* CJK glyphs are ~1em wide, so the same point size overflows the column —
   step the headline down and tighten the label tracking. */
:root[data-lang="zh"] .hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.35; letter-spacing: -.01em;
}
:root[data-lang="zh"] .eyebrow { letter-spacing: .08em; }
:root[data-lang="zh"] .label { letter-spacing: .1em; }
.hero-title .u {
  background: linear-gradient(90deg, var(--amber), var(--amber-2)) left bottom / 100% .075em no-repeat;
  padding-bottom: .1em;
}
.lede { font-size: clamp(1.02rem, 1.35vw, 1.16rem); color: var(--sub); margin: 0; max-width: 50ch; }

.trust {
  position: relative;
  width: min(100% - 2.5rem, var(--wrap)); margin: clamp(3rem, 6vw, 5rem) auto 0;
  list-style: none; padding: 1rem 0 0; border-top: 1px solid var(--line);
  display: grid; gap: .8rem 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
:root[data-lang="zh"] .trust { font-family: var(--sans); letter-spacing: .04em; font-size: .84rem; text-transform: none; }
.trust li::before { content: "◦ "; color: var(--amber); }

/* ── hero stage (the animated schematic) ──────────────────────────────── */
.stage-frame {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow); overflow: hidden;
}
.stage-hud {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .8rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}
.hud-l { display: inline-flex; align-items: center; gap: .5rem; }
.hud-r { color: var(--amber); }
.stage-svg { display: block; width: 100%; aspect-ratio: 640 / 380; color: var(--text); }

.floor path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .13; }
.cam-path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 5 6; }
.cam-path-lit {
  fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw var(--dur) cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes draw { 0% { stroke-dashoffset: 620 } 70%, 100% { stroke-dashoffset: 0 } }

.figure .head, .figure .torso, .figure .leg { fill: currentColor; }
.figure .shadow { fill: #000; opacity: .3; }
:root[data-theme="light"] .figure .shadow { opacity: .13; }
.fig-a { color: var(--c-red); animation: sway 4.5s ease-in-out infinite; }
.fig-b { color: var(--c-cyan); animation: sway 5.4s ease-in-out infinite reverse; }
.figure .torso { filter: brightness(.92); }
@keyframes sway {
  0%, 100% { transform: translate(252px, 196px) }
  50% { transform: translate(268px, 190px) }
}
.fig-b { animation-name: sway-b; }
@keyframes sway-b {
  0%, 100% { transform: translate(408px, 214px) }
  50% { transform: translate(396px, 218px) }
}

.cam {
  offset-path: path("M128 300 A 202 172 0 0 1 532 300");
  offset-rotate: auto;
  animation: ride var(--dur) cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes ride { 0% { offset-distance: 0% } 70%, 100% { offset-distance: 100% } }
/* The path is a dolly arc centred on the cast, so a fixed quarter-turn keeps
   the lens pointed at them for the whole move. */
.cam-body { transform: rotate(90deg); }
.frustum { fill: var(--amber); opacity: .2; }
.cam-box { fill: var(--panel); stroke: var(--amber); stroke-width: 1.8; }
.cam-lens { fill: var(--amber); }
.brackets path { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .28; }

.stage-timeline {
  position: relative; border-top: 1px solid var(--line);
  padding: .5rem .8rem .8rem; background: color-mix(in srgb, var(--panel-2) 80%, transparent);
}
.tl-ruler { display: flex; justify-content: space-between; height: 9px; margin-bottom: .45rem; }
.tl-ruler span { width: 1px; background: var(--line-2); }
.tl-ruler span:nth-child(3n+1) { background: var(--muted); height: 9px; }
.tl-track {
  position: relative; height: 20px; margin-top: 4px; border-radius: 4px;
  background: color-mix(in srgb, var(--line) 55%, transparent);
}
.tl-label {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); z-index: 2;
}
.kf {
  position: absolute; top: 50%; width: 8px; height: 8px; margin-left: -4px;
  transform: translateY(-50%) rotate(45deg); background: var(--text); border-radius: 1px; z-index: 3;
}
.kf.c-red { background: var(--c-red) } .kf.c-cyan { background: var(--c-cyan) }
.clip {
  position: absolute; top: 4px; bottom: 4px; border-radius: 3px; opacity: .3;
  background: currentColor;
}
.clip.c-red { color: var(--c-red) } .clip.c-cyan { color: var(--c-cyan) }
.playhead {
  position: absolute; top: 6px; bottom: 6px; width: 1.5px; background: var(--amber);
  box-shadow: 0 0 8px color-mix(in srgb, var(--amber) 70%, transparent);
  animation: sweep var(--dur) cubic-bezier(.5,0,.5,1) infinite;
}
.playhead::before {
  content: ""; position: absolute; top: -1px; left: -3.5px;
  border: 4px solid transparent; border-top-color: var(--amber);
}
@keyframes sweep { 0% { left: 3% } 70%, 100% { left: 96% } }

/* ── clapper divider ──────────────────────────────────────────────────── */
.clapper {
  height: 11px; border-block: 1px solid var(--line);
  background: repeating-linear-gradient(115deg,
    var(--stripe) 0 20px, transparent 20px 40px);
  opacity: .8;
}
:root[data-theme="light"] .clapper { opacity: .55; }

/* ── sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 7.5vw, 6.2rem) 0; }
.two-col { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.05fr .95fr; } }

/* problem */
.problem { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.prompt-card {
  margin: 0; padding: 1.6rem; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--panel); box-shadow: var(--shadow); position: relative;
}
.prompt-card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--c-red), var(--amber), var(--c-cyan));
}
.prompt-card blockquote {
  margin: 0 0 1.4rem; font-size: 1.16rem; line-height: 2.5; color: var(--text);
}
.prompt-card mark {
  background: none; color: inherit; position: relative;
  border-bottom: 1.5px dashed color-mix(in srgb, var(--amber) 70%, transparent);
}
.prompt-card mark::after {
  content: attr(data-q); position: absolute; left: 0; top: 100%; margin-top: 3px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .04em;
  color: var(--amber); white-space: nowrap;
}
:root[data-lang="zh"] .prompt-card mark::after { font-family: var(--sans); }
.prompt-foot { margin: 0; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }

/* bento */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } .card.wide { grid-column: span 2; } }
@media (min-width: 1060px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card {
  --c: var(--amber);
  position: relative; padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); overflow: hidden;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.8,.3,1);
}
.card::after {
  content: ""; position: absolute; inset: auto auto 0 0; height: 2px; width: 0;
  background: var(--c); transition: width .35s cubic-bezier(.2,.8,.3,1);
}
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-3px); }
.card:hover::after { width: 100%; }
.card-no {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
  color: var(--muted); display: block; margin-bottom: .9rem;
}
.card:hover .card-no { color: var(--c); }
.card h3 { font-size: 1.14rem; margin: 0 0 .55rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--sub); font-size: .95rem; line-height: 1.7; }
.card.alt { background: linear-gradient(135deg, var(--panel-2), var(--panel)); }
.swatches { display: flex; gap: .45rem; margin-top: 1.2rem; }
.swatches i { width: 15px; height: 15px; border-radius: 4px; background: var(--s); }

/* workflow */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.6rem; grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .steps li { padding-top: 2.2rem; }
  .steps li::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line-2);
  }
  .steps li::after {
    content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 11px; background: var(--amber);
  }
}
.steps li { position: relative; }
.step-no {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; color: var(--amber);
  display: block; margin-bottom: .7rem;
}
.steps h3 { font-size: 1.22rem; margin: 0 0 .5rem; }
.steps p { margin: 0; color: var(--sub); font-size: .95rem; }

/* export bundle */
.bundle-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.tree {
  border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow); font-family: var(--mono);
}
.tree-head {
  padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 80%, transparent);
  font-size: .82rem; color: var(--text); letter-spacing: .02em;
}
.tree-head::before { content: "▣ "; color: var(--amber); }
.tree ul { list-style: none; margin: 0; padding: .7rem 0 .9rem; }
.tree li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
  padding: .42rem 1rem .42rem 2.1rem; position: relative; font-size: .82rem;
}
.tree li::before {
  content: "├─"; position: absolute; left: 1rem; color: var(--line-2);
}
.tree li:last-child::before { content: "└─"; }
.tree code { color: var(--text); }
.tree li span { color: var(--muted); font-family: var(--sans); font-size: .84rem; margin-left: auto; }
:root[data-lang="zh"] .tree li span { font-size: .82rem; }
.tree li:hover code { color: var(--amber); }

/* ── the AI shortcut, sitting right under the manual four steps ───────── */
.shortcut {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: grid; gap: 2rem; align-items: start; grid-template-columns: 1fr;
}
@media (min-width: 980px) { .shortcut { grid-template-columns: .95fr 1.05fr; gap: 3rem; } }
.label.alt { color: var(--muted); }
.label.alt::before { content: "↘ "; color: var(--amber); opacity: 1; }
.shortcut h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.18; margin: 0 0 1.2rem;
  letter-spacing: -.03em;
}
:root[data-lang="zh"] .shortcut h3 { line-height: 1.36; letter-spacing: -.01em; }
.shortcut h3 .hl {
  background: linear-gradient(90deg, var(--amber), var(--amber-2)) left bottom / 100% .09em no-repeat;
  padding-bottom: .08em;
}
.shortcut p { margin: 0 0 1rem; color: var(--sub); font-size: .97rem; }

.term-wrap {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
}
.term-head {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .9rem; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 75%, transparent);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
:root[data-lang="zh"] .term-head { font-family: var(--sans); letter-spacing: .06em; text-transform: none; font-size: .78rem; }
.term {
  margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto;
  font-family: var(--mono); font-size: .8rem; line-height: 1.85; color: var(--sub);
}
.term b { color: var(--text); font-weight: 500; }
.term i { color: var(--amber); font-style: normal; }
.term s { color: var(--c-green); text-decoration: none; }
:root[data-theme="dark"] .term s { color: #46c463; }
.term u { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--line-2); }

.guarantees {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; gap: .55rem; grid-template-columns: 1fr;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
:root[data-lang="zh"] .guarantees { font-family: var(--sans); font-size: .84rem; letter-spacing: .03em; text-transform: none; }
.guarantees li::before { content: "✓ "; color: var(--amber); }

/* install */
.install-steps {
  list-style: none; margin: 0; padding: 0; counter-reset: istep;
}
.install-steps li {
  position: relative; padding: 0 0 1.3rem 2.6rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line); counter-increment: istep;
}
.install-steps li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.install-steps li::before {
  content: counter(istep, decimal-leading-zero);
  position: absolute; left: 0; top: .15rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; color: var(--amber);
}
.install-steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.install-steps p { margin: 0; color: var(--sub); font-size: .94rem; }
.install-steps code, .install-notes code {
  font-family: var(--mono); font-size: .88em;
  background: color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 4px; padding: .1em .35em;
}
.install-notes {
  grid-column: 1 / -1; margin-top: .5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.install-notes p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 82ch; }
.install-notes strong { color: var(--sub); }

/* privacy */
.privacy-sec .huge {
  font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02;
  font-variation-settings: 'wght' 800, 'wdth' 88; letter-spacing: -.04em;
  margin-bottom: 2.6rem;
}
:root[data-lang="zh"] .privacy-sec .huge { line-height: 1.2; letter-spacing: -.02em; }
.privacy-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); gap: 2.4rem; } }
.privacy-grid h3 { font-size: 1.02rem; margin: 0 0 .5rem; }
.privacy-grid h3::before { content: "▪"; color: var(--amber); margin-right: .5rem; }
.privacy-grid p { margin: 0; color: var(--sub); font-size: .93rem; }

/* faq */
details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
details summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: .9rem; letter-spacing: -.015em;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "+"; font-family: var(--mono); font-weight: 400; color: var(--amber);
  width: 20px; flex: none; transition: transform .25s;
}
details[open] summary::before { content: "−"; }
details p { margin: .8rem 0 .2rem 1.9rem; color: var(--sub); font-size: .96rem; }
details p em { color: var(--text); font-style: italic; }

/* finale */
.finale {
  position: relative; padding: clamp(4rem, 9vw, 7rem) 0; text-align: center;
  background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden;
}
.finale::before {
  content: ""; position: absolute; inset: auto 0 -60% 0; height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 70%);
}
.finale .wrap { position: relative; }
.finale h2 {
  font-size: clamp(2.2rem, 6vw, 4rem); font-variation-settings: 'wght' 800, 'wdth' 90;
  letter-spacing: -.04em; margin-bottom: 0;
}
:root[data-lang="zh"] .finale h2 { letter-spacing: -.01em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2.2rem 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.footer-brand img { border-radius: 6px; }
.ver { font-family: var(--mono); font-size: .74rem; font-weight: 400; color: var(--muted); }
.footer-links { display: flex; gap: 1.4rem; margin-left: auto; }
.footer-links a:hover { color: var(--amber); }
.footer-note { margin: 0; width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ── scroll reveal ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── content pages (privacy) ──────────────────────────────────────────── */
.page { padding: clamp(3rem, 7vw, 5rem) 0 5rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6rem; letter-spacing: -.035em; }
.page .meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .08em; margin: 0 0 2.6rem; }
.page h2 { font-size: 1.3rem; margin: 2.6rem 0 .9rem; }
.page h3 { font-size: 1.05rem; margin: 1.8rem 0 .6rem; }
.page p, .page li { color: var(--sub); }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: .5rem; }
.page strong { color: var(--text); }
.page table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .92rem; }
.page th, .page td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.page td { color: var(--sub); }
.page .callout {
  border-left: 2px solid var(--amber); background: var(--panel);
  padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.6rem 0;
}
.page .callout p { margin: 0; color: var(--text); }
.table-scroll { overflow-x: auto; }

/* ── motion / a11y ────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cam { offset-distance: 62%; }
  .cam-path-lit { stroke-dashoffset: 180; }
  .playhead { left: 62%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .brand-name { display: none; }
  .prompt-card blockquote { font-size: 1.05rem; line-height: 2.4; }
}
