/* Quillmark Bids: the marked paper.
   Two voices: Archivo for Quillmark, Source Serif 4 for the documents.
   Green is the marker's pen and is used for marks only. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 80% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/sourceserif4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so the font swap doesn't shift the layout */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 98%;
  ascent-override: 89.5%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Times");
  size-adjust: 114.8%;
  ascent-override: 90.2%;
  descent-override: 29.2%;
  line-gap-override: 0%;
}

:root {
  /* the world: paper, ink, the answer sheet and the marker's green pen */
  --paper: #EDEFEA;
  --surface: #E2E6DF;
  --sheet: #FFFFFF;
  --ink: #1C2633;
  --muted: #525D68;
  --rule: #8C968F;
  --mark: #0A6A42;
  --mark-on-ink: #8FD9AE;
  --muted-on-ink: #B3BDC7;

  --voice: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --document: "Source Serif 4", "Serif Fallback", Georgia, serif;

  /* five sizes, far apart */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5625rem);
  --step-head: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);
  --step-display: clamp(2.75rem, 1rem + 4.2vw, 5rem);

  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(1rem, 1.8vw, 1.75rem);
  --section: clamp(4.5rem, 2.5rem + 8vw, 10.5rem);
  --measure: 64ch;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  caret-color: var(--mark);
  accent-color: var(--mark);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--voice);
  font-size: var(--step-body);
  font-stretch: 100%;
  line-height: 1.55;
  font-kerning: normal;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--mark); color: var(--sheet); }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.12em; }

:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 2px; }
.field :focus-visible { outline-color: var(--mark-on-ink); }

.skip {
  position: absolute; left: var(--margin); top: -10rem;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 10; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { padding-inline: var(--margin); max-width: 96rem; margin-inline: auto; }

/* ---------- headings ---------- */
h1, h2 {
  font-family: var(--voice);
  font-stretch: 86%;
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-wrap: balance;
  hyphens: none;
}
h1 { font-size: var(--step-display); max-width: 16ch; margin-left: -0.04em; }
h2 { font-size: var(--step-head); max-width: 14ch; }
@media (max-width: 40rem) { h1, h2, .weighting-figure { line-height: 1.08; } }
h3 {
  font-size: var(--step-body);
  font-weight: 640;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.38; max-width: 30ch; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font: inherit; font-weight: 600; font-size: var(--step-body); line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 0;
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #0F1620; border-color: #0F1620; }
}
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.6; cursor: progress; }
.btn-light { color: var(--ink); background: var(--paper); border-color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: var(--sheet); border-color: var(--sheet); }
}
.btn-small { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: var(--step-small); }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; gap: var(--gutter);
  padding-block: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-right: auto; }
.brand svg { height: 2.1rem; width: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; }
.nav a { text-decoration: none; font-size: var(--step-small); font-weight: 520; padding-block: 0.6rem; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 52rem) { .nav { display: none; } }

/* ---------- hero: the marked answer ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: var(--section);
}
.hero-copy { grid-column: 1 / span 6; position: sticky; top: 2rem; }
.hero-copy .lead { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(2rem, 3vw, 2.75rem); }
.hero-actions a:not(.btn) { font-weight: 560; }
.hero-note { margin-top: 1.25rem; font-size: var(--step-small); color: var(--muted); }
.sheet { grid-column: 7 / span 6; }

@media (max-width: 68rem) {
  .hero-copy { grid-column: 1 / -1; position: static; }
  .sheet { grid-column: 1 / -1; }
}

/* the sheet itself */
.sheet {
  background: var(--sheet);
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 2vw, 1.75rem);
}
.sheet-intro { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 1.25rem; }
.form input[type="file"] { background: transparent; border: 2px dashed rgb(237 239 234 / 0.4); color: var(--paper); padding: 0.9rem; font-size: var(--step-small); cursor: pointer; }
.form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 0.9rem; padding: 0.5rem 0.9rem; border: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.sheet-question {
  font-family: var(--document);
  font-size: var(--step-body);
  line-height: 1.5;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.sheet-question .q-num { font-weight: 600; }
.sheet-question .q-terms { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); font-variant-numeric: lining-nums; }

.sheet-toggle {
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-block: 1.25rem 1.5rem;
  background: var(--surface);
  padding: 0.25rem;
}
.sheet-toggle button {
  font: inherit; font-size: var(--step-small); font-weight: 600;
  min-height: 2.75rem; padding: 0.45rem 1rem;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; touch-action: manipulation;
  transition: background-color 160ms ease, color 160ms ease;
}
.sheet-toggle button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(28 38 51 / 0.12); }
@media (hover: hover) and (pointer: fine) {
  .sheet-toggle button[aria-pressed="false"]:hover { color: var(--ink); }
}

.answer-label { font-size: var(--step-small); font-weight: 600; margin-bottom: 0.75rem; }
.js .answer-label { display: none; }
.js .answer[data-active="false"] { display: none; }
.answer + .answer { margin-top: 2rem; }
.js .answer + .answer { margin-top: 0; }

.answer-rows { list-style: none; display: grid; gap: 1rem; }
.answer-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 13.5rem);
  column-gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
.answer-text {
  font-family: var(--document);
  font-size: var(--step-body);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
}
.answer-text mark {
  background: none; color: inherit;
  text-decoration: underline wavy var(--mark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-skip-ink: none;
}
.note {
  display: flex; gap: 0.5rem; align-items: flex-start;
  color: var(--mark);
  font-size: var(--step-small);
  font-weight: 520;
  line-height: 1.4;
  padding-top: 0.2rem;
}
.note svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.08rem; }
.note svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 40rem) {
  .answer-rows { gap: 1.25rem; }
  .answer-rows li { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .note { padding-top: 0; }
}

.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.score { position: relative; width: 5.5rem; height: 5.5rem; display: grid; place-items: center; color: var(--mark); }
.score svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.score svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.score-figure { font-weight: 640; font-stretch: 86%; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.score-figure span { font-size: 1.15rem; font-weight: 520; }
.verdict-text { color: var(--mark); font-size: var(--step-small); font-weight: 520; line-height: 1.45; max-width: 40ch; }
.verdict-text strong { display: block; font-size: var(--step-body); font-weight: 640; margin-bottom: 0.15rem; }

.sheet-caption {
  max-width: 68ch;
  margin-top: 1.5rem;
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
}

/* the one authored moment: the marker's pen goes round the score */
@media (prefers-reduced-motion: no-preference) {
  .js .score svg path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 700ms var(--ease-expo) 120ms; }
  .js .answer.is-marking .score svg path { stroke-dashoffset: 1; transition: none; }
  .js .answer .note, .js .answer .answer-text mark { transition: opacity 360ms ease, text-decoration-color 360ms ease; }
  .js .answer.is-marking .note { opacity: 0; transition: none; }
  .js .answer.is-marking .answer-text mark { text-decoration-color: transparent; transition: none; }
  .js .answer .answer-rows li:nth-child(2) .note { transition-delay: 90ms; }
  .js .answer .answer-rows li:nth-child(3) .note { transition-delay: 180ms; }
  .js .answer .answer-rows li:nth-child(4) .note { transition-delay: 270ms; }
}

/* ---------- the weighting statement (inverted ink band) ---------- */
.field { background: var(--ink); color: var(--paper); }
.weighting { padding-block: var(--section); }
.weighting-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
}
.weighting-figure {
  grid-column: 1 / span 7;
  font-size: var(--step-head);
  font-stretch: 86%;
  font-weight: 520;
  letter-spacing: -0.022em;
  line-height: 1.08;
  max-width: 22ch;
  text-wrap: balance;
}
.weighting-body { grid-column: 8 / span 5; align-self: end; color: var(--muted-on-ink); max-width: 46ch; }
.weighting-body p + p { margin-top: 1rem; }
.weighting-body a { color: var(--paper); }
.weighting-body .src { font-size: var(--step-small); }
@media (max-width: 60rem) {
  .weighting-figure, .weighting-body { grid-column: 1 / -1; }
}
.weights { grid-column: 1 / -1; margin-top: clamp(1rem, 3vw, 2.5rem); }
.weights figcaption { font-size: var(--step-small); color: var(--muted-on-ink); padding-bottom: 0.9rem; border-bottom: 1px solid rgb(237 239 234 / 0.25); }
.weights ul { list-style: none; }
.weights li {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr) 4.5ch;
  align-items: center;
  column-gap: var(--gutter);
  padding-block: 0.7rem;
  border-bottom: 1px solid rgb(237 239 234 / 0.12);
  font-size: var(--step-small);
}
.weights a { color: var(--paper); text-decoration-color: rgb(237 239 234 / 0.4); }
.weights a:hover { text-decoration-color: currentColor; }
.weights .bar { position: relative; height: 0.5rem; background: rgb(237 239 234 / 0.12); }
.weights .bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--q) * 1%); background: var(--mark-on-ink); }
.weights .pct { text-align: right; font-weight: 600; color: var(--paper); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 40rem) {
  .weights li { grid-template-columns: minmax(0, 1fr) 4.5ch; row-gap: 0.45rem; }
  .weights .bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- shared section frame: heading in the left third ---------- */
.section { padding-block: var(--section); }
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(2rem, 4vw, 3rem);
}
.split > .split-head { grid-column: 1 / span 4; }
.split > .split-body { grid-column: 5 / span 8; }
.split-head p { margin-top: 1.25rem; color: var(--muted); max-width: 34ch; }
@media (max-width: 60rem) {
  .split > .split-head, .split > .split-body { grid-column: 1 / -1; }
}

/* ---------- process: a real sequence ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; max-width: 46rem; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  font-weight: 640; font-stretch: 86%;
  font-size: var(--step-lead); line-height: 1.2;
  color: var(--mark);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.steps p { margin-top: 0.5rem; color: var(--muted); max-width: 52ch; }
.steps-foot { margin-top: 1.5rem; font-size: var(--step-small); color: var(--muted); max-width: 52ch; }

/* ---------- fees: a schedule, like a tender pricing schedule ---------- */
.fees { background: var(--surface); }
.fees-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; align-items: end; }
.fees-head h2 { grid-column: 1 / span 6; }
.fees-head p { grid-column: 8 / span 5; color: var(--muted); max-width: 44ch; }
@media (max-width: 60rem) { .fees-head h2, .fees-head p { grid-column: 1 / -1; } }

.schedule { width: 100%; max-width: 76rem; border-collapse: collapse; margin-top: clamp(2.5rem, 5vw, 4rem); font-variant-numeric: lining-nums tabular-nums; }
.schedule caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.schedule thead th { font-size: var(--step-small); font-weight: 600; color: var(--muted); padding-block: 0 0.75rem; border-bottom: 2px solid var(--ink); }
.schedule tbody th { width: 24%; padding-right: var(--gutter); font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; }
.schedule td.what { padding-right: var(--gutter); color: var(--ink); max-width: 52ch; }
.schedule td.what span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: var(--step-small); }
.schedule .price { width: 18%; text-align: right; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.schedule thead .price { font-size: var(--step-small); font-weight: 600; }
.schedule .price small { display: block; font-size: var(--step-small); font-weight: 500; color: var(--muted); white-space: normal; letter-spacing: 0; margin-top: 0.35rem; }
.schedule tr.founding th, .schedule tr.founding .price { color: var(--mark); }

@media (max-width: 44rem) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
  .schedule tbody tr:first-child { border-top: 2px solid var(--ink); }
  .schedule th, .schedule td { border: 0; padding: 0; width: auto; }
  .schedule tbody th { grid-column: 1; width: auto; }
  .schedule .price { grid-column: 2; grid-row: 1; width: auto; }
  .schedule td.what { grid-column: 1 / -1; margin-top: 0.5rem; }
}

.terms { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem var(--gutter); margin-top: 2rem; font-size: var(--step-small); color: var(--muted); }
.terms strong { color: var(--ink); font-weight: 600; }

/* ---------- about: who you're dealing with ---------- */
.about-body p + p { margin-top: 1.1rem; }
.about-body > p { max-width: var(--measure); }
.about-body > .about-intro { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; }
.rules { list-style: none; display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); max-width: var(--measure); }
.rules li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: 0.75rem; }
.rules svg { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; color: var(--mark); }
.rules svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rules strong { font-weight: 640; }

/* ---------- questions: rows, open on the page ---------- */
.qa { border-top: 2px solid var(--ink); margin-top: clamp(2rem, 4vw, 3rem); }
.qa-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 0.6rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}
.qa-row dt { grid-column: 1 / span 4; font-weight: 620; font-size: var(--step-body); line-height: 1.35; }
.qa-row dd { grid-column: 5 / span 7; color: var(--muted); max-width: var(--measure); }
@media (max-width: 52rem) { .qa-row dt, .qa-row dd { grid-column: 1 / -1; } }

/* ---------- the close: one action, set large ---------- */
.close { padding-block: var(--section) clamp(3rem, 6vw, 5rem); }
.close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; }
.close-copy { grid-column: 1 / span 5; }
.close-copy h2 { font-size: var(--step-display); max-width: 9ch; }
.close-copy p { margin-top: 1.5rem; color: var(--muted-on-ink); max-width: 38ch; }
.close-copy .email { margin-top: 2rem; font-size: var(--step-lead); font-weight: 560; color: var(--paper); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.close-copy .email a { color: var(--paper); }
.close-form { grid-column: 7 / span 6; }
@media (max-width: 60rem) { .close-copy, .close-form { grid-column: 1 / -1; } }

.form { display: grid; gap: 1.25rem; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 36rem) { .form .pair { grid-template-columns: 1fr; } }
.form label { display: block; font-size: var(--step-small); font-weight: 600; margin-bottom: 0.45rem; color: var(--paper); }
.form label span { font-weight: 500; color: var(--muted-on-ink); }
.form input, .form textarea {
  width: 100%;
  font: inherit; font-size: max(1rem, var(--step-body));
  color: var(--ink); background: var(--sheet);
  border: 2px solid var(--sheet); border-radius: 0;
  padding: 0.75rem 0.9rem;
  transition: border-color 160ms ease;
}
.form textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--mark-on-ink); outline-offset: 2px; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #F2A7A0; }
.form .error { margin-top: 0.4rem; font-size: var(--step-small); color: #F7C4BF; }
.form .error:empty { display: none; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-foot p { font-size: var(--step-small); color: var(--muted-on-ink); max-width: 40ch; }
.form-foot a { color: var(--paper); }
.form-status { font-size: var(--step-body); }
.form-status:empty { display: none; }
.form-status.ok { color: var(--mark-on-ink); font-weight: 600; }
.form-status.fail { color: #F7C4BF; }

/* ---------- phone action bar ---------- */
.dock { display: none; }
@media (max-width: 52rem) {
  .js .dock {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--paper);
    box-shadow: 0 -1px 0 rgb(28 38 51 / 0.12), 0 -8px 24px rgb(28 38 51 / 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  .js .dock[data-shown="true"] { transform: none; visibility: visible; transition: transform 280ms var(--ease-out), visibility 0s; }
  .dock .btn { width: 100%; }
}
@media (max-width: 52rem) and (prefers-reduced-motion: reduce) {
  .js .dock, .js .dock[data-shown="true"] { transition: none; }
}

/* ---------- footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 1.5rem;
  padding-block: 2.5rem 3rem;
  border-top: 1px solid rgb(237 239 234 / 0.18);
  font-size: var(--step-small);
  color: var(--muted-on-ink);
}
.site-footer .legal { grid-column: 1 / span 6; max-width: 52ch; }
.site-footer .legal p + p { margin-top: 0.6rem; }
.site-footer .links { grid-column: 7 / span 6; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: flex-end; align-content: start; list-style: none; }
.site-footer a { color: var(--paper); }
@media (max-width: 52rem) {
  .site-footer .legal, .site-footer .links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- small pages (privacy, thanks, 404) ---------- */
.page { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.page h1 { font-size: var(--step-head); max-width: 18ch; }
.page .updated { margin-top: 1rem; color: var(--muted); font-size: var(--step-small); }
.prose { max-width: var(--measure); margin-top: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: var(--step-lead); font-stretch: 92%; letter-spacing: -0.012em; line-height: 1.25; margin-top: 2.75rem; max-width: none; }
.prose p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose table { border-collapse: collapse; margin-top: 1rem; width: 100%; font-size: var(--step-small); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; }

@media print {
  .site-header .btn, .nav, .close-form, .sheet-toggle { display: none !important; }
  .js .answer[data-active="false"] { display: block !important; }
  .field { background: none; color: var(--ink); }
}
