/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

/* Prevent grid children from overflowing their track on all screen sizes */
.home-hero-inner > *,
.home-section-inner > *,
.how-grid > *,
.honest-grid > *,
.hero-inner > *,
.why-columns > * { min-width: 0; }

:root {
  --green:      #166534;
  --green-mid:  #16a34a;
  --green-lt:   #dcfce7;
  --gold:       #d97706;
  --gold-lt:    #fef3c7;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --slate-900:  #0f172a;
  --slate-800:  #1e293b;
  --slate-700:  #334155;
  --slate-500:  #64748b;
  --slate-300:  #cbd5e1;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:  0 4px 6px rgba(0,0,0,.07), 0 12px 40px rgba(0,0,0,.10);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background: var(--slate-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: 60px;
  min-width: 0; width: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-icon { font-size: 22px; }
.brand-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.brand-ai   { color: var(--green-mid); }
.nav-links  { display: flex; gap: 4px; flex: 1; }
.nav-link   {
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; transition: all .15s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,.08);
  text-decoration: none;
}
.nav-right       { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-links-desktop { display: flex; gap: 4px; flex: 1; }

/* ── Mobile bottom nav ─────────────────────────────────────────── */
.mobile-nav { display: none; }
.nav-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: var(--green); color: #fff;
  padding: 2px 8px; border-radius: 4px;
}
.nav-link-sm { font-size: 13px; }
.nav-user    { font-size: 13px; color: rgba(255,255,255,.55); }
.nav-btn {
  font-size: 13px; font-weight: 700;
  background: var(--green-mid); color: #fff;
  padding: 6px 14px; border-radius: 6px;
  text-decoration: none; transition: background .15s;
}
.nav-btn:hover { background: var(--green); text-decoration: none; color: #fff; }

/* ── Shared buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green-mid); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 13px 28px; border-radius: 8px;
  text-decoration: none; transition: background .15s;
}
.btn-primary:hover { background: var(--green); text-decoration: none; color: #fff; }
.btn-primary.btn-large { font-size: 17px; padding: 16px 36px; }
.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2);
  text-decoration: none; transition: all .15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

/* ── Home hero ─────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #0f1f0f 60%, #1a2e1a 100%);
  padding: 80px 24px 80px;
  border-bottom: 3px solid var(--green-mid);
}
.home-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center;
}
.home-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--green-mid);
  border: 1px solid rgba(22,163,74,.4); padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.home-hero-text h1 {
  font-size: clamp(36px, 4.5vw, 58px); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.home-hero-text p {
  font-size: 17px; color: rgba(255,255,255,.65);
  max-width: 520px; line-height: 1.75; margin-bottom: 14px;
}
.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.home-hero-stats {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.home-stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
}
.home-stat.highlight {
  background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.35);
}
.home-stat-num   { font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.home-stat.highlight .home-stat-num { color: #4ade80; }
.home-stat-label { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 6px; font-weight: 500; }

/* ── Trust strip ───────────────────────────────────────────────── */
.trust-strip {
  background: var(--green); padding: 14px 24px;
}
.trust-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
}
.trust-item { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }
.trust-divider { width: 1px; height: 16px; background: rgba(255,255,255,.3); }

/* ── Home sections ─────────────────────────────────────────────── */
.home-section { padding: 80px 24px; background: var(--white); }
.home-section-alt { background: var(--slate-50); }
.home-section-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.home-section-inner.reverse .home-section-visual { order: -1; }
.home-section-inner.reverse .home-section-text    { order:  1; }
.home-section-text h2 {
  font-size: 32px; font-weight: 800; color: var(--slate-900);
  letter-spacing: -.5px; line-height: 1.2; margin-bottom: 18px;
}
.home-section-text p {
  font-size: 16px; color: var(--slate-600); line-height: 1.8; margin-bottom: 14px;
}

/* Explainer card */
.explainer-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow-lg);
}
.explainer-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--slate-400); margin-bottom: 18px;
}
.explainer-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.explainer-label { font-size: 14px; color: var(--slate-500); }
.explainer-val { font-size: 18px; font-weight: 700; }
.explainer-val.odds { color: var(--slate-700); }
.explainer-val.model { color: var(--green); }
.explainer-sub { font-size: 13px; font-weight: 500; color: var(--slate-400); }
.explainer-divider { height: 1px; background: var(--slate-200); margin: 16px 0; }
.explainer-result {
  border-radius: 8px; padding: 14px 16px; margin-bottom: 14px;
}
.explainer-result.positive { background: var(--green-lt); }
.explainer-result-label { display: block; font-size: 14px; font-weight: 700; color: var(--green); }
.explainer-result-sub { display: block; font-size: 12px; color: var(--green); margin-top: 3px; opacity: .8; }
.explainer-note { font-size: 13px; color: var(--slate-500); line-height: 1.6; margin: 0; }

/* Mini accuracy card */
.mini-accuracy {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg);
}
.mini-accuracy-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--slate-400); margin-bottom: 16px;
}
.mini-stat-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--slate-100); font-size: 14px; color: var(--slate-600);
}
.mini-stat-row strong { font-size: 16px; font-weight: 700; color: var(--slate-900); }
.mini-stat-row strong.pos { color: var(--green); }
.mini-cal-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mini-cal-label { font-size: 12px; color: var(--slate-500); min-width: 120px; }
.mini-cal-bar-wrap { flex: 1; height: 6px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.mini-cal-bar { height: 100%; background: var(--green-mid); border-radius: 3px; }
.mini-cal-pct { font-size: 12px; color: var(--green); font-weight: 600; min-width: 64px; text-align: right; }
.mini-accuracy-link { margin-top: 16px; font-size: 13px; }

/* ── How it works ──────────────────────────────────────────────── */
.home-how {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--slate-900) 0%, #0f1f0f 100%);
}
.home-how-inner { max-width: 1280px; margin: 0 auto; }
.home-how-inner h2 {
  font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; text-align: center; margin-bottom: 8px;
}
.home-how-sub { text-align: center; color: rgba(255,255,255,.5); font-size: 16px; margin-bottom: 52px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 32px;
}
.how-num {
  font-size: 42px; font-weight: 900; color: rgba(22,163,74,.3);
  letter-spacing: -2px; margin-bottom: 16px; line-height: 1;
}
.how-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.how-card p  { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.75; }

/* ── Honest section ────────────────────────────────────────────── */
.home-honest { padding: 80px 24px; background: var(--white); }
.home-honest-inner { max-width: 1280px; margin: 0 auto; }
.home-honest-inner h2 {
  font-size: 30px; font-weight: 800; color: var(--slate-900);
  letter-spacing: -.5px; text-align: center; margin-bottom: 40px;
}
.honest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.honest-item {
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 28px;
}
.honest-icon { font-size: 28px; margin-bottom: 14px; }
.honest-item h3 { font-size: 17px; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
.honest-item p  { font-size: 14px; color: var(--slate-600); line-height: 1.75; }

/* ── Home CTA ──────────────────────────────────────────────────── */
.home-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  padding: 80px 24px; text-align: center;
}
.home-cta-inner { max-width: 640px; margin: 0 auto; }
.home-cta h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.5px; }
.home-cta p  { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 28px; }
.home-cta .btn-primary {
  background: #fff; color: var(--green); font-size: 17px;
  padding: 16px 40px;
}
.home-cta .btn-primary:hover { background: rgba(255,255,255,.9); color: var(--green); }
.home-cta-links { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.65); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-cta-links a { color: rgba(255,255,255,.8); }
.home-cta-links a:hover { color: #fff; }

/* ── Hero (races page — keep existing) ────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1a2e1a 100%);
  padding: 64px 24px;
  border-bottom: 3px solid var(--green-mid);
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 17px; color: rgba(255,255,255,.7); max-width: 480px; line-height: 1.7;
}
.hero-stats { display: flex; gap: 16px; }
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
  min-width: 110px;
}
.stat-card.highlight {
  background: rgba(22,163,74,.15);
  border-color: rgba(22,163,74,.4);
}
.stat-number { font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.stat-card.highlight .stat-number { color: #4ade80; }
.stat-label  { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; font-weight: 500; }

/* ── EV Strip ──────────────────────────────────────────────────── */
.ev-strip {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  padding: 12px 24px;
}
.ev-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
}
.ev-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate-700); }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ev-dot.strong  { background: var(--green-mid); }
.ev-dot.possible{ background: var(--gold); }
.ev-dot.none    { background: var(--slate-300); }
.ev-link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--green-mid); }

/* ── Date bar ──────────────────────────────────────────────────── */
.date-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 60px; z-index: 90;
  box-shadow: 0 1px 0 var(--slate-200);
}
.date-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.date-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.date-label { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.prices-freshness { font-size: 12px; font-weight: 500; color: var(--slate-500); }
.prices-stale { color: var(--slate-400); }
.filter-row { display: flex; gap: 6px; }
.filter-btn {
  font-size: 13px; font-weight: 500; padding: 6px 14px;
  border: 1px solid var(--slate-300); border-radius: 20px;
  background: var(--white); color: var(--slate-600);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--green-mid); color: var(--green); }
.filter-btn.active {
  background: var(--green); border-color: var(--green);
  color: #fff;
}

/* ── Strategy filter bar ───────────────────────────────────────── */
.strategy-bar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}
.strategy-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.strategy-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; gap: 12px;
}
.strategy-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--slate-200); border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--slate-700);
  cursor: pointer; transition: all .15s;
}
.strategy-toggle:hover { border-color: var(--green-mid); color: var(--green); }
.strategy-icon  { font-size: 14px; }
.strategy-chevron { font-size: 10px; color: var(--slate-400); }

.strategy-share-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.share-btn {
  font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: 6px; border: 1px solid; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.share-x    { background: #000; color: #fff; border-color: #000; }
.share-x:hover { background: #333; }
.share-wa   { background: #25d366; color: #fff; border-color: #25d366; }
.share-wa:hover { background: #1da851; }
.share-copy { background: var(--slate-100); color: var(--slate-700); border-color: var(--slate-300); }
.share-copy:hover { background: var(--slate-200); }

.strategy-panel {
  display: none; padding: 16px 0 20px;
  border-top: 1px solid var(--slate-100);
}
.strategy-panel.open { display: block; }

/* Presets */
.strategy-presets {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--slate-200);
}
.preset-label { font-size: 12px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .5px; }
.preset-chip {
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border: 1px solid var(--slate-300); border-radius: 20px;
  background: var(--white); color: var(--slate-700); cursor: pointer;
  transition: all .15s;
}
.preset-chip:hover { border-color: var(--green-mid); color: var(--green); }
.preset-chip.preset-active { background: var(--green); border-color: var(--green); color: #fff; }
.preset-hint { font-size: 12px; color: var(--slate-400); }

/* Strategy manager */
.strategy-manager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.strategy-load-select {
  font-size: 13px; padding: 7px 12px; border: 1px solid var(--slate-300);
  border-radius: 6px; background: var(--white); color: var(--slate-700); cursor: pointer;
  max-width: 180px;
}
.strategy-del-btn {
  font-size: 13px; padding: 7px 10px; border: 1px solid var(--slate-300);
  border-radius: 6px; background: var(--white); cursor: pointer; transition: all .15s;
}
.strategy-del-btn:hover { border-color: var(--red); background: var(--red-lt); }

.strategy-filters {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px;
  margin-bottom: 16px;
}
.sf-group { display: flex; flex-direction: column; gap: 8px; }
.sf-label { font-size: 11px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .5px; }
.sf-input-row { display: flex; align-items: center; gap: 10px; }
.sf-slider {
  flex: 1; height: 4px; accent-color: var(--green-mid);
  cursor: pointer;
}
.sf-val { font-size: 13px; font-weight: 700; color: var(--green); min-width: 48px; text-align: right; }
.sf-select {
  width: 100%; font-size: 13px; padding: 6px 10px;
  border: 1px solid var(--slate-300); border-radius: 6px;
  background: var(--white); color: var(--slate-700);
  cursor: pointer;
}

.strategy-summary {
  font-size: 13px; color: var(--slate-500);
  padding: 10px 14px; background: var(--slate-50);
  border-radius: 6px; border: 1px solid var(--slate-200);
}
.strategy-summary strong { color: var(--green); }

/* Horse row strategy highlighting */
.strategy-match > td { background: rgba(22,163,74,.04) !important; }
.strategy-dim { opacity: 0.35; }

/* ── Races container ───────────────────────────────────────────── */
.races-container {
  max-width: 1280px; margin: 24px auto; padding: 0 24px;
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Race card ─────────────────────────────────────────────────── */
.race-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s;
}
.race-card:hover { box-shadow: var(--shadow-lg); }

.race-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
  user-select: none;
  transition: background .15s;
}
.race-header:hover { background: var(--slate-50); }

.race-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.race-time  { font-size: 20px; font-weight: 800; color: var(--slate-900); min-width: 48px; }
.race-track { font-size: 16px; font-weight: 700; color: var(--green); }
.race-tags  { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 500;
  background: var(--slate-100); color: var(--slate-600);
  padding: 2px 9px; border-radius: 12px;
}

.race-header-right { display: flex; align-items: center; gap: 12px; }
.value-badge {
  font-size: 12px; font-weight: 700;
  background: var(--green-lt); color: var(--green);
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(22,163,74,.2);
}
.toggle-icon { font-size: 12px; color: var(--slate-400); transition: transform .2s; }
.toggle-icon.open { transform: rotate(180deg); }

/* Race result badge (race header) */
.result-race-badge {
  font-size: 12px; font-weight: 700;
  background: var(--green-lt); color: var(--green);
  border: 1px solid rgba(22,163,74,.25);
  padding: 4px 12px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.result-bsp { font-weight: 500; opacity: .75; }

/* Horse row result indicators */
.horse-result-won {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: var(--green-lt); color: var(--green);
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.horse-result-lost {
  display: inline-block; font-size: 12px; font-weight: 500;
  color: var(--slate-400);
}

/* ── Horses table ──────────────────────────────────────────────── */
.race-body { display: none; }
.race-body.open { display: block; }
.table-wrap { overflow-x: auto; }

.horses-table { width: 100%; border-collapse: collapse; }
.horses-table thead tr {
  background: var(--slate-50);
  border-bottom: 2px solid var(--slate-200);
}
.horses-table th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--slate-500);
  letter-spacing: .5px; text-transform: uppercase; white-space: nowrap;
}
.horses-table td { padding: 12px 14px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.horse-row:hover > td { background: var(--slate-50); }
.horse-row.is-pick > td:first-child { border-left: 3px solid var(--green-mid); }
.horse-row.has-value > td { background: rgba(22,163,74,.02); }

.horse-name { font-weight: 700; font-size: 15px; color: var(--slate-900); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.horse-meta { font-size: 12px; color: var(--slate-500); margin-top: 2px; }

.rank-badge { display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  background: var(--slate-100); color: var(--slate-500); }
.rank-badge.rank-1   { background: var(--green); color: #fff; }
.rank-badge.rank-top { background: var(--green-lt); color: var(--green); }

.pick-badge  { font-size: 11px; font-weight: 700; background: var(--green-lt); color: var(--green); padding: 2px 8px; border-radius: 10px; }
.agree-badge { font-size: 11px; font-weight: 600; background: var(--slate-100); color: var(--slate-600); padding: 2px 8px; border-radius: 10px; }

.prob-value, .mkt-value { font-size: 15px; font-weight: 600; color: var(--slate-800); }
.price-value { font-size: 16px; font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }

/* EV badges */
.ev-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.ev-strong   { background: var(--green-lt);  color: var(--green);  border: 1px solid rgba(22,163,74,.3); }
.ev-possible { background: var(--gold-lt);   color: var(--gold);   border: 1px solid rgba(217,119,6,.3); }
.ev-spec     { background: var(--white); color: var(--slate-500); border: 1px dashed var(--slate-400); }
.ev-none     { background: var(--slate-100); color: var(--slate-500); border: 1px solid var(--slate-200); }
.ev-dot.spec { background: var(--white); border: 1px dashed var(--slate-400); }
.ev-legend-note { color: var(--slate-400); font-size: 11px; }

/* Rank vs Value key */
.rankval-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--slate-700); width: 100%; padding-bottom: 8px; }
.rankval-item { display: inline-flex; align-items: center; gap: 6px; }
.rankval-sep { color: var(--slate-300); }
.ev-legend-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; width: 100%; padding-top: 8px; border-top: 1px solid var(--slate-100); }

/* Race summary (most likely vs best value) */
.race-summary { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
.rs-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-700); flex-wrap: wrap; }
.rs-value-item { padding-left: 12px; border-left: 1px solid var(--slate-200); }
.rs-tag { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: .3px; }
.rs-likely { background: var(--slate-200); color: var(--slate-600); }
.rs-value  { background: var(--green-lt); color: var(--green); }
.rs-standout { background: var(--gold-lt); color: #b45309; }
.rs-standout-item { padding-left: 12px; border-left: 1px solid var(--slate-200); }
.rs-vuln { background: var(--red-lt); color: var(--red); }
.rs-vuln-item { padding-left: 12px; border-left: 1px solid var(--slate-200); }
.rs-sub { font-size: 13px; color: var(--slate-500); }
.rs-ev { font-weight: 700; color: var(--green); }
.rs-novalue { color: var(--slate-400); }

/* Featured value row */
.horse-row.is-featured > td { background: rgba(22,163,74,.06); }
.horse-row.is-featured > td:first-child { box-shadow: inset 3px 0 0 var(--green-mid); }

/* Confidence bar */
.conf-bar-wrap { min-width: 80px; }
.conf-bar      { height: 6px; background: var(--slate-200); border-radius: 3px; overflow: hidden; }
.conf-fill     { height: 100%; background: linear-gradient(90deg, var(--green-mid), #4ade80); border-radius: 3px; transition: width .3s; }

/* Why button */
.why-btn {
  font-size: 12px; font-weight: 600; color: var(--green-mid);
  background: var(--green-lt); border: 1px solid rgba(22,163,74,.2);
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.why-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Why panel */
.why-row { display: none; }
.why-row.open { display: table-row; }
.why-row > td { padding: 0; background: #f8fffe; border-bottom: 2px solid var(--slate-200); }
.why-panel { padding: 20px 24px; }
.why-columns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.why-col h4 { font-size: 13px; font-weight: 700; color: var(--slate-700); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.signal { font-size: 13px; padding: 7px 12px; border-radius: 6px; margin-bottom: 6px; line-height: 1.4; }
.signal.pos     { background: var(--green-lt); color: var(--green); }
.signal.neg     { background: var(--red-lt);   color: var(--red); }
.signal.neutral { background: var(--slate-100); color: var(--slate-600); }

.ev-breakdown { background: var(--white); border: 1px solid var(--slate-200); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.ev-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.ev-row:last-child { border-bottom: none; }
.ev-total { font-weight: 700; }
.ev-total.ev-strong   { background: var(--green-lt); color: var(--green); }
.ev-total.ev-possible { background: var(--gold-lt);  color: var(--gold); }
.ev-total.ev-none     { background: var(--slate-100); color: var(--slate-600); }
.ev-note { font-size: 12px; color: var(--slate-600); line-height: 1.5; }
.place-note { color: var(--slate-400); font-weight: 400; font-size: 11px; }
.why-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--slate-200); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--slate-500); }
.why-link { font-weight: 600; color: var(--green-mid); font-size: 12px; }

/* ── Empty state ───────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 24px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h2 { font-size: 22px; color: var(--slate-800); margin-bottom: 8px; }
.empty-state p  { color: var(--slate-500); font-size: 15px; }

/* ── Page hero (inner pages) ───────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1a2e1a 100%);
  padding: 48px 24px;
  border-bottom: 3px solid var(--green-mid);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; }
.page-hero h1 { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 12px; }
.page-hero p  { font-size: 16px; color: rgba(255,255,255,.65); max-width: 560px; }

/* ── Auth pages ────────────────────────────────────────────────── */
.auth-container { max-width: 440px; margin: 48px auto; padding: 0 24px; }
.auth-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg);
}
.auth-error {
  background: var(--red-lt); color: var(--red);
  border: 1px solid rgba(220,38,38,.2); border-radius: 8px;
  padding: 12px 16px; font-size: 14px; margin-bottom: 20px;
}
.auth-field { margin-bottom: 18px; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.auth-input {
  width: 100%; padding: 10px 14px; font-size: 15px;
  border: 1px solid var(--slate-300); border-radius: 8px;
  outline: none; transition: border-color .15s;
}
.auth-input:focus { border-color: var(--green-mid); }
.auth-remember { font-size: 13px; color: var(--slate-600); margin-bottom: 20px; }
.auth-submit {
  width: 100%; padding: 12px; font-size: 15px; font-weight: 700;
  background: var(--green-mid); color: #fff; border: none;
  border-radius: 8px; cursor: pointer; transition: background .15s;
}
.auth-submit:hover { background: var(--green); }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--slate-500); }
.auth-switch a { color: var(--green-mid); font-weight: 600; }
.auth-terms { margin-top: 16px; font-size: 12px; color: var(--slate-400); text-align: center; line-height: 1.5; }
.auth-terms a { color: var(--slate-400); }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px; font-size: 15px; font-weight: 600;
  background: var(--white); color: var(--slate-800);
  border: 1px solid var(--slate-300); border-radius: 8px;
  text-decoration: none; transition: background .15s; margin-bottom: 16px;
}
.google-btn:hover { background: var(--slate-50); text-decoration: none; color: var(--slate-800); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; color: var(--slate-400); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--slate-200);
}

/* Strategy save button */
.strategy-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.strategy-summary { flex: 1; }
.strategy-save-btn {
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  background: var(--green); color: #fff; border: none;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
  transition: background .15s; text-decoration: none;
}
.strategy-save-btn:hover { background: var(--green-mid); color: #fff; text-decoration: none; }

/* ── Pricing & account ─────────────────────────────────────────── */
.price-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 36px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.price-tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 12px; }
.price-amount { font-size: 40px; font-weight: 800; color: var(--slate-900); line-height: 1; }
.price-amount span { font-size: 16px; font-weight: 500; color: var(--slate-400); display: block; margin-top: 6px; }
.price-trial { font-size: 15px; color: var(--green); font-weight: 600; margin: 10px 0 20px; }
.price-status { font-size: 16px; color: var(--green); font-weight: 700; margin: 12px 0 18px; }
.price-features { list-style: none; text-align: left; margin: 0 0 24px; padding: 0; }
.price-features li { font-size: 14px; color: var(--slate-700); padding: 7px 0; border-bottom: 1px solid var(--slate-100); }
.price-features li:last-child { border-bottom: none; }
.price-note { font-size: 12px; color: var(--slate-400); margin-top: 14px; line-height: 1.5; }
.price-manage { display: inline-block; font-size: 13px; color: var(--slate-500); }
.price-free-note { margin-top: 20px; font-size: 13px; color: var(--slate-500); background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 10px; padding: 14px 18px; line-height: 1.6; }
.price-free-note strong { color: var(--slate-700); }
.founder-banner { background: linear-gradient(90deg, var(--gold-lt), #fff7e6); border: 1px solid rgba(217,119,6,.3); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--gold); margin-bottom: 16px; }
.founder-banner strong { color: #b45309; }
.founder-flame { margin-right: 4px; }
.founder-badge { display: inline-block; background: var(--gold-lt); color: #b45309; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.founder-perk { color: var(--gold) !important; font-weight: 600; }

.account-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--slate-100); font-size: 14px; color: var(--slate-600); }
.acct-status { font-weight: 700; }
.acct-trialing, .acct-active { color: var(--green); }
.acct-past_due { color: var(--gold); }
.acct-canceled { color: var(--red); }

/* ── Form badge (accuracy page hero) ──────────────────────────── */
.form-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  padding: 7px 18px; border-radius: 20px;
  font-size: 14px; font-weight: 500;
}
.form-badge strong { font-weight: 700; }
.form-arrow { font-size: 16px; }
.form-good     { background: rgba(22,163,74,.18); color: #4ade80; border: 1px solid rgba(22,163,74,.35); }
.form-ok       { background: rgba(22,163,74,.10); color: #86efac; border: 1px solid rgba(22,163,74,.2); }
.form-finding  { background: rgba(217,119,6,.15);  color: #fbbf24; border: 1px solid rgba(217,119,6,.3); }
.form-poor     { background: rgba(220,38,38,.15);  color: #fca5a5; border: 1px solid rgba(220,38,38,.3); }
.form-building { background: rgba(100,116,139,.12); color: rgba(255,255,255,.45); border: 1px solid rgba(100,116,139,.25); }

/* ── Content container ─────────────────────────────────────────── */
.content-container { max-width: 1280px; margin: 40px auto; padding: 0 24px; }
.section { margin-bottom: 48px; }
.section-title { font-size: 24px; font-weight: 800; color: var(--slate-900); margin-bottom: 8px; }
.section-sub   { font-size: 15px; color: var(--slate-500); margin-bottom: 24px; max-width: 720px; }

/* ── Metrics grid ──────────────────────────────────────────────── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.metric-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--slate-200); padding: 20px 20px 20px 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.metric-card.highlight { border-left: 4px solid var(--green-mid); }
.metric-period { font-size: 13px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.metric-row    { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.metric-item   { text-align: center; min-width: 0; }
.metric-val    { font-size: 24px; font-weight: 800; color: var(--slate-900); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-val.pos { color: var(--green); }
.metric-val.neg { color: var(--red); }
.metric-key    { font-size: 11px; color: var(--slate-500); margin-top: 4px; font-weight: 500; white-space: normal; line-height: 1.3; }

/* ── Calibration table ─────────────────────────────────────────── */
.cal-table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); overflow: hidden; }
.cal-table { width: 100%; border-collapse: collapse; }
.cal-table th { background: var(--slate-50); padding: 12px 16px; font-size: 12px; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .5px; text-align: left; border-bottom: 1px solid var(--slate-200); }
.cal-table td { padding: 14px 16px; border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.cal-table tr:last-child td { border-bottom: none; }
.cal-good { color: var(--green); font-weight: 700; }
.cal-ok   { color: var(--gold);  font-weight: 700; }
.cal-bad  { color: var(--red);   font-weight: 700; }
.cal-bar-wrap { position: relative; height: 8px; background: var(--slate-100); border-radius: 4px; width: 140px; }
.cal-bar  { height: 100%; border-radius: 4px; position: absolute; top: 0; left: 0; }
.cal-good-bar { background: var(--green-mid); }
.cal-ok-bar   { background: var(--gold); }
.cal-bad-bar  { background: var(--red); }
.cal-note { font-size: 12px; color: var(--slate-500); padding: 12px 16px; border-top: 1px solid var(--slate-100); }

/* ── Calibration headline ──────────────────────────────────────── */
.cal-headline {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow);
}
.cal-headline-stat { text-align: center; padding-right: 32px; border-right: 1px solid var(--slate-200); }
.cal-big { font-size: 48px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -1px; }
.cal-big-label { font-size: 12px; color: var(--slate-500); margin-top: 8px; max-width: 140px; line-height: 1.4; }
.cal-headline-text p { font-size: 16px; color: var(--slate-700); line-height: 1.7; margin-bottom: 8px; }
.cal-headline-sub { font-size: 14px !important; color: var(--slate-500) !important; }

.cal-small-tag {
  font-size: 10px; font-weight: 600; color: var(--slate-400);
  background: var(--slate-100); padding: 1px 7px; border-radius: 8px; margin-left: 4px;
}
.cal-row-small td { opacity: 0.7; }

.cal-type-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-600); padding: 3px 0; }
.cal-type-row strong { color: var(--slate-900); }
.cal-type-n { font-size: 11px; color: var(--slate-400); margin-top: 8px; }

/* ── Calibration source note ───────────────────────────────────── */
.cal-source-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--slate-50); border: 1px solid var(--slate-200);
  border-left: 4px solid var(--green-mid);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 20px; font-size: 13px; color: var(--slate-600); line-height: 1.6;
}
.cal-source-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.cal-source-note strong { color: var(--slate-800); display: block; margin-bottom: 4px; }

/* ── Calibration audit box ─────────────────────────────────────── */
.cal-audit-box {
  margin-top: 16px; background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 14px 16px;
}
.cal-audit-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--slate-700); flex-wrap: wrap;
}
.cal-audit-icon { font-size: 15px; }
.cal-audit-date { color: var(--slate-400); font-size: 12px; }
.cal-audit-badge {
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 10px;
}
.audit-ok      { background: var(--green-lt);  color: var(--green); }
.audit-warn    { background: var(--gold-lt);   color: var(--gold); }
.audit-changed { background: var(--slate-200); color: var(--slate-700); }
.cal-audit-detail {
  margin-top: 6px; font-size: 12px; color: var(--slate-500); line-height: 1.5;
}

/* ── Race type cards ───────────────────────────────────────────── */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.type-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 16px;
  transition: box-shadow .15s, border-color .15s;
}
.type-card:hover { box-shadow: var(--shadow); border-color: var(--slate-300); }
.type-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.type-name { font-size: 13px; font-weight: 700; color: var(--slate-700); }
.type-toggle { font-size: 10px; color: var(--slate-400); transition: transform .2s; }
.type-toggle.open { transform: rotate(180deg); }
.type-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.type-bets  { font-size: 12px; color: var(--slate-500); }
.type-sr    { font-size: 12px; color: var(--slate-700); font-weight: 600; }
.type-roi   { font-size: 13px; font-weight: 700; }
.type-roi.pos { color: var(--green); }
.type-roi.neg { color: var(--red); }
.type-bar-track { height: 6px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.pos-bar { height: 100%; background: var(--green-mid); border-radius: 3px; }
.neg-bar { height: 100%; background: var(--red); border-radius: 3px; }

/* Type detail panel — spans full grid width */
.type-detail {
  display: none;
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-top: -4px;
  overflow: hidden;
}
.type-detail.open { display: block; }
.type-detail-inner { padding: 20px 24px; }
.type-detail-title {
  font-size: 13px; font-weight: 700; color: var(--slate-600);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px;
}
.type-results-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.type-results-table thead tr { background: var(--slate-50); border-bottom: 2px solid var(--slate-200); }
.type-results-table th {
  padding: 8px 12px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: .4px;
}
.type-results-table td { padding: 9px 12px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.type-results-table tr:last-child td { border-bottom: none; }
.result-won > td { background: rgba(22,163,74,.02); }
.result-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 10px;
}
.result-badge-won  { background: var(--green-lt);  color: var(--green); }
.result-badge-lost { background: var(--slate-100); color: var(--slate-500); }

/* ── Trust section ─────────────────────────────────────────────── */
.trust-section { background: var(--slate-900); border-radius: var(--radius); padding: 40px; }
.trust-inner h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.trust-inner p  { color: rgba(255,255,255,.65); font-size: 15px; margin-bottom: 12px; line-height: 1.7; max-width: 680px; }

/* ── Guide ─────────────────────────────────────────────────────── */
.guide-container { max-width: 860px; }
.guide-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--slate-200); padding: 40px; margin-bottom: 24px; box-shadow: var(--shadow); display: flex; gap: 32px; }
.guide-num  { font-size: 48px; font-weight: 900; color: var(--green-lt); letter-spacing: -2px; line-height: 1; flex-shrink: 0; }
.guide-body h2 { font-size: 22px; font-weight: 800; color: var(--slate-900); margin-bottom: 12px; }
.guide-body p  { color: var(--slate-600); line-height: 1.7; margin-bottom: 12px; }
.example-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px; padding: 20px; margin-top: 16px; }
.example-title { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.formula { font-size: 18px; font-weight: 700; color: var(--slate-900); background: var(--white); border: 1px solid var(--slate-200); padding: 12px 16px; border-radius: 6px; margin: 12px 0; font-family: monospace; }
.example-worked { margin: 12px 0; }
.worked-row { padding: 8px 12px; border-left: 3px solid var(--slate-200); margin-bottom: 6px; font-size: 14px; color: var(--slate-700); }
.highlight-row { border-color: var(--green-mid); background: var(--green-lt); color: var(--green); border-radius: 0 6px 6px 0; }
.reasons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.reason-item  { display: flex; gap: 12px; }
.reason-icon  { font-size: 24px; flex-shrink: 0; }
.reason-item strong { display: block; color: var(--slate-800); margin-bottom: 4px; }
.reason-item p { font-size: 13px; color: var(--slate-600); }
.colour-guide { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.colour-row { display: flex; align-items: flex-start; gap: 16px; }
.colour-row div strong { display: block; color: var(--slate-800); margin-bottom: 4px; }
.colour-row div p { font-size: 13px; color: var(--slate-600); }
.important-box { background: var(--slate-900); color: rgba(255,255,255,.8); border-radius: 10px; padding: 28px; margin: 16px 0; }
.important-box p { margin-bottom: 12px; line-height: 1.7; }
.important-box p:last-child { margin-bottom: 0; }
.important-box strong { color: #fff; }
.variance-note { background: var(--gold-lt); border: 1px solid rgba(217,119,6,.2); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--gold); }
.guide-cta { text-align: center; padding: 48px 0; }
.guide-cta h2 { font-size: 28px; font-weight: 800; color: var(--slate-900); margin-bottom: 10px; }
.guide-cta p  { color: var(--slate-500); margin-bottom: 24px; }
.cta-btn { display: inline-block; background: var(--green); color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: 8px; transition: background .15s; }
.cta-btn:hover { background: var(--green-mid); text-decoration: none; color: #fff; }

/* ── Guide — dashboard explainer ──────────────────────────────── */
.dashboard-explainer { margin-top: 16px; border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; }
.dash-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--slate-100); align-items: start; }
.dash-row:last-child { border-bottom: none; }
.dash-label { font-size: 13px; font-weight: 700; color: var(--green); }
.dash-desc  { font-size: 14px; color: var(--slate-600); line-height: 1.6; }

/* ── Guide — FAQ ───────────────────────────────────────────────── */
.guide-faq { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 40px; margin-bottom: 24px; }
.guide-faq h2 { font-size: 24px; font-weight: 800; color: var(--slate-900); margin-bottom: 6px; }
.faq-sub { font-size: 15px; color: var(--slate-500); margin-bottom: 28px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--white); border: 1px solid var(--slate-200); border-radius: 8px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--slate-800);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: background .15s;
}
.faq-q:hover { background: var(--slate-50); }
.faq-icon { font-size: 20px; font-weight: 400; color: var(--green-mid); flex-shrink: 0; line-height: 1; }
.faq-a { display: none; padding: 0 20px 16px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--slate-600); line-height: 1.75; }
.faq-a a { color: var(--green-mid); }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { background: var(--slate-900); border-top: 1px solid rgba(255,255,255,.06); padding: 32px 24px; margin-top: 60px; }
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.footer-tagline { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.4); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.footer-disclaimer a { color: rgba(255,255,255,.5); }

/* ── Responsive ────────────────────────────────────────────────── */
/* ── Tablet (≤768px) ───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar — hide links and right side, show mobile bottom nav instead */
  .nav-links-desktop { display: none; }
  .nav-badge  { display: none; }
  .nav-user   { display: none; }
  .nav-btn    { display: none; }
  .nav-link-sm { font-size: 13px; }

  /* Mobile bottom nav */
  .mobile-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--slate-900);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
  }
  .mob-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding: 4px 0; text-decoration: none;
    color: rgba(255,255,255,.45); font-size: 10px; font-weight: 500;
    transition: color .15s;
  }
  .mob-nav-item:hover, .mob-nav-item.mob-active {
    color: #4ade80; text-decoration: none;
  }
  .mob-icon  { font-size: 18px; line-height: 1; }
  .mob-label { font-size: 10px; }

  /* Add padding so content doesn't hide behind bottom nav */
  main { padding-bottom: 64px; }

  /* Races hero */
  .hero { padding: 40px 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { flex-wrap: wrap; }
  .stat-card  { flex: 1; min-width: 110px; }

  /* EV strip */
  .ev-strip { padding: 10px 16px; }
  .ev-strip-inner { gap: 10px; }
  .ev-link { margin-left: 0; }

  /* Date bar */
  .date-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .date-left { flex-direction: column; gap: 4px; }

  /* Race cards */
  .races-container { padding: 0 12px; margin: 16px auto; gap: 12px; }
  .race-meta { gap: 10px; }
  .race-time  { font-size: 17px; }
  .race-track { font-size: 14px; }

  /* Strategy bar */
  .strategy-bar-inner { padding: 0 12px; }
  .strategy-header { flex-wrap: wrap; gap: 8px; }
  .strategy-filters { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .strategy-share-btns { gap: 4px; }
  .share-btn { font-size: 11px; padding: 5px 9px; }

  /* Horse table — hide least-critical columns */
  .col-mkt, .col-conf { display: none; }
  .horses-table th, .horses-table td { padding: 10px 8px; font-size: 13px; }
  .horse-name { font-size: 14px; }
  .price-value { font-size: 14px; }

  /* Why panel */
  .why-columns { grid-template-columns: 1fr; }
  .why-panel   { padding: 16px; }

  /* Home hero */
  .home-hero { padding: 48px 16px 40px; width: 100%; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .home-hero-text h1 { font-size: 32px; letter-spacing: -0.5px; }
  .home-hero-text p  { max-width: 100%; }
  .home-hero-stats { flex-direction: row; flex-wrap: wrap; }
  .home-stat { flex: 1 1 calc(50% - 8px); min-width: 0; max-width: 100%; }

  /* Trust strip */
  .trust-strip-inner { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
  .trust-divider { display: none; }

  /* Home sections */
  .home-section { padding: 48px 16px; }
  .home-section-inner { grid-template-columns: 1fr; gap: 32px; width: 100%; }
  .home-section-inner.reverse .home-section-visual { order: 0; }
  .home-section-inner.reverse .home-section-text    { order: 0; }
  .home-section-text h2 { font-size: 24px; }
  .home-section-visual { width: 100%; min-width: 0; }
  .explainer-card, .mini-accuracy { width: 100%; min-width: 0; box-sizing: border-box; }

  /* How it works */
  .home-how { padding: 52px 16px; }
  .how-grid  { grid-template-columns: 1fr; gap: 16px; }

  /* Honest section */
  .home-honest { padding: 52px 16px; }
  .honest-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Home CTA */
  .home-cta { padding: 52px 16px; }

  /* Accuracy */
  .content-container { padding: 0 16px; }
  .page-hero { padding: 36px 16px; }
  .page-hero h1 { font-size: 28px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-row   { grid-template-columns: repeat(2, 1fr); }

  /* Calibration headline stacks on mobile */
  .cal-headline { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .cal-headline-stat { padding-right: 0; border-right: none; border-bottom: 1px solid var(--slate-200); padding-bottom: 20px; }
  .cal-big-label { max-width: none; }

  /* Calibration table — hide visual bar column, keep numbers */
  .cal-table th:last-child,
  .cal-table td:last-child { display: none; }
  .cal-table th, .cal-table td { padding: 10px 8px; font-size: 13px; }

  /* Type results table — hide track + time on mobile */
  .type-results-table th:nth-child(3),
  .type-results-table td:nth-child(3),
  .type-results-table th:nth-child(4),
  .type-results-table td:nth-child(4) { display: none; }
  .type-detail-inner { padding: 14px 16px; }

  /* Guide */
  .guide-card { flex-direction: column; gap: 16px; }
  .guide-container { padding: 0 12px; }
  .reasons-grid { grid-template-columns: 1fr; }

  /* Guide — new sections (FAQ, dashboard explainer) */
  .guide-faq { padding: 24px 16px; }
  .faq-q { font-size: 14px; padding: 14px 16px; }
  .faq-a { padding: 0 16px 14px; }
  .dash-row { grid-template-columns: 1fr; gap: 4px; }
  .dash-label { font-size: 12px; }
  .colour-row { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Home — visual cards stack cleanly */
  .explainer-card { margin-top: 0; }
  .mini-accuracy  { margin-top: 0; }
  .mini-cal-label { min-width: 100px; font-size: 11px; }

  /* Calibration audit box */
  .cal-audit-header { gap: 8px; }
  .cal-audit-date   { display: none; }

  /* Race type grid — let cards be full width on small tablets */
  .type-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Phone (≤480px) ────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Navbar at 480px — already handled by mobile-nav */
  .nav-link  { font-size: 12px; padding: 5px 8px; }

  /* Race table — show only the essentials */
  .col-price { display: none; }
  .horse-meta { display: none; }

  /* Hero stats — wrap to 2×2 */
  .stat-number { font-size: 28px; }

  /* Home hero */
  .home-hero-text h1 { font-size: 30px; }
  .home-hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }

  /* Home stat cards */
  .home-stat { min-width: 120px; }
  .home-stat-num { font-size: 30px; }

  /* How card numbers */
  .how-num { font-size: 32px; }

  /* Accuracy — stack metric cards */
  .metrics-grid { grid-template-columns: 1fr; }

  /* Type results — minimal: date, horse, result, P&L only */
  .type-results-table th:nth-child(5),
  .type-results-table td:nth-child(5) { display: none; }

  /* Calibration table at 480px */
  .cal-table th, .cal-table td { padding: 8px 6px; font-size: 12px; }

  /* Trust section */
  .trust-inner { padding: 28px 20px; }

  /* Strategy bar at 480px */
  .strategy-filters { grid-template-columns: 1fr; }
  .strategy-share-btns { width: 100%; justify-content: flex-start; }

  /* Guide FAQ */
  .faq-q { font-size: 13px; padding: 12px 14px; }
  .guide-faq { padding: 20px 14px; }

  /* Race type grid — full width on phones */
  .type-grid { grid-template-columns: 1fr; }

  /* Home section visuals — no fixed width issues */
  .explainer-card, .mini-accuracy { width: 100%; box-sizing: border-box; }

  /* Cal audit — simplify */
  .cal-audit-box { padding: 10px 12px; }
  .cal-audit-header { flex-wrap: wrap; }
}
