:root {
  --background: oklch(0.985 0.005 90);
  --foreground: oklch(0.20 0.04 250);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.20 0.04 250);
  --primary: oklch(0.24 0.06 258);
  --primary-foreground: oklch(0.985 0.005 90);
  --secondary: oklch(0.95 0.01 250);
  --secondary-foreground: oklch(0.24 0.06 258);
  --muted-foreground: oklch(0.48 0.03 255);
  --accent: oklch(0.94 0.02 90);
  --accent-foreground: oklch(0.24 0.06 258);
  --border: oklch(0.90 0.012 250);
  --gold: oklch(0.76 0.13 78);
  --gold-foreground: oklch(0.20 0.04 250);
  --success: oklch(0.55 0.14 145);
  --destructive: oklch(0.58 0.22 27);
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", ui-serif, Georgia, serif; letter-spacing: -0.02em; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; }
img { max-width: 100%; }
.stat-num { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- header ---------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header.top img { height: 6.9rem; width: auto; display: block; }
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-tag {
  border-left: 1px solid var(--border);
  padding-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.header-tag.sport-tag { color: var(--primary); }
@media (max-width: 480px) {
  .header-tag { display: none; }
}
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a.btn-text { font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 32px; font-size: 14px; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-secondary:hover { opacity: 0.85; }
.btn-text {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.btn-text:hover { text-decoration: underline; }

/* ---------- hero ---------- */
section.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
section.hero .dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(color-mix(in oklab, var(--primary) 40%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; padding: 96px 0; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.eyebrow-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--gold); }

h1.headline {
  margin-top: 20px;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  line-height: 1.05;
}
h1.headline em {
  display: block;
  font-style: italic;
  color: var(--primary);
  margin-top: 2px;
}
.lede {
  margin-top: 20px;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .lede { font-size: 1.125rem; } }
.lede strong { color: var(--foreground); font-weight: 600; }

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cta-note { font-size: 12px; color: var(--muted-foreground); }
.secondary-line { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }

/* ---------- mock card ---------- */
.mockwrap { position: relative; }
.mockglow {
  position: absolute;
  inset: -16px -8px;
  z-index: -1;
  border-radius: 24px;
  filter: blur(32px);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 10%, transparent), transparent, color-mix(in oklab, var(--gold) 20%, transparent));
}
.mockcard {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 20px;
  box-shadow: 0 20px 25px -5px color-mix(in oklab, var(--primary) 10%, transparent), 0 8px 10px -6px color-mix(in oklab, var(--primary) 10%, transparent);
}
.mockcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.mockcard-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}
.mockcard-title {
  margin-top: 4px;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
}
.mockcard-pill {
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.mockrows { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mockrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  padding: 12px;
  transition: box-shadow 0.15s ease;
}
.mockrow.clickable { cursor: pointer; }
.mockrow.clickable:hover { box-shadow: 0 4px 12px color-mix(in oklab, var(--primary) 12%, transparent); }
.mockrow-avatar {
  display: flex;
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: 11px;
  font-weight: 600;
}
.mockrow-body { flex: 1; min-width: 0; }
.mockrow-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mockrow-name { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 14px; font-weight: 600; }
.mockrow-badge {
  display: inline-flex;
  margin-top: 4px;
  border-radius: 999px;
  border: 1px solid;
  padding: 2px 6px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mockrow-sub { margin-top: 4px; font-size: 11px; color: var(--muted-foreground); }
.mockrow-stats { display: flex; flex-shrink: 0; gap: 12px; text-align: right; }
.mockrow-stat-num { font-size: 12px; font-weight: 600; }
.mockrow-stat-label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.badge-live { border-color: color-mix(in oklab, var(--success) 50%, transparent); background: color-mix(in oklab, var(--success) 10%, transparent); color: var(--success); }
.badge-next { border-color: color-mix(in oklab, var(--gold) 60%, transparent); background: color-mix(in oklab, var(--gold) 12%, transparent); color: color-mix(in oklab, var(--gold) 70%, var(--foreground)); }
.badge-later { border-color: var(--border); background: var(--secondary); color: var(--muted-foreground); }
.badge-destructive { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }

/* ---------- content sections ---------- */
section.content { padding: 64px 0; border-top: 1px solid var(--border); }
section.content .inner { max-width: 42rem; margin: 0; }
section.content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 18px;
}
section.content p { color: var(--muted-foreground); margin-bottom: 14px; }
section.content p strong { color: var(--foreground); font-weight: 600; }

/* ---------- feature row (icon-eyebrow / headline / lede / mockcard split) ---------- */
section.feature { border-top: 1px solid var(--border); padding: 72px 0; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: 7fr 5fr; gap: 32px; } }
.feature-grid h2 { margin-top: 18px; font-size: 1.6rem; font-weight: 600; max-width: 34rem; }
.feature-grid > div:first-child > p { margin-top: 16px; max-width: 34rem; color: var(--muted-foreground); font-size: 1.03rem; }
.feature-grid > div:first-child > p.small { margin-top: 10px; font-size: 0.88rem; }

section.interest {
  margin: 64px 0;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--accent);
  padding: 32px;
}
section.interest .inner { max-width: 40rem; }
section.interest h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
section.interest p { color: var(--muted-foreground); margin-bottom: 20px; }

/* ---------- sport picker ---------- */
.picker-lede { max-width: 42rem; color: var(--muted-foreground); margin-bottom: 0; }
.sport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.sport-tab:hover { border-color: var(--primary); color: var(--foreground); }
.sport-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* ---------- closing CTA band ---------- */
section.cta-band { margin: 0 auto 96px; max-width: 1280px; padding: 0 24px; }
.cta-band-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 56px 32px;
}
@media (min-width: 768px) { .cta-band-inner { padding: 56px 48px; } }
.cta-band-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .cta-band-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta-band-inner h2 { font-size: 1.9rem; font-weight: 600; }
.cta-band-inner p { margin-top: 12px; max-width: 28rem; font-size: 1rem; color: color-mix(in oklab, var(--primary-foreground) 75%, transparent); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .cta-band-actions { justify-content: flex-end; } }
.btn-on-primary {
  border-color: color-mix(in oklab, var(--primary-foreground) 30%, transparent);
  background: transparent;
  color: var(--primary-foreground);
}
.btn-on-primary:hover { background: color-mix(in oklab, var(--primary-foreground) 12%, transparent); }
.btn-on-primary.filled { background: var(--card); color: var(--primary); border-color: transparent; }
.btn-on-primary.filled:hover { opacity: 0.92; }

footer {
  border-top: 1px solid var(--border);
}
footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}
footer .brand-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
footer .brand-line strong { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 14px; font-weight: 600; color: var(--foreground); }
footer .meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--foreground); text-decoration: underline; }

/* ---------- demo board (interactive, client-side only) ---------- */
.demo-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  background: var(--accent);
}
.demo-tab {
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
}
.demo-tab:hover { color: var(--foreground); }
.demo-tab.active { background: var(--card); color: var(--primary); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.demo-body { padding: 24px; }
.demo-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.demo-body .demo-sub { font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 18px; }
.demo-detail-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--background);
}
.demo-detail-panel .close-row { display: flex; justify-content: flex-end; }
.demo-detail-panel .close-btn { border: none; background: transparent; color: var(--muted-foreground); font-size: 12px; cursor: pointer; }
.demo-detail-panel .close-btn:hover { color: var(--foreground); }
.demo-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; margin-top: 12px; }
.demo-stat-cell { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px 4px; }
.demo-stat-cell .num { font-size: 15px; font-weight: 600; }
.demo-stat-cell .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-top: 2px; }
.demo-budget-bar { display: flex; height: 12px; overflow: hidden; border-radius: 999px; background: var(--secondary); }
.demo-budget-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; }
.demo-budget-legend .dot { display: inline-block; height: 8px; width: 8px; border-radius: 50%; margin-right: 6px; }
.demo-note { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; font-size: 12px; color: var(--muted-foreground); }
.demo-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in oklab, var(--gold) 50%, transparent);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: color-mix(in oklab, var(--gold) 65%, var(--foreground));
}
