/* ── 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 > *,
.step-list > *,
.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 { display: inline-flex; align-items: center; }
.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: 72px 24px;
  border-bottom: 3px solid var(--green-mid);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 900px; height: 900px; top: -350px; right: -200px;
  background: radial-gradient(closest-side, rgba(74,222,128,.14), transparent 70%);
}
.home-hero-inner {
  max-width: 1180px; margin: 0 auto; position: relative;
  display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: center;
}
.hero-accent {
  background: linear-gradient(90deg, #4ade80, #86efac);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero-visual { min-width: 0; }
.hero-demo { border-top: 3px solid var(--green-mid); }
.demo-live-chip {
  display: inline-block; background: var(--green-lt); color: var(--green);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 10px; margin-right: 6px;
}
.hero-micro { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); }
.hero-micro-founder { color: #fbbf24; font-weight: 600; }
.hero-live-strip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 8px 18px;
  font-size: 13.5px; color: rgba(255,255,255,.75);
}
.hero-live-strip strong { color: #4ade80; font-weight: 800; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}
/* Entrance: content settles in as the page loads */
.fade-up { opacity: 0; animation: fadeup .55s ease-out forwards; }
.fade-up.d1 { animation-delay: .08s; }
.fade-up.d2 { animation-delay: .16s; }
.fade-up.d3 { animation-delay: .24s; }
.fade-up.d4 { animation-delay: .34s; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; }
  .live-dot { animation: none; }
}
.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; }

/* ── Hero sub ──────────────────────────────────────────────────── */
.home-hero-sub { font-size: 18px; color: rgba(255,255,255,.82); line-height: 1.55; margin: 0; max-width: 480px; }

/* ── Why-trust proof band ──────────────────────────────────────── */
.home-proof { background: var(--slate-50, #f8fafc); border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); padding: 28px 24px; }
.home-proof-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.home-proof-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-mid, #16a34a); margin-bottom: 16px; }
.home-proof-stats { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.home-proof-stat { flex: 1 1 230px; max-width: 300px; background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; padding: 18px 16px; }
.home-proof-stat strong { display: block; font-size: 24px; font-weight: 800; color: var(--green, #166534); line-height: 1.1; margin-bottom: 6px; }
.home-proof-stat span { font-size: 13px; color: var(--slate-600, #475569); line-height: 1.45; }
.home-proof-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--green-mid, #16a34a); text-decoration: none; }
.home-proof-link:hover { text-decoration: underline; }

/* ── 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; }

/* "NEW" badge on the My Slip nav entry (hidden after first /slip visit) */
.nav-new-badge { background: var(--green-mid); color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .5px; border-radius: 8px; padding: 1px 6px; vertical-align: middle; margin-left: 3px; }
.mob-new-dot { position: absolute; top: 2px; right: 22%; width: 8px; height: 8px;
  border-radius: 50%; background: #4ade80; }

/* Haiku-styled lead comment in the Why panel */
.why-styled { background: #fffbeb; border-left: 3px solid var(--gold, #d97706); border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.6;
  color: var(--slate-700); font-style: italic; }

/* Venue filter chips (races page + public day pages) */
.venue-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.venue-chip { border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 18px; cursor: pointer; }
.venue-chip:hover { border-color: var(--green-mid); color: var(--green); }
.venue-chip.active { background: var(--green); border-color: var(--green); color: #fff; }

/* My Slip feature showcase (homepage) */
.home-new-chip {
  display: inline-block; background: var(--green-lt); color: var(--green);
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 12px; border-radius: 12px; margin-bottom: 14px;
}
.slipmock { border-top: 3px solid var(--green-mid); }
.slipmock-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; }
.slipmock-name { font-weight: 700; font-size: 14px; color: var(--slate-800); }
.slipmock-ew { font-size: 10px; font-weight: 800; background: #dbeafe; color: #1d4ed8;
               border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.slipmock-num { font-size: 12.5px; color: var(--slate-500); }
.slipmock-combo { font-size: 13.5px; color: var(--slate-700); }
.slipmock-combo strong { color: var(--slate-900); }
.slipmock-warn { display: block; font-size: 12px; color: var(--green); font-weight: 700; margin-top: 3px; }
.slipmock-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--slate-600); }
.slipmock-saved { color: var(--green); font-weight: 700; }

/* 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: 760px; margin: 0 auto; }
.home-how-inner h2 {
  font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: -.5px; text-align: center; margin-bottom: 16px;
}
.home-how-sub {
  text-align: center; color: rgba(255,255,255,.6); font-size: 16.5px;
  line-height: 1.65; margin: 0 auto 40px; max-width: 640px;
}
.step-list { display: flex; flex-direction: column; gap: 14px; }
.step-row {
  display: flex; align-items: center; gap: 22px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 20px 26px;
}
.step-num {
  font-size: 34px; font-weight: 900; color: rgba(74,222,128,.45);
  letter-spacing: -2px; line-height: 1; flex-shrink: 0;
}
.step-row p { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.6; margin: 0; }
.step-row strong { color: #fff; }
.home-how-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap; margin-top: 36px;
}
.home-how-more { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); }
.home-how-more:hover { color: #fff; }

/* ── 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; }

/* ── Mid-page trial CTA ────────────────────────────────────────── */
.home-trial-cta {
  background: var(--slate-800);
  border-top: 1px solid var(--slate-700);
  border-bottom: 1px solid var(--slate-700);
  padding: 48px 24px;
}
.home-trial-cta-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.home-trial-cta-text h2 { font-size: 24px; font-weight: 800; color: var(--slate-50); margin-bottom: 8px; }
.home-trial-cta-text p  { font-size: 15px; color: var(--slate-400); margin: 0; }
.home-trial-cta-action  { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.home-trial-cta-sub     { font-size: 12px; color: var(--slate-500); white-space: nowrap; }
@media (max-width: 640px) {
  .home-trial-cta-inner { flex-direction: column; text-align: center; }
  .home-trial-cta-sub { white-space: normal; }
}

/* ── 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 ──────────────────────────────────────────────────── */
.races-intro {
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border-bottom: 1px solid #bbf7d0;
}
.races-intro-inner {
  max-width: 1280px; margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; gap: 16px;
}
.races-intro-text { font-size: 13.5px; color: #166534; line-height: 1.5; }
.races-intro-text a { color: #15803d; font-weight: 700; white-space: nowrap; }
.races-intro-chip {
  display: inline-block; background: var(--green-mid, #16a34a); color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; vertical-align: middle;
}
.races-intro-close {
  margin-left: auto; flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: #16a34a; font-size: 15px; line-height: 1; padding: 4px 6px; border-radius: 6px;
}
.races-intro-close:hover { background: rgba(22,163,74,.12); }
@media (max-width: 600px) {
  .races-intro-inner { padding: 10px 16px; gap: 10px; }
  .races-intro-text { font-size: 12.5px; }
}

.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); }
/* Unified filter pills (mode / region / venue) — one consistent look, stacked
   in a group so they sit as ONE block on the right of the date bar instead of
   fighting its space-between layout (2026-07-21). */
.filter-group { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn {
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 7px 15px;
  border: 1px solid var(--slate-200); border-radius: 999px;
  background: var(--white); color: var(--slate-600);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.chip-btn:hover { border-color: var(--green-mid); color: var(--green); }
.chip-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-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.strategy-share-note { font-size: 12px; font-weight: 600; color: var(--slate-500, #64748b); margin: 0; }
.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-chip[disabled] { opacity: .6; cursor: default; }
.preset-best {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 1px 4px rgba(22,163,74,.3);
}
.preset-best:hover { background: var(--green-dark, #15803d); border-color: var(--green-dark, #15803d); color: #fff; }
.preset-best.preset-locked { background: var(--slate-500, #64748b); border-color: var(--slate-500, #64748b); box-shadow: none; }
.preset-best.preset-locked:hover { background: var(--slate-600, #475569); border-color: var(--slate-600, #475569); }
.preset-best .lock { font-size: 11px; }
.bt-upsell { background: var(--green-lt, #dcfce7); border: 1px solid rgba(22,163,74,.3); border-radius: 8px; padding: 14px 16px; }
.bt-upsell strong { display: block; color: var(--green, #166534); font-size: 14px; margin-bottom: 5px; }
.bt-upsell p { margin: 0 0 10px; font-size: 13px; color: var(--slate-600, #475569); line-height: 1.5; }
.bt-upsell-btn { display: inline-block; background: var(--green-mid, #16a34a); color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 6px; text-decoration: none; }
.bt-upsell-btn:hover { background: var(--green, #166534); }
.preset-hint { font-size: 12px; color: var(--slate-400); flex-basis: 100%; margin-top: 4px; }
.preset-clear { margin-left: auto; color: var(--slate-500); border-color: var(--slate-200); }
.preset-clear:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* Strategy track record (value-finding, last 30 days) */
.strategy-track { margin: 0 0 4px; }
.strategy-track:empty { display: none; }
.strategy-track .bt-title { font-size: 13px; font-weight: 600; color: var(--slate-600); margin-bottom: 10px; }
.strategy-track .bt-loading, .strategy-track .bt-empty { font-size: 13px; color: var(--slate-400); padding: 6px 0; }
.bt-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.bt-stat { flex: 1 1 130px; background: var(--green-lt); border: 1px solid rgba(22,163,74,.22); border-radius: 8px; padding: 12px 14px; text-align: center; }
.bt-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--green); line-height: 1.1; }
.bt-stat span { display: block; font-size: 11px; color: var(--slate-500); margin-top: 5px; line-height: 1.3; }
.bt-note { font-size: 11px; color: var(--slate-400); margin-top: 10px; line-height: 1.45; }
.bt-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 3px; padding: 0;
  font-size: 10px; font-weight: 700; line-height: 1;
  color: var(--green); background: var(--white);
  border: 1px solid rgba(22,163,74,.45); border-radius: 50%;
  cursor: pointer; vertical-align: middle;
}
.bt-help:hover { background: var(--green); color: var(--white); }
.bt-help-box {
  margin-top: 10px; padding: 11px 13px;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 8px; font-size: 12px; color: var(--slate-600); line-height: 1.5;
}
.bt-help-box strong { display: block; color: var(--slate-700); margin-bottom: 5px; font-size: 12.5px; }
.bt-help-box p { margin: 0 0 7px; }
.bt-help-box p:last-child { margin-bottom: 0; }

/* 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-group-toggle { justify-content: center; }
.sf-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.sf-toggle input { width: 17px; height: 17px; accent-color: var(--green-mid, #16a34a); cursor: pointer; }
.sf-toggle small { display: block; font-weight: 400; color: var(--slate-400); font-size: 11px; }
.sf-input-row { display: flex; align-items: center; gap: 10px; }
.sf-slider {
  flex: 1; height: 4px; accent-color: var(--green-mid);
  cursor: pointer;
}
/* Max Field Size runs HIGH→LOW: max runners ("Any") on the LEFT, tightens as you
   drag right. direction:rtl mirrors the slider without changing the value it reports. */
#sf-fs { direction: rtl; }
.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 ─────────────────────────────────────────────────── */
.sp-mode-banner {
  background: var(--gold-lt, #fef3c7); border: 1px solid #fde68a; color: #92400e;
  border-radius: 10px; padding: 12px 16px; font-size: 13px; line-height: 1.5; margin-bottom: 16px;
}
.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-name  { display: block; font-size: 13px; font-weight: 600;
              color: var(--slate-500); margin-top: 2px; }
.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(--slate-100, #f1f5f9); color: var(--slate-600, #475569);
  border: 1px solid var(--slate-200, #e2e8f0);
  padding: 4px 12px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.result-won-label {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--slate-500, #64748b); color: #fff; padding: 2px 7px; border-radius: 10px;
}
.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);
}
.horse-result-place {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: var(--slate-100, #f1f5f9); color: var(--slate-600, #475569);
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.horse-result-nr {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--slate-400); white-space: nowrap;
}

/* Non-runner rows — withdrawn from the live market, ratings are stale */
.horse-row.is-nr { opacity: 0.5; }
.horse-row.is-nr .horse-name { text-decoration: line-through; text-decoration-color: var(--slate-400); }
.horse-row.is-nr .conf-bar-wrap { visibility: hidden; }
.nr-badge {
  font-size: 11px; font-weight: 700; background: var(--slate-200); color: var(--slate-600);
  padding: 2px 7px; border-radius: 10px; letter-spacing: .3px;
}
.rs-nr { background: var(--slate-200); color: var(--slate-600); }
.rs-nr-item { padding-left: 12px; border-left: 1px solid var(--slate-200); }

/* ── 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-conflict { background: #fff7ed; color: #b45309; border: 1px solid #fbbf24; font-size: 11px; }
.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-caret { display: inline-block; font-size: 9px; line-height: 1; transition: transform .15s; }
.why-btn.open .why-caret { transform: rotate(180deg); }

/* 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-loading { font-size: 13px; color: var(--slate-400); padding: 4px 0; }
.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;
}
/* Anti-spam honeypot — pushed off-screen, never seen by real users.
   Not display:none (some bots skip hidden fields); off-screen is filled by bots. */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important;
            width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.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; }
.age-badge {
  display: inline-block; background: #1f2937; color: #fff; font-weight: 800;
  font-size: 11px; padding: 1px 6px; border-radius: 5px; margin-right: 4px; vertical-align: middle;
}
.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; }

/* ── Pricing-structure page ─────────────────────────────────────────── */
.beta-banner {
  max-width: 980px; margin: 22px auto -4px; padding: 13px 20px;
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0; border-radius: 12px;
  color: #166534; font-size: 14px; line-height: 1.55; text-align: center;
}
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px;
  align-items: stretch; margin-top: 26px;
}
.plan-card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.plan-card.plan-featured {
  border: 2px solid var(--green-mid, #16a34a); position: relative;
  box-shadow: 0 12px 30px rgba(22,163,74,.14);
}
.plan-ribbon {
  position: absolute; top: -12px; left: 28px;
  background: var(--green-mid, #16a34a); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.plan-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 8px; }
.plan-price { font-size: 38px; font-weight: 800; color: var(--slate-900); line-height: 1; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--slate-400); }
.plan-tag { font-size: 13px; color: var(--slate-500); margin: 8px 0 18px; line-height: 1.45; }
.plan-tag.founder { color: #b45309; font-weight: 600; }
.plan-features { list-style: none; text-align: left; margin: 0 0 22px; padding: 0; flex: 1 0 auto; }
.plan-features li { font-size: 14px; color: var(--slate-700); padding: 8px 0; border-bottom: 1px solid var(--slate-100); }
.plan-features li:last-child { border-bottom: none; }
.plan-cta { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-top: auto; }

.addon-card {
  margin-top: 22px; padding: 22px 26px;
  background: #f8fafc; border: 1px dashed var(--slate-300); border-radius: 14px;
}
.addon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.addon-title { font-size: 17px; font-weight: 700; color: var(--slate-900); }
.addon-price { font-size: 16px; font-weight: 800; color: var(--green); white-space: nowrap; }
.addon-desc { font-size: 13.5px; color: var(--slate-600); line-height: 1.6; margin: 10px 0 0; }

.pricing-notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px;
}
.pn-item {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; padding: 16px 18px;
}
.pn-item strong { display: block; font-size: 14px; color: var(--slate-900); margin-bottom: 5px; }
.pn-item span { font-size: 12.5px; color: var(--slate-500); line-height: 1.5; }

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-notes { grid-template-columns: 1fr; }
  .beta-banner { margin: 18px 16px -2px; }
}
.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-clickable { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.type-card-clickable:hover { border-color: var(--green-mid); box-shadow: var(--shadow); }
.type-card-link { color: var(--green-mid); font-weight: 600; }

/* Drill-down: races behind each type */
.type-detail { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.type-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.type-detail-head h3 { font-size: 16px; font-weight: 700; color: var(--slate-700); margin: 0; }
.type-detail-close { background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--slate-600); cursor: pointer; }
.type-detail-close:hover { background: var(--slate-200); }
.type-detail-scroll { max-height: 460px; overflow-y: auto; border: 1px solid var(--slate-200); border-radius: 8px; margin-top: 12px; }
.type-detail-scroll .cal-table th { position: sticky; top: 0; z-index: 1; }
.res-won { color: var(--green); font-weight: 700; }
.res-lost { color: var(--slate-400); }
.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); }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal-page h2 { font-size: 19px; font-weight: 700; color: var(--slate-900); margin: 24px 0 10px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { color: var(--slate-600); line-height: 1.7; margin-bottom: 10px; }
.legal-list { margin: 8px 0 12px; padding-left: 0; list-style: none; }
.legal-list li { font-size: 14px; color: var(--slate-600); line-height: 1.65; padding: 5px 0 5px 18px; position: relative; }
.legal-list li::before { content: "•"; position: absolute; left: 2px; color: var(--green-mid); }

/* ── Cookie consent ────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: var(--slate-900); color: rgba(255,255,255,.85);
  padding: 14px 24px; font-size: 13px; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.cookie-text { max-width: 720px; }
.cookie-text a { color: #4ade80; }
.cookie-text strong { color: #fff; }
.cookie-accept {
  background: var(--green-mid); color: #fff; border: none; border-radius: 6px;
  padding: 8px 22px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.cookie-accept:hover { background: var(--green); }

/* ── 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; }

  /* Cookie banner sits above the mobile bottom nav */
  .cookie-banner { bottom: 58px; padding: 12px 16px; gap: 10px; font-size: 12px; }
  .cookie-accept { padding: 7px 18px; }

  /* 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; }
  .filter-group { align-items: flex-start; width: 100%; }
  .filter-row { justify-content: flex-start; }

  /* 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 — headline, one-liner and CTAs land inside the first viewport */
  .home-hero { padding: 36px 16px 40px; width: 100%; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .home-hero-text h1 { font-size: 33px; letter-spacing: -0.5px; margin-bottom: 14px; }
  .home-hero-text p  { max-width: 100%; }
  .home-hero-sub { font-size: 16px; }
  .home-hero-actions { margin-top: 22px; }
  .hero-live-strip { margin-top: 20px; font-size: 12.5px; padding: 7px 14px; }
  .home-badge { margin-bottom: 14px; }

  /* 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; }
  .step-row { padding: 16px 18px; gap: 16px; }
  .step-num { font-size: 26px; }
  .step-row p { font-size: 14px; }

  /* 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; }
  .hero-live-strip { display: flex; }
  .hero-demo { padding: 20px; }

  /* 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; }
}

/* ── Per-race SEO pages (race_detail / races_day) ──────────────────── */
.rd-crumb { font-size: 13px; color: var(--slate-500); margin: 20px 0 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rd-crumb a { color: var(--green); font-weight: 600; }
.rd-crumb span { color: var(--slate-300); }

.rd-head { margin-bottom: 14px; }
.rd-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: var(--slate-900); line-height: 1.15; }
.rd-sub { font-size: 14px; color: var(--slate-500); margin-top: 6px; }
.rd-racename { font-size: 16px; font-weight: 600; color: var(--slate-700, #334155);
               margin-top: 6px; }
.rd-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.rd-result { background: var(--green-lt); border: 1px solid #bbf7d0; color: #166534; border-radius: 12px; padding: 13px 18px; font-size: 15px; margin-bottom: 16px; }
.rd-result .rd-bsp { color: #15803d; font-weight: 600; }

.rd-calls { display: grid; gap: 10px; margin: 4px 0 8px; }
.rd-call { background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; padding: 14px 18px; }
.rd-call.value { border-color: #bbf7d0; background: linear-gradient(90deg,#f0fdf4,#fff); }
.rd-call strong { font-size: 17px; color: var(--slate-900); display: inline-block; margin: 2px 8px 2px 0; }
.rd-call-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 9px; border-radius: 20px; margin-right: 8px; }
.rd-call-tag.likely { background: var(--slate-100); color: var(--slate-600); }
.rd-call-tag.value { background: var(--green-mid); color: #fff; }
.rd-call-tag.standout { background: var(--gold-lt); color: #b45309; }
.rd-call-sub { font-size: 13.5px; color: var(--slate-600); }
.rd-note { font-size: 13.5px; color: var(--slate-600); background: var(--gold-lt); border: 1px solid #fde68a; border-radius: 10px; padding: 11px 16px; margin: 10px 0; line-height: 1.55; }

.rd-explain { font-size: 13.5px; color: var(--slate-600); line-height: 1.65; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.rd-explain a { color: var(--green); font-weight: 600; }

.rd-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 8px; flex-wrap: wrap; }
.rd-nav-link { font-size: 13.5px; font-weight: 600; color: var(--green); }
.rd-nav-mid { font-size: 13px; color: var(--slate-500); }

.rd-cta { text-align: center; margin: 26px 0 10px; }
.rd-cta .btn-primary { display: inline-block; }
.rd-cta-link { display: block; margin-top: 12px; font-size: 13.5px; color: var(--slate-500); }
.rd-disclaimer { font-size: 11.5px; color: var(--slate-400); text-align: center; line-height: 1.6; margin-top: 20px; }
.rd-disclaimer a { color: var(--slate-500); }

/* Day index */
.day-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.day-row { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--slate-200); border-radius: 12px; padding: 13px 16px; transition: border-color .12s, box-shadow .12s; }
.day-row:hover { border-color: var(--green-mid); box-shadow: 0 4px 14px rgba(22,163,74,.10); }
.day-time { font-size: 15px; font-weight: 800; color: var(--slate-900); width: 52px; flex-shrink: 0; }
.day-track { font-size: 15px; font-weight: 600; color: var(--slate-800); flex: 1; min-width: 0; }
.day-meta { display: block; font-size: 12px; font-weight: 400; color: var(--slate-400); margin-top: 2px; }
.day-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.day-value { font-size: 13px; color: var(--green); font-weight: 600; }
.day-value small { color: var(--slate-400); font-weight: 400; }
.day-winner { font-size: 13px; color: var(--slate-600); font-weight: 600; }
.day-novalue { font-size: 12.5px; color: var(--slate-400); }
.day-arrow { color: var(--slate-300); font-size: 18px; }

.day-other { margin-top: 30px; }
.day-other h2 { font-size: 16px; font-weight: 700; color: var(--slate-700); margin-bottom: 10px; }
.day-other-links { display: flex; flex-wrap: wrap; gap: 8px; }
.day-other-links a { font-size: 13px; color: var(--green); background: var(--green-lt); border-radius: 8px; padding: 6px 11px; }

.race-permalink { padding: 12px 18px 4px; text-align: center; }
.race-permalink a { font-size: 13px; color: var(--green); font-weight: 600; }

/* ── How-it-works walkthrough ──────────────────────────────────────── */
.hiw-tip-bridge { background: var(--slate-900); color: rgba(255,255,255,.88); border-radius: 14px;
  padding: 20px 24px; margin: 24px 0 14px; font-size: 15.5px; line-height: 1.65; }
.hiw-tip-bridge strong { color: #fff; }
.hiw-idea { background: var(--green-lt); border: 1px solid #bbf7d0; border-radius: 14px;
  padding: 20px 24px; margin: 24px 0 8px; font-size: 16px; line-height: 1.65; color: #166534; }
.hiw-h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--slate-900); margin: 34px 0 6px; }
.hiw-sub { color: var(--slate-500); font-size: 14px; margin-bottom: 14px; }
.hiw-legend { display: grid; gap: 13px; margin: 20px 0 8px; }
.hiw-item { display: flex; gap: 13px; align-items: flex-start; font-size: 13.5px; color: var(--slate-600); line-height: 1.55; }
.hiw-item strong { color: var(--slate-900); }
.hiw-item a { color: var(--green); font-weight: 600; }
.hiw-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-mid);
  color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.hiw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.hiw-card { border-radius: 14px; padding: 18px 20px; font-size: 14px; line-height: 1.6; color: var(--slate-700); }
.hiw-card.good { background: linear-gradient(90deg, #f0fdf4, #fff); border: 1px solid #bbf7d0; }
.hiw-card.bad  { background: var(--slate-50); border: 1px solid var(--slate-200); }
.hiw-card-tag { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.hiw-card.good .hiw-card-tag { color: var(--green); }
.hiw-card.bad  .hiw-card-tag { color: var(--slate-500); }
.hiw-honest { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px; padding: 22px 24px; margin: 28px 0; }
.hiw-honest p { font-size: 14.5px; line-height: 1.65; color: var(--slate-700); }
.hiw-honest a { color: var(--green); font-weight: 600; }
.hiw-18 { font-size: 12px; color: var(--slate-400); margin-top: 10px; }
.hiw-cta { text-align: center; margin: 30px 0 8px; }
.hiw-cta-link { display: block; margin-top: 12px; font-size: 13.5px; color: var(--slate-500); }
@media (max-width: 600px) { .hiw-cards { grid-template-columns: 1fr; } }

/* Price movement indicator (drift = price out/more edge, coming in = shorter/less edge) */
.price-move { font-size: 10px; font-weight: 700; margin-top: 3px; line-height: 1.1; letter-spacing: -.2px; }
.move-drift { color: #16a34a; }   /* green ▲ — price drifted out = more edge for you */
.move-in    { color: #dc2626; }   /* red ▼ — price came in = less edge */
.hdr-help   { cursor: help; color: var(--slate-400); font-weight: 400; }

@media (max-width: 600px) {
  .rd-head h1 { font-size: 24px; }
  .day-row { gap: 10px; padding: 11px 13px; }
  .day-right .day-value, .day-right .day-winner { max-width: 130px; text-align: right; }
}

/* ── Paywall / soft gate ──────────────────────────────────────── */
.row-locked td { opacity: .45; }
.row-locked .locked-name { color: var(--slate-500); }
.col-blur { color: transparent; text-shadow: 0 0 7px rgba(0,0,0,.35); user-select: none; font-size: 13px; letter-spacing: 1px; }
.paywall-row td { padding: 0; border: none; background: none; }
.paywall-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac; border-radius: 12px;
  padding: 16px 20px; margin: 6px 0 10px;
}
.paywall-text { font-size: 14.5px; color: var(--slate-700); line-height: 1.4; }
.paywall-text strong { color: var(--slate-900); }
.paywall-tease { font-weight: 700; color: var(--green); }
.paywall-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.paywall-btn { white-space: nowrap; padding: 10px 20px; font-size: 14px; }
.paywall-sub { font-size: 11.5px; color: var(--slate-500); white-space: nowrap; }

/* ── Upgrade banner (logged-in free users) ────────────────────── */
.upgrade-banner {
  background: #0f172a; color: #e2e8f0;
  padding: 10px 20px; text-align: center; font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.upgrade-banner a.upgrade-btn {
  background: #16a34a; color: #fff; padding: 6px 16px; border-radius: 6px;
  font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.upgrade-banner a.upgrade-btn:hover { background: #15803d; }
.upgrade-banner .upgrade-spots { color: #4ade80; font-weight: 700; }

@media (max-width: 600px) {
  .paywall-banner { flex-direction: column; align-items: flex-start; }
  .paywall-actions { align-items: flex-start; }
}

.day-row-locked { opacity: .6; }
.day-locked { color: var(--slate-400); font-size: 13px; font-weight: 600; }

/* ── Home: receipts strip ("Yesterday, in black and white") ─────────────── */
.home-receipts { background: var(--white); border-bottom: 1px solid var(--slate-200); padding: 40px 24px; }
.home-receipts-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.home-receipts h2 { font-size: 28px; font-weight: 800; color: var(--slate-900); letter-spacing: -.4px; margin-bottom: 8px; }
.home-receipts-head { font-size: 16px; color: var(--slate-700); margin-bottom: 20px; }
.home-receipts-head strong { color: var(--green); font-weight: 800; }
.receipt-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.receipt-card { flex: 1 1 200px; max-width: 260px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.receipt-badge { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--green); background: var(--green-lt); border-radius: 999px; padding: 3px 10px; }
.receipt-horse { font-size: 16px; font-weight: 800; color: var(--slate-900); }
.receipt-race { font-size: 13px; color: var(--slate-500); }
.home-receipts-note { font-size: 13px; color: var(--slate-500); line-height: 1.5; max-width: 620px; margin: 0 auto; }
.home-receipts-note a { color: var(--green-mid); font-weight: 700; text-decoration: none; }
.home-receipts-note a:hover { text-decoration: underline; }

/* ── Home: founder-rate notes on CTAs ───────────────────────────────────── */
.hero-founder-note { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--gold); }
.home-trial-founder { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--gold); }

/* ── Race detail: the model's case panel ────────────────────────────────── */
.rd-case { background: var(--slate-50); border: 1px solid var(--slate-200); border-left: 3px solid var(--green-mid); border-radius: var(--radius); padding: 14px 18px; margin-top: 16px; }
.rd-case-title { font-size: 14px; color: var(--slate-700); margin-bottom: 8px; }
.rd-case-title strong { color: var(--slate-900); }
.rd-case-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rd-case-list li { font-size: 13.5px; line-height: 1.45; }
.rd-case-list .case-for { color: var(--green); }
.rd-case-list .case-against { color: var(--red); }
.rd-case-note { font-size: 12px; color: var(--slate-500); margin: 8px 0 0; }

/* ── Inline signup (racecard pages) ──────────────────────────────────────────
   2026-07-27. Replaces the link-only paywall banner on /races/<date> and
   /races/<date>/<slug>. Funnel showed 9% of human sessions ever reached an
   offer page and /go/trial was clicked once in a week: the account form was a
   navigation away from where people actually landed. Now it is on the page. */
.inline-signup {
  margin: 18px 0 26px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border: 1px solid var(--slate-200);
  border-top: 3px solid var(--green-mid);
  border-radius: 10px;
}
.isu-head { margin-bottom: 14px; }
.isu-head strong {
  display: block; font-size: 17px; font-weight: 800;
  color: var(--slate-900); line-height: 1.25; margin-bottom: 5px;
}
.isu-sub { display: block; font-size: 14px; color: var(--slate-700); line-height: 1.45; }

.isu-form { margin: 0; }
.isu-fields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.isu-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.isu-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--slate-500);
}
.isu-field input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 15px;           /* >=16px avoids iOS zoom, but
                                                    15px + the meta viewport we
                                                    already ship is fine here */
  border: 1px solid var(--slate-300); border-radius: 7px;
  background: var(--white); color: var(--slate-900);
}
.isu-field input:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px var(--green-lt);
}
.isu-btn { flex: 0 0 auto; padding: 11px 22px; font-size: 15px; white-space: nowrap; }
.isu-form-single { display: flex; }

/* Honeypot: hidden from humans without display:none, which some bots skip. */
.isu-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.isu-fine {
  margin: 11px 0 0; font-size: 12px; color: var(--slate-500); line-height: 1.5;
}
.isu-fine a { color: var(--slate-700); text-decoration: underline; }

@media (max-width: 560px) {
  .inline-signup { padding: 16px; }
  .isu-fields { flex-direction: column; align-items: stretch; gap: 12px; }
  .isu-field { flex: 1 1 auto; }
  .isu-btn { width: 100%; }
}
