/* Theme model: the visitor chooses between two complete palettes.
   :root carries the night palette, whose accent family is measured from the
   brand asset (violet #5A43FA to blue #4471FA, pale #9BBAF6); it is also the
   default while <html> has no data-theme attribute. :root[data-theme="light"]
   swaps in the light palette. The choice is persisted and applied before first
   paint by /site/theme-init.js. prefers-color-scheme is deliberately NOT
   consulted: the operating system must never silently override an explicit
   visitor choice, and a first visit always starts on the night palette. */

/* Scriptless fallback only. theme-init.js always writes data-theme before the
   first paint, so the rules below own the reached palette; this block can only
   influence a visitor who has not been given a choice yet, and it never carries
   palette tokens. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}

:root {
  color-scheme: light dark;
  --bg: #111820;
  --surface: #18232c;
  --surface-soft: #202d37;
  --surface-raised: #1c2832;
  --text-1: #eef3f5;
  --text-2: #a6b4bd;
  --action: #96baf6;
  --action-strong: #aecbff;
  --action-ink: #111820;
  --live: #67a9a1;
  --border: #34434e;
  --border-strong: #53636e;
  --focus: #aecbff;
  --danger: #ff9aa6;
  --warning: #e0c37a;
  /* Ambient layer: the logo violet rises behind the Hero on the night canvas.
     Atmosphere only, never an interactive accent. */
  --ambient-layer:
    radial-gradient(62% 50% at 74% 17%, color-mix(in srgb, #5a43fa 12%, transparent), transparent 72%),
    radial-gradient(52% 44% at 12% 6%, color-mix(in srgb, #4471fa 8%, transparent), transparent 70%);
  /* The copy scrim keeps its own vertical envelope. The veil is a canvas
     gradient that crosses the screenshot, so it needs a soft top and bottom
     edge even though the screenshot itself does not. This is the scrim's mask,
     never the screenshot's. */
  --copy-scrim-mask-y: linear-gradient(180deg,
    transparent 0%,
    rgb(0 0 0 / .05) 1.5%,
    rgb(0 0 0 / .16) 4%,
    rgb(0 0 0 / .34) 8%,
    rgb(0 0 0 / .56) 13%,
    rgb(0 0 0 / .78) 19%,
    #000 28%,
    #000 66%,
    rgb(0 0 0 / .78) 76%,
    rgb(0 0 0 / .56) 84%,
    rgb(0 0 0 / .34) 90%,
    rgb(0 0 0 / .16) 95%,
    rgb(0 0 0 / .05) 98%,
    transparent 100%);
  --glass-edge: color-mix(in srgb, #fff 14%, transparent);
  --panel-shadow: 0 30px 80px color-mix(in srgb, #000 52%, transparent);
  --max: 1180px;
  --page-gutter: 32px;
  --section-y: 86px;
  --section-y-compact: 58px;
  --surface-pad: 28px 30px;
  --content-editorial: 980px;
  --touch-min: 44px;
  --touch-gap: 8px;
  --radius-control: 14px;
  --radius-surface: 20px;
  --radius-media: 28px;
  --radius-sheet: 32px;
  /* Type scale. One source for the public site: headings, body and the
     editorial lead all read from these tokens instead of repeating clamps.
     Display weight is 600, tracking never tighter than -0.025em, and public
     body copy never drops below 16px. */
  --type-display: clamp(2.4rem, 5vw, 3.9rem);
  --type-title: clamp(2.5rem, 5.2vw, 4.4rem);
  --type-statement: clamp(1.9rem, 3.4vw, 3.1rem);
  --type-h2: clamp(1.6rem, 2.7vw, 2.2rem);
  --type-h3: 1.08rem;
  --type-lead: clamp(1.06rem, 1.6vw, 1.22rem);
  --type-body: 1rem;
  --type-sm: 0.88rem;
  --type-xs: 0.8rem;
  --leading-display: 1.12;
  --leading-heading: 1.24;
  --leading-snug: 1.35;
  --leading-body: 1.66;
  --leading-relaxed: 1.75;
  /* Tonal band: sections are separated by a surface tone, not by a rule. */
  --band-surface: color-mix(in srgb, var(--surface-soft) 66%, var(--bg));
  /* Control boundaries: on the light palette a quiet separator is too faint to
     read as a control, so the light branch uses the secondary ink instead. */
  --control-border: var(--border-strong);
  --duration-press: 160ms;
  --duration-ui: 190ms;
  --duration-drawer: 260ms;
  --motion-reveal-duration: 500ms;
  --motion-reveal-distance: 16px;
  --motion-reveal-stagger: 64ms;
  --motion-sheen-duration: 820ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-emphasized-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  /* Home cover: the aurora veil fills the first viewport and the page-turn
     hands the visitor to the homepage. The veil palette is measured from the
     brand asset alone (blue #4472FB 225, pale #9BBFFA 218, violet #655BFA
     244). The violet end stays atmosphere; every control keeps the blue side. */
  --nav-height: 66px;
  --motion-cover-turn: 640ms;
  --cover-canvas: #0a1017;
  --cover-canvas-top: #131f3a;
  --cover-veil-cyan: #38bdf8;
  --cover-veil-blue: #4472fb;
  --cover-veil-pale: #9bbffa;
  --cover-veil-violet: #655bfa;
  /* The navigation band of the cover is painted in the plain canvas colour and
     the aurora is masked to rise from under it, so navigation plus cover can
     never show a shade step at the header edge on either palette. */
  --cover-top-band: linear-gradient(180deg, var(--bg) 0, var(--bg) var(--nav-height), transparent calc(var(--nav-height) + 168px));
  --cover-top-mask: linear-gradient(180deg, transparent 0, transparent var(--nav-height), #000 calc(var(--nav-height) + 168px));
  --cover-control-bg: color-mix(in srgb, var(--surface) 86%, transparent);
  --cover-control-border: color-mix(in srgb, var(--text-2) 82%, transparent);
  --cover-scrim:
    radial-gradient(58% 44% at 50% 44%, color-mix(in srgb, var(--bg) 74%, transparent) 0%, color-mix(in srgb, var(--bg) 44%, transparent) 46%, transparent 74%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 46%, transparent) 0%, transparent 22%, transparent 68%, color-mix(in srgb, var(--bg) 42%, transparent) 100%);
  --cover-text-shadow: 0 1px 20px color-mix(in srgb, var(--bg) 78%, transparent), 0 0 40px color-mix(in srgb, var(--bg) 48%, transparent);
  --cover-mark-glow: drop-shadow(0 0 18px color-mix(in srgb, var(--cover-veil-blue) 40%, transparent)) drop-shadow(0 0 40px color-mix(in srgb, var(--cover-veil-violet) 28%, transparent));
  --font-display: "Avenir Next", "Hiragino Sans GB", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Avenir Next", "Hiragino Sans GB", "PingFang SC", "Noto Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font: var(--font-body);
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    /* Atmosphere: the acoustic field, the measured authority-approved source.
       These values are the ones tuned for that bright asset on the night canvas. */
    --atmosphere-image: url("/site/art/generated/lumina-acoustic-field-v2-1672.jpg");
    --atmosphere-filter: brightness(.3) saturate(.66);
    --atmosphere-opacity: .58;
    --page-atmosphere-opacity: .34;
    --page-atmosphere-filter: none;
}

/* The light palette is only reachable through the visitor's explicit choice,
   persisted by /site/theme-init.js. */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-soft: #eaf0f2;
  --surface-raised: #f9fbfc;
  --text-1: #16324a;
  --text-2: #5b6d7a;
  --action: #2f647f;
  --action-strong: #27546b;
  --action-ink: #ffffff;
  --live: #2d746c;
  --border: #d8e1e6;
  --border-strong: #b8c7cf;
  --focus: #2f647f;
  --danger: #a53c49;
  --warning: #7a5a16;
  --ambient-layer: none;
  --band-surface: color-mix(in srgb, var(--surface-soft) 84%, var(--bg));
  --control-border: color-mix(in srgb, var(--text-2) 78%, transparent);
  --cover-canvas: #eef3f9;
  --cover-canvas-top: #dbe6f6;
  --cover-veil-cyan: #6cc4f2;
  --cover-veil-blue: #7d9bfb;
  --cover-veil-pale: #b9cdfe;
  --cover-veil-violet: #9a92fc;
  --cover-control-bg: color-mix(in srgb, var(--surface) 92%, transparent);
  --cover-control-border: color-mix(in srgb, var(--text-2) 82%, transparent);
  /* The light veil keeps the same composition, so its scrim is a tighter
     envelope around the lockup: the night scrim's wide radial washed the whole
     middle of the bright canvas toward white. */
  --cover-scrim:
    radial-gradient(36% 26% at 50% 45%, color-mix(in srgb, var(--bg) 70%, transparent) 0%, color-mix(in srgb, var(--bg) 38%, transparent) 48%, transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 34%, transparent) 0%, transparent 20%, transparent 70%, color-mix(in srgb, var(--bg) 30%, transparent) 100%);
  --cover-mark-glow: drop-shadow(0 12px 26px color-mix(in srgb, var(--cover-veil-violet) 30%, transparent));
  --glass-edge: color-mix(in srgb, #fff 74%, transparent);
  --panel-shadow: 0 30px 80px color-mix(in srgb, var(--text-1) 13%, transparent);
    --atmosphere-filter: contrast(1.2) saturate(.92);
    --atmosphere-opacity: .68;
    --page-atmosphere-opacity: .24;
    --page-atmosphere-filter: none;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background-color: var(--bg);
  background-image: var(--ambient-layer);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 150vh;
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: var(--font-body); }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--action); text-underline-offset: 0.18em; }
button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--action) 18%, transparent);
}
button { color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3 { color: var(--text-1); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--type-display); line-height: var(--leading-display); margin-bottom: 22px; }
h2 { font-size: var(--type-h2); line-height: var(--leading-heading); margin-bottom: 14px; }
h3 { font-size: var(--type-h3); line-height: var(--leading-snug); margin-bottom: 8px; letter-spacing: -0.018em; }
p { color: var(--text-2); text-wrap: pretty; }
::selection { background: var(--action); color: var(--surface); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.mono, code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { overflow-wrap: anywhere; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 9px 12px;
  transition: transform var(--duration-ui) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  /* One nav surface for the whole site: the home's 92% alpha, no blur. Alpha
     compositing is cheap; backdrop-filter recomputes every frame. */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
/* Home pulls the cover under the sticky header, so the shared --border hairline
   would draw a bright one-pixel line across that seam (measured adjacent step
   +41 night / -23 light). Home drops the line and ends the header in a short
   gradient fade instead: invisible over the cover's own canvas band, a soft
   edge once the page scrolls under the header. Other routes keep the separator. */

/* One shell measure for the whole public site: the container keeps the home's
   max-width and owns the gutter as inline padding, so content edges sit at
   162/1278 (1116 content) at 1440 like the landing page does. */
.page, .nav-inner, .footer-inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.nav-inner {
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-1);
  font-size: 1.06rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { width: 30px; height: 30px; border-radius: 0; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; overscroll-behavior: contain; }
.nav-links > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.nav-links > a[aria-current="page"] { color: var(--text-1); background: var(--surface-soft); }
/* The navigation download entry is an outlined control: the page keeps exactly
   one solid primary per screen, and the navigation never supplies one. */
.nav-links .nav-cta { margin-left: 8px; padding: 0 15px; background: var(--surface); color: var(--text-1); border: 1px solid var(--control-border); }
/* Login sits at the far right, a hairline sibling of the CTA. */
.nav-login {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out);
}
.menu-button, .menu-backdrop { display: none; }

/* Palette switcher. The markup and its ARIA live in every page; theme-init.js
   adds the "js" class before first paint, so a scriptless visitor never sees a
   control that cannot change anything. */
.theme-switch {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  gap: 9px;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  padding: 0 11px 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out);
}
html.js .theme-switch { display: inline-flex; }
/* One identical switch on both palettes: a 36x20 track and a 16px thumb that
   only changes position, plus the visible state word, so the control can never
   read as a hollow pill in one palette and a filled pill in the other. */
.theme-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-2) 46%, var(--surface-soft));
  transition: background-color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out);
}
.theme-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-1);
  transition: transform var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out);
}
.theme-switch-track { border-color: var(--control-border); }
.theme-switch[aria-checked="true"] .theme-switch-track { border-color: var(--action); background: var(--action); }
.theme-switch[aria-checked="true"] .theme-switch-thumb { transform: translateX(16px); background: var(--action-ink); }
.theme-switch[aria-checked="true"] .theme-switch-label { color: var(--text-1); }

.page { margin: 0 auto; }
.section { padding-block: var(--section-y); }
.section.compact { padding-block: var(--section-y-compact); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head p { margin-bottom: 0; max-width: 66ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, .share-actions button, .compat-check > button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  /* 24px line box at 0.98rem: reproduces the home button's `normal` leading so
     anchors and <button>s land on the same measured 48px geometry. */
  line-height: 1.53;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out), background-color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out), opacity var(--duration-ui) var(--ease-out);
}
.button-primary, .compat-check > button, .share-actions button:first-child { background: var(--action); color: var(--action-ink); }
.button-secondary { background: var(--surface); color: var(--text-1); border-color: var(--control-border); }
.button:active { transform: scale(0.97); }
.share-actions button:active, .compat-check > button:active { transform: scale(0.985); }
button:disabled { cursor: not-allowed; opacity: 0.52; }

/* Home cover: the aurora veil fills the first viewport. The section is pulled
   under the sticky navigation so navigation plus cover equal one viewport {
  position: relative;
  display: grid;
  min-height: 100svh;
  margin-top: calc(-1 * var(--nav-height));
  background-image: var(--cover-top-band), linear-gradient(180deg, color-mix(in srgb, var(--cover-veil-violet) 16%, var(--cover-canvas)) 0%, var(--cover-canvas) 46%);
}
/* The turn keeps the plane opaque and lets the rotation carry it: the page
   pivots on its bottom hinge while the scroll lifts it away {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  transform-origin: 50% 100%;
  transition: transform var(--motion-cover-turn) var(--ease-emphasized-out);
}
/* The aurora rises from under the navigation band instead of meeting it on a
   hard horizontal edge: the first --nav-height pixels stay plain canvas, then
   the veil fades in. Both palettes compose from their own --bg {
  -webkit-mask-image: var(--cover-top-mask);
  mask-image: var(--cover-top-mask);
}
/* The light fallback keeps the same arc, just denser: a pale wash is not a
   composition {
  background:
    radial-gradient(120% 78% at 18% 112%, color-mix(in srgb, var(--cover-veil-cyan) 52%, transparent), transparent 62%),
    radial-gradient(92% 66% at 74% 108%, color-mix(in srgb, var(--cover-veil-pale) 40%, transparent), transparent 64%),
    radial-gradient(130% 62% at 50% -6%, color-mix(in srgb, var(--cover-veil-violet) 46%, transparent), transparent 68%),
    linear-gradient(to top, var(--cover-canvas) 0%, var(--cover-canvas-top) 58%, var(--cover-canvas) 100%);
}
/* The continue control sits on the veil { border-color: var(--cover-control-border); }
/* On the light palette the veil below carries real colour, so the quiet ink is
   not enough to stay legible: the meta line { color: var(--text-1); }

/* Section reveals are gated by site.js: a target only receives
   data-motion-reveal after the visitor scrolls and only while it is still
   below the viewport, so an unscrolled page, a static capture, print or no-JS
   always paint every section (see DESIGN.md §13). */
.motion-ready [data-motion-reveal] {
  opacity: 0;
  transform: translateY(var(--motion-reveal-distance));
  transition: opacity var(--motion-reveal-duration) var(--ease-emphasized-out), transform var(--motion-reveal-duration) var(--ease-emphasized-out);
  /* 入场同样是 transform+opacity；动画结束由 site.js 置 auto 回收，不常驻。 */
  will-change: opacity, transform;
}
.motion-ready [data-motion-reveal][data-motion-order="1"] { transition-delay: var(--motion-reveal-stagger); }
.motion-ready [data-motion-reveal][data-motion-order="2"] { transition-delay: calc(var(--motion-reveal-stagger) * 2); }
.motion-ready [data-motion-reveal][data-motion-order="3"] { transition-delay: calc(var(--motion-reveal-stagger) * 3); }
.motion-ready [data-motion-reveal][data-motion-order="4"] { transition-delay: calc(var(--motion-reveal-stagger) * 4); }
.motion-ready [data-motion-reveal="visible"] { opacity: 1; transform: translateY(0); }


.resource-filters button {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-2);
  padding: 8px 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color var(--duration-ui) var(--ease-out), color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.resource-filters button[aria-pressed="true"] { background: color-mix(in srgb, var(--action) 12%, var(--surface)); color: var(--text-1); border-color: var(--action); }
.resource-filters button:active { transform: scale(0.985); }
.proof-lines { border-top: 1px solid var(--border); }
.proof-lines > div { display: grid; grid-template-columns: minmax(140px, .28fr) 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.proof-lines p { margin: 0; max-width: 62ch; }
.story-sequence { list-style: none; padding: 0; margin: 0; counter-reset: story; }
.story-sequence li { padding: 22px 0 28px 46px; border-bottom: 1px solid var(--border); position: relative; }
.story-sequence li::before { counter-increment: story; content: counter(story); position: absolute; left: 0; top: 23px; font-family: var(--mono); color: var(--text-2); font-size: .82rem; }
.story-sequence p { margin: 5px 0 0; }
.context-list { border-top: 1px solid var(--border); }
.context-list article { display: grid; grid-template-columns: minmax(230px, .65fr) 1fr; gap: 30px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--border); }
.context-list article div { display: flex; justify-content: space-between; gap: 16px; }
.context-list article span { color: var(--text-2); font-size: .8rem; }
.context-list article p { margin: 0; max-width: 58ch; }
.scenario-notes article { padding: 17px 0; border-bottom: 1px solid var(--border); }
.scenario-notes p { margin: 5px 0 0; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; }
.boundary-grid article { border-top: 2px solid var(--border-strong); padding: 20px 0 0; }
.boundary-grid article > span { color: var(--text-2); font-size: .82rem; font-weight: 700; }
.boundary-grid h3 { font-size: 1.22rem; max-width: 31em; margin-top: 8px; }
.boundary-grid ul { margin-bottom: 0; padding-left: 20px; color: var(--text-2); }
.start-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 20px; }
.quiet-cta { display: flex; justify-content: space-between; align-items: center; gap: 34px; margin-bottom: 54px; border: 1px solid var(--border); border-radius: var(--radius-media); background: color-mix(in srgb, var(--surface) 78%, transparent); }
.quiet-cta .button { flex: 0 0 auto; }
.section.compact.quiet-cta { padding: var(--surface-pad); width: min(100%, var(--content-editorial)); }
.quiet-cta h2 { font-size: 1.7rem; margin-bottom: 7px; }
.quiet-cta p { margin: 0; }

/* The home section rail: the long page marks the section the visitor is
   reading. It is a page-level index (the same "本页目录" vocabulary the article
   and legal routes use), so the global navigation stays identical on all 25
   routes and the rail never becomes a second main menu. */
.page-rail {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}
.page-rail::-webkit-scrollbar { display: none; }
.page-rail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out);
}
.page-rail a[aria-current="true"] { color: var(--text-1); background: var(--surface-soft); }

/* Home evidence: each line names its basis { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: var(--type-xs); letter-spacing: 0.06em; color: var(--text-2); }

/* Home pricing: the whole confirmed catalog renders in one scroll { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 22px 24px; margin-bottom: 26px; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: grid; align-content: start; gap: 12px; padding: 24px 22px; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); }
.plan > * { margin: 0; }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-kicker { font-size: var(--type-xs); letter-spacing: 0.06em; color: var(--text-2); }
.plan-badge { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--action); color: var(--action-ink); font-size: var(--type-xs); font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 1.16rem; }
.plan-unit { font-size: var(--type-sm); color: var(--text-2); }
.plan-unit .mono { color: var(--text-1); }
.plan .button { width: 100%; }

/* Download dialog: the real product contract behind the download entry. The
   markup ships as a native <dialog> so it is inert until a visitor opens it,
   and every trigger keeps a working href for the no-script case. */
dialog.download-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--surface); color: var(--text-1); box-shadow: var(--panel-shadow); }
dialog.download-dialog::backdrop { background: color-mix(in srgb, var(--bg) 76%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Interactive example: scenario tabs swap the caption, question and answer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* Shared internal public routes */
.page-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 72px; align-items: start; margin-top: 28px; padding: 56px clamp(22px, 4vw, 48px); border: 1px solid var(--border); border-radius: var(--radius-media); overflow: hidden; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--page-atmosphere-opacity);
  filter: var(--page-atmosphere-filter);
  background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 84%, transparent) 48%, transparent 100%), var(--atmosphere-image) center / cover no-repeat;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero-copy { max-width: 760px; }
.page-hero-copy h1 { font-size: var(--type-title); }
.page-hero-copy p { font-size: 1.08rem; max-width: 62ch; }
.page-hero-copy .actions { margin-top: 25px; }
.page-index { border-top: 1px solid var(--border-strong); padding-top: 13px; }
.page-index > strong { color: var(--text-2); font-size: .8rem; }
.page-index ol { margin: 12px 0 0; padding-left: 22px; color: var(--text-2); }
.page-index li { padding: 4px 0; }
.editorial-row, .security-row, .help-row, .case-row { display: grid; grid-template-columns: minmax(150px, .28fr) 1fr; gap: 34px; padding: 34px 0; border-top: 1px solid var(--border); }
.row-kicker { color: var(--text-2); font-size: .78rem; font-weight: 700; padding-top: 6px; }
.row-body { max-width: 760px; }
.row-body p { max-width: 66ch; }
.fact-list, .permission-list { list-style: none; padding: 0; margin: 25px 0 0; border-top: 1px solid var(--border); }
.fact-list li, .permission-list li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.fact-list span, .permission-list span { color: var(--text-2); }
.quote-line { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.2; color: var(--text-1); max-width: 20em; }
.evidence-note { max-width: 650px; border-left: 2px solid var(--border-strong); padding-left: 18px; }
.evidence-note p { margin: 5px 0 0; }
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; border-top: 1px solid var(--border); }
.flow-item { padding: 19px 0; border-bottom: 1px solid var(--border); }
.flow-item p { margin: 4px 0 0; }
.callout { background: var(--surface-soft); border-radius: var(--radius-media); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.callout h2 { font-size: 1.55rem; margin-bottom: 7px; }
.callout p { margin-bottom: 0; max-width: 62ch; }
.callout-centered { align-items: flex-start; }
.status-slab { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }

/* Download and compatibility */
.download-route-visual, .download-visual, .permission-visual { border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--surface); padding: 22px; }
.release-version { font-family: var(--mono); color: var(--text-2); }
.compat-check, .share-preview { border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--surface); padding: 26px; }
.compat-results { margin-top: 20px; border-top: 1px solid var(--border); }
.compat-result { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.share-preview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 30px; }
.share-preview-copy p { max-width: 62ch; }
.share-boundary { font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.share-actions button:not(:first-child) { background: var(--surface); border-color: var(--border-strong); color: var(--text-1); }
.share-status { margin: 12px 0 0; font-size: .88rem; }
.share-preview-frame { min-height: 300px; border-radius: var(--radius-control); overflow: hidden; background: var(--surface-soft); border: 1px solid var(--border); display: grid; place-items: center; position: relative; }
.share-preview-frame video { width: 100%; height: 100%; object-fit: contain; background: #0d141b; }
.share-preview-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 4px; text-align: center; padding: 20px; color: var(--text-2); }

/* Resources and Read mode */
.read-page .page, .resources-page .page { max-width: var(--max); }
.resources-hero { padding: 64px 0 44px; }
.resources-heading { max-width: 650px; margin-bottom: 34px; }
.resources-heading h1 { font-size: var(--type-title); margin-bottom: 12px; }
.resource-editorial-lead { border-top: 1px solid var(--border); }
.resource-featured-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; padding: 28px 0; text-decoration: none; color: inherit; }
.resource-hero-media { background: var(--surface-soft); border-radius: var(--radius-media); min-height: 230px; padding: 22px; display: flex; align-items: center; }
.resource-hero-media > img { display: none; }
.resource-hero-flow { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.resource-hero-flow span { border: 1px solid var(--border-strong); border-radius: var(--radius-control); padding: 15px; color: var(--text-1); background: var(--surface); }
.resource-hero-copy { align-self: center; }
.resource-hero-copy > span, .resource-kind { color: var(--text-2); font-size: .78rem; font-weight: 700; }
.resource-hero-copy h2 { font-size: 2rem; margin: 8px 0 10px; }
.resource-hero-copy strong { color: var(--action); }
.resource-article-strip { display: grid; grid-template-columns: 1.4fr .9fr .9fr; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.resource-article-strip a { padding: 17px 16px 18px 0; color: inherit; text-decoration: none; }
.resource-article-strip a + a { border-left: 1px solid var(--border); padding-left: 16px; }
.resource-article-strip span { display: block; color: var(--text-2); font-size: .78rem; margin-bottom: 4px; }
.resource-toolbar { display: grid; grid-template-columns: minmax(230px, .65fr) 1.35fr; gap: 24px; align-items: end; }
.search-field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; }
.search-field input { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); padding: 9px 12px; background: var(--surface); color: var(--text-1); font-size: 16px; }
.resource-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--touch-gap); }
[data-resource-count] { margin: 18px 0 10px; font-size: .86rem; }
.resource-grid { border-top: 1px solid var(--border); }
.resource-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--border); transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out); }
.resource-item.is-entering { opacity: 0; transform: translateY(10px); transition: none; }
.resource-item h2 { font-size: 1.18rem; margin-bottom: 6px; }
.resource-item p { margin: 0; max-width: 62ch; }
.resource-item > a { min-height: var(--touch-min); display: inline-flex; align-items: center; font-weight: 700; white-space: nowrap; }
.resource-empty { margin-top: 20px; padding: 24px; background: var(--surface-soft); border-radius: var(--radius-surface); }
.resource-empty p { margin-bottom: 0; }
.legal-shell { display: grid; grid-template-columns: minmax(190px, .42fr) minmax(0, 1.3fr) minmax(0, .22fr); gap: 46px; padding: 64px 0 90px; }
.legal-aside { position: sticky; top: 96px; align-self: start; font-size: .9rem; }
.legal-aside > strong { display: block; margin-bottom: 7px; }
.legal-aside p { font-size: .86rem; }
.legal-toc { display: grid; border-top: 1px solid var(--border); margin-top: 18px; }
.legal-toc a { padding: 11px 0; border-bottom: 1px solid var(--border); text-decoration: none; font-size: .86rem; }
.legal-copy { min-width: 0; max-width: 72ch; }
.legal-copy h1 { font-size: var(--type-title); }
.legal-copy h2 { font-size: 1.45rem; margin: 46px 0 12px; scroll-margin-top: 92px; }
.legal-copy p, .legal-copy li { line-height: 1.75; }
.article-shell .legal-copy { max-width: 68ch; }
.related-resources { display: grid; gap: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; margin: 42px 0 24px; }
.related-resources a { min-height: var(--touch-min); display: inline-flex; align-items: center; }

/* Pricing */
.pricing-stage { padding: 66px 0 50px; }
.pricing-intro { max-width: 720px; margin-bottom: 34px; }
.pricing-eyebrow { color: var(--text-2); font-size: .82rem; font-weight: 700; }
.pricing-intro h1 { font-size: var(--type-title); margin-top: 8px; }
.pricing-decision-board { border-top: 1px solid var(--border); padding-top: 24px; }
.pricing-control-deck { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.pricing-control-deck .pricing-pending-note { margin: 0; }
.pricing-state { background: var(--surface-soft); border-radius: var(--radius-surface); padding: 14px 16px; }
.pricing-state p { margin: 3px 0 0; font-size: .82rem; }
.pricing-plan-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.pricing-plan { border: 1px solid var(--border); border-radius: var(--radius-media); background: var(--surface); padding: 23px; display: grid; align-content: start; gap: 12px; transition: border-color var(--duration-ui) var(--ease-out), background-color var(--duration-ui) var(--ease-out); }
.pricing-plan[data-pricing-plan="local"], .pricing-plan[data-pricing-plan="trial"] { grid-column: span 3; background: var(--surface-soft); }
.pricing-plan[data-pricing-plan="basic"], .pricing-plan[data-pricing-plan="standard"], .pricing-plan[data-pricing-plan="pro"], .pricing-plan[data-pricing-plan="flagship"] { grid-column: span 2; }
.pricing-plan[data-pricing-plan="standard"] { border-color: var(--action); background: color-mix(in srgb, var(--action) 7%, var(--surface)); }
.pricing-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pricing-plan-badge { background: var(--action); color: var(--action-ink); border-radius: var(--radius-control); padding: 2px 9px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.pricing-plan h2 { font-size: 2rem; margin: 4px 0 0; }
.pricing-plan-kicker { color: var(--text-2); font-size: .78rem; font-weight: 700; }
.pricing-plan-unit { margin: 0; font-weight: 700; color: var(--text-2); }
.pricing-plan > p { margin: 0; }
.pricing-plan ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.pricing-card-state { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.pricing-pending-note { font-size: .86rem; margin: 14px 0 0; }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-surface); background: var(--surface); }
.comparison-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--border); vertical-align: top; }
.comparison-table th { color: var(--text-1); }

/* FAQ, empty and pending */
.faq { width: min(100%, var(--content-editorial)); display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-surface); background: color-mix(in srgb, var(--surface) 72%, transparent); padding: 0 20px; }
.faq summary { cursor: pointer; list-style-position: inside; min-height: var(--touch-min); padding: 16px 4px; color: var(--text-1); font-weight: 690; }
.faq summary::marker { color: var(--text-2); }
.faq details p { margin: -2px 4px 20px; max-width: 66ch; }
.faq details::details-content {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out), content-visibility var(--duration-ui) allow-discrete;
  transition-behavior: allow-discrete;
}
.faq details[open]::details-content { opacity: 1; transform: translateY(0); }
@starting-style {
  .faq details[open]::details-content { opacity: 0; transform: translateY(-4px); }
}
.empty-state, .start-shell { margin: 68px 0 90px; max-width: 760px; padding: 34px; background: var(--surface-soft); border-radius: var(--radius-media); }
.section .empty-state { margin-block: 0; }
.empty-state h2, .start-shell h1 { max-width: 15em; }
.principles { border-top: 1px solid var(--border); }
.principle { padding: 22px 0; border-bottom: 1px solid var(--border); }
.principle h2 { font-size: 1.35rem; }
.principle p { margin-bottom: 0; max-width: 66ch; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 38px 0 6px; }
.footer-inner { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 58px; }
.footer-brand p { max-width: 34ch; font-size: .88rem; margin-top: 7px; }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-group { display: grid; align-content: start; gap: 7px; }
.footer-group strong { font-size: .78rem; color: var(--text-2); margin-bottom: 2px; }
.footer-group a { display: inline-flex; align-items: center; min-height: var(--touch-min); min-width: var(--touch-min); color: var(--text-2); text-decoration: none; font-size: .88rem; }
.footer-group a[aria-current="page"] { color: var(--text-1); font-weight: 700; }

@media (hover: hover) and (pointer: fine) {
  .nav-links > a:hover, .resource-filters button:hover { background: var(--surface-soft); color: var(--text-1); }
  .nav-login:hover { background: var(--surface-raised); border-color: var(--action); color: var(--text-1); }
  .theme-switch:hover { color: var(--text-1); border-color: var(--text-2); }
  .button-primary:hover, .compat-check > button:hover, .share-actions button:first-child:hover { background: var(--action-strong); }
  .button-secondary:hover { background: var(--surface-raised); border-color: var(--action); transform: scale(1.03); }
  .button-primary:hover { transform: scale(1.03); }
  .button-primary:hover::after { opacity: 1; }
  .button-primary:active { transform: scale(0.97); }
  .footer-group a:hover, .resource-item > a:hover { color: var(--text-1); }
  .pricing-plan { position: relative; overflow: clip; }
  .pricing-plan::after {
    content: "";
    position: absolute;
    inset: -55% auto -55% -90%;
    width: 65%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 8%, color-mix(in srgb, var(--action) 14%, transparent) 48%, transparent 88%);
    transform: translateX(-180%) skewX(-16deg);
    opacity: 0;
    transition: transform var(--motion-sheen-duration) var(--ease-emphasized-out), opacity var(--duration-ui) var(--ease-out);
  }
  .pricing-plan:hover::after { transform: translateX(260%) skewX(-16deg); opacity: 1; }
}

@media (max-width: 1024px) {
  :root { --page-gutter: 24px; }
  .page-hero { gap: 40px; }
  .legal-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .legal-shell > :last-child:empty { display: none; }
  .resource-toolbar { grid-template-columns: 1fr; }
  .resource-filters { justify-content: flex-start; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .share-preview { grid-template-columns: 1fr; gap: 34px; }
  .boundary-grid, .start-layout { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; gap: 28px; }
  .page-index { max-width: 620px; }
  .resource-featured-hero { grid-template-columns: 1fr; }
  .resource-article-strip { grid-template-columns: 1fr; }
  .resource-article-strip a + a { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .pricing-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-plan[data-pricing-plan] { grid-column: auto; }
}

@media (max-width: 767px) {
  :root {
      /* Compact branch: the 960 derivative of the same acoustic field. */
      --atmosphere-image: url("/site/art/generated/lumina-acoustic-field-v2-960.jpg");
    --page-gutter: 18px;
    --section-y: 62px;
    --section-y-compact: 46px;
    --surface-pad: 22px 20px;
    --nav-height: 64px;
  }
  html { scroll-padding-top: 78px; }
  .site-nav { height: 64px; }
  .menu-button {
    order: 2;
    margin-left: 0;
    min-width: 48px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--text-1);
    font: inherit;
    font-weight: 680;
  }
  .theme-switch { order: 1; margin-left: auto; }
  .nav-inner { gap: 10px; }
  .nav-login { order: 1; }
  .menu-backdrop { display: block; position: fixed; inset: 64px 0 0; background: color-mix(in srgb, #000 34%, transparent); opacity: 0; pointer-events: none; transition: opacity var(--duration-drawer) var(--ease-drawer); }
  .menu-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    width: min(340px, 92vw);
    height: calc(100dvh - 64px);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--touch-gap);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 55px color-mix(in srgb, #000 16%, transparent);
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: clip-path var(--duration-drawer) var(--ease-drawer), opacity var(--duration-drawer) var(--ease-drawer), visibility 0s linear var(--duration-drawer);
  }
  .nav-links[data-open="true"] {
    clip-path: inset(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: clip-path var(--duration-drawer) var(--ease-drawer), opacity var(--duration-drawer) var(--ease-drawer), visibility 0s linear 0s;
  }
  .nav-links > a { min-height: 48px; padding-inline: 14px; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .page-rail { top: 64px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .quiet-cta .button { width: 100%; }
  .proof-lines > div, .context-list article, .editorial-row, .security-row, .help-row, .case-row { grid-template-columns: 1fr; gap: 8px; }
  .context-list article div { display: block; }
  .context-list article span { display: block; margin-top: 4px; }
  .story-sequence li { padding-left: 38px; }
  .page-hero { margin-top: 18px; padding: 42px 22px 38px; }
  .page-hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.9rem); }
  .pricing-intro h1 { font-size: clamp(2.45rem, 12vw, 3.9rem); }
  .fact-list li, .permission-list li, .compat-result { grid-template-columns: 1fr; gap: 4px; }
  .flow { grid-template-columns: 1fr; }
  .callout, .quiet-cta { align-items: flex-start; flex-direction: column; }
  .share-preview-frame { min-height: 230px; }
  .resources-hero { padding-top: 48px; }
  .resource-hero-media { min-height: 180px; }
  .resource-grid { border-top: 0; }
  .resource-item { grid-template-columns: 1fr; gap: 8px; }
  .resource-item > a { white-space: normal; }
  .resource-kind { margin-bottom: 2px; }
  .legal-shell { grid-template-columns: 1fr; gap: 26px; padding-top: 48px; }
  .legal-aside { position: static; }
  .legal-copy h1 { font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .pricing-control-deck { grid-template-columns: 1fr; }
  .pricing-plan-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-group { gap: var(--touch-gap); }
  .footer-group a { min-height: var(--touch-min); }
}

@media (max-width: 390px) {
  :root { --page-gutter: 16px; --surface-pad: 20px 18px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .resource-hero-flow { grid-template-columns: 1fr; }
  .resource-filters button { min-height: 44px; }
  .footer-groups { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .skip-link, .nav-links, .menu-backdrop, .button, .resource-filters button, .page-rail a { transition-duration: 0.01ms !important; }
  .theme-switch, .theme-switch-thumb { transition-duration: 0.01ms !important; }
  .pricing-state, .pricing-plan, .resource-item { transition-duration: 0.01ms !important; }
  .resource-item.is-entering { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-motion-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; transition-duration: 0.01ms !important; }
  .faq details::details-content { transition-duration: 0.01ms !important; }
  .pricing-plan::after { opacity: 0 !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav, .page-rail { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav { background: var(--bg); }
  .page-rail { background: var(--bg); }
  dialog.download-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
