/* HiStakes info site — tokens mirror the app (src/styles/theme.css, .dark) */
:root {
  --hi-base: #212525;
  --hi-canvas: #0f1214;
  --hi-raised: #1a1a1e;
  --hi-bar: #2c2c2c;
  --hi-border: #333333;
  --hi-border-strong: #444444;
  --hi-muted: #888888;
  --hi-subtle: #aaaaaa;
  --hi-text: #f4f4f5;
  --hi-accent: #d5af34;
  --hi-accent-hover: #e4c04a;
  --hi-accent-hot: #e3192a;
  --hi-accent-secondary: #c4121e;
  --hi-success: #28a745;

  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --gutter: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 60px;
  --maxw: 1180px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--hi-base);
  color: var(--hi-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--hi-accent); color: #141417; padding: 8px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--hi-accent); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--hi-accent); color: #141417;
  box-shadow: 0 8px 28px -10px rgba(213, 175, 52, .7);
}
.btn-primary:hover { background: var(--hi-accent-hover); }
.btn-ghost { background: transparent; color: var(--hi-text); border-color: var(--hi-border-strong); }
.btn-ghost:hover { border-color: var(--hi-accent); color: var(--hi-accent); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(33, 37, 37, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(213, 175, 52, .18);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 20px; width: auto; }
.nav { display: none; }
.nav a {
  color: var(--hi-subtle); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 4px; transition: color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--hi-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 359px) {
  .brand img { height: 17px; }
  .header-actions .btn-sm { padding: 0 11px; font-size: 13px; }
}
@media (min-width: 900px) {
  :root { --header-h: 72px; --gutter: 32px; }
  .brand img { height: 26px; }
  .nav { display: flex; gap: 28px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  /* gold glow + red streaks, echoing the campaign artwork */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 45% at 75% 8%, rgba(213, 175, 52, .30), transparent 70%),
    radial-gradient(55% 50% at 90% 70%, rgba(227, 25, 42, .28), transparent 70%),
    linear-gradient(180deg, #1b1d1e 0%, var(--hi-base) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .55;
  background: repeating-linear-gradient(-30deg,
    transparent 0 46px,
    rgba(227, 25, 42, .10) 46px 47px,
    transparent 47px 92px,
    rgba(213, 175, 52, .07) 92px 93px);
  mask-image: radial-gradient(70% 60% at 80% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 80% 40%, #000 20%, transparent 75%);
}
.hero .container {
  display: grid; gap: 40px;
  padding-top: 40px; padding-bottom: 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hi-accent);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hi-success);
  box-shadow: 0 0 0 4px rgba(40, 167, 69, .2);
}
.display {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.005em; line-height: .92;
}
.hero h1 { margin-top: 14px; font-size: clamp(52px, 15vw, 96px); }
.hero h1 .gold {
  display: block;
  background: linear-gradient(180deg, #f1d36a 0%, var(--hi-accent) 55%, #a8851c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; /* keep italic overhang from clipping */
}
.tagline {
  margin-top: 18px;
  font-size: 18px; font-weight: 800; color: var(--hi-accent-hot);
  letter-spacing: .01em;
}
.hero-lede { margin-top: 10px; font-size: 17px; color: var(--hi-subtle); max-width: 34ch; }
.hero-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.hero-cta .btn { width: 100%; }
.trust {
  margin: 26px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px; color: var(--hi-subtle);
}
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--hi-accent); }

/* Phone mockups built around real app screenshots */
.phone {
  position: relative;
  width: 100%; max-width: 260px;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(145deg, #3a3a3e, #121214 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 30px 60px -20px rgba(0, 0, 0, .75),
    0 0 80px -20px rgba(213, 175, 52, .35);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 591 / 1205; object-fit: cover; object-position: top;
  border-radius: 30px; background: var(--hi-raised);
}
.hero-visual { position: relative; display: flex; justify-content: center; padding-inline: 8%; }
.hero-visual .phone-front { z-index: 2; max-width: 250px; transform: rotate(-3deg); }
.hero-visual .phone-back {
  position: absolute; max-width: 200px; right: 2%; top: 14%;
  transform: rotate(8deg); opacity: .55; filter: saturate(.8);
}
.payout-chip {
  position: absolute; z-index: 3; left: 0; top: 16%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(26, 26, 30, .92); border: 1px solid rgba(40, 167, 69, .45);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.payout-chip .ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(40, 167, 69, .18); color: var(--hi-success);
}
.payout-chip .ic svg { width: 18px; height: 18px; }
.payout-chip small { display: block; font-size: 11px; color: var(--hi-muted); font-weight: 600; line-height: 1.2; }
.payout-chip strong { font-size: 18px; color: var(--hi-success); line-height: 1.2; }

@media (min-width: 560px) {
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 96px; }
  .hero-lede { font-size: 19px; }
  .hero-visual .phone-front { max-width: 290px; }
  .hero-visual .phone-back { max-width: 230px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, #1c1f1f, #191b1c); border-block: 1px solid #2a2d2d; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { margin-top: 10px; font-size: clamp(40px, 11vw, 64px); }
.section-head h2 .red { color: var(--hi-accent-hot); }
.section-head h2 .gold { color: var(--hi-accent); }
.section-head p { margin-top: 14px; color: var(--hi-subtle); font-size: 16px; }
@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 48px; }
  .section-head p { font-size: 18px; }
}

.card {
  background: var(--hi-raised); border: 1px solid var(--hi-border);
  border-radius: var(--radius); padding: 22px;
}

/* Compare: betting vs HiStakes */
.compare { display: grid; gap: 14px; }
.compare .card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.compare ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { display: flex; gap: 12px; font-size: 15px; color: var(--hi-subtle); line-height: 1.5; }
.compare li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.compare .them h3 { color: var(--hi-muted); }
.compare .them li svg { color: #6b6b70; }
.compare .us { border-color: rgba(213, 175, 52, .45); background: linear-gradient(160deg, rgba(213, 175, 52, .10), var(--hi-raised) 55%); }
.compare .us li { color: #e2e2e4; }
.compare .us li svg { color: var(--hi-accent); }
.badge {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.badge-gold { background: var(--hi-accent); color: #141417; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; gap: 20px; } .compare .card { padding: 30px; } }

/* Steps — swipeable on mobile, grid on desktop */
.steps {
  margin: 0; padding: 4px var(--gutter) 12px; list-style: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  scroll-snap-align: center;
  display: flex; flex-direction: column;
  background: var(--hi-raised); border: 1px solid var(--hi-border); border-radius: var(--radius);
  overflow: hidden;
}
.step-shot {
  position: relative; height: 300px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 100%, rgba(213, 175, 52, .18), transparent 70%), #17181a;
  display: flex; justify-content: center; padding-top: 22px;
}
.step-shot .phone { max-width: 200px; border-radius: 30px; padding: 7px; }
.step-shot .phone img { border-radius: 24px; }
.step-body { padding: 18px 20px 22px; border-top: 1px solid var(--hi-border); }
.step-num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 15px; color: var(--hi-accent); letter-spacing: .06em;
}
.step h3 { margin-top: 4px; font-size: 19px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--hi-subtle); line-height: 1.55; }
.swipe-hint { margin-top: 6px; font-size: 13px; color: var(--hi-muted); display: flex; align-items: center; gap: 6px; }
.swipe-hint svg { width: 16px; height: 16px; }
@media (min-width: 760px) {
  .steps { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding: 0; gap: 20px; }
  .swipe-hint { display: none; }
}
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Games & platforms */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 16px 8px; border-radius: var(--radius-sm);
  background: var(--hi-raised); border: 1px solid var(--hi-border);
  font-size: 13px; font-weight: 700; line-height: 1.25;
}
.game .logo {
  width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: #fff;
  border: 1px solid rgba(213, 175, 52, .5);
}
.game .logo img { width: 100%; height: 100%; object-fit: contain; }
.game .logo.pad img { width: 78%; height: 78%; }
.game .logo.cover img { object-fit: cover; }
.game .logo.dark { background: #0d0f10; }
.platforms {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  color: var(--hi-muted); font-size: 13px; font-weight: 600;
}
.platforms .label { width: 100%; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi-muted); }
.platform { display: inline-flex; align-items: center; gap: 8px; color: var(--hi-subtle); }
.platform img { height: 20px; width: auto; opacity: .9; }
.platform img.sq { height: 24px; }
.game.more { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 14px; padding: 12px; }
.game.more .logo { width: 40px; height: 40px; border-radius: 12px; }
.games-note { margin-top: 18px; font-size: 14px; color: var(--hi-muted); }
.games-note a { color: var(--hi-accent); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) {
  .games { grid-template-columns: repeat(7, 1fr); gap: 14px; }
  .game.more { grid-column: auto; flex-direction: column; gap: 10px; padding: 22px 10px; }
  .game.more .logo { width: 68px; height: 68px; border-radius: 14px; }
  .game { padding: 22px 10px; font-size: 14px; }
  .game .logo { width: 68px; height: 68px; }
  .platforms .label { width: auto; margin-right: 8px; }
}

/* Fee calculator */
.calc-wrap { display: grid; gap: 20px; }
.calc { padding: 24px 20px; }
.calc label { display: block; font-size: 14px; font-weight: 700; color: var(--hi-subtle); }
.calc-stake {
  margin-top: 6px; display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 64px; line-height: 1; color: var(--hi-accent);
}
.calc-stake small { font-size: 18px; font-family: var(--font-body); font-style: normal; font-weight: 600; color: var(--hi-muted); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; margin: 10px 0 4px; background: transparent; cursor: pointer;
  --pct: 20%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--hi-accent) var(--pct), var(--hi-bar) var(--pct));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--hi-bar); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--hi-accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 4px solid var(--hi-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--hi-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.presets button {
  min-height: 40px; padding: 0; border-radius: 999px;
  border: 1px solid var(--hi-border-strong); background: var(--hi-bar); color: var(--hi-text);
  font: 700 14px/1 var(--font-body); cursor: pointer; transition: border-color .15s, color .15s;
}
.presets button:hover, .presets button[aria-pressed="true"] { border-color: var(--hi-accent); color: var(--hi-accent); }
@media (min-width: 560px) { .presets { display: flex; } .presets button { padding: 0 16px; } }
.calc dl { margin: 22px 0 0; display: grid; gap: 0; }
.calc dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hi-border); font-size: 15px; }
.calc dt { color: var(--hi-subtle); }
.calc dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc .total { border-top: 1px solid rgba(213, 175, 52, .35); padding-top: 16px; }
.calc .total dt { color: var(--hi-text); font-weight: 700; }
.calc .total dd { color: var(--hi-success); font-size: 26px; line-height: 1.1; }
.calc .profit { margin-top: 4px; text-align: right; font-size: 13px; color: var(--hi-muted); }
.calc .profit strong { color: var(--hi-success); }
.fee-facts { display: grid; gap: 12px; align-content: start; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .ic {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center;
  background: rgba(213, 175, 52, .12); border: 1px solid rgba(213, 175, 52, .3); color: var(--hi-accent);
}
.fact .ic svg { width: 20px; height: 20px; }
.fact h3 { font-size: 16px; }
.fact p { margin-top: 3px; font-size: 14.5px; color: var(--hi-subtle); line-height: 1.5; }
@media (min-width: 900px) {
  .calc-wrap { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
  .calc { padding: 32px; }
  .fee-facts { gap: 22px; padding-top: 8px; }
}

/* Feature grid */
.features { display: grid; gap: 12px; }
.feature { display: flex; gap: 14px; }
.feature .ic {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(213, 175, 52, .14); border: 1px solid rgba(213, 175, 52, .35); color: var(--hi-accent);
}
.feature .ic.red { background: rgba(227, 25, 42, .12); border-color: rgba(227, 25, 42, .35); color: #ff4a57; }
.feature .ic svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 5px; color: var(--hi-subtle); font-size: 14.5px; line-height: 1.55; }
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } .feature.card { padding: 26px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--hi-raised); border: 1px solid var(--hi-border); border-radius: 14px;
  transition: border-color .15s;
}
.faq details[open] { border-color: rgba(213, 175, 52, .4); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px; font-weight: 700; font-size: 16px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--hi-accent); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 18px; color: var(--hi-subtle); font-size: 15px; line-height: 1.6; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--hi-accent); }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 80px 0; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(213, 175, 52, .22), transparent 70%),
    radial-gradient(60% 80% at 50% 110%, rgba(227, 25, 42, .30), transparent 70%),
    var(--hi-canvas);
}
.final-cta img.mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; box-shadow: 0 12px 40px -10px rgba(213, 175, 52, .6); }
.final-cta h2 { font-size: clamp(48px, 14vw, 104px); }
.final-cta h2 .gold { color: var(--hi-accent); }
.final-cta h2 .red { color: var(--hi-accent-hot); }
.final-cta p { margin: 18px auto 0; max-width: 40ch; color: var(--hi-subtle); font-size: 17px; }
.final-cta .hero-cta { justify-content: center; max-width: 420px; margin-inline: auto; }
@media (min-width: 900px) { .final-cta { padding: 128px 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hi-canvas); border-top: 1px solid #23272a; padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--hi-muted); }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-brand .tag { color: var(--hi-accent); font-weight: 700; }
.footer-col h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hi-subtle); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.footer-col a { color: var(--hi-muted); text-decoration: none; display: inline-block; padding: 5px 0; }
.footer-col a:hover { color: var(--hi-text); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid #23272a;
  display: flex; flex-direction: column; gap: 10px; font-size: 13px;
}
.age-badge {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--hi-accent-hot); color: var(--hi-accent-hot); font-weight: 800; font-size: 11px;
  flex-shrink: 0;
}
.footer-bottom .rg { display: flex; align-items: center; gap: 10px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 22, 22, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(213, 175, 52, .25);
  display: flex; gap: 10px;
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { flex: 1; min-height: 48px; }
.mobile-cta .btn-ghost { flex: 0 0 auto; }
@media (min-width: 760px) { .mobile-cta { display: none; } }

/* ---------- Legal pages (mirror the in-app Terms / Privacy screens) ---------- */
/* Mobile: single centered column like the app. Desktop (≥1000px): full-width layout with a
   sticky "On this page" sidebar, so the page fills the screen without over-long lines. */
.legal { padding: 28px 0 72px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--hi-muted); font-size: 14px; text-decoration: none; padding: 6px 0;
}
.back-link:hover { color: var(--hi-text); }
.back-link svg { width: 16px; height: 16px; }
.legal-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 8px 22px; }
.legal-icon {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(213, 175, 52, .35); background: rgba(213, 175, 52, .15);
  box-shadow: 0 0 24px rgba(212, 175, 55, .12); color: var(--hi-accent);
}
.legal-icon svg { width: 32px; height: 32px; }
.legal-header h1 { margin-top: 20px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.legal-header p { margin-top: 6px; color: var(--hi-muted); font-size: 14px; }
.legal-toc {
  margin-bottom: 16px; padding: 16px 18px;
  background: var(--hi-raised); border: 1px solid var(--hi-border); border-radius: var(--radius);
}
.legal-toc summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--hi-subtle); }
.legal-toc ol, .legal-sidenav ol { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.legal-toc a { color: var(--hi-subtle); text-decoration: none; font-size: 14px; display: block; padding: 5px 0; }
.legal-toc a:hover { color: var(--hi-accent); }
.legal-sidenav { display: none; }
.legal-article {
  background: var(--hi-raised); border: 1px solid var(--hi-border); border-radius: var(--radius);
  padding: 24px 20px;
}
.legal-article section { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-article section + section { margin-top: 32px; }
.legal-article h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.legal-article p, .legal-article li { color: var(--hi-subtle); font-size: 14px; line-height: 1.7; }
.legal-article p { margin-top: 12px; }
.legal-article ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.legal-article li { display: flex; gap: 12px; }
.legal-article li::before {
  content: ""; width: 6px; height: 6px; margin-top: 9px; flex-shrink: 0;
  border-radius: 2px; background: var(--hi-accent);
}
.legal-article .sub { margin-top: 12px; }
.legal-article .sub strong { color: var(--hi-text); font-weight: 700; }
.legal-article a { color: var(--hi-accent); }
.legal-cta {
  margin-top: 20px; padding: 20px; border-radius: var(--radius);
  border: 1px solid rgba(213, 175, 52, .35);
  background: linear-gradient(160deg, rgba(213, 175, 52, .10), var(--hi-raised) 60%);
  display: flex; flex-direction: column; gap: 14px;
}
.legal-cta p { color: var(--hi-subtle); font-size: 14px; }
.legal-cta strong { color: var(--hi-text); display: block; font-size: 16px; }

/* Tablet: still one column, but roomier */
@media (min-width: 640px) {
  .legal { padding: 40px 0 96px; }
  .legal-article { padding: 32px 30px; }
  .legal-header h1 { font-size: 30px; }
  .legal-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .legal .container { max-width: 760px; }
}

/* Desktop: full container width, header row, sticky sidebar + content */
@media (min-width: 1000px) {
  .legal-header {
    flex-direction: row; text-align: left; gap: 20px;
    padding: 24px 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hi-border);
  }
  .legal-header h1 { margin-top: 0; font-size: 40px; }
  .legal-icon { width: 72px; height: 72px; }
  .legal-icon svg { width: 34px; height: 34px; }
  .legal-toc { display: none; }

  .legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; align-items: start; }
  .legal-sidenav {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
  }
  .legal-sidenav-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hi-muted); }
  .legal-sidenav ol { border-left: 1px solid var(--hi-border); gap: 0; }
  .legal-sidenav a {
    display: block; margin-left: -1px; padding: 7px 0 7px 16px;
    border-left: 2px solid transparent;
    color: var(--hi-subtle); text-decoration: none; font-size: 14px; line-height: 1.4;
    transition: color .15s, border-color .15s;
  }
  .legal-sidenav a:hover { color: var(--hi-text); }
  .legal-sidenav a[aria-current="true"] { color: var(--hi-accent); border-left-color: var(--hi-accent); font-weight: 600; }
  .legal-sidenav-other {
    display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 700;
    color: var(--hi-accent); text-decoration: none;
  }

  .legal-article { padding: 44px 52px; }
  .legal-article section + section { margin-top: 0; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--hi-border); }
  .legal-article h2 { font-size: 19px; }
  .legal-article p, .legal-article li { font-size: 15.5px; max-width: 78ch; }
  .legal-article li::before { margin-top: 10px; }
  .legal-cta { padding: 24px 32px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Error pages ---------- */
.error-page { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; }
.error-page h1 { margin-top: 12px; font-size: clamp(88px, 28vw, 180px); }
.error-page h1 .gold { color: var(--hi-accent); }
.error-page h1 .red { color: var(--hi-accent-hot); }
.error-page h2 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.error-page p:not(.eyebrow) { margin-top: 10px; }
.error-page .hero-cta { margin-top: 28px; }
.error-page .eyebrow { color: var(--hi-accent); }
