/* BotRampart preview site. One stylesheet, system fonts, no external requests.
   Identity: a ledger. Paper, ink, a cost colour (fare orange) and a credit colour (green).
   Numbers are set in tabular monospace like a receipt; headings in a book serif. */

:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --card: #fbf8f2;
  --ink: #16140f;
  --ink-2: #3b372f;
  --muted: #5f594d;
  --line: #d6cdbb;
  --line-2: #c4b9a3;
  --cost: #ad3a0b;
  --cost-soft: #f6d9c7;
  --credit: #1d6b4f;
  --credit-soft: #cfe6da;
  --warn: #8a5a00;
  --focus: #1d4ed8;
  --code-bg: #1b1a16;
  --code-ink: #ede6d8;
  --code-dim: #a49b88;
  --code-key: #f0a070;
  --code-str: #9fd3b5;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --radius: 6px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --paper-2: #1b1915;
    --card: #1f1d18;
    --ink: #efe9dc;
    --ink-2: #d5cdbd;
    --muted: #a69e8d;
    --line: #34302a;
    --line-2: #4a443a;
    --cost: #ff8a4c;
    --cost-soft: #4a2716;
    --credit: #5fd09f;
    --credit-soft: #183a2c;
    --warn: #f0b545;
    --focus: #8ab4ff;
    --code-bg: #0d0c0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cost); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--cost-soft); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
code, kbd, samp, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--paper-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; font-size: .86em; }
.num, td.n, .tab { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 .78rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.fine { font-size: .875rem; color: var(--muted); }
.muted { color: var(--muted); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 600 1.25rem/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin: 0; padding: 0; align-items: center; }
.mainnav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: .4rem 0; display: inline-block; }
.mainnav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cost); }
.nav-cta { border: 1.5px solid var(--ink); border-radius: 999px; padding: .38rem .95rem !important; color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }
@media (max-width: 720px) {
  .masthead { position: static; }
  .masthead-row { padding-block: .6rem; }
  .mainnav { width: 100%; }
  .mainnav ul { gap: .2rem 1rem; flex-wrap: nowrap; }
  .mainnav li:last-child { margin-left: auto; }
  .mainnav a { font-size: .9rem; }
  .nav-cta { padding: .3rem .75rem !important; }
}
@media (max-width: 480px) { .nav-hiw { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: .9rem 1.3rem; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--cost); border-color: var(--cost); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Home: hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--cost); }
.hero .lede { margin-top: 1.4rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--muted); display: flex; gap: .5rem; align-items: baseline; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--warn); display: inline-block; flex: none; transform: translateY(-1px); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* The ledger: two sessions, live */
.ledger { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(40, 30, 10, .35); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font: 500 .78rem/1.3 var(--mono); color: var(--muted); letter-spacing: .04em; gap: 1rem; }
.ledger-head strong { color: var(--ink); font-weight: 600; }
.lanes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lane { padding: .9rem 1rem 1rem; min-width: 0; }
.lane + .lane { border-left: 1px dashed var(--line-2); }
.lane-title { font: 600 .82rem/1.3 var(--sans); margin: 0 0 .15rem; }
.lane-sub { font: 400 .74rem/1.3 var(--mono); color: var(--muted); margin: 0 0 .7rem; }
.meter { height: 10px; background: var(--paper-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; width: 100%; background: var(--credit); border-radius: 99px; transition: width .35s ease, background-color .35s; }
.meter.low > i { background: var(--cost); }
.meter-label { display: flex; justify-content: space-between; font: 500 .72rem/1.2 var(--mono); color: var(--muted); margin: .35rem 0 .7rem; font-variant-numeric: tabular-nums; }
.tape { list-style: none; margin: 0; padding: 0; font: 400 .74rem/1.55 var(--mono); font-variant-numeric: tabular-nums; height: 13.9em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.tape li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; white-space: nowrap; border-bottom: 1px dotted var(--line); }
.tape li span:first-child { overflow: hidden; text-overflow: ellipsis; }
.tape .c { color: var(--cost); }
.tape .g { color: var(--credit); font-weight: 600; }
.tape .x { color: var(--cost); font-weight: 600; }
.tape .new { animation: tapein .35s ease; }
@keyframes tapein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ledger-foot { border-top: 1px solid var(--line); padding: .65rem 1rem; font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.ledger-foot button { font: 600 .74rem/1 var(--mono); border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: 99px; padding: .4rem .7rem; cursor: pointer; }
.ledger-foot button:hover { border-color: var(--ink); }
@media (max-width: 520px) {
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane + .lane { border-left: 0; border-top: 1px dashed var(--line-2); }
  .tape { height: 9.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .tape .new { animation: none; }
  .meter > i { transition: none; }
}

/* Sections */
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { padding-top: .7rem; }
.section-head h2 { max-width: 20em; }
.section-head p { max-width: 42em; color: var(--ink-2); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; gap: 0; } }
.alt { background: var(--paper-2); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fact { padding: 1.4rem 1.4rem 1.4rem 0; border-right: 1px solid var(--line); }
.fact + .fact { padding-left: 1.4rem; }
.fact:last-child { border-right: 0; }
.fact b { display: block; font: 600 clamp(2rem, 1.4rem + 1.6vw, 2.8rem)/1 var(--serif); letter-spacing: -0.02em; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.fact p { font-size: .94rem; color: var(--ink-2); margin: 0 0 .6rem; }
.src { font: 400 .74rem/1.3 var(--mono); color: var(--muted); }
.src a { color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(3) { padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .fact, .fact + .fact { padding: 1.2rem 0; border-right: 0; border-top: 1px solid var(--line); } .fact:first-child { border-top: 0; } }

.thesis { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thesis > div { background: var(--card); padding: 1.6rem; }
.thesis h3 { font-size: 1.2rem; }
.thesis .was { color: var(--muted); }
.thesis .was h3::before { content: "Verdict. "; color: var(--muted); font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
.thesis .is h3::before { content: "Price. "; color: var(--cost); font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
@media (max-width: 720px) { .thesis { grid-template-columns: minmax(0, 1fr); } }

/* Loops */
.loops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: loop; }
.loop { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.loop .speed { font: 600 .8rem/1.2 var(--mono); color: var(--cost); letter-spacing: .04em; margin-bottom: .6rem; display: block; }
.loop h3 { margin-bottom: .6rem; }
.loop p { color: var(--ink-2); font-size: .98rem; }
.loop dl { margin: 1rem 0 0; font-size: .9rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; }
.loop dt { font: 500 .76rem/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.loop dd { margin: 0; }
@media (max-width: 860px) { .loops { grid-template-columns: 1fr; } }

/* Flow diagram */
.figure { margin: 2.5rem 0 0; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; max-width: 52em; }
.figure .f-ink { stroke: var(--ink); fill: none; }
.figure .f-box { fill: var(--card); stroke: var(--line-2); }
.figure .f-hot { fill: var(--cost-soft); stroke: var(--cost); }
.figure .f-cool { fill: var(--credit-soft); stroke: var(--credit); }
.figure text { fill: var(--ink); font-family: var(--sans); font-size: 13px; }
.figure .t-mono { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.figure .t-b { font-weight: 600; }
.figure .a-cost { stroke: var(--cost); }
.figure .a-credit { stroke: var(--credit); }
.figure .a-dim { stroke: var(--line-2); stroke-dasharray: 4 4; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.split ul.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .75rem 0 .75rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .9rem; height: 2px; background: var(--cost); }
.ticks li b { display: block; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Slack-ish conversation */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; font-size: .95rem; }
.chat-msg { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; padding: .7rem 0; }
.chat-msg + .chat-msg { border-top: 1px solid var(--line); }
.avatar { width: 2.2rem; height: 2.2rem; border-radius: 6px; display: grid; place-items: center; font: 600 .8rem/1 var(--mono); background: var(--paper-2); border: 1px solid var(--line); }
.avatar.bot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chat-name { font-weight: 600; font-size: .9rem; }
.chat-name span { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .4rem; }
.chat-body p { margin: .25rem 0 .5rem; }
.chat-cite { font: 400 .76rem/1.5 var(--mono); color: var(--muted); border-left: 2px solid var(--line-2); padding-left: .7rem; }
.chat-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.chat-actions span { font: 600 .75rem/1 var(--sans); border: 1px solid var(--line-2); border-radius: 4px; padding: .4rem .6rem; }
.illus { font: 500 .72rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .8rem; }

/* Fit / not fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fit > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--card); }
.fit h3 { font-size: 1.15rem; }
.fit ul { margin: 0; padding-left: 1.1rem; }
.fit li { margin-bottom: .5rem; }
.fit .no { background: transparent; border-style: dashed; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* Status band */
.status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status > div { padding: 1.2rem; border-right: 1px solid var(--line); background: var(--card); }
.status > div:last-child { border-right: 0; }
.status .ph { font: 600 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status .now { background: var(--ink); color: var(--paper); }
.status .now .ph { color: var(--cost-soft); }
.status h3 { font-size: 1.05rem; margin: .5rem 0; }
.status p { font-size: .88rem; margin: 0; }
@media (max-width: 860px) { .status { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .status > div:nth-child(2) { border-right: 0; } .status > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .status { grid-template-columns: 1fr; } .status > div { border-right: 0; border-top: 1px solid var(--line); } }

.closing { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; text-align: left; }
.closing h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); max-width: 16em; }

/* Footer */
.colophon { padding: 3rem 0 4rem; background: var(--paper-2); border-top: 1px solid var(--line); }
.colophon-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; }
.colophon-brand { font: 600 1.2rem/1 var(--serif); margin-bottom: .8rem; }
.colophon-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.colophon-links li { margin-bottom: .5rem; font-size: .92rem; }
@media (max-width: 720px) { .colophon-grid { grid-template-columns: 1fr; } }

/* Docs layout */
.page-head { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); max-width: 18em; }
.page-head .lede { margin-top: 1rem; }
.doc-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding: 2.5rem 0 5rem; }
.docnav { position: sticky; top: 84px; align-self: start; font-size: .92rem; }
.docnav-title { font: 600 .78rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.docnav-title a { text-decoration: none; color: var(--muted); }
.docnav ol { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: d; }
.docnav li { counter-increment: d; }
.docnav li a { display: block; padding: .4rem 0 .4rem .9rem; border-left: 2px solid var(--line); text-decoration: none; color: var(--ink-2); }
.docnav li a[aria-current] { border-left-color: var(--cost); color: var(--ink); font-weight: 600; }
.docnav-spec a { font: 500 .82rem/1.3 var(--mono); }
.docnav-status { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .docnav { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--card); }
  .docnav ol { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
  .docnav li a { border-left: 0; padding: .2rem 0; }
  .docnav li a[aria-current] { box-shadow: inset 0 -2px 0 var(--cost); }
}

.prose { max-width: 46rem; min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose .wide { max-width: none; }
.prose table { width: 100%; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--warn); background: var(--card); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.cost { border-left-color: var(--cost); }
.callout.credit { border-left-color: var(--credit); }

.tablewrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
thead th { font: 600 .74rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
td.n { text-align: right; white-space: nowrap; }

pre { background: var(--code-bg); color: var(--code-ink); padding: 1rem 1.1rem; border-radius: var(--radius); overflow-x: auto; font-size: .82rem; line-height: 1.6; margin: 1.2rem 0; tab-size: 2; }
pre code { font-size: inherit; }
pre .k { color: var(--code-key); }
pre .s { color: var(--code-str); }
pre .d { color: var(--code-dim); }
.code-cap { font: 500 .74rem/1.3 var(--mono); color: var(--muted); margin: 1.2rem 0 -.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.code-cap a { color: var(--muted); }

.steps { list-style: none; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 3rem; margin-bottom: 2rem; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 600 .9rem/1 var(--mono); }
.steps > li h3 { margin-top: .15rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 2rem 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1.3rem; text-decoration: none; display: block; color: var(--ink); }
a.card:hover { border-color: var(--ink); color: var(--ink); }
.card .eyebrow { margin-bottom: .6rem; }
.card h2, .card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.card p { font-size: .93rem; color: var(--ink-2); margin: 0; }

.sources { font-size: .85rem; color: var(--ink-2); }
.sources li { margin-bottom: .5rem; word-break: break-word; }
sup.ref { font: 600 .68rem/0 var(--mono); }
sup.ref a { text-decoration: none; color: var(--cost); padding: 0 .1em; }

.tag { display: inline-block; font: 600 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; padding: .3em .5em; border: 1px solid currentColor; vertical-align: .15em; white-space: nowrap; }
.tag.mvp { color: var(--credit); }
.tag.later { color: var(--muted); }
.tag.prop { color: var(--cost); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; background: var(--card); display: flex; flex-direction: column; }
.plan.feature { border: 2px solid var(--ink); }
.plan h2, .plan h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.plan .price { font: 600 2.2rem/1 var(--serif); margin: 1rem 0 .3rem; letter-spacing: -0.02em; }
.plan .price small { font: 400 .9rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 1.1rem; margin: 1rem 0; font-size: .93rem; flex: 1; }
.plan li { margin-bottom: .4rem; }
.plan .avail { font: 500 .78rem/1.4 var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin: 0; }
@media (max-width: 1000px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.calc { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.calc label { font-weight: 600; display: block; margin-bottom: .6rem; }
.calc input[type=range] { width: 100%; accent-color: var(--cost); }
.calc output { font: 600 2rem/1.1 var(--serif); display: block; }
.calc .fine { margin-top: .5rem; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* Signup */
.flow { max-width: 760px; margin: 0 auto; padding: 2.5rem 0 5rem; }
.progress { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2rem; font: 500 .76rem/1.2 var(--mono); color: var(--muted); }
.progress li { flex: 1; border-top: 3px solid var(--line); padding-top: .5rem; }
.progress li.done { border-top-color: var(--credit); color: var(--ink-2); }
.progress li.on { border-top-color: var(--cost); color: var(--ink); font-weight: 600; }
.step { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.step h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.field { margin: 1.2rem 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: .4rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin: -.2rem 0 .5rem; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=email], select { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; border: 1px solid var(--line-2); border-radius: 6px; padding: .7rem .8rem; font-size: .93rem; background: var(--paper); }
.choice span small { display: block; color: var(--muted); font-size: .78rem; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.step-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
button.btn { cursor: pointer; font-family: var(--sans); }
.btn[disabled] { opacity: .5; cursor: progress; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.result-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; background: var(--paper); }
.result-grid b { display: block; font: 600 1.8rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.result-grid span { font-size: .82rem; color: var(--muted); }
@media (max-width: 620px) { .result-grid { grid-template-columns: 1fr; } }
.bars { margin: 1rem 0; }
.bar { display: grid; grid-template-columns: 6.5rem 1fr 4.5rem; gap: .7rem; align-items: center; font-size: .86rem; margin-bottom: .45rem; }
.bar i { display: block; height: 12px; border-radius: 3px; background: var(--cost); }
.bar i.ok { background: var(--credit); }
.bar span:last-child { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.preview-banner { border: 2px solid var(--ink); border-radius: 10px; padding: 1.2rem 1.4rem; margin-top: 2rem; background: var(--paper); }
.preview-banner h3 { margin-bottom: .4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sources-block { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 52rem; }
.sources-h { font-size: 1.2rem !important; margin: 0 0 .4rem !important; padding: 0 !important; border: 0 !important; }
.sources q { color: var(--muted); }
.sources li:target { background: var(--cost-soft); }
