.hero {
  position: relative;
  z-index: 2;
  height: var(--hero-h);
  overflow-x: clip;
  color: var(--c-on-dark);
  background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-accent-dark) 46%, var(--c-panel-2) 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--c-on-dark-grid) 1px, var(--c-clear) 1px), linear-gradient(90deg, var(--c-on-dark-grid) 1px, var(--c-clear) 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 46% 70% at 74% 48%, var(--c-mask) 0%, var(--c-clear) 72%);
  -webkit-mask-image: radial-gradient(ellipse 46% 70% at 74% 48%, var(--c-mask) 0%, var(--c-clear) 72%);
}
.hero-glow {
  position: absolute;
  top: -150px;
  left: calc(50% + 210px);
  width: 680px;
  height: 600px;
  background: radial-gradient(closest-side at 46% 50%, var(--c-glow-violet), var(--c-clear) 74%), radial-gradient(closest-side at 68% 38%, var(--c-glow-coral), var(--c-clear) 70%);
}
.hero-inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero-copy { padding-bottom: 36px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 14px 4px 12px;
  border: 1px solid var(--c-on-dark-line);
  border-radius: var(--r-pill);
  background: var(--c-on-dark-fill);
  color: var(--c-on-dark-muted);
  font-size: 13px;
  letter-spacing: .01em;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-circle); flex-shrink: 0; }
.dot--coral { background: var(--c-coral); box-shadow: 0 0 0 3px var(--c-ring-coral); }
.dot--success { background: var(--c-success); box-shadow: 0 0 0 3px var(--c-ring-success); }
.hero h1 { margin-top: 26px; font-size: clamp(34px, 2.2vw + 16px, 48px); line-height: 1.18; color: var(--c-on-dark); }
.kw { position: relative; display: inline-block; white-space: nowrap; }
.kw::after { content: ""; position: absolute; left: .04em; right: .04em; bottom: -.08em; height: 4px; border-radius: var(--r-line); background: var(--c-coral); }
.lede { margin-top: 26px; max-width: 31em; font-size: 17px; line-height: 1.75; color: var(--c-on-dark-muted); }
.lede strong { color: var(--c-on-dark); font-weight: 500; }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--c-on-dark-muted); }
.device { display: inline-flex; align-items: center; gap: 7px; color: var(--c-on-dark-muted); min-height: 28px; }
.device svg { width: 18px; height: 18px; color: var(--c-on-dark); }
.devices-sep { width: 1px; height: 18px; background: var(--c-on-dark-line); }
.fact-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; max-width: 100%; padding: 4px 12px; border: 1px solid var(--c-on-dark-line); border-radius: var(--r-pill); background: var(--c-on-dark-fill-strong); color: var(--c-on-dark); font-size: 12.5px; }
.hero-visual { position: relative; height: 100%; min-width: 0; }
.stage { position: absolute; right: 48px; bottom: calc(var(--overlap) * -1); z-index: 3; width: 480px; }
.stage-backer { position: absolute; inset: 0; transform: translate(24px, 24px); border-radius: var(--r-card); background: var(--c-backer); border: 1px solid var(--c-backer-line); }
.conf { position: relative; border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--sh-card); overflow: hidden; }
.conf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 10px 18px 10px 20px; border-bottom: 1px solid var(--c-border); background: var(--c-bar-bg); color: var(--c-text); font-family: var(--f-mono); font-size: 12px; }
.conf-bar-note { color: var(--c-muted); font-size: 11px; letter-spacing: .02em; }
.conf-body { padding-top: 16px; padding-bottom: 20px; overflow-x: auto; font-family: var(--f-mono); font-size: 13px; line-height: var(--lh-code); color: var(--c-text); }
.conf-lines { min-width: 470px; }
.ln { position: relative; display: grid; grid-template-columns: 52px 1fr; min-height: var(--lh-code); white-space: pre; }
.ln-no { position: relative; padding-right: 18px; text-align: right; color: var(--c-line-no); font-size: 11.5px; user-select: none; }
.ln--mark .ln-no::before { content: ""; position: absolute; left: 0; top: 7px; width: 3px; height: 16px; border-radius: var(--r-line); background: var(--c-coral); }
.ln code { font: inherit; white-space: pre; overflow-wrap: normal; }
.t-com, .t-op, .t-val { color: var(--c-muted); }
.t-sec { color: var(--c-accent-dark); font-weight: 600; }
.t-key { color: var(--c-text); }
.t-rule { color: var(--c-accent); font-weight: 500; }
.t-pol { color: var(--c-accent-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--c-coral); text-underline-offset: 4px; }
.conf-rules { position: relative; }
.conf-rules .ln { z-index: 1; }
.scan { position: absolute; left: 0; right: 0; top: var(--lh-code); height: var(--lh-code); background: var(--c-scan); border-left: 2px solid var(--c-scan-edge); opacity: 0; pointer-events: none; animation: rule-sweep 8s ease-in-out 1.2s infinite; }
.float-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 18px 8px 15px; border-radius: var(--r-pill); background: var(--c-bg); color: var(--c-text); box-shadow: var(--sh-pill); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.float-chip--tl { top: -20px; left: -64px; }
.float-chip--br { right: -40px; bottom: 132px; }
.statusbar { position: relative; z-index: 1; min-height: 56px; background: var(--c-bg); color: var(--c-muted); border-bottom: 1px solid var(--c-border); font-family: var(--f-mono); font-size: 12px; }
.statusbar-inner { min-height: 56px; display: flex; align-items: center; gap: 26px; }
.statusbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; max-width: calc(100% - 600px); }
.sb-item { display: inline-flex; align-items: center; gap: 8px; }
.sb-item b { font-weight: 500; color: var(--c-text); }
.sb-sep { color: var(--c-border); }

.tabs { min-width: 0; }
[role="tablist"] { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; padding: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
[role="tab"] { flex-shrink: 0; min-height: 44px; padding: 10px 20px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-bg); color: var(--c-muted); white-space: nowrap; font-size: 14px; }
[role="tab"]:hover { color: var(--c-accent); border-color: var(--c-accent); }
[role="tab"][aria-selected="true"] { border-color: var(--c-panel); background: var(--c-panel); color: var(--c-accent); }
[role="tabpanel"] { margin-top: 40px; min-width: 0; }
.feature-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.feature-copy, .feature-material { min-width: 0; min-height: 340px; padding: 44px; border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.feature-copy p { margin-top: 24px; color: var(--c-muted); line-height: 1.85; }
.feature-copy .text-link { display: inline-block; margin-top: 28px; }
.feature-material { position: relative; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: 0; }
.material-sheet { position: relative; width: 100%; transform: translateY(18px); padding: 30px; border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); box-shadow: var(--sh-soft); }
.material-sheet > .dot { position: absolute; right: 18px; top: 18px; }
.material-sheet pre { padding: 0; border: 0; background: var(--c-bg); color: var(--c-text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-btn); background: var(--c-panel); color: var(--c-accent); font-size: 14px; }
.toc--sticky { position: sticky; top: 0; z-index: 10; background: var(--c-bg); color: var(--c-text); }
.faq-item { border-bottom: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
.faq-item summary { position: relative; padding: 24px 40px 24px 0; cursor: pointer; font-size: 18px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 23px; color: var(--c-accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; max-width: 52em; color: var(--c-muted); }
.term-card { padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); }
.term-card h3 { font-family: var(--f-mono); font-size: 20px; overflow-wrap: anywhere; }
.term-card p { margin-top: 16px; color: var(--c-muted); }
.term-card .badge { margin-bottom: 16px; }
.app-store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 10px 24px; border: 1px solid var(--c-clear); border-radius: var(--r-btn); background: var(--c-accent); color: var(--c-on-dark); box-shadow: var(--sh-soft); text-decoration: none; line-height: 1.3; transition: transform var(--motion-fast), background-color var(--motion-fast); }
.app-store-button svg { width: 26px; height: 28px; }
.app-store-button small { display: block; font-size: 11px; }
.app-store-button strong { display: block; font-size: 16px; font-weight: 500; }
.app-store-button:hover, .app-store-button.is-hover { background: var(--c-accent-dark); color: var(--c-on-dark); text-decoration: none; transform: translateY(-1px); }
.app-store-button:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.app-store-button--hero { min-height: 52px; background: var(--c-bg); color: var(--c-accent); box-shadow: var(--sh-btn); }
.app-store-button--hero:hover { background: var(--c-panel); color: var(--c-accent); }
.app-store-button[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.fact-row, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fact-row { margin-top: 24px; }
.fact-label, .badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-bg); color: var(--c-muted); font-size: 12px; overflow-wrap: anywhere; }
.badge { background: var(--c-panel); color: var(--c-accent); border-color: var(--c-panel); }
.fact-label strong { color: var(--c-text); font-weight: 500; }
.official-shot { width: 100%; max-width: 280px; min-width: 0; margin-inline: auto; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { border: 1px solid var(--c-border); border-radius: var(--r-shot); background: var(--c-bg); color: var(--c-text); }
.official-shot figcaption { padding: 14px 16px; font-size: 12px; color: var(--c-muted); }
.shot-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.device-card { display: block; padding: 36px; border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); box-shadow: var(--sh-soft); transition: transform var(--motion-fast); }
.device-card:hover { text-decoration: none; transform: translateY(-3px); }
.device-card > svg { width: 40px; height: 48px; margin-bottom: 24px; color: var(--c-accent); }
.device-card p { margin-top: 16px; color: var(--c-muted); }
.device-card .text-link { display: inline-block; margin-top: 24px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px; border-radius: var(--r-card); border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); }
.article-card h3 { font-size: 23px; }
.article-card h3 a { color: var(--c-text); }
.article-card p { color: var(--c-muted); }
.article-card .text-link { margin-top: auto; padding-top: 12px; }
.callout { margin: 28px 0; padding: 24px 28px; border: 0; border-left: 3px solid var(--c-accent); border-radius: var(--r-btn); background: var(--c-panel); color: var(--c-text); }
.callout p + p { margin-top: 12px; }
.callout strong { font-weight: 500; }
.group-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); overflow: hidden; }
.group-list li + li { border-top: 1px solid var(--c-border); }
.group-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 20px; color: var(--c-text); }
.group-list a::after { content: "›"; color: var(--c-accent); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--c-bg); color: var(--c-text); }
.data-table th, .data-table td, .prose table th, .prose table td, .document-body table th, .document-body table td { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th, .document-body table th { background: var(--c-panel); color: var(--c-text); font-weight: 500; }
.prose table, .document-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--c-bg); color: var(--c-text); }
.prose table code, .document-body table code, .data-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: 30; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); min-height: 56px; padding: 12px 20px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-dark); box-shadow: var(--sh-pill); }
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab small { display: block; font-size: 11px; }
.dl-fab strong { display: block; font-size: 14px; font-weight: 500; }
.dl-fab:hover { background: var(--c-accent-dark); color: var(--c-on-dark); text-decoration: none; }
.article-store-card { margin-top: 56px; padding: 32px; border-radius: var(--r-card); background: var(--c-panel); color: var(--c-text); }
.article-store-card p { margin-block: 18px 24px; color: var(--c-muted); }
.facts-band { margin-top: var(--section-gap); padding-top: 64px; padding-bottom: 64px; background: var(--c-panel); color: var(--c-text); }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-bg); color: var(--c-text); font-size: 12px; }
.swatch::before { content: ""; display: block; height: 64px; margin-bottom: 12px; border-radius: var(--r-btn); background: var(--swatch-color); border: 1px solid var(--c-border); }
.swatch--bg { --swatch-color: var(--c-bg); }
.swatch--panel { --swatch-color: var(--c-panel); }
.swatch--deep { --swatch-color: var(--c-panel-2); }
.swatch--border { --swatch-color: var(--c-border); }
.swatch--accent { --swatch-color: var(--c-accent); }
.swatch--accent-dark { --swatch-color: var(--c-accent-dark); }
.swatch--text { --swatch-color: var(--c-text); }
.swatch--muted { --swatch-color: var(--c-muted); }
.swatch--success { --swatch-color: var(--c-success); }
.swatch--warn { --swatch-color: var(--c-warn); }
.swatch--coral { --swatch-color: var(--c-coral); }
.swatch--magenta { --swatch-color: var(--c-magenta); }
.preview-shot { display: grid; place-items: center; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--c-panel); color: var(--c-muted); font-family: var(--f-mono); font-size: 13px; text-align: center; }
.preview-states { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.preview-states .is-focus { box-shadow: var(--ring-focus); }
.preview-states .is-hover { background: var(--c-accent-dark); color: var(--c-on-dark); }
.preview-page .scan { animation: none; }

@keyframes rule-sweep {
  0% { opacity: 0; transform: translateY(0); }
  6% { opacity: 1; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(calc(var(--lh-code) * 3)); }
  48%, 100% { opacity: 0; transform: translateY(calc(var(--lh-code) * 3)); }
}
@media (max-width: 1240px) {
  .stage { width: 440px; right: 40px; }
}
@media (max-width: 960px) {
  .hero { height: auto; padding-top: 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { height: auto; padding-top: 72px; }
  .stage { position: relative; right: auto; bottom: auto; width: 100%; max-width: 480px; margin: 0 auto calc(var(--overlap) * -1); }
  .float-chip--tl { left: -8px; top: -22px; }
  .float-chip--br { right: -8px; }
  .statusbar { padding-top: calc(var(--overlap) + 36px); padding-bottom: 20px; }
  .statusbar-row { max-width: none; }
  .hero-glow { left: 20%; top: 40%; }
  [role="tablist"] { justify-content: flex-start; }
  .feature-copy, .feature-material { padding: 28px; }
  .feature-material { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px, 4vw, 30px); }
  .feature-pair { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { min-height: 0; }
  .feature-material { min-height: 250px; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .lede { font-size: 16px; }
  .hero .cta { margin-top: 24px; }
  .hero .btn { padding-inline: 18px; }
  .conf-body { font-size: 11.5px; }
  .conf-lines { min-width: 420px; }
  .ln { grid-template-columns: 40px 1fr; }
  .ln-no { padding-right: 12px; }
  .stage-backer { transform: translate(12px, 12px); }
  .float-chip { font-size: 11.5px; padding-inline: 12px; }
  .devices { gap: 10px 16px; }
  .fact-row, .badge-row { flex-direction: row; flex-wrap: wrap; }
  .shot-row { flex-direction: column; align-items: center; }
  .device-card, .article-card, .article-store-card { padding: 24px; }
  .callout { padding: 20px; }
  .material-sheet { padding: 24px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .scan { animation: none; opacity: 0; }
}