/* =========================================================
   AvoidTilt — styles.css
   Mobile-first. 4-point grid. See DESIGN_REF.md for tokens.
   ========================================================= */

/* ---------- Tokens ----------
   Electric-violet accent on violet-tinted dark neutrals.
   Light-violet CTA with deep dark text (master: hover lighter, dark text on light bg). */
:root {
  --bg: #0E0A1A;
  --surface: #181226;
  --surface-2: #221A33;
  --surface-3: #2C2342;
  --border: #2F2649;
  --border-bright: #463A66;
  --text: #EDE9F5;
  --text-muted: #9F98B8;
  --text-dim: #5F5878;
  --accent: #A78BFA;
  --accent-bright: #C4B0FF;
  --accent-dim: rgba(167, 139, 250, 0.10);
  --accent-glow: rgba(167, 139, 250, 0.30);
  --on-accent: #0E0A1A;
  --danger: #FF3B47;
  --danger-dim: rgba(255, 59, 71, 0.10);
  --danger-glow: rgba(255, 59, 71, 0.35);
  --success: #34D399;
  --gold: #D4AF37;
  --gold-bright: #F4D88A;
  --gold-dim: rgba(212, 175, 55, 0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --t-fast: 160ms cubic-bezier(.2,.7,.3,1);
  --t-med:  280ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 520ms cubic-bezier(.2,.7,.3,1);

  --container: 1200px;
  --container-narrow: 760px;
  --gutter: 24px;
  --nav-h: 52px;
  --trust-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body {
  /* Hard horizontal-overflow guard: belt + suspenders so nothing on the page
     can introduce a horizontal scrollbar. Safe with `position: sticky` nav. */
  overflow-x: hidden;
  max-width: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-feature-settings: 'tnum' 1; }

/* ---------- Scrollbar ----------
   Native scrollbar hidden; custom floating pill rendered via .scrollbar
   (see HTML + script.js). Mirrors the StocksRoom approach. */
html { scrollbar-width: none; }
body { -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

.scrollbar {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  padding: 4px;
  display: none;
}
@media (min-width: 900px) { .scrollbar { display: block; } }

.scrollbar__track {
  width: 4px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.scrollbar__thumb {
  width: 100%;
  height: 20%;
  min-height: 16px;
  background: var(--accent);
  border-radius: 4px;
  position: absolute;
  top: 0; left: 0;
  transition: top 0.15s ease-out, opacity 0.3s ease;
}
.scrollbar--hidden .scrollbar__thumb { opacity: 0.3; }

/* ---------- Container / Section ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section {
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
@media (min-width: 768px) { .section { padding-block: 120px; } }

.section--compact {
  min-height: auto;
  padding-block: 64px;
}
@media (min-width: 768px) { .section--compact { padding-block: 96px; } }

.section__head { max-width: 760px; margin-bottom: 48px; }
.section__sub { color: var(--text-muted); font-size: 20px; margin-top: 16px; }

/* ---------- Typography ----------
   Scale: 6 sizes — 64 / 48 / 24 / 20 / 16 / 12
   All multiples of 4. */
.h1, .h2, .h3 { margin: 0; color: var(--text); font-weight: 600; }
.h1 {
  font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600;
}
.h2 {
  font-size: 48px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600;
}
.h3 { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

@media (min-width: 768px) {
  .h1 { font-size: 64px; line-height: 1.02; }
}

.eyebrow {
  font-size: 20px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 28px;
}
.lede {
  font-size: 20px; line-height: 1.5; color: var(--text-muted); margin: 24px 0 32px; max-width: 560px;
}
.accent { color: var(--danger); }

/* ---------- Typer (one-shot typing effect for problem H2) ---------- */
.typer {
  position: relative;
}
.typer::before {
  /* Ghost copy of the full text reserves layout space so the section
     doesn't shift as characters are typed in. Hidden but takes height. */
  content: attr(data-text);
  visibility: hidden;
  pointer-events: none;
}
.typer__visible {
  position: absolute;
  top: 0; left: 0; right: 0;
}
.typer__caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  vertical-align: -0.1em;
  margin-left: 4px;
  /* Cancel the caret's layout width (3px width + 4px margin-left = 7px)
     so it doesn't push the line break and end up on a row below the text. */
  margin-right: -7px;
  animation: caretBlink 0.9s steps(2) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .typer__caret { animation: none; opacity: 0.6; }
}

/* ---------- Rotator (animated swap word in H1) ---------- */
.rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  color: var(--accent);
}
.rotator__word {
  display: inline-block;
  transition: transform 360ms cubic-bezier(.2, .7, .3, 1), opacity 220ms ease;
  white-space: nowrap;
  will-change: transform, opacity;
}
.rotator__word.is-up   { transform: translateY(-50%); opacity: 0; }
.rotator__word.is-down { transform: translateY(50%);  opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rotator__word { transition: opacity 220ms ease; }
  .rotator__word.is-up, .rotator__word.is-down { transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1;
  padding: 16px 28px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  user-select: none; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { padding: 10px 18px; font-size: 12px; letter-spacing: 0.02em; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* Per master: dark mode = no shadows. Depth comes from surface contrast. */
.btn--primary {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0) scale(.97); }
.btn--primary:disabled { background: var(--surface-2); color: var(--text-dim); border-color: var(--border); cursor: not-allowed; transform: none; }

.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--border-bright); background: var(--surface); }
.btn--ghost:active { transform: scale(.97); }

/* Text-slide variant inside primary CTA */
.btn__label { position: relative; display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; }
.btn__text {
  display: inline-flex; align-items: center; height: 1em;
  transition: transform var(--t-med);
}
.btn__text--alt { color: inherit; }
.btn--primary:hover .btn__text,
.btn--ghost:hover .btn__text { transform: translateY(-100%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-stagger="1"] { transition-delay: 80ms; }
.reveal[data-stagger="2"] { transition-delay: 160ms; }
.reveal[data-stagger="3"] { transition-delay: 240ms; }
.reveal[data-stagger="4"] { transition-delay: 320ms; }
.reveal[data-stagger="5"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(14, 10, 26, 0.6);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(14, 10, 26, 0.85); }
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; min-width: 0; flex-shrink: 1; }
.nav__cta { flex-shrink: 0; }
.nav__logo { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Two-pill primary logo (HTML/CSS, em-scaled) ---------- */
.logo {
  display: inline-flex;
  align-items: stretch;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  vertical-align: middle;
  white-space: nowrap;
}
.logo__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo__pill--left {
  background: transparent;
  color: var(--accent);
  border: 0.143em solid var(--accent);
  border-right: none;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  padding: 0.179em 0.393em 0.179em 0.500em;
}
.logo__pill--right {
  background: var(--accent);
  color: var(--bg);
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  padding: 0.393em 0.571em;
}

.logo--nav  { font-size: 18px; }
.logo--plan { font-size: 22px; }
.logo--step { font-size: 16px; transform: translateY(-0.10em); }

/* Gold variant — used on the Buddy plan logo + tier word */
.logo--gold .logo__pill--left {
  color: var(--gold);
  border-color: var(--gold);
  background-image: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 250% 100%;
  background-position: -100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShine 3.5s linear infinite;
}
.logo--gold .logo__pill--right {
  color: var(--bg);
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 250% 100%;
  background-position: -100% 0;
  animation: goldShine 3.5s linear infinite;
}

.plan__gold-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
  background-size: 250% 100%;
  background-position: -100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
  animation: goldShine 3.5s linear infinite;
}

@keyframes goldShine {
  0%   { background-position: -100% 0; }
  100% { background-position: 250% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo--gold .logo__pill--left,
  .logo--gold .logo__pill--right,
  .plan__gold-text {
    animation: none;
    background-position: 50% 0;
  }
}
.nav__links { display: none; gap: 32px; }
.nav__links a {
  color: var(--text-muted); font-size: 16px; transition: color var(--t-fast);
  position: relative; padding-block: 4px;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--text);
  animation: navUnderline var(--t-med) forwards;
  transform-origin: center;
}
@keyframes navUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.nav__cta svg { width: 14px; height: 14px; }

@media (min-width: 900px) { .nav__links { display: inline-flex; } }

/* Narrow mobile: compact nav so the CTA can't be pushed off the right edge */
@media (max-width: 480px) {
  .nav__inner { padding: 10px 16px; gap: 8px; }
  .nav__brand .logo { font-size: 16px; }
  .nav__cta { padding: 8px 12px; gap: 6px; }
  .nav__cta svg { display: none; }
}

/* Mobile: drop backdrop-filter (it's the #1 cause of fixed-bar jitter/drop
   on iOS Safari) and use a solid opaque bg instead. Do NOT apply `transform`
   or `will-change: transform` to a fixed element on iOS — it converts the
   bar into a non-fixed layer that scrolls with the page. */
@media (max-width: 768px) {
  .nav {
    /* Mobile uses sticky (fixed was unreliable in some mobile contexts).
       Sticky doesn't need left/right; it sticks within the document flow. */
    position: sticky;
    left: auto;
    right: auto;
    background: rgba(14, 10, 26, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Always-on bottom border at mobile widths so the dark bar reads as a
       distinct element against the dark page (was effectively invisible
       without backdrop-filter blur). */
    border-bottom-color: var(--border);
  }
  .nav.is-scrolled {
    background: rgba(14, 10, 26, 0.98);
    border-bottom-color: var(--border-bright);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* Inherits .section's 100vh min-height + flex-centering. */
  overflow: hidden;
}
/* Mobile: stop centering the hero in the viewport — that leaves a huge gap
   between the nav, the Trustpilot strip, and the hero copy. Stack from the
   top with tight padding instead. */
@media (max-width: 768px) {
  .hero {
    justify-content: flex-start;
    padding-block: 24px 48px;
    min-height: auto;
  }
  .hero .trust { margin: 0 0 20px; }
  .hero__grid { gap: 32px; }
}
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  top: -240px; right: -240px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(255,255,255,0.04), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; width: 100%; }

.hero__grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
/* Prevent grid items from expanding to fit overflowing children (rotator
   word "moving your stop" was widening the column and reflowing the meta
   line below it). */
.hero__grid > * { min-width: 0; }

.hero__copy { max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* Mobile: center the CTA row + the Discord link beneath it. */
@media (max-width: 768px) {
  .hero__cta { justify-content: center; }
  /* hero__copy is block-level, so align-self doesn't apply. Make the
     discord link a centered block instead. */
  .hero__discord {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }
}
.hero__meta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em;
}
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Hero control panel ---------- */
.hero-panel {
  position: relative;
  width: 100%;
}
.hero-panel__glow {
  position: absolute;
  inset: -60px -40px;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, rgba(167, 139, 250, 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-panel__inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: heroFloat 7s ease-in-out infinite;
}
@media (min-width: 768px) { .hero-panel__inner { padding: 32px; } }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel__inner { animation: none; }
}

/* Header row */
.hero-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hero-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-panel__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-panel__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: heroPulse 2s ease-out infinite;
}
@keyframes heroPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.5); opacity: 0;   }
}

/* Big stat block */
.hero-panel__stat {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.hero-panel__stat-label {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.hero-panel__stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-panel__stat-value {
  font-size: 48px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-panel__stat-unit {
  font-size: 24px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}
.hero-panel__stat-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Active rules list */
.hero-panel__rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-panel__rules li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.hero-panel__rules li:hover {
  border-color: var(--border-bright);
  background: var(--surface);
}
.hero-panel__rule-check {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
}
.hero-panel__rule-check svg { width: 12px; height: 12px; }

.hero-panel__rule-name {
  font-size: 16px;
  color: var(--text);
}
.hero-panel__rule-state {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Rule Wall — wall.png artwork on the right side of the hero ---------- */
.rule-wall {
  position: relative;
  width: 100%;
  isolation: isolate;
}
.rule-wall__glow {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(167, 139, 250, 0.22), transparent 65%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.rule-wall__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--r-lg);
  transform: scale(1.25);
  transform-origin: center;
}

/* =========================================================
   TRUST STRIP — sits beneath the nav at the top of the page.
   Scrolls away with content (not fixed). Nav stays fixed.
   Swap inner markup for the official TrustBox embed when ready.
   ========================================================= */
.trust {
  display: flex;
  justify-content: center;
  margin: 0 0 64px;
}
.trust__strip {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text);
  transition: opacity var(--t-fast);
}
.trust__strip:hover { opacity: 0.85; }

.trust__stars { display: inline-flex; gap: 3px; color: var(--accent); }
.trust__star {
  width: 32px;
  height: 32px;
  display: inline-flex;
  color: inherit;
}
.trust__star svg { width: 100%; height: 100%; display: block; }

.trust__rating {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.trust__count {
  font-size: 16px;
  color: var(--text-muted);
}
.trust__count strong {
  color: var(--text);
  font-weight: 600;
}
.trust__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}
.trust__brand-star {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

@media (max-width: 600px) {
  .trust { padding: 16px 12px; }
  .trust__strip { gap: 10px; }
  .trust__star { width: 22px; height: 22px; }
  .trust__rating { font-size: 16px; }
  .trust__count { font-size: 13px; }
  /* Mobile-only: bump the Trustpilot wordmark + green star so the badge
     reads clearly even at small sizes. */
  .trust__brand { font-size: 18px; gap: 8px; }
  .trust__brand-star { width: 24px; height: 24px; }
}


/* =========================================================
   HOW
   ========================================================= */
.how__steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .how__steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.how__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast);
}
.how__step:hover { border-color: var(--border-bright); background: var(--surface-2); transform: translateY(-2px); }

.how__num {
  position: absolute; top: 24px; right: 24px;
  font-size: 12px; color: var(--text-dim); letter-spacing: 0.08em;
}
.how__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  padding-right: 32px; /* space for the absolute step number */
}
.how__icon {
  width: 24px; height: 24px;
  color: var(--text);
  flex: none;
}
.how__step p { color: var(--text-muted); margin: 0; line-height: 1.6; }

/* =========================================================
   RULES — compact tabbed library (sidebar tabs + detail panel)
   ========================================================= */
.rule-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 12px;
  /* Without this, grid items default to min-width: max-content, which
     lets the horizontal-scroll tab row push the whole card past the
     viewport edge. */
  min-width: 0;
}
.rule-library > * { min-width: 0; }
@media (min-width: 768px) {
  .rule-library {
    grid-template-columns: minmax(240px, 280px) 1fr;
    gap: 0;
    padding: 20px;
  }
}

/* Tab list — mobile: horizontal-scroll pill row (snap, hidden scrollbar);
   desktop: vertical sidebar (≥768px). */
.rule-library__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 4px 36px 12px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  /* Right-edge fade hints horizontal scrollability — last visible pill
     fades into the card bg so the user sees "more content this way". */
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}
.rule-library__nav::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .rule-library__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0 16px 0 0;
    margin: 0;
    gap: 2px;
    overflow-x: visible;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.rule-library__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  color: var(--text-muted);
  min-height: 40px;
  flex-shrink: 0;
  scroll-snap-align: start;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .rule-library__tab {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 16px;
    min-height: 44px;
    flex-shrink: 1;
    scroll-snap-align: none;
    white-space: normal;
  }
}
.rule-library__tab:hover {
  background: var(--surface-2);
  color: var(--text);
}
.rule-library__tab.is-active {
  background: var(--surface-2);
  border-color: var(--border-bright);
  color: var(--text);
}
.rule-library__tab.is-active .rule-library__num {
  color: var(--accent);
}
@media (min-width: 768px) {
  .rule-library__tab.is-active { border-color: transparent; }
}

.rule-library__num {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.rule-library__name {
  font-size: 16px;
  font-weight: 500;
}

/* Content panel */
.rule-library__content {
  position: relative;
  padding: 8px 4px 4px;
  min-height: 180px;
}
@media (min-width: 768px) {
  .rule-library__content {
    padding: 16px 32px;
    min-height: 220px;
  }
}

.rule-panel {
  width: 100%;
  animation: rulePanelFade 220ms ease;
}
.rule-panel[hidden] { display: none; }

.rule-panel__name {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.rule-panel__desc {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
}
.rule-panel__code {
  display: inline-block;
  padding: 16px 22px;
  font-size: 20px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 767px) {
  .rule-panel__name { font-size: 20px; margin-bottom: 10px; }
  .rule-panel__desc { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
  .rule-panel__code { font-size: 14px; padding: 12px 14px; }
}

@keyframes rulePanelFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   DEMO — autoplay GIF area
   ========================================================= */
.demo__media {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  contain: paint;
}
.demo__media img,
.demo__media .demo__video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  transform: translateZ(0);
  will-change: transform;
}
.demo__media .demo__video { cursor: pointer; }

/* Lockout overlay — shown when the demo video finishes */
.demo__lockout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #2A0810;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 2;
}
.demo__lockout.is-on {
  opacity: 1;
  pointer-events: auto;
}
.demo__lockout-inner {
  max-width: 560px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.demo__lockout-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--danger);
  border-radius: 14px;
  color: var(--danger);
  margin-bottom: 4px;
  animation: lockoutPulse 1.6s ease-in-out infinite;
  animation-play-state: paused;
}
.demo__lockout.is-on .demo__lockout-icon {
  animation-play-state: running;
}
.demo__lockout-icon svg { width: 28px; height: 28px; }
.demo__lockout-eyebrow {
  margin: 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--danger);
}
.demo__lockout-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
}
.demo__lockout-sub {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--text-muted);
}
.demo__lockout-rule {
  margin: 4px 0 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 16px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo__lockout-rule code { font-family: inherit; color: inherit; }
.demo__lockout-time {
  margin: 12px 0 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.demo__lockout-time span { color: var(--text); }

@keyframes lockoutPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 71, 0.45); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 59, 71, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .demo__lockout-icon { animation: none; }
}

@media (max-width: 720px) {
  .demo__lockout { padding: 12px; }
  .demo__lockout-inner { gap: 4px; }
  .demo__lockout-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-bottom: 0;
  }
  .demo__lockout-icon svg { width: 16px; height: 16px; }
  .demo__lockout-eyebrow { font-size: 10px; letter-spacing: 0.14em; }
  .demo__lockout-title { font-size: 22px; line-height: 1; }
  .demo__lockout-sub { font-size: 12px; margin-top: 2px; }
  .demo__lockout-rule {
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 2px;
  }
  .demo__lockout-time { font-size: 10px; margin-top: 4px; letter-spacing: 0.08em; }
}

.demo__cta {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}

/* =========================================================
   PRICING
   ========================================================= */
/* Two-card grid */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Single plan card — base */
.plan {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 28px;
  transition:
    transform var(--t-med),
    background var(--t-med),
    border-color var(--t-med);
}
@media (min-width: 768px) { .plan { padding: 40px; gap: 32px; } }

.plan:hover {
  transform: translateY(-4px);
  background: var(--surface-2);
}
.plan--featured:hover { border-color: var(--accent-bright); }
.plan--standard:hover { border-color: var(--border-bright); }

/* Featured plan: violet border (everything else matches the standard card) */
.plan--featured {
  border-color: var(--accent);
}

/* Buddy plan: gold premium tier */
.plan--standard {
  border-color: var(--gold);
}
.plan--standard::before {
  background:
    radial-gradient(ellipse 80% 60% at top right, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at bottom left, rgba(212, 175, 55, 0.04), transparent 70%);
  transition: filter var(--t-med);
}
.plan--standard:hover {
  border-color: var(--gold-bright);
}
/* Gold sheen — boosts the existing gold ambient on hover */
.plan--standard:hover::before {
  filter: brightness(1.5) saturate(1.15);
}
.plan--standard .plan__pitch {
  color: var(--gold);
}
.plan--standard .plan__cta-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}
.plan--standard .plan__cta-submit.btn--ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--text);
}
.plan--standard .plan__list svg {
  color: var(--gold);
}

/* Header */
.plan__head { position: relative; }
.plan__head--has-billing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.plan__name {
  margin: 0;
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.plan__tag { margin: 6px 0 0; color: var(--text-muted); font-size: 16px; line-height: 1.5; }

/* Price */
/* Billing-cycle segmented control (Auto plan) */
.plan__billing {
  position: relative;
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  transition: border-color var(--t-fast);
}
.plan__billing:hover { border-color: var(--border-bright); }

/* Sliding thumb that animates between pills */
.plan__bill-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--thumb-x, 4px);
  width: var(--thumb-w, 0);
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 6px;
  transition:
    left  340ms cubic-bezier(.5, 0, .15, 1),
    width 340ms cubic-bezier(.5, 0, .15, 1);
  pointer-events: none;
  z-index: 0;
}

.plan__bill {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), transform var(--t-fast);
}
.plan__bill:hover { color: var(--text); }
.plan__bill.is-active { color: var(--accent); font-weight: 600; }
.plan__bill:active { transform: scale(0.95); }
.plan__bill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .plan__bill-thumb { transition: none; }
}

.plan__price-block { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__amount {
  font-size: 64px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
  will-change: filter;
}
@media (prefers-reduced-motion: reduce) {
  .plan__amount { filter: none !important; }
}
.plan__period { font-size: 16px; color: var(--text-muted); }

/* Mobile only: center the plan card header (title + pricing + billing toggle).
   Feature list below stays left-aligned. */
@media (max-width: 768px) {
  .plan__head--has-billing,
  .plan__head {
    justify-content: center;
    text-align: center;
  }
  .plan__name { justify-content: center; }
  .plan__billing { align-self: center; }
  .plan__price-block { align-items: center; text-align: center; }
  .plan__price { justify-content: center; }
  .plan__pitch { text-align: center; }
}
.plan__pitch {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.plan__fine { margin: 0; font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }

/* Feature list */
.plan__list {
  position: relative;
  display: flex; flex-direction: column;
  gap: 12px;
}
.plan__list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-muted); font-size: 16px; line-height: 1.5;
}
.plan__list svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex: none;
  margin-top: 4px;
}
/* Disabled item: dim, X icon */
.plan__list li.is-off { color: var(--text-dim); }
.plan__list li.is-off svg { color: var(--text-dim); }
/* Key differentiator on featured plan: brighter, slightly stronger weight */
.plan__list li.is-key { color: var(--text); font-weight: 500; }


/* =========================================================
   FAQ
   ========================================================= */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq__item[open] { border-color: var(--border-bright); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  cursor: pointer; list-style: none;
  font-weight: 500; font-size: 16px;
  transition: background var(--t-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--surface-2); }
.faq__chev {
  display: inline-flex; flex: none; color: var(--text-muted);
  transition: transform var(--t-fast), color var(--t-fast);
}
.faq__chev svg { width: 18px; height: 18px; }
.faq__item[open] .faq__chev { transform: rotate(180deg); color: var(--accent); }
.faq__body { padding: 0 24px 22px; color: var(--text-muted); line-height: 1.6; font-size: 16px; }
.faq__body p { margin: 0; }

/* =========================================================
   Shared button-state machinery (used by .checkout__submit)
   ========================================================= */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.btn__state {
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.btn__state--loading,
.btn__state--success {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(100%);
}
.spinner { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   PLAN ACTION — form + fine print, anchored at the bottom of the card
   ========================================================= */
.plan__action {
  margin-top: auto;        /* push the whole action block to the bottom */
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan__action .plan__fine {
  text-align: center;
  margin: 0;
}

.plan__consent {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.plan__consent a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--text-dim);
  text-underline-offset: 2px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.plan__consent a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.plan__cta-input {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: inherit; font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 0;
}
.plan__cta-input::placeholder { color: var(--text-dim); }
.plan__cta-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.plan__cta-input.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-dim);
  animation: shake 0.4s;
}

.plan__cta-submit {
  position: relative; overflow: hidden;
  width: 100%;
}

/* State morph (loading / success) */
.plan__cta-submit.is-loading .btn__state--idle    { opacity: 0; transform: translateY(-100%); }
.plan__cta-submit.is-loading .btn__state--loading { opacity: 1; transform: translateY(0); }
.plan__cta-submit.is-success .btn__state--idle    { opacity: 0; transform: translateY(-100%); }
.plan__cta-submit.is-success .btn__state--success { opacity: 1; transform: translateY(0); background: var(--success); }
.plan__cta-submit.is-success { background: var(--success); border-color: var(--success); color: #04140A; }

/* =========================================================
   HERO — lowkey Discord link beneath the CTAs (no button frame)
   ========================================================= */
.hero__discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 4px 0;
  font-size: 16px;
  color: var(--text-muted);
  transition: color var(--t-fast);
  align-self: flex-start;
}
.hero__discord svg {
  width: 27px;
  height: 27px;
  flex: none;
  transition: transform var(--t-fast);
}
.hero__discord:hover {
  color: var(--accent);
}
.hero__discord:hover svg {
  transform: scale(1.1) rotate(-6deg);
}
/* Reuse the .btn__label text-slide infrastructure */
.hero__discord:hover .btn__text {
  transform: translateY(-100%);
}

/* Member count — credibility signal next to the Discord link */
.hero__discord-count {
  margin-left: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }

/* Risk disclosure block — dense, low-emphasis legal copy above the footer row */
.footer__risk {
  max-width: 880px;
  margin: 0 auto 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}
.footer__risk-heading {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer__risk p { margin: 0 0 12px; }
.footer__risk p:last-child { margin-bottom: 0; }
.footer__risk strong { color: var(--text-muted); font-weight: 600; }

/* Trademark attributions — same low-emphasis treatment as risk disclosures */
.footer__trademarks {
  max-width: 880px;
  margin: 0 auto 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
}
.footer__trademarks p { margin: 0 0 8px; }
.footer__trademarks-note { margin-top: 16px !important; }

.footer__inner {
  display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: space-between;
  text-align: center;
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; text-align: left; } }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.footer__brand .nav__logo { color: var(--accent); }
.footer__copy { color: var(--text-dim); font-size: 12px; margin: 0; }
.footer__links { display: inline-flex; gap: 24px; }
.footer__links a { color: var(--text-muted); font-size: 16px; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--text); }

/* =========================================================
   Pre-launch confirmation modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 26, 0.78);
  animation: modalFade 220ms ease both;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--r-lg);
  padding: 40px 32px 32px;
  text-align: center;
  animation: modalRise 280ms cubic-bezier(.2, .7, .3, 1) both;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }
.modal__close svg { width: 20px; height: 20px; }

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-dim);
}
.modal__icon svg { width: 28px; height: 28px; }

.modal__eyebrow {
  margin: 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal__title {
  margin: 8px 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.modal__body {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.modal__cta {
  width: 100%;
  justify-content: center;
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__card { animation: none; }
}

/* Lock body scroll when modal is open */
body.modal-open { overflow: hidden; }

/* =========================================================
   Selection / focus polish
   ========================================================= */
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
