/* Blame the Stock — page styles (the result card has its own file: src/ui/card.css) */

:root {
  --bg: #000;
  --fg: #fff;
  --grey: #8b8b8b;
  --line: #262626;
  --line-strong: #3a3a3a;
  --pair: #2433FF;
  --coin: #FF4F1F;
  --radius: 20px;
  /* --font is set by src/ui/page.js to the family chosen in settings.js */
  --font: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;

  /* Headline cut. Tuned per font below. */
  --head-wdth: 62%;
  --head-wght: 900;
  --head-track: -0.02em;
  --head-lh: 0.83;
  --head-word: 0em;

  --gutter: 16px;
  --max: 1200px;
  --menu-top: 12px;
  --menu-h: 54px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
/* tuned by eye against the reference proportions (see dev/previews/fonts.html) */
[data-font="archivo"]    { --head-wdth: 62%; --head-wght: 900; --head-track: -0.018em; --head-word: 0em; }
[data-font="robotoflex"] { --head-wdth: 40%; --head-wght: 850; --head-track: -0.02em;  --head-word: -0.06em; }

@media (min-width: 768px) {
  :root { --gutter: 32px; --menu-top: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 999px;
  background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* the heavy squeezed cut used for big words */
.headline, .wordmark, .section-title, .how-title, .viz-big, .marquee-line, .token-ticker, .footer-mark {
  font-weight: var(--head-wght);
  font-stretch: var(--head-wdth);
  letter-spacing: var(--head-track);
  word-spacing: var(--head-word);
  text-transform: uppercase;
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-white { background: var(--fg); color: var(--bg); padding: 16px 28px; font-size: 16px; }
.btn-white:hover { background: #e6e6e6; }
.btn-small { padding: 11px 16px; font-size: 14px; }

/* ---------- 1. floating pill menu ---------- */
.menu {
  position: fixed;
  z-index: 50;
  top: var(--menu-top);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(calc(100% - 2 * var(--gutter)), 760px);
  height: var(--menu-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 6px 0 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.wordmark {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}
.menu-links { display: flex; align-items: center; gap: 2px; }
.menu-x {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  transition: background-color .2s;
}
.menu-x:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 360px) {
  .menu { padding-left: 14px; }
  .wordmark { font-size: 18px; }
  .btn-small { padding: 10px 12px; font-size: 13px; }
}

/* ---------- 2. hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--menu-top) + var(--menu-h) + clamp(28px, 4.5vh, 72px)) var(--gutter) clamp(56px, 9vh, 104px);
  text-align: center;
}
.headline {
  position: relative;
  z-index: 1;
  margin: 0;
  /* real size is set by motion.js so the wider line fills ~90% of the screen.
     This first guess is close to that result (Archivo), so the paste box barely moves when it lands. */
  font-size: max(48px, min(23.5vw, calc((91.5vh - 160px) * 0.6)));
  line-height: var(--head-lh);
}
/* Before page.js has filled the headline, hold its two lines of space so the paste box doesn't jump. */
.js .headline:empty { height: calc(var(--head-lh) * 2em); }
.headline .line { display: block; }
.headline .line-box { position: relative; display: inline-block; white-space: nowrap; }
.headline .line-text { display: inline-block; }
.headline .line-wipe {
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  top: 0.02em;
  bottom: 0.04em;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
.motion .headline.is-waiting .line-text { opacity: 0; }
.motion .headline.is-revealing .line-text {
  animation: line-text-in 1s linear both;
  animation-delay: calc(var(--i, 0) * 140ms);
}
.motion .headline.is-revealing .line-wipe {
  animation: line-wipe 1s cubic-bezier(.7, 0, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 140ms);
}
@keyframes line-text-in {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
@keyframes line-wipe {
  0%   { transform: scaleX(0); transform-origin: 0 50%; }
  46%  { transform: scaleX(1); transform-origin: 0 50%; }
  54%  { transform: scaleX(1); transform-origin: 100% 50%; }
  100% { transform: scaleX(0); transform-origin: 100% 50%; }
}

.hero-tool {
  position: relative;
  z-index: 4;
  width: min(100%, 680px);
  margin: clamp(24px, 4vh, 48px) auto 0;
}
.paste {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #0a0a0a;
  transition: border-color .2s;
}
.paste:focus-within { border-color: rgba(255, 255, 255, .55); }
.paste input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 10px 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-size: 17px;
  text-overflow: ellipsis;
}
.paste input::placeholder { color: var(--grey); opacity: 1; }
.paste .btn-white { flex: 0 0 auto; height: 52px; padding: 0 30px; font-size: 17px; }
@media (max-width: 600px) {
  .paste { flex-direction: column; align-items: stretch; border-radius: 22px; gap: 6px; }
  .paste input { height: 50px; padding: 0 14px; font-size: 16px; }
  .paste input::placeholder { font-size: 15px; }
  .paste .btn-white { width: 100%; height: 50px; border-radius: 16px; }
}
/* small phones: keep the whole placeholder visible (no "…" at 360px wide) */
@media (max-width: 380px) {
  .paste input { padding: 0 12px; }
  .paste input::placeholder { font-size: 14px; }
}

.examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.examples-label { color: var(--grey); font-size: 14px; margin-right: 4px; }
.example-coin {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.example-coin:hover { border-color: var(--fg); }
.example-coin:active { background: rgba(255, 255, 255, .08); }
.hero-note { margin: 18px 0 0; color: var(--grey); font-size: 14px; }

/* stickers (cursor trail on desktop, taps on phones) */
.sticker-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.sticker {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  animation: sticker-fade var(--fade, 500ms) linear var(--fade-delay, 2000ms) forwards;
}
.sticker-in {
  width: 100%;
  height: 100%;
  animation: sticker-pop 300ms cubic-bezier(.2, 1.5, .45, 1) both;
}
.sticker svg { display: block; width: 100%; height: 100%; overflow: visible; }
@keyframes sticker-pop {
  0% { transform: scale(.35); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes sticker-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---------- 3. result mount (card styles live in card.css) ---------- */
#result {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto;
  scroll-margin-top: calc(var(--menu-top) + var(--menu-h) + 16px);
}
#result:empty { display: none; }

/* ---------- shared section bits ---------- */
.section {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: 0 auto;
  padding-top: clamp(96px, 14vw, 180px);
  scroll-margin-top: calc(var(--menu-top) + var(--menu-h));
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* fade and rise as sections scroll into view */
.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .8s ease, transform .9s var(--ease-out);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 4. how it works ---------- */
/* Three steps joined by a line, and one example card that fills in step by step.
   Wide screens (900px+): steps on the left, the card on the right. With motion on and a normal-height window
   the panel stays put (sticky) while the steps light up and the card adds its next part.
   Phones: three blocks one after another, each with its own copy of the card (made by motion.js). */
.how-stage { margin-top: 32px; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-step {
  --node: 40px;
  position: relative;
  display: grid;
  grid-template-columns: var(--node) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding-bottom: 56px;
}
.how-step:last-child { padding-bottom: 0; }

/* the line joining the steps: one piece under each node, reaching down to the next node; white fills it */
.how-step:not(:last-child)::before,
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) + 8px);
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.how-step:not(:last-child)::after {
  background: var(--fg);
  transform: scaleY(var(--fill, 1));
  transform-origin: 50% 0;
}

/* numbered dot: outlined white = reached, filled white = where you are, grey = still to come */
.how-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: calc(var(--node) * .46);
  font-weight: var(--head-wght);
  font-stretch: var(--head-wdth);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.motion .how-step:not(.is-done):not(.is-active) .how-node { border-color: var(--line-strong); color: #5e5e5e; }
.how-step.is-active .how-node { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.how-body { min-width: 0; }
.how-title {
  margin: max(0px, calc((var(--node) - .9em) / 2)) 0 0;
  font-size: clamp(34px, 9.6vw, 56px);
  line-height: .9;
  text-wrap: balance;
  transition: color .35s ease;
}
.how-text {
  margin: 12px 0 0;
  max-width: 40ch;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.5;
  transition: color .35s ease;
}

/* ---- the example card (same look as the result card) ---- */
.how-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
  overflow: hidden;
}
.how-mini { margin-top: 22px; max-width: 560px; }
.viz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.viz-tag { color: var(--grey); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; }
.viz-chip {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.viz-chain { display: flex; flex-direction: column; padding: 16px 0; }
.viz-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.viz-who { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.viz-who > span { min-width: 0; }
.viz-name { display: block; font-size: 17px; font-weight: 650; line-height: 1.25; }
.viz-sub { display: block; color: var(--grey); font-size: 13px; line-height: 1.35; }
.viz-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.viz-who .viz-key { margin-top: 6px; }
.viz-key-pair { background: var(--pair); }
.viz-key-coin { background: var(--coin); }
/* numbers and arrows stay white (ups and downs are never coloured); blue/vermilion only mark which side is which */
.viz-move { display: inline-flex; align-items: baseline; flex: none; font-size: clamp(38px, 11vw, 64px); white-space: nowrap; }
.viz-big { line-height: .85; }
.viz-arrow { color: var(--fg); font-weight: 500; }
.viz-move .viz-arrow { margin-left: .14em; font-size: .52em; }

/* "paired with": a thin white line with an arrowhead, from the coin's dot down to the pair's dot */
.viz-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: 22px;
  color: var(--grey);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.viz-link::before {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 6px;
  bottom: 7px;
  width: 1px;
  background: var(--fg);
}
.viz-link::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  transform: rotate(45deg);
}

.viz-split { padding-top: 16px; border-top: 1px solid var(--line); }
.viz-verdict {
  margin: 0;
  font-size: clamp(19px, 5.4vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.viz-bar { display: flex; gap: 3px; height: 14px; margin-top: 16px; border-radius: 999px; overflow: hidden; }
.viz-seg { display: block; flex: 50 1 0; min-width: 0; transition: flex-grow .6s var(--ease-out) .1s; }
.viz-seg-pair { flex-grow: 40; background: var(--pair); }
.viz-seg-coin { flex-grow: 60; background: var(--coin); }
.viz-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: 10px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.3;
}
.viz-legend span { display: inline-flex; align-items: center; gap: 8px; }
.viz-legend .viz-key { width: 8px; height: 8px; }
.viz-legend b { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }

.viz-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.viz-nums dt { color: var(--grey); font-size: 12px; line-height: 1.3; }
.viz-nums dd {
  margin: 4px 0 0;
  font-size: clamp(17px, 5.2vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.viz-nums .viz-arrow { margin-right: .14em; }

/* phones, with motion: each block fades and rises in as it arrives; its bar splits from the middle */
@media (max-width: 899px) {
  .how-demo { display: none; }
  .motion .how-step {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .6s ease, transform .7s var(--ease-out);
  }
  .motion .how-step.is-seen { opacity: 1; transform: none; }
  .motion .how-step:not(.is-seen) .viz-seg { flex-grow: 50; }
  .how-step .viz-seg { transition-delay: .35s; }
}
@media (max-width: 380px) {
  .how-step { --node: 36px; column-gap: 14px; }
  .how-card { padding: 16px 14px; }
  .viz-sub { font-size: 12px; }
}

/* wide screens: steps on the left, the card on the right */
@media (min-width: 900px) {
  .how-mini { display: none; }
  .how-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(40px, 5.5vw, 96px);
    align-items: stretch;
  }
  .how-step { --node: 52px; column-gap: clamp(18px, 2vw, 28px); padding-bottom: clamp(20px, 3.4vh, 44px); }
  .how-title { font-size: clamp(36px, min(4.3vw, 6.4vh), 64px); }
  .how-text { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(15px, 2.1vh, 18px); }

  .how-card { padding: clamp(20px, 3.4vh, 36px) clamp(22px, 2.6vw, 36px); }
  .viz-top { padding-bottom: clamp(12px, 2vh, 18px); }
  .viz-chain { flex: 1 1 auto; justify-content: center; padding: clamp(14px, 2.6vh, 28px) 0; }
  .viz-name { font-size: clamp(16px, 2.2vh, 19px); }
  .viz-move { font-size: clamp(40px, 7.4vh, 84px); }
  .viz-link { flex: 1 1 auto; min-height: clamp(30px, 5vh, 52px); max-height: 120px; }
  .viz-split { padding-top: clamp(14px, 2.6vh, 28px); }
  .viz-verdict { font-size: clamp(19px, 3.1vh, 30px); }
  .viz-bar { height: clamp(12px, 1.8vh, 18px); margin-top: clamp(12px, 2.2vh, 22px); }
  .viz-nums { margin-top: clamp(14px, 2.6vh, 26px); padding-top: clamp(12px, 2.2vh, 22px); gap: 16px; }
  .viz-nums dt { font-size: 13px; }
  .viz-nums dd { font-size: clamp(19px, 3vh, 30px); }
}

/* the parts of the card fade in (from faint) as their step arrives */
.how-card [data-at] { transition: opacity .35s ease, transform .4s var(--ease-out); }
.motion .how.is-pinned .how-demo [data-at]:not(.is-on) { opacity: .12; transform: translate3d(0, 8px, 0); }
.motion .how.is-pinned .how-demo .viz-split:not(.is-on) .viz-seg { flex-grow: 50; }
/* the steps on the left: where you are = white, done = white-ish, still to come = grey */
.motion .how.is-pinned .how-step.is-done .how-title { color: rgba(255, 255, 255, .7); }
.motion .how.is-pinned .how-step:not(.is-done):not(.is-active) .how-title { color: #4a4a4a; }
.motion .how.is-pinned .how-step:not(.is-done):not(.is-active) .how-text { color: #454545; }
.motion .how.is-pinned .how-step.is-active .how-text { color: #b4b4b4; }

/* the pinned version: one screen-high panel that stays put for about three short scrolls */
@media (min-width: 900px) and (min-height: 561px) {
  .motion .how { padding-top: clamp(32px, 4vw, 64px); }
  .motion .how-track { height: calc(100vh + 180vh); height: calc(100svh + 180vh); }
  .motion .how-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--menu-top) + var(--menu-h) + clamp(14px, 3vh, 36px)) 0 clamp(16px, 4vh, 44px);
  }
  .motion .how-stage { flex: 0 1 780px; min-height: 0; margin-top: clamp(16px, 3vh, 32px); }
  .motion .how-steps { display: flex; flex-direction: column; height: 100%; }
  .motion .how-step:not(:last-child) { flex: 1 1 auto; }
}

/* ---------- 5. giant sliding line ---------- */
.marquee {
  margin-top: clamp(96px, 14vw, 180px);
  padding: clamp(10px, 2vw, 28px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-line {
  display: block;
  width: max-content;
  white-space: pre;
  font-size: clamp(72px, 17vw, 300px);
  line-height: .9;
  will-change: transform;
}
.marquee-dot { color: var(--coin); }

/* ---------- 6. token ---------- */
.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-top: 32px;
}
.token-ticker {
  margin: 0;
  /* real size is set by motion.js to fill the column */
  font-size: clamp(64px, 12vw, 200px);
  line-height: .85;
  white-space: nowrap;
}
.token-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.token-status { margin: 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.35; color: var(--grey); }
.token-status strong { color: var(--fg); font-weight: 650; }
.token-free { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--grey); font-size: 15px; }
.token-rows { display: grid; gap: 0; margin: 22px 0 0; }
.token-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.token-row:first-child { padding-top: 0; }
.token-row:last-child { border-bottom: 0; padding-bottom: 0; }
.token-row dt { color: var(--grey); font-size: 14px; }
.token-row dd { margin: 0; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.token-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
}
.token-copy {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.token-copy:hover { border-color: var(--fg); }
.token-link { font-weight: 600; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .token-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .token-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- 7. update log ---------- */
.updates-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.updates-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.updates-list time { color: var(--grey); font-size: 15px; font-variant-numeric: tabular-nums; }
.updates-list p { margin: 0; font-size: 17px; }
@media (max-width: 600px) {
  .updates-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- 8. footer ---------- */
.footer {
  width: min(calc(100% - 2 * var(--gutter)), var(--max));
  margin: clamp(120px, 16vw, 220px) auto 0;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-mark {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  line-height: .85;
  /* real size is set by motion.js to fill the column */
  font-size: clamp(48px, 13vw, 210px);
}
.fit-text { display: inline-block; white-space: nowrap; }
.footer-notes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 13px;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  color: var(--grey);
  font-size: 13px;
}
.footer-x { color: var(--fg); text-decoration: none; font-weight: 650; padding: 6px 2px; }
.footer-x:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .footer-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-notes { grid-template-columns: minmax(0, 1fr); } }

.noscript { width: min(calc(100% - 32px), 680px); margin: 40px auto; color: var(--grey); text-align: center; }

/* ---------- reduced motion: everything shows in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  .headline .line-text { opacity: 1 !important; animation: none !important; }
  .headline .line-wipe { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-line { transform: none !important; }
  .sticker-layer { display: none; }
  .how-step, .how-node, .how-title, .how-text, .how-card [data-at], .viz-seg { transition: none !important; }
  .btn, .example-coin, .paste { transition: none; }
}
