.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - var(--peek));
  min-height: calc(100svh - var(--nav-h) - var(--peek));
  padding: 24px var(--gutter) 40px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.hero-grid {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 50%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, var(--mask-ink) 0%, var(--mask-ink) 22%, var(--clear) 80%);
  mask-image: linear-gradient(to top, var(--mask-ink) 0%, var(--mask-ink) 22%, var(--clear) 80%);
}
.hero-grid svg { display: block; width: 100%; height: 100%; }
.hero-grid path { fill: none; stroke: var(--line-grid); stroke-width: 1; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
}
.app-mark { display: block; width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--r-mark); }
.preview-mark {
  position: relative;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-panel) 60%, var(--bg-panel-2) 100%);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mark);
}
.preview-mark::after {
  content: "";
  position: absolute;
  inset: 21%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-mark-sm);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.hero .badge { margin: 22px 0 0; }
.badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--accent);
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-circle);
  background: var(--accent-halo);
  animation: breathe 2.8s ease-out infinite;
}
@keyframes breathe {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: var(--weight-normal);
  line-height: 1.14;
  letter-spacing: var(--track-tight);
  color: var(--text);
}
.lede {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: var(--fs-ui);
  line-height: 1.75;
  color: var(--text-muted);
}
.lede strong { font-weight: var(--weight-medium); color: var(--text); }
.core { position: relative; isolation: isolate; width: 100%; max-width: 760px; min-width: 0; margin-top: 40px; }
.core::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -70px -160px;
  background: radial-gradient(closest-side, var(--bg-panel) 0%, var(--clear) 100%);
  pointer-events: none;
}
.orbit {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 1400px;
  max-width: none;
  height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}
.ring-in { fill: none; stroke: var(--border); stroke-width: 1; }
.ring-out { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 7; }
.node { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1; }
.node-on { fill: var(--accent); }
.orbit-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .02em; fill: var(--text-muted); }
.rulebox {
  position: relative;
  z-index: 1;
  min-height: 156px;
  margin: 0;
  padding: 24px 18px 18px 30px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-box);
  box-shadow: var(--shadow-float);
  text-align: left;
  min-width: 0;
}
.rule-prev {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.3;
  color: var(--text-muted);
  opacity: .5;
}
.rule-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.rule-line {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-rule);
  line-height: 1.35;
  letter-spacing: var(--track-ui);
  color: var(--text);
  white-space: nowrap;
}
.rule-line code { font-family: inherit; font-size: inherit; overflow-wrap: normal; }
.tok-sep { color: var(--text-muted); }
.tok-policy { color: var(--accent); }
.caret { display: inline-block; flex-shrink: 0; width: 2px; height: 1.15em; margin-left: 4px; background: var(--text); }
.rule-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-circle);
  background: var(--bg-panel);
  color: var(--text);
}
.go:hover { background: var(--bg-panel-2); color: var(--text); }
.go svg { width: 18px; height: 18px; }
.chips, .fact-row, .badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.chips { position: relative; z-index: 1; margin-top: 18px; }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  max-width: 100%;
  padding: 6px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: var(--fs-label);
}
.chips a:hover { color: var(--text); border-color: var(--line-strong); }
.devices {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 40px;
}
.device { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--text-muted); }
a.device:hover { color: var(--text); }
.device svg, .device-card > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.devices-sep { width: 1px; height: 18px; background: var(--border); }
.fact-row { justify-content: flex-start; }
.fact-pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fact-pill svg { width: 12px; height: 12px; }
.boards { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; padding-inline: var(--gutter); margin-bottom: 160px; }
.board {
  position: relative;
  display: block;
  min-width: 0;
  height: 440px;
  border-radius: var(--r-board);
  overflow: hidden;
  color: var(--text);
}
.board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 0%, var(--board-sheen) 0%, var(--clear) 60%);
  pointer-events: none;
}
.board-wide { background: linear-gradient(118deg, var(--accent) 0%, var(--sage) 58%, var(--stone) 100%); color: var(--text); }
.board-narrow { background: linear-gradient(200deg, var(--stone) 0%, var(--sage) 45%, var(--accent) 100%); color: var(--text); }
.board-word {
  position: absolute;
  left: 40px;
  top: -8px;
  font-family: var(--font-display);
  font-size: var(--fs-board);
  font-weight: var(--weight-normal);
  line-height: .9;
  letter-spacing: -.045em;
  color: var(--text-inverse);
  white-space: nowrap;
}
.tabs { min-width: 0; }
.tab-list, [role="tablist"].tab-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 32px;
}
.tab-list [role="tab"] {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-label);
  text-align: left;
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--text-inverse); border-color: var(--text); }
[role="tabpanel"] { min-width: 0; }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.editorial-layout.is-mirrored { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.editorial-layout.is-mirrored .editorial-main { grid-column: 2; grid-row: 1; }
.editorial-layout.is-mirrored .editorial-tabs { grid-column: 1; grid-row: 1; }
.editorial-main .board { height: 340px; margin-bottom: 28px; }
.editorial-main h3 { margin-block: 0 18px; }
.editorial-main p { line-height: 1.85; }
.editorial-tabs[role="tablist"] { display: flex; flex-direction: column; margin: 0; gap: 0; }
.editorial-tab {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 120px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font-size: var(--fs-body);
}
.editorial-tab:first-child { border-top: 1px solid var(--border); }
.editorial-tab[aria-selected="true"] .editorial-tab-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.editorial-thumb {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--r-menu);
  background: linear-gradient(135deg, var(--accent), var(--sage), var(--stone));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}
.editorial-tab-title { display: block; margin-bottom: 6px; }
.editorial-tab .meta { display: block; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 20px;
  margin-bottom: 40px;
  border-block: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-label); }
.toc a:hover, .toc a[aria-current="location"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.toc-sticky { position: sticky; top: 0; z-index: 10; }
.toc-static { position: static; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-intro);
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 22px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 22px; max-width: 780px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border: 1px solid var(--border); border-radius: var(--r-board); padding: 28px; background: var(--bg); color: var(--text); }
.term-card h3 { margin-block: 0 12px; font-family: var(--font-mono); overflow-wrap: anywhere; }
.term-card p:last-child { margin-bottom: 0; }
.term-category { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: var(--fs-sm); }
.app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 24px;
  border: 1px solid var(--text);
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--text-inverse);
  text-align: left;
  line-height: 1.3;
}
.app-store:hover { background: var(--ink-hover); color: var(--text-inverse); }
.app-store > svg { width: 25px; height: 28px; fill: currentColor; }
.app-store-copy { display: block; min-width: 0; }
.app-store-copy small { display: block; font-size: var(--fs-xs); }
.app-store-copy strong { display: block; font-size: var(--fs-body); font-weight: var(--weight-medium); }
.store-guide { padding: 32px; border: 1px solid var(--border); border-radius: var(--r-box); background: var(--bg); color: var(--text); box-shadow: var(--shadow-hair); }
.store-guide h2, .store-guide h3 { margin-top: 0; font-size: var(--fs-h3); }
.store-guide p { color: var(--text-muted); }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin-inline: auto; padding: 0; }
.official-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.official-shot { outline: 1px solid var(--border); border-radius: var(--r-shot); }
.official-shot figcaption { padding-top: 12px; font-size: var(--fs-sm); line-height: 1.6; color: var(--text-muted); background: var(--bg); }
.shot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.shot-layout > * { min-width: 0; }
.device-card {
  display: block;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-board);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-hair);
}
.device-card:hover { border-color: var(--line-strong); }
.device-card > svg { width: 36px; height: 44px; margin-bottom: 28px; }
.device-card h3 { margin: 0 0 12px; }
.device-card p { color: var(--text-muted); }
.device-card .device-destination { font-size: var(--fs-label); text-decoration: underline; text-underline-offset: 5px; }
.article-card { display: block; padding-block: 28px; border-bottom: 1px solid var(--border); min-width: 0; }
.article-card h3 { margin-block: 14px 16px; }
.article-card p { color: var(--text-muted); }
.article-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.article-card .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.callout {
  margin: 28px 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-menu);
  background: var(--bg-panel);
  color: var(--text);
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 10px; font-weight: var(--weight-medium); }
.grouped-list { padding: 0; margin: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--bg); color: var(--text); overflow: hidden; }
.grouped-list li + li { border-top: 1px solid var(--border); }
.grouped-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 16px 24px; }
.grouped-list a::after { content: "›"; flex-shrink: 0; color: var(--text-muted); }
.grouped-list a:hover { background: var(--bg-panel); color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-label); text-align: left; }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th {
  background: var(--bg-panel);
  color: var(--text);
  font-weight: var(--weight-medium);
}
.data-table td, .prose table td, .article-body table td { background: var(--bg); color: var(--text); }
.prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--text-inverse);
  box-shadow: var(--shadow-menu);
  font-size: var(--fs-label);
}
.dl-fab svg { width: 18px; height: 18px; }
.dl-fab:hover { background: var(--ink-hover); color: var(--text-inverse); }
.has-article-fab .site-footer { padding-bottom: 80px; }
.preview-section { margin-top: 160px; }
.preview-section > h2 { margin-block: 0 40px; }
.preview-section:last-child { margin-bottom: 160px; }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-section .cta-row { justify-content: flex-start; }
.preview-shot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  border: 1px solid var(--border);
  border-radius: var(--r-shot);
  background: var(--bg-panel);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--fs-label);
}
.preview-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.swatch { min-width: 0; margin: 0; font-size: var(--fs-xs); }
.swatch::before { content: ""; display: block; height: 72px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--r-item); background: var(--swatch); }
.swatch-bg { --swatch: var(--bg); }
.swatch-panel { --swatch: var(--bg-panel); }
.swatch-panel2 { --swatch: var(--bg-panel-2); }
.swatch-border { --swatch: var(--border); }
.swatch-grid { --swatch: var(--line-grid); }
.swatch-line { --swatch: var(--line-strong); }
.swatch-accent { --swatch: var(--accent); }
.swatch-dark { --swatch: var(--accent-dark); }
.swatch-halo { --swatch: var(--accent-halo); }
.swatch-sage { --swatch: var(--sage); }
.swatch-stone { --swatch: var(--stone); }
.swatch-sheen { --swatch: var(--board-sheen); }
.swatch-text { --swatch: var(--text); }
.swatch-muted { --swatch: var(--text-muted); }
.swatch-inverse { --swatch: var(--text-inverse); }
.swatch-hover { --swatch: var(--ink-hover); }
.swatch-success { --swatch: var(--success); }
.swatch-warn { --swatch: var(--warn); }
.swatch-error { --swatch: var(--error); }
.swatch-mask { --swatch: var(--mask-ink); }
.swatch-clear { --swatch: var(--clear); }
.swatch-veil { --swatch: var(--veil); }
.type-display { font-size: var(--h1); font-family: var(--font-display); line-height: 1.14; }
.preview-static-menu { display: none; }
@media (max-width: 1100px) {
  .orbit { display: none; }
  .preview-static-menu { display: block; position: relative; }
  .preview-static-menu > summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; list-style: none; }
  .preview-static-menu > nav { position: absolute; right: 0; top: 54px; width: min(280px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--border); border-radius: var(--r-menu); background: var(--bg); color: var(--text); box-shadow: var(--shadow-menu); }
  .preview-static-menu nav a { display: block; padding: 12px; min-height: 44px; }
}
@media (max-width: 860px) {
  :root { --fs-rule: 16px; --fs-board: 140px; }
  .rulebox { padding: 20px 14px 14px 20px; }
  .core::before { inset: -40px -20px; }
  .boards { grid-template-columns: minmax(0, 1fr); }
  .boards > .board-narrow { display: none; }
  .board-word { left: 24px; }
  .devices { gap: 18px; }
  .devices-sep { display: none; }
  .editorial-layout, .editorial-layout.is-mirrored { grid-template-columns: minmax(0, 1fr); }
  .editorial-layout.is-mirrored .editorial-main, .editorial-layout.is-mirrored .editorial-tabs { grid-column: auto; grid-row: auto; }
}
@media (max-width: 768px) {
  .shot-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .preview-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { letter-spacing: var(--track-cjk); }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; padding-bottom: 40px; }
  .hero h1 { max-width: 100%; }
  .hero .cta-row { margin-top: 22px; gap: 10px; }
  .hero .btn { padding-inline: 18px; }
  .lede { font-size: var(--fs-label); }
  .core { margin-top: 32px; }
  .chips { gap: 8px; }
  .chips a { padding-inline: 14px; }
  .devices { gap: 14px 18px; }
  .device { font-size: var(--fs-sm); }
  .fact-row, .badge-row { flex-direction: row; flex-wrap: wrap; }
  .fact-pill { padding-inline: 10px; font-size: var(--fs-xs); }
  .editorial-main .board { height: 240px; }
  .board { height: 320px; }
  .device-card, .term-card, .store-guide { padding: 24px; }
  .callout { padding: 20px; }
  .preview-section { margin-top: 100px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-dot::after { animation: none; opacity: 0; }
}