/* Tittycoin site. Two themes (cream / red) that cross-fade as you scroll. */

@font-face { font-family: "Fredoka"; src: url("assets/fonts/fredoka-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@property --bg { syntax: "<color>"; inherits: true; initial-value: #F7DFBD; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #D70F11; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #3A0A0B; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #B00C0E; }
@property --on-fg { syntax: "<color>"; inherits: true; initial-value: #FFF5E4; }
@property --on-fg-big { syntax: "<color>"; inherits: true; initial-value: #F7DFBD; }

:root {
  --red: #D70F11;
  --red-deep: #A80B0D;
  --cream: #F7DFBD;
  --paper: #FFF5E4;
  --ink: #3A0A0B;

  /* cream theme (default) */
  --bg: #F7DFBD;
  --fg: #D70F11;      /* big type, shapes, solid buttons */
  --text: #3A0A0B;    /* body copy */
  --accent: #B00C0E;  /* small coloured text */
  --on-fg: #FFF5E4;   /* small text on --fg surfaces */
  --on-fg-big: #F7DFBD;
  --line: color-mix(in srgb, var(--fg) 26%, transparent);
  --soft: color-mix(in srgb, var(--fg) 8%, transparent);

  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 4.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  transition: --bg .7s ease, --fg .7s ease, --text .7s ease, --accent .7s ease, --on-fg .7s ease, --on-fg-big .7s ease;
}
:root[data-theme="red"] {
  --bg: #D70F11;
  --fg: #F7DFBD;
  --text: #FFF5E4;
  --accent: #FFF5E4;
  --on-fg: #3A0A0B;
  --on-fg-big: #D70F11;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  font: 500 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow .num { padding: 5px 9px; border: 1.500px solid currentColor; border-radius: 999px; letter-spacing: .08em; }
.eyebrow .tick { width: 34px; height: 1.500px; background: currentColor; }
.h2 {
  font: 700 clamp(2.6rem, 8.4vw, 6.4rem)/.94 var(--display); letter-spacing: -.02em; color: var(--fg);
  margin-top: clamp(18px, 3vw, 30px); text-wrap: balance;
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; margin-top: clamp(18px, 2.4vw, 28px); }
.fineprint { font-size: .875rem; line-height: 1.5; opacity: .92; max-width: 60em; }

/* ---------- buttons ---------- */
.btn {
  --lift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--fg);
  font: 600 1.0625rem/1 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) - var(--lift)));
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .25s, color .25s;
}
.btn-solid { background: var(--fg); color: var(--on-fg); }
.btn-line { background: transparent; color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn:hover { --lift: 3px; box-shadow: 0 6px 0 0 color-mix(in srgb, var(--text) 85%, transparent); }
.btn:active { --lift: -1px; box-shadow: 0 0 0 0 transparent; transition-duration: .08s; }
.btn-line:hover { background: var(--fg); color: var(--on-fg); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; width: min(calc(100% - 20px), 1180px);
  transform: translate(-50%, 0);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1.500px solid var(--line);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 26px; height: 32px; fill: currentColor; transform-origin: 50% 20%; }
.brand:hover .brand-mark { animation: jiggle .7s var(--ease); }
.brand-name { font: 700 1.3rem/1 var(--display); letter-spacing: -.01em; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--text);
  font: 500 .95rem/1 var(--body); transition: background-color .25s;
}
.nav-links a:hover { background: var(--soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.ca-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.500px solid var(--line); background: transparent; cursor: pointer;
  font: 500 .8125rem/1 var(--mono); color: var(--accent); transition: background-color .25s;
}
.ca-pill:hover { background: var(--soft); }
.ca-pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (min-width: 960px) { .nav-links { display: flex; } }
@media (max-width: 380px) { .brand-name { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 108px var(--pad) 96px; display: grid; align-items: center; overflow: clip; }
.hero-grid { position: relative; width: min(100%, 1320px); margin-inline: auto; display: grid; gap: 28px; align-items: center; }
.hero-title {
  font: 700 clamp(3.7rem, 19.500vw, 9rem)/.86 var(--display); letter-spacing: -.03em; color: var(--fg);
  margin: 18px 0 0 -.04em;
}
.hero-title .line { display: block; overflow: clip; overflow-clip-margin: .04em; padding: .04em .04em .2em; margin-bottom: -.2em; }
.ch { display: inline-block; will-change: transform; }
.js .ch { transform: translateY(115%) rotate(9deg); animation: ch-in .95s var(--ease) forwards; animation-delay: calc(var(--i) * 38ms + 120ms); }
.squiggle { position: relative; display: inline-block; }
.squiggle svg { position: absolute; left: 1%; right: 1%; bottom: -.115em; width: 98%; height: .16em; overflow: visible; }
.squiggle path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 0; }
.js .squiggle path { stroke-dashoffset: 700; animation: draw 1.100s var(--ease) .95s forwards; }
.hero-lede { max-width: 31em; margin-top: clamp(26px, 4vw, 40px); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero-lede strong { color: var(--accent); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.live-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 16px 9px 13px;
  border-radius: 999px; border: 1.500px solid var(--line); text-decoration: none;
  font: 400 .8125rem/1.3 var(--mono); color: var(--text); transition: background-color .25s;
}
.live-chip:hover { background: var(--soft); }
.live-chip b { font-weight: 500; color: var(--accent); }
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; opacity: .45; }
.dot.is-live { opacity: 1; background: #1E9E4A; box-shadow: 0 0 0 0 rgba(30, 158, 74, .55); animation: pulse 2s infinite; }
.dot.is-error { opacity: 1; background: #E0A100; }
.js [data-rise] { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 500ms); }

.blobs { position: absolute; inset: 0; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; background: var(--fg); opacity: .06; animation: bob 9s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { width: 46vmin; height: 46vmin; left: -12vmin; top: 12%; }
.blobs i:nth-child(2) { width: 30vmin; height: 30vmin; right: 6%; top: 6%; animation-duration: 7s; animation-delay: -3s; }
.blobs i:nth-child(3) { width: 58vmin; height: 58vmin; right: -22vmin; bottom: -24vmin; animation-duration: 11s; animation-delay: -5s; }

/* coin */
.hero-coin { display: grid; justify-items: center; gap: 14px; }
.coin-stage {
  --coin: min(68vw, 400px); --thick: 13px;
  position: relative; width: var(--coin); height: var(--coin); perspective: 1100px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.coin-stage:active { cursor: grabbing; }
.coin { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.coin-face, .coin-edge { position: absolute; inset: 0; border-radius: 50%; }
.coin-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-face svg { width: 100%; height: 100%; }
.coin-front { transform: translateZ(var(--thick)); }
.coin-back { transform: rotateY(180deg) translateZ(var(--thick)); }
.coin-edge { background: #9C0A0C; }
.coin-edge:nth-child(odd) { background: #B30C0E; }
.c-rim { fill: #B80D0F; }
.c-dots { fill: none; stroke: #F7DFBD; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .1 15.690; }
.c-field { fill: #D70F11; }
.c-mark { fill: #F7DFBD; overflow: visible; }
.c-field-b { fill: #F7DFBD; }
.c-ring { font: 600 21px var(--display); letter-spacing: 3.200px; fill: #D70F11; }
.c-ticker { font: 700 78px var(--display); fill: #D70F11; letter-spacing: -1px; }
.coin-stage.is-jiggle .c-mark { animation: jiggle .8s var(--ease); transform-box: fill-box; transform-origin: 50% 15%; }
.coin-shadow {
  position: absolute; left: 12%; right: 12%; bottom: -9%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 34%, transparent), transparent);
  transform: scaleX(var(--sx, 1)); filter: blur(3px);
}
.coin-hint { font: 400 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); opacity: .85; margin-top: 18px; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.150fr .85fr; gap: 40px; }
  .hero-title { font-size: clamp(4.5rem, 9.600vw, 9.750rem); }
  .coin-stage { --coin: min(34vw, 460px); --thick: 16px; }
}

/* ---------- marquee bands ---------- */
/* overflow is hidden here so the slanted strips can never make the page wider than the screen */
.bands { position: relative; z-index: 2; overflow: hidden; height: max(clamp(120px, 16vw, 200px), 10vw); margin-top: clamp(-70px, -7vw, -40px); pointer-events: none; }
.band { position: absolute; left: -6vw; right: -6vw; top: 50%; padding: clamp(10px, 1.6vw, 18px) 0; overflow: hidden; }
/* follows the theme, so it never sits red-on-red while the page cross-fades */
.band-a { background: var(--fg); color: var(--on-fg-big); transform: translateY(-50%) rotate(-3deg); }
.band-b { background: var(--ink); color: var(--cream); transform: translateY(-50%) rotate(2.200deg); }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-item { display: inline-flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); padding-right: clamp(16px, 2.4vw, 30px); font: 700 clamp(1.3rem, 3.2vw, 2.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.band-item svg { width: .72em; height: .88em; fill: currentColor; }

/* ---------- meter ---------- */
.meter { padding: clamp(70px, 11vw, 150px) 0 clamp(90px, 12vw, 170px); }
.meter-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); letter-spacing: .1em; }
.meter-label { margin-top: clamp(26px, 4vw, 44px); font: 500 clamp(1.15rem, 2.2vw, 1.6rem)/1.2 var(--display); color: var(--fg); }
.odo-row { display: flex; align-items: flex-start; margin-top: 6px; font: 700 clamp(4.6rem, 21vw, 12.500rem)/1 var(--display); letter-spacing: -.03em; color: var(--fg); }
.odo-cur { font-size: .46em; line-height: 1; margin: .2em .08em 0 0; opacity: .9; }
.odo { display: inline-flex; min-height: 1em; font-variant-numeric: tabular-nums; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform 1.900s var(--ease); transition-delay: calc(var(--k, 0) * 70ms); will-change: transform; }
.odo-s span { height: 1em; line-height: 1; text-align: center; }
.odo-c { display: inline-block; line-height: 1; }
.meter-sub { max-width: 31em; margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.125rem); }
.meter-sub a { text-underline-offset: 3px; }
.sol-note { font: 500 .9em var(--mono); white-space: nowrap; }
.lock { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--fg); color: var(--on-fg); font: 500 .8125rem/1.35 var(--mono); }
.lock[hidden] { display: none; }
.lock svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.receipt { justify-self: center; width: min(100%, 440px); filter: drop-shadow(0 26px 30px rgba(58, 10, 11, .34)); transform: rotate(1.600deg); }
.receipt-paper {
  --z: 9px;
  background: #FFF8EC; color: var(--ink); padding: 26px 22px calc(26px + var(--z));
  font: 400 .8125rem/1.45 var(--mono); border-radius: 14px 14px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.receipt-paper.is-print { animation: print .7s var(--ease); }
.r-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1.500px dashed rgba(58, 10, 11, .35); }
.r-head svg { width: 30px; height: 37px; fill: var(--red); flex: none; }
.r-head b { display: block; font: 700 1.25rem/1 var(--display); letter-spacing: .04em; color: var(--red-deep); }
.r-head span { display: block; margin-top: 4px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
.r-lines li { display: grid; grid-template-columns: 24px 1fr auto 26px; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1.500px dashed rgba(58, 10, 11, .2); }
.r-step { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #FFF8EC; font-size: .6875rem; font-weight: 500; }
.r-what b, .r-amt b { display: block; font: 600 1rem/1.2 var(--display); letter-spacing: .005em; }
.r-what small, .r-amt small, .r-total small { display: block; font-size: .6875rem; line-height: 1.35; color: rgba(58, 10, 11, .76); }
.r-amt { text-align: right; font-variant-numeric: tabular-nums; }
.r-link { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.500px solid rgba(58, 10, 11, .3); text-decoration: none; font-size: .8125rem; transition: background-color .2s, color .2s; }
a.r-link:hover { background: var(--ink); color: #FFF8EC; }
.r-link.is-off { opacity: .3; pointer-events: none; }
.r-link-off { border-color: transparent; color: #1E7D3F; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 14px; border-bottom: 1.500px dashed rgba(58, 10, 11, .35); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.r-total > span:last-child { text-align: right; text-transform: none; letter-spacing: 0; }
.r-total b { display: block; font: 700 1.9rem/1 var(--display); color: var(--red-deep); font-variant-numeric: tabular-nums; }
.r-meta { padding-top: 12px; font-size: .75rem; }
.r-meta div { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; }
.r-meta dt { color: rgba(58, 10, 11, .76); flex: none; }
.r-meta dd { text-align: right; }
.r-meta dd a { display: inline-block; padding: 4px 0; }
.r-bars { height: 34px; margin-top: 16px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px); opacity: .85; }
.r-thanks { margin-top: 10px; text-align: center; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }

@media (min-width: 960px) { .meter-grid { grid-template-columns: 1.200fr .8fr; } .receipt { justify-self: end; } }

/* ---------- story ---------- */
.story { padding: clamp(90px, 14vw, 200px) 0; }
.story-text { margin-top: clamp(24px, 4vw, 44px); font: 500 clamp(1.75rem, 5.200vw, 4.100rem)/1.14 var(--display); letter-spacing: -.015em; color: var(--fg); max-width: 21em; }
.story-text .w { opacity: .16; transition: opacity .5s ease; }
.story-text .w.on { opacity: 1; }

/* ---------- facts ---------- */
.facts { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); }
.stack { margin-top: clamp(36px, 6vw, 70px); }
.fact {
  position: sticky; top: calc(88px + var(--i, 0) * 14px);
  display: grid; align-content: space-between; gap: 18px;
  min-height: min(62svh, 520px); margin-bottom: clamp(20px, 4vh, 44px); padding: clamp(24px, 4.4vw, 54px);
  border-radius: clamp(26px, 4vw, 44px); background: var(--fg); color: var(--on-fg);
  transform-origin: 50% 0; transform: scale(var(--s, 1)); will-change: transform;
  box-shadow: 0 -10px 30px rgba(58, 10, 11, .16);
}
.fact-n { font: 700 clamp(4.4rem, 19vw, 12rem)/.9 var(--display); letter-spacing: -.035em; color: var(--on-fg-big); font-variant-numeric: tabular-nums; }
.fact-t { font: 500 clamp(1.2rem, 2.600vw, 2rem)/1.22 var(--display); max-width: 24em; }
.fact-s { font: 400 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .82; }
.fact-i { position: absolute; top: clamp(24px, 4.4vw, 54px); right: clamp(24px, 4.4vw, 54px); font: 500 .75rem/1 var(--mono); letter-spacing: .12em; opacity: .82; }

/* ---------- self-check ---------- */
.check { padding: clamp(90px, 12vw, 170px) 0; }
.check-top { display: grid; gap: 40px; align-items: center; }
.check-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.spiral { justify-self: center; width: min(74vw, 340px); }
.spiral svg { width: 100%; height: auto; overflow: visible; }
.s-ring { fill: var(--soft); stroke: var(--fg); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; transform-origin: 160px 160px; animation: turn 60s linear infinite; }
.s-ring-2 { animation-direction: reverse; animation-duration: 44s; }
.s-ring-3 { animation-duration: 30s; }
.s-path { fill: none; stroke: var(--fg); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.s-dot { fill: var(--fg); }
.spiral p { display: flex; justify-content: space-between; margin-top: 14px; font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.steps { display: grid; gap: 16px; margin-top: clamp(44px, 7vw, 84px); }
.step { position: relative; padding: clamp(22px, 3vw, 34px); border: 2px solid var(--fg); border-radius: 30px; transition: transform .45s var(--spring), background-color .3s; }
.step:hover { transform: translateY(-6px) rotate(-.6deg); background: var(--soft); }
.step-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--on-fg-big); font: 700 1.4rem/1 var(--display); }
.step h3 { margin-top: 18px; font: 700 clamp(1.5rem, 2.4vw, 1.9rem)/1.05 var(--display); color: var(--fg); }
.step p { margin-top: 10px; }
.check .fineprint { margin-top: 28px; }
@media (min-width: 860px) {
  .check-top { grid-template-columns: 1.200fr .8fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- how ---------- */
.how { padding: clamp(80px, 11vw, 150px) 0; }
.how-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 330px); gap: 14px;
  margin-top: clamp(36px, 6vw, 64px); padding: 8px var(--pad) 26px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.how-rail::-webkit-scrollbar { display: none; }
.how-card {
  position: relative; scroll-snap-align: start; display: grid; align-content: start; gap: 12px;
  min-height: 310px; padding: 26px; border-radius: 32px; background: var(--fg); color: var(--on-fg);
  transition: transform .45s var(--spring);
}
.how-card:hover { transform: translateY(-8px) rotate(.8deg); }
.how-card:nth-child(even):hover { transform: translateY(-8px) rotate(-.8deg); }
.how-n { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; opacity: .8; }
.how-card svg { width: 58px; height: 58px; margin: 22px 0 8px; fill: none; stroke: var(--on-fg-big); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.how-card h3 { font: 700 2.1rem/1 var(--display); color: var(--on-fg-big); }
@media (min-width: 1100px) {
  .how-rail { width: min(100%, 1320px); margin-inline: auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
}

/* ---------- token ---------- */
.token { padding: clamp(90px, 12vw, 170px) 0; }
.token-grid { display: grid; gap: 40px; align-items: start; }
.token-card { padding: clamp(20px, 3vw, 34px); border-radius: 34px; border: 2px solid var(--fg); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.token-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 13px 0; border-bottom: 1.500px dashed var(--line); }
.token-rows dt { font: 500 .75rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.token-rows dd { font: 600 1.15rem/1.2 var(--display); text-align: right; }
.ca-box { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-top: 20px; padding: 16px; border-radius: 22px; background: var(--soft); }
.ca-label { grid-column: 1 / -1; font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ca-box code { font: 500 clamp(.75rem, 2.900vw, .9375rem)/1.4 var(--mono); overflow-wrap: anywhere; }
.token-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 18px; }
.token-links [hidden] { display: none; }
@media (min-width: 960px) { .token-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- footer ---------- */
.footer { padding: clamp(70px, 10vw, 130px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-word { width: 100%; height: auto; fill: var(--fg); }
.footer-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vw, 44px); }
.footer-cols { display: grid; gap: 34px; margin-top: clamp(44px, 7vw, 84px); padding-top: 30px; border-top: 1.500px solid var(--line); font-size: .9375rem; line-height: 1.55; }
.footer-h { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer li a { display: inline-block; padding: 5px 0; }
.footer a { text-underline-offset: 3px; }
.footer-base a { display: inline-block; padding: 8px 0; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; font: 400 .75rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 860px) { .footer-cols { grid-template-columns: .8fr 1.200fr; gap: 64px; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px) scale(.94); opacity: 0; pointer-events: none;
  padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 500 .875rem/1.2 var(--mono); max-width: calc(100vw - 32px); text-align: center;
  transition: transform .45s var(--spring), opacity .3s;
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .receipt[data-reveal] { transform: translateY(60px) rotate(-3deg); }
.js .receipt[data-reveal].in { transform: rotate(1.600deg); }

/* ---------- keyframes ---------- */
@keyframes ch-in { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { from { transform: translate3d(0, -14px, 0) scale(1); } to { transform: translate3d(0, 18px, 0) scale(1.06); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(30, 158, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 74, 0); } }
@keyframes jiggle { 0% { transform: scale(1); } 22% { transform: scale(1.1, .9); } 44% { transform: scale(.94, 1.07); } 66% { transform: scale(1.04, .97); } 100% { transform: scale(1); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes print { from { transform: translateY(-10px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .ch, .js [data-rise], .js [data-reveal], .js [data-reveal].in { opacity: 1; transform: none; }
  .js .squiggle path { stroke-dashoffset: 0; }
  .js .receipt[data-reveal], .js .receipt[data-reveal].in { transform: rotate(1.600deg); }
  .story-text .w { opacity: 1; }
  .fact { transform: none; }
}
