/* ==========================================================================
   Assay — landing
   Every colour, font family and radius comes from assets/tokens.css.
   No raw colour values here: use var(--…) or color-mix() over variables.
   Shared by index, agents, docs, security and changelog.
   ========================================================================== */

html { scroll-padding-top: 84px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.th-short { display: none; }
.g-facet { fill: var(--gold-bright); opacity: 0.8; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ledger);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.brand { display: inline-flex; flex: none; border-radius: var(--r-ctl); }
.brand__logo { height: 24px; width: auto; }

.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--ledger-2); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--ink);
  transition: background-color var(--t-ui) var(--ease);
}
.menu-btn:hover { background: var(--ledger-2); }
.menu-btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-btn__icon--close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__icon--open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__icon--close { display: block; }

.menu { border-top: 1px solid var(--rule); background: var(--ledger); }
.menu__inner { padding-block: 4px 24px; }
.menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.menu__actions { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 959px) {
  .nav, .header-app { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 559px) {
  .header-cta { display: none; }
}
@media (min-width: 960px) {
  .menu { display: none !important; }
}

/* ---------- shared section scaffolding ---------- */
.section { padding-top: var(--section); }
.section__inner { padding-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid var(--rule); }
.section--cta { padding-bottom: var(--section); }

.sec-head { display: grid; gap: 16px 56px; margin-bottom: clamp(32px, 4.5vw, 56px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}
.sec-head--stack { display: block; }
.sec-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sec-head__lede { max-width: 46ch; color: var(--ink-2); }

.btn--lg { min-height: 48px; padding: 0 20px; font-size: 16px; }

/* restrained scroll reveal (only when motion is allowed and JS runs) */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--ease) var(--d, 0ms), transform 460ms var(--ease) var(--d, 0ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 96px) var(--section); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
@media (min-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__sub { margin-top: 28px; max-width: 34em; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 24px; color: var(--ink-2); font-size: 13px; }

/* "shines": a gold touchstone streak that tests out as pyrite */
.shine { position: relative; display: inline-block; color: var(--gold); white-space: nowrap; }
.shine__probe { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.shine__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.shine__path {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1;
  opacity: 0;
}
.shine.is-drawn .shine__path {
  stroke: var(--pyrite);
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 500ms cubic-bezier(0.55, 0.06, 0.25, 1) 400ms,
    opacity 0s linear 400ms,
    stroke 800ms var(--ease) 1250ms;
}
.no-js .shine {
  text-decoration: underline var(--pyrite);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.14em;
}

/* ---------- the assay sheet (signature) ---------- */
.assay {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  container: assay / inline-size;
}
.assay__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 18px;
}
.assay__file { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; font-size: 13px; }
.assay__file svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.assay__name { color: var(--ink); white-space: nowrap; }
.assay__count { color: var(--ink-2); white-space: nowrap; }
.assay__state { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.assay__state::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ink-2); }
.assay__state.is-done::before { background: var(--gold); }

/* the touchstone: rows sit on the darkest surface */
.assay__body { position: relative; background: var(--ledger); border-top: 1px solid var(--rule); }
.assay__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.2; }
.assay__table th {
  height: 34px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom-color: color-mix(in srgb, var(--ink-2) 45%, var(--rule));
}

.ac {
  height: 34px;
  padding: 0 10px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  transition: color 420ms var(--ease);
}
.ac--idx { width: 74px; padding-left: 18px; color: var(--ink-2); }
.ac--addr { color: var(--ink); }
.ac--num { width: 92px; text-align: right; color: var(--ink); }
.ac--st { width: 86px; padding-left: 16px; }
.ac--more { color: var(--ink-2); font-size: 12px; }
.ac-margin {
  width: 150px;
  padding: 0 10px 0 28px;
  vertical-align: middle;
  border-left: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
}
.assay__table th.ac-margin { border-bottom-color: color-mix(in srgb, var(--ink-2) 45%, var(--rule)); }
.arow-more .ac, .arow-more .ac-margin { border-bottom: 0; }

/* final state (default; also no-JS and reduced motion) */
.arow--keep .ac--addr, .arow--keep .ac--num { color: var(--gold); }
.arow--cut .ac { color: var(--pyrite); }

.st {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: st-in 280ms var(--ease) both;
}
.st__g { width: 11px; height: 10px; flex: none; fill: currentColor; }
.st--keep { color: var(--gold); }
.st--cut { color: var(--redline-text); }
.st--cut .st__g { fill: var(--pyrite); }
@keyframes st-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

/* pending: before the scan line reaches a row (motion only) */
.motion .arow:not(.is-assayed) .ac { color: var(--ink); }
.motion .arow:not(.is-assayed) .ac--idx { color: var(--ink-2); }
.motion .arow:not(.is-assayed) .st { display: none; }
.motion .arow:not(.is-assayed) .ac--st::after { content: "—"; color: var(--ink-2); }

/* margin evidence */
.assay__note { font-size: 12px; line-height: 1.5; color: var(--redline-text); white-space: normal; }
.assay__note > span { display: block; }
.note__head { font-weight: 600; }
.assay__tag { display: block; font-size: 12px; color: var(--redline-text); white-space: nowrap; }
.assay__note, .assay__tag { transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.motion .assay__note:not(.is-in), .motion .assay__tag:not(.is-in) { opacity: 0; transform: translateX(-4px); }

/* pencil overlay + scan line */
.assay__ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.assay__strike { stroke-width: 2; --draw: 260ms; }
.assay__brace { stroke-width: 1.6; --draw: 420ms; }
.assay__tick { stroke-width: 1.6; --draw: 160ms; }

.assay__scan {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}
.assay__scan::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
}
.assay__scan.is-on { opacity: 0.9; }

/* no-JS fallback strike */
.no-js .arow--cut .ac--idx,
.no-js .arow--cut .ac--addr,
.no-js .arow--cut .ac--num {
  background: linear-gradient(var(--redline), var(--redline)) center / 100% 2px no-repeat;
}

.assay__foot { padding: 16px 18px 18px; }
.assay__totals { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 8px 40px; }
.tot { display: grid; gap: 8px; align-content: start; }
.tot__val {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tot--keep .tot__val { color: var(--gold-bright); }
.tot--cut .tot__val { color: var(--redline-text); }

/* The sheet sizes to its column, not the viewport: container queries.
   compact (< 560px): tighter columns, short headers. narrow (< 400px): no index,
   status as glyph only (text stays for screen readers), wider margin for the note. */
@container assay (max-width: 560px) {
  .assay__table { font-size: 12px; }
  .ac { padding: 0 8px; }
  .ac--idx { width: 60px; padding-left: 14px; }
  .ac--num { width: 66px; }
  .ac--st { width: 74px; padding-left: 12px; }
  .ac-margin { width: 132px; padding: 0 8px 0 24px; }
  .th-full--alloc {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .th-short { display: inline; }
  .assay__head { padding: 12px 14px; }
  .assay__foot { padding: 14px 14px 16px; }
  .assay__totals { gap: 8px 28px; }
  .tot__val { font-size: 20px; }
}
@container assay (max-width: 400px) {
  .assay__table { font-size: 11.5px; }
  .ac { padding: 0 6px; }
  .ac--idx { display: none; }
  .ac--addr { width: 88px; padding-left: 12px; }
  .ac--num { width: 50px; }
  .ac--st { width: 32px; padding: 0 0 0 12px; }
  .ac-margin { width: auto; padding: 0 6px 0 24px; }
  .th-full, .st__t {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .motion .arow:not(.is-assayed) .ac--st::after { content: "·"; }
  .assay__note, .assay__tag { font-size: 11px; }
  .assay__totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  .tot__val { font-size: 18px; }
}

/* ---------- what we look at ---------- */
.exhibits {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
}
.exhibit {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 6px 20px;
  align-content: start;
  padding: 22px 20px;
  background: var(--sheet);
}
.exhibit__dg { grid-row: 1 / span 2; width: 92px; height: auto; overflow: visible; }
.exhibit__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.exhibit__text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (min-width: 640px) {
  .exhibits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 8px; padding: 28px 24px 30px; }
  .exhibit__dg { grid-row: auto; width: 100%; max-width: 190px; margin-bottom: 18px; }
  .exhibit:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .exhibits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .exhibit:last-child { grid-column: auto; }
}
.ex-line { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ex-faint { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-linecap: round; opacity: 0.7; vector-effect: non-scaling-stroke; }
.ex-dash { stroke-dasharray: 2 3; }
.ex-fill { fill: var(--ink); }
.ex-cube { fill: var(--pyrite); }
.ex-bar { fill: var(--ink-2); opacity: 0.55; }
.ex-gold { fill: var(--gold); }

/* ---------- products ---------- */
.products { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.product { display: flex; flex-direction: column; padding: 28px 26px 24px; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 960px) {
    .product { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
    .product__price { align-self: end; }
  }
}
.product__name { margin-top: 14px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.product__q { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.product__list { margin: 22px 0 26px; border-top: 1px solid var(--rule); }
.product__list li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
}
.product__list li::before,
.cta__facts li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(50% - 4px);
  width: 9px;
  height: 8px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.5 4.5 23.5 20'%3E%3Cpath d='M9.2 7.4 18.6 4.9 25.8 9.3 27.4 17.6 22.1 23.4 12.3 23.9 5.2 18.1 5.9 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.5 4.5 23.5 20'%3E%3Cpath d='M9.2 7.4 18.6 4.9 25.8 9.3 27.4 17.6 22.1 23.4 12.3 23.9 5.2 18.1 5.9 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product__price { margin-top: auto; padding-top: 16px; }
.price__from, .price__per { color: var(--ink-2); font-size: 14px; }
.price__amt { font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.price__amt--free { color: var(--gold); }

/* ---------- cluster report ---------- */
.report { overflow: hidden; }
.report__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--rule);
}
.report__title { margin-top: 8px; font-size: 28px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.report__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.report__verdict { display: grid; justify-items: end; gap: 6px; text-align: right; }
.report__cut { font-size: 30px; font-weight: 600; line-height: 1; color: var(--redline); }
.report__conf { color: var(--ink-2); font-size: 13px; }

.report__grid { display: grid; gap: 1px; background: var(--rule); }
@media (min-width: 960px) {
  .report__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .panel--tree { grid-row: 1 / span 2; }
}
.panel { min-width: 0; padding: 22px 28px 24px; background: var(--sheet); }
.panel__title { margin-bottom: 18px; }
.panel__caption { max-width: 48ch; margin-top: 16px; color: var(--ink-2); font-size: 14px; }

.tree { position: relative; }
.tree__svg { width: 100%; height: auto; overflow: visible; }
.tr-edge { fill: none; stroke: var(--ink-2); stroke-width: 1; opacity: 0.5; vector-effect: non-scaling-stroke; }
.tr-edge--main { stroke: var(--ink); stroke-width: 1.25; opacity: 0.85; }
.tr-ring { fill: none; stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.tr-funder { fill: var(--ink); }
.tr-relay { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.tr-leaf { fill: var(--pyrite); }
.tr-brace { fill: none; stroke: var(--redline); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tree__funder { position: absolute; left: 0; top: 62%; display: grid; gap: 4px; font-size: 12px; }
.tree__relay { position: absolute; left: 26%; top: 44%; color: var(--ink-2); font-size: 11.5px; }
.tree__note { position: absolute; left: 70%; top: 50%; transform: translateY(-50%); color: var(--redline-text); font-size: 12px; line-height: 1.5; }

.hist { position: relative; padding-top: 30px; }
.hist__flag {
  position: absolute;
  top: 0;
  left: var(--x);
  transform: translateX(-50%);
  color: var(--redline-text);
  font-size: 12px;
  white-space: nowrap;
}
.hist__svg { display: block; width: 100%; height: 120px; }
.hist__base { fill: none; stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hist__axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-2); font-size: 11.5px; }

.deps { display: grid; gap: 14px; }
.dep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; font-size: 13px; }
.dep__bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--ledger); }
.dep__bar > span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--pyrite); }
.dep__n { color: var(--ink-2); }

.report__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 28px;
  border-top: 1px solid var(--rule);
}
.report__summary { color: var(--ink-2); font-size: 15px; }

@media (max-width: 559px) {
  .report__head, .panel, .report__foot { padding-inline: 18px; }
  .report__verdict { justify-items: start; text-align: left; }
  .tree__note { font-size: 11px; }
  .tree__relay { display: none; }
  .tree__funder { top: auto; bottom: -8px; }
  .tree { padding-bottom: 8px; }
}

/* ---------- appeals ---------- */
.steps { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.step { padding-top: 22px; border-top: 1px solid var(--rule); }
.step__n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink-2);
  border-radius: var(--r-chip);
  font-size: 13px;
}
.step__title { margin-top: 18px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.step__text { margin-top: 8px; max-width: 40ch; color: var(--ink-2); font-size: 16px; }

.log { margin-top: clamp(40px, 5vw, 56px); overflow: hidden; }
.log__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
}
.log__meta { color: var(--ink-2); font-size: 12px; }
.log__cols, .log__row {
  display: grid;
  grid-template-columns: 80px 112px 72px 128px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-inline: 22px;
}
.log__cols { min-height: 38px; border-bottom: 1px solid var(--rule); }
.log__row { min-height: 56px; padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.log__row:last-child { border-bottom: 0; }
.log__id, .log__wallet, .log__cluster { font-size: 13px; }
.log__reason { color: var(--ink-2); }
.log__pfx {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 759px) {
  .log__cols { display: none; }
  .log__row { grid-template-columns: auto auto minmax(0, 1fr); gap: 8px 14px; padding-inline: 18px; }
  .log__cluster { display: none; }
  .log__decision { justify-self: end; }
  .log__reason { grid-column: 1 / -1; font-size: 14px; }
}

/* ---------- code tokens (highlighter in main.js) ---------- */
.tk-p { color: var(--ink-2); }
.tk-k { color: var(--ink); }
.tk-s { color: var(--ink-2); }
.tk-n { color: var(--gold-bright); }
.tk-r { color: var(--redline-text); }
.tk-c { color: var(--gold); }
.tk-f { color: var(--ink); }
.tk-v { color: var(--ink); }



/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
  .faq .sec-head { position: sticky; top: 108px; }
}
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 1px solid var(--rule); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 4px;
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: var(--r-ctl);
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--gold-bright); }
.qa__icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform var(--t-ui) var(--ease);
}
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__a { max-width: 64ch; padding: 0 44px 22px 4px; color: var(--ink-2); }

/* ---------- final CTA ---------- */
.cta { display: grid; gap: 40px; padding: clamp(24px, 4.5vw, 56px); }
@media (min-width: 960px) {
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}
.cta__title { max-width: 15ch; }
.cta__lede { max-width: 40ch; margin-top: 20px; color: var(--ink-2); }
.cta__facts { margin-top: 28px; border-top: 1px solid var(--rule); font-size: 13px; }
.cta__facts li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); }

.cta__side { min-width: 0; }
.cta__form { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .cta__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta__field--wide { grid-column: 1 / -1; }
}
.input--well { background-color: var(--ledger); }
.cta__submit { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.cta__fine { grid-column: 1 / -1; color: var(--ink-2); }
@media (max-width: 559px) {
  .cta__submit { justify-self: stretch; }
}

.cta__done { display: grid; justify-items: start; gap: 14px; padding: 8px 0; border-radius: var(--r-ctl); }
.cta__done-glyph { width: 40px; height: 34px; fill: var(--gold); }
.cta__done-title { font-size: 26px; font-weight: 600; line-height: 1.2; }
.cta__done-text { max-width: 40ch; color: var(--ink-2); }
.cta__done-text strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner { display: grid; gap: 36px 32px; padding-block: 48px 36px; }
@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
}
.site-footer__brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.site-footer__tag { max-width: 24ch; color: var(--ink-2); font-size: 14px; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
@media (min-width: 640px) {
  .site-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fcol { min-width: 0; }
.fcol__h { margin-bottom: 10px; }
.fcol__list { display: grid; gap: 2px; }
.fcol__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.fcol__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.fcol__list a[aria-current="page"] { color: var(--ink); }
.site-footer__copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* brand lockup: mark + live-text wordmark (logo.svg's <text> can't load web fonts inside <img>) */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font: 700 24px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* ==========================================================================
   Self-serve + agents (2026-10-14). Shared by index, agents, docs, security,
   changelog: same tokens, same header and footer.
   ========================================================================== */

/* ---------- icons from the sprite (<use href="#i-…">), one stroke style ---------- */
.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- small type helpers ---------- */
.kicker { margin-bottom: 14px; }
.ic {
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--ledger);
  color: var(--ink);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ink-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  border-radius: 4px;
}
.link-arrow:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.link-arrow .icon { transition: transform var(--t-ui) var(--ease); }
.link-arrow:hover .icon { transform: translateX(2px); }

/* ---------- header additions ---------- */
.nav__link[aria-current="page"] { color: var(--ink); background: var(--ledger-2); }
.menu { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; }
.menu__link[aria-current="page"] { color: var(--gold-bright); }
.menu__actions .btn .icon { width: 16px; height: 16px; }
.menu__label { margin-top: 26px; }
.menu__social { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 6px; }
.menu__social a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}
.menu__social a:hover { color: var(--ink); text-decoration-color: var(--ink-2); }

/* ---------- trust row ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: clamp(40px, 5vw, 64px); }
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-chip);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
a.trust__item:hover { color: var(--ink); border-color: var(--ink-2); background: var(--ledger-2); }
.trust__item .icon { width: 15px; height: 15px; }
.trust__status { gap: 7px; }
.trust__sep { color: var(--ink-2); }
.trust__val { min-width: 6.2ch; color: var(--ink); font-size: 13px; font-weight: 500; }
.live { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--gold); }
.motion .live { animation: live 2.4s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- try it now ---------- */
.try { display: grid; gap: 16px; }
.try__side { display: grid; gap: 16px; min-width: 0; align-content: start; }
@media (min-width: 1080px) {
  .try { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
  .try__side { position: sticky; top: 96px; }
}
.try__form { display: grid; gap: 22px; padding: 22px; }
.try__row { display: flex; flex-wrap: wrap; gap: 10px; }
.try__row .input { flex: 1 1 240px; min-width: 0; }
.try__submit { flex: none; }
.try__submit[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
@media (max-width: 479px) {
  .try__submit { flex: 1 1 100%; }
}
.try__examples { display: grid; gap: 10px; }
.try__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--btn {
  height: 32px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border-color: var(--rule);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
.chip--btn:hover { border-color: var(--ink-2); background: var(--ledger-2); }
.chip--btn[aria-pressed="true"] { color: var(--gold-bright); border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: var(--moss-wash); }
.try__meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  color: var(--ink-2);
  font-size: 15px;
}
.try__meter > .icon { margin-top: 4px; color: var(--gold); }
.try__meter strong { color: var(--ink); font-weight: 500; }
.try__meter .link-arrow { grid-column: 2; justify-self: start; }

.try__out { position: relative; min-width: 0; }
.try__card { transition: opacity 200ms var(--ease); }
.try__out.is-busy .try__card { opacity: 0.4; }
.try__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.motion .try__out.is-busy .try__scan { opacity: 0.9; animation: try-scan 700ms var(--ease) both; }
@keyframes try-scan { from { transform: translateY(0); } to { transform: translateY(var(--scan-h, 300px)); } }

.try-state { display: grid; justify-items: start; gap: 10px; padding: 28px 24px; }
.try-state__icon { width: 30px; height: 26px; margin-bottom: 4px; fill: var(--gold); }
.try-state__icon--cube { width: 22px; height: 22px; fill: var(--pyrite); }
.try-state__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.try-state__text { max-width: 54ch; color: var(--ink-2); font-size: 15px; }

/* ---------- risk card (mirrors the app's #/risk card) ---------- */
.riskcard { overflow: hidden; container: riskcard / inline-size; }
.riskcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--rule);
}
.riskcard__id { display: grid; gap: 6px; min-width: 0; }
.riskcard__name { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.riskcard__sym { margin-left: 2px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.riskcard__mint { color: var(--ink-2); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-chip);
  font: 600 13px/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.verdict--high { color: var(--redline-text); background: var(--redline-wash); border-color: color-mix(in srgb, var(--redline) 45%, transparent); }
.verdict--medium { color: var(--ink); border-color: var(--ink-2); }
.verdict--low { color: var(--gold-bright); background: var(--moss-wash); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

.rmetrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.rmetric { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 22px; background: var(--sheet); }
.rmetric > dt { min-height: 2.6em; }
.rmetric__dd { display: grid; gap: 8px; }
.rmetric__v { font-size: 30px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.rmetric__v--high { color: var(--redline-text); }
.rmetric__v--low { color: var(--gold-bright); }
.rmetric__sub { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
@container riskcard (min-width: 640px) {
  .rmetrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rmetric { padding: 18px 20px; }
}
.meter { display: block; height: 6px; overflow: hidden; border-radius: 6px; background: var(--rule); }
.meter > span { display: block; height: 100%; background: var(--gold); }
.meter--red > span { background: var(--redline); }

.supply { display: grid; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--rule); }
.stack { display: flex; gap: 2px; height: 12px; overflow: hidden; border-radius: 3px; background: var(--ledger); }
.stack > span { display: block; height: 100%; }
.stack__team { background: var(--redline); }
.stack__early { background: var(--pyrite); }
.stack__rest { background: var(--gold); opacity: 0.75; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font: 400 12.5px/1.3 var(--font-mono); font-stretch: 87.5%; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

.rgroups { padding: 4px 22px 12px; border-top: 1px solid var(--rule); }
.rgroups__h { padding: 14px 0 4px; }
.rgroup {
  display: grid;
  grid-template-columns: 24px 84px 62px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--rule);
  font-size: 14px;
}
.rgroup:first-child { border-top: 0; }
.rgroup__id { color: var(--redline-text); font-size: 13px; font-weight: 600; }
.rgroup__w { color: var(--ink); font-size: 13px; }
.rgroup__share { color: var(--redline-text); font-size: 13px; }
.rgroup__why { color: var(--ink-2); }
.rgroups__none { padding: 8px 0 6px; color: var(--ink-2); font-size: 14px; }

.riskcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-top: 3px double var(--ink-2);
}
.riskcard__more { margin-left: auto; font-size: 14px; }
.riskcard__json { border-top: 1px solid var(--rule); background: var(--ledger); }
.riskcard__json-h { padding: 14px 22px 0; color: var(--ink-2); font-size: 12px; }
.riskcard__json .code-pre { padding: 10px 22px 18px; }
@container riskcard (max-width: 519px) {
  .riskcard__head, .rmetric, .supply, .rgroups, .riskcard__foot { padding-inline: 18px; }
  .rmetric__v { font-size: 26px; }
  .rgroup { grid-template-columns: 24px auto minmax(0, 1fr); }
  .rgroup__why { grid-column: 2 / -1; }
  .riskcard__more { width: 100%; margin-left: 0; }
}

/* ---------- code blocks ---------- */
.code-pre {
  margin: 0;
  padding: 14px 18px;
  overflow-x: auto;
  background: var(--ledger);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
  tab-size: 2;
}
.code-pre:focus-visible { outline-offset: -2px; }
.codebox { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); }
.codebox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 6px 0 18px;
}
.codebox > .code-pre { border-top: 1px solid var(--rule); }
.tk-ok { color: var(--gold); }
.tk-ph { color: var(--ink-2); }

/* ---------- for agents ---------- */
.summary { overflow: hidden; margin-bottom: 16px; }
.summary__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 6px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.summary__text {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
  background: var(--ledger);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}
.summary__text p { padding-left: 10ch; text-indent: -10ch; overflow-wrap: anywhere; }
.summary__k { display: inline-block; min-width: 9ch; text-indent: 0; color: var(--gold); }
@media (max-width: 559px) {
  .summary__text p { padding-left: 0; text-indent: 0; }
  .summary__k { min-width: 0; margin-right: 0.4ch; }
}

.copy-btn { flex: none; }
.copy-btn.is-copied { border-color: var(--gold); color: var(--gold-bright); }

.installs { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .installs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.install { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; }
.install__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.install__name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.install__note { margin-top: auto; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.install__note a { color: var(--ink); text-decoration-color: var(--ink-2); text-underline-offset: 3px; }
.cmd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-ctl);
  background: var(--ledger);
}
.cmd__text {
  flex: 1 1 auto;
  min-width: 0;
  padding-block: 8px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 479px) {
  .cmd { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 6px 6px 12px; }
  .cmd .copy-btn { align-self: flex-end; }
  .cmd__text { padding-block: 6px 0; }
}

.agents__grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1000px) {
  .agents__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
}
.agents__h { margin-bottom: 14px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.agents__fine { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.agents__links { display: flex; flex-wrap: wrap; gap: 2px 24px; margin-top: 16px; }

.prices { border-top: 1px solid var(--rule); }
.prices__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.prices__tool { color: var(--ink); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.prices__ep { grid-column: 1; color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.prices__price { display: grid; grid-column: 2; grid-row: 1 / span 2; justify-items: end; gap: 3px; text-align: right; }
.prices__amt { color: var(--ink); font-size: 17px; font-weight: 500; white-space: nowrap; }
.prices__amt--free { color: var(--gold); }
.prices__per { max-width: 22ch; color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }

.flow__step { border-top: 1px solid var(--rule); }
.flow__title { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; font-size: 14px; font-weight: 500; }
.flow__n {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink-2);
  border-radius: var(--r-chip);
  font-size: 11px;
}
.flow__step .code-pre { border-top: 1px solid var(--rule); }
.flow__one { display: grid; gap: 10px; padding: 16px 18px 18px; border-top: 3px double var(--ink-2); }



/* ---------- product prices (self-serve first, team second) ---------- */
.product__price { display: grid; gap: 6px; }
.price__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price__team { color: var(--ink-2); font-size: 14px; }
.price__team .mono { color: var(--ink); }

/* ---------- pricing: You / Your agent / Your team ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 1080px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.plan { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 24px; }
.plan--you { border-color: color-mix(in srgb, var(--gold) 50%, var(--rule)); }
.plan__name { margin-top: 12px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.plan__desc { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.plan__rows { margin: 22px 0 20px; border-top: 1px solid var(--rule); }
.plan__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.plan__what { min-width: 0; }
.plan__item { font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.plan__item--mono { font-family: var(--font-mono); font-stretch: 87.5%; font-size: 13px; overflow-wrap: anywhere; }
.plan__note { margin-top: 4px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.plan__note.mono { font-size: 12px; }
.plan__price { display: grid; justify-items: end; align-content: start; gap: 3px; text-align: right; }
.plan__from { color: var(--ink-2); font-size: 12.5px; }
.plan__amt { color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.plan__amt--free { color: var(--gold); }
.plan__per { color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.plan__use { margin-bottom: 20px; padding-left: 14px; border-left: 2px solid var(--gold); font-size: 15px; }
.plan__foot { margin-top: auto; }
.plan__cta { width: 100%; }

/* ---------- enterprise: the old request form, smaller and last ---------- */
.cta--small { gap: 28px; padding: clamp(22px, 3.5vw, 40px); }
@media (min-width: 960px) {
  .cta--small { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
}
.cta--small .cta__title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta--small .cta__lede { margin-top: 14px; font-size: 15px; }
.cta--small .cta__form { gap: 14px; }
.cta__fine a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- inner pages ---------- */
.page { padding-block: clamp(28px, 4.5vw, 64px) var(--section); }
.page-head { max-width: 900px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-head__kicker { margin-bottom: 18px; }
.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-head__lede { max-width: 56ch; margin-top: 20px; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-head__lede a, .prose a, .xstep__body a, .callout a, .dtable a {
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.page-sec { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.page-sec__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-sec__lede { max-width: 60ch; margin-top: 12px; color: var(--ink-2); }
.page-sec__body { margin-top: 24px; }

.split { display: grid; gap: 24px 48px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}

/* docs + security layout: sticky contents on wide screens */
.doc { display: grid; gap: 28px; }
.doc__body { min-width: 0; }
@media (min-width: 1040px) {
  .doc { grid-template-columns: 216px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
}
.doc-sec { padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.doc-sec + .doc-sec { margin-top: clamp(40px, 5vw, 64px); }
.doc-sec > .page-sec__title + * { margin-top: 18px; }
.toc__title { margin-bottom: 10px; }
.toc__list { display: grid; border-left: 1px solid var(--rule); }
.toc__link {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}
.toc__link:hover { color: var(--ink); }
.toc__link[aria-current] { color: var(--ink); border-left-color: var(--gold); }
.toc__link--ep { font-family: var(--font-mono); font-stretch: 87.5%; font-size: 12.5px; }
@media (max-width: 1039px) {
  .toc { padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); }
  .toc__list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 16px; border-left: 0; }
  .toc__link { margin-left: 0; padding: 8px 0; border-left: 0; }
  .toc__link[aria-current] { color: var(--ink-2); }
}

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 14px; }
.prose h3 { margin-top: 30px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.prose strong { font-weight: 600; }
.muted { color: var(--ink-2); }

.dots > li { position: relative; padding-left: 22px; }
.dots > li + li { margin-top: 10px; }
.dots > li::before,
.entry__list > li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.62em;
  width: 9px;
  height: 8px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.5 4.5 23.5 20'%3E%3Cpath d='M9.2 7.4 18.6 4.9 25.8 9.3 27.4 17.6 22.1 23.4 12.3 23.9 5.2 18.1 5.9 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4.5 4.5 23.5 20'%3E%3Cpath d='M9.2 7.4 18.6 4.9 25.8 9.3 27.4 17.6 22.1 23.4 12.3 23.9 5.2 18.1 5.9 11.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* data tables: stack into labelled rows on small screens */
.dtable { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.dtable th {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-2) 45%, var(--rule));
  color: var(--ink-2);
  font: 500 11.5px/1.3 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: bottom;
}
.dtable td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.dtable td:first-child { color: var(--ink); }
.dtable th:last-child, .dtable td:last-child { padding-right: 0; }
.dtable__k { color: var(--ink); font-family: var(--font-mono); font-stretch: 87.5%; font-size: 13px; overflow-wrap: anywhere; }
@media (min-width: 1100px) {
  .dtable__k { white-space: nowrap; }
}
.dtable__type { color: var(--ink-2); font-family: var(--font-mono); font-stretch: 87.5%; font-size: 12.5px; overflow-wrap: anywhere; }
.dtable .req { margin-left: 6px; color: var(--gold); font: 500 11px/1 var(--font-mono); font-stretch: 87.5%; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 639px) {
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .dtable td { padding: 2px 0; border: 0; }
  .dtable td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-top: 6px;
    color: var(--ink-2);
    font: 500 11px/1.4 var(--font-mono);
    font-stretch: 87.5%;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* endpoints */
.endpoint { margin-top: 28px; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); }
.endpoint__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
}
.endpoint__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; font-size: 16px; font-weight: 500; }
.method {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--ink-2);
  border-radius: 4px;
  color: var(--ink);
  font: 600 12px/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
}
.method--post { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold-bright); }
.endpoint__path { font-size: 15px; overflow-wrap: anywhere; }
.endpoint__body { display: grid; gap: 16px; padding: 20px 22px 24px; }
.endpoint__body > p { max-width: 72ch; }
.endpoint__h { margin-top: 10px; }
.endpoint .dtable td { color: var(--ink-2); }
@media (max-width: 559px) {
  .endpoint__head, .endpoint__body { padding-inline: 16px; }
}

/* tabs (code examples) */
.tabs { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--ledger); }
.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px 0 8px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}
.tabs__list { display: flex; flex: 1 1 auto; gap: 2px; min-width: 0; overflow-x: auto; }
.tabs__tab {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1 var(--font-body);
  white-space: nowrap;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs__tab:focus-visible { outline-offset: -2px; }
.no-js .tabs__panel[hidden] { display: block !important; }
.no-js .tabs__list, .no-js [data-copy-tabs] { display: none; }

/* numbered x402 steps (a real sequence) */
.xsteps { margin-top: 24px; border-top: 1px solid var(--rule); }
.xstep { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.xstep__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ink-2);
  border-radius: var(--r-chip);
  font-size: 13px;
}
.xstep__body { display: grid; gap: 12px; min-width: 0; }
.xstep__title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.xstep__body > p { max-width: 68ch; color: var(--ink-2); }
.xstep .code-pre { border: 1px solid var(--rule); border-radius: var(--r-ctl); }

.callout {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-ctl);
  background: var(--sheet);
}
.callout__title { font-size: 16px; font-weight: 600; }
.callout p { max-width: 72ch; color: var(--ink-2); }

.clients { display: grid; gap: 10px; margin-top: 24px; }
.clients__h { font-size: 16px; font-weight: 600; }

.rules { margin-top: 20px; border-top: 1px solid var(--rule); }
.rules li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.rules strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
@media (min-width: 760px) {
  .rules li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .rules strong { margin-bottom: 0; }
}

.files { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 760px) {
  .files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 2px 12px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  background: var(--sheet);
  text-decoration: none;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.file:hover { border-color: var(--ink-2); background: var(--row-hover); }
.file .icon { grid-row: 1 / span 2; margin-top: 3px; color: var(--ink-2); }
.file__name { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.file__desc { color: var(--ink-2); font-size: 14px; }

/* security: a ledger of what we never do */
.ledger { overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--sheet); }
.ledger__row { display: grid; gap: 6px 24px; padding: 16px 22px; border-top: 1px solid var(--rule); }
.ledger__row:first-child { border-top: 0; }
@media (min-width: 720px) {
  .ledger__row { grid-template-columns: 190px minmax(0, 1fr); }
}
.ledger__k { color: var(--ink); font: 500 14px/1.5 var(--font-mono); font-stretch: 87.5%; }
.ledger__k--never { text-decoration: line-through; text-decoration-color: var(--redline); text-decoration-thickness: 2px; }
.ledger__k--do { color: var(--gold-bright); }
.ledger__v { color: var(--ink-2); font-size: 15.5px; }
.ledger__v strong { color: var(--ink); font-weight: 500; }

/* changelog */
.entry { display: grid; gap: 16px 48px; padding-top: 24px; border-top: 3px double var(--ink); }
@media (min-width: 860px) {
  .entry { grid-template-columns: 220px minmax(0, 1fr); }
}
.entry__meta { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 10px; }
.entry__date { color: var(--ink); font: 500 14px/1.4 var(--font-mono); font-stretch: 87.5%; }
.entry__body { display: grid; gap: 18px; max-width: 72ch; }
.entry__title { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.entry__list { border-top: 1px solid var(--rule); }
.entry__list > li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.entry__list > li::before { top: calc(12px + 0.62em); }
.entry__list strong { color: var(--ink); font-weight: 500; }
.entry__list a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* docs helpers */
.doc-h3 { margin: 32px 0 12px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.doc-note { margin-bottom: 12px; color: var(--ink-2); font-size: 14.5px; }
.doc-note a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.doc-table { margin-top: 20px; }
.doc-after { margin-top: 18px; }
.code-pre--box { border: 1px solid var(--rule); border-radius: var(--r-ctl); }
.tabs__panel .code-pre { background: transparent; }
.entries { display: grid; gap: 40px; }

.tabs__bar > .copy-btn { margin-left: auto; }
.toc__link:focus-visible { outline-offset: -2px; border-radius: 4px; }

/* ---------- beta build: X link, the live card, availability lines, DM contact ---------- */
.xlink {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-ctl);
  color: var(--ink-2);
  transition: color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.xlink:hover { color: var(--ink); background: var(--ledger-2); }
.xlink svg { width: 17px; height: 17px; fill: currentColor; }
.fcol__list .xlink-text { gap: 8px; }
.riskcard__summary { padding: 16px 22px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.rfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
.rfacts > div { display: grid; gap: 6px; min-width: 0; padding: 14px 22px; background: var(--sheet); }
.rfacts dd { font-size: 13px; overflow-wrap: anywhere; }
.rfacts__on { color: var(--redline-text); }
.rflags { display: grid; gap: 10px; padding: 16px 22px 18px; border-top: 1px solid var(--rule); }
.rflags__list { display: grid; gap: 6px; }
.rflags__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.rflags__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 1px; background: var(--redline); }
.rflags__none, .rflags__cov { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.rflags__pools { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.rflags__pools .label { margin-right: 10px; }
.try-state--error { border-color: color-mix(in srgb, var(--redline) 45%, var(--rule)); }
.try-state .btn { margin-top: 6px; }
@container riskcard (max-width: 519px) {
  .rfacts { grid-template-columns: 1fr; }
  .riskcard__summary, .rflags, .rfacts > div { padding-inline: 18px; }
}
.price__status { font-size: 15px; font-weight: 500; color: var(--ink); }
.price__status--live { color: var(--gold-bright); }
.price__status--live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.agents__beta { margin-top: 16px; padding: 14px 18px; border: 1px dashed var(--rule); border-radius: var(--r-card); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.agents__fine--top { margin: 0 0 12px; }
.flow__plan { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.cta__dm { display: grid; justify-items: start; gap: 16px; }
.cta__dm-text { max-width: 40ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.cta__dm .btn svg { width: 16px; height: 16px; fill: currentColor; }
.callout--beta { border-style: dashed; }
.beta-note { margin-top: 14px; padding: 12px 16px; border: 1px dashed var(--rule); border-radius: var(--r-card); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.live-chip { color: var(--gold-bright); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.planned-chip { color: var(--ink-2); }
