/* clone.beer: one bright page, flat dark cards, one grid.
   Type: General Sans for everything you read, Baloo 2 for the big lowercase headings.
   Radii: 22px cards, 999px pills, 14px small bits. Spacing steps: 14 / 28 / section. */

:root {
  --bg: #fecb1f;            /* brand yellow, the art's own background */
  --ink: #1d1a17;           /* headings + body on yellow */
  --ink-soft: #7a4a0c;      /* the lighter second line (4.9:1 on yellow) */
  --ink-2: #4a4239;         /* small notes on yellow (6.5:1) */
  --rule: rgba(29, 26, 23, 0.2);

  --card: #1a1510;          /* dark stout */
  --card-2: #241d15;
  --line: rgba(255, 247, 230, 0.12);
  --cream: #fff7e6;
  --cream-75: rgba(255, 247, 230, 0.75);
  --cream-60: rgba(255, 247, 230, 0.6);
  --cream-30: rgba(255, 247, 230, 0.3);

  --green: #3ddc84;         /* money on dark */
  --green-ink: #1e8e3e;     /* money on light */
  --red: #ff6b5a;
  --orange: #f7931e;
  --amber: #ffb21e;

  --r-card: 22px;
  --r-sm: 14px;
  --r-pill: 999px;
  --shadow: 0 18px 50px -24px rgba(70, 45, 0, 0.55);

  --gap: 14px;
  --sec: clamp(64px, 6vw + 36px, 112px);
  --gutter: 22px;

  --font: 'General Sans', -apple-system, system-ui, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Baloo 2', 'General Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  position: relative;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
b, strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.card :focus-visible { outline-color: var(--amber); }
.desk :focus-visible, .phone :focus-visible { outline-color: var(--ink); }
.seg :focus-visible, .tabs :focus-visible { outline-color: var(--ink); outline-offset: 1px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 60; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the giant faint badge, top right, clipped, behind everything; phones skip it (no room beside the text) */
.wm-clip { position: absolute; inset: 0 0 auto 0; height: 760px; overflow: hidden; pointer-events: none; z-index: 0; display: none; }
.wm { position: absolute; top: -90px; right: -90px; width: 320px; opacity: 0.07; }

.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 16px var(--gutter) 24px; }

/* ── type ─────────────────────────────────────────────────────────────── */

h1, .sh {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
h1 { font-size: clamp(35px, 4vw + 21px, 56px); line-height: 0.98; color: var(--ink); margin-bottom: 16px; }
.sh { font-size: clamp(28px, 1.6vw + 22px, 46px); line-height: 1.02; color: var(--ink); margin-bottom: 28px; max-width: 18ch; }
.sh.wide { max-width: none; }
h1 .soft, .sh .soft { color: var(--ink-soft); }
h1, .sh, .cta-title, .trust, .ca.blank b { text-wrap: balance; }
#s-stamp, #stamp { white-space: nowrap; }
.lede, .trust, .card p, .note, .sub { text-wrap: pretty; }
.lede { font-size: clamp(15px, 0.3vw + 14px, 16.5px); font-weight: 500; line-height: 1.42; max-width: 460px; color: var(--ink); }
.note { font-size: 15px; color: var(--ink-2); }
.num { font-family: var(--font); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.money { color: var(--green); }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 47px; padding: 12px 22px;
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  background: var(--ink); color: var(--cream);
  font: 600 15px/21px var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { background: rgba(29, 26, 23, 0.07); }
.btn.light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.ghost-light { background: transparent; color: var(--cream); border-color: var(--cream-30); }
.btn.ghost-light:hover { border-color: var(--cream); }
.btn.yellow { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.block { display: flex; width: 100%; }
.btn[aria-disabled='true'] { background: transparent; color: var(--cream-60); border: 1px dashed var(--cream-30); cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── header ───────────────────────────────────────────────────────────── */

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font: 800 23px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 500; text-decoration: none; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: rgba(29, 26, 23, 0.08); }
.icon-btn svg { width: 18px; height: 18px; }
.pill { padding: 12px 18px; }
.pill .pill-long { display: none; }
.pill .pill-long b { font-weight: 600; }

/* ── cards ────────────────────────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--card); color: var(--cream);
  border-radius: var(--r-card);
  padding: 24px 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card p { color: var(--cream-75); }
.label { display: block; font: 600 14px/1.35 var(--font); color: var(--cream-60); letter-spacing: 0; text-transform: none; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 14px; }
.card-head .label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.card-title { font: 600 19px/1.25 var(--font); color: var(--cream); margin: 8px 0 8px; }
.card .big { font: 800 clamp(32px, 1.2vw + 26px, 40px)/1 var(--display); letter-spacing: -0.02em; color: var(--amber); margin: 16px 0 10px; }
.card .big.cream { color: var(--cream); }
.card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: var(--cream); font-weight: 500; text-underline-offset: 4px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255, 178, 30, 0.16); color: var(--amber); font: 600 14px/1 var(--font); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

.grid-2, .grid-3 { display: grid; gap: var(--gap); }
.sec { margin-top: var(--sec); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { display: grid; gap: 36px; margin-top: 40px; }
.hero-copy .btn-row { margin-top: 24px; }
.trust { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.trust .dot { background: var(--green-ink); margin-top: 7px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bear { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm); }
.bear img { width: min(236px, 64vw); }
.hero-side .card { width: 100%; }
.wiggle { animation: wiggle 0.6s ease; }
@keyframes wiggle { 25% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }

/* leaderboard */
.lb { border-top: 1px solid var(--line); }
.lb-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: 'av name go' 'av pnl go';
  column-gap: 12px; align-items: center; padding: 12px 0; min-height: 64px;
  border-bottom: 1px solid var(--line); color: var(--cream); text-decoration: none;
}
.lb-row:hover .lb-go { background: var(--cream); }
.avatar { grid-area: av; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--ink); font: 700 15px/1 var(--font); }
.lb-row:nth-child(5n+2) .avatar { background: var(--orange); }
.lb-row:nth-child(5n+3) .avatar { background: var(--cream); }
.lb-row:nth-child(5n+4) .avatar { background: #f2d38a; }
.lb-row:nth-child(5n+5) .avatar { background: #e8a95c; }
.lb-name { grid-area: name; min-width: 0; }
.lb-name b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-size: 14px; color: var(--cream-60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pnl { grid-area: pnl; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.lb-pnl.neg { color: var(--red); }
.lb-pnl .cp-m { color: var(--cream-60); font-weight: 400; }
.lb-name .cp-d { display: none; }
.lb-go .arr { display: none; }
.lb-pnl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-go { grid-area: go; display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font: 600 14px/1 var(--font); transition: background-color 0.15s ease; }
.lb-empty { padding: 16px 0; color: var(--cream-75); }

/* ── books (stats) ────────────────────────────────────────────────────── */

.books { display: grid; gap: var(--gap); }
.tvl-card { display: flex; flex-direction: column; }
.tvl-card .num { font-size: clamp(44px, 2vw + 36px, 60px); margin-top: 12px; }
.tvl-card .sub { margin-top: 8px; }
.spark { width: 100%; height: 150px; margin-top: 20px; flex: 1 1 auto; min-height: 120px; }
.spark-dates { display: flex; justify-content: space-between; font-size: 14px; color: var(--cream-60); margin-top: 6px; }
.stat .num { font-size: clamp(34px, 1vw + 30px, 42px); margin: 12px 0 6px; }
.books-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.books-foot .note { flex: 1 1 260px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font: 600 14px/1.2 var(--font); }
.badge.hot { background: var(--card); color: var(--amber); }
.badge.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ── mirror table ─────────────────────────────────────────────────────── */

.split { display: grid; gap: 28px; align-items: center; }
.split .sh { margin-bottom: 18px; }
.mirror .card-head b { color: var(--cream); font-weight: 600; }
.mtable { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 15px; }
.mtable .unit, .mtable .h-long { display: none; }
.mtable th { font: 600 14px/1.2 var(--font); color: var(--cream-60); text-align: left; padding: 0 8px 10px; border-bottom: 1px solid var(--line); }
.mtable td { padding: 0 8px; height: 50px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cream); }
.mtable .r { text-align: right; }
.mtable .buy { color: var(--green); }
.mtable .sell { color: var(--red); }
.mtable .when { color: var(--cream-60); font-variant-numeric: tabular-nums; }
.mtable tr.you .when { color: var(--amber); }
.mtable .amt { font-variant-numeric: tabular-nums; }
.mtable tr.you td { background: rgba(255, 178, 30, 0.1); }
.mtable tr.you td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.mtable tr.you td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.mtable tr.new td { animation: row-in 0.5s ease both; }
@keyframes row-in { from { opacity: 0; background-color: rgba(255, 178, 30, 0.22); } }
.tok { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.tok b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.tok-ico { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 7px; flex: none; border-radius: 50%; background: var(--c, var(--amber)); color: var(--ink); font: 700 14px/1 var(--font); }
.you-tag { display: inline-flex; align-items: center; justify-content: center; height: 24px; width: 40px; min-width: 40px; padding: 0; flex: none; border-radius: var(--r-pill); background: var(--amber); color: var(--ink); font: 700 14px/1 var(--font); }
.mirror-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-size: 15px; }
.mirror-note .dot { margin-top: 7px; }

/* ── devices: telegram phone + desktop mocks ──────────────────────────── */

.device { display: flex; flex-direction: column; }
.device .mock { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; margin: 22px 0; }
.device .btn-row { margin-top: auto; }

.phone { width: min(300px, 100%); padding: 8px; border-radius: var(--r-card); background: #0e0b08; border: 1px solid var(--line); }
.phone-screen { border-radius: var(--r-sm); overflow: hidden; background: #efe5cf; color: var(--ink); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--cream); border-bottom: 1px solid rgba(29, 26, 23, 0.08); }
.tg-head img { width: 32px; height: 32px; }
.tg-head b { display: block; font-size: 14px; }
.tg-head small { display: block; font-size: 12px; color: #6f665a; }
.tg-head .tag { margin-left: auto; background: var(--bg); color: var(--ink); height: 22px; font-size: 12px; }
.tg-chat { height: 330px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; }
.tg-input { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; font-size: 13px; color: #8a8174; }
.tg-input .menu { padding: 4px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-weight: 600; font-size: 12px; }
.msg { align-self: flex-start; max-width: 90%; padding: 7px 10px 6px; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: 14px; line-height: 1.35; box-shadow: 0 1px 0 rgba(29, 26, 23, 0.08); animation: msg-in 0.35s ease both; }
.msg small { display: block; margin-top: 2px; font-size: 12px; color: #6f665a; }
.msg.good { background: #fff1c9; }
.msg.exit { background: #ffe4dc; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }

.desk { width: 100%; border-radius: var(--r-sm); overflow: hidden; background: #f4ecdc; border: 1px solid var(--line); color: var(--ink); container-type: inline-size; }
.desk-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #2b241b; }
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5a4c3b; }
.desk-bar i:first-child { background: var(--red); }
.desk-bar i:nth-child(2) { background: var(--amber); }
.desk-bar i:nth-child(3) { background: var(--green); }
.desk-bar span { margin-left: 8px; font-size: 12px; color: var(--cream-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 330px; }
.desk-list { background: #ebe0ca; padding: 8px; font-size: 13px; }
.desk-list div { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r-sm); white-space: nowrap; overflow: hidden; }
.desk-list .on { background: var(--bg); font-weight: 600; }
.desk-list img { width: 22px; height: 22px; }
.desk-list .ph { width: 22px; height: 22px; border-radius: 50%; background: #d8c9aa; flex: none; }
.desk-chat { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-width: 0; }
.desk-chat .msg { max-width: 100%; animation: none; }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kb button { min-height: 44px; padding: 6px 8px; border: 1px solid rgba(29, 26, 23, 0.1); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; }
.kb button:hover { background: #fff7e0; }
.kb button[aria-pressed='true'] { background: var(--bg); border-color: var(--ink); }
.kb .wide { grid-column: span 2; }
.desk-chat .reply { background: #fff1c9; }
.desk-chat .reply.hint { background: transparent; box-shadow: none; color: #6f665a; padding-left: 2px; }
@container (max-width: 430px) {
  .desk-body { grid-template-columns: minmax(0, 1fr); }
  .desk-list { display: none; }
}

/* ── pour calculator ──────────────────────────────────────────────────── */

.calc { display: grid; gap: 24px; }
.calc .label { margin-bottom: 18px; }
.field { display: block; margin-bottom: 8px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 15px; color: var(--cream); }
.field-top output { color: var(--amber); font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --fill: 50%; }
input[type='range']::-webkit-slider-runnable-track { height: 10px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--amber) var(--fill), var(--cream) var(--fill)); }
input[type='range']::-moz-range-track { height: 10px; border-radius: var(--r-pill); background: var(--cream); }
input[type='range']::-moz-range-progress { height: 10px; border-radius: var(--r-pill); background: var(--amber); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: var(--cream); border: 6px solid var(--ink); box-shadow: 0 0 0 2px var(--cream); }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cream); border: 6px solid var(--ink); box-shadow: 0 0 0 2px var(--cream); }
input[type='range']:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 10px 0 18px; border-radius: var(--r-pill); background: var(--cream); }
.seg button { min-height: 44px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--cream); }
.result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px; border-radius: var(--r-sm); background: var(--card-2); }
.glass { width: 120px; height: auto; }
.result .num { font-size: clamp(36px, 1.5vw + 30px, 48px); color: var(--cream); }
.result .sub { font-size: 15px; color: var(--cream-75); }
.capped { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--orange); color: var(--ink); font: 600 14px/1 var(--font); visibility: hidden; }
.capped.on { visibility: visible; }

/* ── steps + features ─────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 8px 26px; display: grid; }
.steps li { padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.step-n { display: block; font: 800 36px/1 var(--display); letter-spacing: -0.02em; color: var(--amber); margin-bottom: 12px; }
.steps h3, .feat h3 { font: 600 18px/1.3 var(--font); color: var(--cream); margin-bottom: 6px; }

/* ── token ────────────────────────────────────────────────────────────── */

.token { display: grid; gap: 22px; align-items: center; }
.token-logo { width: 96px; height: 96px; }
.card .token-title { font: 800 clamp(34px, 1.5vw + 28px, 46px)/1 var(--display); letter-spacing: -0.01em; color: var(--cream); margin: 6px 0 10px; }
.token-widget { display: grid; gap: 12px; }
.ca { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); font: 500 15px/1.35 var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; color: var(--cream); overflow-wrap: anywhere; }
.ca.blank { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; border: 1.5px dashed var(--cream-30); background: transparent; }
.ca.blank b { color: var(--cream); font-weight: 600; }
.ca.blank span { color: var(--cream-60); font-size: 14px; }
.token-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.token-actions .btn { flex: 1 1 auto; }
.token-chart { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 500; text-underline-offset: 4px; justify-self: start; }

/* ── faq + last call ──────────────────────────────────────────────────── */

.faq-row { display: grid; gap: var(--gap); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 0; cursor: pointer; list-style: none; font: 600 16px/1.3 var(--font); color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 22px/1 var(--font); color: var(--cream-60); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; max-width: 70ch; }
.cta { display: flex; flex-direction: column; }
.cta picture { align-self: stretch; display: flex; justify-content: center; align-items: flex-end; background: var(--bg); border-radius: var(--r-sm); margin-bottom: 18px; overflow: hidden; }
.cta img { width: 150px; margin: 10px 0 0; }
.cta-title { font: 800 clamp(30px, 1vw + 26px, 38px)/1.02 var(--display); letter-spacing: -0.02em; color: var(--cream); margin: 8px 0 12px; text-transform: lowercase; }
.cta-title span { color: var(--amber); }
.cta .btn { margin-top: 24px; }
.cta .grow { flex: 1 1 auto; }

/* ── footer ───────────────────────────────────────────────────────────── */

.foot { margin-top: 96px; border-top: 1px solid var(--rule); padding-top: 32px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand { font-size: 23px; }
.foot-brand p { margin-top: 8px; color: var(--ink-2); max-width: 32ch; }
.foot-col h2 { font: 600 14px/1.3 var(--font); color: var(--ink-2); margin: 0 0 4px; }
.foot-col a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-col svg { width: 15px; height: 15px; flex: none; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 24px; padding: 16px 0 8px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.foot-legal b { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 20px; z-index: 50; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream); font-weight: 600; box-shadow: var(--shadow); animation: msg-in 0.25s ease both; }

/* ── /data ────────────────────────────────────────────────────────────── */

.dhero { display: grid; gap: 28px; margin-top: 40px; align-items: center; }
.stamp { margin: 18px 0 12px; font-size: 15px; color: var(--ink-2); }
.stamp b { color: var(--ink); }
.cards-2x2 { display: grid; gap: var(--gap); }
.cards-2x2 .num { font-size: clamp(36px, 1vw + 32px, 46px); margin: 12px 0 8px; }
.cards-2x2 .wide { grid-column: 1 / -1; }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.chart-head .sub { margin-top: 4px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--cream); }
.tabs button { min-width: 52px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--ink); color: var(--cream); }
.bars-wrap { position: relative; padding-top: 34px; }
.bars { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: clamp(4px, 0.9vw, 12px); height: 206px; border-radius: 0; touch-action: pan-y; }
.bars::before { content: ''; position: absolute; left: 0; right: 0; bottom: var(--base, 0%); height: 1px; background: var(--cream-30); pointer-events: none; }
.bars:focus-visible { outline-offset: 6px; border-radius: 6px; }
.bar { position: relative; flex: 1 1 0; min-width: 2px; max-width: 72px; cursor: pointer; }
.bar:only-child { margin-left: auto; }
.bar i { position: absolute; left: 0; right: 0; bottom: var(--base, 0%); display: block; height: 0; background: var(--amber); border-radius: 6px 6px 0 0; box-shadow: inset 0 5px 0 var(--cream); transition: height 0.6s cubic-bezier(0.3, 1.2, 0.5, 1); }
.bar.today i { background: var(--orange); }
.bar.neg i { bottom: auto; top: calc(100% - var(--base, 0%)); background: var(--red); border-radius: 0 0 6px 6px; box-shadow: none; }
.bar.zero i { height: 3px !important; background: var(--cream-30); border-radius: 2px; box-shadow: none; }
.bar.on i { background: var(--cream); box-shadow: none; }
.val { position: absolute; padding: 3px 8px; border-radius: var(--r-pill); background: var(--card-2); color: var(--cream); font: 600 14px/1.3 var(--font); white-space: nowrap; pointer-events: none; }
.tip { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--cream); color: var(--ink); font: 600 14px/1.3 var(--font); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.12s ease; z-index: 2; }
.tip.on { opacity: 1; }
.axis { position: relative; height: 24px; margin-top: 8px; font-size: 14px; color: var(--cream-60); }
.axis span { position: absolute; top: 0; white-space: nowrap; }
.empty { align-self: center; margin: auto; color: var(--cream-75); text-align: center; }
.chains-total { font-size: clamp(36px, 1vw + 32px, 46px); margin: 12px 0 8px; }
.chains { display: grid; gap: 18px; margin-top: 22px; }
.chain { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--cream); }
.chain .track { grid-column: 1 / -1; }
.chain .pct b { color: var(--cream); font-weight: 600; }
.chain .track { height: 12px; border-radius: var(--r-pill); background: rgba(255, 247, 230, 0.1); overflow: hidden; }
.chain .fill { width: 0; height: 100%; border-radius: var(--r-pill); background: var(--amber); transition: width 0.8s ease; }
.chain .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--cream-75); }
.token-note { margin-bottom: 16px; }

/* ── breakpoints ──────────────────────────────────────────────────────── */

@media (max-width: 380px) {
  :root { --gutter: 18px; }
  .card { padding: 22px 20px; }
  .steps { padding: 6px 20px; }
  .brand { font-size: 21px; gap: 8px; }
  .lb-row { column-gap: 10px; }
  .brand img { width: 34px; height: 34px; }
  .pill { padding: 12px 16px; }
  .mtable td, .mtable th { padding-left: 5px; padding-right: 5px; }
  .tok { gap: 7px; }
}

@media (min-width: 480px) {
  .wm-clip { display: block; }
}

@media (min-width: 560px) {
  .lb-row { grid-template-columns: 38px minmax(0, 1fr) auto auto; grid-template-areas: 'av name pnl go'; column-gap: 16px; }
  .lb-pnl .cp-m { display: none; }
  .lb-name .cp-d { display: inline; }
  .lb-go .arr { display: inline; }
  .mtable { table-layout: fixed; }
  .mtable col.c-tok { width: 44%; }
  .mtable col.c-act { width: 17%; }
  .mtable col.c-amt { width: 23%; }
  .mtable col.c-when { width: 16%; }
  .mtable .unit { display: inline; }
  .mtable .h-short { display: none; }
  .mtable .h-long { display: inline; }
  .cards-2x2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .pill .pill-long { display: inline; }
  .pill .pill-short { display: none; }
  .pill { padding: 12px 22px; }
  .brand { font-size: 26px; }
  .brand img { width: 40px; height: 40px; }
  .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .books { grid-template-columns: repeat(3, 1fr); }
  .books .tvl-card { grid-column: 1 / -1; }
  .token { grid-template-columns: 96px minmax(0, 1fr); }
  .token .token-widget-wrap { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: center; }
}

/* tablet band: the last-call card lies on its side next to the FAQ's width */
@media (min-width: 760px) and (max-width: 899px) {
  .cta { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 26px; align-content: start; }
  .cta picture { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .cta > :not(picture) { grid-column: 2; }
  .cta .grow { display: none; }
  .cta .btn { align-self: end; }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
  .steps li { padding: 0 26px; border-top: 0; border-left: 1px solid var(--line); }
  .steps li:first-child { border-left: 0; }
  .books { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: repeat(3, auto); }
  .books .tvl-card { grid-column: 1; grid-row: 1 / span 3; }
  .faq-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; }
}

@media (min-width: 960px) {
  .wm { width: 560px; top: -150px; right: -300px; opacity: 0.06; }
  h1 { font-size: clamp(48px, 3.4vw + 17px, 64px); }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 24px; }
  .hero-side { align-items: flex-start; }
  .bear img { width: 220px; }
  .dhero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; margin-top: 64px; }
  .token { grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; }
  .token-logo { width: 112px; height: 112px; }
  .token .token-widget-wrap { grid-column: auto; }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .lb-row { column-gap: 12px; }
}

@media (min-width: 1024px) {
  .nav { display: flex; gap: 2px; margin-left: auto; margin-right: 6px; }
}

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

/* keep short last lines from stranding a single word */
p, li, summary, h3, .label { text-wrap: pretty; }
/* below 340px the wordmark needs the room the X icon takes */
@media (max-width: 340px) { header .icon-btn { display: none; } }

/* pre-launch: a word in place of a number that doesn't exist yet */
.num.soon { color: var(--cream); font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
.soon-list { list-style: none; margin: auto 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 247, 230, 0.1); display: grid; gap: 10px; }
.soon-list li { color: var(--cream-75); font-size: 15px; }
.soon-list li::before { content: ''; display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green, #3ddc84); }
.soon-list b { color: var(--cream); font-weight: 600; }
