/* Resend Cost — the visual identity is an ITEMISED STATEMENT, not a tool console.
 *
 * The fleet's tool sites are dark consoles with a bright accent. This one is
 * deliberately not, and the reason is the product rather than novelty: the thing
 * being handed to the visitor is a BILL they did not expect. A statement is
 * read, not operated — so the page is paper-coloured, the numbers are the
 * loudest element on it, and the only saturated colour in the whole design is
 * reserved for the figure that is going to surprise them.
 *
 * Three rules the rest of this file implements:
 *
 * 1. NUMBERS ARE TABULAR AND MONOSPACE, ALWAYS. `font-variant-numeric:
 *    tabular-nums` on every figure, so a column of dollar amounts lines up at
 *    the decimal point and a changing number does not shift its neighbours.
 *    A cost teardown whose digits jitter reads as a guess.
 * 2. EVERY FIGURE CARRIES ITS BASIS. `.basis` is not decoration; it is the
 *    exact/estimated label, and it sits ON the number rather than in a footnote
 *    at the bottom of the page. The one design decision this site cannot
 *    compromise on.
 * 3. MOBILE FIRST even though the audience is desktop-leaning. Someone reads
 *    this on a phone because a colleague sent it to them, which — given every
 *    product search phrase measures zero — is how most people will arrive.
 */

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --paper-edge: #f3f1ec;
  --rule: #ddd8cd;
  --rule-strong: #c3bcab;
  --ink: #1d1c19;
  --ink-soft: #56534c;
  --ink-faint: #68645c;
  /* The only saturated colour. Reserved for the surprising figure. */
  --alarm: #b3341a;
  --alarm-wash: #fdf0ec;
  /* Exactness is signalled in green-ink, estimation in a hollow outline. */
  --exact: #1f6a45;
  --exact-wash: #eef6f1;
  --focus: #1a4fb3;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --hold: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #16161a;
    --paper-edge: #1d1d22;
    --rule: #33333c;
    --rule-strong: #4c4c58;
    --ink: #eceae5;
    --ink-soft: #b3afa6;
    --ink-faint: #8b877e;
    --alarm: #ff8a6b;
    --alarm-wash: #2a1b17;
    --exact: #6fd3a2;
    --exact-wash: #16241d;
    --focus: #8fb4ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  /* The paper grain: two hairlines at the page edges rather than a texture
   * image, so the identity costs zero bytes and survives dark mode. */
  border-top: 3px solid var(--ink);
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.35rem, 6vw, 4.9rem); max-width: 13ch; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.hold { max-width: var(--hold); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* --- masthead: a statement header, ruled like a letterhead ---------------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .hold {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding-block: 0.6rem;
}
/* Every masthead control clears 44px of height.
 *
 * The type here is small on purpose — a letterhead, not a toolbar — and small
 * type gives a ~22px hit area, which `site-responsive-check.mjs` failed across
 * all three engines and every viewport with `smallTouchTargets: A.brand, A.-,
 * A.-, A.-`. The fix is padding on the LINK, not a bigger font: the design
 * stays a letterhead and the target becomes a thumb-sized one. */
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand .mark { color: var(--alarm); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin-left: auto; }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.875rem;
  padding-inline: 0.65rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--alarm);
}

/* --- hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(2.25rem, 7vw, 5.5rem) 2rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-copy { max-width: 48rem; }
.lead { font-size: clamp(1.0625rem, 2.3vw, 1.28rem); line-height: 1.55; color: var(--ink-soft); max-width: 50ch; }
.eyebrow, .step, .metric-label {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--alarm);
}
.metric-label { font-size: 0.875rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1.35rem 0 0; }
.trust-row li { border: 1px solid var(--rule-strong); padding: 0.35rem 0.65rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-soft); }

.receipt-graphic {
  position: relative;
  width: min(100%, 24rem);
  justify-self: center;
  padding: 1.35rem 1.35rem 1.6rem;
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink);
  background: var(--paper-edge);
  box-shadow: 0.7rem 0.7rem 0 0 var(--alarm-wash);
  transform: rotate(1.25deg);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.receipt-graphic::after { content: ""; position: absolute; inset: auto 0 -7px; height: 7px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--paper-edge) 6px 12px); }
.receipt-head, .receipt-line, .receipt-total { display: flex; justify-content: space-between; gap: 1rem; }
.receipt-head { color: var(--ink-faint); font-size: 0.68rem; letter-spacing: 0.08em; padding-bottom: 0.75rem; border-bottom: 1px dashed var(--rule-strong); }
.receipt-line { padding-block: 0.65rem; border-bottom: 1px solid var(--rule); }
.receipt-total { align-items: baseline; padding-top: 1rem; text-transform: uppercase; }
.receipt-total strong { color: var(--alarm); font-size: clamp(2.5rem, 9vw, 4.1rem); line-height: 0.9; letter-spacing: -0.07em; }
.receipt-note { color: var(--ink-faint); font-size: 0.7rem; margin-top: 1rem; }

/* --- the drop zone: a slot on a form, not a dashed cloud icon ------------- */

.intake {
  border: 1px solid var(--rule-strong);
  background: var(--paper-edge);
  padding: clamp(1rem, 3.5vw, 1.75rem);
  margin-block: clamp(2rem, 5vw, 4rem) 0;
}
.intake h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.intake-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.75rem 2rem; margin-bottom: 1.25rem; }
.intake-head p:last-child { max-width: 38ch; color: var(--ink-soft); margin: 0; }
.intake-head code { overflow-wrap: anywhere; word-break: break-word; }
.intake-grid { display: grid; gap: 0.75rem; }

.drop {
  border: 2px dashed var(--rule-strong);
  background: var(--paper);
  padding: clamp(1.1rem, 4vw, 1.6rem);
  text-align: left;
  transition: border-color 120ms, background 120ms;
}
.drop.is-over { border-color: var(--alarm); background: var(--alarm-wash); }
.drop h3 { margin-bottom: 0.15rem; }
.drop p { margin: 0 0 1rem; }
.action-number { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--alarm); letter-spacing: 0.08em; margin-bottom: 0.55rem; }
.pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 1.1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
}
.pick:hover { background: transparent; color: var(--ink); }
/* The input FILLS the label rather than being clipped to 1x1 somewhere off in
 * the corner. The clipped version is the usual trick and the responsive matrix
 * was right to fail it: `INPUT.-` was a 1x1 interactive control, and on a touch
 * screen the thing under your thumb should be the control you are aiming at,
 * not a label that forwards the tap to a target the size of a pixel. */
.pick input {
  position: absolute;
  /* -1px, not 0. `inset: 0` positions against the label's PADDING box, so the
   * input came out 42px inside a 44px label — two pixels short, because of the
   * label's 1px border. Measured, not guessed: 119x42 at a 320px viewport. */
  inset: -1px;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}
.quiet { color: var(--ink-faint); font-size: 0.875rem; }

.paste-panel { border: 1px solid var(--rule-strong); background: var(--paper); }
.paste-panel summary, .format-guide summary, .limits summary { cursor: pointer; }
.paste-panel summary { min-height: 100%; padding: clamp(1.1rem, 4vw, 1.6rem); list-style-position: outside; margin-left: 1.25rem; }
.paste-panel summary > span:last-child { display: inline-flex; flex-direction: column; gap: 0.15rem; vertical-align: top; }
.paste-panel summary strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; }
.paste-panel summary small { color: var(--ink-faint); font-size: 0.85rem; }
.paste-panel .action-number { display: inline-block; margin-right: 0.65rem; }
.paste-body { padding: 0 1rem 1rem; }
.paste-body label { display: block; color: var(--ink-soft); font-size: 0.875rem; margin-bottom: 0.55rem; }
.paste-body textarea { width: 100%; min-height: 10rem; resize: vertical; border: 1px solid var(--rule-strong); background: var(--paper-edge); color: var(--ink); padding: 0.8rem; font: 0.8125rem/1.5 var(--mono); margin-bottom: 0.75rem; }
.paste-body textarea:focus { border-color: var(--focus); }

.example-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-top: 0.75rem; padding: 0.9rem 1rem; border: 1px solid var(--rule); background: var(--paper); }
.example-callout > div { display: flex; align-items: center; gap: 0.8rem; }
.example-callout .action-number { margin: 0; }
.example-callout p { margin: 0; }
.example-callout p span { color: var(--ink-faint); font-size: 0.875rem; }

.format-guide { margin-top: 0.75rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.format-guide > summary { min-height: 44px; display: flex; align-items: center; font-family: var(--mono); font-size: 0.875rem; color: var(--ink-soft); }
.privacy-line { margin: 0.85rem 0 0; color: var(--ink-faint); font-size: 0.875rem; }

/* The ranked-input list. The whole point of the site's honesty position is that
 * an API log is a BETTER input than an export, so the list is ordered and says
 * why rather than presenting five equal options. */
.formats { list-style: none; margin: 0.35rem 0 0; padding: 0; display: grid; gap: 0; }
.formats li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.875rem;
  padding-block: 0.4rem;
  border-top: 1px solid var(--rule);
}
.formats .rank { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); }

/* --- the basis badge: the most important component on the site ----------- */

.basis {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.basis.is-exact { color: var(--exact); background: var(--exact-wash); }
.basis.is-estimated { color: var(--ink-faint); background: transparent; }

/* --- the headline figure ------------------------------------------------- */

.result-head { display: grid; gap: 0.5rem 1.5rem; align-items: end; padding-top: clamp(2rem, 6vw, 4rem); }
.result-head h2 { margin: 0; max-width: 25ch; }
.result-head .step { margin-bottom: 0.35rem; }
.result-controls { margin: 0; }
.copy-status { grid-column: 1 / -1; min-height: 1.5em; margin: 0; color: var(--exact); font-size: 0.875rem; }
.headline {
  display: grid;
  gap: 1.25rem 2rem;
  border-block: 3px double var(--ink);
  padding-block: clamp(1.35rem, 4vw, 2.5rem);
  margin-block: 1.25rem 2rem;
}
.headline-main { text-align: left; }
.headline .figure {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(4rem, 16vw, 7.5rem);
  line-height: 1;
  color: var(--alarm);
  letter-spacing: -0.03em;
}
.headline .caption { font-size: clamp(0.95rem, 2vw, 1.08rem); color: var(--ink-soft); margin: 0.7rem 0 0; max-width: 52ch; }
.key-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--rule-strong); }
.key-metrics div { padding: 0.85rem; min-width: 0; }
.key-metrics div + div { border-left: 1px solid var(--rule); }
.key-metrics dt { font-family: var(--mono); font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.key-metrics dd { margin: 0.35rem 0 0; font-family: var(--mono); font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.key-metrics .basis { font-size: 0.875rem; }

/* --- the statement: an itemised ledger ----------------------------------- */

.result-grid { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
.statement { margin-block: 1.5rem; }
.statement h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.55rem; margin-bottom: 0; }
.statement .step { margin-bottom: 0.25rem; }
.top-action { margin: 0.75rem 0 0; padding: 0.8rem 0.9rem; background: var(--exact-wash); border-left: 3px solid var(--exact); color: var(--ink-soft); font-size: 0.9rem; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.lines .label { font-size: 0.9375rem; }
.lines .note { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.5; color: var(--ink-faint); margin: 0; }
.lines .amount {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.lines .amount.is-saving { color: var(--exact); }
.lines .amount.is-cost { color: var(--alarm); }
.lines li.is-unavailable .amount { color: var(--ink-faint); font-style: italic; }
.lines li.is-best { margin-inline: -0.75rem; padding-inline: 0.75rem; background: var(--exact-wash); border-left: 3px solid var(--exact); }
.lines .total { font-weight: 700; }
.lines li.total-row { border-bottom: 3px double var(--ink); border-top: 1px solid var(--rule-strong); }

/* --- the curve ----------------------------------------------------------- */

/* SVG text scales with the viewBox, so a chart that FITS a 311px card can render
 * its labels at 4px and the responsive matrix will pass it — that matrix asks
 * about overflow and touch targets and has no opinion about whether text can be
 * read. Labels are therefore HTML positioned around the plot, never <text>
 * inside a scaled viewBox. `site-figure-legibility-check.mjs` enforces it. */
.chart { margin-block: 1.5rem 2.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.section-heading h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0; }
.section-heading .step { margin-bottom: 0.25rem; }
.chart figcaption { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.6rem; }
/* An EXPLICIT aspect ratio, not `height: auto`.
 *
 * With `preserveAspectRatio="none"` and a viewBox, `height: auto` leaves the
 * box for the engine to work out, and WebKit never settled on an answer: the
 * browser lane sat for thirty seconds "waiting for element to be stable" and
 * timed out, while Chromium was perfectly happy. A ratio makes the box
 * deterministic before the chart has any data in it, which also means the
 * result panel reserves its space instead of shoving the statement down the
 * page when the plot paints. */
.plot { display: block; width: 100%; aspect-ratio: 100 / 42; background: var(--paper-edge); border: 1px solid var(--rule); }
.plot .grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .series-area { fill: var(--alarm-wash); stroke: none; }
.plot .series-cumulative { fill: none; stroke: var(--alarm); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plot .series-percall { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.plot .turn-marker { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; padding: 0; margin: 0.6rem 0 0; font-size: 0.8125rem; }
.legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend .swatch { width: 1.5rem; height: 0; border-top: 3px solid var(--ink-soft); }
.legend .swatch.cumulative { border-top-color: var(--alarm); }
.legend .swatch.percall { border-top-style: dashed; }

/* --- states -------------------------------------------------------------- */

.working, .failure { border: 1px solid var(--rule-strong); padding: 1rem; margin-block: 1.25rem; background: var(--paper-edge); }
.failure { border-color: var(--alarm); background: var(--alarm-wash); }
.working p, .failure p { margin: 0; }
.progress { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.controls { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.btn {
  min-height: 44px;
  padding-inline: 1.1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.is-primary { border-color: var(--alarm); background: var(--alarm); color: #fff; }
.btn.is-primary:hover { background: transparent; color: var(--alarm); }
.bottom-controls { justify-content: flex-end; padding-bottom: clamp(2rem, 5vw, 4rem); }

/* --- prose bands --------------------------------------------------------- */

.band { border-top: 1px solid var(--rule); padding-block: clamp(1.75rem, 5vw, 2.75rem); }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4em; }
.prose code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9375em; }

table { width: 100%; border-collapse: collapse; margin-block: 1.25rem; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--rule); }
th { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
td.n, th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll-x { overflow-x: auto; }

/* --- forensic labs ------------------------------------------------------- */

.lab-hero h1 { max-width: 15ch; }
.lab-workspace { padding-bottom: clamp(2rem, 5vw, 4rem); }
.lab-two-column { display: grid; gap: 1rem; align-items: stretch; }
.manual-cache { display: grid; gap: 0.8rem; border: 1px solid var(--rule-strong); background: var(--paper); padding: clamp(1rem, 3vw, 1.4rem); }
.manual-cache label { display: grid; gap: 0.3rem; color: var(--ink-soft); font-size: 0.875rem; }
.manual-cache input, .manual-cache select {
  width: 100%; min-height: 44px; border: 1px solid var(--rule-strong); background: var(--paper-edge); color: var(--ink);
  padding: 0.55rem 0.7rem; font: 0.9375rem/1.4 var(--mono); font-variant-numeric: tabular-nums;
}
.manual-cache select { -webkit-appearance: none; appearance: none; height: 44px; }
.manual-verdict { display: grid; gap: 0.2rem; padding: 0.75rem; border-left: 3px solid var(--exact); background: var(--exact-wash); }
.manual-verdict strong { font: 700 1rem/1.4 var(--mono); color: var(--exact); }
.manual-verdict span { color: var(--ink-soft); font-size: 0.8125rem; }
.lab-result { padding-block: 0 clamp(2rem, 5vw, 4rem); }
.forensic-cards { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1.25rem 0; border: 3px double var(--ink); }
.forensic-cards > div { padding: clamp(1rem, 3vw, 1.4rem); border-bottom: 1px solid var(--rule); }
.forensic-cards > div:last-child { border-bottom: 0; }
.forensic-cards dt { font: 700 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.forensic-cards dd { margin: 0.45rem 0 0; font: 700 clamp(1.35rem, 4vw, 2rem)/1.1 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.forensic-cards p { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.5; }
.forensic-cards .is-alarm dd { color: var(--alarm); }
.forensic-cards .is-suspected { background: repeating-linear-gradient(135deg, transparent 0 12px, var(--paper-edge) 12px 13px); }
.agent-receipt .receipt-total strong { letter-spacing: 0; }

/* The staleness banner. A price file whose age is invisible is the failure mode
 * that ends a developer site's credibility. */
.staleness {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule-strong);
  padding: 0.35rem 0 0.35rem 0.75rem;
  margin-block: 1.25rem;
}

.limits { border: 1px solid var(--rule-strong); margin-block: 1.5rem; }
.limits summary { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 1rem; font-family: var(--mono); font-size: 0.875rem; }
.limits summary span:last-child { color: var(--ink-faint); font-size: 0.8125rem; text-align: right; }
.limits ul { margin: 0; padding: 0.25rem 2rem 1rem 2.5rem; border-top: 1px solid var(--rule); }
.limits li { margin-bottom: 0.5em; }

/* --- footer -------------------------------------------------------------- */

.footer { border-top: 3px double var(--ink); padding-block: 1.5rem 2.5rem; font-size: 0.875rem; color: var(--ink-soft); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-bottom: 0.75rem; }
/* Height AND width. The matrix measures both, and "About" and "Terms" are
 * short enough words to make a 38px-wide target — comfortably tall and too
 * narrow to hit, which is the failure mode a height-only rule leaves behind. */
.footer a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.site-header nav a { min-width: 44px; justify-content: center; }

@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr); }
  .intake-grid { grid-template-columns: 1fr 1fr; }
  .result-head { grid-template-columns: 1fr auto; }
  .headline { grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr); align-items: center; }
  .key-metrics { grid-template-columns: 1fr; }
  .key-metrics div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .result-grid { grid-template-columns: minmax(17rem, 0.75fr) minmax(0, 1.25fr); }
  .lab-two-column { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr); }
  .forensic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forensic-cards > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .forensic-cards > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 47.99rem) {
  .site-header .hold { display: block; }
  .site-header nav { margin-left: -0.35rem; flex-wrap: wrap; padding-bottom: 0.15rem; }
  .receipt-graphic { justify-self: start; }
  .example-callout .btn { width: 100%; }
  .result-controls, .result-controls .btn, .bottom-controls, .bottom-controls .btn { width: 100%; }
  .headline .figure { font-size: clamp(4rem, 24vw, 6rem); }
  .key-metrics { grid-template-columns: 1fr; }
  .key-metrics div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .chart .plot { aspect-ratio: 5 / 3; }
  .limits summary { align-items: flex-start; }
  .lines li { gap: 0.35rem 0.75rem; }
  .lines .label { max-width: 19ch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
