/* ============================================================================
   BlitzSports — Zwift-inspired redesign (greenfield, 2026)
   Shared design system for index / about / faq / terms / privacy

   Reference: zwift.com — a saturated brand-color canvas, a huge heavy
   uppercase grotesque, fully-rounded pill buttons, big rounded cards with a
   colour image-panel on top, soft shadows, generous air, and a friendly,
   energetic tone. Brand colour: BLITZ red (Zwift's orange, swapped).

   Theming: light is the default; dark is a toggle. The red hero/CTA canvas
   stays red in BOTH themes — it's the brand surface.
   ========================================================================= */

:root, [data-theme="light"]
{
    color-scheme: light;

    --bg:        #FFFFFF;
    --bg-2:      #F5F5F2;
    --surface:   #FFFFFF;
    --border:    #ECECEC;

    --ink:       #1A1A1A;
    --ink-2:     #565C63;
    --muted:     #8A9099;

    --red:       #C1333B;
    --red-2:     #A02932;
    --red-soft:  #F6E9EA;
    --red-ink:   #FFFFFF;
    --red-brick: #A82C34;
    --red-blitz: #E31F2D;
    --hero-grad: linear-gradient(135deg, var(--red-brick) 0%, #C1333B 45%, var(--red-blitz) 100%);

    --header-bg: rgba(255,255,255,.86);
    --shadow:    0 18px 44px -22px rgba(20,20,25,.30);
    --shadow-sm: 0 8px 22px -14px rgba(20,20,25,.30);
    --logo-filter: none;
    --logo-opacity: .85;

    --display: "Archivo", system-ui, sans-serif;
    --body:    "Mulish", system-ui, sans-serif;

    --pad:   clamp(1.25rem, 5vw, 2.5rem);
    --maxw:  1200px;
    --rcard: 24px;
}

/* Footer chrome — fixed neutral; does not follow the light/dark theme toggle */
:root, [data-theme="light"], [data-theme="dark"]
{
    --foot-bg:     #1A1A1A;
    --foot-ink:    #FFFFFF;
    --foot-muted:  rgba(255,255,255,.55);
    --foot-faint:  rgba(255,255,255,.50);
    --foot-border: rgba(255,255,255,.14);
    --foot-social: rgba(255,255,255,.10);
}

[data-theme="dark"]
{
    color-scheme: dark;

    --bg:        #121316;
    --bg-2:      #0E0F11;
    --surface:   #1B1D21;
    --border:    #2A2D33;

    --ink:       #FFFFFF;
    --ink-2:     #B9BEC6;
    --muted:     #868C95;

    --red:       #CE434B;
    --red-2:     #DB555D;
    --red-soft:  #2A1618;
    --red-ink:   #FFFFFF;
    --red-brick: #9E2C34;
    --red-blitz: #E23A46;
    --hero-grad: linear-gradient(135deg, var(--red-brick) 0%, #C1333B 45%, var(--red-blitz) 100%);

    --header-bg: rgba(18,19,22,.82);
    --shadow:    0 22px 50px -24px rgba(0,0,0,.7);
    --shadow-sm: 0 10px 26px -16px rgba(0,0,0,.7);
    --logo-filter: brightness(0) invert(1);
    --logo-opacity: .85;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body
{
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ----------------------------------------------------------------- type */
h1, h2, h3
{
    font-family: var(--display);
    color: var(--ink);
    margin: 0;
    text-transform: uppercase;
    font-weight: 900;
    line-height: .95;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.9rem, 7.5vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1; }

p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 700; }

.eyebrow
{
    font-family: var(--display); font-weight: 800; font-size: .8rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--red);
    margin: 0 0 1.1rem; display: inline-block;
}
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }

/* ----------------------------------------------------------------- buttons (pills) */
.btn
{
    display: inline-flex; align-items: center; gap: .55ch;
    font-family: var(--display); font-weight: 800; font-size: .92rem;
    letter-spacing: .01em; text-transform: uppercase;
    padding: .95rem 1.75rem; border-radius: 999px; border: 2px solid transparent;
    transition: transform .14s ease, box-shadow .2s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { background: var(--red); color: var(--red-ink); }
.btn--red:hover { background: var(--red-2); box-shadow: 0 12px 26px -10px rgba(235,28,45,.55); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { box-shadow: var(--shadow-sm); }
.btn--light { background: #fff; color: #1A1A1A; }
.btn--light:hover { box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.btn--ghost { border-color: currentColor; }
.btn--ghost.on-red { color: #fff; }
.btn--ghost.on-red:hover { background: #fff; color: var(--red); border-color: #fff; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* uppercase accent text-link (Zwift "JOIN ZWIFT →") */
.tlink { font-family: var(--display); font-weight: 800; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: .5ch; }
.tlink .arr { transition: transform .2s ease; }
.tlink:hover .arr { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--border); transform: translateZ(0); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6ch; font-family: var(--display); font-weight: 900; font-size: 1.65rem; color: var(--ink); text-transform: uppercase; letter-spacing: -.01em; }
.brand .spark { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex: none; display: block; }
.brand .spark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand b { color: var(--red); text-transform: none; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a,
.nav-dropdown-toggle {
    font-family: var(--display); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .01em;
    color: var(--ink); opacity: .82; transition: opacity .15s ease, color .15s ease;
}
.nav-links > li > a:hover, .nav-links > li > a[aria-current="page"],
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { opacity: 1; color: var(--red); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: .35ch; background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-dropdown-toggle::after {
    content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-.12em); transition: transform .15s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown.open .nav-dropdown-toggle::after { transform: rotate(225deg) translateY(.08em); }

.nav-dropdown-menu {
    /* Flush to trigger so hover path is continuous; padding-top is the visual gap */
    position: absolute; top: 100%; left: 0; min-width: 12.5rem; margin: 0; padding: .55rem 0 .45rem; list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .12s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.nav-dropdown-menu a {
    display: block; padding: .62rem 1.1rem; font-family: var(--display); font-weight: 700; font-size: .82rem;
    text-transform: uppercase; letter-spacing: .02em; color: var(--ink); opacity: .88; white-space: nowrap;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a[aria-current="page"] { color: var(--red); opacity: 1; background: var(--red-soft); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-cta .btn { padding: .7rem 1.4rem; }

.theme-toggle { width: 42px; height: 42px; flex: none; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.theme-toggle:hover { transform: translateY(-1px); background: var(--red-soft); color: var(--red); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

.nav-toggle { display: none; position: relative; z-index: 70; background: none; border: 0; padding: .4rem; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .ico-close { display: none; }
.site-header.drawer-open .nav-toggle .ico-menu { display: none; }
.site-header.drawer-open .nav-toggle .ico-close { display: block; }

/* ----------------------------------------------------------------- hero (red canvas) */
.hero { background: var(--hero-grad); color: #fff; position: relative; overflow: hidden; padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 85% 10%, rgba(255,255,255,.14), transparent 55%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero-sub { color: rgba(255,255,255,.92); font-size: clamp(1.1rem, 1.5vw, 1.32rem); max-width: 46ch; margin-bottom: 2.2rem; }
.hero .lead { color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
/* App Store / Google Play badges (ImgLink): render larger than their 140x44
   source and at their true aspect ratio so the download CTAs stand out. */
.hero-actions a img { height: 56px; width: auto; }
.hero-trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--display); font-weight: 900; font-size: 1.8rem; line-height: 1; color: #fff; }
.hero-trust .ht span { font-size: .82rem; color: rgba(255,255,255,.8); margin-top: .25rem; }
.hero-note { margin-top: 1rem; color: rgba(255,255,255,.9); font-size: .96rem; }
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.hero-note a:hover { text-decoration-thickness: 2px; }

/* hero media card (rounded, immersive, with play) */
.hero-card { position: relative; z-index: 1; border-radius: var(--rcard); overflow: hidden; background: rgba(0,0,0,.16); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); aspect-ratio: 4 / 3.1; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
/* Lead-page hero photo is a tall portrait; the default 4/3.1 landscape frame
   cropped either the head or the phone. Use a square frame anchored to the top
   so both the subject's head and the phone (app) stay in view. */
.page-lead .hero-card { aspect-ratio: 1 / 1; }
.page-lead .hero-card img { object-position: center top; }
.hero-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-card .play span { width: 84px; height: 84px; border-radius: 999px; background: #fff; color: var(--red); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .18s ease; }
.hero-card .play:hover span { transform: scale(1.06); }
.hero-card .play svg { width: 30px; height: 30px; margin-left: 4px; }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.card { background: var(--surface); border-radius: var(--rcard); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--border); transition: transform .18s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(20,20,25,.4); }
.card .media { background: var(--red); aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
/* contain variant: absolutely fill the padded box so the whole product/logo
   shows without being clipped by the fixed 16/11 media height. */
.card .media.contain img { position: absolute; inset: 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.8rem); object-fit: contain; padding: 0; }
/* About page founder headshots are square (900x900): give them a square frame
   and let them cover it so faces fill the card cleanly (no red letterboxing). */
.page-about .card .media.contain { aspect-ratio: 1 / 1; }
.page-about .card .media.contain img { position: static; inset: auto; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.card .media .tag { position: absolute; top: 1rem; left: 1rem; background: #fff; color: var(--red); font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; }
.card .body { padding: 1.7rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card .body h3 { margin-bottom: .8rem; }
.card .body p { color: var(--ink-2); font-size: .98rem; }
.card .body ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.card .body li { display: flex; gap: .7ch; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.card .body li::before { content: ""; flex: none; width: 1.1em; height: 1.1em; margin-top: .2em; border-radius: 999px; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1333B' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/.7em no-repeat; }
.card .body .tlink { margin-top: auto; padding-top: 1.4rem; }
.card--featured { border-color: var(--red); box-shadow: 0 30px 60px -26px rgba(193,51,59,.45); }
.card-flag { display: block; background: var(--red); color: #fff; text-align: center; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem; }

/* numbered step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rcard); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.step .n { width: 52px; height: 52px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.4rem; display: grid; place-items: center; margin-bottom: 1.3rem; }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ----------------------------------------------------------------- stats band (red) */
.statband { background: var(--red); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1; display: block; }
.stat span { display: block; margin-top: .6rem; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 600; }
.statband .section-head h2 { color: #fff; }

/* ----------------------------------------------------------------- boards / compat */
.boards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.board-pills { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.6rem; }
.board-pill { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1rem 1.5rem; box-shadow: var(--shadow-sm); }
.board-pill .bn { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.board-pill .bs { font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .4rem .9rem; border-radius: 999px; }
.bs.live { background: var(--red); color: #fff; }
.bs.soon { background: var(--bg-2); color: var(--muted); }
.boards-art { border-radius: var(--rcard); overflow: hidden; background: var(--red); aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow); }
.boards-art img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rcard); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote .stars { color: #EAB308; font-size: 1rem; letter-spacing: .1em; margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1.06rem; color: var(--ink); line-height: 1.5; font-weight: 500; }
.quote .who { margin-top: auto; font-size: .88rem; color: var(--muted); }
.quote .who b { display: block; color: var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1rem; margin-bottom: .15rem; }

/* press */
.press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: 2.4rem; }
.press .label { font-family: var(--display); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.press img { height: 48px; width: auto; opacity: var(--logo-opacity); filter: var(--logo-filter); transition: opacity .2s ease; }
.press img:hover { opacity: 1; }
/* Press logos are white-on-transparent (built for dark backgrounds). In light
   mode --logo-filter is none, so darken them to stay legible on the light page. */
[data-theme="light"] .press img { filter: brightness(0); opacity: .6; }
[data-theme="light"] .press img:hover { opacity: .85; }
/* Venue logo wall: a few venue marks are solid white and vanish on the light
   page. Tagging them .logo-mono darkens them to a legible monochrome in light
   mode; dark mode leaves them white as authored. */
[data-theme="light"] .venue-logos img.logo-mono { filter: brightness(0); opacity: .72; }
.sports-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.sport-tag { font-family: var(--display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; padding: .55rem 1.1rem; border-radius: 999px; background: var(--bg-2); color: var(--ink); }

/* ----------------------------------------------------------------- CTA band (red) */
.cta-band { background: var(--red); color: #fff; }
.cta-inner { text-align: center; max-width: 40ch; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-brand .brand { color: var(--foot-ink); }
.foot-brand p { color: var(--foot-muted); font-size: .93rem; max-width: 34ch; margin-top: 1rem; }
.foot-col h4 { font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--foot-faint); margin-bottom: 1.1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.foot-col a { color: var(--foot-ink); font-size: .92rem; opacity: .82; transition: opacity .15s ease, color .15s ease; }
.foot-col a:hover { color: var(--red); opacity: 1; }
.socials { display: flex; gap: .7rem; margin-top: 1.3rem; }
.socials a { width: 40px; height: 40px; border-radius: 999px; background: var(--foot-social); display: grid; place-items: center; color: var(--foot-ink); transition: background .15s ease, transform .15s ease; }
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--foot-border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--foot-faint); }

/* ----------------------------------------------------------------- doc pages */
.doc-hero { background: var(--hero-grad); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.doc-hero .eyebrow { color: #fff; opacity: .85; }
.doc-hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .9rem; }
.doc-hero .lead { color: rgba(255,255,255,.92); }
.doc-meta { color: rgba(255,255,255,.85); font-size: .9rem; }

.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.doc-toc { position: sticky; top: 100px; }
.doc-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: .55rem; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { color: var(--muted); display: flex; gap: .8ch; font-family: var(--display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; transition: color .15s ease; }
.doc-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--red); }
.doc-toc a:hover { color: var(--ink); }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .7rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid .media-card { border-radius: var(--rcard); overflow: hidden; box-shadow: var(--shadow); background: var(--red); }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.founder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rcard); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.founder .avatar { width: 52px; height: 52px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.2rem; margin-bottom: 1rem; }
.founder b { display: block; color: var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.founder span { font-size: .85rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 1.4rem; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rcard); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.timeline .yr { width: 48px; height: 48px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-family: var(--display); font-weight: 900; font-size: 1.1rem; display: grid; place-items: center; }
.timeline h3 { margin-bottom: .3rem; font-size: 1.3rem; }
.timeline p { color: var(--ink-2); margin: 0; font-size: .96rem; }

/* faq */
.faq-cat { font-family: var(--display); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin: 2.6rem 0 1rem; }
.faq-cat:first-child { margin-top: 0; }
.faq { border: 1px solid var(--border); border-radius: 18px; margin-bottom: .8rem; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--ink); font-size: 1.1rem; letter-spacing: .005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--red-soft); position: relative; transition: background .2s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.faq summary .pm::before { width: 11px; height: 2.5px; }
.faq summary .pm::after { width: 2.5px; height: 11px; transition: transform .2s ease; }
.faq[open] summary .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq .faq-body { padding: 0 1.5rem 1.4rem; color: var(--ink-2); }
.faq .faq-body p { margin: 0; }

/* ----------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 960px)
{
    .hero-grid { grid-template-columns: 1fr; }
    .hero-card { order: -1; max-width: 520px; }
    .cards, .steps, .quotes { grid-template-columns: 1fr; }
    .boards-grid, .about-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
    .doc-layout { grid-template-columns: 1fr; }
    .doc-toc { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (min-width: 620px) and (max-width: 960px)
{
    .cards, .steps, .quotes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px)
{
    .nav-links, .nav-cta .btn { display: none; }
    .nav-toggle { display: block; }
    /* Contain the closed drawer's off-canvas box (translateX(100%)) so it can't
       widen the page. The header's translateZ(0) makes it the drawer's
       containing block, so clipping its X-overflow clips the parked panel. Drop
       the clip while open — clip also clips hit-testing, which would otherwise
       swallow the drawer's link clicks. */
    .site-header:not(.drawer-open) { overflow-x: clip; }
    .founders { grid-template-columns: 1fr; }
    .timeline li { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 460px)
{
    .stats { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
}

/* mobile drawer — slides in from the right */
.nav-drawer {
    position: fixed; top: 0; right: 0; z-index: 60;
    display: flex; flex-direction: column;
    width: min(320px, 84vw); height: 100dvh;
    padding: calc(74px + 1.1rem) var(--pad) 1.6rem;
    background: var(--bg); border-left: 1px solid var(--border);
    box-shadow: -14px 0 44px rgba(0, 0, 0, .18);
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
    overflow-y: auto;
}
.site-header.drawer-open .nav-drawer { transform: translateX(0); visibility: visible; }
/* The drawer is mobile-only; above the toggle breakpoint it's unreachable, so
   remove it entirely — otherwise its off-canvas box widens the page and the
   header clip that would contain it (mobile) also breaks the desktop dropdown. */
@media (min-width: 721px) { .nav-drawer { display: none; } }
.nav-drawer-label {
    margin: 0; padding: .2rem 0 .35rem; font-family: var(--display); font-weight: 800; font-size: .72rem;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.nav-drawer-group { margin-bottom: .4rem; }
.nav-drawer a:not(.btn) { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; text-transform: uppercase; color: var(--ink); padding: .8rem 0; border-bottom: 1px solid var(--border); }
.nav-drawer-group a { padding-left: .75rem; font-size: .92rem; opacity: .92; }
.nav-drawer .btn { display: flex; justify-content: center; width: 100%; margin-top: 1.2rem; }

/* ----------------------------------------------------------------- dashboard */
.dash { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; background: var(--bg-2); }

.dash-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 1.3rem 1rem 1.1rem; z-index: 40; }
.dash-side .brand { padding: .2rem .6rem; margin-bottom: 1.7rem; }
.side-group { margin-bottom: 1.5rem; }
.side-group .lbl { font-family: var(--display); font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 .7rem; margin-bottom: .55rem; }
.side-nav { display: flex; flex-direction: column; gap: .15rem; }
.side-nav a { display: flex; align-items: center; gap: .8rem; padding: .66rem .7rem; border-radius: 12px; font-family: var(--display); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .01em; color: var(--ink-2); transition: background .14s ease, color .14s ease; }
.side-nav a svg { width: 19px; height: 19px; flex: none; opacity: .75; }
.side-nav a:hover { background: var(--bg-2); color: var(--ink); }
.side-nav a.active { background: var(--red); color: #fff; }
.side-nav a.active svg { opacity: 1; }
.side-badge { margin-left: auto; font-family: var(--body); font-weight: 800; font-size: .72rem; background: var(--red-soft); color: var(--red); padding: .1rem .55rem; border-radius: 999px; }
.side-nav a.active .side-badge { background: rgba(255,255,255,.24); color: #fff; }

.dash-side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .9rem; }
.side-user { display: flex; align-items: center; gap: .7rem; }
.side-user .avatar { width: 38px; height: 38px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .88rem; flex: none; }
.side-user .who b { display: block; color: var(--ink); font-size: .9rem; font-weight: 700; }
.side-user .who span { font-size: .76rem; color: var(--muted); }
.side-foot-row { display: flex; align-items: center; justify-content: space-between; }

.dash-main { padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1.2rem, 3vw, 2.4rem) 3rem; min-width: 0; }
.dash-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.dash-top h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.dash-top .sub { color: var(--muted); font-size: .92rem; margin-top: .35rem; text-transform: none; }
.dash-top-actions { display: flex; align-items: center; gap: .7rem; }
.dash-search { display: flex; align-items: center; gap: .6ch; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1.1rem; color: var(--muted); }
.dash-search input { border: 0; background: transparent; outline: none; font: inherit; color: var(--ink); width: 150px; }
.dash-search svg { width: 16px; height: 16px; }
.dash-menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--ink); place-items: center; }
.dash-menu-btn svg { width: 22px; height: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.3rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.kpi .krow { display: flex; align-items: center; justify-content: space-between; margin-bottom: .95rem; }
.kpi .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.kpi .ico svg { width: 21px; height: 21px; }
.kpi .delta { font-family: var(--display); font-weight: 800; font-size: .72rem; padding: .22rem .55rem; border-radius: 999px; }
.kpi .delta.up { background: rgba(46,158,99,.14); color: #2E9E63; }
.kpi .delta.flat { background: var(--bg-2); color: var(--muted); }
[data-theme="dark"] .kpi .delta.up { color: #46C586; background: rgba(70,197,134,.16); }
.kpi b { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 2.4vw, 2.3rem); color: var(--ink); display: block; line-height: 1; }
.kpi .lab { display: block; margin-top: .45rem; color: var(--muted); font-size: .84rem; }

.dash-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.1rem; margin-bottom: 1.3rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.15rem; }
.panel-head .tlink { font-size: .76rem; }

.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: left; font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: .75rem 1.4rem; border-bottom: 1px solid var(--border); }
.dtable td { padding: .85rem 1.4rem; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--ink-2); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background .12s ease; }
.dtable tbody tr:hover { background: var(--bg-2); }
.dtable .g { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }
.dtable .score { font-family: var(--display); font-weight: 900; color: var(--ink); font-size: 1rem; }
.dtable td.num { font-variant-numeric: tabular-nums; }

.badge { font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; padding: .32rem .6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .45ch; }
.badge.live { background: var(--red); color: #fff; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #fff; }
.badge.ok { background: rgba(46,158,99,.14); color: #2E9E63; }
.badge.off { background: var(--bg-2); color: var(--muted); }
[data-theme="dark"] .badge.ok { background: rgba(70,197,134,.16); color: #46C586; }

.activity { list-style: none; margin: 0; padding: .5rem; }
.activity li { display: flex; gap: .85rem; padding: .7rem .9rem; border-radius: 12px; transition: background .12s ease; }
.activity li:hover { background: var(--bg-2); }
.activity .ai { width: 36px; height: 36px; border-radius: 999px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex: none; }
.activity .ai svg { width: 17px; height: 17px; }
.activity .at b { color: var(--ink); font-weight: 700; font-size: .9rem; }
.activity .at span { display: block; color: var(--muted); font-size: .78rem; margin-top: .12rem; }

.dash-scrim { display: none; }

/* collapsible mini sidebar (desktop icon rail) */
.dash-collapse { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .7rem; margin-bottom: .5rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .14s ease, color .14s ease; }
.dash-collapse:hover { background: var(--bg-2); color: var(--ink); }
.dash-collapse svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
@media (min-width: 901px)
{
    .dash { transition: grid-template-columns .2s ease; }
    .dash.mini { grid-template-columns: 74px minmax(0, 1fr); }
    .dash.mini .dash-side { padding-inline: .55rem; }
    .dash.mini .brand { justify-content: center; }
    .dash.mini .bname { display: none; }
    .dash.mini .side-group .lbl { display: none; }
    .dash.mini .side-group { margin-bottom: 1rem; }
    .dash.mini .side-nav a { justify-content: center; gap: 0; font-size: 0; padding: .66rem 0; position: relative; }
    .dash.mini .side-nav a svg { opacity: .9; }
    .dash.mini .side-badge { display: none; }
    .dash.mini .side-nav a:has(.side-badge)::after { content: ""; position: absolute; top: 7px; right: 13px; width: 7px; height: 7px; border-radius: 999px; background: var(--red); }
    .dash.mini .side-nav a.active:has(.side-badge)::after { background: #fff; }
    .dash.mini .dash-side-foot { align-items: center; }
    .dash.mini .side-foot-row { justify-content: center; }
    .dash.mini .side-foot-row > span { display: none; }
    .dash.mini .side-user { justify-content: center; }
    .dash.mini .side-user .who { display: none; }
    .dash.mini .dash-collapse { justify-content: center; gap: 0; font-size: 0; }
    .dash.mini .dash-collapse svg { transform: rotate(180deg); }
}
@media (max-width: 900px) { .dash-collapse { display: none; } }

@media (max-width: 1100px)
{
    .kpis { grid-template-columns: 1fr 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px)
{
    .dash { grid-template-columns: 1fr; }
    .dash-side { position: fixed; top: 0; left: 0; width: 284px; transform: translateX(-101%); transition: transform .22s ease; box-shadow: var(--shadow); }
    .dash.side-open .dash-side { transform: none; }
    .dash.side-open .dash-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; }
    .dash-menu-btn { display: inline-grid; }
}
@media (max-width: 560px)
{
    .kpis { grid-template-columns: 1fr; }
    .dash-search { display: none; }
}

/* ----------------------------------------------------------------- locations */
.loc-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.loc-search { display: flex; align-items: center; gap: .7ch; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .75rem 1.2rem; box-shadow: var(--shadow-sm); flex: 1 1 300px; max-width: 380px; }
.loc-search input { border: 0; background: transparent; outline: none; font: inherit; color: var(--ink); width: 100%; }
.loc-search input::placeholder { color: var(--muted); }
.loc-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.loc-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pill { font-family: var(--display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; padding: .55rem 1.1rem; border-radius: 999px; background: var(--bg-2); color: var(--ink); border: 1px solid transparent; cursor: pointer; transition: background .14s ease, color .14s ease; }
.filter-pill:hover { background: var(--red-soft); color: var(--red); }
.filter-pill.active { background: var(--red); color: #fff; }

.loc-count { font-family: var(--display); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1.3rem; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 1.1rem; }
.loc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.loc-card .pin { width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 1.1rem; }
.loc-card .pin svg { width: 21px; height: 21px; }
.loc-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.loc-card .city { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .82rem; color: var(--red); letter-spacing: .02em; margin-bottom: .7rem; }
.loc-card .addr { font-size: .9rem; color: var(--ink-2); margin: 0 0 1.2rem; }
.loc-card .inst { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: .45ch; font-family: var(--display); font-weight: 800; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #2E9E63; background: rgba(46,158,99,.12); padding: .32rem .65rem; border-radius: 999px; }
[data-theme="dark"] .loc-card .inst { color: #46C586; background: rgba(70,197,134,.14); }
.loc-empty { display: none; text-align: center; padding: 3.5rem 1rem; color: var(--muted); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.loc-empty.show { display: block; }
.loc-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.loc-pagination a, .loc-pagination .is-disabled { display: inline-flex; align-items: center; gap: .5ch; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--border); font-family: var(--display); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; transition: border-color .14s ease, color .14s ease; }
.loc-pagination a:hover { border-color: var(--red); color: var(--red); }
.loc-pagination .is-disabled { opacity: .4; }
.loc-pagination .loc-page-num { font-family: var(--display); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---- single-location detail ---- */
.loc-detail-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.loc-map { min-height: 400px; }
#blitz-map { width: 100%; height: 100%; min-height: 400px; border-radius: 18px; }
.loc-contact { display: grid; gap: 1.2rem; margin-top: 1.3rem; }
.loc-contact-row { display: flex; gap: .85ch; align-items: flex-start; color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
.loc-contact-row svg { width: 20px; height: 20px; flex: none; margin-top: .12em; color: var(--red); }
.loc-contact-row a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.loc-bb-meta { display: grid; gap: .45rem; margin-top: .2rem; }
.loc-bb-meta p { margin: 0; display: flex; gap: .6ch; font-size: .95rem; color: var(--ink-2); }
.loc-bb-meta p span { color: var(--muted); min-width: 92px; font-weight: 600; }
.loc-bb-status { margin-top: auto; padding-top: 1.1rem; }
.loc-games { display: grid; gap: .8rem; }
.loc-game { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .2s ease; }
.loc-game:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.loc-game-main { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.loc-game-main b { font-family: var(--display); font-weight: 800; color: var(--ink); text-transform: uppercase; font-size: .95rem; letter-spacing: .01em; }
.loc-game-box { font-size: .84rem; color: var(--muted); }
.loc-game-time { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.badge.err { background: var(--red-soft); color: var(--red); }
[data-theme="dark"] .badge.err { background: rgba(206,67,75,.16); color: #E86A72; }
@media (max-width: 820px) { .loc-detail-grid { grid-template-columns: 1fr; } }

/* ---- single-game scorecard ---- */
.game-wrap { max-width: 760px; margin-inline: auto; }
.game-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rcard); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.1rem, 3vw, 2.4rem); }
.game-team { text-align: center; min-width: 0; }
.game-team-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); font-size: clamp(1rem, 2.4vw, 1.45rem); line-height: 1.15; overflow-wrap: anywhere; }
.game-score { font-family: var(--display); font-weight: 900; color: var(--ink); font-size: clamp(3.4rem, 13vw, 6.6rem); line-height: 1; margin-top: .3rem; }
.game-mid { display: grid; gap: .45rem; text-align: center; padding-inline: clamp(.4rem, 2vw, 1.4rem); }
.game-period { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; color: var(--red); }
.game-sog { font-size: .82rem; color: var(--muted); font-weight: 600; }
.game-final { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--red); }
.game-times { display: flex; align-items: center; justify-content: center; gap: .5ch 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .85rem; color: var(--muted); }
.game-times svg { width: 15px; height: 15px; color: var(--red); }
.game-cta { max-width: 560px; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; border-color: var(--red); }
.game-cta .body { align-items: center; }
.game-cta-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 1rem; }
.game-cta .eyebrow { margin-bottom: .5rem; }
.game-cta-feats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.3rem; margin: .9rem 0 1.3rem; }
.game-cta-feats span { display: inline-flex; align-items: center; gap: .5ch; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em; color: var(--ink-2); }
.game-cta-feats span::before { content: ""; flex: none; width: 1em; height: 1em; border-radius: 999px; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1333B' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/.7em no-repeat; }
.game-cta-note { color: var(--muted); font-size: .82rem; margin-top: .4rem; }
@media (max-width: 560px) { .game-score { font-size: clamp(2.8rem, 16vw, 4rem); } .game-mid { padding-inline: .2rem; } }

/* ----------------------------------------------------------------- lead pages */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.5vw, 1.6rem); }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 1.1rem; }
.feature .fi svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.checklist { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .8ch; align-items: flex-start; color: var(--ink-2); font-size: 1rem; }
.checklist li::before { content: ""; flex: none; width: 1.35em; height: 1.35em; margin-top: .06em; border-radius: 999px; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C1333B' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/.75em no-repeat; }
.hero .checklist li { color: rgba(255,255,255,.94); }
.hero .checklist li::before { background: rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/.75em no-repeat; }

.price { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--ink); line-height: 1; display: block; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 700; }

.form-card,
.lead-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-card { max-width: 640px; margin-inline: auto; }
.lead-form h3 { margin-bottom: 1.3rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-family: var(--display); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; outline: none; transition: border-color .15s ease; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 96px; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: .3rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .9rem; text-align: center; }

/* HubSpot iframe shell. Legacy embeds ignore page CSS (and --hsf-* vars), so the form
   internals can't be themed from here. We pin the embed wrapper to a fixed light surface so
   the form's HubSpot-configured dark labels stay legible in dark mode, and size the iframe. */
.hs-embed iframe { width: 100%; border: 0; display: block; }
.form-card.hs-embed,
.lead-form.hs-embed { background: #FFFFFF; border-color: #ECECEC; }

/* Fallback CTA shown until the HubSpot form iframe renders (or if it never loads) */
.hs-fallback { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hs-fallback p { color: #565C63; margin: 0; }
.hs-embed:has(iframe) .hs-fallback { display: none; }

.app-badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.app-badge { display: inline-flex; align-items: center; gap: .65rem; background: #000; color: #fff; border-radius: 10px; padding: .6rem 1.1rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; transition: transform .15s ease; }
.app-badge:hover { transform: translateY(-2px); }
.app-badge svg { width: 27px; height: 27px; flex: none; }
.app-badge .ab { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.app-badge .ab small { font-size: .72rem; font-weight: 400; letter-spacing: .01em; margin-bottom: 1px; }
.app-badge .ab b { font-weight: 600; font-size: 1.28rem; letter-spacing: -.01em; }
.hero .app-badge { background: #000; color: #fff; }

.codecard { background: #0B0B0C; color: #DFE3E8; border-radius: 16px; padding: 1.3rem 1.5rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; line-height: 1.8; overflow-x: auto; box-shadow: var(--shadow); }
.codecard .c { color: #7C8593; }
.codecard .s { color: #7FD69A; }
.codecard .n { color: #FF7A84; }
.codecard .k { color: #E58A8F; }

@media (max-width: 960px)
{
    .feature-grid { grid-template-columns: 1fr; }
}
@media (min-width: 620px) and (max-width: 960px)
{
    .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px)
{
    .frow { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- scores strip (MLB-style) */
.livestrip { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.scorebar { display: flex; align-items: stretch; gap: 0; padding: .85rem var(--pad); }
.sb-date { flex: none; display: flex; flex-direction: column; justify-content: center; padding-right: 1.1rem; margin-right: .6rem; border-right: 1px solid var(--border); }
.sb-date span { font-family: var(--display); font-weight: 700; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-date b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--ink); line-height: 1.1; }

.sb-rail { flex: 1; min-width: 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.sb-rail::-webkit-scrollbar { display: none; }
.sb-track { display: flex; gap: .7rem; }
.game-card { flex: 0 0 auto; width: 204px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .65rem .85rem .7rem; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.game-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.gc-status { font-family: var(--display); font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .45ch; }
.game-card.live .gc-status { color: var(--red); }
.game-card.live .gc-status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--red); animation: lgpulse 1.4s ease-in-out infinite; }
.gc-rows { display: flex; flex-direction: column; gap: .35rem; }
.gc-row { display: flex; align-items: center; gap: .55ch; }
.gc-badge { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-2); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: .58rem; display: grid; place-items: center; flex: none; letter-spacing: .01em; }
.gc-name { font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--ink); flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-val { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); flex: none; font-variant-numeric: tabular-nums; }
.gc-val.rec { font-weight: 600; font-size: .78rem; color: var(--muted); }
.game-card.final .gc-row.lose .gc-name, .game-card.final .gc-row.lose .gc-val { color: var(--muted); }

.sb-nav { flex: none; display: flex; align-items: center; gap: .45rem; padding-left: 1.1rem; margin-left: .6rem; border-left: 1px solid var(--border); }
.sb-arrow { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--red); display: grid; place-items: center; cursor: pointer; transition: border-color .14s ease, background .14s ease, opacity .14s ease; }
.sb-arrow:hover { border-color: var(--red); background: var(--red-soft); }
.sb-arrow:disabled { opacity: .3; cursor: default; }
.sb-arrow svg { width: 18px; height: 18px; }
@keyframes lgpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 720px)
{
    .sb-nav { display: none; }
    .sb-date { padding-right: .8rem; margin-right: .4rem; }
}

/* ----------------------------------------------------------------- a11y motion */
@media (prefers-reduced-motion: reduce)
{
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- lead pages */
.lead-back { font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4ch; }
.lead-back:hover { color: var(--ink); }
.hero .lead-form { scroll-margin-top: 92px; }
/* home: let the hero image fill the column height instead of floating with red gaps */
.page-home .hero-grid { align-items: stretch; }
.page-home .hero-card { height: 100%; aspect-ratio: auto; min-height: 360px; }

/* Plain hero image: no card frame, no crop — show the whole product shot at its
   natural aspect. Used on the home hero (a phone + BlitzBox), which reads as an
   image, not a video, so there is no play affordance. */
.hero-card--plain { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.hero-card--plain img { height: auto; object-fit: contain; }
.page-home .hero-card--plain { height: auto; min-height: 0; aspect-ratio: auto; align-self: center; }
/* stop stretching the row and give the image column extra room so the shot reads
   large. Desktop only — below the 960px breakpoint the hero stacks to one column,
   otherwise the two-column split squeezes the copy and a long headline word
   (e.g. "Scoreboard") overflows a portrait phone. */
@media (min-width: 961px)
{
    .page-home .hero-grid:has(.hero-card--plain) { align-items: center; grid-template-columns: minmax(0, 1fr) 1.12fr; }
}
/* lead pages: pin the form/media column to a consistent width so a long
   headline word can't squeeze the form skinny; copy shrinks to fit.
   Desktop only — below the 960px breakpoint the hero stacks to one column,
   otherwise the fixed 440px min-column overflows a portrait phone. */
@media (min-width: 961px)
{
    .page-lead .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(440px, 42%, 500px); }
}
.page-lead .hero-copy { min-width: 0; }
.page-lead .hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.cta-mid { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: var(--bg); transform: translateY(120%); transition: transform .25s ease; box-shadow: 0 -12px 34px -14px rgba(0,0,0,.4); }
.sticky-cta.show { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.sticky-msg { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.sticky-cta .btn { flex: none; }

.lead-footer { background: var(--foot-bg); border-top: 1px solid var(--foot-border); padding-block: 1.6rem; color: var(--foot-ink); }
.lead-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap; }
.lead-foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.lead-foot-links a { font-size: .88rem; color: var(--foot-muted); }
.lead-foot-links a:hover { color: var(--red); }
.lead-foot-inner .cpy { font-size: .82rem; color: var(--foot-faint); }

@media (max-width: 560px)
{
    .lead-back { display: none; }
    .sticky-msg { display: none; }
    .sticky-inner { padding-block: .65rem; }
    .sticky-cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------- venue trust marquee (swiper) */
.venue-marquee { padding-block: clamp(2rem, 4vw, 3rem); background: var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.venue-marquee .trust-label { text-align: center; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee { margin-top: 1.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: inline-flex; gap: .85rem; padding-inline: .45rem; white-space: nowrap; animation: marquee-scroll 55s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.venue-chip { display: inline-flex; align-items: center; justify-content: center; height: 80px; padding-inline: 1.7rem; border: 1px solid var(--border); border-radius: 16px; background: #fff; flex: none; }
.venue-chip img { height: 48px; width: auto; max-width: 210px; object-fit: contain; display: block; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce)
{
    .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
}
