:root {
  --paper: #f2f5f4;
  --ink: #13262b;
  --muted: #5b6f73;
  --rule: #cfdad8;
  --grid: #e1e8e6;
  --panel: #ffffff;
  --liquid: #1c8c82;
  --native: #2f4f8f;
  --select: #c08326;
  --recipes: #a2506a;
  --bad: #b0472f;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}
/* Self-hosted Geist (variable weight), no external/CDN dependency. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("geist-latin.woff2") format("woff2");
}
/* Lucide icons (inline SVG, stroke = currentColor) */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
/* Dark palette: applied by OS preference unless the user forced light, and
   always when the user forces dark via the toggle (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1b1e;
    --ink: #e2ebe9;
    --muted: #93a6a8;
    --rule: #2a3c40;
    --grid: #1d2c30;
    --panel: #142328;
    --liquid: #3fb8ac;
    --native: #7d9be0;
    --select: #e0a64d;
    --recipes: #d07c98;
    --bad: #e27a62;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1b1e;
  --ink: #e2ebe9;
  --muted: #93a6a8;
  --rule: #2a3c40;
  --grid: #1d2c30;
  --panel: #142328;
  --liquid: #3fb8ac;
  --native: #7d9be0;
  --select: #e0a64d;
  --recipes: #d07c98;
  --bad: #e27a62;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--liquid); outline-offset: 2px; }

.top, main, .foot { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 16px;
  position: sticky; top: 0; z-index: 20;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
/* theme-swapped lockup: light variant on light bg, dark variant on dark bg
   (mirrors the palette switch in :root). */
.brand-logo.dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.dark { display: block; }
}
:root[data-theme="dark"] .brand-logo.light { display: none; }
:root[data-theme="dark"] .brand-logo.dark { display: block; }
:root[data-theme="light"] .brand-logo.light { display: block; }
:root[data-theme="light"] .brand-logo.dark { display: none; }
.status { margin: 0; color: var(--muted); font-size: .875rem; flex: 1; }
.range, .unit { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.range button, .unit button {
  font: inherit; font-size: .8125rem; color: var(--muted);
  background: transparent; border: 0; padding: 6px 12px; cursor: pointer;
}
.range button + button, .unit button + button { border-left: 1px solid var(--rule); }
.range button[aria-pressed="true"], .unit button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.theme-toggle {
  font: inherit; font-size: .8125rem; color: var(--muted);
  background: transparent; border: 1px solid var(--rule); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.theme-toggle .icon { width: 15px; height: 15px; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); }

.chart-legend {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
}
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8125rem; }
.chart-legend .sw { width: 11px; height: 11px; border-radius: 2px; flex: none; }

.composition > div { cursor: default; }

/* info "i" button + explanation note */
h2 .info {
  vertical-align: middle; margin-left: 8px;
  width: 18px; height: 18px; border-radius: 50%; padding: 0;
  border: 1px solid var(--rule); background: transparent; color: var(--muted);
  cursor: pointer; display: inline-grid; place-items: center;
}
h2 .info .icon { width: 12px; height: 12px; }
h2 .info:hover, h2 .info[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.info-note {
  margin: 12px 0 0; padding: 12px 14px; border-left: 2px solid var(--liquid);
  background: var(--panel); color: var(--muted); font-size: .875rem; border-radius: 0 6px 6px 0;
}
.info-note dt { color: var(--ink); font-weight: 600; }
.info-note dd { margin: 0 0 8px; }
.info-note dd:last-child { margin-bottom: 0; }

/* hero */
.hero { padding: 40px 0 48px; border-bottom: 1px solid var(--rule); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-bottom: 32px; }
.hero-stat { display: flex; flex-direction: column; gap: 6px; }
.hero-label { color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.hero-value { font: 400 clamp(1.8rem, 4.6vw, 3rem)/1.05 var(--sans); letter-spacing: -.015em; }
.hero-value span { font-weight: 600; }
.hero-note { color: var(--muted); font-size: .95rem; }

/* header nav */
.nav { display: inline-flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.nav a:hover { color: var(--ink); }

/* product cards */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.product { position: relative; border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; background: var(--panel); }
.product-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.product-head .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.product-head h3 { margin: 0; font: 600 1.0625rem/1 var(--sans); }
.product .facts { grid-template-columns: 1fr; gap: 10px; }

/* dismissible stat/chart cards */
.card { position: relative; border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; background: var(--panel); }
.card-x {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: 50%; background: var(--paper);
  color: var(--muted); font-size: .9rem; line-height: 1; cursor: pointer;
  opacity: 0; transition: opacity .12s ease;
}
.card:hover .card-x, .product:hover .card-x, .card-x:focus-visible { opacity: 1; }
.card-x:hover { color: var(--ink); border-color: var(--muted); }
.card .chart { margin: 0; }
.chart-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 28px 12px 0; }

/* band dividers between the staking and investor halves */
.band {
  font: 600 .8125rem/1 var(--sans); text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 48px 0 8px; padding-top: 24px; border-top: 1px solid var(--rule);
  scroll-margin-top: 72px;
}
.band:first-of-type { border-top: 0; padding-top: 0; }

.composition { display: flex; height: 44px; gap: 3px; }
.composition > div { min-width: 4px; border-radius: 3px; transform-origin: left; }
.composition.intro > div { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .composition.intro > div { animation: none; } }

.composition-legend {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px;
}
.composition-legend li { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; }
.composition-legend .sw { width: 12px; height: 12px; border-radius: 2px; margin-top: 5px; }
.composition-legend .name { color: var(--muted); font-size: .875rem; }
.composition-legend .val { grid-column: 2; font-size: 1.0625rem; }
.composition-legend .pct { color: var(--muted); font-size: .875rem; margin-left: 6px; }

/* rows */
.row {
  padding: 40px 0; border-bottom: 1px solid var(--rule);
}
.row-head { margin-bottom: 24px; }
.row-head h2 { font: 600 1.375rem/1.2 var(--sans); margin: 0 0 8px; }
.row-head p { margin: 0 0 16px; color: var(--muted); font-size: .9375rem; max-width: 70ch; }
.row-body { min-width: 0; }

.stale {
  margin: 24px 0 0; padding: 12px 16px; border-left: 3px solid var(--bad);
  background: var(--panel); font-size: .9375rem;
}

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 20px 32px; margin: 0 0 28px;
}
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: .8125rem; }
.facts dd { margin: 2px 0 0; font-size: 1.5rem; line-height: 1.25; }
.facts dd small { display: block; font-size: .8125rem; color: var(--muted); }

.change { margin: 0 0 12px; font-size: .9375rem; }

/* charts */
.chart { margin: 0; }
.chart-plot { position: relative; height: 240px; }
.chart-plot.tall { height: 320px; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart figcaption { margin-top: 8px; color: var(--muted); font-size: .8125rem; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart .empty { fill: var(--muted); font-size: 13px; }

.tip {
  position: fixed; z-index: 10; pointer-events: none;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 8px 10px; font-size: .8125rem; line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); min-width: 160px;
}
.tip .d { color: var(--muted); margin-bottom: 4px; }
.tip .l { display: flex; justify-content: space-between; gap: 16px; }
.tip .l i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.foot { padding-top: 32px; padding-bottom: 48px; color: var(--muted); font-size: .875rem; }
.foot p { max-width: 80ch; margin: 0 0 8px; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .top, main, .foot { padding: 0 16px; }
  .top { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .status { flex-basis: 100%; order: 3; }
  .row { grid-template-columns: 1fr; padding: 32px 0; gap: 16px; }
  .row-head p { max-width: none; }
  .hero { padding: 24px 0 32px; }
  .chart-plot.tall { height: 260px; }
}

/* ---------- kiosk mode (?kiosk): fullscreen wall display, one slide at a time ----------
   Everything is laid out at a fixed 1600x900 (16:9) "stage" and the whole stage
   is scaled by JS to fill the real screen. A 16:9 wall display then fills edge
   to edge at any resolution (1080p, 1440p, 4K) with no tiny-content gaps. */
html.kiosk, html.kiosk body { height: 100%; overflow: hidden; }
.kiosk body { display: flex; flex-direction: column; }
/* strip the whole header + all interactive chrome */
.kiosk .top, .kiosk .nav, .kiosk .status, .kiosk .theme-toggle, .kiosk #reveal,
.kiosk .card-x, .kiosk .info, .kiosk .chart-controls, .kiosk .foot { display: none !important; }
.kiosk main {
  flex: 1; min-height: 0; max-width: none; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0;
}
.kstage { position: relative; width: 1600px; height: 900px; flex: none; transform-origin: center center; }
/* each slide fills the stage; its inner wrapper holds the content and is
   scaled down by JS if it would overflow the stage */
.kiosk .kslide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 44px 64px; }
.kiosk .kslide-inner { width: 100%; transform-origin: center center; }
/* inactive slides are pulled out entirely (orthogonal to the data-ready [hidden]) */
.kiosk .kslide-hidden { display: none !important; }

/* Protocol & token: stack the three sections but let each one's facts spread
   right across the width as one band of tiles each */
.kiosk .kslide-protocol .row { padding: 0; margin-bottom: 26px; border: 0; }
.kiosk .kslide-protocol .row-head { margin-bottom: 10px; }
.kiosk .kslide-protocol .row-head h2 { font-size: 1.85rem; }
.kiosk .kslide-protocol .facts {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 28px;
}
.kiosk .kslide-protocol .facts dd { font-size: 2.3rem; }
.kiosk .kslide-protocol .facts dt { font-size: 1.2rem; }
.kiosk .kslide-protocol .facts dd small { font-size: 1.05rem; }
.kiosk .kslide-protocol .chart-plot { height: 200px; }

/* Products: one even row across the screen, never a ragged 3 + 2.
   minmax(0,1fr) lets the tiles shrink to share the width */
.kiosk .kslide-products .products { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 14px; }

/* shared denser layout */
.kiosk .band { margin: 0 0 16px; border-top: 0; padding-top: 0; font-size: 1.7rem; }
.kiosk .row { padding: 0; border: 0; }
.kiosk .row-head { margin-bottom: 14px; }
.kiosk .row-head h2 { font-size: 1.7rem; margin: 0 0 4px; }
.kiosk .row-head p { display: none; }
.kiosk .hero { border-bottom: 0; padding: 0; }
.kiosk .hero-stats { gap: 20px 56px; margin-bottom: 28px; }
.kiosk .hero-value { font-size: 3.6rem; }
.kiosk .hero-label, .kiosk .hero-note { font-size: 1.3rem; }
.kiosk .facts {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 28px; margin: 0;
}
.kiosk .facts dd { font-size: 2.05rem; margin-top: 2px; }
.kiosk .facts dt, .kiosk .facts dd small { font-size: 1.15rem; }
.kiosk .product { padding: 16px 18px; }
.kiosk .product-head { margin-bottom: 12px; }
.kiosk .product-head h3 { font-size: 1.55rem; }
.kiosk .product .facts dd { font-size: 1.65rem; }
.kiosk .chart-plot { height: 470px; }
.kiosk .chart-plot.tall { height: 520px; }
.kiosk .composition { height: 60px; }
/* chart axis labels are tiny at 4m — scale them up for the wall display */
.kiosk .chart .axis { font-size: 17px; }
.kiosk .chart-legend li { font-size: 1.15rem; }
.kiosk .composition-legend .name, .kiosk .composition-legend .pct { font-size: 1.1rem; }
.kiosk .composition-legend .val { font-size: 1.35rem; }
