/* Sniff website. A detective's desk at night: quiet ink-blue chrome, one bright thing (the case file and its stamp). */
:root {
  /* desk: neutral ramp tinted toward night ink */
  --desk-0: #0d1426;
  --desk: #121c33;
  --desk-1: #172240;
  --desk-2: #1e2a4d;
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.16);
  --text: #eef0f5;
  --text-2: #a8b3cc;
  --text-3: #8b97b3;

  /* accent: the lamp. Primary action and focus only */
  --lamp: #ffd56b;
  --lamp-press: #f2c552;
  --focus-ring: #ffd56b;

  /* the case file */
  --paper: #efd9a6;
  --paper-2: #e9d39e;
  --ink: #1f2433;
  --ink-2: #544e3e;
  --ink-line: rgba(31, 36, 51, 0.16);
  --ink-wash: rgba(31, 36, 51, 0.07);

  /* verdict inks: on paper (4.7:1 or more) and on the desk */
  --clean: #226440;
  --shady: #7f4f08;
  --rug: #a3271f;
  --clean-desk: #5fd394;
  --shady-desk: #f2b347;
  --rug-desk: #ff6b5e;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-enter: 400ms;

  --r-tag: 6px;
  --r-control: 10px;
  --r-card: 16px;
}

html, body { height: auto; min-height: 100%; overflow: auto; user-select: text; }
html { scroll-padding-block-start: 16px; -webkit-font-smoothing: antialiased; }
body.web {
  margin: 0;
  color: var(--text);
  background: var(--desk);
  font: 400 1rem/1.55 var(--body);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
button { font: inherit; }

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  inset-block-start: 16px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: var(--r-control);
  background: var(--lamp);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { inset-inline-start: 16px; }

/* ---------- Top bar ---------- */
.topbar {
  max-width: 1240px;
  margin: 0 auto;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark { font: 600 1.125rem/1 var(--body); color: var(--text); text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions [hidden] { display: none; }
.ca {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px 0 12px;
  border-radius: var(--r-control);
  border: 1px solid var(--line-strong);
  background: var(--desk-1);
  font-size: 0.875rem;
  min-width: 0;
}
.ca-label { color: var(--text-3); }
.ca-value { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca-copy {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-tag);
  background: var(--desk-2);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.nav-link {
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--r-control);
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.x-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-control);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .ca-copy:hover { background: #26345e; }
  .nav-link:hover { color: var(--text); }
  .x-link:hover { color: var(--text); border-color: var(--text-3); }
}

/* ---------- Hero: copy on the left, the case file on the right ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
  padding: 32px 0 96px;
}
.hero-copy { position: sticky; top: 96px; padding-top: 96px; }
h1 {
  font: 500 clamp(2.75rem, 5.4vw, 4.5rem)/1.02 var(--display);
  margin: 0 0 20px;
  max-width: 11ch;
  text-wrap: balance;
}
.lead { color: var(--text-2); font-size: 1.125rem; line-height: 1.6; margin: 0 0 32px; max-width: 36rem; text-wrap: pretty; }

form { display: flex; gap: 8px; }
input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-control);
  border: 1px solid var(--line-strong);
  background: var(--desk-1);
  color: var(--text);
  font: 400 1rem var(--body);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
input::placeholder { color: var(--text-3); }
input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: transparent; background: var(--desk-2); }
form button {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--lamp);
  color: var(--ink);
  font: 600 1rem var(--body);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
form button:disabled { opacity: 0.7; cursor: progress; }
@media (hover: hover) { form button:not(:disabled):hover { background: #ffdc85; } }
@media (prefers-reduced-motion: no-preference) {
  form button:not(:disabled):active, .case-actions a:active, .case-actions button:active { transform: scale(0.98); }
}

.recent[hidden] { display: none; }
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.recent-label { font-size: 0.8125rem; color: var(--text-3); margin-right: 4px; }
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-tag);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.recent-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.recent-chip.good::before { background: var(--clean-desk); }
.recent-chip.warn::before { background: var(--shady-desk); }
.recent-chip.bad::before { background: var(--rug-desk); }
@media (hover: hover) { .recent-chip:hover { background: var(--desk-1); } }

/* the sniffer leans over the folder: body behind the paper, front paws resting on its edge */
.hero-case { position: relative; padding-top: 112px; }
.sniffer {
  position: absolute;
  top: 16px;
  left: 160px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.web #pet { position: relative; width: 148px; height: 148px; cursor: default; transform: none; order: 0; }
.web #pet > svg:not(.paws) { position: relative; z-index: 0; }
.web .sniffer #pet .iris { transform: translate(1px, 2px); }
.web #pet svg.paws { position: absolute; z-index: 2; left: 42px; top: 86px; width: 64px; height: 20px; pointer-events: none; }
.speech {
  order: 1;
  position: relative;
  margin: 12px 0 0;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--desk-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}
.speech::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--desk-2);
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg);
}
/* the dog stays calm on the website: no breathing or idle wagging, it wags only when happy */
.web #pet.idle .head { animation: none; }
.web #pet:not(.happy) .tail { animation: none; }
.web #pet svg { filter: none; }

/* ---------- The case file (the one bright thing) ---------- */
.case {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  border-radius: 4px var(--r-card) var(--r-card) var(--r-card);
  padding: 32px;
  box-shadow: 0 24px 48px rgba(5, 9, 20, 0.5);
}
.case-tab {
  position: absolute;
  left: 0;
  top: -32px;
  height: 32px;
  max-width: 70%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border-radius: 12px 12px 0 0;
  font: 600 1rem/1 var(--display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-title { font: 500 2.25rem/1.05 var(--display); margin: 0 0 8px; overflow-wrap: anywhere; }
.case-intro { margin: 0 0 12px; max-width: 60ch; }
.checklist { margin: 0; padding-left: 20px; max-width: 62ch; }
.checklist li { margin: 4px 0; }
.checklist li::marker { color: var(--ink-2); }
.example-note { margin: -4px 176px 20px 0; padding: 8px 12px; border-radius: var(--r-control); background: var(--ink-wash); color: var(--ink-2); font-size: 0.875rem; max-width: 60ch; }

.case-head { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding-right: 176px; }
.case-head .case-title { margin: 0; }
.case-avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--ink-wash); outline: 1px solid var(--ink-line); outline-offset: -1px; }

.mint-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding-right: 176px; }
.mint {
  font: 500 0.875rem/1.4 var(--body);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  background: var(--ink-wash);
  padding: 4px 8px;
  border-radius: var(--r-tag);
  overflow-wrap: anywhere;
}
.copy {
  min-height: 32px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.socials a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-tag);
  background: var(--ink-wash);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease);
}
@media (hover: hover) { .socials a:hover { background: rgba(31, 36, 51, 0.13); } }

/* the stamp: a rendered object, so it keeps its heavy face and ink texture */
.stamp {
  --v: var(--ink);
  position: absolute;
  right: 32px;
  top: 24px;
  color: var(--v);
  border: 4px solid var(--v);
  border-radius: 12px;
  padding: 4px 16px 8px;
  text-align: center;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.2 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp-word { display: block; font: 800 3rem/1 var(--display); }
.stamp-score { display: block; font: 800 1.5rem/1 var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.stamp.good { --v: var(--clean); }
.stamp.warn { --v: var(--shady); }
.stamp.bad { --v: var(--rug); }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-in var(--t-enter) var(--ease) both; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(-9deg); }
}

/* evidence */
.evidence { list-style: none; margin: 0 0 20px; padding: 0; }
.evidence li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ink-line);
}
.evidence li:last-child { border-bottom: 0; }
.mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.mark svg { width: 14px; height: 14px; }
.mark.bad { background: var(--rug); }
.mark.warn { background: var(--shady); }
.mark.ok { background: var(--clean); }
.mark.info { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(31, 36, 51, 0.4); }

.notes { margin: -4px 0 20px; padding: 12px 16px; border-radius: var(--r-control); background: var(--ink-wash); }
.notes-title { font: 600 1rem/1 var(--display); margin: 0 0 8px; color: var(--ink-2); }
.notes ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 0.875rem; }
.notes li + li { margin-top: 4px; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px 20px; margin: 0 0 24px; }
.fields div { border-top: 1px solid var(--ink); padding-top: 8px; }
.fields dt { font-size: 0.8125rem; color: var(--ink-2); }
.fields dd { margin: 0; font: 500 1.75rem/1.1 var(--display); font-variant-numeric: tabular-nums; }

.case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.case-actions a, .case-actions .share {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-control);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.case-actions a.primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .case-actions a:hover, .case-actions .share:hover { background: var(--ink-wash); }
  .case-actions a.primary:hover { background: #343b52; }
}

.legend { margin-top: 20px; font-size: 0.875rem; color: var(--ink-2); }
.legend summary { cursor: pointer; font-weight: 500; color: var(--ink); width: fit-content; padding: 4px 0; }
.legend p { margin: 8px 0 0; max-width: 62ch; }

/* staged investigation */
.progress { height: 4px; border-radius: 2px; background: var(--ink-line); overflow: hidden; margin: 16px 0 8px; max-width: 520px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--t-enter) var(--ease); }
.steps { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 4px; }
.steps li {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 32px;
  color: rgba(31, 36, 51, 0.45);
}
.step-label { white-space: nowrap; }
.step-detail { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); opacity: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 300ms var(--ease); }
.step-mark { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; color: inherit; }
.step-mark svg { width: 12px; height: 12px; }
.steps li.active, .steps li.working, .steps li.done { color: var(--ink); }
.steps li.active { font-weight: 500; }
.steps li.active .step-mark { box-shadow: none; border: 2px solid var(--ink); border-right-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .steps li.active .step-mark { animation: spin 0.8s linear infinite; } }
.steps li.working .step-mark { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.steps li.done .step-detail { opacity: 1; }
.steps li.done .step-mark { box-shadow: none; color: #fff; }
.steps li.done.ok .step-mark { background: var(--clean); }
.steps li.done.warn .step-mark { background: var(--shady); }
.steps li.done.bad .step-mark { background: var(--rug); }
.steps li.done.bad .step-detail { color: var(--rug); }
.steps li.done.info .step-mark { box-shadow: inset 0 0 0 1.5px rgba(31, 36, 51, 0.4); color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* story check */
.story { border-top: 1px solid var(--ink); margin: 4px 0 24px; padding-top: 20px; }
.story-title { font: 500 1.75rem/1.1 var(--display); margin: 0 0 12px; }
.story-note { margin: 0 0 8px; color: var(--ink-2); max-width: 60ch; }
.story-verdict { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.story-label { font: 600 2.5rem/1 var(--display); color: var(--v, var(--ink)); }
.story-score { font: 600 1.75rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.story-verdict.good, .gauge.good { --v: var(--clean); }
.story-verdict.warn, .gauge.warn { --v: var(--shady); }
.story-verdict.bad, .gauge.bad { --v: var(--rug); }
.gauge { position: relative; height: 8px; border-radius: 4px; background: var(--ink-line); max-width: 460px; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--v, var(--ink)); }
.gauge-scale { display: flex; justify-content: space-between; max-width: 460px; font-size: 0.8125rem; color: var(--ink-2); margin: 8px 0 12px; }
.story-summary { font-size: 1.0625rem; font-weight: 500; margin: 0 0 12px; max-width: 62ch; }
.claims strong { display: block; font-weight: 500; }
.claim-ev { display: block; color: var(--ink-2); }
.claim-src { font-size: 0.875rem; font-weight: 500; color: var(--ink); text-underline-offset: 3px; }
.overall { font-weight: 500; margin: 0 0 12px; }
.tech { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tech li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 0.9375rem; }
.tech li.flag .tech-v { color: var(--rug); font-weight: 500; }
.tech li.none { color: var(--ink-2); }
.tech-k { font: 600 0.9375rem/1.4 var(--display); min-width: 64px; }
.tech a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.tech-v { color: var(--ink-2); }

.case.error .case-title { color: var(--rug); }

/* ---------- Case log ledger ---------- */
.log { padding: 0 0 96px; border-top: 1px solid var(--line); padding-top: 64px; }
.log-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.log h2 { font: 500 2.25rem/1.05 var(--display); margin: 0 0 8px; }
.log-sub { color: var(--text-2); margin: 0; max-width: 56ch; }
.log-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 0.8125rem; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.status.on::before { background: var(--clean-desk); }
.status.off::before { background: var(--rug-desk); }
.filters { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-control); background: var(--desk-0); border: 1px solid var(--line); }
.filters button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-tag);
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--desk-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
@media (hover: hover) { .filters button:hover { color: var(--text); } }

.ledger-head, .find {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 80px 112px 112px;
  gap: 16px;
  align-items: center;
}
.ledger-head { padding: 0 12px 8px; font-size: 0.8125rem; color: var(--text-3); border-bottom: 1px solid var(--line); }
.ledger-head span:nth-child(n + 2):nth-child(-n + 4) { text-align: right; }
.ledger-head span:last-child { text-align: right; }
#finds { list-style: none; margin: 0; padding: 0; }
#finds li { border-bottom: 1px solid var(--line); }
.find {
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-control);
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
@media (hover: hover) { .find:hover { background: var(--desk-1); } }
.find-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.find img, .find .ph { width: 40px; height: 40px; border-radius: var(--r-control); object-fit: cover; flex: none; background: var(--desk-2); }
.find-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.find-name span { color: var(--text-3); font-weight: 400; }
.find-num { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.find-verdict { display: flex; justify-content: flex-end; }
.find-meta { display: none; }
.chip {
  --v: var(--text-2);
  font: 600 0.9375rem/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--v);
  border: 2px solid var(--v);
  border-radius: var(--r-tag);
  padding: 4px 8px;
  transform: rotate(-4deg);
  white-space: nowrap;
}
.chip.good { --v: var(--clean-desk); }
.chip.warn { --v: var(--shady-desk); }
.chip.bad { --v: var(--rug-desk); }
@media (prefers-reduced-motion: no-preference) { .find.fresh { animation: fresh 2.4s var(--ease); } }
@keyframes fresh { from { background: var(--desk-2); } to { background: transparent; } }
.log-empty { color: var(--text-2); padding: 24px 12px; border-bottom: 0; }

.foot { max-width: 1240px; margin: 0 auto; padding: 32px 32px 48px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.8125rem; }
.foot p { margin: 0; max-width: 72ch; }
.foot a { color: var(--lamp); text-underline-offset: 3px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
  .hero-copy { position: static; padding-top: 48px; }
  h1 { max-width: 14ch; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; height: auto; min-height: 56px; flex-wrap: wrap; padding-block: 8px; }
  .top-actions { width: 100%; }
  .ca { flex: 1; }
  main { padding: 0 16px; }
  h1 { font-size: 2.5rem; }
  .lead { font-size: 1rem; margin-bottom: 24px; }
  .hero { padding-top: 8px; }
  .hero-copy { padding-top: 40px; }
  form { flex-direction: column; }
  input { flex: none; }
  form button { width: 100%; }
  .hero-case { padding-top: 96px; }
  /* phones: the bubble sits above the dog and grows upward; the dog stays anchored to the folder edge */
  .hero-case { padding-top: 136px; }
  .sniffer { top: auto; bottom: calc(100% - 176px); left: auto !important; right: 8px; flex-direction: column; align-items: flex-end; gap: 8px; }
  .web #pet { width: 112px; height: 112px; }
  .web #pet svg.paws { left: 32px; top: 65px; transform: scale(0.76); transform-origin: left top; }
  .speech { order: 0; max-width: 240px; margin: 0; }
  .speech::after { left: auto; right: 48px; top: auto; bottom: -6px; border-left: 0; border-top: 0; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
  .web .sniffer #pet { order: 1; }
  .case { padding: 24px 20px; }
  .stamp { position: static; display: inline-block; margin: 8px 0 16px 8px; }
  .case-head { padding-right: 0; }
  .example-note { margin-right: 0; }
  .mint-row { padding-right: 0; }
  .case-title { font-size: 1.875rem; }
  .case-avatar { width: 48px; height: 48px; }
  .steps li { grid-template-columns: 20px minmax(0, 1fr); }
  .step-label { white-space: normal; }
  .step-detail { grid-column: 2; white-space: normal; }
  .log { padding-top: 48px; padding-bottom: 64px; }
  .log h2 { font-size: 1.875rem; }
  .ledger-head { display: none; }
  .find { grid-template-columns: minmax(0, 1fr) auto; }
  .find-num { display: none; }
  .find-meta { display: flex; gap: 12px; font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
  .foot { padding: 24px 16px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
