:root {
  --bg: #ffffff;
  --bg-panel: #f4f8fc;
  --bg-panel2: #f7f8fa;
  --border: #e4e8ee;
  --border-strong: #d2d8e1;
  --dot: #e9edf3;
  --stripe: #eef1f5;
  --accent: #1f6fe5;
  --accent-dark: #1655b8;
  --accent-soft: rgba(31, 111, 229, 0.08);
  --accent-ring: rgba(31, 111, 229, 0.14);
  --accent-glow: rgba(31, 111, 229, 0.22);
  --text: #141b2d;
  --text-hover: #232c44;
  --muted: #5b6475;
  --faint: #9aa3b2;
  --success: #1f9e6e;
  --success-ink: #15734f;
  --warn: #c98a12;
  --warn-ink: #805600;
  --error: #d6453d;
  --error-ink: #ad302a;
  --on-ink: #ffffff;
  --peach: #f6c9a6;
  --pink: #f1c2da;
  --peri: #c8d5fa;
  --clear: transparent;
  --veil: rgba(20, 27, 45, 0.28);

  --font-display: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-caption: 12.5px;
  --fs-sm: 13px;
  --fs-label: 13.5px;
  --fs-nav: 14.5px;
  --fs-button: 15px;
  --fs-brand: 15.5px;
  --fs-body: 16px;
  --fs-lead: 18px;
  --fs-h3: 22px;
  --fs-h2: clamp(24px, 2.5vw, 34px);
  --fs-h1: clamp(34px, 3.05vw, 44px);
  --fs-micro: 11px;
  --fs-code-head: 11.5px;

  --r-card: 10px;
  --r-frame: 14px;
  --r-btn: 8px;
  --r-pill: 999px;
  --r-mark: 4px;
  --r-icon: 6px;
  --r-logo: 7px;
  --r-device: 26px;
  --r-screen: 12px;
  --r-device-mobile: 18px;
  --r-tiny: 2px;
  --r-round: 50%;
  --r-key: 3px 3px 0 0;
  --r-shot: 10px;

  --shadow-xs: 0 1px 2px rgba(20, 27, 45, 0.05);
  --shadow-soft: 0 1px 2px rgba(20, 27, 45, 0.05), 0 8px 24px rgba(20, 27, 45, 0.06);
  --shadow-device: 0 1px 2px rgba(20, 27, 45, 0.06), 0 10px 24px rgba(20, 27, 45, 0.07), 0 28px 56px rgba(20, 27, 45, 0.08);
  --shadow-btn: 0 1px 2px rgba(20, 27, 45, 0.16), 0 6px 16px rgba(20, 27, 45, 0.14);
  --shadow-note: 0 2px 4px rgba(20, 27, 45, 0.14), 0 10px 22px rgba(20, 27, 45, 0.18);
  --hl-ink: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --gutter: 24px;
  --shell-w: min(1312px, calc(100% - 48px));
  --reading-w: 1120px;
  --nav-h: 64px;
  --ease: 160ms ease;
  --section-space: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: var(--accent-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-btn); }
::selection { background: var(--accent-ring); color: var(--text); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); }
p, li, dd { overflow-wrap: break-word; }
code { font-family: var(--font-mono); overflow-wrap: anywhere; font-size: 0.9em; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 20px;
  background: var(--bg-panel2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.85;
  tab-size: 2;
}
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
section[id], h2[id], h3[id], [role="tabpanel"] { scroll-margin-top: 24px; }
.wrap { width: 100%; max-width: calc(var(--reading-w) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-top: var(--section-space); padding-bottom: var(--section-space); border-bottom: 1px solid var(--border); }
.section--blue, .panel--blue { background: var(--bg-panel); color: var(--text); }
.section--gray, .panel--gray { background: var(--bg-panel2); color: var(--text); }
.section-heading { margin: 0 0 16px; }
.section-intro { max-width: 44em; margin: 0 0 32px; color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > *, .hero > *, .feature-layout > *, .footer-grid > *, .topbar-in > * { min-width: 0; }
.stack > * + * { margin-top: 20px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-dark); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  padding: 0; white-space: nowrap;
  background: var(--text); color: var(--on-ink);
  border-radius: var(--r-btn); font-size: var(--fs-nav); text-decoration: none;
}
.skip:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
  padding: 8px 14px;
}
.card, .panel {
  min-width: 0; padding: 24px; border: 1px solid var(--border);
  border-radius: var(--r-card); background: var(--bg); color: var(--text);
}
.card { box-shadow: var(--shadow-xs); }
.card h3, .panel h3 { margin-top: 0; }
.card > :last-child, .panel > :last-child { margin-bottom: 0; }
.panel--blue { background: var(--bg-panel); color: var(--text); }
.panel--gray { background: var(--bg-panel2); color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 20px; border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: var(--fs-button); font-weight: 600;
  line-height: 1.45; text-decoration: none; text-align: center;
  border: 1px solid var(--border); max-width: 100%;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 17px; height: 17px; }
.btn--ink { background: var(--text); color: var(--on-ink); border-color: var(--text); box-shadow: var(--hl-ink), var(--shadow-btn); }
.btn--ink:hover, .btn--ink.is-hover { background: var(--text-hover); color: var(--on-ink); }
.btn--line { background: var(--bg); color: var(--text); box-shadow: var(--shadow-xs); }
.btn--line:hover, .btn--line.is-hover { border-color: var(--border-strong); background: var(--bg-panel2); color: var(--text); }
.btn--link { background: var(--clear); color: var(--accent-dark); border-color: var(--clear); padding-inline: 0; }
.btn:active, .btn.is-active { box-shadow: var(--shadow-xs); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel2); color: var(--muted); border-color: var(--border); box-shadow: none; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Separate wide header container; do not replace with the body .wrap. */
.topbar { position: relative; z-index: 50; height: var(--nav-h); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.topbar-in {
  position: relative; width: 100%; max-width: min(100%, calc(1280px + var(--gutter) * 2));
  height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-brand); letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-logo, .brand-mark { width: 30px; height: 30px; flex-shrink: 0; border-radius: var(--r-logo); }
.brand-logo { display: block; }
.brand-mark { position: relative; background: var(--bg); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.brand-mark::after { content: ""; position: absolute; inset: 6px; border-radius: var(--r-mark); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); }
.nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 12px; border-radius: var(--r-btn); font-size: var(--fs-nav); font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.nav-link:hover { background: var(--bg-panel2); color: var(--text); }
.nav-link[aria-current="page"], .more-item[aria-current="page"], .drawer a[aria-current="page"] { color: var(--accent-dark); }
.more { position: relative; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more-chev { width: 14px; height: 14px; color: var(--muted); transition: transform var(--ease); }
.more[open] .more-chev { transform: rotate(180deg); }
.more-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 400px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px;
  padding: 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-soft);
}
.more-group { list-style: none; margin: 0; padding: 0; }
.more-group-title { margin: 2px 10px 6px; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--muted); }
.more-item { display: block; min-height: 44px; padding: 8px 10px; border-radius: var(--r-btn); text-decoration: none; color: var(--text); }
.more-item:hover { background: var(--bg-panel); color: var(--text); }
.more-item b { display: block; font-size: var(--fs-nav); font-weight: 600; }
.more-item span { display: block; font-size: var(--fs-caption); color: var(--muted); line-height: 1.5; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-control { position: relative; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 34px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-btn);
  background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--fs-label);
  font-weight: 500; box-shadow: var(--shadow-xs); text-decoration: none; white-space: nowrap;
}
.lang svg { width: 15px; height: 15px; color: var(--muted); }
.lang-short { display: none; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 180px; list-style: none; margin: 0; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-soft); background: var(--bg); color: var(--text); }
.lang-menu a { display: block; min-height: 44px; padding: 10px 12px; border-radius: var(--r-btn); text-decoration: none; color: var(--text); }
.lang-menu a:hover, .lang-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--accent-dark); }
.hamburger { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); }
.hamburger svg { width: 20px; height: 20px; }
.nav-veil { position: fixed; z-index: 40; inset: var(--nav-h) 0 0; border: 0; background: var(--veil); color: var(--text); }
.drawer {
  position: fixed; z-index: 52; top: var(--nav-h); left: 0; right: 0;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--border);
  background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft);
}
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: flex; align-items: center; min-height: 46px; width: 100%; padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: var(--r-btn); }
.drawer a:hover { background: var(--bg-panel); color: var(--accent-dark); }
.drawer-label { margin: 18px 12px 8px; color: var(--muted); font-size: var(--fs-sm); }
.drawer-languages { border-top: 1px solid var(--border); padding-top: 8px !important; }
.preview-menu { display: none; }
.preview-menu > summary { list-style: none; }
.preview-menu > summary::-webkit-details-marker { display: none; }

/* Continuous frame and intersection markers. */
.shell { position: relative; width: var(--shell-w); margin-inline: auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.shell-top { height: 24px; }
.mark { position: absolute; z-index: 6; width: 14px; height: 14px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-mark); pointer-events: none; }
.mark--tl { left: -7.5px; top: -7.5px; }
.mark--tr { right: -7.5px; top: -7.5px; }
.mark--bl { left: -7.5px; bottom: -7px; }
.mark--br { right: -7.5px; bottom: -7px; }
.band { height: 40px; border-bottom: 1px solid var(--border); background-color: var(--bg); color: var(--text); background-image: repeating-linear-gradient(45deg, var(--stripe) 0, var(--stripe) 1.2px, var(--clear) 1.2px, var(--clear) 8px); }

/* Static split hero layout. */
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: clamp(660px, calc(100vh - 148px), 820px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, var(--dot) 1.2px, var(--clear) 1.5px); background-size: 14px 14px; background-position: 7px 7px; mask-image: linear-gradient(90deg, var(--text) 0, var(--clear) 120px, var(--clear) calc(100% - 120px), var(--text) 100%); -webkit-mask-image: linear-gradient(90deg, var(--text) 0, var(--clear) 120px, var(--clear) calc(100% - 120px), var(--text) 100%); }
.copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 40px 0 64px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 30px; padding: 4px 13px 4px 11px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); box-shadow: var(--shadow-xs); font-size: var(--fs-sm); font-weight: 500; }
.badge-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: var(--r-round); background: var(--accent); color: var(--on-ink); box-shadow: 0 0 0 3px var(--accent-ring); }
.badge-sep { color: var(--muted); }
.title { margin: 22px 0 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: 1.16; letter-spacing: -0.02em; color: var(--text); }
.title-line { display: block; white-space: nowrap; }
.title-em { font-style: normal; color: var(--accent); }
.lede { margin: 20px 0 0; max-width: 32em; font-size: var(--fs-body); line-height: 1.78; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 600; }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 34px; }
.devices-label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.02em; }
.device-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.device { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: var(--fs-label); font-weight: 500; text-decoration: none; }
.device svg { width: 18px; height: 18px; color: var(--muted); }
.device:hover, .device:hover svg { color: var(--accent-dark); }
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel2); color: var(--text); font-size: var(--fs-caption); font-weight: 600; text-decoration: none; }
.devices-note { margin: 8px 0 0; font-size: var(--fs-caption); color: var(--muted); }
.rail { display: flex; align-items: flex-start; margin-top: 30px; }
.rail-seg { flex: 1; display: flex; align-items: flex-start; min-width: 16px; }
.rail-seg::before { content: ""; flex: 1; height: 1px; background: var(--border); }
.rail-seg--end::before { order: 2; }
.rail-joint { flex: none; width: 32px; height: 18px; color: var(--border); overflow: visible; }
.rail-pills { position: relative; display: flex; gap: 8px; margin: 0; padding: 0 4px; list-style: none; }
.rail-pills::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--border); }
.pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 35px; max-width: 100%; padding: 5px 14px 5px 7px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); box-shadow: var(--shadow-xs); font-size: var(--fs-label); font-weight: 500; text-decoration: none; }
.pill:hover { border-color: var(--border-strong); color: var(--accent-dark); }
.pill-ico { flex-shrink: 0; display: grid; place-items: center; width: 21px; height: 21px; border-radius: var(--r-icon); background: var(--accent-soft); color: var(--accent-dark); }
.pill-ico svg { width: 13px; height: 13px; }
.stage { position: relative; z-index: 1; display: flex; align-items: center; padding: 52px 32px 52px 58px; border-left: 1px solid var(--border); }
.stage-mark--t { left: -7.5px; top: -7.5px; }
.stage-mark--b { left: -7.5px; bottom: -7px; }
.dock { position: absolute; left: -32px; top: 50%; z-index: 5; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-frame); box-shadow: var(--shadow-soft); }
.tile { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--muted); }
.tile svg { width: 20px; height: 20px; }
.tile.is-on { border: 2px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring), 0 6px 16px var(--accent-glow); }
.demo { position: relative; width: 100%; height: 100%; margin: 0; padding: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-frame); box-shadow: var(--shadow-soft); }
.field { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; height: 100%; overflow: hidden; border-radius: var(--r-card); background: var(--bg-panel2); color: var(--text); border: 1px solid var(--border); }
.blob { position: absolute; z-index: 0; aspect-ratio: 1; border-radius: var(--r-round); opacity: 0.78; pointer-events: none; }
.blob--peri { top: -20%; left: -4%; width: 66%; background: radial-gradient(closest-side, var(--peri), var(--clear)); }
.blob--peach { top: -26%; right: -22%; width: 78%; background: radial-gradient(closest-side, var(--peach), var(--clear)); }
.blob--pink { bottom: -30%; left: -18%; width: 84%; background: radial-gradient(closest-side, var(--pink), var(--clear)); }
.field-tag { position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--muted); letter-spacing: 0.02em; }
.ipad { position: relative; z-index: 1; width: min(500px, 86%); aspect-ratio: 1.42; padding: 15px; background: var(--bg); color: var(--text); border: 2px solid var(--border-strong); border-radius: var(--r-device); box-shadow: var(--shadow-device); }
.ipad-cam { position: absolute; top: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: var(--r-round); background: var(--border-strong); }
.ipad-key { position: absolute; top: -5px; right: 58px; width: 34px; height: 3px; border-radius: var(--r-key); background: var(--border-strong); }
.ipad-screen { position: relative; display: flex; align-items: center; justify-content: center; height: 100%; padding-bottom: 22px; border-radius: var(--r-screen); border: 1px solid var(--border); background: linear-gradient(160deg, var(--bg) 0%, var(--bg-panel) 70%); color: var(--text); }
.rules-card { position: relative; width: 80%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-soft); }
.rules-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-code-head); color: var(--muted); }
.rules-head-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--r-tiny); background: var(--accent); }
.rules { margin: 0; padding: 8px 0 12px; list-style: none; font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 27px; overflow-x: auto; }
.rules li { display: grid; grid-template-columns: 36px max-content; padding-right: 12px; white-space: nowrap; color: var(--text); }
.rules li.is-hl { background: var(--accent-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.ln { padding-right: 12px; text-align: right; color: var(--muted); user-select: none; }
.c, .v { color: var(--muted); }
.k-proxy { color: var(--accent-dark); font-weight: 600; }
.k-direct { color: var(--success-ink); font-weight: 600; }
.note { position: absolute; top: calc(100% - 10px); right: -30px; z-index: 3; padding: 8px 13px; border-radius: var(--r-btn); background: var(--text); color: var(--on-ink); font-size: var(--fs-caption); line-height: 1.45; white-space: nowrap; box-shadow: var(--shadow-note); }
.note::before { content: ""; position: absolute; top: -5px; left: 26px; width: 10px; height: 10px; border-radius: var(--r-tiny); background: var(--text); transform: rotate(45deg); }
.note code { font-family: var(--font-mono); font-weight: 600; }
.peek { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 140px; }
.peek-cell { border-right: 1px solid var(--border); }
.peek-cell:last-child { border-right: 0; }

/* Clip decorations locally rather than hiding body content overflow. */
.decorated { position: relative; overflow-x: clip; }
.prose { min-width: 0; max-width: 76ch; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1.3em; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.7em; }
.prose h3 { margin-top: 1.7em; margin-bottom: 0.6em; }
.prose li + li { margin-top: 0.4em; }
.prose img { max-width: 100%; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.shown { opacity: 1; transform: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg); color: var(--text); padding-top: 48px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.25fr; gap: 40px; }
.footer-brand p { max-width: 30em; color: var(--muted); font-size: var(--fs-nav); }
.footer-title { margin: 0 0 12px; font-size: var(--fs-button); font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.footer-links a { display: inline-block; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-nav); color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-keywords { grid-template-columns: 1fr; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-languages { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-languages a { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }
.footer-languages [aria-current="true"] { color: var(--accent-dark); }
.copyright { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

@media (max-width: 1100px) {
  .nav-flat { display: none; }
  .header-tools { margin-left: auto; }
  .hamburger { display: inline-flex; }
  .preview-menu { display: block; }
  .preview-menu > summary { display: inline-flex; }
  .preview-menu .drawer { position: absolute; top: var(--nav-h); }
}
@media (min-width: 1101px) {
  .drawer, .nav-veil { display: none; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; height: auto; }
  .copy { padding: 52px 28px 40px; }
  .title-line { white-space: normal; }
  .stage { flex-direction: column; align-items: stretch; padding: 0 16px 28px; border-left: 0; border-top: 1px solid var(--border); }
  .stage-mark { display: none; }
  .dock { position: relative; left: auto; top: auto; align-self: center; flex-direction: row; margin: -1px 0 -28px; transform: translateY(-50%); }
  .demo { height: auto; }
  .field { height: auto; aspect-ratio: 1.12; min-height: 300px; }
  .ipad { width: 92%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --fs-h1: clamp(24px, 4vw, 30px); }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section-space: 40px; --shell-w: calc(100% - 32px); }
  .grid--2 { grid-template-columns: 1fr; }
  .topbar-in { gap: 8px; }
  .brand { font-size: var(--fs-nav); gap: 7px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang { min-width: 44px; min-height: 44px; padding-inline: 8px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .tilt, [data-tilt] { transform: none !important; }
  .card, .panel { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: flex-start; }
}
@media (max-width: 560px) {
  .copy { padding: 40px 20px 36px; }
  .title { font-size: clamp(24px, 7.2vw, 30px); }
  .lede { font-size: var(--fs-button); }
  .actions .btn { flex: 1 1 auto; }
  .rail-seg { display: none; }
  .rail-pills { flex-wrap: wrap; padding: 0; }
  .rail-pills::before { display: none; }
  .field { aspect-ratio: auto; min-height: 280px; padding: 44px 0 56px; }
  .ipad { width: 96%; padding: 10px; border-radius: var(--r-device-mobile); }
  .ipad-screen { padding: 14px 0 34px; }
  .rules-card { width: 94%; }
  .rules { font-size: var(--fs-micro); line-height: 23px; }
  .rules li { grid-template-columns: 26px max-content; padding-right: 8px; }
  .ln { padding-right: 8px; }
  .note { right: -4px; white-space: normal; max-width: 220px; font-size: var(--fs-xs); }
  .devices { gap: 8px 12px; }
  .device-list { gap: 8px 14px; }
}
@media (max-width: 360px) {
  .brand { font-size: var(--fs-sm); }
  .brand-logo, .brand-mark { width: 26px; height: 26px; }
  .copy { padding-inline: 16px; }
  .stage { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-pending { opacity: 1; transform: none; }
}