/* ═══════════════════════════════════════════════════════════════════
   TREU · landing — the carbon-copy language, on paper, in motion.
   Tokens mirror design/treu.css exactly. No frameworks.
   ═══════════════════════════════════════════════════════════════════ */

/* Courier Prime, self-hosted with a REAL naira sign: upstream has no U+20A6
   (browsers substituted a fallback ₦). These woff2s are patched from the
   app's pipeline — frontend/scripts/patch-naira-font.py — N + double strike,
   drawn from the font's own outlines. */
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/CourierPrime-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper-page: #F2F1EC;
  --paper-doc: #FDFDFB;
  --ink: #191917;
  --ink-soft: #6B6B64;
  --biro: #2338C8;
  --stamp: #7A3E9D;
  --stamp-red: #BB3524;
  --stamp-green: #1E6E45;
  --rule: #DDDCD2;
  --carbon: #EDF0FA;
  --ease-stamp: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { background: var(--paper-page); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--paper-page);
  color: var(--ink);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}

/* ── type roles ────────────────────────────────────────────────────── */
.display, .masthead, .h2, .kind-h, .step-h, .doc-brand, .stamp-label {
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.01em;
}
.mono { font-family: "Courier Prime", monospace; }
.bold { font-weight: 700; }
.small { font-size: 12px; }
.label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  font-family: "Public Sans", sans-serif;
}
.u-biro { text-decoration: underline; text-decoration-color: var(--biro); text-underline-offset: 3px; }

/* ── topbar ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 48px);
  background: rgba(242, 241, 236, 0.94); /* fallback: no color-mix support */
  background: color-mix(in srgb, var(--paper-page) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.serial { font-family: "Courier Prime", monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.copy-tag {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 75, "wght" 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--biro); border: 1.5px solid var(--biro);
  padding: 3px 8px; border-radius: 2px; white-space: nowrap;
}

/* anchor targets clear the sticky topbar */
[id] { scroll-margin-top: 68px; }

/* keyboard focus is visible on every control (palette-invisible UA defaults) */
a:focus-visible, .btn:focus-visible, .store-btn:focus-visible,
.drawer-close:focus-visible, .slide-thumb:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--biro);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── hero ──────────────────────────────────────────────────────────── */
.hero {
  max-width: 760px; margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) clamp(18px, 5vw, 48px) 28px;
}
.masthead {
  font-variation-settings: "wdth" 78, "wght" 900;
  font-size: clamp(88px, 20vw, 190px);
  line-height: 0.92; text-transform: uppercase; letter-spacing: 0.02em;
  user-select: none;
}
.masthead-letter {
  display: inline-block;
  transform: translateY(0.35em); opacity: 0;
  animation: letter-land 560ms var(--ease-stamp) forwards;
}
.masthead-letter:nth-child(2) { animation-delay: 70ms; }
.masthead-letter:nth-child(3) { animation-delay: 140ms; }
.masthead-letter:nth-child(4) { animation-delay: 210ms; }
@keyframes letter-land {
  to { transform: translateY(0); opacity: 1; }
}
.masthead-rule { height: 3px; background: var(--ink); margin-top: 14px; transform-origin: left; animation: rule-draw 700ms 300ms var(--ease-stamp) backwards; }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.masthead-sub { display: flex; justify-content: space-between; padding-top: 8px; }
.masthead-sub .small { color: var(--ink-soft); }

.pitch {
  font-size: clamp(19px, 3vw, 26px); line-height: 1.45;
  max-width: 34ch; padding-top: 34px;
}

.hero-stamp-zone { display: flex; justify-content: center; padding: 42px 0 8px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 34px; }

.footnote {
  font-size: 12.5px; color: var(--ink-soft);
  text-align: center; padding-top: 26px; max-width: 60ch; margin: 0 auto;
}
.footnote.left { text-align: left; margin: 0; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 85, "wght" 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 3px; border: none;
  transition: transform 140ms var(--ease-stamp), box-shadow 140ms;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--biro); color: var(--paper-doc); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(35, 56, 200, 0.28); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--biro); border: 2px solid var(--biro); }
.btn-outline:hover { background: var(--carbon); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--biro); }

/* ── stamps — the state system's face ──────────────────────────────── */
.stamp {
  display: inline-block; border: 2.5px solid; border-radius: 3px;
  opacity: 0.92; transform: rotate(-3deg);
}
.stamp-inner {
  border: 1.5px solid; border-radius: 1px; margin: 2px;
  padding: 10px 22px; text-align: center;
}
.stamp-green, .stamp-green .stamp-inner { border-color: var(--stamp-green); color: var(--stamp-green); }
.stamp-violet, .stamp-violet .stamp-inner { border-color: var(--stamp); color: var(--stamp); }
.stamp-label { display: block; font-variation-settings: "wdth" 78, "wght" 900; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.stamp-sub { display: block; font-family: "Courier Prime", monospace; font-size: 10.5px; letter-spacing: 0.1em; margin-top: 2px; }

/* every stamp waits invisible, then SLAMS (scale 1.6 → 1, web stamp-in) */
.stamp-wait { opacity: 0; transform: rotate(-3deg) scale(1.6); }
.stamp-slam { animation: stamp-in 380ms var(--ease-stamp) forwards; }
@keyframes stamp-in {
  from { transform: rotate(-3deg) scale(1.6); opacity: 0; }
  60%  { transform: rotate(-3deg) scale(0.97); opacity: 0.92; }
  to   { transform: rotate(-3deg) scale(1); opacity: 0.92; }
}
/* the desk shakes when a stamp lands */
.thunk { animation: thunk 260ms 90ms linear; }
@keyframes thunk {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(0, 3px); }
  50% { transform: translate(-1px, -2px); }
  75% { transform: translate(1px, 1px); }
}

/* ── SMS tape ──────────────────────────────────────────────────────── */
.tape {
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--paper-doc); overflow: hidden; padding: 11px 0;
  margin-top: 26px;
}
.tape-track { display: inline-flex; gap: 56px; white-space: nowrap; will-change: transform; animation: tape-roll 46s linear infinite; }
.tape-item { font-family: "Courier Prime", monospace; font-size: 13px; color: var(--ink-soft); }
.tape-item b { color: var(--ink); }
@keyframes tape-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tape:hover .tape-track { animation-play-state: paused; }

/* ── sections ──────────────────────────────────────────────────────── */
.section { max-width: 760px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) clamp(18px, 5vw, 48px) 24px; }
.section-carbon { max-width: none; background: var(--carbon); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.section-carbon > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-doc { max-width: none; background: var(--paper-doc); border-top: 1px solid var(--rule); }
.section-doc > * { max-width: 760px; margin-left: auto; margin-right: auto; }

.kicker { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); }
.h2 {
  font-variation-settings: "wdth" 82, "wght" 800;
  font-size: clamp(30px, 5.4vw, 46px); line-height: 1.05;
  text-transform: uppercase; padding: 10px 0 18px;
}
.sub { color: var(--ink-soft); max-width: 58ch; padding-bottom: 18px; }

/* scroll reveals: paper rises onto the desk */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms var(--ease-stamp), transform 640ms var(--ease-stamp); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── the document ──────────────────────────────────────────────────── */
/* the wrapper carries the shadow as a drop-shadow FILTER, so it follows
   the torn silhouette (sheet + teeth) instead of a rectangle behind it */
.doc-wrap {
  margin-top: 18px;
  filter: drop-shadow(0 10px 22px rgba(25, 25, 23, 0.10));
}
.doc {
  position: relative; background: var(--paper-doc);
  border: 1px solid var(--rule); border-bottom: none;
}
.doc-watermark { position: absolute; top: 42%; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; overflow: hidden; }
.doc-watermark span {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 90, "wght" 900;
  font-size: clamp(40px, 9vw, 72px); letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(35, 56, 200, 0.05); transform: rotate(-18deg); white-space: nowrap;
  animation: watermark-drift 14s ease-in-out infinite alternate;
}
@keyframes watermark-drift { from { transform: rotate(-18deg) translateX(-12px); } to { transform: rotate(-16deg) translateX(12px); } }

.doc-head { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 26px 14px; border-bottom: 2px solid var(--ink); }
.doc-brand { font-variation-settings: "wdth" 78, "wght" 900; font-size: 24px; text-transform: uppercase; }
.doc-brand small { display: block; font-family: "Public Sans", sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; }
.doc-no { text-align: right; }
.doc-no .mono { font-size: 15px; }

.doc-body { padding: 20px 26px 26px; }
.doc-title { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 82, "wght" 800; font-size: 24px; }
.doc-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dotted var(--ink-soft); padding: 10px 0; }
.amt { font-size: 22px; }
.naira { font-size: 0.72em; }
.doc-section { padding: 22px 0 8px; border-top: 0; }

.clauses { list-style: none; counter-reset: clause; }
.clauses li { counter-increment: clause; font-size: 14px; line-height: 1.5; padding: 7px 0; border-bottom: 1px solid var(--rule); min-height: 1.6em; }
.clauses li::before { content: counter(clause) ". "; font-weight: 700; }
.clauses li .caret { display: inline-block; width: 8px; height: 1em; background: var(--biro); vertical-align: text-bottom; animation: caret-blink 0.7s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

.doc-stamp-slot { display: flex; justify-content: center; padding: 26px 0 6px; }

.ledger .ledger-row {
  display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  opacity: 0; transform: translateX(-14px);
  transition: opacity 420ms var(--ease-stamp), transform 420ms var(--ease-stamp);
}
.ledger .ledger-row.in { opacity: 1; transform: none; }
.ledger .d { color: var(--ink-soft); width: 64px; flex: none; }
.ledger .ledger-row:last-child { border-bottom: none; }

.doc-tear { display: block; width: 100%; height: 14px; margin-top: -1px; overflow: visible; }

.deadline {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid var(--stamp-red); background: var(--carbon);
  padding: 12px 16px; margin-top: 20px; font-size: 14.5px;
}
.hot { color: var(--stamp-red); }

/* ── steps ─────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 4px; border-top: 2px solid var(--ink); }
.step { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.step-no { font-size: 20px; font-weight: 700; color: var(--biro); flex: none; width: 34px; }
.step-h { font-variation-settings: "wdth" 82, "wght" 800; font-size: 19px; text-transform: uppercase; padding-bottom: 5px; }
.step p { color: var(--ink-soft); font-size: 15px; max-width: 56ch; }

/* ── deal kinds ────────────────────────────────────────────────────── */
.kinds { display: grid; gap: 12px; }
.kind {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper-doc); border: 1px solid var(--rule);
  padding: 18px; transition: transform 200ms var(--ease-stamp), border-color 200ms, box-shadow 200ms;
}
.kind:hover { transform: translateY(-3px) rotate(-0.3deg); border-color: var(--biro); box-shadow: 0 8px 22px rgba(25,25,23,0.08); }
.kind .tick { font-weight: 700; font-size: 15px; color: var(--ink-soft); flex: none; transition: color 150ms; }
.kind.ticked .tick { color: var(--biro); }
.kind.ticked .tick::after { content: ""; }
.kind-h { font-variation-settings: "wdth" 82, "wght" 800; font-size: 17px; text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kind p { color: var(--ink-soft); font-size: 14px; padding: 4px 0 6px; max-width: 60ch; }
.kind .eg { font-size: 11.5px; color: var(--ink-soft); }
.pending-tag {
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 75, "wght" 700;
  font-size: 9.5px; letter-spacing: 0.12em; color: var(--stamp);
  border: 1.5px solid var(--stamp); border-radius: 2px; padding: 2px 6px;
}

/* ── slide to release ──────────────────────────────────────────────── */
.slide-wrap { position: relative; padding-bottom: 8px; }
.slide {
  position: relative; height: 62px;
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper-doc);
  display: flex; align-items: center; overflow: hidden;
  touch-action: pan-y;
}
.slide-txt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 82, "wght" 700;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.slide-thumb {
  position: relative; width: 56px; height: 52px; margin: 2px; border-radius: 2px;
  background: var(--biro); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; user-select: none; will-change: transform;
}
.slide-thumb:active { cursor: grabbing; }
.slide.done { border-color: var(--stamp-green); }
.slide.done .slide-thumb { background: var(--stamp-green); }
.warn { text-align: center; font-size: 12.5px; color: var(--stamp-red); font-weight: 600; padding: 10px 0; }

.released-zone { display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 96px; padding-top: 8px; }
#inkBurst { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.section-carbon { position: relative; }

/* ── docket ────────────────────────────────────────────────────────── */
.docket { display: flex; border: 1.5px solid var(--ink); margin-top: 6px; }
.docket-step {
  flex: 1; text-align: center; padding: 12px 4px; border-right: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.docket-step:last-child { border-right: none; }
.docket-step::before {
  content: ""; position: absolute; inset: 0; background: var(--stamp);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-stamp);
  z-index: 0;
}
.docket-step span { position: relative; z-index: 1; transition: color 300ms; }
.docket-step.lit::before { transform: scaleX(1); }
.docket-step.lit span { color: var(--paper-doc); }
.docket-step.struck span { text-decoration: line-through; color: var(--ink-soft); }
.docket-step.struck::before { transform: scaleX(0); }

/* ── no wallet ─────────────────────────────────────────────────────── */
.nowallet { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.nw { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.nw p { font-size: 16px; }
.nw-no { color: var(--stamp-red); font-weight: 700; font-size: 16px; }
.nw-yes { color: var(--stamp-green); font-weight: 700; font-size: 16px; }

/* ── footer ────────────────────────────────────────────────────────── */
.footer { max-width: 760px; margin: 0 auto; padding: 70px clamp(18px, 5vw, 48px) 60px; }
.footer .masthead-rule { animation: none; }
.footer-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 16px; }
.footer-brand { font-variation-settings: "wdth" 78, "wght" 900; font-size: 30px; }
.footer .small { color: var(--ink-soft); }

/* ═══ DESKTOP ═══════════════════════════════════════════════════════
   Mobile keeps the tight single column; ≥980px opens the desk out and
   gains sections (record strip, tiers, the bond receipt).           */

.desktop-only { display: none; }

.topnav { display: none; gap: 26px; }
.topnav a {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 82, "wght" 700;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: color 140ms, border-color 140ms;
}
.topnav a:hover { color: var(--biro); border-color: var(--biro); }

/* the pile: agreements stacked on the desk */
.pile { position: relative; display: grid; gap: 14px; }
.pile-card {
  background: var(--paper-doc); border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(25,25,23,0.07);
  padding: 14px 18px; display: grid; gap: 3px;
  transform: rotate(var(--rot));
  transition: transform 220ms var(--ease-stamp), box-shadow 220ms;
}
.pile-card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 14px 30px rgba(25,25,23,0.12); }
.pc-no { font-size: 10.5px; color: var(--ink-soft); letter-spacing: 0.06em; }
.pc-title { font-family: "Archivo", sans-serif; font-variation-settings: "wdth" 82, "wght" 800; font-size: 17px; }
.pc-amt { font-weight: 700; font-size: 14px; }

/* record strip */
.record-strip { display: grid; gap: 14px; border-top: 2px solid var(--ink); }
.rec { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.rec-num { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.02em; }
.rec-zero { color: var(--stamp-green); }

/* tiers */
.tiers { display: grid; gap: 14px; }
.tier {
  background: var(--paper-doc); border: 1px solid var(--rule);
  padding: 22px; display: grid; gap: 8px; align-content: start;
  transition: transform 200ms var(--ease-stamp), border-color 200ms, box-shadow 200ms;
}
.tier:hover { transform: translateY(-4px); border-color: var(--biro); box-shadow: 0 10px 26px rgba(25,25,23,0.09); }
.tier-full { border: 1.5px solid var(--stamp-green); }
.tier-cap { font-size: 30px; font-weight: 700; }
.tier-per { font-size: 11.5px; color: var(--ink-soft); }
.tier-reqs { list-style: none; padding-top: 8px; display: grid; gap: 6px; }
.tier-reqs li { font-size: 12.5px; color: var(--ink-soft); }
.tier-time { font-size: 11px; color: var(--biro); padding-top: 6px; }

/* bond */
.bond-grid { display: grid; gap: 40px; align-items: center; }
.pending-tag.big { font-size: 11px; padding: 5px 10px; display: inline-block; margin-top: 8px; }
.doc-wrap.doc-mini { max-width: 460px; margin: 0 auto; }
.bond-stamp-slot { display: flex; justify-content: center; padding: 8px 0 16px; }
.bond-kv { display: grid; border-top: 2px solid var(--ink); }
.bkv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.bkv span { color: var(--ink-soft); }
.bkv-avail b { color: var(--stamp-green); }
.bond-verify { font-size: 12px; color: var(--biro); font-weight: 700; padding-top: 12px; }

/* store badges — typographic, carbon-copy, no marketing gloss */
.stores { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 22px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper-doc); text-decoration: none;
  border-radius: 3px; padding: 10px 18px 10px 14px;
  transition: transform 160ms var(--ease-stamp), box-shadow 160ms;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25,25,23,0.25); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn span { display: grid; line-height: 1.15; }
.store-btn small {
  font-family: "Public Sans", sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7;
}
.store-btn span {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 82, "wght" 800;
  font-size: 16px;
}

/* the agreement row: argument left, evidence right.
   Mobile: the copy dissolves (display: contents) so the deadline can be
   ordered BELOW the document while living inside the sticky column. */
.agree-grid { display: flex; flex-direction: column; }
.agree-copy { display: contents; }
.agree-copy > .deadline { order: 10; }
.agree-doc { order: 5; }
.agree-points { display: grid; gap: 14px; padding: 6px 0 22px; }
.ap { display: flex; gap: 12px; }
.ap-no { font-weight: 700; color: var(--biro); flex: none; }
.ap p { font-size: 14.5px; color: var(--ink-soft); max-width: 46ch; }
.ap strong { color: var(--ink); }

/* the release row: the control left, the consequence right */
.ledger-static .ledger-row { opacity: 1; transform: none; font-size: 13px; }
.try-right .label { padding-bottom: 10px; display: block; }
.try-right .footnote { padding-top: 16px; }

@media (min-width: 980px) {
  .desktop-only { display: revert; }
  .topnav { display: flex; }

  /* every section aligns to the same 1120 desk width as the hero —
     but full-bleed backgrounds (carbon, doc) keep filling the screen */
  .section { max-width: 1120px; }
  .section-carbon, .section-doc { max-width: none; }
  .section-doc > *, .section-carbon > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

  .hero { max-width: 1120px; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; padding-top: 10px; }
  .pitch { padding-top: 40px; }
  .hero-stamp-zone { padding: 26px 0 0; }
  .hero-right { padding-top: 44px; }
  .footnote.left-on-desktop { text-align: left; margin: 0; padding-top: 30px; }

  .section-wide { max-width: 1120px; }
  .section-wide.section-doc > * { max-width: 1120px; }

  .agree-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: start; }
  /* the copy column rides along with the scroll (sticky), the banner
     travels with it — with real air between the text and the banner */
  .agree-copy { display: block; position: sticky; top: 84px; }
  .agree-copy > .deadline { margin-top: 38px; }
  .agree-doc { grid-column: 2; grid-row: 1; }
  .agree-doc .doc-wrap { margin-top: 0; }

  .try-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
  .try-grid .slide-wrap { max-width: none; margin: 0; }
  .try-right { padding-top: 96px; }

  .nowallet { grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: none; }
  .nw {
    flex-direction: column; gap: 10px; align-items: flex-start;
    background: var(--paper-page); border: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
    padding: 22px;
  }

  .footer { max-width: 1120px; }

  .record-strip { grid-template-columns: repeat(3, 1fr); border-top: none; }
  .rec { border-top: 2px solid var(--ink); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 36px; border-top: none; }
  .step { flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); }
  .step-no { width: auto; }

  .kinds { grid-template-columns: repeat(2, 1fr); }
  .kind:last-child { grid-column: 1 / -1; }

  .tiers { grid-template-columns: repeat(3, 1fr); }

  .bond-grid { grid-template-columns: 1fr 1fr; }

  .slide-wrap { max-width: 620px; margin: 0 auto; }
  .h2 br { display: inline; }
}

/* ── the office: contact block on the letterhead ───────────────────── */
.office { padding: 26px 0 4px; display: grid; gap: 5px; }
.office .label { padding-bottom: 4px; }
.office p { font-size: 12.5px; color: var(--ink-soft); }
.office a { color: var(--biro); text-decoration: none; border-bottom: 1px solid var(--biro); }

.drawer-body a { color: var(--biro); }

/* ── legal drawers: the fine print slides in from the right ────────── */
.legal-links { padding-top: 14px; font-size: 13px; }
.legal-links a {
  color: var(--biro); text-decoration: none; font-weight: 600;
  border-bottom: 1.5px solid var(--biro); padding-bottom: 1px;
}
.legal-links .mono { color: var(--ink-soft); padding: 0 8px; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(25, 25, 23, 0.42);
  opacity: 0; transition: opacity 260ms var(--ease-stamp);
}
.drawer-backdrop.open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(600px, 94vw);
  background: var(--paper-doc);
  border-left: 2px solid var(--ink);
  box-shadow: -18px 0 44px rgba(25, 25, 23, 0.18);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 340ms var(--ease-stamp);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 22px 14px; border-bottom: 2px solid var(--ink);
  background: var(--paper-doc);
}
.drawer-head .serial { display: block; padding-bottom: 6px; }
.drawer-title {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 80, "wght" 900;
  font-size: 26px; text-transform: uppercase; line-height: 1;
}
.drawer-date { display: block; font-size: 11px; color: var(--ink-soft); padding-top: 5px; }
.drawer-close {
  flex: none; width: 38px; height: 38px; border: 1.5px solid var(--ink); border-radius: 3px;
  background: var(--paper-page); font-size: 15px; color: var(--ink); cursor: pointer;
  transition: transform 140ms var(--ease-stamp), background 140ms;
}
.drawer-close:hover { background: var(--carbon); transform: rotate(90deg); }

.drawer-body { overflow-y: auto; padding: 8px 22px 40px; -webkit-overflow-scrolling: touch; }
.drawer-intro {
  font-size: 14px; line-height: 1.55; color: var(--ink);
  border: 1px dashed var(--ink-soft); padding: 12px 14px; margin: 16px 0 6px;
  background: var(--paper-page);
}
.drawer-body h3 {
  font-family: "Archivo", sans-serif;
  font-variation-settings: "wdth" 82, "wght" 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 22px 0 6px; border-bottom: 1px solid var(--rule); margin-bottom: 8px;
}
.drawer-body p { font-size: 13.5px; line-height: 1.65; color: var(--ink); padding-bottom: 10px; max-width: 70ch; }
.drawer-body p strong { font-weight: 600; }
.drawer-body .mono { font-size: 12.5px; }
.drawer-endrule { text-align: center; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.2em; padding-top: 26px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 560px) {
  .drawer { width: 100vw; border-left: none; }
}

/* ── motion respect ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .ledger .ledger-row { opacity: 1; transform: none; }
  .stamp-wait { opacity: 0.92; transform: rotate(-3deg) scale(1); }
  .tape-track { animation: none; }
}

@media (max-width: 560px) {
  .doc-head, .doc-body { padding-left: 18px; padding-right: 18px; }
  .step { flex-direction: row; }
  .docket { flex-wrap: wrap; }
  .docket-step { flex: 1 1 33%; border-bottom: 1px solid var(--rule); }
}
