/* ==========================================================================
   CLAUDE — Anthropic-style landing (rewritten)
   Cream + near-black + coral with a dark mode companion.
   Inter (UI) + JetBrains Mono (data), thin borders, generous whitespace.
   ========================================================================== */

:root {
  /* Light theme tokens */
  --bg: #f5f1e8;
  --bg-soft: #efe9dc;
  --bg-elev: #fffdf8;
  --ink: #191919;
  --ink-soft: #5c5850;
  --ink-faint: #6f6a5e; /* A11Y-02: 6.15:1 contrast on the light theme vs #f5f1e8 (the old #8a857a was only 2.41:1; AA body text needs 4.5+) */
  --line: #e0d9c8;
  --line-dark: #d5cdb9;
  --accent: #d97757;
  /* FIX #10 (A11Y-02): accent dedicated to small-size text (about 5.1:1 on #f5f1e8, meets AA).
     --accent is still used for color blocks/large type/outlines. */
  --accent-text: #a8482f;
  --accent-dark: #c2654a;
  --accent-tint: #f3e2da;
  /* TOK-03: fixed allocation-slice ramp. Mid-tone on purpose — white in-bar
     labels clear 4.5:1 on all four, and each still separates from both surfaces.
     Same values in the dark theme so the chart never changes meaning. */
  --tok-1: #b04f2c;
  --tok-2: #7a5a86;
  --tok-3: #2f6f7d;
  --tok-4: #6b6558;
  --green: #3f7d4e;
  --green-text: #2f6b3e; /* dedicated green for text, meets AA */
  --red: #b0483b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(25, 25, 25, 0.04), 0 2px 8px rgba(25, 25, 25, 0.04);
  --shadow-lg: 0 10px 40px rgba(25, 25, 25, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --maxw: 1120px;
}

/* Dark theme overrides — activated via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --bg: #0e0d0a;
  --bg-soft: #151511;
  --bg-elev: #171713;
  --ink: #f0ede8;
  --ink-soft: #b8b2a8;
  --ink-faint: #8a857a;
  --line: #2e2b25;
  --line-dark: #3a362f;
  --accent: #e89b7a;
  --accent-text: #e89b7a; /* dark accent-text 8.7:1 (H-3 recheck: this block was once changed to #a8482f = 3.16:1 and reverted) */
  --accent-dark: #e89b7a;
  --accent-tint: #3a2a22;
  --green: #3f7d4e;
  --green-text: #6bbd7f;
  --red: #b0483b;
}

/* ===== Reset & base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
[hidden] {
  display: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
} /* FIX #17: keeps anchors clear of the sticky nav */

/* ===== A11y helpers ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.is-muted {
  opacity: 0.72;
} /* FIX #15: used by JS but previously missing from the CSS */
/* Keyboard-only skip link: hidden until focused, then pinned under the sticky nav. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus-visible {
  top: 12px;
}
main:focus-visible {
  outline: none;
}

/* P0-2: Permit2 verification row (pre-sign summary) */
.step-verify {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  word-break: break-all;
}
/* Hero risk disclosure — costs and non-claims, above the fold */
.risk-note {
  max-width: 640px;
  margin: 22px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--bg-elev);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: left;
}
.risk-note strong {
  color: var(--ink);
}
.risk-note a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* P1-8: disambiguation block */
.disambig {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 18px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
}
.disambig strong {
  color: var(--ink);
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
ul,
ol {
  list-style: none;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
}
h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin: 0;
}
.accent {
  color: var(--accent-text);
}
.mono {
  font-family: var(--mono);
}
::selection {
  background: var(--accent-tint);
  color: var(--ink);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 11px 22px;
  transition:
    transform 0.12s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent);
}
.btn-lg {
  padding: 15px 34px;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-ghost {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  padding: 14px;
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.25s,
    border-color 0.25s;
}
[data-theme="dark"] .nav {
  background: rgba(14, 13, 10, 0.92);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 38px;
  height: 64px;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 17px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}
.nav-links a {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px; /* A-33: 44x44 target, width included */
  display: inline-block;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--ink);
}
/* NAV-01: the pill stays 44x28 visually, but the hit area is 44px tall so it
   matches the neighbouring nav links and the CTA instead of reading as a small
   floating dot. */
.theme-toggle::after {
  content: "";
  position: absolute;
  inset: -8px 0;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  /* the knob sat at top:2px in a 28px pill, so it hugged the top edge and read
     as a squashed lozenge rather than a switch — centre it on the 26px content
     box and give both ends the same 3px inset */
  top: 4px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    background 0.2s;
}
.theme-toggle[data-theme="dark"]::before {
  transform: translateX(18px);
}
.theme-toggle[data-theme="dark"] {
  background: var(--ink);
}
.theme-toggle[data-theme="dark"]::before {
  background: var(--bg);
}

@media (max-width: 620px) {
  .nav-links {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(80px, 13vw, 132px) 24px clamp(48px, 8vw, 80px);
  text-align: center;
  /* Ambient wash: one soft radial glow behind the headline (CSS-only, theme-aware) */
  background: radial-gradient(52rem 30rem at 50% -10rem, var(--accent-tint), transparent 70%);
  background: radial-gradient(52rem 30rem at 50% -10rem, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* Staggered entrance: subtle rise for the hero stack (CSS-only, ≤250ms, off under reduced motion) */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero .pill {
  animation: hero-in 0.2s ease both;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  animation: hero-in 0.25s ease both;
  animation-delay: 40ms;
}
.hero h1 .accent {
  font-style: italic;
}
.hero-sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  animation: hero-in 0.25s ease both;
  animation-delay: 90ms;
}
/* CTA block: the button owns its own line so the meta line below never competes
   with it for width (the note + invite link used to sit beside the button and
   read as one crowded run-on). */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: hero-in 0.25s ease both;
  animation-delay: 190ms;
}
.hero-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  max-width: 46ch;
  text-align: center;
}
.hero-note a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}
/* Final conversion band (closes the page on an action, not a question) */
.final-cta {
  padding: clamp(56px, 8vw, 88px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.final-cta-sub {
  max-width: 60ch;
  margin: 0 auto 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.final-cta-fine {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.cmp-foot {
  max-width: 62ch;
  margin: 18px auto 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
}
/* Hero secondary path + inline link buttons */
.hero-alt {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-dark);
  text-underline-offset: 3px;
}
.hero-alt:hover {
  color: var(--ink);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.faq-cta {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ===== Stats bar ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: clamp(36px, 5.5vw, 56px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat {
  flex: 1 1 0;
  /* STAT-01: the bar read as a tall slab under the hero — tighter padding and
     a smaller value step keep it a strip, not a second hero. */
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  display: block;
  min-height: 1.2em; /* CLS: reserve the line before the JS number lands */
  /* the value string carries a unit ("1,016 CLAUDE allocated"), so the type
     stays smaller than a pure figure would allow — otherwise the first cell
     grows three lines tall and the whole bar deforms */
  font-size: clamp(1rem, 2.2vw, 1.375rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  /* a grouped "1,234,567" is one unbreakable token — let it wrap rather than
     paint across the neighbouring cell on a phone */
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-faint);
}

/* ===== Ticker ===== */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  will-change: transform;
}
/* spacing lives on the items (trailing padding) so the duplicated set is
   exactly half the track width → the -50% loop point is seamless */
.ticker-item {
  padding-right: 44px;
}
.ticker:hover {
  animation-play-state: paused;
}
.ticker span {
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.ticker b {
  color: var(--ink);
  font-weight: 600;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Features ===== */
.features {
  padding: clamp(56px, 9vw, 96px) 0;
}
.section-title {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  border-color: var(--line-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ===== Countdown ===== */
.countdown-band {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(40px, 6vw, 64px) 0;
}
.countdown-inner {
  text-align: center;
}
.countdown-label {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 1rem;
}
.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cd-cell {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cd-sep {
  font-size: 1.1rem;
  opacity: 0.5;
  margin: 0 10px 0 2px;
}

/* ===== Roadmap ===== */
.roadmap {
  padding: clamp(56px, 9vw, 96px) 0;
}
.timeline {
  max-width: 760px;
  margin: 0 auto;
}
.tl-item {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 44px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--line-dark);
}
.tl-item:last-child::before {
  display: none;
}
.tl-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line-dark);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-item.done .tl-dot {
  background: var(--ink);
  border-color: var(--ink);
}
.tl-item.active .tl-dot {
  background: var(--accent);
  border-color: var(--accent-text);
  box-shadow: 0 0 0 6px rgba(217, 119, 87, 0.18);
}
.tl-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.tl-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tl-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0.04em;
}
.tag-muted {
  background: transparent;
  color: var(--ink-faint);
  border: 1px solid var(--line-dark);
}

/* ===== Future ecosystem (vision banner) ===== */
/* the vision block used to read as fine print between two heavier sections;
   it now gets its own tinted band, a larger heading and accent-edged cards so
   it carries the same weight as the roadmap above it */
.future-eco {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.future-eco .section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
}
.future-eco-sub {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-text);
  margin: 10px auto 6px;
}
.future-eco-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.future-eco-fine {
  text-align: center;
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.eco-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.eco-cards-wide {
  max-width: 860px;
  margin: 0 auto;
}
.eco-card {
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 26px 24px;
  background: var(--bg-elev);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.eco-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.eco-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.eco-icon {
  font-size: 1.9rem;
  line-height: 1;
}
.eco-head h3,
.eco-head h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}
.eco-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.eco-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.status-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--ink-faint);
  text-transform: uppercase;
}
.status-pill.planned {
  border-color: rgba(217, 119, 87, 0.4);
  color: var(--accent);
}
@media (max-width: 820px) {
  .eco-cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .eco-head h3,
  .eco-head h4 {
    font-size: 1rem;
  }
}
@media (max-width: 620px) {
  .eco-card {
    padding: 20px 18px;
  }
  .eco-head {
    gap: 10px;
  }
  .future-eco-sub,
  .future-eco-note,
  .future-eco-fine {
    text-align: left;
  }
}

/* ===== FAQ ===== */
.faq {
  padding: clamp(40px, 6vw, 72px) 0;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover {
  color: var(--accent-text);
}
.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
/* visibility fallback: collapsed answers leave the accessibility tree and tab order (otherwise whitepaper/security links stay focusable) */
.faq-a {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.3s ease,
    visibility 0s linear 0.3s;
}
.faq-item.open .faq-a {
  /* the verification answer is five blocks tall and was silently truncated at
     the old 460px cap on narrow screens — leave the ceiling to the content */
  max-height: none;
  visibility: visible;
  transition: visibility 0s;
}
.faq-a p {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 640px;
}
.faq-a a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* verification checklist ("How do I verify...") */
.faq-ol {
  margin: 0 0 20px 18px;
  padding: 0;
  max-width: 620px;
}
.faq-ol li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 8px 0;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-brand .brand-mark {
  width: 20px;
  height: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-faint);
  /* WCAG 2.5.8: an inline link's hit area is its line box (~16px tall) — a little
     block padding lifts it to a comfortable target without moving the layout. */
  display: inline-block;
  padding-block: 4px;
}
.footer-links a:hover {
  color: var(--ink);
}

/* ===== Footer social row =====
   Five brand links, fixed order, one row, equal 24px icons. Icons are currentColor
   so they follow both themes; the row never wraps and never widens the footer. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.footer-social .soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ink-faint);
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.footer-social .soc:hover {
  color: var(--ink);
  background: var(--bg);
}
.footer-social .soc:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.footer-social .soc-ic {
  width: 24px;
  height: 24px;
  display: block;
}
@media (max-width: 620px) {
  .footer-social {
    margin-left: 0;
    width: 100%;
    gap: 6px;
  }
  .footer-inner {
    row-gap: 6px;
  }
}
.footer-fine {
  border-top: 1px solid var(--line);
  padding: 16px 24px 20px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ===== Modals ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 25, 25, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
  will-change: opacity;
}
/* FIX: [hidden]{display:none} has the same specificity as .modal-backdrop and comes
   earlier, so display:flex overrode it by source order and the claim modal opened
   straight into its Scan phase. Raised specificity forces display:none back. */
.modal-backdrop[hidden] {
  display: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.modal {
  /* FIX (baseline): long content scrolls on small screens, the modal is no longer clipped by the viewport */
  max-height: min(88vh, 780px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 24px 64px rgba(25, 25, 25, 0.22);
  animation: slideUp 0.22s ease;
  will-change: transform;
}
.modal-lg {
  max-width: 520px;
}
@keyframes slideUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px;
}
.modal-x:hover {
  color: var(--ink);
}
.modal-title {
  font-size: 1.3125rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-size: 14px;
}
.modal-fine {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 16px;
}

/* Wallet options */
.wallet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s;
  text-align: left;
}
.wallet-opt:hover {
  border-color: var(--ink);
  background: var(--bg-elev);
}
.wallet-opt small {
  margin-left: auto;
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 12px;
  min-width: 0;
  text-align: right;
}

/* Claim phases */
.claim-phase {
  text-align: center;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  margin: 12px auto 22px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.elig-badge {
  display: inline-block;
  background: rgba(63, 125, 78, 0.12);
  color: var(--green-text);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}
.elig-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 24px;
  text-align: left;
}
.elig-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
}
.elig-card-cta {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.elig-card-title {
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 10px;
}
.elig-balance-list {
  list-style: none;
}
.elig-balance-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}
.elig-balance-list li span:last-child {
  font-weight: 600;
  font-family: var(--mono);
  font-size: 12.5px;
}
.elig-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.elig-unit {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-bottom: 6px;
}
.elig-bonus {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-text);
}

/* Steps */
.step-list {
  text-align: left;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg);
  transition: border-color 0.2s;
}
.step.active {
  border-color: var(--accent-text);
}
.step.done {
  border-color: rgba(63, 125, 78, 0.4);
}
.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step.done .step-dot {
  background: var(--green);
}
.step-body strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.step-body small {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.step-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.step.pending .step-dot {
  background: var(--line-dark);
  color: var(--ink-faint);
}

/* Success */
.success-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(63, 125, 78, 0.12);
  color: var(--green);
  font-size: 1.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 18px;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
#successAddr {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 200;
  /* long wording used to run off both edges; cap it and let it wrap */
  max-width: calc(100vw - 32px);
  width: max-content;
  text-align: center;
  animation: slideUp 0.2s ease;
}
/* the sticky claim bar sits at the bottom on phones — lift the toast above it so
   it can never cover the Claim button it is reporting on */
@media (max-width: 620px) {
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

/* ===== Button loading spinner ===== */
.btn-spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ===== Progress track (steps) ===== */
.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 4px 0 20px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ===== Step active/done refinement ===== */
.step.is-active {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.step.is-done {
  border-color: rgba(63, 125, 78, 0.45);
}
.step.is-active .step-dot {
  background: var(--accent);
  color: var(--bg);
}
.step.is-done .step-dot {
  background: var(--green);
  color: var(--bg);
}

/* ===== Whale tag ===== */
.whale-tag {
  display: inline-block;
  margin-top: 2px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.14);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ===== Referral strip ===== */
.referral-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 18px;
  padding: 12px 16px;
  border: 1px dashed var(--line-dark);
  border-radius: 12px;
  background: var(--bg);
  font-size: 13.5px;
  gap: 12px;
}
.referral-strip > * {
  min-width: 0;
}
.referral-label {
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.71875rem;
}
.referral-value {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ===== Demo note ===== */
.demo-note {
  margin: 6px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.3);
  color: var(--accent-dark);
  font-size: 12.5px;
  text-align: left;
}

/* ===== Eligibility total row ===== */
.elig-balance-list li.elig-total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 700;
}
.elig-balance-list li.elig-total span:last-child {
  color: var(--ink);
}

/* ===== Docs page ===== */
.docs {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.docs h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.docs h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 12px;
}
.docs p,
.docs li {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.docs code {
  font-family: var(--mono);
  font-size: 0.85rem;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.docs table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.docs th,
.docs td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.docs th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.docs td:last-child {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ===== Trust bar: contract address (P0-1) ===== */
.contract-bar {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}
.contract-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
.contract-mark {
  color: var(--accent-text);
}
.contract-label {
  white-space: nowrap;
}
.contract-addr {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
}
a.contract-addr:hover {
  text-decoration: underline;
  color: var(--accent-text);
}
.contract-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contract-badge.ok {
  color: #3f7d4e;
  background: rgba(63, 125, 78, 0.12);
}
.contract-badge.pending {
  color: #a44;
  background: rgba(170, 68, 68, 0.1);
}

/* ===== Claim-before-you-sign checklist (P2-10) ===== */
.read-before {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-soft);
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
}
.read-before > strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.read-before-list {
  margin: 8px 0 0;
  padding-left: 18px;
}
.read-before-list li {
  margin: 4px 0;
  line-height: 1.5;
}

/* ===== Footer share (P3-11) — real intent link, no fake social proof ===== */
.footer-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.footer-share {
  color: var(--accent-text);
  text-decoration: none;
  font-size: 12.5px;
}
.footer-share:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .stats {
    flex-direction: column;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .nav-links {
    display: none;
  }
  .elig-cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 64px 20px 44px;
  }
  /* Phone nav: the sticky header is a single no-wrap flex row, so every child
     must be allowed to shrink and the gaps must be small enough that the row
     fits 320px instead of spilling under the `overflow-x: clip` guard. */
  .nav-inner {
    gap: 8px;
    padding: 0 14px;
  }
  .nav-inner > * {
    min-width: 0;
  }
  .nav-cta {
    gap: 8px;
  }
  .nav-cta .btn-claim {
    flex: 0 0 auto;
    width: auto;
    padding: 11px 14px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  /* A-12: the menu button must win over the base `.nav-toggle{display:none}`
     that is declared further down at EQUAL specificity (later source order
     wins). `.nav-inner .nav-toggle` outranks it, so the primary nav stays
     reachable on phones. */
  .nav-inner .nav-toggle {
    display: inline-flex;
  }
  .nav-links.nav-open {
    min-height: 44px;
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev, var(--bg, #fff));
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 14px;
    z-index: 60;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.nav-open a {
  min-height: 44px;
    padding: 10px 0;
  }
}

/* A-12: menu button — hidden on desktop, revealed by the ≤820px block above
   (which is why that block uses `.nav-inner .nav-toggle`). */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* Trust strip (hero) — four reassurance signals, even 2×2 grid so the
   pills cannot orphan or ragged-rag into a 3+1 shape at any width. */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin: 18px auto 4px;
  animation: hero-in 0.25s ease both;
  animation-delay: 140ms;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--bg-elev);
}
/* On a phone the pills stack in one column — text stays readable instead of
   being squeezed into half of a 360px viewport. */
@media (max-width: 560px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}
.trust-item b {
  color: var(--accent-text);
  font-weight: 600;
}
.trust-item a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.trust-item a:hover {
  color: var(--ink);
}
/* Comparison lead-in (keeps the table from arriving cold) */
.cmp-lead {
  max-width: 62ch;
  margin: 0 auto 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: center;
}

/* A2: seats progress bar */
.seats {
  margin: 16px auto 0;
  max-width: 640px;
}
.seats-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.seats-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.seats-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s ease;
}

/* ===== Tokenomics section ===== */
.tokenomics {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.tok-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.tok-lede {
  max-width: 640px;
  margin: 12px auto 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}
/* The allocation chart is the section's headline element and owns the full
   column width. It used to share a two-column grid with the parameter table,
   which left the chart 209px tall next to a 989px table — every alignment fix
   on that grid was compensating for the mismatch instead of solving it. */
.tok-alloc {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}
/* stacked allocation bar — proportional segments, labelled in place */
.tok-bar {
  display: flex;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tok-bar-lg {
  height: 54px;
  border-radius: 12px;
}
.tok-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--w);
  min-width: 0;
}
.tok-seg-pct {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
/* TOK-03: four fixed slice colours, identical in both themes. They are mid-tone
   on purpose: dark enough for the white in-bar labels (>=4.5:1) and light enough
   to separate from the dark surface. Every segment and its legend swatch read
   from the same token so the chart can never drift from its key. */
.tok-seg-shop,
.tok-swatch-shop {
  background: var(--tok-1);
}
.tok-seg-compute,
.tok-swatch-compute {
  background: var(--tok-2);
}
.tok-seg-airdrop,
.tok-swatch-airdrop {
  background: var(--tok-3);
}
.tok-seg-found,
.tok-swatch-found {
  background: var(--tok-4);
}
/* legend doubles as the data table, so numbers are never only in the bar */
.tok-alloc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.tok-alloc-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 10px;
  background: var(--bg);
}
/* the bar is proportional but the cards are equal width, so position alone
   cannot map a segment to its card — the top border carries the slice colour
   instead, which survives the reflow at every breakpoint */
.tok-alloc-card:nth-child(1) {
  border-top-color: var(--tok-1);
}
.tok-alloc-card:nth-child(2) {
  border-top-color: var(--tok-2);
}
.tok-alloc-card:nth-child(3) {
  border-top-color: var(--tok-3);
}
.tok-alloc-card:nth-child(4) {
  border-top-color: var(--tok-4);
}
.tok-alloc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tok-alloc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tok-alloc-val {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tok-alloc-why {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.tok-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.tok-cap {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}
/* risk / caveat block — the chart is a target, and that has to be unmissable */
.tok-callout {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--bg-elev);
}
.tok-callout-h {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
}
.tok-specs {
  max-width: 980px;
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.tok-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.tok-list li + li {
  margin-top: 8px;
}
.tok-list strong {
  color: var(--ink);
}
.tok-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.tok-h3-second {
  margin-top: 26px;
}
/* two columns of label/value pairs: the table is full width now, so a single
   column would stretch each row to a very long line */
.tok-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.tok-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tok-row dt {
  color: var(--ink-faint);
}
.tok-row dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.tok-p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.tok-pending {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.tok-badge {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 3px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .tok-alloc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tok-dl {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .tokenomics .section-title,
  .tok-lede,
  .tok-eyebrow {
    text-align: left;
  }
  .tok-alloc {
    padding: 16px;
  }
  .tok-bar-lg {
    height: 44px;
    border-radius: 8px;
  }
  .tok-seg-pct {
    font-size: 11.5px;
  }
  .tok-alloc-grid {
    grid-template-columns: 1fr;
  }
  .tok-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }
}

/* ===== Section eyebrow (shared by the differentiator and proof bands) ===== */
.eyebrow {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
/* ===== Proof / trust band ===== */
.proof {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.proof-lede {
  max-width: 640px;
  margin: 12px auto 34px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 34px;
}
.proof-stat {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  text-align: center;
}
.proof-stat b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.proof-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
}
.proof-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.proof-col h3 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.proof-list li + li {
  margin-top: 10px;
}
.proof-list b {
  color: var(--ink);
}
.proof-note {
  max-width: 980px;
  margin: 26px auto 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-faint);
}
@media (max-width: 860px) {
  .proof-stats,
  .proof-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-cols {
    gap: 22px;
  }
}
@media (max-width: 520px) {
  .proof .section-title,
  .proof-lede,
  .proof .eyebrow,
  .diff .section-title,
  .diff .eyebrow {
    text-align: left;
  }
  .proof-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-cols {
    grid-template-columns: 1fr;
  }
  /* the pre-signing disclosure is the densest paragraph on the page; give it
     room instead of letting it read as a wall of text on a phone */
  .risk-note {
    font-size: 13.5px;
    line-height: 1.75;
  }
  /* 13px reads as dust at arm's length — the proof lists and their footnote
     carry the trust claims, so they get body size on small screens */
  .proof-list,
  .proof-note {
    font-size: 14px;
    line-height: 1.7;
  }
  .proof-list li + li {
    margin-top: 14px;
  }
  .proof-stats {
    gap: 10px;
  }
  .pill {
    padding: 9px 16px;
    line-height: 1.4;
  }
}

/* E1: historical comparison table */
.cmp-wrap {
  max-width: 860px;
  margin: 0 auto;
  /* the table is wider than a phone; without this the columns were clipped by
     body{overflow-x:clip} and the last column was unreachable */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cmp-table {
  min-width: 560px;
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmp-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.cmp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: top;
}
.cmp-table tr:last-child td {
  border-bottom: none;
}
.cmp-table a {
  color: var(--accent-text);
  text-decoration: none;
}
.cmp-table a:hover {
  text-decoration: underline;
}
.cmp-fine {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* E3: countdown sub-line */
.cd-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.cd-note strong {
  color: var(--ink);
}

/* Card step numbers (How it works) */
.card-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  letter-spacing: 0;
  margin-bottom: 8px;
}

/* Focus ring for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Respect reduced-motion preferences — kill marquee/pulse/spin for vestibular safety */
@media (prefers-reduced-motion: reduce) {
  /* H-4: smooth scrolling respects reduce too */
  html { scroll-behavior: auto !important; }
  .ticker,
  .ticker-item,
  .pulse-dot,
  .spinner,
  .btn-spin,
  .modal,
  .success-ring,
  .cd-cell,
  .hero .pill,
  .hero h1,
  .hero-sub,
  .trust-strip,
  .hero-cta {
    animation: none;
    transition: none;
  }
  .ticker-item[style*="animation"] {
    animation: none;
  }
}
/* ===== A-33 — touch targets >= 44x44, touch devices only; desktop keeps its density ===== */
@media (pointer: coarse) {
  .btn,
  .btn-ghost,
  .btn-lg {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  /* the toggle is only 22px tall and the modal close is icon-sized — both need
     a real 44x44 touch target, matching every other control */
  .theme-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .modal-x {
    width: 44px;
    height: 44px;
    top: 6px;
    right: 6px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }

  /* inline footer/link controls have no vertical padding of their own */
  .footer-links a,
  .footer-share,
  .link-btn,
  .hero-alt,
  .contract-addr {
    display: inline-block;
    padding: 12px 0;
  }

  /* The hit area sits on the link itself: an inline element has no vertical hit area
     beyond its line box, so inline-block + padding lifts it while text still wraps. */
  .cmp-table a,
  .cmp-table button {
    display: inline-block;
    min-height: 44px;
    padding: 12px 0;
  }
  .cmp-table td {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-width: 320px){
  .nav-links{flex-wrap:wrap;gap:8px}
  .btn,.btn-ghost{width:100%}
}

/* ===== Session 3: mobile & conversion polish ===== */

/* 1. anchor offset so section links stop landing under the sticky nav */
:root {
  --nav-h: 64px;
}
[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* 2. narrow-viewport safety: no horizontal scroll anywhere */
html,
body {
  overflow-x: clip;
}
.cmp-wrap,
.tok-dl,
.faq-a {
  min-width: 0;
}

/* 3. comparison table: scrolls inside its card on phones instead of squeezing */
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: var(--radius);
}
.cmp-table {
  min-width: 560px;
}

/* 4. hero: full-width primary CTA on phones, thumb-sized */
@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .hero-note,
  .hero-alt {
    text-align: center;
  }
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    padding: 16px 8px;
  }
  .stat-num {
    font-size: 1.35rem;
  }
  .stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .contract-chip {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }
}

/* 4b. on the narrowest phones three stat columns leave ~79px per cell, so the
   live allocation counter is the first thing to bleed — one column there. */
@media (max-width: 360px) {
  .nav-inner {
    gap: 6px;
    padding: 0 10px;
  }
  .nav-cta {
    gap: 6px;
  }
  .nav-cta .btn-claim {
    padding: 11px 10px;
    font-size: 12.5px;
  }
  .brand-name {
    display: none;
  }
}
@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}

/* 5. trust strip single column on the narrowest phones, no clipped pills */
@media (max-width: 430px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

/* 6. sticky mobile claim bar — the one CRO lever that persists past the fold */
.mobile-claim {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-claim .mobile-claim-copy {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-faint);
  min-width: 0;
}
.mobile-claim .mobile-claim-copy b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}
.mobile-claim .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
}
@media (max-width: 620px) {
  .mobile-claim.is-shown {
    display: flex;
  }
  body.modal-open .mobile-claim,
  body[style*="overflow: hidden"] .mobile-claim {
    display: none;
  }
  /* Reserve the bar's real height (44px button + 20px padding + 1px border +
     the same safe-area inset the bar itself consumes) so the last footer row
     and the Share link are never hidden behind it. */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .footer-fine {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

/* 7. dark-mode contrast nudge for the obligation note */
.tok-cap,
.tok-pending {
  color: var(--ink-faint);
  color: color-mix(in srgb, var(--ink-faint) 88%, var(--ink));
}

/* 8. A-21: page-level styles merged from 404/terms/security/privacy inline blocks
   (cascade-equivalent move — identical selectors and values; .docs stays local to docs.html) */
.page { max-width: 720px; margin: 0 auto; padding: clamp(48px, 10vw, 72px) 24px clamp(80px, 12vw, 120px); }
/* BRAND-01: secondary pages open on the same display serif as the hero, so a
   deep link lands in the same voice as the home page instead of a generic
   bold-sans heading. Weight/letter-spacing mirror .hero h1. */
.page h1 { font-family: var(--display); font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 600; letter-spacing: -.01em; margin-bottom: 12px; }
.page .meta { font-size: .8125rem; color: var(--ink-faint); margin-bottom: 2rem; }
.page h2 { font-size: 1.125rem; font-weight: 700; margin: 2rem 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.page h2::before { content: "# "; color: var(--accent); font-weight: 400; }
.page p, .page li { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.7; }
.page ul { padding-left: 20px; }
.page li { margin-top: 6px; }
.page code { font-family: var(--mono); background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.page-wide { max-width: 760px; }
/* must stay after .page h2 / .page h2::before — equal specificity, later wins (borderless variant) */
.page-plain h2 { padding-bottom: 0; border-bottom: none; }
.page-plain h2::before { content: none; }
.page-plain a { color: var(--accent); }
.back { display: inline-block; margin-bottom: 28px; padding-block: 6px; color: var(--ink-soft); font-size: 14.5px; }
.back:hover { color: var(--ink); }
.not-found { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.not-found h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 800; letter-spacing: -.03em; }
.not-found p { color: var(--ink-soft); margin-top: 1rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.not-found .actions { display: flex; gap: 14px; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.not-found .actions a { font-weight: 600; }
.sec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.sec-table th, .sec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sec-table th { color: var(--ink); font-weight: 700; }
.sec-table td { color: var(--ink-soft); }
.ok { color: #3f7d4e; font-weight: 700; }
.no { color: #a44; font-weight: 700; }
