/* new theme: homepage, products/, sportsbooks/, pricing, docs, contact, sign in/up, account. old pages (terms, liveviewer) still use style.css */
:root {
    --bg: #050507;
    --bg-2: #0a0a0e;
    --panel: #0e0e13;
    --panel-2: #13131a;
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.14);
    --text: #f5f5f7;
    --muted: #9b9ba8;
    --faint: #63636f;
    --accent: #a855f7;
    --accent-2: #7c3aed;
    --accent-3: #c084fc;
    --accent-soft: rgba(168, 85, 247, 0.12);
    --up: #22c55e;
    --down: #f04452;
    --radius: 14px;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.muted { color: var(--faint); }
[hidden] { display: none !important; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font: 500 14px/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #9b5cf6 0%, var(--accent-2) 100%);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 24px -6px rgba(124, 58, 237, 0.65);
}
.btn-primary:hover { background: linear-gradient(180deg, #a86bf8 0%, #8746ef 100%); }

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-2);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color .2s, border-color .2s;
}
.nav.scrolled {
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }

.nav-links {
    display: flex;
    gap: 4px;
    flex: 1;
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 7px;
    transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-2);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--text);
    transition: transform .2s, top .2s;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 20px; }
.nav.open .nav-toggle span:first-child { top: 17px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 72px 0 40px;
    isolation: isolate;
}
.hero-glow {
    position: absolute;
    inset: -140px 0 auto;
    height: 760px;
    z-index: -1;
    background:
        radial-gradient(48% 46% at 50% 18%, rgba(124, 58, 237, 0.30), transparent 70%),
        radial-gradient(30% 30% at 72% 36%, rgba(168, 85, 247, 0.12), transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: absolute;
    inset: -64px 0 auto;
    height: 720px;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero-copy { text-align: center; }

h1, h2, h3 { letter-spacing: -0.025em; }

.hero h1 {
    margin: 24px auto 0;
    max-width: 900px;
    font-size: clamp(40px, 6.4vw, 72px);
    line-height: 1.03;
    font-weight: 600;
    letter-spacing: -0.045em;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.58) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.14em; /* the gradient only paints inside the box, the tight line-height left g / y / p descenders outside it (cut off) */
    margin-bottom: -0.14em; /* same spacing as before */
}

.lede {
    margin: 24px auto 0;
    max-width: 620px;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--muted);
}

.hero-ctas {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-endpoint {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--faint);
}

    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- logos ---------- */
.logos { padding: 56px 0 24px; }
.logos-title {
    text-align: center;
    font-size: 14px;
    color: var(--faint);
    margin-bottom: 28px;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marquee 70s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    object-fit: cover;
    transition: transform .25s;
}
.marquee-track img:hover { transform: translateY(-2px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 120px 0 0; }
.section-tight { padding-top: 96px; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-3);
    margin-bottom: 14px;
}
.section h2, .cta h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.035em;
}
.section-sub {
    margin-top: 16px;
    font-size: 17px;
    color: var(--muted);
    max-width: 600px;
}
.section-sub a { color: var(--text); text-decoration-color: var(--faint); text-underline-offset: 3px; }

/* bento */
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    padding: 26px;
    overflow: hidden;
    transition: border-color .2s;
}
.card:hover { border-color: var(--border-2); }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card-wide { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.card-tall { grid-row: span 2; display: flex; flex-direction: column; gap: 24px; }
.card-copy { max-width: 460px; }

.icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 18px;
}
.icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.markets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.mk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 12px;
}
.mk span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk b { font-weight: 500; }

.plays { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: auto; }
.plays li {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 10px;
    align-items: baseline;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}
.plays li:first-child { color: var(--text); }
.plays li span { font-size: 11.5px; color: var(--faint); }
.plays li b { font-size: 11.5px; font-weight: 500; color: var(--accent-3); }

/* code */
.code-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
}
.checks { list-style: none; margin: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.checks li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--muted);
}
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23c084fc' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}
.link-arrow svg { transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.code-win {
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    background: #08080b;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.3);
}
.code-tabs {
    display: flex;
    gap: 2px;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.code-tab {
    font: 12.5px var(--mono);
    color: var(--faint);
    background: transparent;
    border: 0;
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
}
.code-tab:hover { color: var(--muted); }
.code-tab.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.code-pane {
    display: none;
    padding: 22px 24px;
    font-size: 13px;
    line-height: 1.7;
    color: #d6d6de;
    overflow-x: auto;
    min-height: 430px;
}
.code-pane.active { display: block; }
.code-pane code { font-family: inherit; } /* browsers give <code> its own monospace (courier), take the pane's jetbrains mono instead */
.code-pane .k { color: #c084fc; }
.code-pane .s { color: #86efac; }
.code-pane .f { color: #93c5fd; }
.code-pane .n { color: #fbbf24; }
.code-pane .c { color: var(--faint); }

/* coverage */
.sports {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
    gap: 1px;
}
.sport { background: var(--bg-2); padding: 24px; transition: background-color .2s; }
.sport:hover { background: var(--panel-2); }
.sport h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.sport p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.sport-wide { grid-column: span 2; grid-row: span 2; }
.sport-more {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.16), var(--bg-2) 70%);
}
.sport-more:hover { background: linear-gradient(160deg, rgba(124, 58, 237, 0.24), var(--panel-2) 70%); }
.sport-more .link-arrow { font-size: 14px; }

/* use cases */
.uses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.use {
    padding: 22px 0 0;
    border-top: 1px solid var(--border-2);
}
.use h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.use p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* faq */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
}
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 36px 20px 0;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.6px solid var(--faint);
    border-bottom: 1.6px solid var(--faint);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 36px 22px 0; color: var(--muted); font-size: 15px; }
.faq a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--faint); }
.faq code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: var(--text); }

/* cta */
.cta {
    position: relative;
    margin-top: 140px;
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
}
.cta-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(40% 70% at 50% 100%, rgba(124, 58, 237, 0.32), transparent 70%);
}
.cta p { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- footer (same markup as the shared _templates/footer.html) ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo .logo { width: 26px; height: 26px; border-radius: 7px; }
.footer-logo h3 { font-size: 16px; font-weight: 600; }
.footer-social { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.footer-social a { display: inline-flex; color: var(--faint); text-decoration: none; transition: color .15s; } /* inline-flex drops the whitespace after the svg, which showed as an underlined gap */
.footer-social a:hover { color: var(--text); }
.footer-column h4 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.footer-column ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-column a { color: var(--faint); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-column a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--faint); }

/* ---------- products dropdown (shared nav, _templates/nav.html + site.js) ---------- */
.nav-links a[aria-current="page"], .nav-drop-btn.current { color: var(--text); }
.nav-drop { position: relative; }
.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 14px;
    color: var(--muted);
    background: transparent;
    border: 0;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-drop-btn svg { transition: transform .2s; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -10px;
    width: 380px;
    padding: 8px;
    background: rgba(14, 14, 19, 0.98);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 60px -30px rgba(124, 58, 237, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* keeps hover alive across the gap */
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 821px) {
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
    .nav-drop:hover .nav-drop-btn svg { transform: rotate(180deg); }
}
.nav-links .nav-drop-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
}
.nav-links .nav-drop-item:hover { background: rgba(255, 255, 255, 0.05); }
.nav-drop-item .icon { width: 32px; height: 32px; margin: 0; flex: none; }
.nav-drop-item .icon svg { width: 16px; height: 16px; }
.nav-drop-item b { display: block; font-size: 14px; font-weight: 500; }
.nav-drop-item small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* ---------- sportsbooks hub (sportsbooks/index.html, from _templates/hub_page.html) ---------- */
.hero-sm { padding-bottom: 8px; }
.bk-jump { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.bk-jump a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border-2);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s, border-color .15s;
}
.bk-jump a:hover { color: var(--text); border-color: rgba(168, 85, 247, 0.5); }
.bk-jump span { font-family: var(--mono); font-size: 12px; color: var(--accent-3); }

.bk-group { padding-top: 72px; scroll-margin-top: 72px; }
.bk-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.bk-group-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.bk-group-head p { font-size: 14.5px; color: var(--faint); }
.bk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}
.bk-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: border-color .15s, transform .15s;
}
.bk-card:hover { border-color: rgba(168, 85, 247, 0.5); transform: translateY(-2px); }
.bk-card img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; filter: grayscale(1) contrast(.9); opacity: .6; transition: filter .3s, opacity .3s; }
.bk-card:hover img, .bk-card:focus-visible img { filter: none; opacity: 1; }
/* book pages: BoltOdds + the book, instead of a wall of logos */
.bk-lockup { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 56px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(60% 80% at 50% 50%, rgba(124, 58, 237, 0.14), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.bk-lockup img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.bk-lockup span { font-size: 22px; font-weight: 300; color: var(--faint); }
.bk-card-name { flex: 1; min-width: 0; line-height: 1.25; }
.bk-pro {
    flex: none;
    padding: 2px 7px;
    border-radius: 99px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    background: var(--accent-soft);
    color: var(--accent-3);
    font-size: 11px;
    font-weight: 500;
}
.book-disclaimer { margin-top: 8px; font-size: 12px; color: var(--faint); }

/* ---------- product pages (products/*.html) ---------- */
.hero-eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent-3);
    font-size: 13px;
    font-weight: 500;
}
.pd-books { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.pd-books span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--panel);
    font-size: 14px;
}
.pd-books img { width: 24px; height: 24px; border-radius: 6px; }
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: step;
}
.step { padding: 22px 0 0; border-top: 1px solid var(--border-2); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12.5px; color: var(--accent-3); margin-bottom: 12px; }
.step h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.lines {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lines th { text-align: left; font-weight: 500; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.lines td { padding: 11px 20px; border-bottom: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.lines tr:last-child td { border-bottom: 0; }
.lines td b { color: var(--text); font-weight: 500; }
.lines .up { color: var(--up); }
.lines .down { color: var(--down); }
.lines-wrap { overflow-x: auto; }

/* ---------- book pages (sportsbooks/<book>.html, from _templates/book_page.html) ---------- */
.bk-hero-code { max-width: 760px; margin: 56px auto 0; }
.bk-code .code-tab { cursor: default; }
.bk-code .code-pane { min-height: 0; }

.bk-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bk-band { padding-top: 96px; }
.bk-band-inner {
    position: relative;
    padding: 56px 32px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 20px;
    background: radial-gradient(70% 120% at 50% 0%, rgba(124, 58, 237, 0.22), transparent 70%), var(--panel);
}
.bk-band-inner h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.bk-band-inner p { max-width: 620px; margin: 14px auto 28px; font-size: 16px; color: var(--muted); }

.bk-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
}
.bk-row + .bk-row { margin-top: 96px; }
.bk-row-reverse > :first-child { order: 2; }
.bk-text h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.bk-text p { margin: 16px 0 24px; font-size: 16px; color: var(--muted); }
.bk-text p.eyebrow { margin: 0 0 14px; font-size: 13px; color: var(--accent-3); } /* the line above was turning the labels grey + 16px, keep them like the homepage */
.bk-text strong { color: var(--text); font-weight: 600; }
.code-inline {
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--accent-3);
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 6px;
}

/* logo wall: 4x4, the book itself takes the top left 2x2 */
.bk-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.bk-logos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.bk-logos .bk-logo-main { grid-column: span 2; grid-row: span 2; border-radius: 22px; box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.45), 0 20px 60px -20px rgba(124, 58, 237, 0.6); }

/* ---------- homepage (index.html), static: nothing animates ---------- */
.v3-hero { min-height: calc(80svh - 64px); display: flex; align-items: center; padding: 40px 0 24px; } /* the title block sits low on the first screen, what boltodds does starts right under */
.v3-hero + .section { padding-top: 48px; }
.v3-hero > .wrap { width: 100%; }
/* glow + grid follow the title down instead of staying at the top, faded from their centre so no edge shows */
.v3-hero .hero-glow, .hero-wide .hero-glow {
    inset: auto 0; top: calc(50% - 540px); height: 1000px;
    background:
        radial-gradient(56% 48% at 50% 50%, rgba(124, 58, 237, 0.32), transparent 70%),
        radial-gradient(34% 32% at 72% 58%, rgba(168, 85, 247, 0.14), transparent 70%),
        radial-gradient(30% 28% at 28% 42%, rgba(124, 58, 237, 0.10), transparent 70%);
    transition: filter .7s ease-out;
}
.v3-hero .hero-grid, .hero-wide .hero-grid {
    inset: auto 0; top: calc(50% - 520px); height: 960px;
    mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 72%);
}
/* product pages: same glow + grid as the homepage, but centred on the title (the hero runs on into a code block, so 50% would land on the code) */
.hero-wide .hero-glow { top: -340px; }
.hero-wide .hero-grid { top: -320px; }
/* product pages: small grey logos, colour on hover, same treatment as the homepage ribbon */
/* odds feed page hero: replay of real recorded updates (odds-replay.js) next to one full line_update */
.pd-feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin-top: 56px; }
.pd-feed .code-pane { min-height: 0; font-size: 12px; padding: 22px 20px; }
.pd-replay { display: flex; flex-direction: column; }
.pd-replay .code-tabs { align-items: center; justify-content: space-between; }
.pd-replay .code-tab { display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.rp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: rp-pulse 1.6s ease-out infinite; }
@keyframes rp-pulse { to { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.rp-note { font: 11.5px var(--mono); color: var(--faint); padding-right: 8px; }
.rp-rows {
    list-style: none; margin: 0; padding: 10px 0; flex: 1; min-height: 0; overflow: hidden; position: relative;
    font: 12.5px/1 var(--mono);
    mask-image: linear-gradient(180deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.rp-row { display: grid; grid-template-columns: 92px 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.rp-time { color: var(--faint); }
.rp-book { color: var(--text); font-family: var(--sans); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rp-sel { color: var(--muted); font-family: var(--sans); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-odds { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rp-odds s { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.rp-odds b { font-weight: 500; min-width: 4ch; text-align: right; }
.rp-odds i { font-style: normal; font-size: 9px; }
.rp-up b, .rp-up i { color: var(--up); }
.rp-down b, .rp-down i { color: var(--down); }
.rp-new { animation: rp-in .45s ease-out; }
.rp-new.rp-row { background: linear-gradient(90deg, rgba(168, 85, 247, 0.10), transparent 70%); animation: rp-in .45s ease-out, rp-fade 1.6s ease-out .45s forwards; }
@keyframes rp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rp-fade { to { background-color: transparent; background-image: none; } }
/* play-by-play rows: clock | team | play | score, a basket lights the score up */
.rp-pbp { grid-template-columns: 78px 40px minmax(0, 1fr) auto; }
.rp-pbp .rp-book { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent-3); }
.rp-score { color: var(--faint); white-space: nowrap; }
.rp-scored .rp-sel { color: var(--text); }
.rp-scored .rp-score { color: var(--up); }
/* ---------- pricing page (pricing.js toggles the plan buttons with inline display, so buttons work as display:block too) ---------- */
.pr-hero { padding-bottom: 24px; }
.pr-cycle { display: inline-flex; gap: 4px; margin-top: 32px; padding: 4px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.pr-cycle .cycle-option { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.pr-cycle .cycle-option:hover { color: var(--text); }
.pr-cycle .cycle-option.active { background: var(--accent-2); color: #fff; }
.pr-save { font-size: 11.5px; font-weight: 600; color: var(--up); }
.pr-cycle .cycle-option.active .pr-save { color: #d9f99d; }
.pr-trial { display: block; width: fit-content; max-width: 100%; height: auto; margin: 28px auto 0; padding: 11px 26px; line-height: 1.3; text-align: center; white-space: normal; } /* pricing.js sets display:block on it */
.pr-trial span { display: block; font-size: 12px; font-weight: 400; opacity: .8; }
.pr-plans { padding-top: 40px; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pr-card h3 { font-size: 20px; font-weight: 600; }
.pr-desc { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.pr-price { display: flex; align-items: baseline; gap: 2px; margin-top: 24px; }
.pr-cur { font-size: 20px; font-weight: 500; color: var(--muted); align-self: flex-start; margin-top: 8px; }
.pr-price .amount { font-size: 46px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.pr-per { margin-left: 4px; font-size: 14.5px; color: var(--faint); }
.pr-note { margin-top: 8px; font-size: 13px; color: var(--faint); }
.pr-features { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.pr-features li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.pr-features li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--accent-3); border-bottom: 2px solid var(--accent-3); transform: rotate(-45deg); }
.pr-features li.pr-no { color: var(--faint); }
.pr-features li.pr-no::before { width: 12px; height: 0; top: 10px; border-left: 0; border-bottom-color: var(--faint); transform: none; }
.pr-features li.pr-plus { padding-left: 0; color: var(--text); font-weight: 500; }
.pr-features li.pr-plus::before { display: none; }
.pr-card .btn { width: 100%; height: 40px; line-height: 38px; justify-content: center; text-align: center; } /* line-height keeps the label centred when pricing.js flips a button to display:block */
.pr-desc { min-height: 3.2em; } /* one or two line descriptions, prices still line up across the cards */
.pr-card-wide .pr-desc { min-height: 0; }
.pr-card .change-pricing-plan, .pr-card .manage-pricing-plan { display: none; } /* pricing.js shows the right one for a logged in subscriber */
.pr-card .btn + .btn { margin-top: 10px; }
.pr-featured { border-color: rgba(168, 85, 247, 0.55); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.25), 0 30px 80px -30px rgba(124, 58, 237, 0.55); background: radial-gradient(80% 50% at 50% 0%, rgba(124, 58, 237, 0.16), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pr-badge { position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 600; }
.pr-card-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.pr-card-wide .btn { width: 100%; max-width: 240px; margin-top: 24px; }
.pr-card-wide .btn + .btn { margin-top: 10px; }
.pr-card-wide .pr-features { margin: 4px 0 0; }

/* ---------- forms: contact, log in, sign up ---------- */
.fm-section { padding-top: 32px; }
.fm-card { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 30px 80px -40px rgba(124, 58, 237, 0.45); }
.fm-field { display: grid; gap: 8px; }
.fm-field label { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.fm-field input, .fm-field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: 10px; background: #08080b;
    color: var(--text); font: 15px var(--sans); transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.fm-field input::placeholder, .fm-field textarea::placeholder { color: var(--faint); }
.fm-field input:focus, .fm-field textarea:focus { outline: none; border-color: rgba(168, 85, 247, 0.7); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18); }
.fm-submit { width: 100%; margin-top: 4px; }
.fm-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.fm-hint a { color: var(--muted); text-underline-offset: 3px; text-decoration-color: var(--faint); }
.fm-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.fm-ways { display: grid; gap: 12px; }
.fm-way { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.fm-way:hover { border-color: rgba(168, 85, 247, 0.5); transform: translateY(-2px); }
.fm-way .icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border-2); border-radius: 10px; }
.fm-way .icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fm-way b { display: block; font-size: 15px; font-weight: 600; }
.fm-way small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.nf-links { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 900px; margin: 0 auto; padding-bottom: 88px; } /* 404 page link grid */
.fm-auth { padding: 64px 0 96px; }
.fm-auth-card { max-width: 420px; margin: 0 auto; }
.fm-logo { display: block; margin: 0 auto; border-radius: 10px; }
.fm-auth-card h1 { margin: 0; text-align: center; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.fm-sub { margin: -10px 0 4px; text-align: center; font-size: 14.5px; color: var(--muted); }
.fm-switch { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.fm-switch a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--accent-3); }
/* account page: email + plan rows inside the auth card */
.ac-details { margin: 4px 0 0; border-top: 1px solid var(--border); }
.ac-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ac-details dt { font-size: 14px; color: var(--muted); }
.ac-details dd { margin: 0; min-width: 0; font-size: 14.5px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; text-align: right; }
.fm-submit + .fm-submit { margin-top: -6px; }

/* ---------- docs (docs.html keeps its content markup: docs-sidebar / docs-nav, docs-content, code-block, get-request, table-wrap / error-table, info-box) ---------- */
.docs-container { max-width: 1180px; margin: 0 auto; padding: 40px 24px 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-sidebar { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.docs-nav h3 { margin: 22px 0 8px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0; }
.docs-nav h3:first-child { margin-top: 0; }
.docs-nav .nav-subheader { margin: 14px 0 6px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.docs-nav li a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 1px solid transparent; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.docs-nav li a:hover { color: var(--text); }
.docs-nav li a.active { color: var(--accent-3); border-left-color: var(--accent); }

.docs-content { min-width: 0; padding-bottom: 40px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.docs-title { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; color: var(--text); }
.docs-lede { margin: 16px 0 0; font-size: 17px; color: var(--muted); max-width: 720px; }
.docs-content section { padding-top: 56px; scroll-margin-top: 16px; } /* the 56px padding clears the fixed nav, and the section top lands above docs' "current section" line (100px) so the sidebar highlight is right */
.docs-content h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); }
.docs-content h3 { margin: 36px 0 12px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.docs-content h4 { margin: 28px 0 10px; font-size: 16px; font-weight: 600; color: var(--text); }
.docs-content h5 { margin: 22px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.docs-content p { margin: 12px 0; }
.docs-content ul, .docs-content ol { margin: 12px 0; padding-left: 22px; }
.docs-content li { margin: 6px 0; }
.docs-content li::marker { color: var(--faint); }
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content a { color: var(--accent-3); text-underline-offset: 3px; }
.docs-content .code-inline { font-size: 0.86em; white-space: nowrap; }
/* code windows: same look as the code panes on the product pages */
/* every <pre> is its own scrolling code window (some samples sit outside a .code-block wrapper, unboxed they stretched the page on phones) */
.docs-content pre { margin: 16px 0; padding: 18px 20px; max-width: 100%; overflow-x: auto; border: 1px solid var(--border-2); border-radius: 12px; background: #08080b; }
.docs-content .code-block { margin: 16px 0; }
.docs-content .code-block pre { margin: 0; }
.docs-content pre, .docs-content pre code { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #d6d6de; tab-size: 4; }
.docs-content pre code { background: none; padding: 0; white-space: pre; }
.docs-content .get-request { margin: 16px 0 8px; padding: 12px 16px; border: 1px solid var(--border-2); border-left: 2px solid var(--accent); border-radius: 10px; background: rgba(168, 85, 247, 0.06); font: 500 13px var(--mono); color: var(--text); overflow-x: auto; white-space: nowrap; }
.docs-content .table-wrap { margin: 16px 0; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.docs-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.docs-content th { padding: 11px 16px; text-align: left; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.docs-content td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs-content tr:last-child td { border-bottom: 0; }
.docs-content .info-box { margin: 18px 0; padding: 14px 18px; border: 1px solid rgba(168, 85, 247, 0.35); border-radius: 12px; background: rgba(168, 85, 247, 0.07); }
.docs-content .info-box.warning { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.06); }
.docs-content .info-box h4 { margin: 0 0 4px; }
.docs-content .info-box p { margin: 4px 0 0; }

/* historical odds page: line history chart (line-history.js) above the key moves table */
.pd-replay-tabs { align-items: center; justify-content: space-between; }
.lh-win { max-width: 860px; }
.lc-chart { position: relative; height: 280px; border-bottom: 1px solid var(--border); }
.lc-chart svg { display: block; }
.lc-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.lc-axis { fill: var(--faint); font: 11px var(--mono); }
.lc-tip { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; stroke-dasharray: 3 4; }
.lc-line { fill: none; stroke: var(--accent-3); stroke-width: 2; stroke-linejoin: round; }
.lc-dot { fill: var(--accent-3); stroke: #08080b; stroke-width: 2; }
.lc-label { fill: var(--text); font: 500 12px var(--sans); }
.lc-cross { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.lc-tooltip { position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; font: 12px var(--mono); color: var(--muted); white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.lc-tooltip b { color: var(--text); font-weight: 500; margin-right: 8px; }
.pd-feed-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.pd-coverage { align-self: center; }
.pd-coverage .link-arrow { margin-top: 22px; }
.pd-logos { display: grid; grid-template-columns: repeat(6, 56px); gap: 14px; }
.pd-logos a { display: block; }
.pd-logos-4 { grid-template-columns: repeat(4, 44px); gap: 12px; } /* sgp page: supported books, rows of 4, smaller */
.pd-logos.pd-logos-4 img { width: 44px; height: 44px; border-radius: 11px; }
.pd-sgp-books { margin-bottom: 72px; grid-template-columns: auto minmax(0, 1fr); gap: 64px; align-items: center; }
.pd-sgp-books .bk-text { max-width: 560px; }
.pd-logos img { display: block; width: 56px; height: 56px; border-radius: 13px; object-fit: cover; filter: grayscale(1) contrast(.9); opacity: .6; transition: filter .3s, opacity .3s, transform .25s; }
.pd-logos a:hover img, .pd-logos a:focus-visible img { filter: none; opacity: 1; transform: translateY(-2px); }
/* lightning: the inline script at the bottom of index.html draws a fresh bolt into this svg on every strike */
.v3-bolts {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: visible;
    mask-image: linear-gradient(180deg, transparent 40px, #000 150px); /* bolt fades in under the nav instead of crossing it */
    -webkit-mask-image: linear-gradient(180deg, transparent 40px, #000 150px);
}
.v3-bolts path { fill: none; stroke: #f3e8ff; stroke-linecap: round; stroke-linejoin: round; }
.v3-bolt { opacity: 0; filter: drop-shadow(0 0 4px #c084fc) drop-shadow(0 0 16px rgba(168, 85, 247, 0.9)); animation: v3-strike .8s ease-out forwards; }
@keyframes v3-strike { 0% { opacity: 0; } 5% { opacity: 1; } 13% { opacity: .2; } 22% { opacity: .95; } 55% { opacity: .45; } 100% { opacity: 0; } }
.v3-flash .hero-glow { filter: brightness(1.9) saturate(1.25); transition-duration: .06s; }
@media (prefers-reduced-motion: reduce) { .v3-bolts { display: none; } }
.v3-underline { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-3); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.v3-stats {
    margin: 56px auto 0;
    max-width: 960px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(14, 14, 19, 0.6);
    text-align: left;
}
.v3-stats > div { padding: 22px 24px; }
.v3-stats > div + div { border-left: 1px solid var(--border); }
.v3-stats dt {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 30%, var(--accent-3) 140%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.v3-stats dd { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.v3-ribbon { padding: 56px 0 0; }
.v3-ribbon .marquee-track a { flex: none; display: block; }
.v3-ribbon .marquee-track img { filter: grayscale(1) contrast(.9); opacity: .6; transition: filter .3s, opacity .3s, transform .25s; }
.v3-ribbon .marquee-track a:hover img, .v3-ribbon .marquee-track a:focus-visible img { filter: none; opacity: 1; }
.v3-quotes { padding: 72px 0 0; }
.v3-quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.v3-quote { margin: 0; padding: 28px 0 0; border-top: 1px solid var(--border); position: relative; }
.v3-quote::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
.v3-quote blockquote { margin: 0; }
.v3-quote p { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.v3-quote p::before { content: "\201C"; }
.v3-quote p::after { content: "\201D"; }
.v3-quote figcaption { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

.v3-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v3-product {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.v3-product:hover { border-color: rgba(168, 85, 247, 0.5); transform: translateY(-2px); }
.v3-product h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.v3-product > p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.v3-product .checks { margin: 20px 0 24px; gap: 9px; }
.v3-product .checks li { font-size: 14px; }
.v3-product .link-arrow { margin-top: auto; font-size: 14.5px; }
.v3-product:hover .link-arrow svg { transform: translateX(3px); }

.v3-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v3-why-card h3 { font-size: 18px; }
.v3-why-card p:not(.v3-why-stat) { font-size: 15px; }
.card .v3-why-stat {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #fff 20%, var(--accent-3) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.v3-why-speed { border-color: rgba(168, 85, 247, 0.35); background: radial-gradient(80% 90% at 0% 0%, rgba(124, 58, 237, 0.18), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }

.v3-compare-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.v3-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.v3-compare caption { text-align: left; padding: 18px 22px 0; font-size: 13px; color: var(--faint); caption-side: top; }
.v3-compare th, .v3-compare td { text-align: left; padding: 14px 22px; border-bottom: 1px solid var(--border); vertical-align: top; }
.v3-compare thead th { font-size: 13px; font-weight: 500; color: var(--faint); }
.v3-compare thead th.v3-us { color: var(--accent-3); }
.v3-compare tbody th { font-weight: 500; color: var(--text); width: 32%; }
.v3-compare td { color: var(--faint); }
.v3-compare td.v3-us { color: var(--text); background: rgba(168, 85, 247, 0.06); }
.v3-compare tbody tr:last-child th, .v3-compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .v3-products, .v3-why { grid-template-columns: 1fr; }
    .v3-quotes-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-feed { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
    .pr-grid, .pr-grid-2 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
    .pr-card-wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .fm-contact { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
    /* docs: sidebar becomes an "on this page" link grid above the content */
    .docs-container { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
    .docs-sidebar { position: static; max-height: none; overflow: visible; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
    .docs-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
    .docs-nav li a { margin-left: 0; padding: 5px 0; border-left: 0; }
    .pd-replay { height: 440px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-tall { grid-row: auto; }
    .card-wide { grid-column: span 2; }
    .code-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
    .sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sport-wide { grid-row: auto; }
    .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .bk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; row-gap: 28px; }
    .bk-row { grid-template-columns: 1fr; gap: 32px; }
    .bk-row-reverse > :first-child { order: 0; }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px 16px 20px;
        background: rgba(5, 5, 7, 0.97);
        border-bottom: 1px solid var(--border);
    }
    .nav.open .nav-links { display: flex; }
    .nav.open { background: rgba(5, 5, 7, 0.97); }
    .nav-links a { font-size: 16px; padding: 12px 8px; }
    .nav-links { max-height: calc(100vh - 64px); overflow-y: auto; background: var(--bg); }
    .nav-drop-btn { width: 100%; justify-content: space-between; font-size: 16px; padding: 12px 8px; }
    .nav-drop-menu { position: static; width: auto; padding: 0 0 6px; background: none; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
    .nav-drop-menu::before { display: none; }
    .nav-drop.open .nav-drop-menu { display: block; }
    .nav-links .nav-drop-item { padding: 10px 8px; }
    .nav-toggle { display: block; }
    .nav-actions .btn-ghost { display: none; }
    .nav-inner { justify-content: space-between; }
    .br-desktop { display: none; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hero { padding-top: 48px; }
    .v3-hero { min-height: 70svh; padding-bottom: 16px; }
    .section { padding-top: 88px; }
    .section-tight { padding-top: 72px; }
    .bento { grid-template-columns: 1fr; }
    .card-wide { grid-column: auto; }
    .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sports { grid-template-columns: 1fr; }
    .sport-wide { grid-column: auto; }
    .uses { grid-template-columns: 1fr; }
    .bk-benefits { grid-template-columns: 1fr; }
    .v3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
    .v3-stats > div { padding: 18px; }
    .v3-stats > div:nth-child(3) { border-left: 0; }
    .v3-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .v3-ribbon { padding-top: 40px; }
    .v3-quotes { padding-top: 48px; }
    .pd-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
    .pd-replay { height: 380px; }
    .rp-row { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; padding: 9px 14px; }
    .rp-pbp { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .rp-note { display: none; } /* no room next to the tab on phones, the line under the panels says the same */
    .rp-time { display: none; }
    .pd-logos img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 11px; }
    .pd-logos-4 { grid-template-columns: repeat(4, 44px); }
    .pr-cycle .cycle-option { padding: 8px 12px; font-size: 13px; gap: 6px; }
    .pr-save { font-size: 10.5px; }
    .pr-card { padding: 26px 20px 22px; }
    .fm-card { padding: 24px 20px; }
    .fm-auth { padding: 40px 0 64px; }
    .pd-logos-4 img { width: 44px; height: 44px; }
    /* phones: one swipeable row, the next quote peeks in from the right so it reads as swipeable */
    .v3-quotes-grid { display: flex; gap: 20px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .v3-quotes-grid::-webkit-scrollbar { display: none; }
    .v3-quote { flex: 0 0 82%; scroll-snap-align: start; }
    .v3-product { padding: 22px; }
    .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bk-card { padding: 10px; gap: 10px; font-size: 14px; }
    .bk-card img { width: 32px; height: 32px; border-radius: 8px; }
    .bk-group { padding-top: 56px; }
    .bk-band { padding-top: 72px; }
    .bk-band-inner { padding: 40px 20px; }
    .bk-hero-code { margin-top: 40px; }
    .code-pane { font-size: 12px; padding: 18px; min-height: 0; }
    .cta { padding: 88px 0; margin-top: 100px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .footer .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* compare pages (compare/*.html): bolt vs a competitor, side by side replay of a recorded speed test (compare-replay.js) */
.cmp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.cmp-stat { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cmp-stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.cmp-stat span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.cmp-race { margin-top: 40px; }
.cmp-score { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 12px 18px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); font-size: 14px; color: var(--muted); }
.cmp-score b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.cmp-score .rp-note { padding: 0; }
.cmp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp-panel { display: flex; flex-direction: column; }
.cmp-panel .code-tabs { justify-content: space-between; align-items: center; }
.cmp-panel .code-tab { display: inline-flex; align-items: center; gap: 8px; cursor: default; }
.cmp-panel-bolt { border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 20px 60px rgba(124, 58, 237, 0.12); }
.cmp-rows { list-style: none; margin: 0; padding: 6px 0; height: 486px; overflow: hidden; mask-image: linear-gradient(180deg, #000 78%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); }
.cmp-row { padding: 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.cmp-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cmp-sel { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-odds { font: 500 14px var(--mono); color: var(--text); }
.cmp-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; font: 11.5px var(--mono); color: var(--faint); white-space: nowrap; }
.cmp-meta { overflow: hidden; text-overflow: ellipsis; }
.cmp-time::before { content: ' · '; }
.cmp-badge { flex: none; padding: 2px 7px; border-radius: 999px; font: 500 11px var(--mono); }
.cmp-wait { color: var(--faint); border: 1px dashed var(--border-2); }
.cmp-win { color: var(--up); background: rgba(34, 197, 94, 0.12); }
.cmp-lose { color: var(--down); background: rgba(240, 68, 82, 0.10); }
.cmp-note { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cmp-table th { font-size: 12.5px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.cmp-table td { color: var(--muted); }
.cmp-table td:first-child, .cmp-table td b { color: var(--text); font-weight: 500; }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--faint); }
.cmp-disclaimer { margin-top: 28px; font-size: 12.5px; color: var(--faint); }
@media (max-width: 820px) {
    .cmp-stats { grid-template-columns: 1fr 1fr; }
    }
@media (max-width: 640px) {
    .cmp-panels { gap: 8px; }
    .cmp-row { padding: 9px 10px; }
    .cmp-top { font-size: 12.5px; gap: 6px; }
    .cmp-odds { font-size: 12.5px; }
    .cmp-sub { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10.5px; }
    .cmp-meta > span { display: block; }
    .cmp-time::before { content: none; }
    .cmp-rows { height: 520px; }
    .cmp-stat b { font-size: 24px; }
}

/* legal pages (terms.html, privacy.html): sticky contents on the left, readable prose on the right */
.lg-section { padding: 24px 0 96px; }
.lg-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 64px; justify-content: center; align-items: start; }
.lg-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.lg-toc p { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.lg-toc a { padding: 5px 0; color: var(--muted); text-decoration: none; }
.lg-toc a:hover { color: var(--text); }
.lg-body { font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.lg-intro { margin: 0 0 8px; font-size: 17px; color: var(--text); }
.lg-body section { padding-top: 36px; scroll-margin-top: 80px; }
.lg-body h2 { margin: 0 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.lg-body p { margin: 10px 0; }
.lg-body ul { margin: 10px 0; padding-left: 22px; }
.lg-body li { margin: 6px 0; }
.lg-body li::marker { color: var(--faint); }
.lg-body b { color: var(--text); font-weight: 500; }
.lg-body a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--faint); }
@media (max-width: 900px) {
    .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .lg-toc { display: none; }
}
