/* =========================================================
   TOOLHOOD · base.css (SITE). Tokens, type, shell (nav, menu, footer), buttons, bracket motif,
   subpage template, shared components. APP + WORLD read the tokens; page CSS goes in home/pages/docs/app.css.
   ========================================================= */
@font-face { font-family: 'Geist'; src: url('/assets/fonts/geist-var.woff2?v=a59aabd24d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/geist-mono-var.woff2?v=0d05a98b4d') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('/assets/fonts/mona-sans-var.woff2?v=ab721e5067') format('woff2'); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }

:root {
  /* SPEC §6 tokens */
  --bg: #050A08; --bg-2: #08100C; --panel: #0B150F; --panel-2: #0F1C14;
  --line: rgba(61, 255, 154, .13); --line-2: rgba(61, 255, 154, .26);
  --neon: #3DFF9A; --neon-2: #22C77A; --neon-ink: #050A08;
  --text: #DDF3E6; --muted: #86A393; --dim: #56705F;
  --ok: #00C805; --warn: #FFC24B; --bad: #FF5A4E;
  /* extra */
  --pale: #D8FFE9;            /* light ink for caps labels, nav highlights */
  --line-s: #12241A;          /* solid hairline (tables, dividers) */
  --line-s2: #1D3A2A;         /* solid frame line (CA box, ghost buttons) */
  --glass: rgba(5, 10, 8, .62);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wide: 'Mona Sans', 'Geist', sans-serif;
  --wide-stretch: 112%;
  --gut: clamp(20px, 4.4vw, 64px);
  --wrap: 1114px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 78px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 300 15px/1.6 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, kbd, pre, samp { font-family: var(--mono); }
::selection { background: var(--neon); color: var(--neon-ink); }
:focus-visible { outline: 1px solid var(--neon); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--neon); color: var(--neon-ink); padding: 10px 14px; font: 500 11px var(--wide); letter-spacing: .2em; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.caps, .t-caps { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; line-height: 1.45; }
.mono { font-family: var(--mono); }
.hl { color: var(--neon); }
.lbl { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(236, 245, 228, .55); }
.lbl em, .lbl b { font-style: normal; font-weight: 400; color: var(--neon); }
.title { font-family: var(--sans); font-weight: 300; letter-spacing: -.035em; line-height: 1.08; color: var(--text); }
.title .l { display: block; }
.body { color: var(--muted); font-size: 15px; line-height: 1.6; }
.body b, .body strong { color: var(--text); font-weight: 400; }
.link { color: var(--neon); border-bottom: 1px solid rgba(61, 255, 154, .3); transition: border-color .2s; }
.link:hover { border-color: var(--neon); }

/* ---------- bracket corners (the recurring motif) ----------
   .br = top-left + bottom-right L ticks. .br4 adds the other two (needs <i class="br__c"></i> inside). */
.br { position: relative; }
.br::before, .br::after, .br__c::before, .br__c::after {
  content: ''; position: absolute; width: 7px; height: 7px; pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s, border-color .3s;
}
.br::before { left: -1px; top: -1px; border-left: 1px solid var(--pale); border-top: 1px solid var(--pale); }
.br::after { right: -1px; bottom: -1px; border-right: 1px solid var(--pale); border-bottom: 1px solid var(--pale); }
.br__c { position: absolute; inset: 0; pointer-events: none; }
.br__c::before { right: -1px; top: -1px; border-right: 1px solid var(--pale); border-top: 1px solid var(--pale); opacity: 0; }
.br__c::after { left: -1px; bottom: -1px; border-left: 1px solid var(--pale); border-bottom: 1px solid var(--pale); opacity: 0; }
.br:hover::before, .br:focus-visible::before { transform: translate(-4px, -4px); border-color: var(--neon); }
.br:hover::after, .br:focus-visible::after { transform: translate(4px, 4px); border-color: var(--neon); }
.br:hover .br__c::before { opacity: 1; transform: translate(4px, -4px); border-color: var(--neon); }
.br:hover .br__c::after { opacity: 1; transform: translate(-4px, 4px); border-color: var(--neon); }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  padding: 18px 24px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 500; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; line-height: 16px; isolation: isolate;
  transform: translate(var(--mx), var(--my)); transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn small { font-size: 9px; letter-spacing: .12em; font-weight: inherit; opacity: .78; font-family: var(--wide); }
.btn b { font-weight: inherit; }
.btn svg { width: 13px; height: 13px; flex: none; }
.btn--solid { background: var(--neon); color: var(--neon-ink); overflow: hidden; }
.btn--solid::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--solid:hover { box-shadow: 0 0 0 1px var(--neon), 0 8px 40px -8px rgba(61, 255, 154, .55); }
.btn--solid:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-s2); padding: 17px 23px; color: var(--pale); font-weight: 400; background: rgba(5, 10, 8, .35); }
.btn--ghost:hover { border-color: rgba(61, 255, 154, .45); color: var(--neon); background: rgba(61, 255, 154, .05); }
.btn--sm { padding: 12px 16px; gap: 10px; font-size: 10px; }
.btn--ghost.btn--sm { padding: 11px 15px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* small copy chip (CA box, endpoint field, code blocks) */
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 9.5px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--neon); padding: 4px 2px; transition: color .2s;
}
.chip:hover { color: var(--pale); }
.chip svg { width: 12px; height: 12px; }
.chip.is-ok { color: var(--ok); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); color: var(--pale); }
.pill--ex { border-color: rgba(255, 194, 75, .5); color: var(--warn); }
.pill--ok { border-color: rgba(0, 200, 5, .45); color: #5BEA5F; }
.pill--bad { border-color: rgba(255, 90, 78, .5); color: var(--bad); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(0, 200, 5, .6); animation: ping 2.2s infinite; flex: none; }
.dot--warn { background: var(--warn); animation: none; }
.dot--bad { background: var(--bad); animation: none; }
.dot--ex { background: var(--warn); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 5, .55); } 70% { box-shadow: 0 0 0 7px rgba(0, 200, 5, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 5, 0); } }

/* =========================================================
   NAV (desktop: mark + wordmark, PRODUCT · DOCS · COMPANY · CONTACT with mega panels, bracket X button)
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: background-color .4s, backdrop-filter .4s;
}
.nav::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 8, .82), rgba(5, 10, 8, 0)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nav.is-scrolled::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 26px; height: 26px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 500; font-size: 12px; letter-spacing: .4em; color: var(--pale); white-space: nowrap; margin-right: -.4em; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.nav__item { position: relative; }
.nav__top {
  position: relative; display: inline-block; padding: 8px 0; font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 11px;
  letter-spacing: .3em; text-transform: uppercase; color: #9DB4A6; transition: color .25s; margin-right: -.3em;
}
.nav__top::after { content: ''; position: absolute; left: 0; right: .3em; bottom: 2px; height: 1px; background: var(--pale); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__item:hover .nav__top, .nav__item.is-open .nav__top, .nav__top:focus-visible, .nav__top[aria-current] { color: var(--pale); }
.nav__item:hover .nav__top::after, .nav__item.is-open .nav__top::after, .nav__top[aria-current]::after { transform: scaleX(1); }
.xbtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 16px; margin-left: 2px;
  font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 11px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--pale);
}
.xbtn svg { width: 13px; height: 13px; flex: none; }
.xbtn span { margin-right: -.3em; }
.nav__m { display: none; margin-left: auto; align-items: center; gap: 6px; }
.mbtn { padding: 13px 16px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--pale); }
.mbtn span { margin-right: -.3em; }
.mx { padding: 13px 14px; }
.mx svg { width: 13px; height: 13px; }

/* mega panel */
.panel {
  position: absolute; top: calc(100% + 14px); left: -22px; width: 446px; padding: 14px 22px 16px;
  background: rgba(13, 16, 9, .97);
  background-image: repeating-linear-gradient(135deg, rgba(61, 255, 154, .028) 0 1px, transparent 1px 7px);
  border: 1px solid var(--line-s); border-left-color: rgba(61, 255, 154, .5);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-6px); clip-path: inset(0 0 100% 0);
  transition: opacity .25s, transform .5s var(--ease), clip-path .55s var(--ease), visibility 0s .55s;
}
.nav__item.is-open .panel { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0); transition: opacity .2s, transform .5s var(--ease), clip-path .55s var(--ease), visibility 0s; }
.panel__intro { color: var(--muted); font-size: 12px; line-height: 18px; padding: 6px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-s); max-width: 236px; }
.panel a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 10px 0; color: var(--text); }
.panel a::before { content: ''; position: absolute; left: -22px; top: 50%; width: 8px; height: 1px; background: rgba(61, 255, 154, .35); transition: width .35s var(--ease), background-color .3s; }
.panel a b { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.panel a i { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.panel a:hover b, .panel a:focus-visible b, .panel a[aria-current] b { color: var(--neon); }
.panel a:hover i { color: var(--text); }
.panel a:hover::before, .panel a[aria-current]::before { width: 16px; background: var(--neon); }
.panel a .ext { width: 10px; height: 10px; align-self: center; opacity: .6; }

/* mobile full-screen menu */
.mmenu {
  position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 22px) var(--gut) 40px;
  background: #0B0E08; background-image: repeating-linear-gradient(135deg, rgba(61, 255, 154, .022) 0 1px, transparent 1px 8px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.mmenu__g { margin-bottom: 30px; }
.mmenu__g > span { display: block; margin-bottom: 8px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--neon); }
.mmenu a { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 20px; line-height: 30px; font-weight: 300; letter-spacing: -.02em; color: var(--text); }
.mmenu a[aria-current] { color: var(--neon); }
.mmenu a svg { width: 13px; height: 13px; opacity: .8; }
.mmenu.is-open .mmenu__g { animation: mm-in .6s var(--ease) both; }
.mmenu.is-open .mmenu__g:nth-child(2) { animation-delay: .05s; } .mmenu.is-open .mmenu__g:nth-child(3) { animation-delay: .1s; }
.mmenu.is-open .mmenu__g:nth-child(4) { animation-delay: .15s; } .mmenu.is-open .mmenu__g:nth-child(5) { animation-delay: .2s; }
@keyframes mm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.menu-open, html.menu-open body { overflow: hidden; }

@media (max-width: 899px) {
  :root { --nav-h: 70px; }
  .nav__links { display: none; }
  .nav__m { display: flex; }
  .brand b { font-size: 11px; letter-spacing: .34em; }
}
@media (min-width: 900px) { .mmenu { display: none; } }

/* =========================================================
   COMING SOON dialog + toast
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 4, .74); animation: fade .25s both; }
.modal__box { position: relative; width: min(420px, 100%); padding: 34px 28px 28px; background: var(--panel); border: 1px solid var(--line-s2); text-align: center; animation: pop .45s var(--ease) both; }
.modal__box img { width: 44px; height: 44px; margin: 0 auto 18px; }
.modal__box h2 { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 500; font-size: 13px; letter-spacing: .4em; color: var(--neon); margin-right: -.4em; }
.modal__box p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.modal__box .btn { margin-top: 22px; }
.modal__x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.modal__x:hover { color: var(--text); }
.modal__x svg { width: 15px; height: 15px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 16px; background: var(--panel-2); border: 1px solid var(--line-2); font: 400 12px var(--mono); color: var(--pale); transition: opacity .3s, transform .45s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* EXAMPLE flag (any page that falls back to a fixture) */
.exflag { display: inline-flex; align-items: center; gap: 10px; font: 400 11.5px/1.5 var(--mono); color: var(--warn); }

/* =========================================================
   FOOTER (dot field left, brand column, 5 link columns, bottom bar)
   ========================================================= */
.foot { position: relative; z-index: 5; overflow: hidden; background: linear-gradient(180deg, #0B0E08 0%, #080A06 100%); border-top: 1px solid var(--line-s); }
.foot__field { position: absolute; left: 0; bottom: 0; width: min(52vw, 760px); height: 100%; pointer-events: none; opacity: .95;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 96%); mask-image: linear-gradient(to right, #000 30%, transparent 96%); }
.foot__field canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.foot__field.is-css { background-image: radial-gradient(circle, rgba(61, 255, 154, .32) 1.3px, transparent 1.7px); background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 75%), linear-gradient(to right, #000 25%, transparent 90%); mask-image: linear-gradient(to top, #000, transparent 75%); }
.foot__in { position: relative; display: grid; grid-template-columns: minmax(0, 296px) minmax(0, 378px) repeat(5, minmax(0, 125px)); padding: 290px var(--gut) 0; }
.foot__brand { grid-column: 2; padding-right: 40px; }
.foot__brand .brand { margin-bottom: 20px; }
.foot__desc { color: var(--muted); font-size: 14px; line-height: 23px; margin-bottom: 16px; }
.foot__links { display: grid; gap: 12px; justify-items: start; }
.foot__links a { font: 300 12px/16px var(--mono); color: var(--pale); transition: color .2s; }
.foot__links a:hover { color: var(--neon); }
.foot__links a i { font-style: normal; color: var(--dim); }
.foot__col h3 { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 300; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: #C6D6B8; margin: 6px 0 14px; }
.foot__col a { display: block; width: fit-content; font-size: 14px; line-height: 18px; color: #9DB4A6; padding: 5px 0; transition: color .2s, transform .35s var(--ease); }
.foot__col a:hover { color: var(--neon); transform: translateX(3px); }
.foot__bar { position: relative; display: flex; justify-content: space-between; gap: 20px; margin: 44px var(--gut) 0 calc(var(--gut) + 296px); padding: 22px 0 26px; border-top: 1px solid var(--line-s); font: 300 11.5px/1.5 var(--mono); color: var(--dim); }
.foot__bar b { font-weight: 300; color: #9AA88C; }
@media (max-width: 1199px) {
  .foot__in { grid-template-columns: minmax(0, 1.2fr) repeat(5, minmax(0, 1fr)); padding-top: 200px; column-gap: 20px; }
  .foot__brand { grid-column: 1; }
  .foot__bar { margin-left: var(--gut); }
}
@media (max-width: 899px) {
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; padding-top: 70px; }
  .foot__brand { grid-column: 1 / -1; padding-right: 0; }
  .foot__field { width: 100%; height: 55%; top: auto; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%); opacity: .55; }
  .foot__bar { flex-direction: column; gap: 6px; }
}

/* =========================================================
   SUBPAGE TEMPLATE (breadcrumb, two-line title, lede, two bracket buttons, "01 · LABEL" rows)
   ========================================================= */
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gut))); margin-inline: auto; }
.pg { position: relative; z-index: 2; padding-bottom: 140px; }
.dotbg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dotbg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 0%, rgba(30, 40, 16, .55), transparent 60%), radial-gradient(90% 60% at 10% 100%, rgba(18, 24, 10, .7), transparent 70%); }
.dotbg::after { content: ''; position: absolute; inset: -14px; background-image: radial-gradient(circle, rgba(61, 255, 154, .36) .9px, transparent 1.35px); background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(75% 70% at 52% 62%, #000 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .12) 88%); mask-image: radial-gradient(75% 70% at 52% 62%, #000 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .12) 88%);
  animation: dotdrift 40s linear infinite; }
@keyframes dotdrift { to { transform: translate3d(13px, 13px, 0); } }
.pg-hero { position: relative; padding-top: max(140px, calc(52.6vh - 283px)); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 11px; font-weight: 300; letter-spacing: .32em; text-transform: uppercase; color: rgba(236, 245, 228, .55); }
.crumb a:hover { color: var(--pale); }
.crumb em { font-style: normal; color: var(--neon); }
.crumb .cur { color: rgba(236, 245, 228, .4); }
.pg-title { margin-top: 22px; font-weight: 300; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -.04em; color: var(--text); }
.pg-title .l { display: block; }
.lede { margin-top: 26px; max-width: 640px; font-size: clamp(16px, 1.3vw, 18.7px); line-height: 1.6; color: var(--muted); }
.lede b { color: var(--text); font-weight: 400; }
.pg-hero .btns { margin-top: 30px; }
.pg-hero::after { content: ''; display: block; height: 1px; margin-top: 70px; background: linear-gradient(90deg, var(--line-s2), rgba(44, 59, 31, 0) 70%); }
.rows { padding-top: 88px; }
.row { display: grid; grid-template-columns: minmax(0, 335px) minmax(0, 738px); column-gap: 41px; padding-bottom: 100px; }
.row__k { font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--pale); line-height: 16px; padding-top: 2px; }
.row__k em { font-style: normal; color: var(--neon); margin-right: 12px; letter-spacing: .2em; }
.row__k small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--dim); line-height: 1.5; max-width: 260px; }
.row__v { min-width: 0; }
.row__v > p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 660px; }
.row__v > p + p { margin-top: 14px; }
.row__v > p b, .row__v li b { color: var(--text); font-weight: 400; }
.row__v .note { font-size: 14px; color: var(--dim); margin-top: 16px; }
@media (max-width: 899px) {
  .row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding-bottom: 72px; }
  .rows { padding-top: 60px; }
  .pg-hero::after { margin-top: 50px; }
  .pg-hero { padding-top: 130px; }
}

/* cards grid (2 columns of hairline cells) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-s); border-left: 1px solid var(--line-s); }
.cards > * { position: relative; padding: 24px 20px 26px; border-right: 1px solid var(--line-s); border-bottom: 1px solid var(--line-s); background: rgba(14, 17, 10, .78); min-width: 0; transition: background-color .3s; }
.cards > a:hover, .cards > .is-hover:hover { background: rgba(22, 27, 16, .92); }
.cards > .fill { background: rgba(28, 38, 18, .65); }
.card__tag { display: flex; justify-content: space-between; gap: 10px; font: 300 11px/14px var(--mono); color: var(--neon); }
.card__tag i { font-style: normal; color: var(--dim); }
.card h3 { margin-top: 12px; font-size: 19px; font-weight: 400; letter-spacing: -.02em; line-height: 1.3; color: var(--text); }
.card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.card .arr { position: absolute; right: 18px; top: 22px; width: 12px; height: 12px; color: var(--dim); transition: transform .35s var(--ease), color .2s; }
.cards > a:hover .arr { color: var(--neon); transform: translate(2px, -2px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); } .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* key/value table (what runs where) */
.kv { border-top: 1px solid var(--line-s); }
.kv > div { display: grid; grid-template-columns: minmax(0, 238px) minmax(0, 1fr); column-gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-s); }
.kv dt, .kv > div > b { font: 400 13px/23px var(--mono); color: var(--pale); }
.kv dd, .kv > div > span { font-size: 14.5px; line-height: 23px; color: var(--muted); }
.kv dd b, .kv > div > span b { color: var(--text); font-weight: 400; }
@media (max-width: 640px) { .kv > div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } }

/* numbered steps with a vertical rail */
.steps { position: relative; counter-reset: st; }
.steps::before { content: ''; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), var(--line-s)); }
.steps > li { position: relative; padding: 0 0 34px 34px; counter-increment: st; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--neon); }
.steps > li::after { content: counter(st, decimal-leading-zero); position: absolute; left: -30px; top: 3px; font: 300 10px var(--mono); color: var(--dim); }
.steps h3 { font-size: 19px; font-weight: 400; letter-spacing: -.02em; color: var(--text); line-height: 1.35; }
.steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.steps p b { color: var(--text); font-weight: 400; }
.steps code { font-size: 12.5px; color: var(--neon); }
@media (max-width: 899px) { .steps > li::after { display: none; } }

/* accordions */
.acc { border-top: 1px solid var(--line-s); }
.acc details { border-bottom: 1px solid var(--line-s); }
.acc summary { position: relative; list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 17px; letter-spacing: -.01em; color: var(--text); transition: color .2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 1px solid var(--neon); border-bottom: 1px solid var(--neon); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.acc summary:hover { color: var(--neon); }
.acc details > div { padding: 0 0 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 620px; }
.acc details > div p + p { margin-top: 10px; }
.acc details > div b { color: var(--text); font-weight: 400; }

/* inline code + code blocks */
.ic { font: 400 12.5px var(--mono); color: var(--neon); background: rgba(61, 255, 154, .07); padding: 2px 6px; white-space: nowrap; }
@media (max-width: 640px) { .ic { white-space: normal; overflow-wrap: anywhere; } }
.code { position: relative; border: 1px solid var(--line-s); background: rgba(7, 9, 6, .88); margin-top: 16px; }
.code__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line-s); font: 400 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.code pre { margin: 0; padding: 16px 16px 18px; overflow-x: auto; font: 400 12.5px/1.75 var(--mono); color: #D9E6C6; tab-size: 2; }
.code pre .c { color: var(--dim); } .code pre .k { color: var(--neon); } .code pre .s { color: #B5E07A; } .code pre .n { color: #FFD27A; }

/* endpoint field (input-like + copy) */
.field { display: flex; align-items: stretch; border: 1px solid var(--line-s2); background: rgba(7, 9, 6, .82); max-width: 640px; }
.field code { flex: 1; min-width: 0; padding: 18px 20px; font: 300 15px var(--mono); color: var(--text); overflow-x: auto; white-space: nowrap; }
.field button { flex: none; padding: 0 22px; border-left: 1px solid var(--line-s2); font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--pale); transition: background-color .25s, color .25s; }
.field button:hover { background: var(--neon); color: var(--neon-ink); }
.field button.is-ok { color: var(--ok); background: none; }
.field + p { margin-top: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 480px) { .field code { font-size: 12.5px; padding: 15px 12px; } .field button { padding: 0 12px; } }

/* tabs */
.tabs { display: flex; gap: 6px 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line-s); }
.tabs button { position: relative; padding: 10px 0 13px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); transition: color .2s; }
.tabs button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--neon); transform: scaleX(0); transition: transform .4s var(--ease); }
.tabs button:hover { color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--pale); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabpane { padding-top: 22px; }
.olist { counter-reset: ol; display: grid; gap: 9px; }
.olist > li { counter-increment: ol; position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.olist > li::before { content: counter(ol) '.'; position: absolute; left: 0; color: var(--dim); }
.olist b { color: var(--text); font-weight: 400; }
.olist i { color: var(--muted); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-s); background: rgba(14, 17, 10, .78); }
.stats > div { padding: 18px 16px; border-right: 1px solid var(--line-s); min-width: 0; }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -.03em; color: var(--text); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats span { display: block; margin-top: 6px; font-family: var(--wide); font-stretch: var(--wide-stretch); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-s); } }

/* data table */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--wide); font-stretch: var(--wide-stretch); font-weight: 400; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-s); }
.tbl td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-s); color: var(--muted); vertical-align: top; }
.tbl td:first-child { color: var(--text); }
.tbl .mono { font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }

/* reveal on scroll (subpages). JS adds .rv-on to <html>; without JS everything is visible. */
.rv-on [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv-on [data-rv].in { opacity: 1; transform: none; }
.rv-on .pg-title .l { overflow: hidden; }
.rv-on .pg-title .l > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.rv-on .pg-title.in .l > span { transform: none; }
.rv-on .pg-title.in .l:nth-child(2) > span { transition-delay: .09s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rv-on [data-rv], .rv-on .pg-title .l > span { opacity: 1 !important; transform: none !important; }
  .dotbg::after { animation: none; }
}
