/*
 * Inner pages (css/pages.css): the five product pages, colony, pricing, research, docs, about, glossary, compare,
 * trust and the legal pages. Builds on the tokens and components of css/np.css (load np.css first). Owner: the
 * pages agent. CSP-safe: no inline styles; JS only sets custom properties through the CSSOM.
 *
 * Sections: 1 heroes  2 section heads  3 product rows and panels  4 steps, docs links  5 mini demos
 * 6 colony  7 pricing  8 doc layout (toc, prose extras)  9 research  10 glossary  11 compare and trust
 */

/* ------------------------------------------------------------------------------------------ 1 heroes */

.phero, .page-head { position: relative; isolation: isolate; overflow: clip; }
.phero > .container, .page-head > .container { position: relative; z-index: 1; }
.phero > .stars, .page-head > .stars { z-index: 0; }
.phero .eyebrow + .h1, .page-head .eyebrow + .h1, .page-head .pill + .h1 { margin-top: 20px; }
.page-head .h1 .dim2 { color: var(--fg-3); }
.page-head--center .lead { text-wrap: balance; }
.page-head--center .row { justify-content: center; }
.page-head .meta { margin-top: 18px; font-size: var(--t-small); color: var(--fg-3); }
.phero .h1, .page-head .h1 { text-wrap: balance; }
.phero-sparkle { left: 72%; top: 120px; }
.phero-sparkle--2 { left: 88%; top: 300px; width: 30px; height: 30px; background-size: 30px 30px; animation-delay: -2.4s; opacity: .7; }
@media (max-width: 767px) { .phero-sparkle { left: auto; right: 6%; top: 96px; width: 30px; height: 30px; background-size: 30px 30px; } .phero-sparkle--2 { display: none; } }
.page-head--sm { padding-bottom: 24px; }
@media (max-width: 639px) {
  .phero-ctas .btn { width: 100%; }
}

/* vine strip with a framed box over it (colony, research, pricing) */
.vstrip { position: relative; padding-block: 28px; overflow: clip; }
.vstrip .vines-band { top: 50%; }
.vbox {
  position: relative; z-index: 1; margin-inline: auto; width: fit-content; max-width: 100%; background: var(--ink-1); padding: 14px;
  box-shadow: 0 0 0 2px var(--acc), 0 0 0 6px var(--page);
}
.vbox-row { display: flex; flex-direction: column; gap: 10px; }
.vbox-row .btn { min-width: 220px; }
.vbox-note { margin-top: 10px; font-size: 13px; color: var(--fg-3); text-align: center; }
@media (min-width: 640px) { .vbox-row { flex-direction: row; } }
.page-head + .vstrip { margin-top: -8px; }

/* ------------------------------------------------------------------------------------------ 2 section heads */

.shead { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.shead .lead { color: var(--fg-2); }
.shead--center { margin-inline: auto; text-align: center; align-items: center; }
.shead + * { margin-top: 40px; }
.section--flush-top { padding-top: 0; }
.kicker { font-family: var(--f-label); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--fg-3); }

/* ------------------------------------------------------------------------------------------ 3 product rows and panels */

.pdemo { padding-top: 8px; padding-bottom: var(--sec-y); }
.pdemo .frame-in { background: var(--ink-0); }

.pf-list { display: grid; gap: 12px; }
.pf { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .pf { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .pf--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pf--flip > .pf-card { order: 2; }
}
.pf-card .feature { height: 100%; }
.pf-media { min-width: 0; }
.pf-media .frame-in { height: 100%; }
.feature .icon-tile { margin-bottom: 4px; }
.feature .card-title { font-size: 18px; }
.feature .body { max-width: 440px; }
.feature hr.rule { margin-top: auto; }
.feature .tags { margin-top: 0; padding-top: 14px; }

/* panel window: a small app window inside a frame */
.pw { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 260px; background: var(--ink-0); font-size: 13px; color: var(--fg-2); letter-spacing: -.1px; }
.pw-bar {
  flex: none; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--f-label); text-transform: uppercase; font-size: 12px; color: var(--fg-3); white-space: nowrap; min-width: 0;
}
.pw-dots { display: inline-flex; gap: 5px; flex: none; }
.pw-dots i { width: 8px; height: 8px; background: #2e2924; display: block; }
.pw-dots i:first-child { background: var(--acc-lo); }
.pw-title { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pw-tag { margin-left: auto; flex: none; font-size: 10px; color: var(--fg-4); letter-spacing: .06em; }
.pw-tag.is-live { color: var(--acc); }
.pw-body { position: relative; flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pw-body--center { justify-content: center; }
.pw-foot { flex: none; padding: 10px 16px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: var(--fg-4); }
.pw .mono { font-family: var(--f-mono); }
.pw .lab { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; color: var(--fg-4); }
.pw pre, .pw .code {
  margin: 0; font-family: var(--f-mono); font-size: 12px; line-height: 1.6; color: var(--fg-2); white-space: pre; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.code .k { color: var(--acc); }
.code .s { color: #c9e7b9; }
.code .n { color: #f2c14c; }
.code .c { color: var(--fg-4); }
.code .p { color: var(--fg-3); }

/* ------------------------------------------------------------------------------------------ 4 steps, wyg, docs links */

.steps { display: grid; gap: 4px; background: var(--ink-1); padding: 12px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 12px; } }
.step { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.step-n { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--acc); }
.step-n::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-4) 0 4px, transparent 4px 8px); }
.step .card-text { margin-top: 0; }

.wyg-label { display: block; margin: 32px 0 12px; }
.wyg-label:first-child { margin-top: 0; }
.wyg .found-band { margin-top: 0; }
.found-card .icon-tile svg { width: 28px; height: 28px; }

.doclinks { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.doclinks .h4 { margin-bottom: 4px; }
.doclinks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.doclinks a {
  display: inline-flex; align-items: center; min-height: 36px; font-size: var(--t-body); color: var(--fg-2);
  text-decoration: underline; text-decoration-color: var(--fg-4); text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.doclinks a:hover { color: var(--acc-hi); text-decoration-color: var(--acc); }

/* ------------------------------------------------------------------------------------------ 5 mini demos */

/* forward pass panel */
.fw { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); gap: 14px; align-items: stretch; }
.fw-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fw-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 22px; font-size: 12px; }
.fw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-3); }
.fw-val { font-family: var(--f-mono); font-size: 12px; color: var(--fg); text-align: right; min-width: 42px; }
.fw-bar { grid-column: 1 / -1; position: relative; height: 4px; background: #1d1a16; }
.fw-bar i { position: absolute; top: 0; bottom: 0; left: 50%; width: calc(var(--k, 0) * 50%); background: var(--acc); }
.fw-bar.is-neg i { left: auto; right: 50%; background: #8a857b; }
.fw-bar--h i { left: 0; width: calc(var(--k, 0) * 100%); }
.fw-out { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 12px; background: #12100e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.fw-p { font-family: var(--f-mono); font-size: 30px; line-height: 1; color: var(--fg); }
.fw-p small { font-size: 13px; color: var(--fg-3); margin-left: 4px; }
.fw-meter { position: relative; height: 8px; background: #1d1a16; }
.fw-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k, .5) * 100%); background: var(--acc); transition: width 500ms var(--ease); }
.fw-meter::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--fg-4); }
.fw-z { font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); }
@media (max-width: 639px) {
  .fw { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fw-out { grid-column: 1 / -1; }
}

/* ledger table inside a panel */
.ledger { width: 100%; font-size: 12px; border-collapse: collapse; }
.ledger th { font-family: var(--f-label); text-transform: uppercase; font-weight: 400; font-size: 10px; letter-spacing: .05em; color: var(--fg-4); text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap; }
.ledger td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-family: var(--f-mono); color: var(--fg-2); white-space: nowrap; }
.ledger .r { text-align: right; }
.ledger tr.is-new td { animation: rowin 500ms var(--ease-out) both; }
@keyframes rowin { from { background: rgba(47, 209, 107, .12); } to { background: transparent; } }
.res { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; }
.res--hit { color: var(--up); } .res--miss { color: var(--down); } .res--void { color: var(--fg-3); } .res--open { color: var(--pending); }

/* oracle coverage bars */
.cov { display: flex; flex-direction: column; gap: 8px; }
.cov-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 12px; }
.cov-sym { font-family: var(--f-label); text-transform: uppercase; font-size: 11px; color: var(--fg-2); }
.cov-track { position: relative; height: 10px; background: #1d1a16; }
.cov-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k, 0) * 100%); background: var(--acc-lo); }
.cov-track b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--n, 0) * 100%); background: var(--acc); }
.cov-h { font-family: var(--f-mono); font-size: 12px; text-align: right; color: var(--fg); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--fg-4); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; background: var(--acc-lo); }
.legend i.l2 { background: var(--acc); }
.legend i.l3 { background: #6b665e; }

/* time windows diagram */
.tw { width: 100%; height: auto; overflow: visible; }
.tw .axis { stroke: #3a352f; }
.tw .tick { stroke: #3a352f; }
.tw .lbl { font-family: var(--f-mono); font-size: 11px; fill: var(--fg-4); }
.tw .name { font-family: var(--f-label); font-size: 12px; fill: var(--fg-2); text-transform: uppercase; letter-spacing: .04em; }
.tw .w-a { fill: rgba(47, 209, 107, .28); stroke: var(--acc); }
.tw .w-b { fill: rgba(170, 165, 155, .16); stroke: #8a857b; }
.tw .op { font-family: var(--f-mono); font-size: 12px; fill: var(--fg); }

/* dataset split */
.splitbar { display: flex; height: 26px; gap: 0; }
.splitbar span { position: relative; display: flex; align-items: center; justify-content: center; font-family: var(--f-label); text-transform: uppercase; font-size: 10px; color: var(--on-acc); }
.splitbar .s-train { flex: 70; background: var(--acc); }
.splitbar .s-valid { flex: 15; background: var(--acc-lo); color: var(--fg); }
.splitbar .s-test { flex: 15; background: #5c564e; color: var(--fg); }
.splitbar .s-purge { flex: 2; background: repeating-linear-gradient(135deg, #2a2622 0 3px, #12100e 3px 6px); }
.hist { display: flex; align-items: flex-end; gap: 2px; height: 72px; }
.hist i { flex: 1; height: calc(var(--k, 0) * 100%); background: var(--acc-lo); min-height: 2px; }
.hist i.is-clip { background: #8a857b; }
.hist-axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--fg-4); }

/* fingerprint */
.csv { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.55; color: var(--fg-3); white-space: pre; overflow-x: auto; scrollbar-width: thin; }
.csv b { color: var(--fg-2); font-weight: 400; }
.fp { display: flex; flex-wrap: wrap; gap: 6px; }
.fp span { font-family: var(--f-mono); font-size: 12px; padding: 3px 6px; background: rgba(47, 209, 107, .1); color: var(--acc-hi); }

/* genome byte map */
.bytes { display: grid; grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 3px; }
.bytes i { display: block; aspect-ratio: 1; background: #1d1a16; }
.bytes i.b-head { background: #f2c14c; }
.bytes i.b-feat { background: #8a857b; }
.bytes i.b-w1 { background: var(--acc); }
.bytes i.b-b1 { background: var(--acc-lo); }
.bytes i.b-w2 { background: var(--bio); }
.bytes i.b-b2 { background: #3a7f66; }
.bytes-legend i.b-head { background: #f2c14c; } .bytes-legend i.b-feat { background: #8a857b; } .bytes-legend i.b-w1 { background: var(--acc); }
.bytes-legend i.b-b1 { background: var(--acc-lo); } .bytes-legend i.b-w2 { background: var(--bio); } .bytes-legend i.b-b2 { background: #3a7f66; }

/* bars (baselines) */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px; align-items: center; gap: 10px; font-size: 12px; }
.bar-name { color: var(--fg-3); }
.bar-track { position: relative; height: 12px; background: #1d1a16; }
.bar-track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--k, 0) * 100%); background: #6b665e; transition: width 700ms var(--ease); }
.bar-row.is-you .bar-track i { background: var(--acc); }
.bar-row.is-you .bar-name { color: var(--fg); }
.bar-val { font-family: var(--f-mono); text-align: right; color: var(--fg); }

/* gates */
.gates { display: flex; flex-direction: column; }
.gate { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 13px; color: var(--fg-2); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.gate-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; background: var(--acc); color: var(--on-acc); }
.gate-ic svg { width: 12px; height: 12px; }
.gate-v { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--fg-3); }
.reliab { display: block; width: 100%; max-width: 240px; height: auto; }
.reliab .ax { fill: #12100e; stroke: #2e2924; }
.reliab .diag { stroke: #4a443d; stroke-dasharray: 3 3; }
.reliab .pt { fill: var(--acc); }
.reliab .ln { fill: none; stroke: var(--acc-lo); stroke-width: 1.5; }
.reliab text { font-family: var(--f-mono); font-size: 9px; fill: var(--fg-4); }

/* mini leaderboard */
.lb { width: 100%; font-size: 12px; border-collapse: collapse; }
.lb td, .lb th { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.lb th { font-family: var(--f-label); text-transform: uppercase; font-weight: 400; font-size: 10px; color: var(--fg-4); text-align: left; letter-spacing: .05em; }
.lb td { color: var(--fg-2); }
.lb .r { text-align: right; font-family: var(--f-mono); }
.lb .nm { color: var(--fg); }

/* loss chart */
.loss { width: 100%; height: auto; display: block; }
.loss .grid { stroke: #1f1c18; }
.loss .tr { fill: none; stroke: var(--acc); stroke-width: 2; }
.loss .va { fill: none; stroke: #8a857b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.loss .best { stroke: var(--pending); stroke-dasharray: 2 3; }
.loss text { font-family: var(--f-mono); font-size: 10px; fill: var(--fg-4); }
.cfg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.cfg div { padding: 8px 10px; background: #12100e; }
.cfg .lab { display: block; margin-bottom: 4px; }
.cfg .mono { color: var(--fg); font-size: 13px; }
@media (max-width: 420px) { .cfg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* spawn steps */
.txs { display: flex; flex-direction: column; gap: 6px; }
.tx { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 32px; padding: 0 10px; background: #12100e; font-size: 12.5px; color: var(--fg-3); }
.tx-ic { width: 10px; height: 10px; background: #2e2924; }
.tx.is-on { color: var(--fg); }
.tx.is-on .tx-ic { background: var(--pending); animation: blink 1s steps(1) infinite; }
.tx.is-done { color: var(--fg-2); }
.tx.is-done .tx-ic { background: var(--acc); animation: none; }
.tx-st { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; color: var(--fg-4); }
.tx.is-done .tx-st { color: var(--acc); }
.tx.is-on .tx-st { color: var(--pending); }

/* weight pixel grid (same palette as the on-chain art) */
.pgrid { display: block; width: auto; height: auto; max-width: 100%; image-rendering: pixelated; }
.pgrid-box { display: grid; place-items: center; padding: 14px; background: var(--ink-0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pgrid-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 11px; color: var(--fg-4); }
.pgrid-legend span { display: inline-flex; align-items: center; gap: 2px; }
.pgrid-legend i { display: inline-block; width: 9px; height: 9px; }

/* stage text demo (MCP terminal) */
.term { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b0a09; font-family: var(--f-mono); color: var(--fg-2); }
.term-bar { flex: none; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--f-label); text-transform: uppercase; font-size: 12px; color: var(--fg-3); }
.term-body { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 0; }
.stage--compact .term-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.term-col { position: relative; min-width: 0; padding: 14px 16px; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, .06); }
.term-col:last-child { border-right: 0; }
.stage--compact .term-col { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 10px 12px; }
.term-h { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; color: var(--fg-4); letter-spacing: .05em; margin-bottom: 8px; }
.term-pre { margin: 0; font-size: 12px; line-height: 1.55; white-space: pre; color: var(--fg-2); }
.stage--compact .term-pre { font-size: 11px; line-height: 1.5; }
.term-caret { display: inline-block; width: 7px; height: 13px; background: var(--acc); vertical-align: -2px; }
.term-tools { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.term-tool { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; font-size: 12px; color: var(--fg-4); background: #12100e; }
.term-tool i { width: 6px; height: 6px; background: #2e2924; display: block; }
.term-tool.is-on { color: var(--fg); }
.term-tool.is-on i { background: var(--acc); }
.term-tool.is-call { color: var(--on-acc); background: var(--acc); }
.term-tool.is-call i { background: var(--on-acc); }
.term-out { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(47, 209, 107, .08); box-shadow: inset 2px 0 0 var(--acc); }
.stage--compact .term-out { left: 12px; right: 12px; bottom: 10px; }
.term-p { font-size: 22px; color: var(--fg); }
.term-pl { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; color: var(--fg-3); letter-spacing: .05em; }

/* ------------------------------------------------------------------------------------------ 6 colony */

.col-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--ink-1); padding: 8px; }
@media (min-width: 768px) { .col-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; } }
.col-stats .stat { padding: 12px; }
.col-stats .stat-v { font-size: 20px; }
.col-head { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.col-tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
@media (min-width: 1024px) { .col-tabs { margin-inline: 0; padding-inline: 0; } }
.tab .count { font-family: var(--f-mono); font-size: 11px; color: var(--fg-4); }
.col-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.col-tools .field-search { grid-column: 1 / -1; }
@media (min-width: 900px) { .col-tools { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } .col-tools .field-search { grid-column: auto; } }
.col-count { font-size: 14px; color: var(--fg-3); }
.col-body { margin-top: 20px; min-height: 240px; }
.col-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--ink-2); clip-path: var(--step-4); min-width: 0; }
.col-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col-rank { font-family: var(--f-mono); font-size: 12px; color: var(--fg-4); }
.col-name { font-family: var(--f-display); font-size: 30px; line-height: 1.02; letter-spacing: -.75px; color: var(--fg); overflow-wrap: anywhere; }
.col-name a:hover { color: var(--acc-hi); }
.col-sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); }
.col-card .kv { font-size: 13px; }
.col-card .kv dd.up { color: var(--up); } .col-card .kv dd.down { color: var(--down); }
.col-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--line); }
.col-live-v { font-family: var(--f-mono); font-size: 14px; color: var(--fg-2); }
.col-live-v.is-up { color: var(--up); } .col-live-v.is-down { color: var(--down); }
.col-actions { display: flex; gap: 6px; flex: none; }
.col-open { font-size: 12px; color: var(--pending); }
.col-card .tag--you { background: rgba(57, 240, 192, .14); color: var(--bio); }
.col-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 20px; text-align: center; }
.col-state .h3 { max-width: 560px; }
.col-state .body { max-width: 520px; }
.col-state .row { justify-content: center; }
.col-skel { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--ink-2); clip-path: var(--step-4); }
.col-skel .skeleton:nth-child(1) { width: 40%; height: 18px; } .col-skel .skeleton:nth-child(2) { width: 70%; height: 30px; }
.col-skel .skeleton:nth-child(3) { height: 96px; } .col-skel .skeleton:nth-child(4) { height: 64px; }

/* ------------------------------------------------------------------------------------------ 7 pricing */

.plan-top { display: flex; flex-direction: column; gap: 10px; }
.plan-desc { font-size: var(--t-small); line-height: 1.3; color: var(--fg-2); min-height: 2.6em; }
.plan-inc { font-family: var(--f-label); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; color: var(--fg-3); margin-top: 4px; }
.plan-foot { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--fg-3); }
.plan-price .live { display: inline-block; vertical-align: middle; margin-left: 8px; }
.calc { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--ink-0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.calc .field > label { font-size: 11px; }
.calc .input, .calc .select { min-height: 44px; font-size: 15px; }
.calc-out { font-size: 14px; color: var(--fg-2); line-height: 1.35; }
.calc-out b { font-family: var(--f-mono); font-weight: 400; color: var(--acc-hi); }
.live-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.live-dot { width: 8px; height: 8px; background: var(--fg-4); flex: none; }
.live-dot.is-live { background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.price-facts { display: grid; gap: 4px; background: var(--ink-1); padding: 8px; }
@media (min-width: 768px) { .price-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; } }
.price-facts .stat { padding: 12px; }
.price-facts .stat-v { font-size: 18px; }
.price-facts .stat-n { font-size: 12px; color: var(--fg-4); }

/* ------------------------------------------------------------------------------------------ 8 doc layout */

.doc { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .doc--right { grid-template-columns: minmax(0, 1fr) 240px; }
  .doc--right > .toc { order: 2; }
}
.doc-main { min-width: 0; }
.doc-main .prose { max-width: 760px; }
.toc { position: relative; min-width: 0; }
.toc-toggle {
  position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px;
  font-family: var(--f-label); text-transform: uppercase; font-size: 14px; color: var(--fg); letter-spacing: .02em;
}
.toc-toggle::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink-2); clip-path: var(--step-4); box-shadow: inset 0 0 0 2px var(--ink-4); }
.toc-toggle svg { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.toc.is-open .toc-toggle svg { transform: rotate(180deg); }
.toc-label { display: none; font-family: var(--f-label); text-transform: uppercase; font-size: 12px; color: var(--fg-4); letter-spacing: .05em; padding: 0 10px 8px; }
.toc-list { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list li { margin: 0; }
.toc-list a {
  position: relative; display: flex; align-items: center; min-height: 44px; padding: 6px 12px; font-family: var(--f-label); text-transform: uppercase;
  font-size: 13px; line-height: 1.15; letter-spacing: .02em; color: var(--fg-3);
}
.toc-list a:hover { color: var(--fg); }
.toc-list a.is-active { color: var(--fg); }
.toc-list a.is-active::after {
  content: ''; position: absolute; inset: 2px 0; pointer-events: none;
  background:
    linear-gradient(var(--fg-2) 0 0) left top / 8px 2px no-repeat, linear-gradient(var(--fg-2) 0 0) left top / 2px 8px no-repeat,
    linear-gradient(var(--fg-2) 0 0) right top / 8px 2px no-repeat, linear-gradient(var(--fg-2) 0 0) right top / 2px 8px no-repeat,
    linear-gradient(var(--fg-2) 0 0) left bottom / 8px 2px no-repeat, linear-gradient(var(--fg-2) 0 0) left bottom / 2px 8px no-repeat,
    linear-gradient(var(--fg-2) 0 0) right bottom / 8px 2px no-repeat, linear-gradient(var(--fg-2) 0 0) right bottom / 2px 8px no-repeat;
}
.toc-list .toc-sub a { padding-left: 24px; font-family: var(--f-body); text-transform: none; font-size: 14px; letter-spacing: -.1px; }
.toc-group { padding: 10px 12px 2px; font-family: var(--f-label); text-transform: uppercase; font-size: 11px; color: var(--fg-4); letter-spacing: .05em; }
.np-js .toc:not(.is-open) .toc-list { display: none; }
.toc.is-open .toc-list { padding: 8px 4px 4px; background: var(--ink-1); margin-top: 6px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--hdr-space) + 28px); max-height: calc(100vh - var(--hdr-space) - 56px); overflow-y: auto; scrollbar-width: thin; }
  .toc-toggle { display: none; }
  .toc-label { display: block; }
  .np-js .toc:not(.is-open) .toc-list, .toc .toc-list, .toc.is-open .toc-list { display: flex; padding: 0; background: none; box-shadow: none; margin: 0; }
  .toc-list a { min-height: 34px; }
}
@media (max-width: 1023px) {
  .doc > .toc { position: sticky; top: calc(var(--hdr-space) + 8px); z-index: 20; }
  .toc.is-open .toc-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; max-height: calc(100vh - var(--hdr-space) - 90px); overflow-y: auto; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .6); }
}

/* prose extras */
.prose { overflow-wrap: break-word; }
/* html already has scroll-padding-top for the fixed header; on phones the sticky toc bar adds its height */
@media (max-width: 1023px) { .doc .prose h2, .doc .prose h3, .doc .prose section { scroll-margin-top: 64px; } }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose section + section { margin-top: 48px; }
.prose section > * + * { margin-top: 16px; }
.prose li { color: var(--fg-2); font-size: var(--t-body); line-height: 1.3; }
.prose strong { color: var(--fg); font-weight: 400; font-family: var(--f-label); text-transform: uppercase; font-size: .86em; letter-spacing: .03em; }
.prose em { font-style: normal; color: var(--fg); }
.prose .table-wrap { margin-top: 20px; }
.prose .table { font-size: 14px; }
.prose .table td { line-height: 1.3; }
.prose .table code { overflow-wrap: anywhere; }
.prose .codeblock { font-size: 13px; }
.prose .notice { margin-top: 20px; }
.prose .frame { margin-top: 24px; }
.prose figure figcaption { margin-top: 10px; font-size: 13px; color: var(--fg-3); }
.prose hr.rule { margin-block: 40px; }
.prose .eq { display: block; padding: 14px 16px; background: var(--ink-0); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 14px; line-height: 1.6; color: var(--fg); overflow-x: auto; white-space: pre; letter-spacing: 0; }
.code-wrap { display: flex; flex-direction: column; }
.copy-btn {
  order: -1; align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 32px; padding: 0 10px; margin-bottom: 6px;
  font-family: var(--f-label); text-transform: uppercase; font-size: 11px; color: var(--fg-3); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-4);
}
.copy-btn:hover { color: var(--fg); }
.copy-btn svg { width: 14px; height: 14px; }
.legal-meta { margin-top: 14px; font-size: 14px; color: var(--fg-3); }

/* ------------------------------------------------------------------------------------------ 9 research */

.note-feat { display: grid; gap: 12px; }
@media (min-width: 900px) { .note-feat { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.note-feat-copy { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--ink-1); height: 100%; }
.note-feat-copy .h3 { color: var(--acc); }
.note-feat-copy .h3 span { display: block; color: var(--fg-2); font-size: .82em; margin-top: 6px; }
.note-feat-copy .tags, .note-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.note-art { display: block; width: 100%; height: 100%; min-height: 200px; background: var(--ink-0); }
.note-art svg { display: block; width: 100%; height: 100%; }
.note-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 768px) { .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .note-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--ink-2); clip-path: var(--step-4); min-height: 240px; }
.note-card:hover { background: var(--ink-3); }
.note-card .h4 { font-size: 26px; padding-right: 64px; }
.note-card .note-thumb { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; background: var(--ink-0); }
.note-card .note-thumb svg { width: 100%; height: 100%; display: block; }
.note-card .body { font-size: var(--t-small); }
.note-meta { font-size: 13px; color: var(--fg-3); }
.note-head { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .note-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; } }
.note-head .pill { margin-bottom: 4px; }
.note-head .h1 { font-size: clamp(44px, 7vw, 84px); }
.note-head .meta { margin-top: 18px; }
.note-head .frame { max-width: 460px; width: 100%; justify-self: center; }
.note-head .note-art { aspect-ratio: 1; min-height: 0; }
.note-lead { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.5px; color: var(--acc); max-width: 760px; text-wrap: pretty; }
.pullquote { position: relative; margin-block: 32px; }
.pullquote .frame-in { background: #0b2416; padding: 28px; }
.pullquote p { font-family: var(--f-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.5px; color: var(--fg); }
.pullquote p + p { margin-top: 14px; font-family: var(--f-body); font-size: 14px; color: var(--acc); letter-spacing: 0; }
.fig { margin-top: 24px; }
.fig .frame-in { padding: 18px; }
.fig-title { font-family: var(--f-display); font-size: 22px; line-height: 1.1; color: var(--fg); }
.fig-sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); }
.fig-body { margin-top: 16px; }
.fig svg { display: block; width: 100%; height: auto; }
.sig .ax { stroke: #3a352f; } .sig .grid { stroke: #1f1c18; } .sig .curve { fill: none; stroke: var(--acc); stroke-width: 2; }
.sig .steps-l { fill: none; stroke: var(--acc-hi); stroke-width: 1.5; }
.sig text { font-family: var(--f-mono); font-size: 11px; fill: var(--fg-4); }
.wx { width: 100%; font-size: 13px; }
.wx td, .wx th { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--f-mono); white-space: nowrap; }
.wx th { font-family: var(--f-label); text-transform: uppercase; font-size: 11px; font-weight: 400; color: var(--fg-3); }
.wx td:first-child, .wx th:first-child { text-align: left; }
.wx .hl { color: var(--acc-hi); }
.related { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------------------------------ 10 glossary */

.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az a, .az span {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 40px; height: 44px; font-family: var(--f-label); text-transform: uppercase; font-size: 15px;
}
.az a { color: var(--fg); }
.az a::before { content: ''; position: absolute; inset: 2px 0; z-index: -1; background: var(--ink-2); clip-path: var(--step-2); }
.az a:hover::before { background: var(--acc); }
.az a:hover { color: var(--on-acc); }
.az span { color: var(--fg-4); }
.gl-group { padding-top: 32px; }
.gl-group + .gl-group { margin-top: 8px; border-top: 1px solid var(--line); }
.gl-letter { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1; color: var(--acc); }
.gl-list { display: grid; gap: 0; margin-top: 12px; }
@media (min-width: 900px) { .gl-group { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; } .gl-list { margin-top: 0; } }
.gl-item { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.gl-item:last-child { border-bottom: 0; }
.gl-item h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-h4); line-height: 1.1; letter-spacing: -.5px; color: var(--fg); }
.gl-item p { margin-top: 8px; font-size: var(--t-body); line-height: 1.3; color: var(--fg-2); max-width: 760px; }
.gl-item .see { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--fg-4); }
.gl-item .see a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; background: var(--ink-2); color: var(--fg-2); font-size: 13px; clip-path: var(--step-2); }
.gl-item .see a:hover { color: var(--on-acc); background: var(--acc); }
.gl-item:target h3 { color: var(--acc-hi); }
.gl-search { max-width: 420px; }

/* ------------------------------------------------------------------------------------------ 11 compare, trust, about */

.cmp-links { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cmp-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-link { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 140px; background: var(--ink-2); clip-path: var(--step-4); }
.cmp-link:hover { background: var(--ink-3); }
.cmp-link .h4 { color: var(--fg); }
.cmp-link .small { color: var(--fg-3); }
.cmp-link .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-label); text-transform: uppercase; font-size: 13px; color: var(--acc); }
.cmp-link .go svg { width: 14px; height: 14px; }
.bottom-line { padding: 16px 18px; background: rgba(47, 209, 107, .06); box-shadow: inset 0 0 0 2px var(--acc-lo); }
.bottom-line .kicker { color: var(--acc); }
.bottom-line p { margin-top: 6px; color: var(--fg); font-size: var(--t-body); line-height: 1.3; }
.cmp-sec { padding-top: 56px; scroll-margin-top: -32px; }
.cmp-sec + .cmp-sec { margin-top: 56px; border-top: 1px solid var(--line); }
.cmp-sec .h2-sm { margin-top: 12px; }
.cmp-in-short { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cmp-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 900px) { .cmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp-grid .card .list-check, .cmp-grid .card .list-dot { margin-top: 14px; }
.list-dot { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list-dot li { position: relative; padding-left: 22px; font-size: var(--t-small); line-height: 1.3; color: var(--fg-2); }
.list-dot li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; background: var(--fg-4); }
.list-cross { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.list-cross li { position: relative; padding-left: 28px; font-size: var(--t-small); line-height: 1.3; color: var(--fg-2); }
.list-cross li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23803a32' d='M0 0h16v16H0z'/%3E%3Cpath fill='%23130806' d='M1 1h14v14H1z'/%3E%3Cpath fill='%23ff6b5a' d='M4 4h2v1H4zM10 4h2v1h-2zM5 5h2v1H5zM9 5h2v1H9zM6 6h4v1H6zM7 7h2v2H7zM6 9h4v1H6zM5 10h2v1H5zM9 10h2v1H9zM4 11h2v1H4zM10 11h2v1h-2z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.mx { width: 100%; font-size: 14px; }
.mx th, .mx td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.mx thead th { font-family: var(--f-label); text-transform: uppercase; font-size: 12px; font-weight: 400; color: var(--fg-3); letter-spacing: .04em; border-bottom: 2px solid var(--ink-4); white-space: nowrap; }
.mx tbody th { font-family: var(--f-label); text-transform: uppercase; font-weight: 400; font-size: 12px; letter-spacing: .03em; color: var(--fg); white-space: nowrap; }
.mx td { color: var(--fg-2); line-height: 1.3; min-width: 180px; }
.mx td.us { color: var(--fg); }
.mark { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-label); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.mark i { width: 14px; height: 6px; display: inline-block; }
.mark--yes { color: var(--acc); } .mark--yes i { background: var(--acc); }
.mark--part { color: var(--pending); } .mark--part i { background: var(--pending); }
.mark--no { color: var(--fg-4); } .mark--no i { background: var(--ink-4); }
.mx .mark { display: flex; margin-bottom: 4px; }

.can { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .can { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.can .card { padding: 24px; }
.can .card-title { margin-bottom: 16px; }
.can .list-check li, .can .list-cross li { font-size: var(--t-body); }

.about-band { position: relative; isolation: isolate; overflow: clip; background: var(--ink-0); padding-block: clamp(96px, 16vw, 200px); text-align: center; }
.about-band .stars { z-index: 0; }
.about-band .container { position: relative; z-index: 1; }
.about-band .h2 { max-width: 900px; margin-inline: auto; }
.about-band .h2 .caret { display: inline-block; width: .42em; height: .78em; margin-left: .08em; background: var(--acc); vertical-align: -.04em; }
.about-reef { display: block; width: 100%; height: clamp(160px, 26vw, 380px); object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; margin-top: 36px; }
.principles .found-card { flex-direction: column; }
.team-card { display: grid; gap: 20px; align-items: center; padding: 24px; background: var(--ink-1); }
@media (min-width: 768px) { .team-card { grid-template-columns: auto minmax(0, 1fr) auto; } }
.team-card img { width: 72px; height: 72px; image-rendering: pixelated; }
.team-card .h4 { font-family: var(--f-display); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ledger tr.is-new td { animation: none; }
  .fw-meter i, .bar-track i { transition: none; }
}
.pl-p0 { background: #0c3d1f; } .pl-p1 { background: #178a43; } .pl-p2 { background: #2fd16b; } .pl-p3 { background: #6ff29a; }
.pl-n0 { background: #2e2924; } .pl-n1 { background: #4a4540; } .pl-n2 { background: #7a756d; } .pl-n3 { background: #b5b1a8; }
.cov-row svg, .bar-row svg { display: block; width: 100%; height: 10px; }
.bar-row svg { height: 12px; }
.hist-svg { display: block; width: 100%; height: 72px; }
.lab { font-family: var(--f-label); text-transform: uppercase; font-size: 10px; letter-spacing: .05em; color: var(--fg-4); }
@media (max-width: 479px) {
  .ledger .c-ref { display: none; }
  .pw pre, .pw .code { font-size: 11px; }
  .pw-body { padding: 14px 12px; }
}

/* function reference (docs) */
.fn-list { margin-top: 16px; border-top: 1px solid var(--line); }
.fn-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fn-list dt { margin: 0; }
.fn-list dt code { font-size: 13.5px; line-height: 1.5; color: var(--fg); background: none; padding: 0; overflow-wrap: anywhere; }
.fn-list dd { margin: 6px 0 0; color: var(--fg-2); font-size: var(--t-small); line-height: 1.35; }
@media (max-width: 639px) { .col-tools .field:last-child { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .mx--stack thead { display: none; }
  .mx--stack, .mx--stack tbody, .mx--stack tr, .mx--stack th, .mx--stack td { display: block; width: 100%; }
  .mx--stack tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mx--stack tbody th, .mx--stack td { border: 0; padding: 4px 0; min-width: 0; white-space: normal; }
  .mx--stack tbody th { padding-bottom: 8px; color: var(--acc); }
  .mx--stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--f-label); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: var(--fg-4); }
  .mx--stack td + td { margin-top: 6px; }
  .mx--stack .mark { margin: 0; }
}
@media (pointer: coarse) { .gl-item .see a { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; } }
/* two-tone titles: each part balances on its own */
.phero .h1 br, .page-head .h1 br { display: none; }
.phero .h1 .dim2, .page-head .h1 .dim2 { display: block; text-wrap: balance; }
.prose h3.card-title { font-family: var(--f-label); font-size: 16px; line-height: 1.15; letter-spacing: .02em; margin-top: 0; }
.svg-compact { display: none; }
@media (max-width: 639px) { .svg-wide { display: none; } .svg-compact { display: block; } }
[data-fp-note] span, [data-fp-note] svg { display: inline-block; vertical-align: -1px; }
.stage--compact .term-out { position: relative; left: auto; right: auto; bottom: auto; margin-top: 10px; }
.phero .lead, .page-head .lead, .shead .lead { text-wrap: pretty; }
.col-name a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 479px) {
  .pw-bar { flex-wrap: wrap; height: auto; min-height: 32px; row-gap: 2px; padding: 7px 12px; white-space: normal; }
  .pw-title { overflow: visible; text-overflow: clip; }
}

/* ------------------------------------------------------------------------------------------ 12 family pass (run 2) */

/* product feature cards: the title is a body-face heading in sentence case, like the reference's framed cards */
.pf .feature .card-title { font-family: var(--f-body); text-transform: none; font-size: 24px; line-height: 1.15; letter-spacing: -.25px; }
@media (max-width: 767px) { .pf .feature .card-title { font-size: 21px; } }
.pf .feature { padding: 28px 24px; }

/* pricing: plain plans get a bright paper frame, the featured plan a full green one */
.plans > .frame:not(.frame--acc)::before { border-color: var(--fg-2); }
.plans > .frame:not(.frame--acc)::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23cecdc9' d='M0 0h12v12H0z'/%3E%3Cpath fill='%23080807' d='M4 4h4v4H4z'/%3E%3Cpath fill='%23ffffff' d='M0 0h12v2H2v10H0z'/%3E%3C/svg%3E") left top / 12px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23cecdc9' d='M0 0h12v12H0z'/%3E%3Cpath fill='%23080807' d='M4 4h4v4H4z'/%3E%3Cpath fill='%23ffffff' d='M0 0h12v2H2v10H0z'/%3E%3C/svg%3E") right top / 12px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23cecdc9' d='M0 0h12v12H0z'/%3E%3Cpath fill='%23080807' d='M4 4h4v4H4z'/%3E%3Cpath fill='%23ffffff' d='M0 0h12v2H2v10H0z'/%3E%3C/svg%3E") left bottom / 12px 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23cecdc9' d='M0 0h12v12H0z'/%3E%3Cpath fill='%23080807' d='M4 4h4v4H4z'/%3E%3Cpath fill='%23ffffff' d='M0 0h12v2H2v10H0z'/%3E%3C/svg%3E") right bottom / 12px 12px no-repeat;
}
.plans > .frame--acc::before { border-color: var(--acc); }
.plans .plan { background: var(--ink-2); }

/* colony cards: one height per row; the grid box is fixed, the live row sits on the bottom edge */
.lib > .col-card { height: 100%; }
.col-card .pgrid-box { height: 124px; padding: 12px; overflow: hidden; }
.col-card .pgrid { max-height: 100px; width: auto; }
.col-card .kv { gap: 5px 16px; }
.col-live { margin-top: auto; }

/* MCP setup: copy on the left, a framed client box with segmented tabs on the right */
.connect { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .connect { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.connect-copy .btn { align-self: flex-start; }
.connect-box { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--ink-1); }
.connect-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.connect-tab {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px;
  font-family: var(--f-label); text-transform: uppercase; font-size: 13px; letter-spacing: .02em; color: var(--fg-3); white-space: nowrap;
}
.connect-tab::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink-3); clip-path: var(--step-2); }
.connect-tab:hover { color: var(--fg); }
.connect-tab[aria-selected='true'] { color: var(--on-acc); }
.connect-tab[aria-selected='true']::before { background: var(--acc); }
.connect-tab:focus-visible { outline: 2px solid var(--acc-hi); outline-offset: 2px; }
.connect-panel { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.connect-panel[hidden] { display: none; }
.connect-where { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.connect-where .kicker { font-family: var(--f-mono); text-transform: none; font-size: 13px; color: var(--fg-2); overflow-wrap: anywhere; }
.connect-where .copy-btn { order: 0; margin: 0; align-self: center; flex: none; }
.connect-panel .codeblock { margin: 0; font-size: 13px; }
@media (max-width: 639px) {
  .connect-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .connect-box { padding: 14px 12px; }
}

/* research index: a bigger featured title, filter tabs on the right from desktop up */
.note-feat-copy .h3 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.02; }
.note-feat-copy .h3 span { font-size: clamp(20px, 1.7vw, 26px); }
@media (min-width: 1024px) { .tabs[data-tabfilter="notes"] { justify-content: flex-end; } }
.fw-p small { display: block; margin: 6px 0 0; }
@media (max-width: 1023px), (pointer: coarse) { .doclinks a { min-height: 44px; } }
@media (pointer: coarse) { .copy-btn { min-height: 44px; padding: 0 14px; } }
@media (pointer: coarse) { .az a, .az span { width: 44px; } }
@media (max-width: 639px) { .connect-panel .codeblock { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* wide reference tables stack into labelled cards on phones (docs keeper, API, MCP tools; trust owner powers) */
@media (max-width: 639px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .table--stack tr:first-child { border-top: 1px solid var(--line); }
  .table--stack td { border: 0; padding: 3px 0; text-align: left; white-space: normal; }
  .table--stack td.r { text-align: left; }
  .table--stack td:first-child { padding-bottom: 8px; color: var(--fg); }
  .table--stack td + td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--f-label); text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: var(--fg-4); }
  .table--stack td + td { margin-top: 6px; }
  .prose .table-wrap:has(.table--stack) { overflow: visible; }
}
/* a stacked table whose facts sit two per line (the market table) */
@media (max-width: 639px) {
  .table--grid tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .table--grid td:first-child { grid-column: 1 / -1; }
  .table--grid td + td { margin-top: 4px; }
}
@media (min-width: 360px) and (max-width: 639px) { .table--grid tr { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
