/* Spare. Black and bone slabs that overlap on a rounded lip, centred sentence-case display, coins set
   into the headline, solid rounded cards with label-over-value pairs, one lime wash per page. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #090909;
  --ink-2: #141414;
  --ink-3: #1e1e1e;
  --bone: #f4f3ee;
  --bone-2: #e9e8e1;
  --white: #ffffff;
  --mute-d: #8a8a85;
  --mute-l: #6b6a64;
  --line-d: rgba(255, 255, 255, 0.08);
  --line-l: rgba(9, 9, 9, 0.08);
  --lime: #d2ff4c;
  --lime-deep: #a6d81a;
  --red: #ff6b57;
  --lip: 36px;
  --r-card: 28px;
  --r-in: 18px;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.mono, code, pre, kbd { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ── nav ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(9, 9, 9, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }
.nav .links { display: flex; gap: 4px; margin-left: 8px; }
.nav .links a { text-decoration: none; color: var(--mute-d); padding: 8px 12px; border-radius: 999px; font-size: 15px; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--white); background: var(--ink-3); }
.nav .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .nav .links { display: none; } }

/* ── buttons ─────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 6px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; transition: transform .15s ease, background .15s; }
.pill .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.pill .dot svg { width: 16px; height: 16px; }
.pill.lime { background: var(--lime); color: var(--ink); }
.pill.lime .dot { background: var(--ink); color: var(--lime); }
.pill.dark { background: var(--ink-3); color: var(--white); }
.pill.dark .dot { background: var(--white); color: var(--ink); }
.pill.light { background: var(--white); color: var(--ink); }
.pill.light .dot { background: var(--ink); color: var(--white); }
.pill.plain { padding: 0 20px; }
.pill:hover { transform: translateY(-1px); }
.pill:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pill.sm { height: 38px; font-size: 14px; padding: 0 16px; }

/* ── slabs ───────────────────────────────────────────── */
.slab { position: relative; padding: clamp(72px, 10vw, 128px) clamp(16px, 4vw, 40px); }
.slab + .slab { margin-top: calc(-1 * var(--lip)); border-radius: var(--lip) var(--lip) 0 0; }
.slab.dark { background: var(--ink); color: var(--white); }
.slab.bone { background: var(--bone); color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; }
.center { text-align: center; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; }
h1 { font-size: clamp(46px, 8.4vw, 112px); }
h2 { font-size: clamp(38px, 5.8vw, 76px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.03em; line-height: 1.1; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute-d); max-width: 620px; margin: 22px auto 0; line-height: 1.45; }
.bone .lede { color: var(--mute-l); }
.coin { display: inline-block; width: .78em; height: .78em; vertical-align: -.06em; margin: 0 .04em; }
.coin + .coin { margin-left: -.28em; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ── cards ───────────────────────────────────────────── */
.card { border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); }
.card.d { background: var(--ink-2); }
.card.d2 { background: var(--ink-3); }
.card.w { background: var(--white); color: var(--ink); }
.card.b { background: var(--bone-2); color: var(--ink); }
.card.wash { background: radial-gradient(120% 140% at 0% 0%, #f2ffbf 0%, var(--lime) 38%, #7fd36a 100%); color: var(--ink); }
.card .label, .label { font-size: 13px; color: var(--mute-d); letter-spacing: 0; }
.card.w .label, .card.b .label, .bone .label, .card.wash .label { color: var(--mute-l); }
.card.wash .label { color: rgba(9, 9, 9, .62); }
.stat .v { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v.sm { font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.muted { color: var(--mute-d); }
.bone .muted, .card.w .muted { color: var(--mute-l); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
hr.rule { border: 0; height: 1px; background: var(--line-d); margin: 20px 0; }
.card.w hr.rule, .bone hr.rule { background: var(--line-l); }

/* ── hero ────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(110px, 12vw, 160px); overflow: hidden; }
.hero .live { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--mute-d); margin-bottom: 26px; padding: 6px 14px 6px 10px; background: var(--ink-3); border-radius: 999px; text-decoration: none; }
.hero .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(210, 255, 76, .15); }
.hero .live.off i { background: var(--mute-d); box-shadow: none; }

/* The meter: the hero object. A rounded body with notches down both sides, reading the live book. */
.meter { position: relative; max-width: 760px; margin: 64px auto 0; background: var(--ink-2); border-radius: 36px; padding: 30px clamp(20px, 4vw, 40px); text-align: left; }
.meter::before, .meter::after { content: ""; position: absolute; top: 50%; width: 22px; height: 44px; margin-top: -22px; background: var(--ink); border-radius: 0 22px 22px 0; left: 0; }
.meter::after { left: auto; right: 0; border-radius: 22px 0 0 22px; }
.meter .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.meter .price { font-size: clamp(56px, 9vw, 96px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.meter .price small { font-size: .32em; letter-spacing: -0.02em; color: var(--mute-d); font-weight: 500; margin-left: 6px; }
.meter .bar { height: 10px; border-radius: 99px; background: var(--ink-3); margin: 26px 0 22px; overflow: hidden; display: flex; }
.meter .bar span { display: block; height: 100%; background: var(--lime); }
.meter .bar span + span { background: #9fbf3a; }
.meter .bar span + span + span { background: #6e8530; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink-3); font-size: 13px; color: var(--mute-d); white-space: nowrap; }
.card.w .chip, .bone .chip { background: var(--bone-2); color: var(--mute-l); }
.chip.on { background: rgba(210, 255, 76, .14); color: var(--lime); }
.card.w .chip.on, .bone .chip.on { background: var(--ink); color: var(--lime); }

/* ── forms ───────────────────────────────────────────── */
.field { display: flex; align-items: center; gap: 8px; background: var(--bone); border-radius: var(--r-in); padding: 0 18px; height: 68px; }
.card.d .field, .card.d2 .field, .dark .field { background: var(--ink-3); }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.field select { font-size: 18px; }
.field .unit { font-size: 15px; color: var(--mute-l); }
.dark .field .unit, .card.d .field .unit { color: var(--mute-d); }
.field:focus-within { box-shadow: 0 0 0 2px var(--lime-deep); }
.field.sm { height: 52px; }
.field.sm input { font-size: 18px; }
.rows { margin-top: 18px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line-l); }
.dark .row, .card.d .row, .card.d2 .row { border-color: var(--line-d); }
.row:last-child { border-bottom: 0; }
.row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.row.total { font-size: 18px; }
.note { font-size: 13px; color: var(--mute-l); margin-top: 12px; }
.dark .note, .card.d .note { color: var(--mute-d); }
.err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 1em; }
.ok { color: var(--lime-deep); font-size: 14px; margin-top: 10px; }
.dark .ok, .card.d .ok { color: var(--lime); }

.seg { display: inline-flex; background: var(--bone-2); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.dark .seg, .card.d .seg { background: var(--ink-3); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--mute-l); }
.dark .seg button, .card.d .seg button { color: var(--mute-d); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dark .seg button[aria-pressed="true"], .card.d .seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

/* ── book ────────────────────────────────────────────── */
.tiers { margin-top: 18px; }
.tier { display: grid; grid-template-columns: 74px 1fr 96px; align-items: center; gap: 14px; padding: 9px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.tier .t { font-weight: 600; }
.tier .track { height: 8px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.tier .track i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.tier .a { text-align: right; color: var(--mute-d); }

/* ── models table ────────────────────────────────────── */
.models { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.models th { text-align: left; font-weight: 500; font-size: 13px; color: var(--mute-d); padding: 0 0 12px; }
.models td { padding: 16px 0; border-top: 1px solid var(--line-d); font-size: 16px; }
.models td.r, .models th.r { text-align: right; }
.models .id { font-family: var(--mono); font-size: 12px; color: var(--mute-d); margin-top: 2px; }
.models s { color: var(--mute-d); text-decoration-thickness: 1px; }
.models .save { color: var(--lime); font-weight: 600; }
@media (max-width: 640px) { .models .hide-sm { display: none; } }

/* ── code ────────────────────────────────────────────── */
.code { background: var(--ink); color: #d9d9d4; border-radius: var(--r-in); padding: 20px 22px; overflow-x: auto; font: 13.5px/1.7 var(--mono); margin: 0; }
.code .c { color: #6f6f69; }
.code .k { color: var(--lime); }
.code .s { color: #f2e6b8; }

/* ── loop diagram (stake → stream → book → gateway) ──── */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.loop .step { background: rgba(9, 9, 9, .07); border-radius: var(--r-in); padding: 16px; }
.loop .step b { display: block; font-size: 22px; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .loop { grid-template-columns: 1fr 1fr; } }

.split { display: flex; height: 54px; border-radius: 16px; overflow: hidden; margin-top: 22px; font-size: 14px; font-weight: 600; }
.split div { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; }
.split .s1 { flex: 50; background: var(--lime); color: var(--ink); }
.split .s2 { flex: 30; background: var(--white); color: var(--ink); }
.split .s3 { flex: 10; background: #59594f; }
.split .s4 { flex: 10; background: var(--ink-3); color: var(--mute-d); }
@media (max-width: 560px) { .split { font-size: 11px; } .split div { padding: 0 6px; } }

/* ── faq ─────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--mute-l); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--mute-l); max-width: 680px; }

/* ── footer ──────────────────────────────────────────── */
.foot { position: relative; padding: 80px clamp(16px, 4vw, 40px) 40px; overflow: hidden; }
.foot .mark { position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); font-weight: 700; font-size: clamp(140px, 30vw, 420px); letter-spacing: -0.07em; color: #151515; line-height: 1; pointer-events: none; user-select: none; }
.foot .card { position: relative; max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot .cols a { display: block; text-decoration: none; color: var(--mute-l); padding: 3px 0; font-size: 15px; }
.foot .cols a:hover { color: var(--ink); }
.foot .legal { position: relative; max-width: 1160px; margin: 18px auto 0; font-size: 12px; color: #55554f; }

/* ── app shell ───────────────────────────────────────── */
.app { max-width: 1160px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 120px; }
.app h1 { font-size: clamp(40px, 6vw, 72px); }
.tabs { display: flex; gap: 4px; margin: 28px 0 22px; flex-wrap: wrap; }
.tabs button { border: 0; background: var(--ink-2); color: var(--mute-d); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.panel[hidden] { display: none; }
.list { display: grid; gap: 10px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--ink-3); border-radius: var(--r-in); padding: 14px 16px; }
.card.w .item { background: var(--bone); }
.empty { color: var(--mute-d); font-size: 15px; padding: 18px 0; }
.banner { background: var(--ink-2); border-radius: var(--r-in); padding: 14px 18px; font-size: 14px; color: var(--mute-d); margin-bottom: 16px; }
.banner b { color: var(--white); font-weight: 600; }
.keybox { font-family: var(--mono); font-size: 14px; word-break: break-all; background: var(--ink); color: var(--lime); padding: 14px 16px; border-radius: 14px; margin-top: 12px; }

/* wallet picker */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal .card { width: min(420px, 100%); }
.modal .wl { display: grid; gap: 8px; margin-top: 16px; }
.modal .wl button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--ink-3); color: var(--white); cursor: pointer; font-weight: 500; }
.modal .wl img { width: 26px; height: 26px; border-radius: 6px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Grid tracks must be allowed to shrink below their inputs' and code blocks' natural width. */
.grid2, .grid3, .stats { min-width: 0; }
.grid2 > *, .grid3 > *, .card, .field, .rows, .row > span { min-width: 0; }
.field input { width: 100%; }
@media (max-width: 880px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg button { padding: 8px 12px; font-size: 13px; }
  .tier { grid-template-columns: 62px 1fr 72px; }
  .actions .pill { flex: 1 1 auto; justify-content: flex-start; }
  .meter .top { flex-direction: column; align-items: flex-start; }
}

/* ── contract address pill ─────────────────────────── */
.ca { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 6px 6px 8px; border-radius: 999px; background: var(--ink-3); max-width: 100%; }
.ca img { width: 26px; height: 26px; border-radius: 50%; }
.ca .sym { font-weight: 600; }
.ca code { font-size: 13px; color: var(--mute-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca button, .ca a { border: 0; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--ink); white-space: nowrap; }
.ca a { background: transparent; color: var(--mute-d); padding: 6px 8px; }
.ca a:hover { color: var(--white); }
.foot .ca { margin-top: 16px; background: var(--bone); }
.foot .ca code { color: var(--mute-l); }
.foot .ca a { color: var(--mute-l); }
.foot .ca button { background: var(--ink); color: var(--white); }
@media (max-width: 560px) { .ca code { max-width: 120px; } }
