:root {
  --paper: #EEF1F0;
  --white: #FFFFFF;
  --ink: #17232C;
  --ink-2: #3E4D55;
  --mute: #5C6B72;
  --line: #CBD3D2;
  --brass: #C99A45;
  --brass-ink: #7D5B1C;
  --patina: #2F6F6A;
  --red: #B23A2E;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--patina); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 10; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--ink); color: var(--white);
  font-weight: 600; text-decoration: none; border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--patina); border-color: var(--patina); color: var(--white); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 1.05rem; font-size: .95rem; }
.btn-light { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.site-head nav { margin-left: auto; }
.site-head nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-head nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }
.menu-toggle { display: none; }
@media (max-width: 1040px) {
  .head-row { gap: .75rem; }
  .head-row .btn-small { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3;
    width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--ink);
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .site-head { position: relative; }
  .site-head nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(23,35,44,.35); }
  .nav-open .site-head nav { display: block; }
  .site-head nav ul { flex-direction: column; gap: 0; padding: .4rem clamp(1.25rem, 4vw, 2.5rem) 1rem; }
  .site-head nav a { display: flex; align-items: center; min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-open .menu-toggle { background: var(--ink); color: var(--white); }
}
@media (max-width: 360px) {
  .head-row .btn-small { padding: 0 .8rem; font-size: .9rem; }
}

/* Hero */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 15ch;
}
.lede { margin-top: 1.6rem; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.fine { margin-top: 1.4rem; color: var(--mute); font-size: .95rem; }

/* Generic sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.band { background: var(--white); border-block: 1px solid var(--line); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.section-head p { color: var(--ink-2); max-width: 38em; }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.two-col > div:first-child p { margin-top: 1.2rem; color: var(--ink-2); max-width: 30em; }

/* Problem */
.problems { display: grid; gap: 0; }
.problem { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.problem:first-child { border-top: 0; padding-top: 0; }
.problem p { margin-top: .5rem; color: var(--ink-2); max-width: 36em; }

/* Architecture */
.arch { margin: 0; }
.arch-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1rem, 3vw, 2rem); }
.arch svg { display: block; width: 100%; height: auto; font-family: var(--sans); }
.arch figcaption { margin-top: 1rem; color: var(--mute); font-size: .95rem; }
.svg-h { font-size: 19px; font-weight: 700; fill: var(--ink); }
.svg-h2 { font-size: 16px; font-weight: 650; fill: var(--ink); }
.svg-s { font-size: 13.5px; fill: var(--ink-2); }
.svg-inv { fill: var(--white); font-size: 20px; }
.svg-inv2 { fill: #9FB0B3; }
.svg-l { font-size: 13px; font-weight: 600; fill: var(--ink); }
.svg-l2 { font-size: 12px; fill: var(--mute); }
.svg-steps rect { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.22); }
.svg-steps text { fill: #E3EAE9; font-size: 13.5px; font-weight: 500; }
.svg-audit { font-size: 14.5px; font-weight: 700; fill: var(--ink); }
.svg-muted { font-size: 14px; font-weight: 600; fill: #6B7A80; }
.svg-muted2 { font-size: 12.5px; fill: #6B7A80; }

.steps { list-style: none; counter-reset: step; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 1.5rem; color: var(--brass-ink); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.steps p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; }

/* Security (dark band) */
.band-dark { background: var(--ink); color: #DCE4E3; }
.band-dark h2 { color: var(--white); }
.band-dark .section-head p { color: #B5C3C5; }
.controls { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 3rem; }
.controls div { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.controls dt { font-weight: 700; color: var(--white); font-size: 1.1rem; }
.controls div:nth-child(4) dt { color: var(--brass); }
.controls dd { margin: .5rem 0 0; color: #B5C3C5; font-size: 1rem; }

/* Tokens */
.token-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.levers { list-style: none; margin: 0; padding: 0; }
.levers li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.levers li:first-child { border-top: 0; padding-top: 0; }
.levers strong { color: var(--ink); }
.payloads { display: grid; gap: 1rem; }
.payload { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.payload figcaption { padding: .7rem 1rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.payload pre { margin: 0; padding: 1rem; overflow-x: auto; font-size: .78rem; line-height: 1.6; color: var(--mute); }
.payload-lean { border-color: var(--patina); }
.payload-lean figcaption { background: var(--patina); color: var(--white); border-color: var(--patina); }
.payload-lean pre { color: var(--ink); font-size: .85rem; }
.note { color: var(--mute); font-size: .95rem; }

/* Conversation */
.convo { display: grid; gap: .9rem; }
.msg { border-radius: 16px; padding: 1.1rem 1.25rem; }
.msg .who { font-size: .85rem; font-weight: 600; color: var(--mute); margin-bottom: .3rem; }
.msg.user { background: var(--paper); justify-self: end; max-width: 30em; border: 1px solid var(--line); }
.msg.user p:last-child { font-size: 1.1rem; font-weight: 500; }
.msg.ai { background: var(--white); border: 1.5px solid var(--ink); }
.msg.ai > p + p, .msg.ai table + p { margin-top: .8rem; }
.calls { border-left: 2px solid var(--brass); padding: .2rem 0 .2rem 1rem; margin-left: .5rem; color: var(--mute); font-size: .92rem; display: grid; gap: .25rem; }
.calls code { color: var(--brass-ink); font-weight: 500; margin-right: .35rem; }
.convo table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .93rem; }
.convo th, .convo td { text-align: left; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.convo th { font-weight: 600; color: var(--mute); font-size: .85rem; }
.convo td:first-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.convo td.num:last-child { color: var(--red); font-weight: 600; }

/* Deployment */
.table-wrap { overflow-x: auto; }
.deploy { width: 100%; border-collapse: collapse; min-width: 620px; }
.deploy th, .deploy td { text-align: left; padding: 1.1rem 1.5rem 1.1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.deploy thead th { font-size: .9rem; color: var(--mute); font-weight: 600; border-bottom: 2px solid var(--ink); }
.deploy tbody th { font-weight: 700; width: 30%; }
.deploy td { color: var(--ink-2); }

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; }
.roadmap li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.roadmap li:first-child { border-top: 0; padding-top: 0; }
.roadmap p { margin-top: .35rem; color: var(--ink-2); }
.tag { align-self: start; justify-self: start; font-size: .82rem; font-weight: 600; color: var(--brass-ink); border: 1.5px solid var(--brass); border-radius: 999px; padding: .1rem .65rem; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 40em; }

/* Closing */
.closing { background: var(--ink); color: var(--white); padding: clamp(3.5rem, 7vw, 5rem) 0; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.closing h2 { color: var(--white); max-width: 26ch; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* Footer */
.site-foot { padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--mute); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
.foot-brand { color: var(--ink); font-weight: 600; }
.legal { max-width: 60em; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .two-col, .token-grid, .faq-wrap, .section-head, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .controls, .steps { grid-template-columns: minmax(0, 1fr); }
  .closing-row { flex-direction: column; align-items: flex-start; }
  .roadmap li { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .rec-hash { flex-direction: column; gap: 0; }
  .ledger { padding: 1.1rem .9rem 1rem; }
  .rec { margin-left: 1.3rem; }
}

/* Cost section */
.cost-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.cost-point { border-top: 2px solid var(--ink); padding-top: 1rem; }
.cost-point:last-child { border-top-color: var(--brass); }
.cost-point p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; }

.compare { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .98rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 650; width: 20%; color: var(--ink); }
.compare td { color: var(--ink-2); width: 40%; }
.compare .q { background: #F3F7F6; color: var(--ink); }
.compare thead .q { background: var(--patina); color: var(--white); border-bottom-color: var(--patina); }

/* Calculator */
.calc { margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--ink); color: #DCE4E3; border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.5rem clamp(2rem, 4vw, 3.5rem); }
.calc-intro { grid-column: 1 / -1; }
.calc-title { color: var(--white); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
.calc-intro p { margin-top: .4rem; color: #B5C3C5; }
.calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; align-content: start; }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--white); margin-bottom: .35rem; }
.field input { width: 100%; min-height: 46px; padding: .55rem .8rem; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--white); border: 1.5px solid #8FA1A5; border-radius: 8px; }
.field input:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field input::placeholder { color: #6B7A80; }
.hint { margin-top: .3rem; font-size: .84rem; color: #A9B8BB; }
#c-price { border-color: var(--brass); }
.calc-out { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1.25rem 1.4rem; align-self: start; }
.results { margin: 0; }
.results div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.results dt { color: #B5C3C5; font-size: .95rem; }
.results dd { margin: 0; color: var(--white); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; }
.results .diff dd { color: var(--brass); font-size: 1.35rem; }
.results .diff dt { color: var(--white); font-weight: 600; }
.results dd.pending { color: #A9B8BB; font-weight: 500; font-size: .95rem; }
.formula { margin-top: 1rem; font-size: .86rem; color: #A9B8BB; line-height: 1.5; }
.calc-note { grid-column: 1 / -1; font-size: .88rem; color: #A9B8BB; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }

@media (max-width: 980px) {
  .cost-points { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .calc-form { grid-template-columns: minmax(0, 1fr); }
}
.calc a { color: #E2C27F; }

/* ---------- Visual system: blueprint texture, brass pipework ---------- */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23,35,44,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,35,44,.045) 1px, transparent 1px),
    linear-gradient(rgba(23,35,44,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,35,44,.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.band { background-color: rgba(255,255,255,.92); }
.band-dark, .closing {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
main { position: relative; }

/* Icons */
.ico { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--ink); }
.ico .acc, .ico use { stroke: inherit; }
.sprite symbol .acc { stroke: var(--brass); }
.sprite symbol .dot { fill: currentColor; }
.ico-lg { width: 44px; height: 44px; display: block; margin-bottom: .8rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.pillars li { display: flex; gap: .9rem; align-items: flex-start; }
.pillars strong { display: block; font-size: 1.02rem; }
.pillars span { color: var(--ink-2); font-size: .95rem; }
.scene-wrap { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; overflow: hidden; }
.scene { display: block; width: 100%; height: auto; font-family: var(--sans); }
.sc-l { font-size: 14px; font-weight: 600; fill: var(--ink-2); }
.sc-chat { font-size: 15px; fill: var(--ink); font-weight: 500; }
.sc-muted { fill: var(--mute); }
.sc-mono { font-family: var(--mono); font-size: 12.5px; fill: var(--ink-2); }
.hero .fine { margin-top: .6rem; }

/* Pipe joints between sections */
.joint {
  position: relative; height: 22px; margin: -11px 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 6px, #7E5A1F 6px, #C99A45 8px, #EFD59A 10.5px, #C99A45 12px, #7E5A1F 16px, transparent 16px);
}
.joint::before, .joint::after {
  content: ""; position: absolute; top: 0; width: 12px; height: 22px; border-radius: 3px;
  background: linear-gradient(90deg, #7E5A1F, #C99A45 40%, #EFD59A 55%, #7E5A1F);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.joint::before { left: calc(50% - 16px); }
.joint::after { left: calc(50% + 4px); }

/* Page-long gutter pipe (drawn by motion.js on wide screens) */
.gutter-pipe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; display: none; }
@media (min-width: 1360px) { .gutter-pipe.on { display: block; } }
.gutter-pipe svg { position: absolute; top: 0; overflow: visible; }

/* Cost illustration */
.cost-point .ico { margin-bottom: .6rem; display: block; }
.toll-wrap { margin: 0 0 clamp(2rem, 4vw, 3rem); overflow-x: auto; }
.toll { display: block; width: 100%; height: auto; font-family: var(--sans); }
.t-mute { font-size: 14px; fill: #5C6B72; font-weight: 600; }
.t-strong { font-size: 14.5px; fill: var(--ink); font-weight: 700; }

/* Bring your own AI */
.byo-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.byo-lede { margin-top: 1.2rem; color: var(--ink-2); font-size: 1.1rem; max-width: 36em; }
.chips-h { margin-top: 2rem; font-size: 1rem; color: var(--ink-2); font-weight: 600; }
.chips { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { display: inline-flex; flex-direction: column; padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); line-height: 1.3; }
.chips strong { font-size: .98rem; }
.chips span { font-size: .82rem; color: var(--mute); }
.chips .chip-soon { border-style: dashed; border-color: var(--brass-ink); position: relative; padding-right: 5.8rem; }
.chips .chip-soon .tag { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-style: normal; }
.flat { margin-top: 1.6rem; padding: 1rem 1.2rem; border-left: 4px solid var(--brass); background: rgba(201,154,69,.1); border-radius: 0 10px 10px 0; }
.footnote { margin-top: 1rem; font-size: .82rem; color: var(--mute); }
.taps-wrap { margin: 0; }
.taps { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; font-family: var(--sans); }

/* Security icons + chain */
.controls dt { display: flex; align-items: center; gap: .7rem; }
.controls .ico { color: #E9EEED; width: 30px; height: 30px; }
.chain-wrap { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; overflow-x: auto; }
.hchain { display: block; width: 100%; height: auto; font-family: var(--sans); }
.chain-wrap figcaption { margin-top: .8rem; color: #B5C3C5; font-size: .92rem; }
.hc-num { font-family: var(--mono); font-size: 13px; fill: #C9B285; }
.hc-st { font-family: var(--mono); font-size: 12px; }
.hc-tool { font-family: var(--mono); font-size: 13px; fill: #FFFFFF; font-weight: 500; }
.hc-who { font-size: 13px; fill: #9FB0B3; }
.hc-hash { font-family: var(--mono); font-size: 12.5px; fill: #C9B285; }
.hc-ver { font-size: 15px; font-weight: 700; fill: #9ED6C8; }

/* Section heading icon in tokens */
#tokens .section-head > svg { grid-column: 1 / -1; margin-bottom: -1rem; }

/* Idle motion (CSS only; off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: flow 1.6s linear infinite; }
  .flow-slow { animation-duration: 4s; }
  @keyframes flow { to { stroke-dashoffset: -32; } }
  .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
  .needle { animation: needle 3.2s ease-in-out infinite alternate; }
  @keyframes needle { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
  .beacon { animation: beacon 2.4s ease-in-out infinite; }
  @keyframes beacon { 50% { opacity: .35; } }
  .belt { animation: flow 1.2s linear infinite reverse; }
  .parts > g { animation: convey 3.6s linear infinite; }
  .parts > .first { animation-name: convey-in; }
  .parts > .last { animation-name: convey-out; }
  @keyframes convey { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
  @keyframes convey-in { from { transform: translate(0, 0); opacity: 0; } 30% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 1; } }
  @keyframes convey-out { from { transform: translate(0, 0); opacity: 1; } 70% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
  .toll.in-view .dial { animation: spin 1.4s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .taps .wheel { animation: wheel 6s ease-in-out infinite; }
  .taps .tap:nth-child(odd) .wheel { animation-delay: -3s; }
  @keyframes wheel { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(90deg); } }
}

@media (max-width: 980px) {
  .byo-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Responsive pass ---------- */
body { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 5vw, 4.4rem); }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.v-mob { display: none; }
.arch-scroll, .toll-wrap, .chain-wrap { overflow: visible; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }
.calc .hint a { display: inline; }
.convo table { table-layout: auto; }

.arch svg.v-mob { display: none; }
@media (max-width: 900px) {
  .v-desk, .arch svg.v-desk { display: none !important; }
  .v-mob, .arch svg.v-mob { display: block; }
  .scene.v-mob { max-width: 460px; margin: 0 auto; }
  .toll.v-mob { max-width: 420px; margin: 0 auto; }
  .hchain.v-mob { max-width: 380px; margin: 0 auto; }
  .arch svg.v-mob { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .arch-scroll { padding: 1rem .75rem; }

  /* comparison and deployment tables become stacked cards */
  .compare, .deploy { min-width: 0; border: 0; background: none; }
  .compare thead, .deploy thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody, .deploy tbody, .compare tr, .deploy tr, .compare th, .deploy th, .compare td, .deploy td { display: block; width: auto; }
  .compare tr, .deploy tr { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .9rem; overflow: hidden; }
  .compare tbody th, .deploy tbody th { padding: .9rem 1rem .5rem; border: 0; width: auto; font-size: 1.05rem; }
  .compare td, .deploy td { padding: .55rem 1rem .8rem; border: 0; border-top: 1px solid var(--line); }
  .compare td::before, .deploy td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 600; color: var(--mute); margin-bottom: .15rem; }
  .compare td.q { background: #F3F7F6; }
  .compare td.q::before { color: var(--patina); }
  .deploy tbody tr:last-child th, .deploy tbody tr:last-child td, .compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
  .compare tbody tr:last-child td { border-top: 1px solid var(--line); }
  .deploy td { border-top: 1px solid var(--line); }

  /* conversation table stacks per order */
  .convo thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .convo table, .convo tbody, .convo tr, .convo td { display: block; }
  .convo tr { padding: .6rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; }
  .convo td { border: 0; padding: 0; text-align: left !important; }
  .convo td::before { content: attr(data-label) ": "; color: var(--mute); font-weight: 500; font-size: .85rem; }
  .convo td:first-child { grid-column: 1 / -1; }
  .msg.user { max-width: none; justify-self: stretch; }

  .chips li { flex: 1 1 100%; }
  .results div { flex-wrap: wrap; gap: .2rem 1rem; }
  .section { padding: clamp(3rem, 10vw, 4rem) 0; }
  .band { padding: clamp(3rem, 10vw, 4rem) 0; }
  .steps { gap: 1.5rem; }
  .flat { padding: .9rem 1rem; }
}
@media (max-width: 400px) {
  .calc { padding: 1.25rem 1rem; }
  .calc-out { padding: 1rem; }
  .results dd { font-size: 1.05rem; }
  .results .diff dd { font-size: 1.2rem; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1700px) {
  :root { --wrap: 1280px; }
}

/* ---------- Pricing page ---------- */
.cta-alt { margin-top: 1rem; color: var(--ink-2); font-size: .98rem; }
.cta-alt a { display: inline-block; padding: .6rem 0; }
.site-head nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.pricing-hero h1 { max-width: 18ch; }
.pricing-hero .lede { max-width: 40em; }
.plans-section { padding-top: clamp(1rem, 3vw, 2rem); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.plan { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--brass); box-shadow: 0 24px 50px -32px rgba(125,91,28,.55); }
.plan-name { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 800; }
.plan-price { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.plan-price .amt { font-size: clamp(2.2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-price .from, .plan-price .per { color: var(--mute); font-size: 1rem; }
.plan-tag { margin-top: .9rem; color: var(--ink-2); }
.plan-list { list-style: none; margin: 1.4rem 0 1.6rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .65rem; flex: 1; align-content: start; }
.plan-list li { position: relative; padding-left: 1.7rem; color: var(--ink-2); font-size: .98rem; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: .55rem; border-left: 2.5px solid var(--patina); border-bottom: 2.5px solid var(--patina); transform: rotate(-45deg); }
.plan-list strong { color: var(--ink); }
.plan-list .tag { font-style: normal; margin-left: .3rem; font-size: .75rem; padding: 0 .5rem; vertical-align: 1px; white-space: nowrap; }
.plan-cta { align-self: flex-start; }
.plans-note { margin-top: 1rem; color: var(--mute); font-size: .9rem; max-width: 60em; }
.common { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); }
.common-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.common-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.common-list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.common-list dt { font-weight: 700; }
.common-list dd { margin: .3rem 0 0; color: var(--ink-2); font-size: .98rem; }
.cpi-table td a { color: var(--patina); }
.cpi-table tbody th { width: 18%; }

/* Year-one chart */
.y1 { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); }
.y1-title { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.y1-sub { margin-top: .35rem; color: var(--ink-2); font-size: .95rem; max-width: 60em; }
.y1-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .88rem; color: var(--ink-2); }
.y1-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-cpi, .y1-bar.cpi { background: #B5652E; }
.sw-cpi-hi, .y1-bar.cpi-hi { background: repeating-linear-gradient(45deg, #B5652E 0 3px, #F2E1D4 3px 7px); }
.sw-q, .y1-bar.q { background: #00939A; }
.y1-chart { --label: 9.5rem; position: relative; margin-top: 1.5rem; padding-top: 1.6rem; }
.y1-axis { position: absolute; top: 0; bottom: 0; left: var(--label); right: 4.5rem; pointer-events: none; }
.y1-axis span { position: absolute; left: calc(var(--x) * 1%); top: 0; transform: translateX(-50%); font-size: .78rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.y1-axis span::after { content: ""; position: absolute; left: 50%; top: 1.4rem; height: calc(var(--h, 11rem)); border-left: 1px solid #E3E8E7; }
.y1-row { position: relative; display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; min-height: 3.25rem; border-radius: 8px; outline-offset: 2px; }
.y1-label { font-weight: 650; font-size: .98rem; padding-right: .8rem; }
.y1-track { position: relative; height: 1.6rem; margin-right: 4.5rem; }
.y1-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--l, 0) * 1%); width: calc(var(--w) * 1%); border-radius: 0 4px 4px 0; }
.y1-bar.cpi { border-radius: 0; }
.y1-bar.cpi-hi { margin-left: 2px; }
.y1-val { position: absolute; left: calc(var(--x) * 1%); top: 50%; transform: translateY(-50%); padding-left: .55rem; font-weight: 700; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.y1-tip { position: absolute; z-index: 5; left: var(--label); top: calc(100% - .2rem); max-width: 30rem; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.45; padding: .6rem .8rem; border-radius: 8px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; }
.y1-row:hover .y1-tip, .y1-row:focus-visible .y1-tip { opacity: 1; visibility: visible; }
.y1-row:hover { background: rgba(23,35,44,.03); }
.y1-table { margin-top: 1.25rem; }
.y1-table summary { cursor: pointer; font-weight: 600; color: var(--patina); min-height: 44px; display: inline-flex; align-items: center; }
.y1-table table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .95rem; }
.y1-table th, .y1-table td { text-align: left; padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--line); }
.y1-table td.num, .y1-table th.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.y1-note { margin-top: 1rem; color: var(--mute); font-size: .88rem; }
.y1-note a { color: var(--patina); }

@media (max-width: 860px) {
  .plans, .common, .common-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cpi-table tbody th { width: auto; }
  .y1-chart { --label: 0rem; }
  .y1-axis { display: none; }
  .y1-row { grid-template-columns: minmax(0, 1fr); padding: .4rem 0; }
  .y1-label { margin-bottom: .35rem; }
  .y1-track { margin-right: 5.5rem; }
  .y1-tip { left: 0; }
}
@media (max-width: 400px) {
  .y1-table th, .y1-table td { font-size: .85rem; }
}

/* ---------- Rollout timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 22px; right: calc((100% - 6rem) / 5 - 22px); top: 16px; height: 10px; border-radius: 5px;
  background: linear-gradient(to bottom, #7E5A1F, #C99A45 30%, #EFD59A 50%, #C99A45 70%, #7E5A1F);
}
.timeline li { counter-increment: tl; position: relative; padding-top: 3.6rem; }
.timeline .node {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); border: 4px solid #C99A45; box-shadow: 0 0 0 4px var(--paper);
  display: grid; place-items: center;
}
.timeline .node::after { content: counter(tl); color: #fff; font-weight: 800; font-size: 1.05rem; }
.timeline .tl-end .node { background: var(--patina); border-color: #9ED6C8; }
.timeline h3 { font-size: 1.1rem; }
.timeline .who-when { font-size: .85rem; font-weight: 600; color: var(--brass-ink); margin-bottom: .35rem; }
.timeline li > p:last-child { color: var(--ink-2); font-size: .97rem; }
.timeline li > .who-when:last-child { color: var(--brass-ink); }
.dont-need { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.25rem 1.5rem; border: 1.5px dashed var(--brass-ink); border-radius: 14px; background: rgba(255,255,255,.6); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem 2rem; align-items: center; }
.dont-need h3 { font-size: 1.1rem; }
.dont-need ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.dont-need li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.dont-need li::before, .dont-need li::after { content: ""; position: absolute; left: .2rem; top: .7em; width: .8rem; height: 2.5px; background: #B23A2E; border-radius: 2px; transform: rotate(45deg); }
.dont-need li::after { transform: rotate(-45deg); }
.rollout-compact { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.rollout-compact .common-title { margin-bottom: 1.25rem; }
.timeline-compact li > .who-when:last-child { color: var(--ink-2); font-weight: 400; font-size: .92rem; margin: .35rem 0 0; }
.rollout-more { margin-top: 1.25rem; color: var(--ink-2); }
.rollout-more a { color: var(--patina); }
@media (max-width: 980px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .timeline::before { left: 17px; right: auto; top: 22px; bottom: 22px; width: 10px; height: auto; background: linear-gradient(to right, #7E5A1F, #C99A45 30%, #EFD59A 50%, #C99A45 70%, #7E5A1F); }
  .timeline li { padding: 0 0 0 4.25rem; min-height: 44px; }
  .dont-need { grid-template-columns: minmax(0, 1fr); }
  .dont-need ul { flex-direction: column; }
}

/* ---------- Teams and access ---------- */
.timeline h3 a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 4px; }
.timeline li p a { color: var(--patina); }
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.role { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; }
.role .ico { width: 34px; height: 34px; margin-bottom: .7rem; }
.role h3 { font-size: 1.08rem; }
.role-qs { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.role-qs li { font-size: .93rem; color: var(--ink); background: var(--paper); border-radius: 10px 10px 10px 3px; padding: .45rem .7rem; }
.role-benefit { margin-top: auto; padding-top: .9rem; color: var(--ink-2); font-size: .93rem; }
.roles-note { margin-top: 1rem; color: var(--mute); font-size: .9rem; }
.matrix { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.matrix-title { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.matrix-legend { list-style: none; margin: .8rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-2); font-size: .92rem; }
.matrix-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.acc { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; font-weight: 700; font-size: .95rem; line-height: 1; }
.acc-f { background: #E1F0EE; color: #1F5F5A; }
.acc-p { background: #F6EAD3; color: #7D5B1C; }
.acc-n { background: #F6E3E0; color: #9A2F25; }
.matrix-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.access { width: 100%; border-collapse: collapse; min-width: 860px; font-size: .92rem; }
.access th, .access td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.access thead th { font-size: .82rem; font-weight: 650; color: var(--ink-2); line-height: 1.25; vertical-align: bottom; }
.access tbody th { text-align: left; font-weight: 650; white-space: nowrap; padding-left: 1rem; }
.access tbody tr:last-child th, .access tbody tr:last-child td { border-bottom: 0; }
.acc-note { display: block; font-size: .72rem; color: var(--mute); margin-top: .2rem; }
.matrix figcaption { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; max-width: 62em; }
@media (max-width: 1100px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .matrix-scroll { overflow: visible; background: none; border: 0; }
  .access { min-width: 0; }
  .access thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .access, .access tbody, .access tr { display: block; }
  .access tr { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; padding: .3rem 0 .5rem; }
  .access tbody th { display: block; padding: .7rem 1rem .4rem; border: 0; font-size: 1.05rem; }
  .access td { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1rem .75rem; text-align: left; padding: .4rem 1rem; border: 0; border-top: 1px solid #EEF1F0; }
  .access td::before { content: attr(data-label); color: var(--ink-2); }
  .access td .acc { grid-column: 2; grid-row: 1; }
  .access td .acc-note { grid-column: 1 / -1; margin: 0; }
}
.matrix-scroll, .table-wrap, .arch-scroll { position: relative; }
.hitl { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.25rem 3rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1.5px solid rgba(201,154,69,.6); border-radius: 16px; background: rgba(255,255,255,.04); }
.hitl h3 { color: var(--white); font-size: clamp(1.2rem, 2vw, 1.45rem); }
.hitl p { margin-top: .6rem; color: #B5C3C5; }
.hitl ol { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hitl li { counter-increment: h; position: relative; padding-left: 2.6rem; color: #DCE4E3; }
.hitl li::before { content: counter(h); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brass); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
@media (max-width: 860px) { .hitl { grid-template-columns: minmax(0, 1fr); } }

.bench { margin-top: 3rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.bench h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.bench-stats { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.bench-stats li { display: grid; gap: .35rem; padding-top: 1rem; border-top: 3px solid var(--brass); }
.bench-stats strong { font-size: 2.4rem; line-height: 1; color: var(--patina); font-weight: 800; }
.bench-stats span { color: var(--ink-2); }
@media (max-width: 600px) { .bench { padding: 1.25rem; } .bench-stats strong { font-size: 2rem; } }
