/* WellKeep: Swiss editorial system. Muse: Satz (paper, heavy grotesque, tracked caps labels, hairlines, a black band). */
:root {
  --bg: #faf9f5;
  --panel: #faf9f5;
  --ink: #0a0a0a;
  --muted: #5f5e58;
  --line: #d8d5cb;
  --accent: #e8643c;
  --water: #0a0a0a;
  --water-ink: #faf9f5;
  --water-soft: #efede5;
  --ok: #1f6b3f;
  --ok-soft: #e4eee6;
  --warn: #a9480f;
  --warn-soft: #f6e8dc;
  --bad: #a3282d;
  --bad-soft: #f6e1e0;
  --band: #0a0a0a;
  --band-ink: #faf9f5;
  --band-line: #2e2e2c;
  --focus: 0 0 0 3px rgba(232, 100, 60, 0.55);
  --sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0d; --panel: #0e0e0d; --ink: #f3f1ea; --muted: #a6a39a; --line: #2e2e2b;
    --water: #f3f1ea; --water-ink: #0a0a0a; --water-soft: #1b1b19;
    --ok: #6cc58f; --ok-soft: #14291c; --warn: #eba070; --warn-soft: #2e2016; --bad: #f08a8d; --bad-soft: #321a1b;
    --band: #1a1a18; --band-line: #34342f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 clamp(15px, 0.92rem + 0.15vw, 17px) / 1.6 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent;
}
.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; box-shadow: var(--focus); }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem); margin-top: 0; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
p { margin: 0 0 0.9em; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.85em; word-break: break-all; }
.small { font-size: 0.85rem; }
.eyebrow, .label, .kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before, .kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* header */
.top { background: var(--bg); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 4px 28px; min-height: 56px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.brand svg { color: var(--accent); }
.tabs { display: flex; gap: 22px; margin-left: auto; }
.tabs a { white-space: nowrap; padding: 8px 0; text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat; transition: background-size 180ms ease, color 140ms ease; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; user-select: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) { .tabs a:hover { color: var(--ink); background-size: 100% 1px; } }
.banner { border-bottom: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px 0; }
.banner i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }
main { padding-block: 56px 72px; outline: none; }
main.home { padding-top: 0; }

/* buttons */
button, .btn, .pill {
  font: inherit; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); min-height: 44px;
  padding: 0 22px; border-radius: 0; cursor: pointer; user-select: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms ease;
}
button:active, .pill:active { transform: scale(0.98); }
button.secondary, .pill.ghost { background: transparent; color: var(--ink); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.pill.small { min-height: 38px; padding: 0 16px; margin-left: 0; }
/* interactive buttons: a colour wipe rises from the bottom on hover / press, the label flips colour, the button lifts */
button, .pill { position: relative; overflow: hidden; isolation: isolate; }
button::before, .pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 180ms cubic-bezier(0.2, 0.7, 0.3, 1); }
button.secondary::before, .pill.ghost::before { background: var(--ink); }
button.danger::before { background: var(--bad); }
button:not([disabled]):active::before, .pill:active::before { transform: scaleY(1); }
button:not([disabled]):not(.secondary):not(.danger):active, .pill:not(.ghost):active { color: #0a0a0a; border-color: var(--accent); }
button.secondary:not([disabled]):active, .pill.ghost:active { color: var(--bg); }
button.danger:not([disabled]):active { color: #fff; }
@media (hover: hover) {
  button:not([disabled]):hover::before, .pill:hover::before { transform: scaleY(1); }
  button:not([disabled]):not(.secondary):not(.danger):hover, .pill:not(.ghost):hover { color: #0a0a0a; border-color: var(--accent); transform: translateY(-2px); }
  button.secondary:not([disabled]):hover, .pill.ghost:hover { color: var(--bg); transform: translateY(-2px); }
  button.danger:not([disabled]):hover { color: #fff; transform: translateY(-2px); }
  button:not([disabled]):active, .pill:active { transform: translateY(0) scale(0.98); }
}
select, input[type="text"], input[type="number"] {
  font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 0; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); min-height: 44px;
}
label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: grid; gap: 6px; }
label select, label input { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--ink); }
.fields { align-items: end; margin-bottom: 10px; }
.fields label { flex: 1 1 120px; }

/* hero */
.hero[hidden] { display: none; }
.hero-in { padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 56px); text-align: center; display: grid; justify-items: center; }
.hero h1 { font-size: clamp(2.1rem, 0.9rem + 6vw, 5.2rem); font-weight: 800; letter-spacing: -0.012em; line-height: 1.08; text-transform: uppercase; max-width: 18ch; text-wrap: balance; margin: 18px 0 22px; }
.hero #hero-fact { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 40ch; margin-bottom: 10px; color: var(--ink); }
.hero #hero-fact sup a { color: var(--muted); padding: 0 3px; }
.hero-sub { line-height: 1.65; max-width: 52ch; color: var(--muted); margin-bottom: 30px; }
.cta { justify-content: center; gap: 12px; }
.tw-d.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: caret 0.9s steps(1) infinite; }
.tw-r { visibility: hidden; }
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-in > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.hero-in > :nth-child(2) { animation-delay: 0.08s; }
.hero-in > :nth-child(3) { animation-delay: 0.16s; }
.hero-in > :nth-child(4) { animation-delay: 0.24s; }
.hero-in > :nth-child(5) { animation-delay: 0.32s; }

/* hero photo: the woman at the pump, darkened so the text sits on it */
.hero { position: relative; isolation: isolate; color: #faf9f5; background: linear-gradient(rgba(10,10,10,0.82), rgba(10,10,10,0.86)), url(/img/hero-pump.jpg) center 38% / cover no-repeat; }
.hero .eyebrow { color: #d9d6cc; }
.hero h1, .hero #hero-fact { color: #faf9f5; }
.hero #hero-fact sup a { color: #d9d6cc; }
.hero-sub { color: #d9d6cc; }
.hero .pill:not(.ghost) { background: #faf9f5; color: #0a0a0a; border-color: #faf9f5; }
.hero .pill.ghost { background: transparent; color: #faf9f5; border-color: rgba(250,249,245,0.7); }
.hero .pill.ghost::before { background: #faf9f5; }
.hero .pill.ghost:active { color: #0a0a0a; }
@media (hover: hover) { .hero .pill.ghost:hover { color: #0a0a0a; } }
.hero-in { padding-block: clamp(20px, 5.5vh, 80px) clamp(24px, 5vh, 64px); }
.hero h1 { font-size: clamp(1.9rem, min(0.8rem + 5vw, 9vh), 4.6rem); margin: clamp(10px, 2.2vh, 18px) 0 clamp(12px, 2.6vh, 22px); }
.hero #hero-fact { font-size: clamp(0.98rem, min(1rem + 0.4vw, 2.6vh), 1.3rem); }
.hero-sub { margin-bottom: clamp(16px, 3.4vh, 30px); }
.statrow { margin-top: clamp(32px, 5vw, 56px); }

/* stat row */
.statrow { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.statrow > div { padding: 26px 24px 26px 0; }
.statrow > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stat { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 10px; }
.stat small { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.livebar { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.poolline { padding: 14px 0 0; margin: 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

/* photograph plate */
.plate { margin: clamp(40px, 7vw, 72px) 0 0; }
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: center 40%; filter: contrast(1.02) saturate(0.92); }
@media (max-width: 600px) { .plate img { aspect-ratio: 4 / 3; } }

/* sections */
.sec { padding-top: clamp(64px, 10vw, 112px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 12px 0 0; max-width: 18ch; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: p; }
.plist a { display: grid; grid-template-columns: 56px 1fr auto auto 24px; gap: 8px 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; counter-increment: p; }
.plist a::before { content: counter(p, decimal-leading-zero); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.plist b { font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.plist .ear { color: var(--muted); font-size: 0.9rem; }
.plist .go { font-size: 1.2rem; transition: transform 160ms ease; }
@media (hover: hover) { .plist a:hover .go { transform: translateX(6px); } .plist a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; } }
@media (max-width: 700px) { .plist a { grid-template-columns: 32px 1fr auto; } .plist b { grid-column: 2; } .plist .ear { grid-column: 2; grid-row: 2; } .plist .chip { grid-column: 3; grid-row: 1; } .plist .go { display: none; } .plist a::before { grid-row: 1; } }
.statement { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; max-width: 17ch; margin: 18px 0 18px; }
.statement-sub { max-width: 46ch; color: var(--muted); font-size: 1.1rem; }

/* black band: how it works */
.bandblack { background: var(--band); color: var(--band-ink); margin: clamp(64px, 10vw, 112px) calc(50% - 50vw) 0; width: 100vw; padding-block: clamp(56px, 9vw, 104px); }
.bandblack .eyebrow { color: #b9b6ac; }
.bandblack h2 { max-width: 14ch; margin: 14px 0 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--band-line); }
.steps li { counter-increment: s; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--band-line); color: #d5d2c8; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 18px; }
.steps li b { display: block; color: var(--band-ink); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px; }

/* why NEAR */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); border-top: 1px solid var(--ink); }
.facts > div { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 10px; }
.facts p { color: var(--muted); margin: 0; }
.facts-note { margin-top: 18px; max-width: 70ch; }

/* cards, rows, chips */
.grid { display: grid; gap: 0; }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--ink); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.grid.cols2 > .card { margin-bottom: 0; }
.card > :last-child { margin-bottom: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.chip { display: inline-block; padding: 3px 9px; border: 1px solid var(--ink); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--ink); user-select: none; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.lead { font-size: 1.15rem; max-width: 62ch; }
.pump { display: grid; gap: 8px; text-decoration: none; color: inherit; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks .detail { color: var(--muted); font-size: 0.85rem; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--ink); margin-top: 7px; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--water-soft); }
.asked { display: flex; flex-wrap: wrap; gap: 6px; }
.asked .hh { font-variant-numeric: tabular-nums; padding: 2px 8px; border: 1px solid var(--line); font-size: 0.85rem; }
.asked .hh.yes { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.asked .hh.no { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.cardgrid { display: grid; grid-template-columns: 54px repeat(3, 1fr); gap: 6px; font-size: 0.85rem; }
.cardgrid .cell { border: 1px dashed var(--muted); padding: 6px 8px; text-align: center; font-family: var(--mono); min-height: 32px; }
.cardgrid .cell.hidden { background: repeating-linear-gradient(45deg, var(--line), var(--line) 6px, transparent 6px, transparent 12px); color: transparent; user-select: none; }
.cardgrid .cell.used { opacity: 0.5; text-decoration: line-through; }
.cardgrid .head { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.tablewrap { overflow-x: auto; }
details { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
details + details { border-top-color: var(--line); }
summary { cursor: pointer; font-weight: 700; letter-spacing: -0.01em; }
.msg { min-height: 1.4em; font-size: 0.9rem; margin-top: 10px; }
.msg.err { color: var(--bad); }
.msg.good { color: var(--ok); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--ink); margin-top: 0; padding-block: 40px 56px; color: var(--muted); font-size: 0.88rem; }
.foot-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 56px; }
.foot-brand { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.foot .credits { font-size: 0.78rem; margin: 0; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

/* reveal, flash */
.reveal { transition: opacity 0.35s ease, transform 0.35s ease; }
.reveal-ready .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
.flash { animation: flash 1.1s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } to { background: transparent; } }

/* Watch a repair */
.watch { padding: clamp(18px, 3.4vw, 32px); }
.watch .scenes { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.watch .scn, .watch .ctl button { min-height: 44px; touch-action: manipulation; background: transparent; color: var(--ink); }
.watch .scn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.watch .ctl { margin-top: 18px; }
.stages { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.stages li { display: grid; justify-items: start; gap: 6px; padding: 12px 8px 0 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.2s ease; }
.stages li span { font-size: 0.72rem; color: var(--muted); }
.stages li[data-s="done"], .stages li[data-s="done"] span { color: var(--ok); }
.stages li[data-s="now"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); margin-top: -1px; }
.stages li[data-s="now"] span { color: var(--accent); }
.watch-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .watch-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 8px 0 14px; }
.tile { display: grid; gap: 2px; justify-items: center; padding: 8px 4px; border: 1px solid var(--line); font-size: 0.8rem; transition: background-color 0.2s ease, border-color 0.2s ease; }
.tile b { font-variant-numeric: tabular-nums; }
.tile i { font-style: normal; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-height: 1.1em; }
.tile[data-s="asked"] { border-style: dashed; border-color: var(--muted); }
.tile[data-s="yes"] { background: var(--ok-soft); border-color: var(--ok); }
.tile[data-s="yes"] i { color: var(--ok); }
.tile[data-s="no"] { background: var(--bad-soft); border-color: var(--bad); }
.tile[data-s="no"] i { color: var(--bad); }
.tally { min-height: 60px; margin: 0; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; background: var(--water-soft); border-left: 3px solid var(--muted); transition: background-color 0.2s ease; }
.tally strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tally span { font-size: 0.85rem; color: var(--muted); }
.tally[data-tone="wait"] { background: var(--warn-soft); border-left-color: var(--warn); }
.tally[data-tone="ok"] { background: var(--ok-soft); border-left-color: var(--ok); }
.tally[data-tone="bad"] { background: var(--bad-soft); border-left-color: var(--bad); }
.money { display: flex; gap: 6px; margin: 8px 0 14px; }
.mbar { display: grid; gap: 2px; align-content: center; min-height: 68px; min-width: 0; padding: 8px 12px; border: 1px dashed var(--muted); font-size: 0.8rem; transition: background-color 0.25s ease, border-color 0.25s ease; }
.mbar b { font-weight: 800; }
.mbar span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; min-height: 1.1em; }
.mbar[data-s="reserved"] { border-style: solid; border-color: var(--ink); background: var(--water-soft); }
.mbar[data-s="paid"], .mbar[data-s="released"] { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.mbar[data-s="held"] { border-style: solid; border-color: var(--warn); background: var(--warn-soft); }
.mbar[data-s="returned"] { border-style: solid; border-color: var(--bad); background: var(--bad-soft); }
.watch .note { min-height: 4.6em; margin: 0; }

/* phones */
@media (max-width: 700px) {
  .wrap { width: min(1080px, 100% - 32px); }
  .top-in { padding-block: 8px; gap: 0 12px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 22px; margin-left: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 12px 0; }
  .pill.small { margin-left: auto; }
  .statrow { grid-template-columns: 1fr; }
  .statrow > div, .statrow > div + div { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .statrow > div:first-child { border-top: 0; }
  .stages li { font-size: 0.58rem; letter-spacing: 0.04em; }
  .hero h1 { max-width: none; }
  .cta .pill { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, .pill, button::before, .pill::before { transition: none; }
  .live-dot, .flash, .tw-d.typing::after, .hero-in > * { animation: none; }
  .reveal, .tile, .tally, .mbar, .stages li, .plist .go { transition: none; }
}

/* judge sandbox, NFT records, NEAR stack */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--ink); margin: 0 0 28px; }
.roles > div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.roles p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.role { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px; background: var(--ink); color: var(--bg); }
.voters { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.voters li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.voters button { min-height: 38px; padding: 0 14px; }
.txlog { padding-left: 1.2em; }
.txlog li { padding: 4px 0; }
.nft { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 0.9rem; }
.nft dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.nft dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nfttag { display: block; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.trystrip { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 64px); padding: 22px 24px; border: 1px solid var(--ink); text-decoration: none; background: var(--ink); color: var(--bg); transition: background-color 160ms ease, color 160ms ease; }
.trystrip .kicker { display: block; color: #b9b6ac; margin-bottom: 8px; }
.trystrip b { display: block; font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.trystrip em { display: block; font-style: normal; color: #d5d2c8; margin-top: 4px; }
.trystrip > span:last-child { font-size: 1.6rem; transition: transform 160ms ease; }
@media (hover: hover) { .trystrip:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); } .trystrip:hover .kicker, .trystrip:hover em { color: #0a0a0a; } .trystrip:hover > span:last-child { transform: translateX(6px); } }
.stack { margin-top: 28px; }
.stack ul { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.stack li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .nft { grid-template-columns: 1fr; gap: 2px; } .nft dd { margin-bottom: 8px; } .trystrip { padding: 18px; } }

/* ---- v2: pump NFT history, invoices, community */
.holders { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.holders li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 6px; font-size: 0.85rem; }
.holders small { color: var(--muted); }
.invoice h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.grid.small p { margin: 4px 0 0; }
.tabs { gap: clamp(12px, 2vw, 22px); }
@media print {
  .top, .foot, #hero, .row button, .skip, #wallet-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #999; }
}
.tiers { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 6px; }
