/* Old Token Check — dark, quiet, one accent. Teal is reserved for "ready" and actions. */

:root {
  --bg: #0b0d13;
  --panel: #10151c;
  --panel-2: #151b24;
  --line: #1e242c;
  --line-2: #2a313b;
  --text: #f2f4f7;
  --text-2: #b3bbc6;
  --text-3: #8a94a1;
  --teal: #2dd4bf;
  --teal-ink: #5eead4;
  --teal-bg: #0e2b29;
  --amber: #f3b75f;
  --amber-bg: #2b2112;
  --red: #f58b8b;
  --red-bg: #2d1618;
  --btn: #eceff3;
  --btn-hover: #ffffff;
  --btn-ink: #0b0d13;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 36px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--teal);
  overflow-x: clip;
}

::selection { background: rgba(45, 212, 191, 0.28); color: #fff; }

html { scrollbar-color: var(--line-2) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 12px; border: 3px solid var(--bg); }

a { color: var(--teal-ink); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }

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

code, .mono { font-family: var(--mono); font-size: 0.9em; }
code { color: var(--text-2); }

h1, h2, h3, h4, h5 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- top bar */

.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }
.brand svg { color: var(--teal); }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--text-2); }
.top nav a, .brand { white-space: nowrap; }
.nav-short { display: none; }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- layout */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.intro { max-width: 1000px; margin: clamp(48px, 9vh, 96px) auto 30px; text-align: center; }
.intro h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.lede { margin: 18px auto 0; max-width: 60ch; color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); }

/* ---------------------------------------------------------------- search */

.search {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 12px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.search:focus-within { border-color: var(--line-2); box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(45, 212, 191, 0.10); }
.search-icon { flex: none; color: var(--text-3); margin-top: 15px; }
.search textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 clamp(15px, 1.7vw, 20px)/1.5 var(--mono);
  padding: 12px 0;
  max-height: 9.5em;
  overflow-y: auto;
  field-sizing: content;
}
.search textarea::placeholder { color: var(--text-3); opacity: 1; font-family: var(--sans); }
.search textarea:focus-visible { outline: none; }

.btn-check {
  flex: none;
  align-self: flex-start;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--btn);
  color: var(--btn-ink);
  font: 600 18px/1 var(--sans);
  cursor: pointer;
  transition: background 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn-check:hover:not(:disabled) { background: var(--btn-hover); }
.btn-check:active:not(:disabled) { transform: translateY(1px); }
.btn-check:disabled { opacity: 0.55; cursor: progress; }
.btn-check[data-busy="true"] { display: inline-flex; align-items: center; gap: 10px; }
.btn-check[data-busy="true"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(11, 13, 19, 0.25); border-top-color: var(--btn-ink);
  animation: spin 0.8s linear infinite;
}

.field-error { max-width: 1000px; margin: 12px auto 0; color: var(--red); font-size: 15px; white-space: pre-line; text-align: center; }

.search-note {
  max-width: 1000px;
  margin: 18px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-3);
  font-size: 15px;
  text-align: center;
}
.search-note svg { flex: none; }

/* ---------------------------------------------------------------- stats */

.stats {
  margin: clamp(56px, 9vh, 96px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 34px clamp(16px, 2.4vw, 36px) 36px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat-num {
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.stat-desc { margin-top: 8px; color: var(--text-3); font-size: 15px; line-height: 1.5; max-width: 30ch; }

/* ---------------------------------------------------------------- progress */

.progress { margin-top: 40px; }
.chain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chain {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  background: var(--panel);
}
.chain .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chain[data-state="scanning"] .dot, .chain[data-state="simulating"] .dot { background: var(--teal); animation: pulse 1.1s ease-in-out infinite; }
.chain[data-state="done"] .dot { background: var(--text-3); }
.chain[data-found="true"] { color: var(--text); }
.chain[data-found="true"] .chain-state { color: var(--text); }
.chain-summary { list-style: none; color: var(--text-2); font-size: 15px; padding: 2px 0; width: 100%; }
.chain[data-state="error"] { color: var(--red); border-color: rgba(245, 139, 139, 0.35); }
.chain[data-state="error"] .dot { background: var(--red); }
.chain-state { color: var(--text-3); font-variant-numeric: tabular-nums; }
.progress-note { margin-top: 12px; color: var(--amber); font-size: 14px; }
.progress-note:empty { display: none; }

/* ---------------------------------------------------------------- results */

.results { margin-top: 28px; outline: none; }
.results:empty { margin: 0; }

.summary {
  padding: 28px 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.summary h2 { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
.summary p { margin-top: 10px; color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); }
.summary .tip-nudge { margin-top: 14px; font-size: 16px; color: var(--text-3); }

.addr-group { margin-top: 22px; }
.addr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 30px 2px 12px; }
.addr-head .mono { color: var(--text-2); font-size: 14px; word-break: break-all; }
.addr-head .addr-count { color: var(--text-3); font-size: 14px; }

.cards { display: grid; gap: 18px; }

.card {
  padding: 30px 36px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card.is-new { animation: settle 520ms var(--ease-out) both; }

/* Ready cards: the old token amount flips into the new one (the migration itself, in miniature) */
.card.is-new[data-status="ready"] { animation: none; }
.roll { position: relative; display: inline-block; }
.roll-old { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; color: var(--text-3); pointer-events: none; }
.card.is-new .roll-old { animation: roll-out 460ms var(--ease-out) both; }
.card.is-new .roll-new { display: inline-block; animation: roll-in 620ms var(--ease-out) 160ms both; }
.card.is-new .pill[data-tone="good"] { animation: pill-in 420ms var(--ease-out) 520ms both; }

/* Summary card, once per scan: a single pass of light */
.summary { position: relative; overflow: hidden; isolation: isolate; }
.summary.found::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(94, 234, 212, 0.10) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: glint 1400ms var(--ease-out) 200ms both;
}
.summary .count { font-variant-numeric: tabular-nums; }

/* coins that pop out of the total */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.burst span { position: fixed; border-radius: 50%; will-change: transform, opacity; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.card-amount strong {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.card-amount .usd { color: var(--text-2); font-size: clamp(18px, 1.9vw, 23px); font-variant-numeric: tabular-nums; }
.card-amount .plus { color: var(--text-3); font-size: 18px; }

.pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--panel-2);
  color: var(--text-2);
}
.pill[data-tone="good"] { background: var(--teal-bg); color: var(--teal-ink); }
.pill[data-tone="warn"] { background: var(--amber-bg); color: var(--amber); }
.pill[data-tone="bad"] { background: var(--red-bg); color: var(--red); }
.pill[data-tone="pending"] { color: var(--text-3); }
.pill[data-tone="pending"]::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--text-2);
  animation: spin 0.8s linear infinite;
}

.card-meta { margin-top: 16px; color: var(--text-3); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; }
.card-meta b { color: var(--text-2); font-weight: 500; }
.card-meta .sep { margin: 0 6px; }
.card-mono { margin-top: 8px; font-family: var(--mono); font-size: 14.5px; color: var(--text-3); overflow-wrap: anywhere; }
.card-mono a { color: var(--text-3); }
.card-mono a:hover { color: var(--text-2); }

.notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.note svg { margin-top: 3px; }
.note[data-level="danger"] { color: var(--red); }
.note[data-level="warn"] svg { color: var(--amber); }
.note[data-level="info"] svg { color: var(--text-3); }
.note[data-level="good"] svg { color: var(--teal); }
.note .num { font-variant-numeric: tabular-nums; }

.card-rule { margin: 24px 0 20px; border: 0; border-top: 1px dashed var(--line-2); }

.card-action { font-size: clamp(16px, 1.75vw, 19px); line-height: 1.55; color: var(--text); }
.card-action .sep { color: var(--text-3); margin: 0 8px; }
.card-action .muted, .note .muted { color: var(--text-3); }
.official-line { margin-top: 8px; color: var(--text-2); font-size: clamp(15px, 1.6vw, 17px); }

/* expandable steps — summary styled as the teal action link */
.steps-wrap > summary {
  list-style: none;
  display: block;
  cursor: pointer;
  border-radius: 8px;
}
.steps-wrap > summary .link { color: var(--teal-ink); font-weight: 600; white-space: nowrap; }
.steps-wrap > summary::-webkit-details-marker { display: none; }
.steps-wrap > summary:hover .link { text-decoration: underline; }
.steps-wrap > summary .arrow { display: inline-block; transition: transform 200ms var(--ease-out); }
.steps-wrap[open] > summary .arrow { transform: rotate(90deg); }
.steps-body { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 26px; }
.step { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; }
.step > * { min-width: 0; }
.step::before {
  content: counter(step);
  grid-row: span 3;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--text-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step h4 { font-size: 17px; font-weight: 650; line-height: 1.4; padding-top: 4px; }
.step-list { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 8px; min-width: 0; }
.step-list > li { min-width: 0; overflow-wrap: anywhere; }
.step h4 { overflow-wrap: anywhere; }
.step-list li::marker { color: var(--text-3); }
.step-list strong { color: var(--text); font-weight: 600; }

.fields { margin: 12px 0 4px; display: grid; gap: 0; }
.field {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 6px 16px;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.field:last-child { border-bottom: 1px solid var(--line); }
.f-label { display: flex; flex-direction: column; gap: 2px; }
.f-label .mono { color: var(--text); font-size: 14px; }
.f-label .f-type { color: var(--text-3); font-size: 12.5px; font-family: var(--mono); }
.f-label .f-idx { color: var(--text-3); font-size: 12.5px; }
.f-val { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.f-val code { flex: 1; min-width: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; line-height: 1.5; }
.f-hint { grid-column: 2; color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.fine { color: var(--text-3); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.warn-text { color: var(--amber); }

.copy {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text-2);
  font: 500 13px/1.3 var(--sans);
  cursor: pointer;
  transition: color 120ms, border-color 120ms, background 120ms;
}
.copy:hover { color: var(--text); border-color: var(--text-3); }
.copy.copied { color: var(--teal-ink); border-color: rgba(45, 212, 191, 0.5); background: var(--teal-bg); }

.contracts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.contracts li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14.5px; }
.contracts .c-role { color: var(--text-3); min-width: 150px; }
.contracts .c-addr { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.contracts .c-addr a { overflow-wrap: anywhere; }

.sub-h { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); text-transform: uppercase; }

.sources { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-3); display: grid; gap: 4px; }
.sources a { overflow-wrap: anywhere; }

.empty {
  padding: 26px 36px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  color: var(--text-2);
}
.empty strong { color: var(--text); }
.empty p + p { margin-top: 6px; color: var(--text-3); font-size: 15px; }

/* ---------------------------------------------------------------- tip jar */

.tip {
  margin-top: clamp(72px, 12vh, 128px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 40px 64px;
  align-items: start;
}
.tip h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.tip-copy p { margin-top: 16px; color: var(--text-2); max-width: 56ch; }
.tip-copy .tip-how { color: var(--text-3); font-size: 16px; }

.tip-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.qr { width: 148px; height: 148px; padding: 10px; background: #f4f6f8; border-radius: 12px; display: block; }
.qr svg { display: block; width: 100%; height: 100%; }
.tip-addr-label { color: var(--text-3); font-size: 14px; }
.tip-ens { margin-top: 4px; font-weight: 600; font-size: 17px; }
.tip-addr { margin-top: 6px; font-family: var(--mono); font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; line-height: 1.5; }
.tip-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-soft {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  color: var(--text);
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}
.btn-soft:hover { border-color: var(--text-3); }
.btn-soft.copied { color: var(--teal-ink); border-color: rgba(45, 212, 191, 0.5); background: var(--teal-bg); }
@media (min-width: 901px) { .tip-addr { white-space: nowrap; } }

/* ---------------------------------------------------------------- how it works */

.how { margin-top: clamp(72px, 12vh, 128px); padding-top: 48px; border-top: 1px solid var(--line); }
.how h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.025em; }
.how-steps {
  margin: 28px 0 0; padding: 0; list-style: none; counter-reset: how;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px;
}
.how-steps li { counter-increment: how; color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.how-steps li strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.how-note { margin-top: 28px; color: var(--text-3); font-size: 15px; max-width: 80ch; }

.routes-details { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.routes-details > summary { list-style: none; padding: 16px 20px; cursor: pointer; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; }
.routes-details > summary::-webkit-details-marker { display: none; }
.routes-details > summary::after { content: "→"; color: var(--teal-ink); transition: transform 200ms var(--ease-out); }
.routes-details[open] > summary::after { transform: rotate(90deg); }
.routes-details > summary:hover::after { transform: translateX(3px); }
.routes-details[open] > summary:hover::after { transform: rotate(90deg); }
.routes { padding: 4px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 32px; }
.routes h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); text-transform: uppercase; margin-bottom: 8px; }
.routes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.routes li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.routes li span:last-child { color: var(--text-3); text-align: right; }

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

.foot { width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); margin: clamp(64px, 10vh, 112px) auto 0; padding: 32px 0 48px; border-top: 1px solid var(--line); text-align: center; }
.foot-safety { color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); max-width: 64ch; margin: 0 auto; }
.foot-meta { margin-top: 12px; color: var(--text-3); font-size: 14px; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  background: var(--btn); color: var(--btn-ink);
  border-radius: 999px; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- motion */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.35; } }
/* the one authored moment: a result card resolving from "Simulating…" into its verdict */
@keyframes roll-out {
  0% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-60%); filter: blur(4px); }
}
@keyframes roll-in {
  0% { opacity: 0; transform: translateY(60%); filter: blur(4px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pill-in {
  0% { opacity: 0; transform: scale(0.86); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes glint { to { transform: translateX(100%); } }
@keyframes settle {
  from { opacity: 0.35; transform: translateY(8px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

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

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:first-child { padding-left: clamp(16px, 2.4vw, 36px); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tip { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .intro { text-align: left; margin-top: 40px; }
  .lede { margin-left: 0; }
  .search { padding: 8px 8px 8px 14px; gap: 8px; border-radius: 16px; }
  .search-icon { display: none; }
  .search textarea { padding: 10px 0; }
  .btn-check { min-height: 46px; padding: 0 18px; font-size: 16px; }
  .search-note { justify-content: flex-start; text-align: left; align-items: flex-start; }
  .search-note svg { margin-top: 3px; }
  .field-error { text-align: left; }
  .stat { padding: 24px 12px 26px 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat-label { font-size: 16px; margin-top: 10px; }
  .stat-desc { font-size: 13.5px; }
  .summary, .card, .empty { padding: 22px 18px; border-radius: 16px; }
  .card-top { flex-direction: column-reverse; gap: 12px; }
  .pill { font-size: 14px; padding: 7px 14px; }
  .field { grid-template-columns: minmax(0, 1fr); }
  .f-hint { grid-column: 1; }
  .step { grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; }
  .steps-body { font-size: 15px; }
  .step-list { padding-left: 16px; }
  .chain { padding: 5px 10px; font-size: 13px; }
  .step::before { width: 28px; height: 28px; font-size: 13px; }
  .tip-card { grid-template-columns: 1fr; justify-items: start; }
  .contracts .c-role { min-width: 0; width: 100%; }
}

[hidden] { display: none !important; }
.tip[data-state="closed"] .tip-card { display: block; }
.tip-unset { color: var(--text-2); font-size: 16px; }
.tip-unset strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
