/* Litmus. Lab-paper theme: ink on warm paper with one accent, acid red. No rainbow.
   Brand colours live in :root; verdict colours are --clear, --watch, --hostile (used only where a reading is shown). */
:root {
  --paper: #f3efe4;
  --paper-2: #ebe5d6;
  --card: #fffdf7;
  --line: #ddd5c2;
  --line-2: #c7bda6;
  --ink: #17150f;
  --ink-2: #4b463a;
  --ink-3: #847d6b;
  --acc: #cc3328;
  --acc-2: #a8271e;
  --acc-soft: rgba(204, 51, 40, .09);
  --pad-ok: #e4ddcc;
  --pad-meh: #e9b4ad;
  --clear: #2563c9;
  --watch: #d27a1f;
  --hostile: #cc3328;
  --strip: linear-gradient(90deg, var(--hostile), var(--hostile));
  --display: 'Fraunces', Georgia, serif;
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 16px;
  --r-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 0 rgba(23, 21, 15, .04), 0 12px 32px -18px rgba(23, 21, 15, .28);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint ruled-notebook lines, like lab paper */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 21, 15, .035) 1px, transparent 1px);
  background-size: 100% 32px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, pre, kbd { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 228, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--strip); }
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 650 25px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--ink); }
.logo-word b { font-weight: 650; }
.links { display: flex; gap: 2px; margin-left: 12px; }
.links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.links a:hover, .links a[aria-current='page'] { color: var(--ink); background: var(--paper-2); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--card);
  transition: color .2s, border-color .2s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn[aria-disabled='true'], .pill-link[aria-disabled='true'] { opacity: .35; pointer-events: none; }
.menu { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; background: var(--card); }
.menu span, .menu span::before, .menu span::after {
  position: absolute; left: 11px; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; content: '';
  transition: transform .25s;
}
.menu span { top: 18px; }
.menu span::before { left: 0; top: -5px; }
.menu span::after { left: 0; top: 5px; }
.menu[aria-expanded='true'] span { background: transparent; }
.menu[aria-expanded='true'] span::before { transform: translateY(5px) rotate(45deg); }
.menu[aria-expanded='true'] span::after { transform: translateY(-5px) rotate(-45deg); }

.ca-bar {
  display: flex; align-items: center; gap: 12px; height: 38px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}
.ca-bar .label { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ca-bar code { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-bar button { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); }
.ca-bar button:disabled { opacity: .4; cursor: default; }
.ca-bar button:not(:disabled):hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font);
  transition: transform .15s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sig { background: var(--ink); color: var(--paper); }
.btn-sig:hover { background: var(--acc); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clear); }
.chip[data-state='error'] .dot { background: var(--hostile); }
.chip[data-state='loading'] .dot { background: var(--watch); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 26px; height: 6px; border-radius: 3px; background: var(--strip); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.6vw, 50px); }
h3 { font-family: var(--font); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.head { max-width: 680px; margin-bottom: 44px; }
.head p { color: var(--ink-2); margin: 16px 0 0; font-size: 17px; }
.head.center { margin-inline: auto; text-align: center; }

.section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--paper-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* Verdict tags, used everywhere a call is shown. */
.v { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .1em; color: #fff; }
.v::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.v-CLEAR { background: var(--clear); }
.v-WATCH { background: var(--watch); }
.v-HOSTILE { background: var(--hostile); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 104px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 84px); margin: 22px 0; font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 500; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px; background: var(--strip); z-index: -1; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 560px; margin: 0; }
.lede b { color: var(--ink); font-weight: 600; }

.sweep-form {
  display: flex; gap: 8px; margin-top: 32px; padding: 7px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; max-width: 560px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow .2s, transform .2s;
}
.sweep-form:focus-within { box-shadow: 6px 6px 0 var(--acc); transform: translate(-1px, -1px); }
.sweep-form input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 16px;
  font: 400 14.5px var(--mono); color: var(--ink);
}
.sweep-form input::placeholder { color: var(--ink-3); }
.sweep-form .btn { height: 44px; }
.form-note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }
.form-note a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.form-note a:hover { color: var(--acc); border-color: var(--acc); }
.form-error { color: var(--hostile); }

/* The example test strip: six pads develop one after another, each next to the reading it stands for. */
.lab { position: relative; justify-self: center; width: min(100%, 470px); }
.lab-card { padding: 22px 24px 18px; }
.lab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lab-head small { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.lab-body { display: grid; grid-template-columns: 62px 1fr; gap: 20px; }
.strip { position: relative; display: grid; grid-auto-rows: 34px; gap: 6px; padding: 8px 9px 64px; border-radius: 10px; background: #fbf8ef; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 rgba(23, 21, 15, .12); }
.strip::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 10px; height: 44px; border-radius: 4px; background: repeating-linear-gradient(-45deg, rgba(23, 21, 15, .06) 0 4px, transparent 4px 8px); }
.pad { position: relative; border-radius: 4px; background: #efe9da; overflow: hidden; }
.pad i { position: absolute; inset: 0; background: var(--c); opacity: 0; animation: develop .7s ease-out forwards; animation-delay: calc(.5s + var(--i) * .32s); }
@keyframes develop { from { opacity: 0; } to { opacity: 1; } }
.readings { margin: 0; display: grid; grid-auto-rows: 34px; row-gap: 6px; padding-top: 8px; font-size: 14px; }
.readings div { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); }
.readings dt { color: var(--ink-3); }
.readings dd { margin: 0; font: 500 13px var(--mono); color: var(--ink); text-align: right; }
.readings .bad { color: var(--hostile); }
.readings .meh { color: var(--watch); }
.lab-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.lab-foot b { font: 600 34px/1 var(--display); color: var(--hostile); }
.lab-foot b small { font: 500 14px var(--mono); color: var(--ink-3); }
.lab-foot span { font: 500 13px var(--mono); color: var(--ink-2); }
.lab-foot span strong { color: var(--hostile); font-weight: 600; }
.ph-chart { margin-top: 36px; }
.score-bar { position: relative; height: 14px; border-radius: 7px; background: var(--paper-2); overflow: hidden; }
.score-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: var(--hostile); border-radius: 7px; }
.ph-scale { position: relative; display: flex; justify-content: space-between; margin-top: 6px; font: 500 11px var(--mono); color: var(--ink-3); }
.ph-marker { position: absolute; top: -34px; left: var(--at); transform: translateX(-50%); width: 2px; height: 28px; background: var(--ink); }
.ph-marker::after { content: 'this token'; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px var(--mono); letter-spacing: .08em; color: var(--ink); }

/* ---------- Spec strip ---------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 26px 24px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs b { display: block; font: 600 clamp(28px, 3.4vw, 38px)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.specs small { display: block; margin-top: 8px; color: var(--ink-3); font-size: 14px; }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; }
.how li { list-style: none; padding: 26px; position: relative; }
.how > *, .hero-grid > *, .connect > *, .report-grid > *, .signals > *, .calls > *, .stack > * { min-width: 0; }
.step-n { display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--paper); background: var(--ink); padding: 6px 9px; border-radius: 6px; }
.how h3 { margin: 16px 0 8px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.015em; }
.how p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.term {
  margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--ink); color: #d9d3c3;
  font: 400 12.5px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.term .k { color: #8fb4ff; }
.term .s { color: #f2d17a; }
.term .r { color: #ff8a7a; }
.term .y { color: #f5b45a; }
.term .c { color: #9d9682; }

/* ---------- Signals ---------- */
.signals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.signal { padding: 24px 22px; transition: transform .25s, box-shadow .25s; }
.signal:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(23, 21, 15, .04), 0 18px 36px -18px rgba(23, 21, 15, .35); }
.signal-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--paper); margin-bottom: 18px; }
.signal-ico svg { width: 21px; height: 21px; }
.signal h3 { font-size: 18px; margin-bottom: 8px; }
.signal p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.signal .ids { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.signal .ids code { font-size: 11px; color: var(--ink-3); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }

/* ---------- Calls ---------- */
.gauge { position: relative; height: 16px; border-radius: 999px; overflow: hidden; display: grid; grid-template-columns: 45fr 30fr 25fr; gap: 3px; margin: 0 0 14px; }
.gauge span:nth-child(1) { background: var(--hostile); }
.gauge span:nth-child(2) { background: var(--watch); }
.gauge span:nth-child(3) { background: var(--clear); }
.gauge-scale { display: grid; grid-template-columns: 45fr 30fr 25fr; font: 500 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 26px; }
.gauge-scale span:last-child { display: flex; justify-content: space-between; }
.calls { display: grid; grid-template-columns: 45fr 30fr 25fr; gap: 16px; }
.call { padding: 24px; border-top: 5px solid var(--c); }
.call h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 600 26px/1.1 var(--display); color: var(--c); letter-spacing: -.01em; }
.call h3 small { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.call p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.call p b { color: var(--ink); font-weight: 600; }
.calls-note { margin: 22px 0 0; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Tables (live list, holders) ---------- */
.table-card { overflow: hidden; }
.table-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.table-bar small { color: var(--ink-3); font-size: 13px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--paper); }
.num { text-align: right; font-family: var(--mono); font-size: 13.5px; }
.tok { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.tok-img { width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); border: 1px solid var(--line); flex: none; object-fit: cover; display: grid; place-items: center; font: 600 12px var(--font); color: var(--ink-3); overflow: hidden; }
.tok b { display: block; font-weight: 600; font-size: 15px; }
.tok small { display: block; font: 400 12px var(--mono); color: var(--ink-3); }
.up { color: var(--clear); }
.down { color: var(--hostile); }
.skeleton td { color: transparent; }
.skeleton td::after { content: ''; display: block; height: 12px; border-radius: 4px; background: var(--paper-2); }
.table-empty { padding: 36px 18px; text-align: center; color: var(--ink-3); }

/* ---------- Connect ---------- */
.connect { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.connect-copy p { color: var(--ink-2); }
.connect-copy ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.connect-copy li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.connect-copy li::before { content: '→'; color: var(--acc); font-family: var(--mono); }
.connect-copy li code, .doc p code, .doc li code, .doc td code, .how p code { font-size: .88em; padding: 2px 6px; border-radius: 5px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; background: var(--paper); border-radius: var(--r) var(--r) 0 0; }
.tabs button { padding: 9px 14px; border-radius: 999px; font: 500 13.5px/1 var(--font); color: var(--ink-2); white-space: nowrap; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
.tab-panel { padding: 20px; }
.tab-panel[hidden] { display: none; }
.tab-panel p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.code { position: relative; }
.code pre { margin: 0; padding: 16px 64px 16px 16px; border-radius: 10px; background: var(--ink); font-size: 13px; line-height: 1.65; color: #ece6d6; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .copy { position: absolute; top: 9px; right: 9px; font: 500 11.5px/1 var(--mono); padding: 7px 9px; border-radius: 7px; border: 1px solid #4b463a; color: #ece6d6; background: #2a2720; }
.code .copy:hover { background: var(--acc); border-color: var(--acc); }

/* ---------- CTA band + footer ---------- */
.band { padding: clamp(72px, 10vw, 110px) 0; text-align: center; position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.band::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--strip); }
.band h2 { font-size: clamp(34px, 5vw, 58px); }
.band h2 em { font-style: italic; font-weight: 500; }
.band p { color: #bdb6a3; font-size: 18px; margin: 16px auto 30px; max-width: 520px; }
.band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band .btn-sig { background: var(--paper); color: var(--ink); }
.band .btn-sig:hover { background: #fff; }
.band .btn-line { border-color: var(--paper); color: var(--paper); }
.band .btn-line:hover { background: var(--paper); color: var(--ink); }

.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; color: var(--ink-3); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-tag { margin: 12px 0 0; max-width: 320px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h4 { margin: 0 0 12px; font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot-cols a { display: block; padding: 4px 0; color: var(--ink-3); }
.foot-cols a:hover { color: var(--acc); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px);
  padding: 11px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 13.5px/1 var(--mono); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Test report ---------- */
.scan-page { padding: 40px 0 96px; }
.scan-page .sweep-form { max-width: none; margin: 0 0 36px; }
.report-head { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px; }
.dial { position: relative; width: 168px; height: 168px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { stroke: var(--paper-2); }
.dial .arc { stroke: var(--c); transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.dial-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-num b { font: 600 54px/1 var(--display); color: var(--c); letter-spacing: -.03em; }
.dial-num small { font: 500 12px/1 var(--mono); color: var(--ink-3); margin-top: 6px; }
.report-id { min-width: 0; }
.report-id .tok-img { width: 52px; height: 52px; border-radius: 13px; font-size: 16px; }
.report-id .tok b { font: 600 30px/1.1 var(--display); letter-spacing: -.02em; }
.report-id .tok small { font-size: 13px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.report-meta .chip { text-transform: none; letter-spacing: 0; font-size: 12px; }
.report-summary { font: 500 20px/1.4 var(--display); margin: 0; letter-spacing: -.01em; }
.mint-line { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 13px var(--mono); color: var(--ink-3); margin-top: 4px; }
.mint-line code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mint-line button { color: var(--ink-2); padding: 4px; border-radius: 6px; flex: none; }
.mint-line button:hover { color: var(--acc); }
.mint-line svg { width: 15px; height: 15px; }

.report-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.panel { padding: 22px; }
.panel h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; margin-bottom: 16px; }
.panel h3 small { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flag { display: grid; grid-template-columns: 6px 1fr auto; gap: 14px; padding: 14px 16px 14px 0; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.flag::before { content: ''; background: var(--c); }
.flag b { display: block; font-weight: 600; font-size: 15px; }
.flag p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; word-break: break-word; }
.flag .pen { font: 600 14px/1 var(--mono); color: var(--c); align-self: center; }
.sev-high { --c: var(--hostile); }
.sev-medium { --c: var(--watch); }
.sev-low { --c: #a69c84; }
.sev-info { --c: var(--line-2); }
.flags-empty { padding: 18px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--ink-2); text-align: center; }

.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd a { border-bottom: 1px dotted var(--line-2); }
.facts dd a:hover { color: var(--acc); }
.facts .good { color: var(--clear); }
.facts .bad { color: var(--hostile); }
.facts .meh { color: var(--watch); }
.panel-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.stack { display: grid; gap: 18px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 92px 1fr 56px; gap: 10px; align-items: center; font: 400 12.5px var(--mono); color: var(--ink-2); }
.bar a:hover { color: var(--acc); }
.bar-track { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: var(--ink); border-radius: 4px; transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar span:last-child { text-align: right; }
.raw summary { cursor: pointer; font: 600 15px var(--font); color: var(--ink-2); padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; }
.raw summary::-webkit-details-marker { display: none; }
.raw summary::after { content: '+'; font-family: var(--mono); color: var(--acc); }
.raw[open] summary::after { content: '−'; }
.raw .code { padding: 0 22px 22px; }
.raw pre { max-height: 460px; overflow: auto; font-size: 12px; }

.scan-state { padding: 64px 24px; text-align: center; }
.scan-state h2 { font-size: 32px; }
.scan-state p { color: var(--ink-2); margin: 12px auto 0; max-width: 460px; }
.scan-log { list-style: none; margin: 22px auto 0; padding: 0; max-width: 380px; text-align: left; font: 400 13px/1.9 var(--mono); color: var(--ink-3); }
.scan-log li::before { content: '› '; color: var(--acc); }
.scan-state.error h2 { color: var(--hostile); }
/* the loader: a strip whose pads keep developing while the test runs */
.strip-loader { display: inline-grid; grid-auto-rows: 14px; gap: 5px; padding: 8px 8px 30px; margin: 0 auto 26px; width: 46px; border-radius: 8px; background: #fbf8ef; border: 1.5px solid var(--ink); }
.strip-loader span { border-radius: 3px; background: var(--c); opacity: .15; animation: pulse 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes pulse { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 48px 0 96px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.toc a { padding: 7px 12px; border-radius: 8px; color: var(--ink-3); }
.toc a:hover { color: var(--ink); background: var(--paper-2); }
.toc b { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 18px 12px 8px; }
.toc b:first-child { padding-top: 0; }
.doc { min-width: 0; max-width: 780px; }
.doc h1 { font-size: clamp(40px, 5.4vw, 58px); }
.doc .lede { margin: 16px 0 0; }
.doc section { padding-top: 48px; }
.doc h2 { font-size: 30px; margin-bottom: 14px; }
.doc h3 { font-size: 18px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .code { margin: 14px 0; }
.doc table { font-size: 14px; }
.doc td { white-space: normal; vertical-align: top; color: var(--ink-2); }
.doc td:first-child, .doc td.num { white-space: nowrap; color: var(--ink); }
.doc .table-card { margin: 14px 0; }
.callout { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line-2); border-left: 5px solid var(--acc); background: var(--card); color: var(--ink); font-size: 15px; margin: 18px 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .signals { grid-template-columns: repeat(2, 1fr); }
  .connect { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .links {
    position: absolute; left: 0; right: 0; top: 66px; margin: 0; padding: 10px var(--gutter) 16px;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .links.open { display: flex; }
  .links a { padding: 12px; font-size: 16px; }
  .menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .lab { width: min(100%, 470px); }
  .how { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(2) { border-right: 0; }
  .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calls { grid-template-columns: 1fr; }
  .gauge-scale { font-size: 11px; }
  .report-head { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .report-id .tok { justify-content: center; text-align: left; }
  .report-meta { justify-content: center; }
  .mint-line { justify-content: center; }
  .hide-sm { display: none; }
  th, td { padding: 12px 10px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .tok { min-width: 0; }
}
@media (max-width: 560px) {
  .hide-xs { display: none; }
  #live td:first-child { white-space: normal; }
  #live th, #live td { padding-left: 6px; padding-right: 6px; letter-spacing: 0; }
  #live th:first-child, #live td:first-child { padding-left: 12px; }
  #live th:last-child, #live td:last-child { padding-right: 12px; }
  #live .tok-img { width: 28px; height: 28px; }
  #live .btn-sm { padding: 0 11px; }
  .signals { grid-template-columns: 1fr; }
  .nav-end .icon-btn { display: none; }
  .sweep-form { flex-direction: column; border-radius: 22px; }
  .sweep-form input { height: 44px; }
  .ca-bar .label .long { display: none; }
  .bar { grid-template-columns: 80px 1fr 50px; }
  .lab-card { padding: 18px 16px 14px; }
  .lab-body { grid-template-columns: 50px 1fr; gap: 14px; }
  .readings { font-size: 13px; }
  .readings dd { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pad i, .bar-fill, .strip-loader span { animation: none; }
  .pad i { opacity: 1; }
  .strip-loader span { opacity: .8; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
