/* ===========================================================================
   Landing page styles. Brand-neutral: every colour comes from a token defined
   in the BRAND CONFIG block at the top of index.html. Nothing is loaded from
   a third party — no web fonts, no scripts, no images.
   =========================================================================== */

/* ── type and spacing scale ─────────────────────────────────────────────── */
:root{
  /* System faces only. A web font would be a request to somebody else's
     server on a page whose argument is that nothing goes to anybody else. */
  --face-display: "Iowan Old Style", ui-serif, Georgia, "Times New Roman", serif;
  --face-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --face-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --t--2: 0.75rem;
  --t--1: 0.8125rem;
  --t-0:  1.0625rem;
  --t-1:  1.1875rem;
  --t-2:  1.375rem;
  --t-3:  1.75rem;
  --t-4:  clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);

  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;

  --measure: 63ch;
  --wrap: 72rem;
  --radius: 3px;      /* documents have corners, not pills */
}

*, *::before, *::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-body);
  font-size: var(--t-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ── shared primitives ──────────────────────────────────────────────────── */
.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

h1, h2, h3{
  font-family: var(--face-display);
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
  letter-spacing: -0.006em;
  margin: 0;
}
h1{ font-size: var(--t-4); letter-spacing: -0.018em; }
h2{ font-size: var(--t-3); }
h3{ font-size: var(--t-2); }

p{ margin: 0; max-width: var(--measure); }

a{ color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover{ color: var(--accent-hover); }

strong{ font-weight: 600; }

:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip{
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: var(--s-2) var(--s-3); text-decoration: none;
}
.skip:focus{ left: var(--s-3); top: var(--s-2); color: var(--on-accent); }

.eyebrow, .rail{
  font-family: var(--face-mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.micro{ font-size: var(--t--1); color: var(--ink-faint); line-height: 1.55; }
.aside{ font-size: var(--t--1); color: var(--ink-soft); line-height: 1.6; }

.code, .box-ref{
  font-family: var(--face-mono);
  font-size: 0.86em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.box-ref{ color: var(--accent); font-weight: 500; }

.chip{
  display: inline-block;
  font-family: var(--face-mono);
  font-size: var(--t--2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.1em 0.5em;
  margin-right: 0.45em;
  white-space: nowrap;
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn{
  display: inline-block;
  font: inherit;
  font-weight: 550;
  line-height: 1.2;
  padding: 0.72em 1.15em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover{ background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-quiet{
  background: transparent;
  color: var(--accent);
  border-color: var(--rule);
}
.btn-quiet:hover{ background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.btn-lg{ font-size: var(--t-1); padding: 0.8em 1.4em; }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  max-width: none;
}
.cta-addr{ font-size: var(--t--1); color: var(--ink-faint); }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head{
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.head-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding-block: var(--s-2);
}

.wordmark{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--face-display);
  font-size: var(--t-2);
  font-weight: 600;
  letter-spacing: var(--brand-wordmark-tracking);
  color: var(--ink);
  text-decoration: none;
  margin: 0;
}
.wordmark:hover{ color: var(--ink); }
.wordmark-mark{
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  color: var(--accent);
  flex: none;
  overflow: visible;
}

.head-nav{
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t--1);
}
.head-nav a{
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.35em;
  border-bottom: 1px solid transparent;
}
.head-nav a:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.head-nav .nav-cta{ color: var(--accent); font-weight: 550; }

/* ── section frame: a marginal label rail, the way a form labels its fields ─ */
.band{
  border-top: 1px solid var(--rule);
  padding-block: var(--s-6);
}
.band-alt{ background: var(--paper-raised); }
.band-cta{ background: var(--accent-wash); }

.col2{
  display: grid;
  gap: var(--s-3);
}
.col2-body{
  display: grid;
  gap: var(--s-3);
  min-width: 0;
}
.col2-body > h2{ margin-bottom: var(--s-1); max-width: 24ch; }

@media (min-width: 62rem){
  .col2{
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--s-5);
  }
  .rail{
    text-align: right;
    padding-top: 0.65rem;
    border-top: 1px solid var(--accent);
    color: var(--ink-soft);
  }
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero{ padding-block: var(--s-5) var(--s-6); }
.hero-grid{
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
@media (min-width: 64rem){
  .hero-grid{ grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr); gap: var(--s-5); }
}
.hero-copy{ display: grid; gap: var(--s-3); }
.hero-copy h1{ margin-top: var(--s-1); max-width: 17ch; }
.lead{ font-size: var(--t-1); color: var(--ink-soft); line-height: 1.55; }
.lead strong{ color: var(--ink); }

/* the trace: one figure through the documents that must agree with it */
.trace{
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-3);
  box-shadow: 0 1px 0 var(--rule);
}
.trace-head{
  font-size: var(--t--2);
  color: var(--ink-faint);
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.trace-rows{ list-style: none; margin: 0; padding: 0; display: grid; }
.trace-row, .trace-out{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.4em;
  align-items: baseline;
  gap: var(--s-2);
  padding-block: 0.55rem;
  border-bottom: 1px dotted var(--rule);
}
.trace-row .src, .trace-out .src{
  font-size: var(--t--1);
  color: var(--ink-soft);
  min-width: 0;
}
.trace-row .src em{ font-style: normal; color: var(--ink); }
.fig{
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t--1);
  color: var(--ink);
  white-space: nowrap;
}
.mark{ font-size: var(--t--1); text-align: right; }
.mark-ok{ color: var(--accent); }

.trace-out{
  border-bottom: none;
  border-top: 2px solid var(--ink);
  margin-top: var(--s-1);
  padding-top: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
}
.trace-out .src{ color: var(--ink); }
.fig-out{ font-size: var(--t-1); font-weight: 600; }
.trace-foot{
  font-size: var(--t--2);
  color: var(--ink-faint);
  margin-top: var(--s-2);
  line-height: 1.5;
}

/* ── who it is for ──────────────────────────────────────────────────────── */
.voices{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.voices li{
  font-family: var(--face-display);
  font-size: var(--t-1);
  line-height: 1.45;
  color: var(--ink);
  padding-left: var(--s-3);
  border-left: 2px solid var(--rule);
  max-width: var(--measure);
}
.voices li em{ font-style: italic; }

/* ── steps ──────────────────────────────────────────────────────────────── */
.steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
}
.step{
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}
.step > div{ display: grid; gap: var(--s-2); min-width: 0; }
.step-n{
  font-family: var(--face-mono);
  font-size: var(--t-2);
  color: var(--accent);
  line-height: 1.2;
  margin: 0;
  padding-top: 0.15em;
  border-top: 2px solid var(--accent);
}
.step h3{ font-size: var(--t-2); }

.checks{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: var(--measure);
  border-top: 1px solid var(--rule);
}
.checks li{
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: var(--s-2);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--ink-soft);
}
.checks .code{ color: var(--accent); }

/* ── privacy ────────────────────────────────────────────────────────────── */
.split{
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 48rem){
  .split{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}
.split-col{ display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.sub{
  font-family: var(--face-body);
  font-size: var(--t--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.redacted{
  margin: var(--s-1) 0;
  display: grid;
  gap: var(--s-2);
}
.rd-page{
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: grid;
  gap: 0.55rem;
}
.band-alt .rd-page{ background: var(--paper); }
.rd-line{ height: 0.6rem; border-radius: 1px; display: block; }
.rd-bar{ background: var(--redact); }
.rd-txt{ background: var(--rule); }
.rd-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.rd-num{
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t--2);
  color: var(--ink);
}
.redacted figcaption{ font-size: var(--t--2); color: var(--ink-faint); line-height: 1.5; }

.note{
  border: 1px solid var(--rule);
  border-left: 3px solid var(--flag);
  background: var(--flag-wash);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: grid;
  gap: var(--s-2);
}
.note ul{ margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); }
.note li{ font-size: var(--t--1); color: var(--ink-soft); line-height: 1.6; max-width: var(--measure); }
.note li strong{ color: var(--ink); }

/* ── output panels ──────────────────────────────────────────────────────── */
.panel{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: grid;
  gap: var(--s-2);
  min-width: 0;
}
.band-alt .panel{ background: var(--paper); }
.panel-head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}
.panel-foot{ font-size: var(--t--1); color: var(--ink-soft); }

.table-scroll{ overflow-x: auto; }
.boxes{
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: var(--t--1);
}
.boxes th, .boxes td{
  text-align: left;
  padding: 0.48rem 0.7rem 0.48rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.boxes thead th{
  font-family: var(--face-mono);
  font-size: var(--t--2);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--ink-faint);
}
.boxes tbody th{
  font-family: var(--face-mono);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.boxes td{ color: var(--ink-soft); }
.boxes .num{
  text-align: right;
  padding-right: 0;
  font-family: var(--face-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.boxes tbody tr:last-child th,
.boxes tbody tr:last-child td{ border-bottom: none; }

.provenance{
  font-size: var(--t--1);
  color: var(--ink-soft);
  background: var(--paper-sunk);
  border-radius: var(--radius);
  padding: var(--s-2);
  line-height: 1.6;
}
.disclaim{
  font-size: var(--t--1);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-2);
  line-height: 1.6;
}

/* ── what it is not ─────────────────────────────────────────────────────── */
.nots{
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.nots dt{
  font-family: var(--face-display);
  font-size: var(--t-1);
  font-weight: 600;
  color: var(--ink);
  padding-top: var(--s-3);
}
.nots dd{
  margin: 0.3rem 0 0;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  font-size: var(--t--1);
  color: var(--ink-soft);
  line-height: 1.62;
}

/* ── pricing ────────────────────────────────────────────────────────────── */
.tiers{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 48rem){
  .tiers{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.tier{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s-3);
  display: grid;
  gap: var(--s-2);
  align-content: start;
}
.tier-name{
  font-family: var(--face-mono);
  font-size: var(--t--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.tier-price{
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--face-display);
  font-size: var(--t-3);
  color: var(--ink);
  margin: 0;
}
.tier-price .ccy{ color: var(--ink-faint); }
.tier-price .per{
  font-family: var(--face-body);
  font-size: var(--t--1);
  color: var(--ink-faint);
  margin-left: 0.3em;
}
/* the price is not decided; show that rather than invent a figure */
.blank{
  display: inline-block;
  width: 3.2rem;
  border-bottom: 2px solid var(--flag);
  height: 1em;
}
.tier-note{ font-size: var(--t--1); color: var(--ink-soft); line-height: 1.55; }

/* ── waitlist status ────────────────────────────────────────────────────── */
.status{
  font-size: var(--t--1);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-2);
  max-width: var(--measure);
}
.band-cta .chip{ background: var(--paper); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot{
  border-top: 1px solid var(--rule);
  background: var(--paper-raised);
  padding-block: var(--s-4);
}
.foot-grid{
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 48rem){
  .foot-grid{ grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--s-5); }
}
.wordmark-foot{ font-size: var(--t-1); display: inline-flex; }
.foot-notes{ display: grid; gap: var(--s-2); }
.foot-notes p{ font-size: var(--t--1); color: var(--ink-soft); max-width: 58ch; }
.foot-notes .micro{ color: var(--ink-faint); }

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

/* ── print: the page is a document; let it behave like one ──────────────── */
@media print{
  .site-head, .head-nav, .cta-row, .skip{ display: none; }
  body{ background: #fff; color: #000; font-size: 10.5pt; }
  .band, .hero{ padding-block: 1rem; border: none; }
}
