.hero { position: relative; isolation: isolate; overflow-x: clip; max-width: 100%; background: var(--bg); padding: 32px 24px 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 33%, var(--bg) 0%, var(--clear) 56%), linear-gradient(180deg, var(--wash-light), var(--wash) 52%, var(--bg) 98%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle, var(--dot) .8px, var(--clear) 1px); background-size: 9px 9px; mask-image: linear-gradient(var(--clear), var(--text) 22%, var(--text) 68%, var(--clear) 98%); }
.hero-copy { position: relative; text-align: center; margin: 0 auto; max-width: 1100px; }
.notice { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 18px; background: var(--bg); border-radius: var(--pill); box-shadow: var(--notice-shadow); font-size: var(--small-size); line-height: 1.5; }
.notice-label { display: inline-flex; align-items: center; gap: 7px; }
.notice svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.notice a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.notice a:hover { color: var(--accent-dark); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }
.description { margin: 20px 0 12px; font-size: var(--body-size); line-height: 1.6; color: var(--muted); }
.description strong { font-weight: var(--medium); color: var(--text); }
.trust { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: var(--small-size); color: var(--muted); line-height: 22px; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.platforms { display: flex; justify-content: center; align-items: center; gap: 27px; margin: 16px 0 0; list-style: none; padding: 0; color: var(--muted); font-size: var(--small-size); }
.platforms a { display: flex; align-items: center; gap: 7px; min-height: 24px; }
.platforms a:hover { color: var(--text); }
.platforms svg { width: 19px; height: 19px; fill: currentColor; }
.atlas { position: relative; width: min(1040px, 100%); height: 400px; margin: 16px auto 0; }
.earth { position: absolute; width: 660px; height: 380px; top: 0; left: 50%; transform: translateX(-50%); overflow: visible; }
.porcelain-white { stop-color: var(--bg); }
.porcelain-light { stop-color: var(--panel); }
.porcelain-mid { stop-color: var(--panel-2); }
.porcelain-edge { stop-color: var(--clay-pale); }
.porcelain-shadow { stop-color: var(--clay-dark); }
.glaze-hot { stop-color: var(--bg); stop-opacity: .95; }
.glaze-clear { stop-color: var(--bg); stop-opacity: 0; }
.ground-shadow { fill: var(--shade); }
.ocean-dot { fill: var(--clay-pale); }
.land-dot { fill: var(--clay-dark); }
.land-shadow { fill: var(--clay-pale); }
.globe-grid { fill: none; stroke: var(--clay-pale); stroke-width: .65; opacity: .5; }
.globe-rim { fill: none; stroke: var(--bg); stroke-width: 1.4; opacity: .85; }
.atlas-note { position: absolute; top: 32px; left: 18px; font-size: var(--tiny); font-family: var(--mono); letter-spacing: .12em; color: var(--muted); }
.atlas-note::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--muted); margin-right: 9px; vertical-align: middle; }
.fact { position: absolute; z-index: 1; background: linear-gradient(145deg, var(--bg), var(--panel)); border: var(--line) solid var(--bg); border-radius: var(--pill); box-shadow: var(--lift-shadow); line-height: 1.5; }
.fact-country, .fact-line { padding: 14px 24px; min-width: 160px; text-align: center; }
.fact-country { left: 98px; top: 88px; transform: rotate(-4deg); }
.fact-line { right: 95px; top: 72px; transform: rotate(4deg); }
.fact strong { font-family: var(--display); font-size: var(--stat-size); font-weight: var(--semibold); letter-spacing: -.05em; line-height: 1; }
.fact .unit { font-size: var(--small-size); color: var(--muted); margin-left: 8px; }
.fact-device { top: 257px; left: 50%; transform: translateX(-50%); padding: 12px 22px; font-size: var(--small-size); white-space: nowrap; }
.fact-device b { font-weight: var(--semibold); margin-left: 12px; color: var(--text); }
.device-label { color: var(--muted); }
.helper { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--bg); padding: 13px 18px; border-radius: var(--pill); font-size: var(--small-size); box-shadow: var(--soft-shadow); z-index: 2; line-height: 1.5; }
.helper svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.helper-account { left: 52px; top: 218px; transform: rotate(3deg); }
.helper-refund { right: 35px; top: 209px; transform: rotate(-3deg); }
.flags { position: absolute; top: 318px; left: 50%; transform: translateX(-50%); margin: 0; padding: 13px 23px; list-style: none; display: flex; align-items: center; justify-content: center; gap: 22px; background: var(--bg); border: var(--line) solid var(--bg); border-radius: var(--pill); box-shadow: var(--soft-shadow); white-space: nowrap; z-index: 3; }
.flags a { display: flex; align-items: center; gap: 8px; font-size: var(--small-size); min-height: 24px; }
.flags a:hover { color: var(--accent-dark); }
.flag { width: 25px; height: 17px; border-radius: var(--small); overflow: hidden; box-shadow: 0 0 0 1px var(--flag-edge); }
.flag-red { fill: var(--flag-red); }
.flag-blue { fill: var(--flag-blue); }
.flag-white { fill: var(--flag-white); }
.flag-line-white { stroke: var(--flag-white); }
.flag-line-red { stroke: var(--flag-red); }
.atlas figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: var(--muted); font-size: var(--tiny); letter-spacing: .025em; }
.next-edge { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); max-width: 1168px; margin: 18px auto 0; padding: 18px 0; border-top: var(--line) solid var(--border); font-size: var(--small-size); color: var(--muted); }
.next-edge a { display: flex; align-items: center; gap: 10px; color: var(--text); min-height: 24px; }

.tabs { min-width: 0; }
[role="tablist"], .tab-list { display: flex; gap: var(--space-1); padding: var(--space-1); background: var(--panel-2); border-radius: var(--pill); width: fit-content; max-width: 100%; overflow-x: auto; }
[role="tab"] { flex-shrink: 0; min-height: 44px; padding: 10px 24px; border: var(--line) solid var(--clear); border-radius: var(--pill); background: var(--clear); font-size: var(--nav-size); }
[role="tab"][aria-selected="true"] { color: var(--accent-dark); background: var(--bg); border-color: var(--bg); box-shadow: var(--soft-shadow); font-weight: var(--semibold); }
[role="tabpanel"] { margin-top: var(--space-4); min-width: 0; }
.toc-tabs { display: flex; position: sticky; top: var(--toc-offset); z-index: 20; gap: var(--space-1); max-width: 100%; padding: var(--space-1); overflow-x: auto; background: var(--bg); border-block: var(--line) solid var(--border); scrollbar-width: thin; }
.toc-tabs a { display: flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 8px 18px; border-radius: var(--pill); font-size: var(--nav-size); }
.toc-tabs a.is-current { background: var(--wash); color: var(--accent-dark); font-weight: var(--semibold); }
.toc-tabs.toc-static { position: static; }
body:has(.toc-tabs) section[id], body:has(.toc-tabs) :is(h2, h3)[id] { scroll-margin-top: var(--toc-landing); }

.faq-list { border-top: var(--line) solid var(--border); }
.faq { border-bottom: var(--line) solid var(--border); padding-block: var(--space-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 44px; list-style: none; font-weight: var(--semibold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--round); background: var(--panel-2); color: var(--accent-dark); font-family: var(--mono); }
.faq[open] summary::after { content: '−'; }
.faq p { max-width: var(--reading-width); margin: var(--space-2) 0; color: var(--muted); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-4); border: var(--line) solid var(--border); border-radius: var(--soft); background: linear-gradient(145deg, var(--bg), var(--panel)); }
.plan-card.is-current { border-color: var(--accent-dark); background: linear-gradient(145deg, var(--bg), var(--wash-light)); box-shadow: var(--lift-shadow); }
.plan-card h3 { margin-top: var(--space-3); }
.plan-price { font-family: var(--display); font-size: var(--h2); font-weight: var(--semibold); line-height: 1.2; font-variant-numeric: tabular-nums; margin-bottom: var(--space-2); }
.plan-price small { font-size: var(--small-size); font-weight: var(--regular); color: var(--muted); }
.plan-details { list-style: none; padding: 0; margin: 0 0 var(--space-4); font-size: var(--nav-size); color: var(--muted); }
.plan-details li { padding-block: var(--space-1); }
.plan-card .button { margin-top: auto; width: 100%; }
.badge, .tag { display: inline-flex; align-items: center; gap: var(--space-1); max-width: 100%; overflow-wrap: anywhere; padding: 5px 12px; border-radius: var(--pill); font-size: var(--small-size); line-height: 1.5; background: var(--panel-2); color: var(--text); }
.badge-best { background: var(--wash); color: var(--accent-dark); }
.badge-success { background: var(--panel-2); color: var(--success); }
.badge-warning { background: var(--wash-light); color: var(--warn); }
.badge-error { background: var(--panel); color: var(--error); }
.status-dot { width: 6px; height: 6px; border-radius: var(--round); background: var(--success); flex-shrink: 0; }

.table-scroll { width: 100%; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: var(--line) solid var(--border); border-radius: var(--soft); background: var(--bg); }
.data-table, .route-table { width: 100%; min-width: 660px; font-size: var(--nav-size); }
.data-table caption, .route-table caption { text-align: start; padding: var(--space-3); font-weight: var(--semibold); color: var(--text); }
.data-table th, .data-table td, .route-table th, .route-table td { padding: var(--space-2) var(--space-3); border-bottom: var(--line) solid var(--border); vertical-align: top; }
.data-table thead, .route-table thead { background: var(--panel-2); color: var(--text); }
.data-table tbody th, .route-table tbody th { color: var(--text); font-weight: var(--semibold); }
.route-region th { background: var(--wash-light); color: var(--accent-dark); }
.prose > .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; }

.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.platform-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); background: var(--panel); border-radius: var(--soft); border-top: var(--line) solid var(--bg); }
.platform-card svg { width: 28px; height: 28px; fill: currentColor; }
.platform-card h3 { font-size: var(--large); margin: 0; }
.platform-card .button { padding-inline: var(--space-2); font-size: var(--small-size); margin-top: auto; width: 100%; }
.article-card { display: flex; flex-direction: column; gap: var(--space-2); padding-block: var(--space-3); border-top: var(--line) solid var(--border); }
.article-card h3 { margin: 0; }
.article-card h3 a:hover { color: var(--accent-dark); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--small-size); color: var(--muted); }
.article-card p { font-size: var(--nav-size); color: var(--muted); }
.article-card .text-link { margin-top: auto; align-self: flex-start; }
.article-hero { position: relative; overflow-x: clip; background: var(--panel); border-radius: var(--soft); padding: var(--space-6); }
.article-hero h1 { font-size: var(--h2); max-width: 820px; padding-right: var(--space-8); }
.article-stamp { position: absolute; right: 24px; top: 24px; display: grid; place-items: center; width: 64px; height: 64px; border: 3px double var(--accent-dark); border-radius: var(--round); transform: rotate(-10deg); color: var(--accent-dark); font-family: var(--mono); font-size: var(--small-size); }
.callout { margin: var(--space-4) 0; padding: var(--space-3); background: var(--wash-light); border-left: 3px solid var(--accent); border-radius: 0 var(--soft) var(--soft) 0; }
.callout p:last-child { margin-bottom: 0; }
.article-promo, .cta-band { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5); background: linear-gradient(110deg, var(--wash), var(--clay-pale)); border-radius: var(--soft); }
.article-promo p, .cta-band p { margin-bottom: 0; }
.article-promo .button, .cta-band .button { flex-shrink: 0; }
.promo-brand { font-size: var(--h3); font-weight: var(--heavy); }
.float-cta { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: var(--line) solid var(--border); border-radius: var(--pill); background: var(--bg); box-shadow: var(--soft-shadow); font-size: var(--small-size); font-weight: var(--medium); }
.float-cta:hover { background: var(--panel); }
body:has(.float-cta)::after { content: ''; display: block; height: calc(88px + env(safe-area-inset-bottom, 0px)); }
.scene-layout { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: var(--space-8); }
.scene-index { align-self: start; position: sticky; top: var(--anchor-offset); }
.scene-index a { display: flex; align-items: center; min-height: 44px; font-size: var(--nav-size); color: var(--muted); }
.scene-index a:hover { color: var(--accent-dark); }
.explanation-band { padding-block: var(--space-4); border-bottom: var(--line) solid var(--border); }
.explanation-band:nth-child(even) { background: linear-gradient(90deg, var(--clear), var(--panel), var(--clear)); }
.explanation-band svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; margin-bottom: var(--space-2); }
.explanation-band p { color: var(--muted); margin-bottom: 0; }

.counter-value, [data-counter] { display: inline-block; min-width: 3ch; text-align: end; font-variant-numeric: tabular-nums; }
.route-ticker { overflow: hidden; max-width: 100%; background: var(--panel); padding-block: var(--space-3); }
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; flex-shrink: 0; align-items: center; gap: var(--space-6); padding-right: var(--space-6); min-width: 100vw; }
.ticker-group span { white-space: nowrap; font-family: var(--mono); color: var(--muted); }
.ticker-control { margin-bottom: var(--space-2); }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.swatch { border: var(--line) solid var(--border); border-radius: var(--soft); overflow: hidden; background: var(--bg); }
.swatch code { display: block; padding: var(--space-2); color: var(--text); font-size: var(--small-size); }
.swatch-color { height: 72px; border-bottom: var(--line) solid var(--border); }
.swatch-bg { background: var(--bg); }
.swatch-panel { background: var(--panel); }
.swatch-panel-2 { background: var(--panel-2); }
.swatch-border { background: var(--border); }
.swatch-accent { background: var(--accent); }
.swatch-accent-dark { background: var(--accent-dark); }
.swatch-text { background: var(--text); }
.swatch-muted { background: var(--muted); }
.swatch-success { background: var(--success); }
.swatch-warn { background: var(--warn); }
.swatch-error { background: var(--error); }
.swatch-wash { background: var(--wash); }
.swatch-wash-light { background: var(--wash-light); }
.swatch-clay { background: var(--clay); }
.swatch-clay-dark { background: var(--clay-dark); }
.swatch-clay-pale { background: var(--clay-pale); }
.swatch-shade { background: var(--shade); }
.swatch-dot { background: var(--dot); }
.swatch-clear { background: var(--clear); }
.swatch-edge { background: var(--edge-warm); }
.swatch-veil { background: var(--veil); }
.swatch-secondary { background: var(--secondary-surface); }
.swatch-flag-red { background: var(--flag-red); }
.swatch-flag-blue { background: var(--flag-blue); }
.swatch-flag-white { background: var(--flag-white); }
.swatch-flag-edge { background: var(--flag-edge); }
.type-sample { border-bottom: var(--line) solid var(--border); padding-block: var(--space-3); }
.type-display { font-size: var(--h1); font-weight: var(--heavy); line-height: var(--heading-leading); letter-spacing: var(--tracking); }
.preview-note { font-size: var(--small-size); color: var(--muted); margin-top: var(--space-2); }

@media (min-width: 1600px) {
  .hero { padding-top: 48px; }
  .atlas { margin-top: 24px; }
}
@media (max-width: 1000px) {
  .atlas-note { left: 0; }
  .fact-country { left: 4%; }
  .fact-line { right: 4%; }
  .helper-account { left: 0; }
  .helper-refund { right: 0; }
  .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hero { padding-inline: 16px; }
  .trust { gap: 16px; }
  .atlas-note { display: none; }
  .earth { width: 580px; height: 334px; top: 16px; }
  .fact-country { left: 1%; top: 76px; }
  .fact-line { right: 1%; top: 65px; }
  .fact-country, .fact-line { min-width: 132px; padding: 12px 17px; }
  .helper-account { top: 219px; }
  .helper-refund { top: 207px; }
  .plan-grid { grid-template-columns: 1fr; }
  .scene-layout { grid-template-columns: 1fr; gap: var(--space-3); }
  .scene-index { position: static; display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .article-promo, .cta-band { flex-direction: column; align-items: flex-start; padding: var(--space-4); }
  .article-stamp { position: static; margin-bottom: var(--space-3); transform: none; }
  .article-hero { padding: var(--space-3); }
  .article-hero h1 { padding-right: 0; font-size: var(--mobile-h1); }
  .type-display { font-size: var(--mobile-h1); }
}
@media (max-width: 640px) {
  .hero { padding-top: 20px; }
  .notice { font-size: var(--tiny); min-height: 32px; padding: 7px 13px; gap: 12px; }
  .hero h1 { max-width: 360px; }
  .hero-actions { gap: 12px; }
  .description { font-size: var(--nav-size); line-height: 1.7; max-width: 310px; margin: 18px auto 10px; }
  .trust { font-size: var(--tiny); gap: 12px; flex-wrap: wrap; row-gap: 5px; }
  .trust li { gap: 4px; }
  .trust svg { width: 13px; height: 13px; }
  .platforms { gap: 10px; margin-top: 15px; font-size: var(--micro); }
  .platforms a { gap: 4px; }
  .platforms svg { width: 15px; height: 15px; }
  .atlas { height: 346px; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: end; padding-bottom: 24px; }
  .earth { width: 100%; max-width: 100%; height: 260px; top: 0; }
  .fact-country, .fact-line { top: 63px; min-width: 92px; padding: 10px 13px; transform: none; }
  .fact-country { left: 0; }
  .fact-line { right: 0; }
  .fact strong { font-size: var(--h3); }
  .fact .unit { font-size: var(--tiny); margin-left: 4px; }
  .fact-device { top: 204px; padding: 9px 15px; font-size: var(--tiny); }
  .fact-device b { margin-left: 8px; }
  .flags { top: 247px; width: 100%; gap: 0; justify-content: space-between; padding: 10px 12px; }
  .flags a { gap: 4px; font-size: var(--micro); }
  .flag { width: 21px; height: 14px; }
  .helper { position: static; transform: none; justify-content: center; gap: 6px; padding: 9px 8px; font-size: var(--micro); }
  .helper svg { width: 14px; height: 14px; }
  .atlas figcaption { font-size: var(--caption-mobile); bottom: 1px; }
  .next-edge { margin-top: 16px; padding-top: 14px; font-size: var(--tiny); }
  .float-cta { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 10px 13px; font-size: var(--tiny); }
  .platform-grid, .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card { padding: var(--space-3); }
}
@media (max-width: 360px) {
  .platforms { gap: 6px; }
  .platforms a { gap: 3px; }
  .flags { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { width: 100%; transform: none !important; flex-wrap: wrap; }
  .ticker-group { min-width: 0; flex-wrap: wrap; padding: 0; gap: var(--space-3); }
  .ticker-group[data-ticker-clone] { display: none; }
}