:root {
  color-scheme: light;
  --c-bg: #fbfaf8;
  --c-panel: #ffffff;
  --c-panel-2: #f4f2ee;
  --c-soft: #f8f7f4;
  --c-code: #f7f5f1;
  --c-bezel: #f2f0ec;
  --c-border: #e9e6e1;
  --c-border-strong: #dcd7cf;
  --c-sketch: #e2dbd0;
  --c-bar: #ece9e4;
  --c-accent: #e46f44;
  --c-accent-dark: #b9532c;
  --c-accent-tint: rgba(228, 111, 68, .14);
  --c-accent-glow: rgba(228, 111, 68, .22);
  --c-indigo: #6a6fd1;
  --c-indigo-ink: #5055a8;
  --c-indigo-tint: rgba(106, 111, 209, .10);
  --c-success: #3f9a6a;
  --c-success-ink: #287448;
  --c-success-tint: rgba(63, 154, 106, .13);
  --c-warn: #b7791f;
  --c-warn-ink: #855716;
  --c-error: #c4473a;
  --c-text: #2f3237;
  --c-muted: #6b6e74;
  --c-faint: #a2a4a9;
  --c-on-accent: #ffffff;
  --c-clear: transparent;
  --c-veil: rgba(47, 50, 55, .18);

  --shadow-near: 0 2px 6px rgba(47, 50, 55, .06);
  --shadow-far: 0 40px 80px rgba(47, 50, 55, .10);
  --shadow-float: 0 4px 12px rgba(47, 50, 55, .08), 0 28px 60px rgba(47, 50, 55, .15);
  --shadow-btn: 0 1px 2px rgba(185, 83, 44, .20), 0 10px 22px rgba(228, 111, 68, .22);
  --shadow-card: 0 2px 6px rgba(47, 50, 55, .05), 0 24px 48px rgba(47, 50, 55, .08);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-device: 18px;
  --r-section: 36px;
  --r-shot: 10px;
  --r-pill: 999px;
  --r-circle: 50%;

  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-title: 500;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-nav: .9375rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;
  --text-h3: 1.25rem;
  --text-h2: 1.875rem;
  --text-hero: clamp(34px, 3.4vw, 48px);
  --track-title: -.025em;
  --track-cjk: -.02em;
  --line-body: 1.7;

  --gutter: 40px;
  --width-page: 1200px;
  --width-reading: 800px;
  --width-header: 1280px;
  --space-section: 160px;
  --header-height: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --time-fast: .2s;
  --time-reveal: .65s;
  --focus-width: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-normal);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, summary, a { -webkit-tap-highlight-color: var(--c-accent-tint); }
button { border: 0; }
img { max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
:focus-visible {
  outline: var(--focus-width) solid var(--c-accent-dark);
  outline-offset: 4px;
}
::selection { background: var(--c-accent-tint); color: var(--c-text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-title);
  letter-spacing: var(--track-title);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: break-word;
}
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3,
:lang(zh-TW) h1, :lang(zh-TW) h2, :lang(zh-TW) h3,
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: var(--track-cjk); }
h1 { font-size: var(--text-hero); line-height: 1.18; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin-top: 0; }
strong, b { font-weight: var(--weight-title); }
code, pre, .mono { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  white-space: pre;
}
pre code { overflow-wrap: normal; word-break: normal; }
:where(main, article, section, aside, .wrap, .prose, .card, .panel, .grid) > * { min-width: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--width-page) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--width-reading) + var(--gutter) * 2); }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-heading { text-align: center; margin-bottom: 36px; }
.section-title { margin: 0; font-size: var(--text-h2); }
.section-sub { max-width: 560px; margin: 12px auto 0; color: var(--c-muted); }
.keep { white-space: nowrap; }
.muted { color: var(--c-muted); }
.text-link { color: var(--c-accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  transform: translateY(-150%);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text);
  border: 1px solid var(--c-accent);
}
.skip-link:focus { transform: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 26px;
  border: 1.5px solid var(--c-clear);
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  font-weight: var(--weight-title);
  letter-spacing: -.005em;
  text-align: center;
  transition: background-color var(--time-fast) var(--ease), transform var(--time-fast) var(--ease), border-color var(--time-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-primary.is-hover { background: var(--c-accent-dark); color: var(--c-on-accent); }
.btn-ghost, .btn-outline {
  border-color: var(--c-text);
  background: var(--c-clear);
  color: var(--c-text);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--c-panel); color: var(--c-text); }
.btn-outline { min-height: 42px; font-size: var(--text-nav); padding: 8px 20px; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--c-panel-2);
  color: var(--c-muted);
  border-color: var(--c-border-strong);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn.is-focus { outline: var(--focus-width) solid var(--c-accent-dark); outline-offset: 4px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.card {
  padding: 32px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-section);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
}
.card > :last-child { margin-bottom: 0; }
.panel-surface {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-section);
  background: var(--c-panel-2);
  color: var(--c-text);
  overflow-x: clip;
}
.panel-surface::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.grid { display: grid; gap: 24px; }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; margin-bottom: 16px; }
.prose p, .prose ul, .prose ol { margin-bottom: 24px; }
.prose li + li { margin-top: 8px; }
.prose a:not(.btn):not(.app-store-button) { text-decoration: underline; text-underline-offset: 4px; }
.prose pre {
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-code);
  color: var(--c-text);
  font-size: var(--text-sm);
}
.decorated, .hero { position: relative; overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--time-reveal) var(--ease), transform var(--time-reveal) var(--ease);
}
.reveal-ready .reveal.shown { opacity: 1; transform: none; }

/* 页头独立宽版心，不复用正文阅读宽度。 */
#site-header { position: relative; z-index: 50; }
.topbar {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: min(100%, calc(var(--width-header) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: var(--text-body);
  font-weight: var(--weight-title);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  border: 1px solid var(--c-border);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-near);
}
.brand-name { white-space: nowrap; }
.nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }
.nav-link, .nav-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: var(--text-nav);
  background: var(--c-clear);
  color: var(--c-text);
  border: 0;
  white-space: nowrap;
}
.nav-link:hover, .nav-more-btn:hover, .nav-link[aria-current="page"],
.nav-more-btn.is-current { background: var(--c-panel-2); color: var(--c-text); }
.nav-caret { width: 10px; height: 10px; color: var(--c-muted); }
.nav-menu, .language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-card);
  z-index: 5;
}
.nav-menu-label { display: block; padding: 6px 10px 4px; font-size: var(--text-xs); color: var(--c-muted); }
.nav-menu a, .language-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: var(--text-nav);
}
.nav-menu a:hover, .language-menu a:hover,
.language-menu a[aria-current="true"] { background: var(--c-soft); color: var(--c-text); }
.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-muted);
  font-size: var(--text-nav);
  white-space: nowrap;
}
.lang-btn svg { width: 15px; height: 15px; }
.language-short { display: none; }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-panel);
  color: var(--c-text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 40;
  background: var(--c-veil);
  color: var(--c-text);
}
.preview-more { position: relative; }
.preview-more > summary { list-style: none; }
.preview-more > summary::-webkit-details-marker { display: none; }
.preview-mobile { display: none; }

/* 页脚 */
.site-footer {
  margin-top: var(--space-section);
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--c-border);
  background: var(--c-panel-2);
  color: var(--c-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1.2fr .7fr;
  gap: 48px;
}
.footer-brand p { max-width: 340px; margin: 20px 0 0; color: var(--c-muted); font-size: var(--text-nav); }
.footer-title { margin: 0 0 16px; font-size: var(--text-body); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding-top: 5px; padding-bottom: 5px; color: var(--c-muted); font-size: var(--text-nav); }
.footer-links a:hover { color: var(--c-accent-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-strong);
  color: var(--c-muted);
  font-size: var(--text-sm);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* 拍板首屏：浅底、圈注、横屏手册装置与橙框核对卡。 */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero { padding: 52px 24px 0; text-align: center; }
.hero-copy { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-muted);
  font-size: var(--text-sm);
}
.eyebrow-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: var(--r-circle);
  background: var(--c-success);
  color: var(--c-text);
  flex-shrink: 0;
}
.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--r-circle);
  background: var(--c-success-tint);
  color: var(--c-text);
  animation: breathe 2.8s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(.6); opacity: .25; }
  50% { transform: scale(1.25); opacity: 1; }
}
.hero-title { margin: 22px 0 0; font-size: var(--text-hero); isolation: isolate; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark-ring {
  position: absolute;
  left: -.52em;
  top: -.38em;
  width: calc(100% + 1.04em);
  height: calc(100% + .7em);
  z-index: -1;
  color: var(--c-sketch);
  overflow: visible;
  pointer-events: none;
}
.cta-row { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.lead { max-width: 640px; margin: 22px auto 0; color: var(--c-muted); }
.lead strong {
  color: var(--c-text);
  background: linear-gradient(180deg, var(--c-clear) 64%, var(--c-accent-tint) 64%);
  padding-inline: 1px;
}
.device-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--c-muted);
  font-size: var(--text-sm);
}
.device-row li, .device-row a { display: inline-flex; align-items: center; gap: 7px; }
.device-row a { min-height: 30px; }
.device-row a:hover { color: var(--c-accent-dark); }
.device-row svg { width: 18px; height: 18px; color: var(--c-text); opacity: .72; }
.store-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-panel);
  color: var(--c-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-title);
}
.stage {
  position: relative;
  z-index: 1;
  width: 1040px;
  max-width: calc(100vw - 64px);
  margin: 56px auto 0;
  perspective: 2400px;
  text-align: left;
}
.ipad {
  position: relative;
  aspect-ratio: 1040 / 740;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-device);
  background: linear-gradient(180deg, var(--c-panel), var(--c-bezel));
  color: var(--c-text);
  box-shadow: inset 0 0 0 2px var(--c-panel), var(--shadow-near), var(--shadow-far);
  transform: rotateX(2deg);
  transform-origin: 50% 100%;
}
.ipad::before {
  content: "";
  position: absolute;
  top: 5px;
  left: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: var(--r-circle);
  background: var(--c-border-strong);
  color: var(--c-text);
}
.screen {
  height: 100%;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-panel);
  color: var(--c-text);
  overflow: hidden;
}
.device-toc { padding: 28px 16px; border-right: 1px solid var(--c-border); background: var(--c-soft); color: var(--c-text); }
.device-toc-title { padding-inline: 10px; font-size: var(--text-sm); font-weight: var(--weight-title); }
.device-toc-label { margin: 22px 0 8px; padding-inline: 10px; font-size: var(--text-xs); color: var(--c-muted); }
.device-toc-list { list-style: none; margin: 0; padding: 0; }
.device-toc-list li { padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--text-sm); color: var(--c-muted); }
.device-toc-list .is-current { background: var(--c-panel-2); color: var(--c-text); font-weight: var(--weight-title); }
.doc { padding: 30px 56px 40px; min-width: 0; }
.doc-crumb { font-size: var(--text-xs); color: var(--c-muted); }
.tag-indigo {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 18px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--c-indigo-tint);
  color: var(--c-indigo-ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.doc-title { margin: 12px 0 0; font-size: 23px; font-weight: var(--weight-title); line-height: 1.3; }
.doc-bars { display: grid; gap: 11px; margin-top: 18px; }
.doc-bars span { display: block; height: 8px; border-radius: var(--r-pill); background: var(--c-bar); color: var(--c-text); }
.doc-bars span:nth-child(1) { width: 94%; }
.doc-bars span:nth-child(2) { width: 87%; }
.doc-bars span:nth-child(3) { width: 61%; }
.code {
  margin-top: 22px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-code);
  color: var(--c-text);
  overflow: hidden;
}
.code-head { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 14px; border-bottom: 1px solid var(--c-border); }
.code-head i { width: 9px; height: 9px; flex-shrink: 0; border-radius: var(--r-circle); border: 1px solid var(--c-border-strong); background: var(--c-panel); color: var(--c-text); }
.code-head i:nth-child(1) { background: var(--c-error); color: var(--c-panel); }
.code-head i:nth-child(2) { background: var(--c-warn); color: var(--c-text); }
.code-head i:nth-child(3) { background: var(--c-success); color: var(--c-text); }
.code-head b { margin-left: 8px; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-normal); color: var(--c-muted); }
.code-body { margin: 0; padding: 12px 18px 14px; font-size: var(--text-sm); line-height: 1.9; }
.code-body .sec { color: var(--c-muted); }
.code-body .kw { color: var(--c-indigo-ink); }
.code-body .px { color: var(--c-accent-dark); }
.code-body .dr { color: var(--c-success-ink); }
.doc-sub { margin-top: 30px; font-size: var(--text-body); font-weight: var(--weight-title); }
.verify {
  position: absolute;
  z-index: 3;
  left: -90px;
  top: 214px;
  width: 340px;
  padding: 16px 18px 14px;
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-lg);
  background: var(--c-panel);
  color: var(--c-text);
  box-shadow: var(--shadow-float);
}
.verify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--c-accent-dark); font-size: var(--text-sm); font-weight: var(--weight-title); }
.verify-head span { font-size: var(--text-xs); font-weight: var(--weight-normal); color: var(--c-muted); }
.verify-list { margin: 10px 0 0; padding: 0; list-style: none; }
.verify-list li { display: grid; grid-template-columns: 20px 52px minmax(0, 1fr); align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--c-border); font-size: var(--text-sm); }
.verify-list li:first-child { border-top: 0; }
.ok { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-success-tint); color: var(--c-success-ink); }
.v-key { color: var(--c-muted); }
.v-val { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: var(--weight-title); overflow-wrap: anywhere; }
.icon-slot { width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--c-border-strong); border-radius: var(--r-circle); background: var(--c-panel); color: var(--c-text); }
.v-note { color: var(--c-muted); font-size: var(--text-xs); font-weight: var(--weight-normal); }
.verify-foot { margin: 6px 0 0; color: var(--c-muted); font-size: var(--text-xs); }
.sketch-dash { position: absolute; z-index: 0; right: -118px; top: 128px; width: 92px; height: 72px; color: var(--c-sketch); overflow: visible; pointer-events: none; }

@media (max-width: 1240px) {
  .sketch-dash { display: none; }
  .verify { left: -24px; }
}
@media (max-width: 1200px) {
  .topbar { gap: 16px; }
  .topbar > .nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer {
    display: block;
    position: absolute;
    z-index: 60;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    max-height: calc(100dvh - var(--header-height) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    background: var(--c-panel);
    color: var(--c-text);
    box-shadow: var(--shadow-float);
  }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); }
  .mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--c-soft); color: var(--c-text); }
  .drawer-label { margin: 16px 14px 6px; font-size: var(--text-xs); color: var(--c-muted); }
  .drawer-languages { border-top: 1px solid var(--c-border); margin-top: 12px; padding-top: 12px; }
  .preview-mobile { display: block; position: static; }
  .preview-mobile > summary { list-style: none; }
  .preview-mobile > .mobile-drawer { display: block; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .screen { grid-template-columns: minmax(0, 1fr); }
  .device-toc { display: none; }
  .doc { padding: 24px 28px; }
  .verify { position: relative; left: auto; top: auto; width: auto; max-width: 380px; margin: -60px auto 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --text-hero: clamp(24px, 4vw, 30px); --text-h2: 1.5rem; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { gap: 8px; min-height: var(--header-height); }
  .brand { gap: 8px; font-size: var(--text-sm); }
  .brand-name { max-width: 145px; white-space: normal; line-height: 1.3; }
  .brand-mark { width: 28px; height: 28px; }
  .header-tools { margin-left: auto; gap: 6px; }
  .language-full { display: none; }
  .language-short { display: inline; }
  .lang-btn { padding-inline: 10px; }
  .lang-btn > svg:first-child { display: none; }
  .language-menu { min-width: 170px; }
  .grid-two, .grid-three, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .hero { padding: 32px 16px 0; }
  .hero-title { font-size: 28px; }
  .cta-row { flex-direction: column; gap: 10px; }
  .cta-row .btn { width: 100%; max-width: 320px; }
  .device-row { gap: 8px 16px; }
  .stage { max-width: calc(100vw - 32px); }
  .ipad { aspect-ratio: auto; padding: 8px; transform: none; }
  .tilt, [data-tilt] { transform: none !important; }
  .doc { padding: 24px 18px 84px; }
  .doc-title { font-size: 19px; }
  .code-body { font-size: var(--text-xs); padding-inline: 12px; }
  .verify { padding-inline: 14px; }
  .verify-list li { gap: 8px; grid-template-columns: 20px 45px minmax(0, 1fr); }
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .eyebrow-dot::after { opacity: .6; transform: none; }
}