/* ==========================================================================
   Luma Capital landing page — black & blue theme
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070d;
  --bg-soft: #070b15;
  --surface: #0a0f1c;
  --surface-2: #0e1628;
  --surface-3: #131c33;
  --chart-bg: #03060d;

  --line: rgba(125, 155, 255, 0.12);
  --line-strong: rgba(125, 155, 255, 0.24);

  --text: #e8edff;
  --text-2: #a6b1cf;
  --muted: #7682a3;

  --blue: #3b82f6;
  --blue-2: #2563eb;
  --blue-bright: #60a5fa;
  --blue-pale: #bfdbfe;
  --blue-soft: rgba(59, 130, 246, 0.14);

  --up: #34d399;
  --down: #f87171;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 24px;
  --tabbar-h: 64px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, #4b8dff, var(--blue-2));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35), 0 8px 28px -6px rgba(59, 130, 246, 0.65);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.55), 0 12px 36px -4px rgba(59, 130, 246, 0.85);
  }
  .btn-ghost:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.45);
  }
}

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px; border: 0;
  background: none; color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
  transition: box-shadow 0.3s;
}
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav.scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8); }

.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a,
.nav-links > li > button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 0;
  background: none; color: var(--text-2);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links > li > a[aria-current="true"] { color: var(--text); background: var(--surface-3); }

.dropdown { position: relative; }
.dropdown button svg { transition: transform 0.2s; }
.dropdown.open button svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 210px; list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); font-size: 14px;
}
.dropdown-menu a:hover { background: var(--blue-soft); color: var(--text); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.nav-links > .menu-only { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 112px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 78% 42%, rgba(37, 99, 235, 0.2), transparent 62%),
    radial-gradient(700px 420px at 8% 95%, rgba(29, 78, 216, 0.12), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(125, 155, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 155, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 20px;
}
.accent {
  background: linear-gradient(90deg, var(--blue-bright), var(--blue) 55%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.45));
}
.lead {
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- language picker (shared) ---------- */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
}
.lang-btn svg:last-child { transition: transform 0.2s; }
.lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.flag {
  display: block; flex: none;
  width: 24px; height: 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 190px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface-2, #11182b);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.85);
}
.lang-menu button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px;
  background: none;
  color: var(--text-2);
  font: inherit; font-size: 15px; text-align: left;
  cursor: pointer;
}
.lang-menu button[aria-pressed="true"] { background: var(--blue-soft); color: var(--text); }
@media (hover: hover) {
  .lang-btn:hover { color: var(--text); border-color: rgba(96, 165, 250, 0.45); }
  .lang-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 44px 0 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.hero-stats > div {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; text-align: center;
}
.hero-stats dt {
  margin: 0;
  font-size: 12px; line-height: 1.3; color: var(--muted);
  white-space: nowrap;
}
.hero-stats dd {
  margin: 0;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero chart card ---------- */
.chart-card {
  position: relative;
  padding: 22px 22px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.88), rgba(8, 12, 22, 0.94));
  box-shadow: 0 40px 90px -40px rgba(37, 99, 235, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.chart-card::before {
  content: "";
  position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent);
}

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.label { font-size: 13px; color: var(--muted); font-weight: 500; }
.value-xl { margin: 4px 0 4px; font-size: 34px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }

.delta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta-arrow { font-size: 10px; }
.delta-period { color: var(--muted); font-weight: 500; }

.tabs {
  display: inline-flex; padding: 3px;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.tab {
  padding: 6px 12px; border-radius: 7px; border: 0;
  background: none; color: var(--muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] {
  background: var(--blue-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.4);
}

.live-chart {
  position: relative;
  height: 290px;
  margin: 18px 0 14px;
  border-radius: 14px;
  background: radial-gradient(120% 90% at 60% 30%, rgba(37, 99, 235, 0.1), transparent 60%), var(--chart-bg);
  border: 1px solid rgba(125, 155, 255, 0.08);
}
.live-chart canvas { width: 100%; height: 100%; border-radius: 14px; cursor: crosshair; touch-action: pan-y; }
.live-chart canvas:focus-visible { outline-offset: 3px; border-radius: 14px; }

.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; }
.live-indicator .live-dot { width: 6px; height: 6px; }

/* ---------- tooltips ---------- */
.tooltip {
  position: absolute; z-index: 5;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 15, 28, 0.96);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.85);
  font-size: 12.5px;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 14px));
}
.tooltip.below { transform: translate(-50%, 14px); }
.tooltip strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.tooltip span { color: var(--muted); }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
#plans { border-bottom: 1px solid var(--line); }
.section-tight { padding: 40px 0 110px; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 44px;
}
.kicker {
  margin-bottom: 12px;
  color: var(--blue-bright);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
}
.section-sub { max-width: 560px; color: var(--text-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- social proof / scarcity ---------- */
.proof-band {
  position: relative;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 70%),
    var(--bg);
}
/* recent events feed (replaces the old 3 stat boxes) */
.recent-events {
  padding: 16px 0 20px;
}
.recent-events-head {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.recent-feed {
  --recent-row: 52px;
  --recent-gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--recent-gap);
  height: calc(3 * var(--recent-row) + 2 * var(--recent-gap));
  overflow: hidden; /* never show a 4th row */
  position: relative;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 var(--recent-row);
  height: var(--recent-row);
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.35;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
}
.recent-item.is-animating {
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.recent-item.is-leave { opacity: 0; }
.recent-item.is-enter { opacity: 0; }
.recent-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
.recent-main .recent-action { color: rgba(255, 255, 255, 0.72); }
.recent-amt {
  flex: none;
  color: var(--up);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.proof-ticker {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(59, 130, 246, 0.08);
  min-height: 48px;
}
.proof-ticker-label {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--up);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.proof-ticker-text {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proof-ticker-text.is-swap { animation: proofSwap 0.35s ease; }
@keyframes proofSwap {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- plans comparison (mobile-first: stack → 2-col → 4-col) ---------- */
.plans-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 22px 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.plan-card.featured {
  border-color: rgba(96, 165, 250, 0.55);
  background:
    radial-gradient(420px 180px at 50% -20%, rgba(59, 130, 246, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(17, 24, 43, 0.98), rgba(11, 16, 30, 0.98));
  box-shadow: 0 24px 50px -28px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.plan-tag {
  position: absolute; top: -11px; left: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4b8dff, var(--blue-2));
  color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.9);
  white-space: nowrap;
}
.plan-card-miner {
  margin: 4px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}
.plan-card.featured .plan-card-miner { margin-top: 8px; }
.plan-card-amt {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.plan-card-earn {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 14px;
}
.plan-card-earn span {
  color: var(--up);
  font-size: 18px; font-weight: 700;
}
.plan-card-perks {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: grid; gap: 8px;
  flex: 1;
}
.plan-card-perks li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 13.5px; line-height: 1.4;
}
.plan-card-perks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--up);
  font-weight: 700;
}
.plan-urgency {
  margin: 0;
  color: #fb923c;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
.plan-urgency strong {
  color: #fdba74;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.plan-card .btn {
  margin-top: auto;
  white-space: nowrap;
}
.plan-card:has(.plan-urgency) .btn { margin-top: 4px; }
.plan-card:not(:has(.plan-urgency)) .btn { margin-top: auto; }
@media (min-width: 720px) {
  .plans-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .plan-card.featured { grid-column: 1 / -1; } /* $200 stays full-width & first on tablet */
}
@media (min-width: 1100px) {
  .plans-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plan-card.featured {
    grid-column: auto;
    transform: translateY(-4px);
  }
}

/* ---------- calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: stretch;
}

.calc-form { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.calc-form label { flex: none; font-size: 16px; font-weight: 600; }
.calc-block { display: flex; flex-direction: column; gap: 10px; }

.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 0; }
.calc-live {
  font-size: 14px; font-weight: 600;
  color: var(--blue-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .plan-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.plan-chip {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.plan-chip:active { transform: scale(0.98); }
.plan-amt { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
@media (hover: hover) {
  .plan-chip:hover { border-color: rgba(96, 165, 250, 0.55); }
}
.plan-chip[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}
.plan-chip[aria-pressed="true"] .plan-amt { color: var(--blue-bright); }

.money-input {
  display: flex; align-items: center;
  width: 170px; height: 46px; padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.money-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.money-input span { color: var(--muted); margin-right: 4px; }
.money-input input {
  width: 100%; min-width: 0;
  border: 0; outline: 0; background: none;
  color: var(--text); font: inherit; font-size: 17px; font-weight: 600;
  text-align: right;
}

/* Range slider: the input is 32px tall so it is easy to grab with a thumb;
   the visible track is 6px. Fill width comes from --pct, set in JS. */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%; height: 32px; margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue-bright) var(--pct, 0%), rgba(255, 255, 255, 0.1) var(--pct, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 0 18px rgba(59, 130, 246, 0.75);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--blue-2), var(--blue-bright)); }
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 0 18px rgba(59, 130, 246, 0.75);
}
input[type="range"]:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; }

.range-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
@media (hover: hover) {
  .chip:hover { border-color: rgba(96, 165, 250, 0.55); color: var(--text); }
}
.chip[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); color: var(--text); }

/* result line */
.calc-result {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px;
  overflow: hidden;
}
.calc-result::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(640px 260px at 95% -10%, rgba(59, 130, 246, 0.16), transparent 70%);
  pointer-events: none;
}
.calc-result > * { position: relative; }

.equation {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 12px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.03));
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.06);
}
.eq-item { display: flex; flex-direction: column; gap: 2px; }
.eq-label { font-size: 12.5px; color: var(--muted); }
.eq-val { display: flex; align-items: center; gap: 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.eq-arrow { color: var(--blue-bright); filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.7)); }
.eq-earn { margin-left: auto; padding-left: 22px; border-left: 1px solid var(--line-strong); }
.eq-earn .eq-val { color: var(--up); }
.eq-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--up);
  font-size: 13px; font-weight: 700; letter-spacing: 0;
}

.disclaimer { margin-top: 16px; color: var(--muted); font-size: 12.5px; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 28px;
  padding: 56px;
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(59, 130, 246, 0.3), transparent 65%),
    radial-gradient(500px 260px at 0% 100%, rgba(29, 78, 216, 0.22), transparent 65%),
    linear-gradient(135deg, #0b1530, #050810);
  box-shadow: 0 40px 100px -50px rgba(59, 130, 246, 0.7);
}
.cta h2 { max-width: 560px; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; justify-items: start; gap: 14px; }
.footer-note { max-width: 640px; color: var(--muted); font-size: 13px; }
.footer-copy { color: var(--muted); font-size: 12.5px; }

/* ---------- mobile tab bar (phones only) ---------- */
.tabbar { display: none; }

.tabbar-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--muted);
  font-size: 11.5px; font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.2s;
}
.tabbar-item svg { width: 24px; height: 24px; }
.tabbar-item:active { color: var(--text); }
.tabbar-item[aria-current="page"] { color: var(--text); }
.tabbar-item[aria-current="page"] svg { color: var(--blue-bright); filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.75)); }
.tabbar-item[aria-current="page"]::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 28px; height: 3px; margin-left: -14px;
  border-radius: 0 0 3px 3px;
  background: var(--blue-bright);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
}

@media (max-width: 640px) {
  .has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: #05070D;
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 30px -14px rgba(0, 0, 0, 0.9);
  }
  /* get out of the way while typing (the keyboard is up) */
  .has-tabbar:has(input:not([type="range"]):not([type="checkbox"]):focus) .tabbar { display: none; }
}

/* ---------- hero mobile sneak-peek (phones replace the chart with these) ---------- */
.hero-peek { display: none; }
.peek-card {
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.9), rgba(8, 12, 22, 0.94));
  box-shadow: 0 20px 50px -30px rgba(37, 99, 235, 0.6);
  color: inherit;
}
.peek-card:active { transform: scale(0.99); }
.peek-head { display: flex; align-items: center; gap: 12px; }
.peek-icon {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: var(--blue-soft);
  color: var(--blue-bright);
}
.peek-icon.game { border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.12); color: var(--up); }
.peek-title { flex: 1; min-width: 0; }
.peek-kicker { color: var(--muted); font-size: 12px; font-weight: 500; }
.peek-title h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.peek-price {
  flex: none;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.peek-badge {
  flex: none; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.peek-badge.up { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); color: var(--up); }
.peek-badge.free { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); color: var(--up); }

.peek-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 16px 0 14px;
  align-items: start;
}
.peek-row > div {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; text-align: left;
}
.peek-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px; line-height: 1.3;
  white-space: nowrap;
}
.peek-row dd {
  margin: 0;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.peek-tiles { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.peek-tile {
  flex: 1; aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
}
.peek-tile.a { background: linear-gradient(140deg, #7c3aed, #2563eb); }
.peek-tile.b { background: linear-gradient(140deg, #0ea5e9, #155e75); }
.peek-q { font-size: 24px; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.peek-vs { flex: none; color: var(--muted); font-size: 13px; }

.peek-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue-bright); font-size: 14px; font-weight: 600;
}


/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.hero-grid .chart-card.reveal { transition-delay: 0.12s; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 64px 0 80px; }
  .hero-copy { max-width: 640px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--bg);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; padding: 12px 14px; }
  .dropdown-menu {
    position: static; display: none;
    min-width: 0; margin: 2px 0 4px 12px;
    box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .section { padding: 80px 0; }
  .section-tight { padding: 24px 0 80px; }
  .cta { padding: 40px 32px; }
}

/* Phones — most of the traffic */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  /* nav: logo, Register, menu (sign-in moves into the menu) */
  .nav-inner { gap: 8px; height: 60px; }
  .nav-links { top: 60px; }
  .nav-links > .menu-only { display: block; }
  .logo { font-size: 18px; }
  .logo-mark { width: 30px; height: 30px; }
  .nav-actions { gap: 4px; }
  .nav-signin { display: none; }
  .nav-cta { height: 36px; padding: 0 14px; }

  /* hero */
  .hero { padding: 52px 0 80px; }
  .hero-grid { gap: 36px; }
  h1 { margin: 16px 0 14px; }
  .lead { margin-bottom: 32px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .hero-stats { gap: 10px 12px; margin-top: 40px; padding-top: 24px; }
  .hero-stats dd { font-size: 18px; }

  /* hide chart on phones */
  .chart-card { display: none; }

  /* sections */
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-tight { padding: 8px 0 56px; }

  /* recent events */
  .recent-events { padding: 24px 0 16px; }
  .recent-feed {
    --recent-row: 48px;
    --recent-gap: 7px;
  }
  .recent-item { padding: 0 12px; font-size: 13px; }
  .peek-row { gap: 8px 10px; }
  .peek-row dd { font-size: 13.5px; }

  /* plans — full-width stacked cards on phones */
  .plan-card { padding: 20px 16px 16px; }
  .plan-card-amt { font-size: 28px; }
  .plan-card .btn { min-height: 48px; }

  /* calculator — thumb-friendly on phones */
  .calc-grid { gap: 16px; }
  .calc-form, .calc-result { padding: 18px; }
  .calc-form { gap: 20px; }
  .plan-chips { gap: 8px; }
  .plan-chip { min-height: 48px; padding: 12px; }
  .plan-amt { font-size: 16px; }
  .calc-live { font-size: 12.5px; }
  input[type="range"] { height: 36px; } /* bigger grab target on mobile */
  input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }

  /* result becomes a label/value list so long amounts never wrap mid-line */
  .equation { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 14px; }
  .eq-item { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .eq-arrow { display: none; }
  .eq-earn { margin: 0; padding: 14px 0; border: 0; }
  .eq-label { font-size: 14px; }
  .eq-val { font-size: 20px; }
  .eq-badge { font-size: 12px; }

  /* register CTA */
  .cta { padding: 32px 20px; gap: 24px; }
  .cta-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Legal pages (privacy, terms)
   ========================================================================== */
.legal-page { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
  flex: 1;
}

.legal-main .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  margin-bottom: 32px;
  transition: color .15s;
}
.legal-main .back-link:hover { color: var(--blue-bright); }

.legal-main h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-main section { margin-bottom: 32px; }

.legal-main h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-main p, .legal-main li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal-main ul {
  padding-left: 24px;
  margin: 12px 0 0;
}
.legal-main li { margin-bottom: 6px; }

.legal-footer {
  text-align: center;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- FAQ page ---------- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--line-strong); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px; color: var(--muted);
  transition: transform .2s;
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--surface); }

.faq-answer {
  padding: 0 18px 16px;
}
.faq-answer p {
  color: var(--text-2); font-size: 14px; line-height: 1.65;
}

/* ---------- About page ---------- */
.about-hero {
  text-align: center;
  padding: 32px 0 40px;
}
.about-logo { display: inline-block; margin-bottom: 16px; }
.about-hero h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
}
.about-version {
  color: var(--muted); font-size: 14px; margin-top: 4px;
}
.about-footer-note {
  margin-top: 40px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-align: center;
}
.about-footer-note p { color: var(--muted); font-size: 13px; }

/* ---------- Support page ---------- */
.support-subtitle {
  color: var(--text-2); font-size: 15px; margin-bottom: 32px;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.support-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
}
.support-card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-bright);
}
.support-card h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
}
.support-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; flex: 1; }
.support-card .btn { align-self: flex-start; }

.btn-sm {
  padding: 8px 16px; font-size: 13px; border-radius: 10px;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-soft); }

.support-form-section { margin-top: 8px; }
.support-form-section h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  margin-bottom: 20px;
}
.support-form { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Download / Install page ---------- */
.download-hero {
  text-align: center;
  padding: 24px 0 32px;
}
.download-icon { display: inline-block; margin-bottom: 16px; }
.download-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
}
.download-subtitle {
  color: var(--text-2); font-size: 15px; max-width: 440px; margin: 0 auto; line-height: 1.6;
}

.install-prompt {
  text-align: center;
  margin-bottom: 32px;
}
.install-btn { width: 100%; max-width: 320px; }

.install-section {
  margin-bottom: 32px;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.install-section-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.install-platform-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-bright);
  flex-shrink: 0;
}
.install-section h2 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; margin: 0;
}

.install-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.install-steps li {
  display: flex; gap: 14px; align-items: flex-start;
}
.step-num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-bright);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.install-steps strong {
  display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.install-steps p {
  color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0;
}

.download-note {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-align: center;
  margin-top: 8px;
}
.download-note p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Platform sections */
.platform-section[hidden] { display: none; }

/* Install hint text */
.install-hint {
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Manual steps toggle */
.manual-steps {
  margin-top: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.manual-steps summary {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.manual-steps summary::before {
  content: '';
  width: 6px; height: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .2s;
}
.manual-steps[open] summary::before { transform: rotate(45deg); }
.manual-steps .install-steps { padding: 0 20px 20px; }

/* Already-installed state */
.install-done {
  text-align: center;
  padding: 32px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
}
.done-icon { margin-bottom: 12px; }
.done-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--up, #34d399);
}

/* iOS guided walkthrough */
.ios-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.ios-guide-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.ios-share-icon,
.ios-add-icon,
.ios-check-icon {
  margin-bottom: 14px;
}
.ios-share-icon svg {
  animation: iosBounce 2s ease-in-out infinite;
}
@keyframes iosBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.ios-step-label {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.ios-step-label strong { color: var(--blue-bright, var(--blue)); }
.ios-arrow-hint {
  margin-top: 12px;
  animation: iosBounce 2s ease-in-out infinite;
  opacity: 0.5;
}
.ios-safari-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
  margin-bottom: 16px;
}
.ios-safari-note strong { color: #fbbf24; }

/* Desktop browser note */
.desktop-browser-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 16px;
}
.desktop-browser-note strong { color: var(--text-2); }

/* Footer legal links */
.footer-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 8px;
  font-size: 13px;
}
.footer-legal a {
  color: var(--muted);
  transition: color .15s;
}
.footer-legal a:hover { color: var(--blue); }
