/* ========================================================================
   colophon.css — the Colophon coming-soon page, standalone.
   Identity: the instrument panel meets the printer's colophon. A deep
   ink-blue field drawn from the app icon, hairline rules, a faint
   measured grid, tabular figures, a publisher's serif for display.
   Precise and calm: short linear motion, nothing bounces.

   Contrast contract (checked pairs; do not deviate without re-checking):
   - ink #EAEEFB on #070B24 ~16:1; ink-2 #B8C2E8 on #070B24 ~10:1
   - ink-3 #93A0D4 on #111B4F ~6:1 (smallest text on the lightest panel)
   - gold #E9CF8A on #070B24 ~12:1; periwinkle #8FA8FF on #070B24 ~8:1
   - receipt paper #E6EBFA with ink #141B45 ~14:1
   Motion is opt-in on html[data-motion="full"] (assets/js/motion.js): the
   settled page is what you get with no JS, ?static=1, Reduce Motion, or a
   visitor-paused page.
   ======================================================================== */

:root {
  --bg:       #070B24;
  --bg-2:     #0B1238;
  --panel:    #0E1642;
  --panel-2:  #111B4F;
  --ink:      #EAEEFB;
  --ink-2:    #B8C2E8;
  --ink-3:    #93A0D4;
  --gold:     #E9CF8A;
  --gold-hi:  #F4E3B0;
  --peri:     #8FA8FF;
  --rule:     rgba(143, 168, 255, 0.22);
  --rule-2:   rgba(143, 168, 255, 0.42);
  --gold-rule: rgba(233, 207, 138, 0.5);
  --paper:    #E6EBFA;
  --paper-ink: #141B45;
  --paper-ink-2: #3B4580;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --col: 1160px;
  --mast-h: 64px;

  --motion-fast: 120ms;
  --motion-standard: 200ms;
  --motion-emphasis: 360ms;
  --ease-linear: cubic-bezier(0.25, 0.1, 0.25, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--mast-h) + 16px); background: var(--bg); }
html[data-motion="full"] { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* the faint measured grid + a cool glow, fixed behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 55% at 88% -5%, rgba(21, 112, 208, 0.28), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(21, 112, 208, 0.12), transparent 70%),
    linear-gradient(rgba(143, 168, 255, 0.055) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 168, 255, 0.055) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(143, 168, 255, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, rgba(143, 168, 255, 0.07) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--bg);
}

::selection { background: var(--gold); color: var(--bg); }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; overflow-wrap: break-word; text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--peri); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -64px; z-index: 100;
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: 4px;
  background: var(--gold); color: var(--bg); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Masthead bar ---------- */

.mast {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--mast-h);
  padding: 8px var(--gutter);
  background: rgba(7, 11, 36, 0.86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.mark {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px; min-width: 44px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.01em;
}
.mark img { width: 34px; height: 34px; border-radius: 22.37%; box-shadow: 0 0 0 1px var(--rule-2); }
.mark:hover { color: var(--gold); }
.mast-right { display: inline-flex; align-items: center; gap: 8px; }
.mast-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.mast-link:hover { color: var(--gold); }
.mast-link svg { flex: none; }

.motion-toggle {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--peri); background: transparent;
  border: 1px solid var(--rule); border-radius: 4px; cursor: pointer;
}
.motion-toggle:hover { border-color: var(--peri); color: var(--gold); }
.motion-toggle[hidden] { display: none; }
.motion-toggle .ico { flex: none; fill: currentColor; }
.motion-toggle .ico-play, .motion-toggle[data-state="paused"] .ico-pause { display: none; }
.motion-toggle[data-state="paused"] .ico-play { display: block; }
@media (max-width: 560px) {
  .motion-toggle { width: 44px; padding: 0; }
  .motion-toggle .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 380px) { .mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--peri);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }

.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 64px); display: grid; gap: 18px; }
.sec-head h2, .privacy-lead h2 {
  font-size: clamp(2.125rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.012em; color: var(--ink);
}
.band { padding-block: clamp(56px, 9vw, 120px); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(36px, 6vw, 56px); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
}
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy h1 {
  font-weight: 500; color: var(--gold);
  font-size: clamp(3.5rem, 13vw, 9rem); line-height: 0.88; letter-spacing: -0.025em;
  margin-block: 4px 2px;
}
.lede {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.22; color: var(--ink);
  max-width: 28ch;
}
.status {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 16px; border: 1px solid var(--gold-rule); border-radius: 4px;
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; line-height: 1.45; color: var(--gold);
  background: rgba(233, 207, 138, 0.06);
}
.status-mark { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--gold); border-radius: 50%; position: relative; }
.status-mark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--gold); }
.disclaimer {
  display: grid; gap: 4px; max-width: 34rem;
  padding: 14px 18px; border: 1px solid var(--rule-2); border-inline-start: 3px solid var(--peri); border-radius: 4px;
  background: rgba(143, 168, 255, 0.07);
}
.disc-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peri); }
.disc-text { font-size: 1rem; line-height: 1.5; color: var(--ink); }

.hero-side { display: grid; gap: 36px; justify-items: center; align-content: start; }
@media (min-width: 900px) { .hero-side { padding-top: 12px; } }

/* the plate: the icon between printer's crop marks, under a measured edge */
.plate {
  --m: 14px;
  position: relative; padding: clamp(20px, 3vw, 30px);
  background: radial-gradient(75% 75% at 50% 45%, rgba(21, 112, 208, 0.22), transparent 80%);
  border: 1px solid var(--rule);
}
.plate::before {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px var(--m) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--m) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px var(--m) no-repeat;
}
.plate::after {
  content: ""; position: absolute; inset-inline: 0; top: -1px; height: 8px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 8px) left top / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--gold-rule) 0 1px, transparent 1px 40px) left top / 100% 8px no-repeat;
}
.plate-icon {
  display: block; width: clamp(148px, 18vw, 184px); height: auto; aspect-ratio: 1;
  border-radius: 22.37%;
  box-shadow: 0 0 0 1px rgba(233, 207, 138, 0.35), 0 24px 64px rgba(21, 112, 208, 0.38), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.spec { width: 100%; max-width: 30rem; border-top: 1px solid var(--gold-rule); }
.spec-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.28rem; }
.spec dd { font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }

.ruler {
  margin-top: clamp(44px, 7vw, 88px); height: 16px;
  border-bottom: 1px solid var(--rule-2);
  background:
    repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 10px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--gold-rule) 0 1px, transparent 1px 100px) left bottom / 100% 16px no-repeat;
}

/* ---------- Illustration frames (shared) ---------- */

.fig {
  container: fig / inline-size;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--rule); border-radius: 4px;
  background: linear-gradient(180deg, #0F1946, #0A1136);
  color: var(--ink-2);
}
.fig::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background:
    linear-gradient(rgba(143, 168, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 168, 255, 0.06) 1px, transparent 1px) 0 0 / 24px 24px;
}
.fig > * { position: relative; }
.fig-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px;
  padding-top: 10px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.pro-tag, .tag {
  display: inline-block; padding: 1px 7px; border: 1px solid var(--gold-rule); border-radius: 2px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.tag { margin-inline-start: 6px; vertical-align: 0.05em; }
.d-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.chipx {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px; border: 1px solid var(--rule-2); border-radius: 2px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.chipx.is-on { border-color: var(--gold); color: var(--gold); background: rgba(233, 207, 138, 0.1); }
.chipx.is-on::before { content: ""; width: 6px; height: 6px; background: var(--gold); }

/* ---------- How it works: the stepper ---------- */

.steps { display: grid; gap: 44px; }
.step {
  position: relative; display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0; row-gap: 22px;
}
.step::before { /* the vertical rule */
  content: ""; position: absolute; inset-inline-start: 2.6rem; top: 0.4rem; bottom: -44px;
  width: 1px; background: var(--rule-2);
}
.step:last-child::before { bottom: auto; height: 1.2rem; }
.step::after { /* the node: hollow, filled when its figure is shown */
  content: ""; position: absolute; inset-inline-start: calc(2.6rem - 4px); top: 0.55rem;
  width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--bg);
}
.step.is-active::after { background: var(--gold); }
.step-num { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; color: var(--gold); padding-top: 0.45rem; }
.step-body { display: grid; gap: 10px; align-content: start; }
.step-h { font-size: clamp(1.875rem, 4vw, 2.5rem); line-height: 1.05; color: var(--ink); }
.step-body p { color: var(--ink-2); max-width: 36rem; }
.step > .fig { grid-column: 1 / -1; }

.step-btn {
  display: block; width: 100%; min-height: 44px; padding: 0; text-align: start;
  font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; cursor: pointer;
}
.step-btn:hover { color: var(--gold); }
.step.is-active .step-h { color: var(--gold); }
.step.is-active .step-body p { color: var(--ink); }

@media (min-width: 900px) {
  .step { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; row-gap: 0; align-items: start; }
  .step > .fig { grid-column: 3; grid-row: 1; }
  .step-num, .step-body { grid-row: 1; }
  .step-num { grid-column: 1; }
  .step-body { grid-column: 2; }
}

/* stage mode (JS, wide screens): the figures live together, one shown at a time */
.stepper.is-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.stepper.is-stage .step { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0; align-items: start; }
.stepper.is-stage .step-num { grid-column: 1; }
.stepper.is-stage .step-body { grid-column: 2; }
.stage { display: grid; position: sticky; top: calc(var(--mast-h) + 24px); }
.stage > .fig { grid-area: 1 / 1; }
.stepper.is-stage .fig:not(.is-active) { visibility: hidden; opacity: 0; }
html[data-motion="full"] .stepper.is-live .fig { transition: opacity 160ms linear, visibility 0s linear 160ms; }
html[data-motion="full"] .stepper.is-live .fig.is-active { transition: opacity 160ms linear, visibility 0s; }

/* capture figure: receipt to entry */
.cap-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 16px; align-items: center; }
.receipt { position: relative; padding: 10px; max-width: 15rem; width: 100%; justify-self: center; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.receipt-paper {
  background: var(--paper); color: var(--paper-ink);
  padding: 14px 14px 26px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.5;
  --s: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
}
.r-title { font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.r-sub { text-align: center; color: var(--paper-ink-2); font-size: 0.6875rem; letter-spacing: 0.06em; margin-bottom: 10px; }
.r-line { display: flex; justify-content: space-between; gap: 10px; }
.r-rule { border-top: 1px dashed rgba(20, 27, 69, 0.5); margin: 6px 0; }
.r-total { font-weight: 500; }
.brk { position: absolute; width: 14px; height: 14px; border: 0 solid var(--gold); }
.brk-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.brk-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.brk-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.brk-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.scan-line {
  position: absolute; inset-inline: 4px; top: 88%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(233, 207, 138, 0.7);
}
.cap-arrow { color: var(--gold); }
.entry { padding: 14px 16px; border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.6); font-family: var(--mono); font-size: 0.75rem; }
.e-title { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peri); margin-bottom: 8px; }
.e-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); color: var(--ink); }
.e-row span:first-child { color: var(--ink-3); }
.e-amt span:last-child { color: var(--gold); }
@container fig (max-width: 520px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; }
  .cap-arrow { transform: rotate(90deg); }
  .entry { width: 100%; }
}

/* review figure: the dashboard */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px 14px; border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.6); }
.t-label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; }
.t-val { font-family: var(--mono); font-weight: 500; font-size: 1.375rem; color: var(--gold); margin-top: 6px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 100px; margin-bottom: 20px; border-bottom: 1px solid var(--rule-2); }
.bars span { position: relative; flex: 1; min-width: 0; height: var(--h); background: linear-gradient(180deg, var(--peri), rgba(143, 168, 255, 0.35)); }
.bars i { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; font: normal 0.625rem/1 var(--mono); color: var(--ink-3); }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; margin-bottom: 12px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink); }
.cat span:last-of-type { color: var(--gold); }
.cat i { grid-column: 1 / -1; display: block; height: 4px; background: linear-gradient(90deg, var(--gold) var(--w), var(--rule) var(--w)); }
@container fig (max-width: 520px) {
  .dash-cols { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; }
  .t-val { margin-top: 0; font-size: 1.125rem; }
}

/* export figure: four outputs */
.out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 12px; }
.mini { min-height: 7.5rem; padding: 12px 14px; border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.62); }
.mini-t { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); line-height: 1.4; }
.mini-mono { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-2); margin-top: 8px; }
.sk { display: block; height: 6px; width: var(--w); margin-top: 10px; background: rgba(143, 168, 255, 0.34); }
.sk-total { background: var(--gold); margin-top: 16px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; margin-top: 12px; border-bottom: 1px solid var(--rule-2); }
.mini-bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--peri), rgba(143, 168, 255, 0.35)); }

/* ---------- Feature frames ---------- */

.band--frames .sec-head { margin-bottom: clamp(16px, 3vw, 32px); }
.frame { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .frame { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 88px); align-items: center; }
  .frame--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .frame--flip .frame-copy { order: 2; }
}
.frame-copy { display: grid; gap: 14px; align-content: start; }
.folio { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.frame-copy h3 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 0.98; letter-spacing: -0.015em; color: var(--ink); }
.frame-lead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.2; color: var(--gold); }
.facts { margin-top: 10px; border-bottom: 1px solid var(--rule); }
.facts li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--rule); color: var(--ink-2); max-width: 34rem; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15rem; width: 8px; height: 8px; border: 1px solid var(--gold); }
.frame-note { margin-top: 10px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold-rule); font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); max-width: 34rem; }

/* ledger */
.ledger { font-family: var(--mono); font-size: 0.75rem; color: var(--ink); border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.6); }
.l-head, .l-row {
  display: grid; grid-template-columns: 4rem minmax(0, 1.4fr) minmax(0, 1.25fr) 3.2rem 4.2rem; gap: 12px; align-items: baseline;
  padding: 11px 14px;
}
.l-head { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule-2); }
.l-row { border-bottom: 1px solid var(--rule); }
.l-row span:first-child, .l-row span:nth-child(4) { color: var(--ink-3); }
.l-row span:last-child, .l-head span:last-child { text-align: end; }
.l-row span:last-child { color: var(--gold); }
.l-meal { box-shadow: inset 3px 0 0 var(--gold); }
.l-note { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--gold); border-top: 1px dashed var(--gold-rule); background: rgba(233, 207, 138, 0.06); }
@container fig (max-width: 560px) {
  .l-head { display: none; }
  .l-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .l-row span:nth-child(1), .l-row span:nth-child(4) { display: none; }
  .l-row span:nth-child(2) { grid-column: 1; }
  .l-row span:nth-child(3) { grid-column: 1; grid-row: 2; font-size: 0.6875rem; color: var(--ink-3); }
  .l-row span:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* route */
.route-svg {
  display: block; width: 100%; height: auto; aspect-ratio: 520 / 220;
  border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.6); color: rgba(143, 168, 255, 0.17);
}
.route-base { stroke: rgba(143, 168, 255, 0.3); stroke-width: 6; stroke-linecap: round; }
.route-line { stroke: var(--peri); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 11; }
.node-start { fill: var(--bg); stroke: var(--peri); stroke-width: 3; }
.node-end { fill: var(--gold); }
.node-now { fill: var(--gold); }
.node-now-ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0.6; transform-box: fill-box; transform-origin: center; }
.route-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.live-card { padding: 14px 16px; border: 1px solid var(--gold-rule); border-radius: 14px; background: rgba(17, 27, 79, 0.95); }
.lc-top { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.lc-mark { width: 10px; height: 10px; background: var(--gold); border-radius: 2px; }
.lc-sub { margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); }
.lc-stop { display: inline-block; margin-top: 12px; padding: 5px 16px; border: 1px solid var(--gold); border-radius: 999px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.route-side { display: grid; gap: 14px; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; }
.classify { display: inline-flex; border: 1px solid var(--rule-2); justify-self: start; }
.seg { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.seg + .seg { border-inline-start: 1px solid var(--rule-2); }
.seg.is-on { background: rgba(233, 207, 138, 0.14); color: var(--gold); }
@container fig (max-width: 520px) { .route-cards { grid-template-columns: minmax(0, 1fr); } }

/* documents */
.docs { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 14px; border: 1px solid var(--rule-2); background: rgba(7, 11, 36, 0.58); }
.doc-ico { color: var(--peri); }
.doc-name { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.doc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.doc-status { grid-column: 2; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.04em; color: var(--gold); }
.doc-status svg { flex: none; }
.vers { padding: 14px; border: 1px solid var(--rule); }
.vers ol { display: grid; gap: 0; }
.vers li { position: relative; display: flex; gap: 18px; padding: 5px 0 5px 22px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.vers li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.7rem; width: 8px; height: 8px; border: 1px solid var(--peri); background: var(--bg-2); }
.vers li::after { content: ""; position: absolute; inset-inline-start: 6px; top: 1.45rem; bottom: -0.3rem; width: 1px; background: var(--rule-2); }
.vers li:last-child::after { display: none; }
.vers li.is-now { color: var(--gold); }
.vers li.is-now::before { background: var(--gold); border-color: var(--gold); }
@container fig (min-width: 520px) {
  .doc { grid-template-columns: auto minmax(0, 1fr) auto; }
  .doc-status { grid-column: 3; }
}

/* the Schedule C sheet */
.sheet {
  width: 100%; max-width: 26rem; margin-inline: auto;
  padding: 22px 22px 34px; background: var(--paper); color: var(--paper-ink);
  --s: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--s) 100%;
}
.sheet-wrap { filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4)); }
.sh-title { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.05; }
.sh-sub { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-ink-2); margin: 6px 0 14px; }
.sh-rows p, .sh-total { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.8125rem; padding: 7px 0; }
.sh-rows p { border-bottom: 1px dotted rgba(20, 27, 69, 0.4); }
.sh-total { font-weight: 500; border-top: 2px solid var(--paper-ink); margin-top: 6px; }
.outputs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ---------- Privacy ---------- */

.band--privacy {
  background: linear-gradient(180deg, rgba(11, 18, 56, 0.92), rgba(7, 11, 36, 0.4));
  border-block: 1px solid var(--rule);
}
.privacy-grid { display: grid; gap: clamp(36px, 6vw, 64px); }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 88px); align-items: start; } }
.privacy-lead { display: grid; gap: 18px; align-content: start; }
.privacy-lead h2 { max-width: 14ch; }
.claims { border-top: 1px solid var(--gold-rule); }
.claims li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.claim-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 0.2rem; }
@media (max-width: 520px) { .claims li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.devices { margin-top: 20px; max-width: 24rem; }
.dev-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.dev { display: grid; justify-items: center; gap: 8px; }
.dev b { font: 400 0.6875rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.dev i { display: block; border: 1.5px solid var(--peri); position: relative; background: rgba(143, 168, 255, 0.07); }
.g-phone { width: 22px; height: 42px; border-radius: 6px; }
.g-pad { width: 38px; height: 50px; border-radius: 5px; }
.g-mac { width: 54px; height: 34px; border-radius: 3px; margin-bottom: 4px; }
.g-mac::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: -7px; height: 3px; border-top: 1.5px solid var(--peri); }
.g-watch { width: 28px; height: 32px; border-radius: 9px; }
.dev-join { position: relative; height: 22px; margin: 10px 24px 0; border: 1px solid var(--rule-2); border-top: 0; }
.dev-join::after { content: ""; position: absolute; left: 50%; top: 100%; height: 14px; width: 1px; background: var(--gold-rule); }
.dev-cloud {
  margin-top: 14px; padding: 10px 14px; text-align: center;
  border: 1px solid var(--gold-rule); background: rgba(233, 207, 138, 0.07);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Plans ---------- */

.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.plan { padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--rule-2); background: rgba(11, 18, 56, 0.62); display: grid; gap: 14px; align-content: start; }
.plan--pro { border-color: var(--gold-rule); background: linear-gradient(180deg, rgba(233, 207, 138, 0.07), rgba(11, 18, 56, 0.62)); }
.plan-k { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.plan h3 { font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; color: var(--ink); }
.plan--pro h3 { color: var(--gold); }
.plan-list { margin-top: 6px; border-bottom: 1px solid var(--rule); }
.plan-list li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--rule); color: var(--ink); }
.plan-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15rem; width: 8px; height: 8px; border: 1px solid var(--peri); }
.plan--pro .plan-list li::before { background: var(--gold); border-color: var(--gold); }
.plan-note { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Closing ---------- */

.closing { padding-block: clamp(72px, 12vw, 160px); border-top: 1px solid var(--rule); }
.closing-inner { display: grid; justify-items: center; text-align: center; gap: 24px; }
.closing h2 { font-size: clamp(3.5rem, 12vw, 8.5rem); line-height: 0.9; letter-spacing: -0.025em; color: var(--gold); }
.closing-lede { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.25; color: var(--ink); max-width: 30ch; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bg); background: var(--gold); border: 1px solid var(--gold); border-radius: 4px; text-decoration: none;
}
.btn:hover { background: var(--gold-hi); color: var(--bg); }
.closing-actions { margin-top: 8px; }
.closing-contact { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--rule-2); padding-block: 40px 56px; background: rgba(7, 11, 36, 0.7); }
.foot-disclaimer { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.3; color: var(--ink); max-width: 40ch; margin-bottom: 28px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.foot-copy { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-3); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 6px; margin-inline: -10px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 0.9375rem; color: var(--ink-2); }
.foot-links a:hover { color: var(--gold); }

/* ---------- Motion (opt-in) ---------- */

@keyframes route-march { to { stroke-dashoffset: -24; } }
@keyframes ring-pulse { from { transform: scale(0.55); opacity: 0.85; } to { transform: scale(1.7); opacity: 0; } }
@keyframes scan-sweep { from { top: 8%; } to { top: 86%; } }
html[data-motion="full"] .route-line { animation: route-march 1.6s linear infinite; }
html[data-motion="full"] .node-now-ring { animation: ring-pulse 2.4s linear infinite; }
html[data-motion="full"] .scan-line { animation: scan-sweep 2.8s linear infinite alternate; }
html[data-motion="full"] .btn, html[data-motion="full"] .motion-toggle { transition: background-color var(--motion-fast) linear, color var(--motion-fast) linear, border-color var(--motion-fast) linear; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Cross-document view transition: the plate morphs from the home card ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html:not(:active-view-transition-type(paw)) .plate { view-transition-name: hero-work; }
  ::view-transition-old(hero-work),
  ::view-transition-new(hero-work) { animation-duration: var(--motion-emphasis); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Accessibility modes ---------- */

@media (prefers-reduced-transparency: reduce) {
  .mast { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --rule: rgba(143, 168, 255, 0.5); --rule-2: rgba(143, 168, 255, 0.7); --ink-3: #B4BFEA; }
  body::before { opacity: 0.6; }
}
@media (forced-colors: active) {
  .btn, .skip-link, .chipx, .status, .disclaimer, .live-card, .lc-stop { border: 1px solid ButtonText; }
  .step::after { background: Canvas; border-color: Highlight; }
  .step.is-active::after { background: Highlight; }
  .receipt-paper, .sheet { forced-color-adjust: none; }
}
@media print {
  body::before { display: none; }
  .mast { position: static; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
