/* Drop Shipping Checker — follows docs/DESIGN-GUIDELINES.md.
   Built for older eyes and hands first (P10): 18px body text, nothing under 16px, dark text,
   big targets, plain sentence-case labels. Layout: a parcel label you fill in (left, sticky on
   desktop); the verdict lands as a customs stamp (right). Light theme only, by owner preference.
   Every colour, space, radius and size is a token here. */
:root {
  /* Colour. Every text colour is at least 7:1 on white. */
  --paper: #ffffff;
  --ink: #111318;
  --ink-2: #353a43;
  --ink-3: #4a505b;
  --line: #dde1e7;
  --line-strong: #b4bac4;
  --line-input: #6b7280;
  --tint: #f3f5f8;
  --accent: #1c3fa8;
  --accent-hover: #17358f;
  --accent-2: #d6392a;
  --accent-soft: #eaf0ff;
  --on-accent: #ffffff;
  --focus: #1c3fa8;
  --bad: #b42318;   --bad-soft: #fdecea;
  --warn: #8a4b00;  --warn-soft: #fff3df;
  --unk: #4b5563;   --unk-soft: #eef0f3;
  --good: #146c3a;  --good-soft: #e5f4ea;
  --shadow: 0 1px 0 rgb(17 19 24 / 0.04), 0 10px 28px -14px rgb(17 19 24 / 0.24);
  --scrim: rgb(17 19 24 / 0.86);

  /* Type. Body 18px; the smallest text anywhere is 16px. */
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-sm: 1rem; --t-md: 1.125rem; --t-lg: 1.25rem; --t-xl: 1.5rem; --t-2xl: 1.875rem; --t-3xl: 2.375rem;
  --condensed: 90%;

  /* Space and shape */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --r-card: 14px; --r-row: 12px; --r-ctl: 10px; --r-sm: 6px; --r-pill: 999px; --r-stamp: 4px;
  --tap: 56px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-md)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* A word longer than its box (huge text on a tiny screen) breaks instead of pushing the page sideways. */
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }
/* One icon rule (guidelines §4.6): 2px line, round caps. */
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.skip { position: absolute; left: -9999px; top: var(--s2); z-index: 50; display: inline-flex; align-items: center; min-height: var(--tap); background: var(--accent); color: var(--on-accent); padding: 0 var(--s4); border-radius: var(--r-ctl); }
.skip:focus { left: var(--gutter-l); }

/* ---------- Top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 20; }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: var(--paper); border-bottom: 1px solid var(--line); }
/* On phones it scrolls away: with large text it wraps, and a sticky bar would cover a quarter of the screen. */
@media (max-width: 599px) { .topbar { position: static; } }
/* Wraps at large text sizes: "How it works" drops under the name instead of running off the screen. */
.topbar__in { max-width: 1180px; margin: 0 auto; padding: var(--s1) var(--gutter-r) var(--s1) var(--gutter-l); display: flex; flex-wrap: wrap; row-gap: 0; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 60px; }
/* The name wraps first; only when even that won't fit (large text) does the link drop to its own row. */
.brand { display: inline-flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; min-height: var(--tap); flex: 1 1 10rem; min-width: 0; }
.brand__mark { width: 32px; height: 32px; }
.bm-frame { fill: none; stroke: var(--ink); stroke-width: 2; }
.bm-bars { stroke: var(--ink); stroke-width: 1.6; }
.bm-lens { fill: var(--paper); stroke: var(--accent-2); stroke-width: 2; }
.bm-handle { stroke: var(--accent-2); stroke-width: 2.2; stroke-linecap: round; }
.brand__name { font: 800 var(--t-lg)/1.1 var(--f-display); font-stretch: var(--condensed); }
.topbar__link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s2); font-weight: 700; text-decoration: none; }
@media (max-width: 359px) { .brand__name { font-size: var(--t-md); } }

/* ---------- Layout ---------- */
.layout {
  max-width: 1180px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: var(--s5) var(--s8);
  display: grid; gap: var(--s7);
}
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); min-width: 0; align-content: start; }
@media (min-width: 720px) and (max-width: 979px) { .layout { max-width: 700px; } }
@media (min-width: 980px) {
  .layout { grid-template-columns: 440px minmax(0, 680px); justify-content: center; gap: var(--s8); padding-block-start: var(--s7); }
}
/* The label card (not its column) sticks, and only when the window is tall enough to hold it. */
@media (min-width: 980px) and (min-height: 900px) {
  .col--form .label-card { position: sticky; top: 80px; }
}

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.hero h1 { overflow-wrap: anywhere; }
.hero h1 { font: 800 var(--t-2xl)/1.08 var(--f-display); font-stretch: var(--condensed); }
.lede { color: var(--ink-2); max-width: 34em; }
@media (min-width: 600px) { .hero h1 { font-size: var(--t-3xl); } }

/* ---------- Label card (the form) ---------- */
.label-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: var(--s7) var(--s4) var(--s5); overflow: hidden;
}
@media (min-width: 400px) { .label-card { padding-inline: var(--s5); } }
.label-card__stripe {
  position: absolute; inset: 0 0 auto 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent-2) 0 10px, var(--paper) 10px 15px, var(--accent) 15px 25px, var(--paper) 25px 30px);
}
.field { display: grid; gap: var(--s2); }
/* Field labels: plain words, sentence case, bold — never small capitals. */
.label { font-weight: 700; font-size: var(--t-lg); line-height: 1.3; color: var(--ink); }
.hint { font-size: var(--t-sm); color: var(--ink-2); margin-top: -4px; overflow-wrap: anywhere; }

/* "Paste link" moves under the box when both don't fit (narrow screens, large text), instead of covering it. */
.link-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.link-row .input-wrap { flex: 1 1 9rem; }
.link-row .paste-btn { flex: 1 0 auto; }
.input-wrap { position: relative; min-width: 0; }
input[type="url"], input[type="text"] {
  width: 100%; min-height: 60px; padding: var(--s3) var(--s4);
  font: 400 var(--t-md)/1.3 var(--f-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line-input); border-radius: var(--r-ctl);
  -webkit-appearance: none; appearance: none;
}
input::placeholder { color: var(--ink-3); }
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.input-wrap input { padding-right: 56px; }
.input-clear {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  width: var(--tap); height: var(--tap); display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-ctl); cursor: pointer; color: var(--ink-2);
}
.input-clear svg, .shot__remove svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.paste-btn { min-height: 60px; padding: 0 var(--s5); }
/* One line under the box: what to do next, or what the phone is about to ask. */
.note { padding: var(--s3) var(--s4); border-radius: var(--r-row); background: var(--good-soft); color: var(--ink); font-weight: 600; }
.note[data-kind="ask"] { background: var(--tint); }
/* Always there for screen readers; with no words it takes no room (the margin cancels the field's gap). */
.note:empty { padding: 0; height: 0; margin-top: calc(var(--s2) * -1); }
/* The phone's own icons (three dots, three lines, Share), drawn so every phone font shows them. */
.glyph { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.28em; fill: currentColor; }
.glyph--line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Step-by-step help, opened by the person: a big, underlined line that says what it is. */
.help summary, .more summary {
  display: flex; align-items: center; gap: var(--s2); min-height: 48px; cursor: pointer; list-style: none;
  color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.help summary::-webkit-details-marker, .more summary::-webkit-details-marker { display: none; }
.help summary::before, .more summary::before {
  content: ""; width: 10px; height: 10px; flex: none; margin: 0 4px 0 2px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg);
  transition: transform 0.15s;
}
.help[open] summary::before, .more[open] summary::before { transform: rotate(45deg); }
.help__body { display: grid; gap: var(--s2); padding: var(--s4); margin-top: var(--s1); border-radius: var(--r-row); background: var(--tint); }
.help__body ol, .help__body ul { padding-left: 1.4em; display: grid; gap: var(--s1); margin-bottom: var(--s2); }
.help__body p strong { font-size: var(--t-md); }
.more { display: grid; gap: var(--s3); }
.more[open] { gap: var(--s3); }
.more .field { margin-top: var(--s3); }

.or { display: flex; align-items: center; gap: var(--s3); color: var(--ink-2); font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 0; border-top: 2px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.shot-add {
  grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: var(--s3); text-align: center;
  min-height: 64px; padding: var(--s3) var(--s4); cursor: pointer;
  border: 2px solid var(--accent); border-radius: var(--r-ctl); background: var(--paper); color: var(--accent);
}
.shot-add:hover, .shots.is-dragging .shot-add { background: var(--accent-soft); }
.shot-add svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shot-add__title { font-weight: 700; font-size: var(--t-lg); color: var(--accent); }
.shot-add__hint { font-size: var(--t-sm); color: var(--ink-2); }
#shot-input:focus-visible + .shot-add { outline: 3px solid var(--focus); outline-offset: 3px; }
.shots.has-shots .shot-add { grid-column: auto; aspect-ratio: 3 / 4; min-height: 0; padding: var(--s3); flex-direction: column; }
.shots.has-shots .shot-add__hint { display: none; }
.shots.has-shots .shot-add__title { font-size: var(--t-md); line-height: 1.25; }
.shots.is-full .shot-add { display: none; }
.shot { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--s2); }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--tint); }
.shot.is-busy img { opacity: 0.4; }
.shot__remove {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: 48px; padding: 0 var(--s3);
  border: 2px solid var(--line-input); border-radius: var(--r-ctl); background: var(--paper); color: var(--ink); font-weight: 700; cursor: pointer;
}

.form-error { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-row); background: var(--warn-soft); color: var(--ink); font-weight: 600; }
.form-error svg { width: 24px; height: 24px; color: var(--warn); margin-top: 1px; }
.fineprint { font-size: var(--t-sm); color: var(--ink-2); }
.form-foot { text-align: center; }
.owner-line { margin-top: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: var(--s2) var(--s5); border-radius: var(--r-ctl); min-width: 0; overflow-wrap: anywhere;
  font: 700 var(--t-lg)/1.15 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  border: 2px solid transparent; transition: background-color 0.15s;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { width: 100%; min-height: 64px; font-size: var(--t-xl); background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--paper); color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-soft); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn--quiet { color: var(--ink-2); border-color: var(--line-input); justify-self: start; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 var(--s2); min-height: var(--tap); min-width: var(--tap); }

/* ---------- Progress ---------- */
.progress { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 400px) { .progress { padding-inline: var(--s5); } }
.progress__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); }
.progress__title { font: 800 var(--t-xl)/1.1 var(--f-display); font-stretch: var(--condensed); }
.progress__time { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress__sub { color: var(--ink-2); }
.progress__msg { font-size: var(--t-lg); }
.busy-bar { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--accent-soft); overflow: hidden; }
.busy-bar span { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: var(--r-pill); background: var(--accent); animation: busy 1.6s ease-in-out infinite; }
@keyframes busy { from { left: -35%; } to { left: 100%; } }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s4); }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.step__dot { width: 30px; height: 30px; border-radius: var(--r-pill); border: 2.5px solid var(--line-input); display: grid; place-items: center; color: var(--on-accent); }
.step__dot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.step__text { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.step__label { font-weight: 700; }
.step__detail { font-size: var(--t-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.step[data-status="waiting"] .step__label { color: var(--ink-3); font-weight: 500; }
.step[data-status="running"] .step__dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.step[data-status="done"] .step__dot { background: var(--good); border-color: var(--good); }
.step[data-status="skipped"] .step__dot { border-style: dashed; }
.step[data-status="skipped"] .step__label { color: var(--ink-2); font-weight: 500; }
.step[data-status="failed"] .step__dot { border-color: var(--warn); color: var(--warn); }
@keyframes spin { to { transform: rotate(360deg); } }
.progress__actions { display: flex; gap: var(--s3); flex-wrap: wrap; }

/* ---------- Result ---------- */
.result { display: grid; gap: var(--s5); outline: none; }
/* One column that can't grow past the card: no child can make a card wider than the screen. */
.card { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); background: var(--paper); min-width: 0; }
@media (min-width: 400px) { .card { padding-inline: var(--s5); } }
.card__head { display: grid; gap: var(--s1); }
.card__title { font: 800 var(--t-xl)/1.15 var(--f-display); font-stretch: var(--condensed); }
.card__sub { color: var(--ink-2); overflow-wrap: anywhere; }
.result-meta { font-size: var(--t-lg); overflow-wrap: anywhere; }
.result-meta strong { font-weight: 700; }
.example-flag { display: grid; gap: var(--s1); padding: var(--s4); border-radius: var(--r-row); background: var(--tint); border: 2px dashed var(--line-strong); }
.example-flag strong { font-size: var(--t-lg); }

.verdict { gap: var(--s4); }
.verdict__top { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: var(--s4); align-items: center; }
/* Side by side only when the score has room for its lines; every phone stacks them. */
@media (max-width: 519px) { .verdict__top { grid-template-columns: minmax(0, 1fr); justify-items: start; } .verdict__score { width: 100%; } }
/* The stamp shrinks a little on narrow screens and may wrap, instead of poking out of the card. */
.stamp {
  --c: var(--unk);
  color: var(--c); display: inline-grid; place-items: center; text-align: center; white-space: normal; max-width: calc(100% - 8px);
  border: 3px solid currentColor; outline: 2px solid currentColor; outline-offset: 3px; border-radius: var(--r-stamp);
  padding: var(--s3) var(--s4); margin: var(--s2) var(--s1);
  font: 800 clamp(1rem, 6.4vw, var(--t-xl))/1.05 var(--f-display); font-stretch: var(--condensed); letter-spacing: 0.03em; text-transform: uppercase;
  transform: rotate(-2deg);
}
.stamp--very_likely { --c: var(--bad); }
.stamp--likely { --c: var(--warn); }
.stamp--unclear { --c: var(--unk); }
.stamp--unlikely { --c: var(--good); }
@media (prefers-reduced-motion: no-preference) {
  .stamp.is-landing { animation: land 0.22s cubic-bezier(0.2, 1.5, 0.45, 1) both; }
}
@keyframes land { from { transform: rotate(-2deg) scale(1.25); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
.verdict__score { display: grid; gap: var(--s2); min-width: 0; }
.score-label { font-weight: 700; color: var(--ink-2); }
.score-line { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.score-num { font: 800 var(--t-3xl)/1 var(--f-display); font-stretch: var(--condensed); font-variant-numeric: tabular-nums; }
.score-of { color: var(--ink-2); font-weight: 600; }
.meter { position: relative; height: 12px; display: none; grid-template-columns: 35fr 20fr 25fr 20fr; gap: 2px; }
@media (min-width: 600px) { .meter { display: grid; } }
.meter span { border-radius: 2px; }
.meter span:nth-child(1) { background: var(--good); border-radius: var(--r-pill) 2px 2px var(--r-pill); }
.meter span:nth-child(2) { background: var(--unk); }
.meter span:nth-child(3) { background: var(--warn); }
.meter span:nth-child(4) { background: var(--bad); border-radius: 2px var(--r-pill) var(--r-pill) 2px; }
.meter__marker { position: absolute; top: -6px; width: 5px; height: 24px; margin-left: -2.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.no-score { color: var(--ink-2); }
.score-key { font-size: var(--t-sm); color: var(--ink-2); }
.evidence-strength { font-weight: 700; color: var(--ink-2); }
.verdict__score .evidence-strength { font-size: var(--t-sm); }
.verdict__headline { font: 800 var(--t-xl)/1.2 var(--f-display); font-stretch: var(--condensed); }
.verdict__summary { font-size: var(--t-md); }
.verdict__notes { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px dashed var(--line-strong); color: var(--ink-2); }
.verdict__meaning { color: var(--ink-2); }
.next { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-row); background: var(--accent-soft); }
.next__title { font-size: var(--t-lg); font-weight: 700; }
.next__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.next__btn { justify-content: space-between; text-align: left; background: var(--paper); }
.next__btn.is-example { cursor: default; }
.best-guess { color: var(--ink-2); font-size: var(--t-sm); }
.share-btn { width: 100%; }

/* Folded sections: a card whose title is the tap target, with "Show" / "Hide" said in words. */
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold__titles { display: grid; gap: 2px; min-width: 0; }
.fold__hint { color: var(--ink-2); font-weight: 400; }
.fold__toggle { display: inline-flex; align-items: center; gap: var(--s2); flex: none; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fold__toggle::before { content: "Show"; }
.fold[open] > summary .fold__toggle::before { content: "Hide"; }
.fold__toggle::after {
  content: ""; width: 10px; height: 10px; flex: none; margin: 0 4px 4px 0;
  border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); transition: transform 0.15s;
}
.fold[open] > summary .fold__toggle::after { transform: rotate(-135deg); margin-bottom: -4px; }
.fold:not([open]) { gap: 0; }
/* <details> can't always lay out its own children, so the folded content sits in one grid. */
.fold__body { display: grid; gap: var(--s4); padding-top: var(--s3); }
.fold__body.check-links { gap: var(--s2); }
.fold--inner { display: grid; gap: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line-strong); }
.fold--inner > summary { font-weight: 700; color: var(--accent); }

/* Matches */
.matches { display: grid; gap: var(--s3); }
.matches__label { margin-top: var(--s2); font-weight: 700; color: var(--ink-2); }
.match {
  display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: var(--s3); align-items: start;
  padding: var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-row);
  color: inherit; text-decoration: none;
}
.match:hover { border-color: var(--accent); background: var(--accent-soft); }
.match__img { width: 80px; height: 80px; border-radius: var(--r-sm); object-fit: cover; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.match__img--empty { color: var(--ink-3); }
.match__img--empty svg { width: 30px; height: 30px; }
.match__body { display: grid; gap: var(--s1); min-width: 0; }
.match__site { font-weight: 700; }
.match__title { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.match__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); }
.match__price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.match__saving { font-size: var(--t-sm); color: var(--ink-2); }
.match__go { display: inline-flex; align-items: center; gap: var(--s1); color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.match__go svg, .site__go svg, .check-link svg { width: 20px; height: 20px; }
.strength { font-size: var(--t-sm); font-weight: 700; padding: 2px var(--s2); border-radius: var(--r-pill); background: var(--tint); color: var(--ink-2); }
/* Picture above the words when the words would get too narrow (a small screen, or large text). */
.matches { container-type: inline-size; }
@container (max-width: 13rem) { .match { grid-template-columns: minmax(0, 1fr); } }
.strength--same { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }

/* Price */
.price-list { display: grid; }
/* The amount drops under its label when both don't fit. */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); padding: var(--s3) 0; border-top: 1px dashed var(--line-strong); }
.price-row:first-child { border-top: 0; padding-top: 0; }
.price-row:last-child { padding-bottom: 0; }
.price-row__label { color: var(--ink-2); }
.price-row__value { font-weight: 700; font-size: var(--t-lg); font-variant-numeric: tabular-nums; text-align: right; margin-left: auto; }

/* Evidence */
.ev-group { display: grid; gap: var(--s3); }
.ev-group + .ev-group, .tips-block { padding-top: var(--s4); border-top: 1px dashed var(--line-strong); }
.ev-group__title { font-size: var(--t-lg); font-weight: 700; }
.evidence { list-style: none; padding: 0; display: grid; gap: var(--s4); }
.ev { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.ev__icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; }
.ev__icon svg { width: 20px; height: 20px; }
.ev--red .ev__icon { background: var(--bad-soft); color: var(--bad); }
.ev--green .ev__icon { background: var(--good-soft); color: var(--good); }
.ev--info .ev__icon { background: var(--unk-soft); color: var(--unk); }
.ev__body { display: grid; gap: 2px; min-width: 0; }
.ev__title { font-weight: 700; }
.ev__detail { color: var(--ink-2); }
.ev__source { font-size: var(--t-sm); color: var(--ink-3); }
.tips { padding-left: 1.2em; display: grid; gap: var(--s2); color: var(--ink-2); }
.tips-block { display: grid; gap: var(--s2); }

/* Searches */
.site-group { display: grid; gap: var(--s2); }
.site-group__title { font-size: var(--t-md); font-weight: 700; }
.site-group__for { color: var(--ink-2); overflow-wrap: anywhere; }
.site-group__for b { color: var(--ink); }
.sites { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.site {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3); align-items: center;
  min-height: 60px; padding: var(--s2) var(--s4); border: 2px solid var(--line-strong); border-radius: var(--r-row); color: var(--accent); text-decoration: none;
}
.site:hover { border-color: var(--accent); background: var(--accent-soft); }
.site__name { font-weight: 700; display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.site__go { color: var(--accent); }
.best-bet { font-size: var(--t-sm); font-weight: 700; color: var(--ink); background: var(--accent-soft); padding: 2px var(--s2); border-radius: var(--r-pill); }
.more-btn { justify-self: stretch; }
@media (min-width: 520px) { .more-btn { justify-self: start; } }
.photo-tip { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-row); background: var(--tint); }
.photo-tip ol { padding-left: 1.3em; display: grid; gap: var(--s1); }

/* Store checks */
.check-links { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
@media (min-width: 520px) { .check-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  min-height: 60px; padding: var(--s2) var(--s4); border: 2px solid var(--line-strong); border-radius: var(--r-row);
  font-weight: 700; color: var(--accent); text-decoration: none;
}
.check-link:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Actions, messages */
.actions { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 520px) { .actions { grid-template-columns: 1fr 1fr; } }
.check-no { color: var(--ink-3); }
.error-card { border-color: var(--line-strong); }
.error-card__body { font-size: var(--t-lg); }
.example-cta { display: grid; gap: var(--s3); justify-items: start; padding: var(--s5) var(--s4); border: 2px dashed var(--line-strong); border-radius: var(--r-card); }

/* Recent */
.recent { display: grid; gap: var(--s3); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.section-head h2, .how h2 { font: 800 var(--t-xl)/1.15 var(--f-display); font-stretch: var(--condensed); }
.recent__list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.recent__item {
  width: 100%; text-align: left; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: var(--s3); align-items: center;
  min-height: 64px; padding: var(--s2) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-row); background: var(--paper); cursor: pointer;
}
.recent__item:hover { border-color: var(--accent); }
.recent__dot { width: 14px; height: 14px; border-radius: 3px; background: var(--unk); }
.recent__dot--very_likely { background: var(--bad); }
.recent__dot--likely { background: var(--warn); }
.recent__dot--unlikely { background: var(--good); }
.recent__text { display: grid; min-width: 0; }
.recent__what { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent__verdict { font-size: var(--t-sm); color: var(--ink-2); }
.recent__when { font-size: var(--t-sm); color: var(--ink-3); }
.recent__go { font-size: var(--t-xl); line-height: 1; color: var(--accent); font-weight: 700; }

/* How it works */
.how { display: grid; gap: var(--s3); padding-top: var(--s6); border-top: 1px solid var(--line); }
.how h3 { font-size: var(--t-lg); font-weight: 700; padding-top: var(--s2); }
.how p, .how li { color: var(--ink-2); max-width: 38em; }
.how strong { color: var(--ink); }
.how__steps { padding-left: 1.3em; display: grid; gap: var(--s2); }

/* Footer, toast */
.footer { border-top: 1px solid var(--line); }
.footer__in { max-width: 1180px; margin: 0 auto; padding: var(--s3) var(--gutter-r) calc(var(--s3) + env(safe-area-inset-bottom, 0px)) var(--gutter-l); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; justify-content: space-between; color: var(--ink-2); font-size: var(--t-sm); }
.footer nav { display: flex; gap: var(--s2); flex-wrap: wrap; }
.footer a { color: var(--accent); display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--s2); }
/* Full width between the gutters (not squeezed to half the screen), and only for messages with nowhere better to go. */
.toast {
  position: fixed; left: var(--gutter-l); right: var(--gutter-r); bottom: calc(var(--s6) + env(safe-area-inset-bottom, 0px));
  width: fit-content; max-width: 32rem; margin-inline: auto; transform: translateY(8px);
  background: var(--ink); color: var(--paper); padding: var(--s4) var(--s5); border-radius: var(--r-row); font-weight: 700; font-size: var(--t-md); z-index: 30;
  text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.toast.is-on { opacity: 1; transform: none; }
.toast.has-action.is-on { pointer-events: auto; display: flex; align-items: center; gap: var(--s4); }
.toast__action { min-height: 48px; padding: 0 var(--s4); border: 2px solid var(--paper); border-radius: var(--r-ctl); background: none; color: var(--paper); font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .busy-bar span { animation: none; left: 0; width: 100%; opacity: 0.5; }
  .step[data-status="running"] .step__dot { animation: none; border-top-color: var(--accent); border-style: dotted; }
  * { transition: none !important; }
}

/* Very narrow (a 375px phone at 200% text): less padding, so the words keep their room. */
@media (max-width: 299px) {
  .card, .label-card, .progress { padding-inline: var(--s3); }
  .next { padding: var(--s3); }
  .btn { padding-inline: var(--s3); }
}

/* The check number: the only mono text left, for quoting to us. */
.mono { font-family: var(--f-mono); font-weight: 500; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--gutter-r) var(--s8) var(--gutter-l); display: grid; gap: var(--s3); }
.doc h1 { font: 800 var(--t-2xl)/1.08 var(--f-display); font-stretch: var(--condensed); }
.doc h2 { font: 800 var(--t-xl)/1.2 var(--f-display); font-stretch: var(--condensed); padding-top: var(--s4); }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; display: grid; gap: var(--s2); }
.back-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-weight: 700; text-decoration: none; }
.back-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 600px) { .doc h1 { font-size: var(--t-3xl); } }

/* The code page (gate.html), shown only while the site has an access code. */
.gate { max-width: 560px; margin: 0 auto; padding: var(--s4) var(--gutter-r) var(--s8) var(--gutter-l); }
@media (min-width: 600px) { .gate { padding-top: var(--s8); } }
/* Big, spaced digits: easy to read back before tapping Open. */
input.gate__code { min-height: 64px; font: 500 var(--t-2xl)/1.2 var(--f-mono); letter-spacing: 0.12em; }
.gate__ask { display: grid; gap: var(--s2); color: var(--ink-2); text-align: center; }

/* A supplement: the page's own warning (owner's rule), right under the why. */
.supplement-note { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-row); background: var(--warn-soft); color: var(--ink); }
.supplement-note svg { width: 24px; height: 24px; color: var(--warn); margin-top: 2px; }
