.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h) - var(--peek));
  min-height: calc(100svh - var(--nav-h) - var(--peek));
  display: grid; align-content: center; padding-top: 28px; padding-bottom: 34px;
  background: var(--bg); color: var(--text); border-bottom: 1px solid var(--accent);
}
.hero__flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__flow g { opacity: .06; }
.hero__flow path { fill: none; stroke: var(--accent); stroke-width: 118; stroke-linecap: round; }
.hero__inner { position: relative; z-index: 1; }
.hero__top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: end; }
.hero h1 { margin: 0; font-size: clamp(32px,3.4vw,48px); }
.h1-hot { display: block; color: var(--accent); }
.lede { margin: 0; font-size: 17px; line-height: 1.72; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-bold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li, .chip {
  display: inline-flex; align-items: center; max-width: 100%; padding: 4px 10px;
  border-radius: var(--radius); background: var(--bg-panel-2); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-medium); overflow-wrap: anywhere;
}
.chips b { color: var(--accent); font-weight: var(--weight-bold); }
.osrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.osrow a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 6px 12px 6px 10px; min-height: 36px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-panel); color: var(--text);
  font-size: 13.5px; font-weight: var(--weight-semibold); cursor: pointer;
}
.osrow a:hover { border-color: var(--border-strong); }
.osrow svg { width: 15px; height: 15px; color: var(--text); }
.deck { position: relative; margin-top: 78px; }
.pane-stack {
  position: absolute; left: calc(2% + 22px); width: calc(72% - 44px); bottom: -10px; height: 40px;
  background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.pane {
  position: relative; z-index: 1; width: 72%; margin-left: 2%;
  background: var(--bg-panel); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
}
.pane__chrome {
  position: relative; height: 40px; display: flex; align-items: center; padding: 0 16px;
  background: var(--bg-panel-2); color: var(--text-muted); border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.pane__lights { display: flex; gap: 7px; }
.pane__lights i { width: 11px; height: 11px; flex-shrink: 0; border-radius: var(--radius-circle); display: block; }
.pane__lights i:nth-child(1) { background: var(--error); }
.pane__lights i:nth-child(2) { background: var(--warn); }
.pane__lights i:nth-child(3) { background: var(--success); }
.pane__title { position: absolute; left: 48px; right: 48px; text-align: center; font-size: 13px; font-weight: var(--weight-semibold); pointer-events: none; }
.pane__body { display: grid; grid-template-columns: 168px minmax(0,1fr); }
.pane__side {
  margin: 0; padding: 12px 0; list-style: none; background: var(--bg-soft); color: var(--text-muted);
  border-right: 1px solid var(--border); border-radius: 0 0 0 var(--radius);
}
.pane__side li { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 20px; font-size: 14px; }
.pane__side svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pane__side .is-on { color: var(--text); background: var(--bg-panel); font-weight: var(--weight-bold); }
.pane__side .is-on::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; background: var(--accent); border-radius: 0 var(--radius-mark) var(--radius-mark) 0; }
.pane__side .is-on svg { stroke: var(--accent); }
.pane__main { min-width: 0; padding: 0 28px 8px; }
.pane__head { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.pane__head strong { font-size: 15px; font-weight: var(--weight-heavy); }
.pane__head span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.setrow { display: grid; grid-template-columns: 220px 200px minmax(0,1fr); align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.setrow > * { min-width: 0; }
.setrow__name { display: block; font-size: 14.5px; font-weight: var(--weight-bold); line-height: 1.35; }
.setrow__desc { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.setrow__key { justify-self: start; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-panel-2); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.seg span { padding: 4px 13px; border-radius: var(--radius-inner); font-size: 13px; font-weight: var(--weight-semibold); white-space: nowrap; }
.seg .is-on { background: var(--accent); color: var(--on-accent); }
.sw { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--toggle-off); vertical-align: middle; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: var(--radius-circle); background: var(--bg-panel); box-shadow: var(--shadow-knob); }
.sw.is-on { background: var(--success); }
.sw.is-on::after { left: 21px; }
.sw-anchor { position: relative; display: inline-block; }
.portbox { display: inline-block; min-width: 92px; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); color: var(--text); font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-semibold); }
.pointer { position: absolute; left: 27px; top: 9px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.pointer svg { width: 24px; height: 28px; filter: drop-shadow(var(--shadow-pointer)); }
.pointer__arrow { fill: var(--pointer); stroke: var(--bg-panel); stroke-width: 1.6; stroke-linejoin: round; }
.pointer__tag { margin: 2px 0 0 16px; padding: 5px 10px; border-radius: var(--radius); background: var(--pointer); color: var(--on-accent); font-size: 12.5px; font-weight: var(--weight-bold); white-space: nowrap; box-shadow: var(--shadow-3); }
.hitcard { position: absolute; z-index: 3; top: -56px; right: 0; width: 372px; padding: 14px 16px 16px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.hitcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.hitcard__core { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-bold); letter-spacing: .03em; color: var(--accent); }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success-ink); font-size: 12px; font-weight: var(--weight-bold); }
.live i { width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-circle); background: var(--success); display: block; }
.hitcard__panel { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hitcard__bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; background: var(--bg-panel-2); color: var(--text-muted); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: var(--weight-semibold); }
.hitcard__bar span:last-child { font-family: var(--font-mono); color: var(--text-faint); font-weight: var(--weight-medium); }
.rulelist { margin: 0; padding: 0; list-style: none; }
.rulelist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-medium); color: var(--text); }
.rulelist li + li { border-top: 1px solid var(--border); }
.rulelist .sq { width: 9px; height: 9px; background: var(--accent); flex-shrink: 0; border-radius: var(--radius-dot); }
.rulelist .rule { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rulelist .st { width: 7px; height: 7px; border-radius: var(--radius-circle); flex-shrink: 0; }
.st--ok { background: var(--success); }
.st--mid { background: var(--warn); }
.st--rest { background: var(--text-faint); }
.peekcat { position: absolute; right: -62px; bottom: 6px; width: 80px; height: 72px; z-index: 4; }
.peekcat .cat-fill { fill: var(--bg-panel); }
.peekcat .cat-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.peekcat .cat-paw { fill: var(--bg-panel); stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.peekcat .cat-nose { fill: var(--accent); }
.trustband { padding-top: 30px; padding-bottom: 64px; background-color: var(--bg); color: var(--text); background-image: radial-gradient(var(--accent-dot) 1px,var(--clear) 1.5px); background-size: 18px 18px; background-position: 9px 9px; }
.trustband .yaml-tag { text-align: center; margin-bottom: 22px; }
.protos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
.protos li { min-width: 150px; padding: 18px 22px; text-align: center; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); font-family: var(--font-mono); font-size: 14px; font-weight: var(--weight-bold); }
.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
[role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text-muted); font-weight: var(--weight-semibold); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--shadow-cta); }
[role="tabpanel"] { min-width: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); margin-bottom: 36px; }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius); color: var(--text-muted); }
.toc a:hover { background: var(--bg-panel-2); color: var(--text); }
.toc--sticky { position: sticky; top: 12px; z-index: 8; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); margin-bottom: 12px; box-shadow: var(--shadow-1); }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; font-weight: var(--weight-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 18px; color: var(--accent-dark); font-family: var(--font-mono); font-size: 22px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 22px 22px; color: var(--text-muted); }
.faq-item__body p:last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--accent); }
.term-card__key { margin-bottom: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.term-card p { color: var(--text-muted); }
.term-card p:last-child { margin-bottom: 0; }
.client-card { position: relative; }
.client-card--first { border-color: var(--accent); box-shadow: var(--shadow-2); }
.client-card__head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.client-card__head > div { min-width: 0; flex: 1; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-card h3 { margin-bottom: 8px; }
.client-card p { color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
[data-ver]:empty { display: none; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; line-height: 1.5; font-weight: var(--weight-bold); background: var(--bg-panel-2); color: var(--text-muted); white-space: normal; overflow-wrap: anywhere; }
.badge--first { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge--recommended { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--border); }
.badge--archived { background: var(--bg-panel-2); color: var(--text-muted); border-style: dashed; }
.post-card { display: flex; flex-direction: column; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.post-card p { color: var(--text-muted); }
.post-card__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: var(--weight-bold); color: var(--accent-dark); }
.callout { margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-soft); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { border-left-color: var(--warn); }
.callout--error { border-left-color: var(--error); }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-panel); color: var(--text); }
.data-table th, .data-table td, .prose table th, .prose table td, .doc-content table th, .doc-content table td {
  min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border);
  vertical-align: top; overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th, .doc-content table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-bold); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .doc-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; }
.prose table code, .doc-content table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; z-index: 20; right: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 32px); min-height: 56px; padding: 12px 20px; border: 1px solid var(--accent-dark); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-cta); font-weight: var(--weight-heavy); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.article-download { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 28px; margin-top: 48px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-panel-2); color: var(--text); box-shadow: var(--shadow-1); }
.article-download > div { flex: 1 1 260px; min-width: 0; }
.article-download p { margin-bottom: 0; color: var(--text-muted); }
.feature-rail { position: relative; margin-top: 48px; }
.feature-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--accent); }
.rail-step { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr); gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 44px; }
.rail-step__node { grid-column: 2; grid-row: 1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-circle); background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-weight: var(--weight-bold); z-index: 1; }
.rail-step__copy { grid-column: 1; grid-row: 1; background: var(--bg-panel-2); }
.rail-step__visual { grid-column: 3; grid-row: 1; }
.rail-step:nth-child(even) .rail-step__copy { grid-column: 3; }
.rail-step:nth-child(even) .rail-step__visual { grid-column: 1; }
.rail-step__copy p { color: var(--text-muted); margin-bottom: 0; }
.mini-window { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); background: var(--bg-panel); color: var(--text); transition: transform var(--ease); }
.mini-window:hover { transform: translateY(-2px); }
.mini-window pre { margin: 0; background: var(--bg-panel); color: var(--text); border: 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.swatch { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); }
.swatch i { display: block; height: 48px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-inner); }
.swatch code { font-size: 12px; }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-soft { background: var(--bg-soft); }
.sw-border { background: var(--border); }
.sw-border-strong { background: var(--border-strong); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-accent-soft { background: var(--accent-soft); }
.sw-accent-dot { background: var(--accent-dot); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--text-muted); }
.sw-faint { background: var(--text-faint); }
.sw-success { background: var(--success); }
.sw-success-ink { background: var(--success-ink); }
.sw-success-soft { background: var(--success-soft); }
.sw-warn { background: var(--warn); }
.sw-warn-ink { background: var(--warn-ink); }
.sw-error { background: var(--error); }
.sw-pointer { background: var(--pointer); }
.sw-off { background: var(--toggle-off); }
.sw-on { background: var(--on-accent); }
.sw-clear { background: var(--clear); }
.sw-veil { background: var(--veil); }
.demo-stack { display: grid; gap: 24px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
@media (max-width: 1180px) {
  .hero__top { gap: 48px; }
  .setrow { grid-template-columns: 200px 190px minmax(0,1fr); }
}
@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: 36px; padding-bottom: 44px; }
  .hero__top { grid-template-columns: minmax(0,1fr); gap: 28px; align-items: start; }
  .deck { margin-top: 40px; }
  .pane { margin-left: 0; width: 100%; }
  .pane-stack { left: 22px; width: calc(100% - 44px); }
  .hitcard { position: relative; top: auto; right: auto; width: calc(100% - 40px); margin: -24px 0 0 auto; }
  .peekcat { right: -14px; bottom: auto; top: -60px; transform: scaleX(-1); }
  .setrow { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .setrow__key { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px,5vw,30px); }
  .feature-rail::before { left: 24px; }
  .rail-step { grid-template-columns: 48px minmax(0,1fr); gap: 16px; }
  .rail-step__node { grid-column: 1; grid-row: 1; align-self: start; }
  .rail-step__copy, .rail-step:nth-child(even) .rail-step__copy { grid-column: 2; grid-row: 1; }
  .rail-step__visual, .rail-step:nth-child(even) .rail-step__visual { grid-column: 2; grid-row: 2; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(24px,7vw,30px); }
  .pane__body { grid-template-columns: minmax(0,1fr); }
  .pane__side { display: none; }
  .pane__main { padding: 0 16px 8px; }
  .seg span { padding: 4px 8px; }
  .hitcard { width: 100%; margin-top: 24px; padding: 14px 12px; }
  .rulelist li { gap: 7px; padding: 9px 8px; font-size: 10.5px; }
  .pointer { display: none; }
  .osrow { gap: 6px; }
  .osrow a { padding: 6px 9px; font-size: 12px; }
  .protos { gap: 8px; }
  .protos li { min-width: 0; padding: 12px; font-size: 12px; }
  .dl-fab { right: 16px; bottom: 16px; }
  .article-download { padding: 22px; }
}