.hero-visual { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.hero-geometry { position: relative; z-index: 1; display: block; width: 100%; max-width: 520px; height: auto; color: var(--c-accent); }
.halo { position: absolute; z-index: 0; pointer-events: none; width: 620px; height: 380px; right: -120px; top: 34%; border-radius: var(--r-circle); background: radial-gradient(closest-side, var(--a-14), var(--a-06) 55%, var(--a-00)); }
.probe { position: relative; z-index: 1; width: 100%; max-width: 520px; margin: 0; }
.probe-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 14px 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }
.probe-cap b { font-weight: var(--weight-medium); color: var(--c-accent-dark); }
.probe-cap i { font-style: normal; color: var(--c-muted); }
.probe-win { display: flex; align-items: center; gap: 24px; padding: 26px 30px; background: var(--c-bg); color: var(--c-text); border: 2px solid var(--c-accent); border-radius: var(--r-float); box-shadow: var(--glow-float); }
.ring { flex: none; width: 64px; height: 64px; position: relative; color: var(--c-accent); }
.ring svg { display: block; width: 64px; height: 64px; }
.ring-spin { animation: probe-spin 6s linear infinite; }
.ring-core { position: absolute; inset: 0; }
.ring-border { stroke: var(--c-border); }
.readout { flex: 1; min-width: 0; font-family: var(--font-mono); }
.readout-top { margin: 0; font-size: 14px; font-weight: var(--weight-medium); line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent-dark); }
.readout-rule { position: relative; min-height: 34px; margin-top: 10px; }
.rl { position: absolute; inset: 0; display: block; font-size: 16px; line-height: 1.55; color: var(--c-text); opacity: 0; overflow-wrap: anywhere; animation: probe-cycle 12s linear infinite; }
.rl-long { font-size: 11px; }
.rl:nth-child(2) { animation-delay: 2.4s; }
.rl:nth-child(3) { animation-delay: 4.8s; }
.rl:nth-child(4) { animation-delay: 7.2s; }
.rl:nth-child(5) { animation-delay: 9.6s; }
.rk { font-weight: var(--weight-bold); }
.sep { color: var(--c-muted); }
.pol { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--weight-bold); color: var(--c-text); }
.pol::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-accent); box-shadow: 0 0 0 3px var(--a-06); }
.pol-proxy { color: var(--c-accent-dark); }
.pol-direct::before { background: var(--c-success); }
.pol-reject::before { background: var(--c-error); }
.trace { position: relative; margin: 26px 0 0 120px; padding: 0; list-style: none; }
.trace::before { content: ""; position: absolute; left: -18px; top: -26px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--a-40), var(--a-00)); }
.trace li { display: flex; align-items: center; gap: 14px; min-height: 30px; font-family: var(--font-mono); font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
.trace li::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.trace li:nth-child(1) { opacity: .62; }
.trace li:nth-child(2) { opacity: .42; }
.trace li:nth-child(3) { opacity: .25; }
.trace li:nth-child(4) { opacity: .12; }
@keyframes probe-spin { to { transform: rotate(360deg); } }
@keyframes probe-cycle {
  0% { opacity: 0; transform: translateY(10px); }
  3%, 17% { opacity: 1; transform: none; }
  20%, 100% { opacity: 0; transform: translateY(-10px); }
}
.probe-static .ring-spin, .probe-static .rl { animation: none; }
.probe-static .rl { opacity: 0; }
.probe-static .rl-final { opacity: 1; }

.tabs { min-width: 0; }
.tablist, [role="tablist"].feature-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; }
.tablist [role="tab"] { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 76px; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); font-size: 14px; font-weight: var(--weight-medium); line-height: 1.4; text-align: left; }
.tablist [role="tab"]:hover { border-color: var(--a-40); }
.tablist [role="tab"][aria-selected="true"] { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); box-shadow: var(--shadow-card); }
.tab-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: var(--r-sm); background: var(--c-panel); color: var(--c-accent-dark); }
.tab-icon svg { width: 22px; height: 22px; }
[aria-selected="true"] .tab-icon { background: var(--c-bg); color: var(--c-accent-dark); }
.tab-panel { min-width: 0; margin-bottom: 32px; }
.tabs-ready .tab-panel:not([hidden]) { animation: panel-in .24s var(--ease-out); }
.feature-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: stretch; }
.feature-layout > * { min-width: 0; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; }
.feature-copy h3 { margin: 0 0 20px; font-weight: var(--weight-display); }
.feature-copy p { color: var(--c-muted); }
.feature-copy .callout { margin-top: auto; width: 100%; }
.feature-canvas { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; padding: 48px; border-radius: var(--r-float); background: linear-gradient(135deg, var(--c-panel), var(--c-panel-deep)); color: var(--c-text); }
.fragment-card { min-width: 0; padding: 24px; background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.fragment-card + .fragment-card { margin-left: 30px; }
.fragment-card pre { margin: 14px 0 0; padding: 0; border: 0; background: var(--c-bg); color: var(--c-text); }
.fragment-card p { margin: 12px 0 0; font-size: 15px; color: var(--c-muted); }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

.toc { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin-bottom: 40px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; color: var(--c-muted); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-panel); color: var(--c-accent-dark); }
.toc-sticky { position: sticky; top: 16px; z-index: 10; }
.toc-flow { position: static; }
.faq-list { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.faq-item { min-width: 0; }
.faq-item + .faq-item { border-top: 1px solid var(--c-border); }
.faq-item summary { position: relative; padding: 22px 56px 22px 24px; font-weight: var(--weight-medium); cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 22px; color: var(--c-accent-dark); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--c-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.term-card { min-width: 0; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.term-card dt { margin: 16px 0 12px; font-family: var(--font-mono); font-size: 20px; font-weight: var(--weight-bold); overflow-wrap: anywhere; }
.term-card dd { margin: 0; color: var(--c-muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; max-width: 100%; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-panel); color: var(--c-accent-dark); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--c-accent); }
.status-dot-success { background: var(--c-success); }
.status-dot-warn { background: var(--c-warn); }
.status-dot-error { background: var(--c-error); }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.fact { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-panel-2); color: var(--c-text); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.fact-label { color: var(--c-muted); }

.app-store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; max-width: 100%; padding: 12px 24px; border: 1px solid var(--c-accent); border-radius: var(--r-md); background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-btn); text-decoration: none; transition: background-color var(--duration-fast), box-shadow var(--duration-fast); }
.app-store-button:hover { background: var(--c-accent-dark); color: var(--c-on-accent); border-color: var(--c-accent-dark); box-shadow: var(--shadow-btn-hover); }
.app-store-button svg { width: 26px; height: 28px; flex: none; }
.app-store-copy { display: block; min-width: 0; line-height: 1.3; }
.app-store-copy small { display: block; font-size: 12px; }
.app-store-copy strong { display: block; margin-top: 3px; font-size: 17px; font-weight: var(--weight-medium); }
.store-guide-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 28px; margin-top: 64px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); color: var(--c-text); }
.store-guide-card > div { min-width: 0; flex: 1 1 260px; }
.store-guide-card h2 { margin: 12px 0; font-size: 24px; }
.store-guide-card p { margin: 0; color: var(--c-muted); font-size: 15px; }

.official-shot { width: min(100%, 280px); max-width: 280px; margin: 0 auto; flex-shrink: 0; padding: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-shot); }
.official-shot { filter: none; }
.official-shot img, .shot-placeholder { outline: 1px solid var(--c-border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--c-muted); text-align: center; }
.shot-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-shot); background: var(--c-panel); color: var(--c-muted); font-family: var(--font-mono); font-size: 14px; text-align: center; }
.device-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; min-width: 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.device-symbol { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--r-md); background: var(--c-panel); color: var(--c-accent-dark); }
.device-symbol svg { width: 36px; height: 36px; }
.device-card h3 { margin: 24px 0 14px; }
.device-card p { color: var(--c-muted); }
.device-card .text-link { margin-top: auto; padding-top: 12px; font-size: 15px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.article-card h3 { margin: 20px 0 14px; font-size: 22px; line-height: 1.5; }
.article-card h3 a:hover { color: var(--c-accent-dark); }
.article-card p { color: var(--c-muted); font-size: 16px; }
.article-card .text-link { margin-top: auto; padding-top: 16px; font-size: 14px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--c-muted); }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--c-border); border-left: 3px solid var(--c-accent); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); font-size: 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout-label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--c-accent-dark); }
.setting-group { border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 15px; }
.setting-row + .setting-row { border-top: 1px solid var(--c-border); }
.setting-row > span { min-width: 0; overflow-wrap: anywhere; }
.setting-row::after { content: "›"; flex-shrink: 0; color: var(--c-accent-dark); font-size: 22px; }
.dl-fab { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 40px); min-height: 60px; padding: 12px 18px; border: 1px solid var(--c-accent); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.dl-fab svg { width: 24px; height: 24px; color: var(--c-accent-dark); flex: none; }
.dl-fab strong { display: block; font-size: 14px; font-weight: var(--weight-medium); }
.dl-fab small { display: block; color: var(--c-muted); font-size: 12px; }
.dl-fab:hover { background: var(--c-panel); color: var(--c-text); }
.has-dl-fab { padding-bottom: 100px; }

.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--c-bg); color: var(--c-text); font-size: 15px; }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em; padding: 16px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--c-border); overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th { background: var(--c-panel); color: var(--c-text); font-weight: var(--weight-medium); }
.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; background: var(--c-bg); color: var(--c-text); font-size: 15px; }
.prose table code, .data-table code { overflow-wrap: anywhere; white-space: normal; }

.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-bg); color: var(--c-text); font-size: 12px; }
.swatch-color { display: block; height: 70px; margin-bottom: 12px; border: 1px solid var(--c-border); border-radius: var(--r-xs); }
.swatch-bg { background: var(--c-bg); }
.swatch-panel { background: var(--c-panel); }
.swatch-panel-2 { background: var(--c-panel-2); }
.swatch-panel-deep { background: var(--c-panel-deep); }
.swatch-border { background: var(--c-border); }
.swatch-accent { background: var(--c-accent); }
.swatch-accent-dark { background: var(--c-accent-dark); }
.swatch-text { background: var(--c-text); }
.swatch-muted { background: var(--c-muted); }
.swatch-success { background: var(--c-success); }
.swatch-warn { background: var(--c-warn); }
.swatch-error { background: var(--c-error); }
.swatch-on-accent { background: var(--c-on-accent); }
.token-notes { margin-top: 28px; color: var(--c-muted); font-size: 14px; overflow-wrap: anywhere; }
.type-demo { display: grid; gap: 24px; }
.type-demo > * { margin: 0; }
.type-display { font-family: var(--font-display); font-size: var(--size-h1); line-height: 1.18; font-weight: var(--weight-display); letter-spacing: var(--tracking-display); }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.preview-divider { margin-top: 56px; }
.preview-footer-note { margin-top: 18px; color: var(--c-muted); font-size: 13px; }

@media (max-width: 1100px) {
  .hero-visual { align-items: flex-start; }
  .halo { right: auto; left: 10%; top: 20%; }
  .tablist { gap: 8px; }
  .tablist [role="tab"] { gap: 8px; padding: 10px; font-size: 12px; }
  .tab-icon { width: 30px; height: 30px; }
  .feature-layout { gap: 28px; }
  .feature-canvas { padding: 28px; }
}
@media (max-width: 768px) {
  .tablist, [role="tablist"].feature-tabs { display: flex; max-width: 100%; overflow-x: auto; gap: 10px; padding-bottom: 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tablist [role="tab"] { width: auto; flex: 0 0 auto; min-height: 56px; padding: 10px 16px; border-radius: var(--r-pill); font-size: 13px; scroll-snap-align: start; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .feature-copy .callout { margin-top: 16px; }
}
@media (max-width: 640px) {
  .probe-win { padding: 18px; gap: 16px; }
  .ring, .ring svg { width: 48px; height: 48px; }
  .readout-top { font-size: 12px; letter-spacing: .14em; }
  .readout-rule { min-height: 44px; }
  .rl { font-size: 13px; }
  .rl-long { font-size: 10px; line-height: 1.7; }
  .trace { margin-left: 82px; }
  .trace li { font-size: 11px; }
  .feature-canvas { padding: 22px; }
  .fragment-card { padding: 20px; }
  .fragment-card + .fragment-card { margin-left: 0; }
  .facts { flex-direction: row; flex-wrap: wrap; }
  .fact { padding: 5px 10px; font-size: 12px; }
  .shot-row { flex-direction: column; align-items: center; }
  .official-shot { width: min(100%, 280px); }
  .toc { flex-wrap: nowrap; overflow-x: auto; }
  .toc a { flex-shrink: 0; }
  .faq-item summary { padding-left: 20px; }
  .faq-answer { padding-left: 20px; padding-right: 20px; }
  .device-card, .term-card, .article-card, .store-guide-card { padding: 24px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl { animation: none; opacity: 0; transform: none; }
  .rl-final { opacity: 1; }
  .ring-spin { animation: none; }
}