.stage { position: relative; container-type: inline-size; width: calc(100% + 40px); margin-right: -40px; aspect-ratio: 100/83; }
.orbit { position: absolute; left: 47%; top: 47%; aspect-ratio: 1; border-radius: var(--radius-round); border: 1px solid var(--border); transform: translate(-50%,-50%); }
.orbit--outer { width: 80cqw; }
.orbit--inner { width: 54cqw; border-style: dashed; border-color: var(--border-strong); opacity: .6; }
.ipad { position: absolute; left: 0; top: 4cqw; width: 80cqw; height: 57cqw; padding: 1.3cqw; background: var(--text); color: var(--on-dark); border-radius: var(--radius-tablet); box-shadow: inset 0 0 0 1px var(--bezel-edge),var(--shadow-back); z-index: 1; }
.ipad::before { content: ""; position: absolute; top: .4cqw; left: 50%; width: .55cqw; height: .55cqw; border-radius: var(--radius-round); background: var(--bezel-edge); transform: translateX(-50%); }
.ipad__screen { height: 100%; overflow: hidden; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-tablet-screen); }
.doc__name { display: flex; align-items: center; gap: .9cqw; margin: 0; padding: 2.2cqw 3cqw 1.9cqw; border-bottom: 1px solid var(--border); font: 1.5cqw/1 var(--font-mono); color: var(--text-muted); }
.doc__name svg { width: 1.7cqw; height: 1.7cqw; color: var(--text-faint); }
.doc { margin: 0; padding: 1.9cqw 0; list-style: none; font-family: var(--font-mono); font-size: 2.05cqw; line-height: 3.75cqw; color: var(--text); white-space: pre; }
.doc li { position: relative; display: flex; }
.doc__ln { position: relative; z-index: 1; flex: none; width: 6.4cqw; padding-right: 1.8cqw; margin-right: 2.2cqw; text-align: right; color: var(--text-faint); border-right: 1px solid var(--border); }
.doc__code { position: relative; z-index: 1; }
.doc .is-rule::before { content: ""; position: absolute; top: .25cqw; bottom: .25cqw; left: 7.4cqw; right: 1.6cqw; border-radius: var(--radius-highlight); background: var(--accent-soft); opacity: 0; animation: readline 6s linear infinite; }
.doc .r2::before { animation-delay: 1.5s; }
.doc .r3::before { animation-delay: 3s; }
.doc .r4::before { animation-delay: 4.5s; }
@keyframes readline { 0% { opacity: 0; } 4%,22% { opacity: 1; } 27%,100% { opacity: 0; } }
.t-sec { font-weight: var(--weight-medium); }
.t-op { color: var(--text-muted); }
.t-val, .t-direct { color: var(--text-muted); }
.t-proxy { color: var(--accent); font-weight: var(--weight-medium); }
.iphone { position: absolute; left: 62cqw; top: 23cqw; width: 27cqw; height: 57cqw; padding: 1cqw; background: var(--text); color: var(--on-dark); border-radius: var(--radius-phone); box-shadow: inset 0 0 0 1px var(--bezel-edge),var(--shadow-front); z-index: 2; animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.iphone__screen { position: relative; height: 100%; overflow: hidden; padding: 5.4cqw 2.2cqw 2.4cqw; background: var(--bg-panel); color: var(--text); border-radius: var(--radius-phone-screen); }
.iphone__screen::before { content: ""; position: absolute; top: 1.3cqw; left: 50%; width: 7.6cqw; height: 2.1cqw; border-radius: var(--radius-pill); background: var(--text); transform: translateX(-50%); }
.iphone__screen::after { content: ""; position: absolute; bottom: 1.1cqw; left: 50%; width: 8.6cqw; height: .42cqw; border-radius: var(--radius-pill); background: var(--text); transform: translateX(-50%); }
.share__label { margin: 0 0 1cqw; font-size: 1.35cqw; line-height: 1.4; color: var(--text-muted); }
.share__link { margin: 0; padding: 1.3cqw 1.4cqw; font: 1.42cqw/1.75 var(--font-mono); color: var(--text); overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-share); }
.share__link .fld { border-bottom: 1px dashed var(--text-faint); }
.fields { margin: 0 0 0 1.5cqw; padding: 1.2cqw 0 .2cqw; list-style: none; border-left: 1px dashed var(--border-strong); }
.fields li { position: relative; padding: .85cqw 0 .85cqw 3.6cqw; font-size: 1.45cqw; line-height: 1.35; }
.fields li::before { content: ""; position: absolute; left: 0; top: 1.75cqw; width: 2cqw; border-top: 1px dashed var(--border-strong); }
.fields li::after { content: ""; position: absolute; left: 2.05cqw; top: 1.32cqw; width: .9cqw; height: .9cqw; border-radius: var(--radius-round); background: var(--warn); }
.fields__key { display: block; color: var(--text); font-weight: var(--weight-medium); }
.fields__val { display: block; font-family: var(--font-mono); color: var(--text-muted); }
.fields__val::before { content: "\2192\00a0"; color: var(--text-muted); }

.capability { background: var(--bg-panel); color: var(--text); border-radius: var(--radius-xl); padding: 64px; }
.capability__tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.capability__tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text); font-size: var(--size-small); }
.capability__tabs [role="tab"]:hover { border-color: var(--text-muted); }
.capability__tabs [role="tab"][aria-selected="true"] { background: var(--bg-panel-2); color: var(--on-dark); border-color: var(--bg-panel-2); }
.feature-panel { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px; align-items: center; }
.feature-panel h3 { margin: 0 0 22px; font-size: var(--size-h2); letter-spacing: var(--tracking-title); }
.feature-panel p { color: var(--text-muted); line-height: 1.85; }
.feature-sample { position: relative; padding-bottom: 24px; min-width: 0; }
.feature-sample pre { margin: 0; padding: 40px 32px 64px; box-shadow: var(--shadow-back); }
.field-note { position: relative; width: fit-content; max-width: calc(100% - 24px); margin: -24px 0 0 auto; padding: 16px 22px; background: var(--bg-panel); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); font-size: var(--size-small); }
.field-note::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: var(--radius-round); background: var(--warn); }
.toc { position: sticky; top: var(--header-h); z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-pill); color: var(--text-muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel); color: var(--accent); }
.toc--flow { position: static; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 24px 44px 24px 0; cursor: pointer; list-style: none; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 24px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { max-width: 70ch; padding-bottom: 24px; color: var(--text-muted); line-height: 1.85; }
.faq-item__answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); }
.term-card dt { font-family: var(--font-mono); font-size: 18px; font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.term-card dd { margin: 16px 0 0; color: var(--text-muted); line-height: 1.85; }
.appstore-button { min-height: 52px; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.appstore-button:hover { background: var(--accent-dark); color: var(--on-accent); }
.appstore-button svg { width: 18px; height: 18px; margin-top: -2px; }
.appstore-button__copy { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.appstore-button__copy small { font-size: 11px; font-weight: var(--weight-regular); }
.appstore-button--stacked { padding-block: 10px; min-height: 60px; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg-panel); color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.fact strong { color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; overflow-wrap: anywhere; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--success); }
.official-shots { display: flex; flex-wrap: wrap; gap: 32px; align-items: start; justify-content: center; }
.official-shot { width: min(100%,280px); margin: 0; padding: 0; flex-shrink: 0; min-width: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.official-shot figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-small); line-height: 1.7; }
.official-shot__placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750/1334; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text-muted); text-align: center; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.device-card__icon { width: 38px; height: 38px; margin-bottom: 24px; }
.device-card h3 { margin: 0 0 12px; }
.device-card p { color: var(--text-muted); }
.device-card .text-link { margin-top: auto; padding-top: 12px; }
.section--dark .device-card .text-link { color: var(--accent-dark); }
.article-card { display: block; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-panel); color: var(--text); text-decoration: none; box-shadow: var(--shadow-soft); transition: border-color var(--duration-fast) var(--ease),transform var(--duration-fast) var(--ease); }
.article-card:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-2px); }
.article-card h3 { margin: 24px 0 16px; }
.article-card p { margin-bottom: 0; color: var(--text-muted); line-height: 1.8; }
.article-card__meta { font-size: 13px; color: var(--text-muted); }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 3px solid var(--accent); border-radius: var(--radius-xs); background: var(--accent-soft); color: var(--text); }
.callout > :last-child { margin-bottom: 0; }
.callout--risk { border-left-color: var(--warn); background: var(--bg-panel); color: var(--text); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-table { border-collapse: collapse; width: 100%; color: var(--text); font-size: var(--size-small); }
.data-table :is(th,td), .prose table :is(th,td) { min-width: 7em; padding: 16px 20px; text-align: left; vertical-align: top; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.data-table th, .prose table th { background: var(--bg); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td { background: var(--bg-panel); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; overscroll-behavior-inline: contain; }
.prose table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); min-height: 56px; padding: 14px 20px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius-pill); box-shadow: var(--shadow-btn); font-size: var(--size-small); font-weight: var(--weight-medium); text-decoration: none; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 20px; height: 20px; }
body:has(.dl-fab) .site-footer { padding-bottom: 112px; }
.article-store-card { margin-top: 56px; padding: 32px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.article-store-card h2 { margin-top: 0; font-size: var(--size-h3); }
.article-store-card p { color: var(--text-muted); }
.article-store-card .actions { margin-top: 24px; }

.preview-section-title { margin: 0 0 36px; }
.preview-stack { display: grid; gap: 32px; }
.preview-swatches { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.preview-swatch { min-width: 0; }
.preview-swatch__chip { height: 64px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); margin-bottom: 10px; color: var(--text); }
.preview-swatch code { font-size: 13px; }
.swatch-bg { background: var(--bg); }
.swatch-panel { background: var(--bg-panel); }
.swatch-panel-2 { background: var(--bg-panel-2); }
.swatch-border { background: var(--border); }
.swatch-border-strong { background: var(--border-strong); }
.swatch-accent { background: var(--accent); }
.swatch-accent-dark { background: var(--accent-dark); }
.swatch-accent-soft { background: var(--accent-soft); }
.swatch-text { background: var(--text); }
.swatch-muted { background: var(--text-muted); }
.swatch-faint { background: var(--text-faint); }
.swatch-success { background: var(--success); }
.swatch-warn { background: var(--warn); }
.swatch-error { background: var(--error); }
.swatch-on-accent { background: var(--on-accent); }
.swatch-on-dark { background: var(--on-dark); }
.swatch-on-dark-muted { background: var(--on-dark-muted); }
.swatch-dark-card { background: var(--dark-card); }
.swatch-dark-line { background: var(--dark-line); }
.swatch-bezel { background: var(--bezel-edge); }
.swatch-veil { background: var(--veil); }
.preview-type-display { font-size: var(--size-h1); line-height: 1.15; letter-spacing: var(--tracking-title); }
.preview-fab { position: static; width: fit-content; margin-top: 24px; }
.preview-section-caption { color: var(--text-muted); margin-top: -20px; margin-bottom: 32px; }

@media (max-width: 960px) {
  .stage { width: 100%; margin-right: 0; }
  .feature-panel { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .capability { padding: 40px; }
  .preview-swatches { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .capability { padding: 28px 20px; }
  .capability__tabs { margin-bottom: 32px; gap: 8px; }
  .capability__tabs [role="tab"] { padding-inline: 14px; }
  .feature-sample pre { padding: 24px 20px 52px; }
  .field-note { padding: 14px 16px; }
  .official-shots { flex-direction: column; align-items: center; }
  .fact-row { flex-direction: row; flex-wrap: wrap; }
  .preview-swatches { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .device-card, .article-card, .article-store-card { padding: 24px; }
  .callout { padding: 20px; }
  .toc { flex-wrap: nowrap; overflow-x: auto; }
  .toc a { white-space: nowrap; flex-shrink: 0; }
  .dl-fab { right: 20px; bottom: 16px; }
  .preview-fab { right: auto; bottom: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .iphone { animation: none; }
  .doc .is-rule::before { animation: none; opacity: 0; }
  .doc .r4::before { opacity: 1; }
}