/* ==========================================================================
   Relaxin Jailbreak — stylesheet
   Terminal-flavoured brutalist layout. Mono for structure, sans for prose.
   Section order: tokens, reset, type, layout, header, components, pages,
   footer, utilities, motion & print.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */

:root {
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --paper: #fbfbf9;
  --paper-2: #f2f2ee;
  --ink: #0d0d0d;
  --ink-2: #55554e;
  --ink-3: #8b8b82;
  --rule: #dededa;
  --rule-2: #c9c9c2;

  --green: #12925c;
  --green-ink: #0b6b43;
  --red: #d63020;
  --amber: #a86a00;

  --measure: 68ch;
  --shell: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.75rem);

  --step-0: 1rem;
  --step-1: 1.13rem;
  --step-2: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem);
  --step-4: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);

  --radius: 3px;
  --shadow: 0 1px 0 var(--rule-2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f0e;
    --paper-2: #171917;
    --ink: #ecece7;
    --ink-2: #a2a29a;
    --ink-3: #74746c;
    --rule: #262825;
    --rule-2: #383a37;
    --green: #3ecf8e;
    --green-ink: #6ee0aa;
    --red: #ff6a58;
    --amber: #e0a33a;
    --shadow: 0 1px 0 var(--rule);
  }
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
/* The [hidden] attribute must beat component rules that set display (flex/grid),
   otherwise release-gated and toggled elements stay visible. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0)/1.65 var(--sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* --- type ----------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.15rem; max-width: var(--measure); }
strong { font-weight: 650; }
code, kbd, samp, pre { font-family: var(--mono); font-size: .92em; }
code:not(pre code) {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: .08em .38em;
  border-radius: var(--radius);
  white-space: nowrap;
}
kbd {
  background: var(--paper-2); border: 1px solid var(--rule-2);
  border-bottom-width: 2px; border-radius: var(--radius);
  padding: .1em .4em; font-size: .85em;
}
pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
blockquote {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--green);
  color: var(--ink-2);
}
ul, ol { padding-left: 1.25rem; margin: 0 0 1.2rem; max-width: var(--measure); }
li { margin-bottom: .45rem; }
li::marker { color: var(--ink-3); }

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--green);
  flex: none;
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }

/* --- layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.section--flush { border-top: 0; }
.section--tint { background: var(--paper-2); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); } }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-2); }

/* --- skip link ------------------------------------------------------------ */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; font-family: var(--mono); font-size: .85rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* --- header --------------------------------------------------------------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.03em; text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__dot { width: 6px; height: 6px; background: var(--red); align-self: flex-end; margin-bottom: .32em; }
.brand__sub { font-weight: 400; color: var(--ink-3); font-size: .8rem; letter-spacing: 0; }
@media (max-width: 560px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a {
  font-family: var(--mono); font-size: .86rem; text-decoration: none; color: var(--ink-2);
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule-2); color: var(--ink);
  font-family: var(--mono); font-size: .8rem; padding: .4rem .65rem; border-radius: var(--radius);
  cursor: pointer;
}
/* Without JS the nav simply wraps onto a second row; the toggle is hidden
   because nothing would drive it. `.js` is set by an inline script in <head>. */
@media (max-width: 800px) {
  .masthead__inner { flex-wrap: wrap; padding-bottom: .6rem; }
  .js .masthead__inner { flex-wrap: nowrap; padding-bottom: 0; }
  .js .nav-toggle { display: block; }
  .nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav {
    position: absolute; inset: 62px 0 auto; width: auto;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gut) 1.1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--green); }
  .nav .btn { margin-top: .8rem; text-align: center; }
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--mono); font-size: .9rem; font-weight: 600; line-height: 1;
  padding: .82rem 1.2rem; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn--green { background: var(--green); border-color: var(--green); color: #fff; }
.btn--green:hover { color: #fff; }
.btn--sm { padding: .55rem .85rem; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* --- hero ----------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.hero__watermark {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  font-family: var(--mono); font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 2.1;
  color: var(--ink); opacity: .045; word-spacing: 1.4em; overflow: hidden;
  user-select: none; padding: 1rem;
}
@media (prefers-color-scheme: dark) { .hero__watermark { opacity: .05; } }
.hero__inner { position: relative; z-index: 1; }
.wordmark { display: flex; align-items: flex-end; gap: .5rem; margin-bottom: 1.4rem; }
.wordmark svg { width: min(430px, 82%); height: auto; }
.wordmark__dot { width: clamp(10px, 2.2vw, 16px); aspect-ratio: 1; background: var(--red); }
.hero h1 { font-size: var(--step-2); font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); max-width: 30ch; }
.hero .lede { margin-bottom: 1.8rem; }
.hero__cta { margin-bottom: 1.1rem; }
.hero__note { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); max-width: 46ch; }
.hero__signlink {
  display: inline-block; margin-top: 1rem;
  font-family: var(--mono); font-size: .9rem; font-weight: 600;
  color: var(--green-ink); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero__signlink:hover { border-bottom-color: var(--green-ink); }
.hero__signlink span { color: var(--green); }

/* --- neofetch panel ------------------------------------------------------- */

.term {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: .86rem;
  overflow: hidden;
}
.term__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem; border-bottom: 1px solid var(--rule);
  background: var(--paper-2); color: var(--ink-3); font-size: .76rem;
}
.term__led { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); flex: none; }
.term__led--on { background: var(--green); }
.term__body { padding: 1rem 1.1rem 1.2rem; }
.term__row { display: flex; gap: 1rem; padding: .22rem 0; }
.term__key { color: var(--green); flex: none; width: 7.5ch; }
.term__val { color: var(--ink); }
.term__rule { border-top: 1px solid var(--rule); margin: .7rem 0; }
.term__prompt { color: var(--ink-3); margin-top: .9rem; }
.term__prompt b { color: var(--green); font-weight: 400; }
.caret { display: inline-block; width: .55em; height: 1.05em; background: var(--green); vertical-align: -.16em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- cards ---------------------------------------------------------------- */

.card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
}
.card__idx {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
  letter-spacing: .1em; display: block; margin-bottom: .9rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: .45rem; letter-spacing: -.01em; }
.card p { font-size: .95rem; color: var(--ink-2); margin: 0; max-width: none; }
.card--link { text-decoration: none; display: block; transition: border-color .12s ease, transform .12s ease; }
.card--link:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.card__more { font-family: var(--mono); font-size: .8rem; color: var(--green-ink); margin-top: 1rem; display: inline-block; }

/* --- spec table ----------------------------------------------------------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding: .8rem 1rem; }
th, td { text-align: left; padding: .72rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

.tag { font-family: var(--mono); font-size: .74rem; padding: .16rem .5rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.tag--ok { color: var(--green-ink); }
.tag--no { color: var(--red); }
.tag--warn { color: var(--amber); }

/* --- steps ---------------------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: none; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.8rem 3.1rem;
  border-left: 1px solid var(--rule);
  margin-left: 1.05rem;
  margin-bottom: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.15rem; transform: translateX(-50%);
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 50%;
  color: var(--ink);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.steps p:last-child, .steps ul:last-child, .steps pre:last-child { margin-bottom: 0; }

/* --- callouts ------------------------------------------------------------- */

.note {
  border: 1px solid var(--rule); border-left: 3px solid var(--green);
  background: var(--paper-2); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 0 0 1.6rem; max-width: var(--measure);
}
.note--warn { border-left-color: var(--amber); }
.note--stop { border-left-color: var(--red); }
.note > :last-child { margin-bottom: 0; }
.note__title { font-family: var(--mono); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .35rem; }

/* --- forms ---------------------------------------------------------------- */

.form { max-width: 34rem; }
.field { margin-bottom: 1.1rem; }
.field > label {
  display: block; margin-bottom: .35rem;
  font-family: var(--mono); font-size: .8rem; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-2);
  border-radius: var(--radius); padding: .65rem .75rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field--hp { position: absolute; left: -9999px; }

/* --- cookie consent banner ------------------------------------------------ */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  background: var(--paper); border-top: 1px solid var(--rule-2);
  box-shadow: 0 -8px 30px rgba(0,0,0,.10);
}
@media (prefers-color-scheme: dark) { .consent { box-shadow: 0 -8px 30px rgba(0,0,0,.5); } }
.consent__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .95rem;
}
.consent__text { margin: 0; font-size: .86rem; color: var(--ink-2); max-width: 66ch; }
.consent__actions { display: flex; gap: .5rem; flex: none; }
@media (max-width: 620px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1; }
}

/* --- big button + inline link-button -------------------------------------- */

.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--green-ink); text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- promo / upsell callout ----------------------------------------------- */

.promo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem;
  margin-top: 1.6rem; padding: 1.3rem 1.4rem;
  border: 1px solid var(--green); border-radius: var(--radius);
  background: color-mix(in srgb, var(--green) 8%, var(--paper));
}
.promo__body { flex: 1 1 20rem; }
.promo__eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--green-ink); margin: 0 0 .4rem;
}
.promo__text { margin: 0; font-size: .95rem; color: var(--ink-2); max-width: 60ch; }
.promo__cta { flex: none; }
@media (max-width: 560px) { .promo__cta { width: 100%; } }

/* --- modal ---------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--gut);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,8,.55); backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative; z-index: 1;
  width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--rule-2);
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.modal__close {
  position: absolute; top: .8rem; right: .8rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: none; border: 1px solid var(--rule-2); border-radius: var(--radius);
  color: var(--ink-2); font-family: var(--mono); cursor: pointer;
}
.modal__close:hover { border-color: var(--ink); color: var(--ink); }
.modal__panel h2 { font-size: var(--step-2); }
@media (prefers-reduced-motion: no-preference) {
  .modal__panel { animation: modal-in .18s ease; }
  @keyframes modal-in { from { transform: translateY(8px); opacity: 0; } }
}

/* --- pricing plans -------------------------------------------------------- */

.plans { display: grid; gap: 1rem; margin: 1.8rem 0 1.2rem; }
@media (min-width: 620px) { .plans { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.buy-form { margin-top: auto; }
.buy-form .btn { width: 100%; }
.plan {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.plan__tag {
  align-self: flex-start; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: var(--green); padding: .2rem .55rem; border-radius: 999px; margin-bottom: .8rem;
}
.plan h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.plan__price { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; margin: 0 0 1rem; }
.plan__price span { font-size: .9rem; font-weight: 400; color: var(--ink-3); }
.plan ul { margin: 0 0 1.3rem; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.plan li { margin-bottom: .45rem; }
.plan .btn { margin-top: auto; }

/* --- release / version history -------------------------------------------- */

.rel-history { margin-top: 2.4rem; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
.rel-hist__title { font-size: 1.05rem; margin-bottom: 1rem; }
.rel-hist { border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .7rem; }
.rel-hist summary {
  cursor: pointer; list-style: none; padding: .9rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem;
}
.rel-hist summary::-webkit-details-marker { display: none; }
.rel-hist__v { font-family: var(--mono); font-weight: 700; }
.rel-hist__meta { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.rel-hist__dl { margin-left: auto; }
.rel-hist__changes { white-space: pre-wrap; font-size: .9rem; color: var(--ink-2); margin: 0; padding: 0 1rem 1rem; }
.rel-hist__sha { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); word-break: break-all; margin: 0; padding: 0 1rem 1rem; }

/* --- compatibility demo --------------------------------------------------- */

.demo {
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  overflow: hidden; background: var(--paper-2);
}
.demo-badge {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--amber); padding: .4rem .8rem; text-align: center;
}
.demo-screen {
  min-height: 320px; padding: 2.5rem 1.5rem;
  background: #0e0f0e; color: #ecece7;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  position: relative;
}
.demo-screen--respring, .demo-screen--running { justify-content: center; }
.demo-wordmark {
  font-family: var(--mono); font-weight: 700; font-size: 2rem; letter-spacing: -.04em;
  display: inline-flex; align-items: flex-end; gap: .35rem; margin-bottom: 1rem;
}
.demo-wordmark span { width: 9px; height: 9px; background: var(--red); display: inline-block; margin-bottom: .3rem; }
.demo-status { font-family: var(--mono); color: #3ecf8e; margin: 0; }
.demo-bar { width: 100%; height: 6px; background: #262825; border-radius: 3px; margin-top: 1.4rem; overflow: hidden; }
.demo-bar span { display: block; height: 100%; width: 30%; background: #3ecf8e; border-radius: 3px; animation: demo-fill 1.4s ease-in-out infinite; }
@keyframes demo-fill { 0% { width: 8%; } 50% { width: 85%; } 100% { width: 8%; } }
.demo-icons { display: flex; gap: 1rem; margin-top: 1.6rem; }
.demo-icons span {
  font-family: var(--mono); font-size: .72rem; color: #a2a29a;
  border: 1px solid #383a37; border-radius: 12px; padding: 1.2rem .6rem .5rem; min-width: 62px; text-align: center;
  position: relative;
}
.demo-icons span::before {
  content: ""; position: absolute; top: .5rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 7px; background: #262825;
}
.demo-caption { font-size: .9rem; color: var(--ink-2); margin: 0; padding: 1rem 1.2rem; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { .demo-bar span { animation: none; width: 60%; } }

/* --- signer pipeline ------------------------------------------------------ */

.term__row[data-status="busy"] .term__key { color: var(--amber); }
.term__row[data-status="busy"] .term__val { color: var(--ink); }
.term__row[data-status="done"] .term__key::after { content: " ✓"; }
.term__row[data-status="error"] .term__key,
.term__row[data-status="error"] .term__val { color: var(--red); }
.term__row[data-status="idle"] .term__val { color: var(--ink-3); }

.field input[type="file"] {
  padding: .55rem;
  font-family: var(--mono);
  font-size: .85rem;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  margin-right: .8rem;
  padding: .45rem .8rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { border-color: var(--ink); }

/* --- tabs ----------------------------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--rule); margin-bottom: 2rem; }
.tabs button {
  font-family: var(--mono); font-size: .85rem; background: none; cursor: pointer;
  border: 1px solid transparent; border-bottom: 0; color: var(--ink-2);
  padding: .65rem .95rem; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] {
  color: var(--ink); background: var(--paper);
  border-color: var(--rule); border-bottom: 1px solid var(--paper);
}
[role="tabpanel"][hidden] { display: none; }

/* --- accordion / faq ------------------------------------------------------ */

.faq { border-top: 1px solid var(--rule); max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-family: var(--mono); font-size: .98rem; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  color: var(--green); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > :not(summary) { margin-bottom: 1.1rem; color: var(--ink-2); font-size: .95rem; }

/* --- prose page (privacy, about) ------------------------------------------ */

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8rem; }
.prose ul { color: var(--ink-2); }

.toc { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--paper-2); }
.toc h2 { font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem; border: 0; padding: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .45rem; font-family: var(--mono); font-size: .85rem; }
.toc li::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--ink-3); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--green-ink); text-decoration: underline; }
@media (min-width: 900px) { .toc { position: sticky; top: 86px; } }

/* --- breadcrumb ----------------------------------------------------------- */

.crumbs { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding-top: 1.6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .45rem; color: var(--rule-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--green-ink); }

/* --- disclaimer strip ----------------------------------------------------- */

.strip {
  background: var(--paper-2); border-block: 1px solid var(--rule);
  font-family: var(--mono); font-size: .8rem; color: var(--ink-2);
  padding-block: .75rem;
}
.strip p { margin: 0; max-width: none; }
.strip b { color: var(--ink); font-weight: 700; }

/* --- footer --------------------------------------------------------------- */

.footer { border-top: 1px solid var(--rule); padding-block: 3rem 2rem; background: var(--paper-2); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 2.5rem; }
.footer h2 { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a { font-size: .92rem; text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__base {
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--mono); font-size: .76rem; color: var(--ink-3);
}
.footer__base p { margin: 0; max-width: 62ch; }

/* --- utilities ------------------------------------------------------------ */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.stack > * + * { margin-top: 1.1rem; }
.mb-0 { margin-bottom: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }

/* --- motion & print ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  .masthead, .footer, .hero__watermark, .btn, .toc { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}
