/* ═══════════════════════════════════════════════════════════════════
   PRINCIPAL — loans, plainly kept
   Vault navy, counter mint, cool banking paper. Besley for the letterhead,
   Public Sans for the counter voice, Spline Sans Mono for every figure.
   ═══════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:root {
  --navy-950: #071A2C;
  --navy-900: #0A2239;   /* vault navy */
  --navy-800: #0F3050;   /* ledger navy */
  --navy-700: #17416A;
  --mint-400: #69E2B4;   /* counter mint — on navy only */
  --mint-300: #8FEDC9;
  --mint-700: #0E7D5F;   /* teller green — mint's text-safe form on paper */
  --paper: #F2F5F7;      /* cool banking paper */
  --card: #FFFFFF;
  --line: #D8E0E7;
  --line-soft: #E6ECF0;
  --ink: #16283A;
  --slate: #55677A;
  --slate-soft: #7C8B9B;
  --amber-ink: #8A5A00;
  --amber-wash: #F7ECD2;
  --red-ink: #A33B3B;
  --red-wash: #F6E3E3;
  --green-wash: #DDF3EA;
  --navy-wash: #E2EAF2;
  --serif: "Besley", "Georgia", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", "SFMono-Regular", "Menlo", monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 34, 57, 0.06), 0 6px 18px rgba(10, 34, 57, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--mint-400); color: var(--navy-950); }
img { max-width: 100%; }
a { color: var(--navy-800); }
h1, h2, h3 { margin: 0; }
p, dl, dd, ol, ul { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--mint-700); outline-offset: 2px; border-radius: 3px; }
.masthead :focus-visible, .colophon :focus-visible { outline-color: var(--mint-400); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--mint-400);
  padding: 0.6rem 1rem; z-index: 60; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ───────────────── toast ───────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 50; max-width: min(92vw, 30rem);
  background: var(--navy-900); color: #EAF3F0;
  border-left: 4px solid var(--mint-400);
  padding: 0.7rem 1.1rem; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 26, 44, 0.35);
  font-size: 0.95rem;
}
.toast--err { border-left-color: #E58A8A; }

/* ───────────────── masthead ───────────────── */
.masthead {
  background: var(--navy-900); color: #DCE7EE;
  padding: 1.05rem clamp(1rem, 4vw, 2.6rem) 0;
  border-bottom: 3px solid var(--navy-950);
}
.brand { display: inline-flex; align-items: baseline; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-word {
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.01em;
  color: #F4F8F7; position: relative; padding-right: 0.85rem;
}
.brand-word::after {
  content: ""; position: absolute; right: 0; bottom: 0.32em;
  width: 0.42em; height: 0.42em; background: var(--mint-400); border-radius: 2px;
}
.brand-motto { font-size: 0.8rem; letter-spacing: 0.04em; color: #9DB2C2; }
.mast-nav { display: flex; align-items: center; gap: 1.4rem; padding: 0.75rem 0 0.9rem; flex-wrap: wrap; }
.mast-nav > a {
  color: #C3D3DE; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.2rem 0; border-bottom: 2px solid transparent;
}
.mast-nav > a:hover { color: #F4F8F7; }
.mast-nav > a[aria-current="page"] { color: var(--mint-400); border-bottom-color: var(--mint-400); }
.mast-spacer { flex: 1; }
.badge {
  font-family: var(--mono); font-weight: 600; font-size: 0.72rem;
  background: var(--navy-700); color: var(--mint-300);
  border-radius: 99px; padding: 0.05rem 0.45rem; margin-left: 0.15rem; vertical-align: 1px;
}
.who { display: flex; align-items: center; gap: 0.8rem; }
.who-name {
  font-size: 0.88rem; color: #DCE7EE; max-width: 38vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who-name b { color: #F4F8F7; font-weight: 600; }
.who .btn-ghost { color: #C3D3DE; border-color: var(--navy-700); }
.who .btn-ghost:hover { color: #F4F8F7; border-color: var(--mint-400); }

/* ───────────────── frame & view caps ───────────────── */
main {
  width: 100%; max-width: 1120px; margin: 0 auto; flex: 1;
  padding: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1rem, 4vw, 2.6rem) 3.5rem;
}
.view { min-height: 40vh; }
.cap { margin-bottom: 1.8rem; max-width: 62ch; }
.cap--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
}
.cap--split > div { max-width: 62ch; }
.cap-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-700);
  margin-bottom: 0.5rem;
}
.cap-h { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.12; }
.cap-sub { color: var(--slate); margin-top: 0.55rem; font-size: 0.98rem; }
.backlink {
  display: inline-block; margin-bottom: 1.2rem; text-decoration: none;
  color: var(--slate); font-weight: 600; font-size: 0.9rem;
}
.backlink:hover { color: var(--navy-800); }

/* ───────────────── buttons & fields ───────────────── */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: 0.6rem 1.15rem; font-weight: 600; font-size: 0.93rem;
  text-decoration: none; text-align: center;
  transition: background 140ms ease, transform 90ms ease, border-color 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy-900); color: #F4F8F7; }
.btn-primary:hover { background: var(--navy-700); }
.btn-mint { background: var(--mint-400); color: var(--navy-950); }
.btn-mint:hover { background: var(--mint-300); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-800); }
.btn-wide { width: 100%; }
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.87rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.linklike {
  background: none; border: 0; padding: 0; color: var(--mint-700);
  font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}

.field { margin-bottom: 0.95rem; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.55rem 0.7rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--mint-700); outline-offset: 0; border-color: var(--mint-700);
}
.field textarea { resize: vertical; min-height: 4.6rem; }
.field .hint { font-size: 0.8rem; color: var(--slate-soft); margin-top: 0.28rem; }
.input-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-err {
  background: var(--red-wash); color: var(--red-ink);
  border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.88rem; margin: 0.4rem 0 0.8rem;
}

/* ───────────────── states (loading / error / empty) ───────────────── */
.state { margin: 1rem 0; }
.st-load { display: flex; align-items: center; gap: 0.6rem; color: var(--slate); font-size: 0.95rem; padding: 1.2rem 0.2rem; }
.st-load::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--mint-700); animation: counterblink 1.1s ease-in-out infinite;
}
@keyframes counterblink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.st-err {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red-ink);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; max-width: 34rem;
}
.st-err strong { display: block; margin-bottom: 0.25rem; }
.st-err p { color: var(--slate); font-size: 0.93rem; margin-bottom: 0.8rem; }
.empty {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.5rem; text-align: center; max-width: 36rem;
  margin: 0 auto;
}
.empty strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.35rem; }
.empty p { color: var(--slate); font-size: 0.93rem; margin-bottom: 0.9rem; }

/* ───────────────── THE RATE SHEET ───────────────── */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
.product {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.35rem 1.2rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.55rem;
}
.product::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: linear-gradient(to right, var(--mint-400) 0 3.2rem, var(--navy-900) 3.2rem);
  border-radius: var(--radius) var(--radius) 0 0;
}
.p-cat {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint-700);
}
.p-name { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; line-height: 1.2; }
.p-desc { color: var(--slate); font-size: 0.9rem; flex: 1; }
/* the card's rate table — label left, figure right, ruled like a ledger */
.figures { border-top: 1px solid var(--line-soft); margin-top: 0.5rem; padding-top: 0.15rem; }
.fig { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.42rem 0; }
.fig + .fig { border-top: 1px solid var(--line-soft); }
.fig-tag {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate-soft);
}
.fig-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.fig-val.fig-apr { font-size: 1.3rem; color: var(--navy-900); }
.fig-val small { font-weight: 400; font-size: 0.72rem; color: var(--slate); }
.p-foot { margin-top: 0.85rem; }
.p-signin {
  font-size: 0.88rem; color: var(--slate); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.p-signin:hover { color: var(--navy-800); border-bottom-color: var(--navy-800); }

/* ───────────────── THE STEPPER (signature) ───────────────── */
.apply-frame { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.rail {
  list-style: none; margin: 0; padding: 1.5rem 1.3rem;
  background: var(--navy-900); border-radius: var(--radius);
  box-shadow: var(--shadow); position: sticky; top: 1rem;
}
.coin-step { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0; }
.coin-step:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: calc(50% + 22px); bottom: calc(-50% + 22px);
  width: 2px; background: var(--navy-700);
}
.coin-step.is-done:not(:last-child)::after { background: var(--mint-400); }
.coin {
  flex: none; width: 33px; height: 33px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: 0.85rem;
  color: #9DB2C2; border: 2px solid var(--navy-700); background: var(--navy-900);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.coin-tag { font-size: 0.88rem; font-weight: 600; color: #9DB2C2; }
.coin-step.is-current .coin {
  border-color: var(--mint-400); color: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(105, 226, 180, 0.16);
}
.coin-step.is-current .coin-tag { color: #F4F8F7; }
.coin-step.is-done .coin { background: var(--mint-400); border-color: var(--mint-400); color: var(--navy-950); }
.coin-step.is-done .coin-tag { color: var(--mint-300); }
.coin-step.is-done { cursor: pointer; }
.coin-step.is-done:hover .coin-tag { text-decoration: underline; text-underline-offset: 3px; }

.stage { min-width: 0; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.6rem;
}
.step-kicker {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 0.35rem;
}
.step-h { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin-bottom: 0.3rem; }
.step-lede { color: var(--slate); font-size: 0.93rem; margin-bottom: 1.1rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; }

/* product choice radios */
.choice { display: grid; gap: 0.7rem; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice-card label {
  display: block; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.85rem 1rem; cursor: pointer; transition: border-color 120ms ease, background 120ms ease;
}
.choice-card label:hover { border-color: var(--navy-800); }
.choice-card input:checked + label { border-color: var(--navy-900); background: var(--navy-wash); box-shadow: inset 3px 0 0 var(--navy-900); }
.choice-card input:focus-visible + label { outline: 2px solid var(--mint-700); outline-offset: 2px; }
.ch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ch-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.ch-apr { font-family: var(--mono); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.ch-apr small { font-weight: 400; font-size: 0.7rem; color: var(--slate); }
.ch-meta { font-size: 0.82rem; color: var(--slate); margin-top: 0.2rem; }
.ch-meta .num { font-size: 0.8rem; }

/* the estimate panel — figures under glass */
.est {
  background: var(--navy-900); color: #DCE7EE; border-radius: 8px;
  padding: 1.05rem 1.2rem; margin-top: 1.1rem;
}
.est-tag {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9DB2C2; margin-bottom: 0.3rem;
}
.est-fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.9rem; color: var(--mint-400); line-height: 1.1; }
.est-fig small { font-size: 0.9rem; color: #9DB2C2; font-weight: 400; }
.est-rows { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.est-rows span { font-size: 0.83rem; color: #C3D3DE; }
.est-rows b { font-family: var(--mono); font-weight: 600; color: #F4F8F7; }
.est-note { font-size: 0.76rem; color: #9DB2C2; margin-top: 0.65rem; }

/* review sheet */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.6rem; margin-bottom: 0.4rem; }
.rv { border-top: 1px solid var(--line-soft); padding-top: 0.55rem; }
.rv dt { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate-soft); }
.rv dd { font-weight: 600; margin-top: 0.12rem; }
.rv dd.num { font-weight: 600; }
.rv--wide { grid-column: 1 / -1; }
.rv-edit {
  background: none; border: 0; padding: 0; margin-left: 0.5rem;
  color: var(--mint-700); font-size: 0.78rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ───────────────── MY APPLICATIONS ───────────────── */
.file { display: grid; gap: 0.9rem; }
.app-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.05rem 1.3rem; text-decoration: none; color: inherit;
  transition: border-color 120ms ease;
}
.app-row:hover { border-color: var(--navy-800); }
.ar-ref { font-family: var(--mono); font-size: 0.72rem; color: var(--slate-soft); letter-spacing: 0.08em; }
.ar-name { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; line-height: 1.25; }
.ar-purpose { color: var(--slate); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.ar-amount { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.05rem; }
.ar-amount small { font-weight: 400; font-size: 0.75rem; color: var(--slate); }
.ar-paid { font-size: 0.8rem; color: var(--slate); }
.ar-paid b { font-family: var(--mono); font-weight: 600; color: var(--ink); }

/* status pills */
.pill {
  display: inline-block; border-radius: 99px; padding: 0.14rem 0.65rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--navy-wash); color: var(--navy-800);
}
.pill--approved, .pill--active, .pill--funded { background: var(--green-wash); color: var(--mint-700); }
.pill--review, .pill--pending { background: var(--amber-wash); color: var(--amber-ink); }
.pill--rejected, .pill--declined, .pill--closed { background: var(--red-wash); color: var(--red-ink); }

/* ───────────────── APPLICATION RECORD SHEET ───────────────── */
.record {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.rec-head { padding: 1.5rem 1.7rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.rec-refrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.45rem; }
.rec-ref { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-soft); }
.rec-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.rec-filed { color: var(--slate); font-size: 0.88rem; margin-top: 0.3rem; }
.rec-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem 1.4rem;
  padding: 1.2rem 1.7rem; border-bottom: 1px solid var(--line-soft); background: #FAFCFD;
}
.fact dt { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate-soft); }
.fact dd { font-weight: 600; margin-top: 0.15rem; }
.fact dd small { display: block; font-weight: 400; font-size: 0.76rem; color: var(--slate); }
.rec-purpose { padding: 1.15rem 1.7rem; border-bottom: 1px solid var(--line-soft); }
.rec-purpose h3, .ledger-cap h3 { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.rec-purpose p { color: var(--slate); font-size: 0.93rem; margin-top: 0.3rem; }

.ledger { padding: 1.15rem 1.7rem 1.5rem; }
.ledger-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.ledger-sum { font-size: 0.85rem; color: var(--slate); }
.ledger-sum b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.ledger-scroll { overflow-x: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 430px; }
.ledger th {
  text-align: left; font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate-soft);
  border-bottom: 1px solid var(--line); padding: 0.35rem 0.6rem 0.45rem 0;
}
.ledger td { border-bottom: 1px solid var(--line-soft); padding: 0.55rem 0.6rem 0.55rem 0; }
.ledger th:last-child, .ledger td:last-child { text-align: right; padding-right: 0; }
.ledger td.amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger tfoot td { border-bottom: 0; padding-top: 0.7rem; font-weight: 600; }
.ledger tfoot .amt { color: var(--mint-700); }
.ledger .empty { border-style: dashed; box-shadow: none; margin: 0.4rem 0 0; }

.fold { border-top: 1px solid var(--line-soft); }
.fold summary {
  list-style: none; cursor: pointer; padding: 1rem 1.7rem;
  font-weight: 600; color: var(--navy-800); font-size: 0.94rem;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+"; font-family: var(--mono); margin-right: 0.55rem; color: var(--mint-700); }
.fold[open] summary::before { content: "–"; }
.fold-body { padding: 0 1.7rem 1.5rem; max-width: 30rem; }

/* ───────────────── SIGN-IN GATE ───────────────── */
.gate { display: flex; justify-content: center; padding: 1rem 0 2rem; }
.gate-card {
  width: min(100%, 27rem); background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid var(--navy-900);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem 1.9rem 1.9rem; position: relative;
}
.gate-card::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 3.2rem; height: 4px;
  background: var(--mint-400); border-radius: var(--radius) 0 0 0;
}
.gate-h { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; margin: 0.15rem 0 0.4rem; }
.gate-lede { color: var(--slate); font-size: 0.92rem; margin-bottom: 1.2rem; }
.gate-notice {
  background: var(--navy-wash); color: var(--navy-800); border-radius: 6px;
  padding: 0.55rem 0.8rem; font-size: 0.88rem; font-weight: 600; margin-bottom: 1rem;
}
.demo-slot { border: 1px dashed var(--line); border-radius: 8px; padding: 0.95rem 1.05rem; margin: 1.3rem 0; }
.ds-tag {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--mint-700); margin-bottom: 0.55rem;
}
.ds-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.14rem 0; }
.ds-rows dt { color: var(--slate); font-size: 0.85rem; }
.ds-rows dd { font-size: 0.85rem; font-weight: 600; }
.ds-rows { margin-bottom: 0.8rem; }
.gate-alt { font-size: 0.9rem; color: var(--slate); margin: 0.9rem 0 0.7rem; }

/* ───────────────── colophon ───────────────── */
.colophon {
  background: var(--navy-900); color: #9DB2C2;
  padding: 2rem clamp(1rem, 4vw, 2.6rem) 2.4rem; margin-top: 2rem;
}
.colo-brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #F4F8F7; margin-bottom: 0.3rem; }
.colo-brand::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; background: var(--mint-400); border-radius: 2px; margin-left: 0.35rem; }
.colo-line { font-size: 0.84rem; max-width: 56ch; }

/* ───────────────── responsive ───────────────── */
@media (max-width: 880px) {
  .apply-frame { grid-template-columns: 1fr; }
  .rail {
    position: static; display: flex; justify-content: space-between;
    padding: 0.9rem 1rem; gap: 0.3rem;
  }
  .coin-step { flex-direction: column; gap: 0.35rem; padding: 0.2rem 0.3rem; text-align: center; flex: 1; }
  .coin-step:not(:last-child)::after {
    left: calc(50% + 24px); right: auto; top: 15px; bottom: auto;
    width: calc(100% - 48px); height: 2px;
  }
  .coin-tag { font-size: 0.72rem; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .ar-side { flex-direction: row; align-items: baseline; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .cap--split .btn { width: 100%; }
  .rec-facts, .rec-head, .rec-purpose, .ledger { padding-left: 1.15rem; padding-right: 1.15rem; }
  .fold summary, .fold-body { padding-left: 1.15rem; padding-right: 1.15rem; }
  .step-card { padding: 1.15rem 1.1rem 1.3rem; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .brand-motto { display: none; }
  .ledger-cap { flex-direction: column; align-items: flex-start; gap: 0.1rem; margin-bottom: 0.9rem; }
  .coin-tag { display: none; }
  .coin-step:not(:last-child)::after { left: calc(50% + 22px); width: calc(100% - 44px); }
}

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