.top::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg,rgba(var(--accent-rgb),.06),rgba(var(--accent-rgb),.028) 38%,rgba(var(--accent-rgb),0) 72%);
}
.top::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; top: -14%; right: 3%; width: 44%; aspect-ratio: 1.25/1;
  background: radial-gradient(closest-side,rgba(var(--sky-rgb),.42),rgba(var(--sky-rgb),.14) 55%,rgba(var(--sky-rgb),0));
}
.hero { position: relative; padding-top: 28px; }
.hero-copy { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px 0 10px; margin-bottom: 20px; border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(var(--accent-rgb),.07); font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.kicker-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent2-rgb),.18); }
.hero h1 { margin: 0 0 24px; font-size: var(--hero-size); }
.h1-mark { padding: 0 .04em; background: linear-gradient(180deg,transparent 64%,rgba(var(--accent2-rgb),.24) 64%,rgba(var(--accent-rgb),.12) 92%,transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.sub { max-width: 900px; margin: 0 0 16px; font-size: 20px; line-height: 1.6; color: var(--muted); }
.sub strong { color: var(--text); font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0 0 18px; font-size: 14px; line-height: 22px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--success); }
.hero-rows { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 30px; }
.row-group { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.row-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--faint); flex-shrink: 0; }
.row-sep { width: 1px; height: 18px; flex-shrink: 0; background: var(--border); }
.plat-list,.flag-list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 18px; }
.plat-list li,.flag-list li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 26px; color: var(--muted); white-space: nowrap; }
.plat-list svg { width: 17px; height: 17px; color: var(--text); opacity: .78; }
.flag-list svg,.hub svg,.d-head svg,.req-title svg { overflow: hidden; }
.flag-list svg { width: 24px; height: 16px; border-radius: var(--r-micro); box-shadow: 0 1px 3px rgba(var(--ink-rgb),.12); }
.fl-red { fill: var(--flag-red); }
.fl-white { fill: var(--flag-white); }
.fl-blue { fill: var(--flag-blue); }
.fl-green { fill: var(--flag-green); }
.fl-itred { fill: var(--flag-it-red); }
.fl-jp { fill: var(--flag-jp); }
.fl-edge { fill: none; stroke: rgba(var(--ink-rgb),.14); stroke-width: 1; }
.stage { position: relative; z-index: 1; width: 92%; margin-inline: auto; }
.stage > img { display: block; margin-inline: auto; object-fit: contain; }
.device {
  position: relative; margin: 0; padding: 14px; border-radius: var(--r-frame);
  background: linear-gradient(180deg,var(--graphite-2),var(--graphite) 14%,var(--graphite));
  box-shadow: inset 0 1px 0 rgba(var(--white-rgb),.16),inset 0 0 0 1px rgba(var(--white-rgb),.05),0 18px 36px -12px rgba(var(--accent-rgb),.12),0 46px 96px -8px rgba(var(--accent-rgb),.12);
}
.wall {
  position: relative; padding: 22px 28px; border-radius: var(--r-md); overflow: hidden;
  background: radial-gradient(60% 70% at 16% 0%,rgba(var(--white-rgb),.42),rgba(var(--white-rgb),0) 70%),
    radial-gradient(50% 60% at 92% 18%,rgba(var(--sky-rgb),.55),rgba(var(--sky-rgb),0) 70%),
    linear-gradient(176deg,var(--accent-2),rgba(var(--accent2-rgb),.62) 34%,var(--mist) 74%,var(--bg));
}
.wall::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; background: linear-gradient(180deg,rgba(var(--white-rgb),0),rgba(var(--white-rgb),.38)); }
.win {
  position: relative; z-index: 1; border-radius: var(--r-md); background: var(--panel); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--ink-rgb),.07),0 2px 6px rgba(var(--ink-rgb),.06),0 22px 44px -14px rgba(var(--ink-rgb),.24),inset 0 1px 0 rgba(var(--white-rgb),1);
}
.win-bar,.win-body { display: grid; grid-template-columns: 230px 330px minmax(0,1fr); }
.win-bar > *,.win-body > * { min-width: 0; }
.win-bar { height: 40px; align-items: center; background: linear-gradient(180deg,var(--panel),var(--panel-3)); border-bottom: 1px solid var(--border-soft); box-shadow: inset 0 1px 0 rgba(var(--white-rgb),1); }
.bar-left { display: flex; align-items: center; gap: 7px; padding-left: 14px; height: 100%; background: var(--panel-3); border-right: 1px solid var(--border-soft); }
.mac-dot { width: 11px; height: 11px; flex-shrink: 0; border-radius: var(--r-pill); box-shadow: inset 0 0 0 .5px rgba(var(--ink-rgb),.16); }
.mac-red { background: var(--dot-red); }
.mac-amber { background: var(--dot-amber); }
.mac-green { background: var(--dot-green); }
.bar-app { margin-left: auto; margin-right: 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.bar-mid { padding: 0 12px; border-right: 1px solid var(--border-soft); height: 100%; display: flex; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 27px; padding: 0 10px; border-radius: var(--r-xs); background: var(--panel-2); font-size: 12.5px; color: var(--faint); }
.search svg { width: 13px; height: 13px; }
.search kbd { margin-left: auto; font-size: 10.5px; padding: 1px 5px; border-radius: var(--r-micro); background: var(--panel); border: 1px solid var(--border); }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 16px; }
.bar-ic { width: 15px; height: 15px; color: var(--faint); }
.lock-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 10px 0 7px; border-radius: var(--r-pill); background: rgba(var(--success-rgb),.10); color: var(--success); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lock-badge svg { width: 14px; height: 14px; }
.side { background: var(--panel-3); border-right: 1px solid var(--border-soft); padding: 10px 10px 12px; }
.side-row,.hub { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 0 8px; border-radius: var(--r-xs); font-size: 13px; }
.side-row svg { width: 15px; height: 15px; color: var(--muted); }
.side-row span,.hub span { flex: 1; min-width: 0; }
.count { font-family: var(--font-mono); font-weight: 500; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: var(--r-count); background: rgba(var(--ink-rgb),.06); color: var(--muted); }
.count-accent { background: rgba(var(--accent-rgb),.10); color: var(--accent-dark); }
.side-group { margin: 12px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--faint); line-height: 20px; }
.hub svg { width: 21px; height: 14px; border-radius: var(--r-flag); box-shadow: 0 1px 2px rgba(var(--ink-rgb),.14); }
.hub.is-current { background: var(--panel); box-shadow: 0 0 0 1px var(--border),0 2px 6px rgba(var(--accent-rgb),.08); font-weight: 600; }
.tag { font-size: 10.5px; line-height: 18px; font-weight: 600; padding: 0 7px; border-radius: var(--r-count); overflow-wrap: anywhere; max-width: 100%; }
.tag-iepl { background: rgba(var(--accent-rgb),.10); color: var(--accent-dark); }
.tag-relay { background: rgba(var(--ink-rgb),.06); color: var(--muted); }
.tag-direct { background: rgba(var(--success-rgb),.11); color: var(--success-ink); }
.list { border-right: 1px solid var(--border-soft); padding: 0 8px 8px; }
.list-head { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.list-head svg { width: 14px; height: 14px; color: var(--faint); }
.req { position: relative; display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 4px 12px 4px 14px; border-radius: var(--r-sm); margin-bottom: 2px; }
.req + .req::before { content: ""; position: absolute; left: 14px; right: 12px; top: -1px; height: 1px; background: var(--border-soft); }
.req.is-current { background: rgba(var(--accent-rgb),.12); }
.req.is-current::before,.req.is-current + .req::before { display: none; }
.req.is-current::after { content: ""; position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: var(--r-flag); background: var(--accent); }
.req-ic { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--panel-2); color: var(--muted); font: 600 14px var(--font-mono); }
.req-ic svg { width: 16px; height: 16px; }
.req.is-current .req-ic { background: var(--panel); color: var(--accent-dark); box-shadow: 0 1px 3px rgba(var(--accent-rgb),.14); }
.req-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.req-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.req-title i { font-style: normal; font-weight: 400; color: var(--faint); }
.req-title svg { width: 15px; height: 10px; border-radius: var(--r-flag); box-shadow: 0 0 0 .5px rgba(var(--ink-rgb),.16); }
.req-note { font-size: 12px; color: var(--muted); }
.req.is-current .req-title { color: var(--accent-dark); }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.req-cat { font-size: 11px; color: var(--faint); white-space: nowrap; }
.req-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent-2); }
.detail { background: var(--bg); padding: 16px 22px; display: flex; flex-direction: column; gap: 11px; }
.d-head { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.d-head svg { width: 24px; height: 16px; border-radius: var(--r-flag); box-shadow: 0 1px 3px rgba(var(--ink-rgb),.14); }
.d-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.35; }
.d-state { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--success); white-space: nowrap; }
.d-state::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--success); box-shadow: 0 0 0 3px rgba(var(--success-rgb),.16); }
.toggles { border-radius: var(--r-sm); background: var(--panel); box-shadow: 0 0 0 1px var(--border-soft),0 4px 12px rgba(var(--accent-rgb),.05); }
.toggles li { display: flex; align-items: center; gap: 10px; min-height: 28px; padding: 2px 10px; font-size: 12.5px; }
.toggles li + li { border-top: 1px solid var(--border-soft); }
.t-ic { display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: var(--r-count); background: rgba(var(--accent-rgb),.10); color: var(--accent-dark); }
.t-ic svg { width: 11px; height: 11px; }
.t-label { flex: 1; }
.t-state { font-size: 11.5px; color: var(--muted); }
.switch { position: relative; width: 28px; height: 16px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--graphite); box-shadow: inset 0 1px 1px rgba(var(--ink-rgb),.3); }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: var(--r-pill); background: var(--panel); box-shadow: 0 1px 2px rgba(var(--ink-rgb),.3); }
.d-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.d-key { flex: 0 0 auto; min-width: 34px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .04em; }
.chip,.badge { display: inline-flex; align-items: center; max-width: 100%; min-height: 24px; padding: 2px 9px; border-radius: var(--r-xs); background: var(--panel); border: 1px solid var(--border); font-size: 11.5px; overflow-wrap: anywhere; }
.badge { color: var(--accent-dark); background: rgba(var(--accent-rgb),.08); border-color: rgba(var(--accent-rgb),.14); font-weight: 600; }
.chip-mono { font-family: var(--font-mono); font-size: 11px; }
.chip-soft { min-height: 22px; padding-block: 1px; background: var(--panel-2); border-color: transparent; color: var(--muted); }
.plan { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 34px; padding: 6px 12px; border-radius: var(--r-sm); background: linear-gradient(90deg,rgba(var(--accent-rgb),.08),rgba(var(--accent2-rgb),.03)); border: 1px solid rgba(var(--accent-rgb),.14); }
.plan-key { font-size: 11px; font-weight: 600; color: var(--accent-dark); letter-spacing: .04em; }
.plan-val { font-size: 12.5px; }
.plan-val b { font-weight: 600; }
.seg { display: inline-flex; align-self: flex-start; min-height: 30px; border-radius: var(--r-sm); background: var(--panel-2); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(var(--white-rgb),.8); }
.seg span { display: inline-flex; align-items: center; padding: 0 14px; font-size: 12px; font-weight: 500; color: var(--muted); }
.seg span + span { border-left: 1px solid var(--border); }
.float { position: absolute; z-index: 3; background: var(--panel); border: 1px solid var(--border); box-shadow: inset 0 1px 0 rgba(var(--white-rgb),1),0 12px 30px -6px rgba(var(--accent-rgb),.16),0 2px 6px rgba(var(--ink-rgb),.06); }
.float-refund { left: -24px; top: -18px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px 0 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.float-ic { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: var(--r-pill); background: rgba(var(--success-rgb),.12); color: var(--success); }
.float-ic svg { width: 13px; height: 13px; }
.float-reg { top: 46%; right: -128px; display: flex; align-items: center; gap: 11px; width: 212px; max-width: 100%; padding: 12px 14px; border-radius: var(--r-lg); }
.reg-ic { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--r-sm); background: rgba(var(--accent-rgb),.10); color: var(--accent-dark); }
.reg-ic svg { width: 17px; height: 17px; }
.reg-txt { display: flex; flex-direction: column; line-height: 1.35; }
.reg-txt b { font-size: 13.5px; font-weight: 600; }
.reg-txt span { font-size: 12px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px auto 0; }
.pager-dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent-2); }
.pager-track { width: 64px; height: 6px; border-radius: var(--r-pill); background: var(--border); }
.float-cta {
  position: fixed; right: max(24px,env(safe-area-inset-right,0px)); bottom: calc(24px + env(safe-area-inset-bottom,0px)); z-index: 20;
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px 0 14px;
  border-radius: var(--r-pill); background: var(--charcoal); color: var(--on-dark); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(var(--white-rgb),.14),0 12px 28px -6px rgba(var(--accent-rgb),.28);
}
.float-cta::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-pill); background: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent2-rgb),.25); }
.float-cta:hover { background: var(--graphite); }
body:has(.float-cta)::after { content: ""; display: block; height: calc(88px + env(safe-area-inset-bottom,0px)); }

[role="tablist"] { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; padding: 4px; border-radius: var(--r-sm); background: var(--panel-2); }
[role="tab"] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; max-width: 100%; min-height: 44px; padding: 6px 14px; border: 1px solid transparent; border-radius: var(--r-xs); color: var(--muted); }
[role="tab"]:hover { color: var(--text); }
[role="tab"][aria-selected="true"] { border-color: var(--border); background: var(--panel); color: var(--accent-dark); box-shadow: 0 3px 10px rgba(var(--accent-rgb),.10); }
[role="tab"]:focus-visible,.toc-tabs a:focus-visible { outline-offset: -3px; }
.period-panel { padding-top: 16px; }
.inbox-panel { display: grid; grid-template-columns: minmax(0,38fr) minmax(0,62fr); }
.inbox-panel > * { min-width: 0; }
.inbox-panel [role="tablist"] { flex-direction: column; padding: 8px; background: var(--panel-3); border-radius: var(--r-lg) 0 0 var(--r-lg); border-right: 1px solid var(--border); }
.inbox-panel [role="tab"] { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; text-align: left; justify-content: stretch; padding: 10px 12px; }
.inbox-panel [role="tab"][aria-selected="true"] { background: rgba(var(--accent-rgb),.10); border-color: transparent; box-shadow: none; }
.inbox-panel [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 8px auto 8px 0; width: 3px; border-radius: var(--r-flag); background: var(--accent); }
.inbox-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--panel); color: var(--accent-dark); }
.inbox-title { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.inbox-note { display: block; color: var(--muted); font-size: 12px; }
.inbox-detail { padding: clamp(18px,4vw,48px); }
.inbox-detail p { color: var(--muted); margin-bottom: 20px; }
.inbox-detail .badge { margin-top: 18px; }
.toc-tabs {
  position: sticky; top: calc(var(--header-height) + 1px); z-index: 10;
  display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; max-width: 100%; overflow-x: auto;
  overscroll-behavior-x: contain; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); box-shadow: var(--shadow-panel);
}
.toc-tabs.toc-static { position: static; }
.toc-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding-inline: 12px; white-space: nowrap; color: var(--muted); border-radius: var(--r-xs); }
.toc-tabs a:hover,.toc-tabs a.is-active { background: rgba(var(--accent-rgb),.10); color: var(--accent-dark); }
body:has(.toc-tabs) section[id] { scroll-margin-top: var(--toc-space); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 4px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; border-radius: var(--r-xs); width: 26px; height: 26px; display: grid; place-items: center; background: var(--panel-2); color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 4px 16px; color: var(--muted); }
.plan-card,.platform-card,.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.plan-card > .btn,.platform-card > .btn { margin-top: auto; }
.plan-card.is-current { border-color: rgba(var(--accent-rgb),.45); background: linear-gradient(155deg,rgba(var(--accent-rgb),.05),var(--panel) 55%); }
.plan-card h3,.platform-card h3,.article-card h3 { margin: 0; }
.plan-card .plan-price { color: var(--text); font-family: var(--font-mono); font-size: 27px; }
.plan-price small { font-size: 13px; color: var(--muted); }
.table-scroll,.prose > .data-table { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table-scroll { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); }
.data-table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: start; }
.prose > .data-table { display: block; min-width: 0; }
.data-table :is(th,td),.table-scroll :is(th,td) { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: start; word-break: keep-all; }
.data-table th,.table-scroll th { background: var(--panel-2); color: var(--text); white-space: nowrap; }
.data-table td:first-child,.table-scroll td:first-child { color: var(--text); font-weight: 600; }
.data-table tbody:last-of-type tr:last-child > * { border-bottom: 0; }
.data-table caption { text-align: start; padding: 10px 16px; font-weight: 600; }
.platform-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--panel-2); color: var(--text); overflow: hidden; }
.platform-mark svg { width: 24px; height: 24px; }
.article-card a { display: inline-flex; align-items: center; min-height: 28px; color: var(--accent-dark); }
.article-card a:hover { text-decoration: underline; }
.article-meta,.stat-band { font-family: var(--font-mono); color: var(--muted); font-size: 13px; }
.blog-mast { text-align: center; }
.blog-mast p { margin-inline: auto; }
.blog-mast h1::after { content: ""; display: block; width: 3.5em; height: 2px; border-radius: var(--r-pill); background: var(--accent); margin: 16px auto; }
.prose > * + * { margin-top: 16px; }
.prose section + section { margin-top: 48px; }
.prose h3 { margin-top: 24px; }
.prose :is(p,li) a { text-decoration: underline; color: var(--accent-dark); }
.prose ol { padding-inline-start: 28px; }
.prose ol li::marker { color: var(--accent-dark); font-family: var(--font-mono); font-weight: 600; }
.callout,.prose blockquote { margin-inline: 0; border-inline-start: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 18px; background: rgba(var(--accent-rgb),.06); color: var(--text); }
.promo-block { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: clamp(16px,4vw,32px); background: linear-gradient(150deg,rgba(var(--accent-rgb),.08),var(--panel) 68%); }
.promo-block strong { display: block; font: 600 24px/1.3 var(--font-display); margin-bottom: 4px; }
.promo-block p { color: var(--muted); }
.promo-block .btn { flex-shrink: 0; white-space: nowrap; }
.stat-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 16px; border-bottom: 1px solid var(--border); }
[data-count-to] { display: inline-block; min-inline-size: 3ch; text-align: end; font-variant-numeric: tabular-nums; }
.mark-wall { text-align: center; }
.mark-wall ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding-block: 12px; color: var(--muted); font-weight: 650; }
.knot-panel { text-align: center; overflow-x: clip; }
.knot-panel h2 { padding: 32px var(--gutter) 0; }
.knot-art { position: relative; padding: 12px var(--gutter) 30px; }
.knot-art > svg { display: block; width: 100%; height: clamp(160px,25vw,280px); overflow: hidden; }
.rope-edge { fill: none; stroke: var(--rope-edge); stroke-linecap: round; stroke-linejoin: round; }
.rope-light { stop-color: var(--panel); }
.rope-mid { stop-color: var(--panel-2); }
.rope-dark { stop-color: var(--rope-edge); }
.knot-labels { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.knot-label { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-sm); color: var(--text); font-size: 13px; font-weight: 600; }
.knot-label:nth-child(1) { background: var(--problem-red); }
.knot-label:nth-child(2) { background: var(--problem-blue); }
.knot-label:nth-child(3) { background: var(--problem-violet); }
.knot-label:nth-child(4) { background: var(--problem-yellow); }
.summary-band { padding: 20px var(--gutter); background: var(--charcoal); color: var(--on-dark); text-align: center; }
.specimen { margin-block: 24px; }
.specimen > * + * { margin-top: 16px; }
.palette-samples { grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); }
.sample { padding: 8px; }
.sample::before { content: ""; display: block; height: 32px; border-radius: var(--r-xs); border: 1px solid var(--border); margin-bottom: 6px; }
.sample code { font-size: 12px; }
.sw-bg::before { background: var(--bg); }
.sw-panel::before { background: var(--panel); }
.sw-panel2::before { background: var(--panel-2); }
.sw-panel3::before { background: var(--panel-3); }
.sw-border::before { background: var(--border); }
.sw-soft::before { background: var(--border-soft); }
.sw-accent::before { background: var(--accent); }
.sw-dark::before { background: var(--accent-dark); }
.sw-accent2::before { background: var(--accent-2); }
.sw-text::before { background: var(--text); }
.sw-muted::before { background: var(--muted); }
.sw-faint::before { background: var(--faint); }
.sw-success::before { background: var(--success); }
.sw-sink::before { background: var(--success-ink); }
.sw-warn::before { background: var(--warn); }
.sw-error::before { background: var(--error); }
.sw-frame::before { background: var(--graphite); }
.sw-frame2::before { background: var(--graphite-2); }
.sw-band::before { background: var(--charcoal); }
.sw-mist::before { background: var(--mist); }
.sw-on::before { background: var(--on-dark); }
.sw-red::before { background: var(--dot-red); }
.sw-amber::before { background: var(--dot-amber); }
.sw-green::before { background: var(--dot-green); }
.sw-fred::before { background: var(--flag-red); }
.sw-fwhite::before { background: var(--flag-white); }
.sw-fblue::before { background: var(--flag-blue); }
.sw-fgreen::before { background: var(--flag-green); }
.sw-fit::before { background: var(--flag-it-red); }
.sw-fjp::before { background: var(--flag-jp); }
.sw-problem1::before { background: var(--problem-red); }
.sw-problem2::before { background: var(--problem-blue); }
.sw-problem3::before { background: var(--problem-violet); }
.sw-problem4::before { background: var(--problem-yellow); }
.sw-rope::before { background: var(--rope-edge); }
.sw-sky::before { background: rgb(var(--sky-rgb)); }
.sample-display { font: 500 clamp(32px,6vw,64px)/1.15 var(--font-display); letter-spacing: -.02em; }
.sample-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sample-link { display: flex; align-items: center; min-height: 30px; color: var(--accent-dark); }
.static-language > summary { list-style: none; cursor: pointer; }
.static-language > summary::-webkit-details-marker { display: none; }

@media (min-width: 1400px) {
  .detail { padding-right: 50px; }
}
@media (min-width: 761px) and (max-width: 1399px) {
  .float-reg { top: auto; bottom: -24px; right: 56px; }
  .pager { margin-top: 40px; }
}
@media (max-width: 1199px) {
  .stage { width: 96%; }
  .win-bar,.win-body { grid-template-columns: 200px 270px minmax(0,1fr); }
  .detail { padding: 16px 18px; }
  .d-title { font-size: 15.5px; }
}
@media (max-width: 1023px) {
  .win-bar,.win-body { grid-template-columns: 220px minmax(0,1fr); }
  .bar-mid,.list { display: none; }
  .masthead:has(.static-language) .masthead-in { flex-wrap: wrap; height: auto; padding-top: 8px; }
  .masthead:has(.static-language) .tabs { order: 3; flex: 1 0 100%; height: 44px; margin: 8px 0 0; overflow-x: auto; }
  .masthead:has(.static-language) .tab { white-space: nowrap; }
  .masthead:has(.static-language) .tabs li { flex: 0 0 auto; }
}
@media (min-width: 761px) {
  .knot-labels { position: absolute; inset: 0; pointer-events: none; }
  .knot-label { position: absolute; }
  .knot-label:nth-child(1) { top: 33%; left: 14%; }
  .knot-label:nth-child(2) { top: 0; left: 52%; }
  .knot-label:nth-child(3) { bottom: 22%; right: 11%; }
  .knot-label:nth-child(4) { bottom: 2%; left: 31%; }
}
@media (max-width: 768px) {
  .hero { padding-top: 24px; }
  .sub { font-size: 17px; }
  .row-sep { display: none; }
  .hero-rows,.row-group { flex-direction: column; gap: 8px; }
  .inbox-panel { grid-template-columns: minmax(0,1fr); }
  .inbox-panel [role="tablist"] { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--border); border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (max-width: 760px) {
  .stage { width: 100%; }
  .device { padding: 8px; }
  .wall { padding: 12px 8px; }
  .win-body { grid-template-columns: minmax(0,1fr); }
  .win-bar { grid-template-columns: minmax(0,1fr) auto; }
  .bar-right { padding-inline: 8px; }
  .side { border-right: 0; border-bottom: 1px solid var(--border); }
  .side-row { display: none; }
  .side-group { margin-top: 0; }
  .detail { padding: 12px; }
  .d-head { flex-wrap: wrap; }
  .d-state { margin-left: 0; }
  .float { position: static; width: max-content; max-width: 100%; margin: 10px auto 0; }
  .float-reg { border-radius: var(--r-lg); }
  .pager { margin-top: 16px; }
}
@media (max-width: 640px) {
  .hero h1 { margin-bottom: 16px; }
  .hero-rows { margin-bottom: 20px; }
  .trust { gap: 4px 12px; font-size: 12px; }
  .cta-row { margin-bottom: 16px; }
  .float-cta { right: max(16px,env(safe-area-inset-right,0px)); bottom: calc(16px + env(safe-area-inset-bottom,0px)); }
}

/* fab-guard:start */
@supports (animation-timeline:scroll()){
  .float-cta{animation:fab-guard-in linear both;animation-timeline:scroll(root);animation-range:0 60vh}
}
@keyframes fab-guard-in{0%,40%{opacity:0;visibility:hidden}100%{opacity:1;visibility:visible}}
body:has(.float-cta) > footer:last-of-type{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
body:has(.float-cta):not(:has(> footer)){padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
/* fab-guard:end */
