/* ValueOddsAPI light redesign — tokens and components from the "ValueOddsAPI" design system */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/geist.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/geist-mono.woff2) format("woff2"); }

:root {
  --surface-page: #f6f8f7;
  --surface-card: #ffffff;
  --surface-sunken: #eef2f0;
  --surface-inverse: #0b0c0e;
  --border: #e3e8e6;
  --border-strong: #7e8a85;
  --border-inverse: #ffffff1a;
  --ink: #0b0c0e;
  --ink-muted: #56615c;
  --ink-subtle: #69736e;
  --on-inverse: #ffffff;
  --on-inverse-muted: #b5bdb9;
  --mint: #47fabe;
  --on-mint: #0b0c0e;
  --mint-ink: #0a7f58;
  --mint-tint: #e3fbf2;
  --mint-on-inverse: #83f6c8;
  --negative: #c23030;
  --live: #b4430b;
  --live-tint: #fdf0e6;
  --info: #2257d6;
  --info-tint: #eaf0fd;
  --shadow-sm: 0 1px 2px 0 rgba(11,12,14,0.05);
  --shadow-lg: 0 24px 48px -16px rgba(11,12,14,0.18);
  --shadow-glow: 0 20px 80px 0 rgba(71,250,190,0.18);
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--mint-ink); }
a:hover { color: var(--ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 12px 16px; background: var(--surface-card); color: var(--ink); border-radius: var(--radius-md); }


/* Type */
.display { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -1.4px; margin: 0; }
.h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.8px; margin: 0; }
.h2 { font-size: clamp(26px, 3.2vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.6px; margin: 0; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -0.3px; margin: 0; }
.body-lg { font-size: 18px; line-height: 28px; margin: 0; }
.body { font-size: 16px; line-height: 24px; margin: 0; }
.body-sm { font-size: 14px; line-height: 20px; margin: 0; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; margin: 0; }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }

/* Layout */
.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: 88px 24px; }
.section-tail { padding: 0 24px 88px; }
.band { background: var(--surface-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-top { align-items: flex-start; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.intro-center { align-items: center; text-align: center; margin: 0 auto; }
.grid { display: grid; gap: 16px; }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.grid-210 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-180 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 16px/24px var(--font-sans); cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--mint); color: var(--on-mint); }
.btn-primary:hover { color: var(--on-mint); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--surface-card); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--ink); background: var(--surface-sunken); }
.btn-ghost { background: transparent; color: var(--mint-ink); padding: 0 8px; }
.btn-ghost:hover { color: var(--mint-ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-dark { background: var(--surface-inverse); color: var(--on-inverse); }
.btn-dark:hover { color: var(--on-inverse); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Badge + eyebrow */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-sm); font: 600 12px/16px var(--font-mono); letter-spacing: .6px; text-transform: uppercase; background: var(--surface-sunken); color: var(--ink-muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.badge-mint { background: var(--mint-tint); color: var(--mint-ink); }
.badge-mint .badge-dot { background: var(--mint); box-shadow: 0 0 0 2px var(--mint-tint); }
.badge-live { background: var(--live-tint); color: var(--live); }
.badge-info { background: var(--info-tint); color: var(--info); }
.eyebrow { font: 600 12px/16px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mint-ink); margin: 0; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-md); background: var(--mint-tint); }
.eyebrow-pill::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--mint-ink); }

/* Card */
.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 32px; }
.card-highlight { border-color: var(--mint-ink); box-shadow: var(--shadow-glow); }
.card-flex { display: flex; flex-direction: column; gap: 14px; }
.card .h3 { margin: 12px 0 8px; }
.card-flex .h3 { margin: 0; }
.card p:not(.eyebrow) { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin: 0; }
.chip-code { align-self: flex-start; font: 500 13px/20px var(--font-mono); background: var(--surface-sunken); color: var(--ink); padding: 6px 10px; border-radius: var(--radius-sm); }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 10; padding: 16px 16px 0; }
.nav { display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 8px 0 20px; background: var(--surface-card); border: 1px solid var(--border); border-radius: 9999px; box-shadow: var(--shadow-lg); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--font-sans); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--mint-ink); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-md); font: 500 14px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: var(--surface-sunken); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Hero */
.hero { padding: 88px 24px 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .body-lg { max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.panel { flex: 1 1 520px; min-width: 0; background: var(--surface-inverse); border-radius: var(--radius-xl); padding: 20px; box-shadow: var(--shadow-glow); display: flex; flex-direction: column; gap: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0; font: 600 12px/16px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--on-inverse-muted); }
.panel-board { background: var(--surface-page); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px 4px; }
.panel-title strong { font: 650 16px/24px var(--font-sans); }
.panel-title span { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.panel-note { margin: 0; padding: 0 4px; font-size: 12px; line-height: 16px; color: var(--on-inverse-muted); }
@media (max-width: 560px) { .hero { padding-top: 48px; } .hero-copy, .panel { flex-basis: 100%; } }

/* Odds cell */
.odds { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.odds-label { font: 500 14px/20px var(--font-sans); }
.odds-meta { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.odds-prices { font: 500 16px/20px var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.odds-prices .arrow { color: var(--ink-subtle); margin: 0 6px; }
.odds-prices .fair { color: var(--mint-ink); font-weight: 600; }
.odds-edge { font: 600 12px/16px var(--font-mono); text-align: right; }
.odds-edge.up { color: var(--mint-ink); }
.odds-edge.down { color: var(--negative); }
.odds-value { background: var(--mint-tint); border-color: var(--mint-ink); }

/* Code panel */
.code { background: var(--surface-inverse); border: 1px solid var(--border-inverse); border-radius: var(--radius-lg); color: var(--on-inverse); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-inverse); font: 500 13px/20px var(--font-mono); }
.code-method { color: var(--mint-on-inverse); font-weight: 600; margin-right: 8px; }
.code-status { color: var(--mint-on-inverse); font-size: 12px; white-space: nowrap; }
.code pre { margin: 0; padding: 16px; font: 400 13px/20px var(--font-mono); color: var(--on-inverse-muted); overflow-x: auto; }
.code .s { color: var(--mint-on-inverse); }
.code .n { color: var(--on-inverse); }

/* Bookmakers */
.center-stack { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.bm-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 920px; margin: 0; padding: 0; list-style: none; }
.bm { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-md); font: 500 14px/20px var(--font-sans); }
.bm img { width: 32px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-inverse); }

/* Two prices table */
.table-box { flex: 1 1 520px; min-width: 0; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow-x: auto; }
.table-box table { width: 100%; min-width: 460px; border-collapse: collapse; font: 500 15px/20px var(--font-mono); font-variant-numeric: tabular-nums; }
.table-box th { background: var(--surface-sunken); font: 600 12px/16px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); padding: 14px 20px; text-align: right; }
.table-box td { padding: 16px 20px; text-align: right; border-top: 1px solid var(--border); }
.table-box th:first-child, .table-box td:first-child { text-align: left; font-family: var(--font-sans); }
.table-box th:first-child { font-family: var(--font-mono); }
.table-box .fair { color: var(--mint-ink); font-weight: 600; }
.table-box .prob { color: var(--ink-muted); }
.table-note { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 12px; line-height: 16px; color: var(--ink-subtle); }

/* Stats */
.stat { padding: 24px 0; border-top: 1px solid var(--border); }
.stat-value { font: 600 36px/40px var(--font-mono); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 4px; }

/* Pricing */
.plan { display: flex; flex-direction: column; gap: 20px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 26px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; }
.plan-price strong { font: 600 36px/40px var(--font-mono); letter-spacing: -1px; }
.plan-price span { font-size: 14px; color: var(--ink-muted); white-space: nowrap; }
.plan { container-type: inline-size; }
.plan-price strong { font-size: clamp(22px, calc((100cqi - 56px) / 3.5), 36px); }
.plan-price-long strong { font-size: clamp(20px, calc((100cqi - 56px) / 4.5), 36px); }
.plan-annual { margin-top: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.plan li svg { flex-shrink: 0; margin-top: 2px; }
.pack { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.pack-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pack-row strong { font: 650 16px/24px var(--font-sans); }
.pack-tag { font: 500 13px/20px var(--font-mono); color: var(--mint-ink); white-space: nowrap; }
.addon { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--border); }
.addon span:last-child { font: 500 14px/20px var(--font-mono); white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.stats-plan strong { font: 650 16px/24px var(--font-sans); }
.stats-plan .plan-price strong { font-size: 28px; line-height: 32px; letter-spacing: -0.8px; }
.stats-plan .grow { flex-grow: 1; }

/* CTA + footer */
.cta { background: var(--surface-inverse); border-radius: var(--radius-xl); padding: 64px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta .col { flex: 1 1 480px; gap: 14px; }
.cta .eyebrow { color: var(--mint-on-inverse); }
.cta .h1 { color: var(--on-inverse); }
.cta .body-lg { color: var(--on-inverse-muted); }
@media (max-width: 560px) { .cta { padding: 40px 24px; } }
.footer { border-top: 1px solid var(--border); padding: 32px 24px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer .brand { margin-right: 0; font-size: 16px; }
.footer .brand img { width: 24px; height: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; line-height: 20px; }
.footer nav a { color: var(--ink-muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.col-420 { flex: 1 1 420px; }
.col-400 { flex: 1 1 400px; }
.col-560 { flex: 1 1 560px; min-width: 0; }

[hidden] { display: none !important; }
/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; }
.faq summary { cursor: pointer; font: 600 16px/24px var(--font-sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { color: var(--mint-ink); font: 600 18px/24px var(--font-mono); transition: transform .15s; }
.faq details[open] .faq-mark { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }
/* Footer */
.footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer .footer-grid nav { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
.footer-grid nav .eyebrow { margin-bottom: 4px; }
.footer .footer-base { display: block; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.lang { display: flex; flex-direction: column; gap: 6px; }
.lang select { min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-card); color: var(--ink); font: 500 14px/20px var(--font-sans); }
.link-button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--ink-muted); font: 400 14px/20px var(--font-sans); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--ink); }
@media (max-width: 760px) { .footer .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
/* Analytics consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 720px; margin: 0 auto; padding: 20px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; }
.consent-title { margin: 0; font: 650 16px/24px var(--font-sans); }

/* Pricing: the same feature rows on every card line up across the plans (CSS subgrid).
   Card = head, price, description, 11 feature rows, button -> 15 rows. Built by pricing-src/inject_pricing.py. */
.plan-grid { row-gap: 16px; }
.plan-grid > .plan { display: grid; grid-row: span 15; grid-template-rows: subgrid; row-gap: 0; gap: 0; container-type: normal; }
/* A size container cannot be a subgrid, so the price field (same width as the card) is the container instead. */
.plan-grid > .plan > div:nth-child(2) { container-type: inline-size; }
.plan-grid > .plan > .plan-head, .plan-grid > .plan > div:nth-child(2), .plan-grid > .plan > .body-sm { padding-bottom: 20px; }
.plan-grid > .plan > .plan-head { align-self: start; }
.plan-grid > .plan ul { display: grid; grid-row: span 11; grid-template-rows: subgrid; row-gap: 0; gap: 0; }
.plan-grid > .plan li { padding: 6px 0; }
.plan-grid > .plan > .btn { align-self: end; margin-top: 20px; }
.plan-no span { color: var(--ink-subtle); }
