/* ============================================================
   SEAM CHECK — public page styles (Terakota design system).
   Earthy tokens are lifted from design/app/foundations.css
   (the authoritative palette). Self-contained + first-party:
   the three OFL families are served same-origin from
   /assets/fonts/ (font-src 'self') — no CDN, zero egress.

   Colour roles are load-bearing and MUST NOT be swapped:
     --primary  #C2613A  terracotta  = ACTION (buttons, links, focus)
     --audit    #8E2F45  burgundy    = PROOF  (receipt chrome, chain
                                               head, verify accents,
                                               evidence-bundle action)
   ============================================================ */

/* ---------- self-hosted OFL fonts (see assets/fonts/*-LICENSE|OFL) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/SourceSerif4Variable-Roman.otf.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

/* ---------- tokens (light) ---------- */
:root {
  --ink: #221C17; --ink-2: #4B4138; --muted: #8B8078; --subtle: #B6ABA0;

  --body: #F5F2EE; --surface: #FFFFFF; --paper: #FFFFFF;
  --paper-2: #F5F1EB; --paper-3: #FAF8F4;
  --rule: #ECE5DC; --rule-2: #DCD3C8; --rule-cool: #EAE3D9;

  --primary: #C2613A; --primary-2: #9C4827;
  --primary-bg: #F2DACC; --primary-soft: #F9EBE1;
  --info: #3E7E8A; --info-soft: #ECF3F4;

  --audit: #8E2F45; --audit-2: #6B1F33; --audit-bg: #EFD4DA; --audit-soft: #F7E6EA;

  --green: #5E8A52; --green-2: #436430; --green-bg: #DFEBD6; --green-soft: #EFF4E9;
  --amber: #CE8420; --amber-2: #A86A12; --amber-bg: #F5E2BE; --amber-ink: #885310; --amber-soft: #FAF0D9;
  --red: #B5402F; --red-2: #C85847; --red-bg: #F2D7CD; --red-ink: #832619; --red-soft: #F8E7E0;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --console-bg: linear-gradient(170deg, #2E1B12 0%, #241510 55%, #160B07 100%);
  /* proof accent lifted for the dark console (burgundy reads too dark on kiln-dark) */
  --console-proof: #D97A93;
  --console-proof-bg: rgba(190, 74, 100, 0.22);
  --console-ok: #6FD79A;
  --console-ok-bg: rgba(67, 198, 126, 0.16);
  --console-txt: #ECD8CE; --console-dim: #A98C7B; --console-sub: #7E838D;

  --shadow-card: 0 1px 0 rgba(42,24,16,0.03);
  --shadow-float: 0 30px 60px -50px rgba(42,24,16,0.5);
}

/* ---------- tokens (dark) — the design system is theme-aware ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EBE3; --ink-2: #D2C6B8; --muted: #9C8F82; --subtle: #6E6358;

    --body: #17110D; --surface: #211812; --paper: #221A14;
    --paper-2: #2B201A; --paper-3: #1C1510;
    --rule: #342820; --rule-2: #45362B; --rule-cool: #31261E;

    --primary: #D6764D; --primary-2: #E79268;
    --primary-bg: color-mix(in srgb, var(--primary) 26%, var(--paper));
    --primary-soft: color-mix(in srgb, var(--primary) 14%, var(--paper));
    --info: #5BA3AF; --info-soft: color-mix(in srgb, var(--info) 13%, var(--paper));

    --audit: #C95871; --audit-2: #E08AA0;
    --audit-bg: color-mix(in srgb, var(--audit) 24%, var(--paper));
    --audit-soft: color-mix(in srgb, var(--audit) 13%, var(--paper));

    --green: #7BA869; --green-2: #A6CD92; --green-bg: color-mix(in srgb, var(--green) 24%, var(--paper)); --green-soft: color-mix(in srgb, var(--green) 13%, var(--paper));
    --amber: #DDA245; --amber-2: #ECBA68; --amber-ink: #ECBA68; --amber-bg: color-mix(in srgb, var(--amber) 24%, var(--paper)); --amber-soft: color-mix(in srgb, var(--amber) 13%, var(--paper));
    --red: #D2604E; --red-2: #E27C6A; --red-ink: #EC9586; --red-bg: color-mix(in srgb, var(--red) 24%, var(--paper)); --red-soft: color-mix(in srgb, var(--red) 13%, var(--paper));

    --shadow-float: 0 30px 60px -50px rgba(0,0,0,0.7);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans); color: var(--ink);
  font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  background: var(--body);
  background-image:
    radial-gradient(70% 50% at 100% 0%, rgba(194,97,58,0.07) 0%, transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(142,47,69,0.05) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.012em; }
.mono  { font-family: var(--font-mono); }
.ital  { font-style: italic; font-weight: 400; color: var(--primary); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* visible focus everywhere — terracotta action ring */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- shell ---------- */
.ob { min-height: 100vh; display: flex; flex-direction: column; }
.ob-top {
  height: 60px; flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 0 26px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.ob-brand { display: inline-flex; align-items: center; gap: 11px; }
.ob-brand .glyph { width: 24px; height: 24px; display: block; }
.ob-brand .glyph .trunk, .ob-brand .glyph .branch { stroke: var(--primary); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.ob-brand .glyph .node { fill: var(--primary); }
.ob-brand .wm { font-family: var(--font-serif); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "opsz" 24; }
.ob-brand .wm .sub { color: var(--muted); font-weight: 500; }

.ob-stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 34px 26px 72px; }
.ob-card { width: 100%; max-width: 760px; }

.ob-head { text-align: center; margin-bottom: 26px; }
.ob-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px; white-space: nowrap;
}
.ob-eyebrow .ico { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ob-head h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: 33px; line-height: 1.1;
  letter-spacing: -0.022em; margin: 0 0 10px; font-variation-settings: "opsz" 40; text-wrap: balance;
}
.ob-head h1 .ital { font-style: italic; color: var(--primary); }
.ob-lede { font-size: 15px; color: var(--ink-2); line-height: 1.6; max-width: 58ch; margin: 0 auto; }
.ob-lede b { color: var(--ink); font-weight: 600; }
.ob-lede .prov { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ---------- stage panel + progressive quieting ---------- */
.stage {
  background: var(--paper); border: 1px solid var(--rule-cool); border-radius: 18px;
  box-shadow: var(--shadow-card), var(--shadow-float); overflow: hidden;
  margin-top: 18px; transition: opacity 240ms ease;
}
.stage[hidden] { display: none; }
.stage-pad { padding: 24px 26px; }
/* a completed earlier stage stays visible but quiets down */
.stage.is-quiet { opacity: 0.5; }
.stage.is-quiet:hover, .stage.is-quiet:focus-within { opacity: 1; }

.stage-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.stage-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.stage-head h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 20px; letter-spacing: -0.01em;
  margin: 0; color: var(--ink); font-variation-settings: "opsz" 26;
}
.stage-sub { font-size: 13px; color: var(--muted); margin: -8px 0 18px; line-height: 1.55; }

/* ---------- stage 1: upload ---------- */
.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.src-card {
  background: var(--paper-3); border: 1px solid var(--rule-cool); border-radius: 15px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.src-card .src-title { display: flex; align-items: center; gap: 9px; }
.src-card .src-ic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}
.src-card.qbo .src-ic { background: var(--info-soft); color: var(--info); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 22%, transparent); }
.src-card .src-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.src-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 15.5px; margin: 0; color: var(--ink); font-variation-settings: "opsz" 20; }
.src-card .src-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* file input styled as a drop target */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; padding: 16px 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed var(--rule-2); background: var(--paper);
  transition: border-color 140ms, background 140ms;
}
.drop:hover { border-color: var(--primary); background: var(--primary-soft); }
.drop.has-file { border-style: solid; border-color: color-mix(in srgb, var(--green) 45%, var(--rule-2)); background: var(--green-soft); }
/* Progressive enhancement (html.js is stamped by app.js): only with JS running
   does the input become an invisible overlay — the decorated filename text is
   JS-updated, so with JavaScript off the NATIVE control must stay visible or
   the supported no-JS form gives no feedback about the chosen files. */
.drop input[type=file] { font-size: 12px; color: var(--ink-2); max-width: 100%; }
.js .drop input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
/* the decorative choose/drop affordances are meaningless without the JS that
   drives them — no-JS shows the native control alone */
html:not(.js) .drop .drop-ic,
html:not(.js) .drop .drop-main,
html:not(.js) .drop .drop-name { display: none; }
html:not(.js) .drop { cursor: auto; border-style: solid; }
/* keyboard focus lands on the input; mirror the ring on the visible target */
.drop:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.drop .drop-ic { width: 20px; height: 20px; color: var(--muted); stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop.has-file .drop-ic { color: var(--green-2); }
.drop .drop-main { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.drop .drop-name { font-family: var(--font-mono); font-size: 11px; color: var(--muted); word-break: break-all; }
.drop.has-file .drop-name { color: var(--green-2); }

.run-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.run-note { font-size: 12px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; border-radius: 10px;
  padding: 10px 16px; cursor: pointer; border: 1px solid var(--rule-cool); background: var(--paper);
  color: var(--ink); box-shadow: 0 1px 0 rgba(42,24,16,0.04);
  display: inline-flex; align-items: center; gap: 8px; transition: background 120ms, transform 120ms; white-space: nowrap;
}
.btn:hover { background: var(--paper-3); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.lg { padding: 12px 20px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
/* ACTION — terracotta */
.btn.primary {
  background: linear-gradient(180deg, #C2613A, #9C4827); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 18px -8px rgba(194,97,58,0.55);
}
.btn.primary:hover { background: linear-gradient(180deg, #B0552F, #7A371D); }
/* PROOF — burgundy (evidence bundle) */
.btn.audit {
  background: linear-gradient(180deg, #A8475F, #6B1F33); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 18px -8px rgba(142,47,69,0.5);
}
.btn.audit:hover { background: linear-gradient(180deg, #8E2F45, #561829); }

/* ---------- status (aria-live) ---------- */
.status { font-size: 13px; color: var(--ink-2); margin-top: 16px; min-height: 1px; }
.status:empty { margin-top: 0; }
.status.is-error { color: var(--red-ink); font-weight: 600; }
.status.is-working { color: var(--primary-2); }
.status .spin {
  display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 7px;
  border-radius: 50%; border: 2px solid var(--rule-2); border-top-color: var(--primary);
  animation: sc-spin 0.7s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

/* ---------- stage 2: pairing ---------- */
.pair-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin: 0 0 12px; letter-spacing: 0.02em; }
.pair-list { display: flex; flex-direction: column; gap: 6px; }
.pair-row {
  display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 11px; background: var(--paper-3); border: 1px solid var(--rule-cool);
}
.pair-row .acct { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.pair-row .acct.b { text-align: right; }
.pair-row .arrow { color: var(--subtle); font-size: 14px; }
.basis-chip {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
  white-space: nowrap;
}
.basis-chip.confirmed { background: var(--green-bg); color: var(--green-2); box-shadow: inset 0 0 0 1px rgba(94,138,82,0.3); }

.amb-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.amb-block h3, .unpaired-block h3 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-ink); margin: 0 0 10px;
}
.amb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.amb-row .amb-primary { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.amb-row select {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink);
  padding: 7px 10px; border-radius: 9px; background: var(--paper); border: 1px solid var(--rule-2);
  cursor: pointer;
}
.amb-row select:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }

.unpaired-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.unpaired-block h3 { color: var(--muted); }
.unpaired-note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0 0 8px; }
.unpaired-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.unpaired-list li {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  padding: 3px 9px; border-radius: 7px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule);
}
.unpaired-list li .side { color: var(--subtle); }

/* ---------- stage 3: running console (.vlog proof sequence) ---------- */
.vlog {
  background: var(--console-bg); border-radius: 14px; padding: 8px 4px;
  border: 1px solid rgba(255,255,255,0.07); position: relative; overflow: hidden;
}
.vlog::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 70% at 92% 0%, #000 8%, transparent 70%);
  mask-image: radial-gradient(80% 70% at 92% 0%, #000 8%, transparent 70%);
}
.vline {
  position: relative; z-index: 1; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px;
  align-items: center; padding: 11px 16px; font-family: var(--font-mono); font-size: 12px;
  color: var(--console-txt); border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0; transform: translateY(6px); transition: opacity 280ms, transform 280ms;
}
.vline:last-child { border-bottom: 0; }
.vline.in { opacity: 1; transform: none; }
.vline .vk {
  width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #B7ADA2; flex-shrink: 0;
}
.vline .vk svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vline .vk.spin { border: 2px solid rgba(255,255,255,0.14); border-top-color: var(--primary-2); background: none; animation: sc-spin 0.7s linear infinite; }
.vline .vk.ok { background: var(--console-ok-bg); color: var(--console-ok); }
/* proof steps (receipt, verify) carry the burgundy proof accent */
.vline.proof .vk.ok { background: var(--console-proof-bg); color: var(--console-proof); }
.vline .vmeta { color: var(--console-sub); justify-self: end; font-size: 10.5px; }
.vline.proof .vmeta { color: var(--console-proof); }
.vline b { color: #F2E4DA; font-weight: 600; }
.vline .head { color: var(--console-proof); font-weight: 600; }

/* ---------- stage 4: result ---------- */
.result-outcome { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.result-outcome h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 23px; letter-spacing: -0.015em;
  margin: 0; color: var(--ink); font-variation-settings: "opsz" 30;
}
.outcome-pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid;
}
.outcome-pill.clean { background: var(--green-bg); border-color: rgba(94,138,82,0.35); color: var(--green-2); }
.outcome-pill.drift { background: var(--audit-bg); border-color: color-mix(in srgb, var(--audit) 35%, transparent); color: var(--audit-2); }
.outcome-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 6px; }
.count {
  background: var(--paper-3); border: 1px solid var(--rule-cool); border-radius: 12px; padding: 12px 14px;
  border-left: 3px solid var(--rule-2);
}
.count .n { font-family: var(--font-serif); font-size: 26px; font-weight: 500; line-height: 1; color: var(--ink); font-variation-settings: "opsz" 30; }
.count .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.count.matched { border-left-color: var(--green); }
.count.oneside { border-left-color: var(--amber); }
.count.drifted { border-left-color: var(--audit); }
.count.drifted .n { color: var(--audit-2); }
.count.unmapped { border-left-color: var(--muted); }

.chainhead { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.chainhead .h { color: var(--audit-2); font-weight: 600; word-break: break-all; }
.result-prov { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }

#report-frame {
  width: 100%; height: 60vh; min-height: 380px; border: 1px solid var(--rule-2);
  border-radius: 12px; margin-top: 18px; background: #fff;
}

.result-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

/* verify-it-yourself — mono console, proof framing */
.verify-block {
  margin-top: 20px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07); background: var(--console-bg);
}
.verify-head {
  display: flex; align-items: center; gap: 9px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.verify-head .vh-ic { width: 16px; height: 16px; color: var(--console-proof); stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verify-head .vh-t { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--console-proof); }
.verify-body { padding: 14px 16px; }
.verify-body .vb-lede { font-size: 12px; color: var(--console-dim); margin: 0 0 12px; line-height: 1.5; }
.verify-body .tok { font-family: var(--font-mono); color: var(--console-txt); }
.verify-cmds { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.verify-cmds .cmd {
  font-family: var(--font-mono); font-size: 12px; color: var(--console-txt);
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: baseline;
}
.verify-cmds .cmd .p { color: var(--console-proof); user-select: none; }
.verify-cmds .cmd .c { white-space: pre-wrap; overflow-wrap: break-word; }
.verify-cmds .cmd .cm { color: var(--console-sub); }

/* disclosure footer — the honest upsell */
.disclosure {
  margin-top: 22px; padding: 18px 20px; border-radius: 14px;
  background: var(--audit-soft); border: 1px solid color-mix(in srgb, var(--audit) 22%, transparent);
}
.disclosure .dh {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--audit-2); margin-bottom: 8px;
}
.disclosure p { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.disclosure p a { color: var(--audit-2); font-weight: 600; }

/* sample: a quiet third entry under the two upload cards — deliberately NOT a
   third equal card (the upload cards stay the heroes). A plain .btn + a note. */
.sample-entry {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  padding-top: 16px; border-top: 1px dashed var(--rule-2); flex-wrap: wrap;
}
.sample-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* no-JS note under the form */
.nojs-note {
  font-size: 12px; color: var(--muted); line-height: 1.5; margin: 16px 0 0;
  padding-top: 14px; border-top: 1px dashed var(--rule-2);
}
.nojs-note .mono { color: var(--ink-2); }

/* SAMPLE chip — sits beside the outcome pill on a sample run (amber, muted,
   mono). The report itself carries the full synthetic-data banner. */
.sample-chip {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink);
  padding: 4px 10px; border-radius: 999px; background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 32%, transparent); white-space: nowrap;
}
.sample-chip[hidden] { display: none; }

.page-foot {
  text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--subtle);
  letter-spacing: 0.04em; margin: 26px 0 0; line-height: 1.7;
}

/* ---------- terms & acceptable-use (GET /terms) ---------- */
.terms h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: 26px; letter-spacing: -0.018em;
  margin: 8px 0 6px; color: var(--ink); font-variation-settings: "opsz" 30;
}
.terms h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 17px; letter-spacing: -0.01em;
  margin: 22px 0 6px; color: var(--ink); font-variation-settings: "opsz" 22;
}
.terms p { font-size: 13.5px; color: var(--ink-2); line-height: 1.62; margin: 0 0 10px; max-width: 66ch; }
.terms .terms-eff { font-size: 12.5px; color: var(--muted); }
.terms .slot {
  font-family: var(--font-mono); font-size: 12px; color: var(--amber-ink);
  background: var(--amber-soft); padding: 1px 6px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--amber) 26%, transparent);
}
.terms-placeholder {
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
}
.terms-placeholder p { font-size: 12.5px; color: var(--amber-ink); margin: 0; max-width: none; }
.terms-kick {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 6px;
}
.terms-back { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- motion / responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .vline { transition: none; }
  .vline .vk.spin, .status .spin { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
  .src-grid { grid-template-columns: 1fr; }
  .counts { grid-template-columns: 1fr 1fr; }
  .pair-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .pair-row .acct.b { grid-column: 1 / -1; text-align: left; }
  .ob-head h1 { font-size: 27px; }
}
