/* League Time — myleaguetime.com. Colors match the app (apps/mobile/src/theme.ts). */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #0a5bd3;
  --brand-deep: #0b2a5b;
  --brand-soft: #e7f0fd;
  --orange: #f5a00b;
  --cyan: #1ec3ff;
  --ok: #047857;
  --bad: #be123c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1a;
    --surface: #111827;
    --ink: #f1f5f9;
    --ink2: #cbd5e1;
    --muted: #94a3b8;
    --line: #1f2a3b;
    --brand: #3b82f6;
    --brand-soft: #14243f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
  .nav__brand img { filter: brightness(0) invert(1); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 1.05; letter-spacing: 0.005em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--prose { width: min(760px, 100% - 32px); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--brand); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; align-items: stretch; }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 12px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 700; padding: 13px 22px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a5bd3 0%, #0b2a5b 100%); color: #fff; padding: 84px 0 96px; }
.hero::before, .hero::after { content: ""; position: absolute; height: 14px; width: 46%; transform: skewX(-24deg); right: -6%; }
.hero::before { top: 46%; background: var(--orange); }
.hero::after { top: calc(46% + 26px); background: var(--cyan); right: -8%; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 40ch; color: #dbe7fb; }
.eyebrow { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; color: var(--orange); margin-bottom: 14px; }
.hero__note { margin-top: 18px; font-size: 14px; color: #b9cdf0; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { color: var(--ink); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink2); }
.card li { margin: 6px 0; }
.card__tag { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 8px; background: var(--orange); transform: skewX(-24deg); }
.checks li:nth-child(even)::before { background: var(--cyan); }
.checks strong { color: var(--ink); }

.meter { background: var(--bg); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.meter__row { display: grid; grid-template-columns: 70px 1fr 48px; gap: 12px; align-items: center; margin: 10px 0; font-weight: 700; font-size: 14px; }
.meter__bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter__bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter__flag { color: var(--bad); }
.meter small { color: var(--muted); display: block; margin-top: 10px; font-size: 13px; }

.sports { display: flex; flex-wrap: wrap; gap: 10px; }
.sports span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.sports .soon { color: var(--muted); font-weight: 600; }

.cta { background: linear-gradient(160deg, #0a5bd3, #0b2a5b); color: #fff; border-radius: 24px; padding: 48px; text-align: center; }
.cta p { color: #dbe7fb; max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Prose pages */
.page-head { padding: 64px 0 24px; }
.page-head .lead { font-size: 1.15rem; color: var(--ink2); }
.page-head__meta { color: var(--muted); font-size: 14px; }
.prose { padding-top: 8px; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; scroll-margin-top: 80px; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
.callout { background: var(--brand-soft); border-left: 5px solid var(--brand); border-radius: 12px; padding: 18px 22px; margin: 0 0 1.5em; }
.callout h3 { margin-top: 0; }
.callout ul { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 1.5em; }
.toc h2 { font-size: 1.2rem; margin: 0 0 6px; }
.toc ol { margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

/* Form */
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 2em; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink2); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__status { margin: 0; font-weight: 600; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--bad); }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--ink2); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--brand); }

/* ── Multi-page additions: device frames, feature rows, page heroes ── */
.phone { width: min(300px, 78vw); border-radius: 42px; padding: 10px; background: #0b1220; box-shadow: 0 30px 60px rgba(11, 18, 32, 0.28), inset 0 0 0 2px #2a3446; flex: none; }
.phone img { border-radius: 33px; width: 100%; height: auto; }
.phone--sm { width: min(240px, 60vw); border-radius: 34px; padding: 8px; }
.phone--sm img { border-radius: 27px; }
.browser { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px rgba(11, 18, 32, 0.22); border: 1px solid var(--line); }
.browser__bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; background: color-mix(in srgb, var(--line) 60%, var(--surface)); }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser__bar span:nth-child(2) { background: #fbbf24; }
.browser__bar span:nth-child(3) { background: #34d399; }
.browser__bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 12px; }
.browser img { width: 100%; height: auto; }
.tablet { border-radius: 30px; padding: 14px; background: #0b1220; box-shadow: 0 30px 60px rgba(11, 18, 32, 0.28); }
.tablet img { border-radius: 18px; width: 100%; height: auto; }

.hero--split .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__media { position: relative; min-height: 420px; }
.hero__media .browser { position: absolute; right: -60px; top: 30px; width: 560px; }
.hero__media .phone { position: relative; z-index: 2; margin-left: 10px; width: 250px; }
@media (max-width: 960px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .hero__media { min-height: 0; display: flex; justify-content: center; }
  .hero__media .browser { display: none; }
}

.page-hero { background: linear-gradient(160deg, #0a5bd3 0%, #0b2a5b 100%); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -4%; bottom: 36px; width: 38%; height: 12px; background: var(--orange); transform: skewX(-24deg); box-shadow: -18px 24px 0 var(--cyan); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: #dbe7fb; font-size: 1.2rem; max-width: 46ch; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature--flip .feature__media { order: -1; }
.feature__media { display: flex; justify-content: center; gap: 18px; }
.feature__media--wide { display: block; }
.feature h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.feature p { color: var(--ink2); font-size: 1.05rem; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .feature--flip .feature__media { order: 0; }
  .feature__media .phone--sm:nth-child(2) { display: none; }
}

.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.audience a { text-decoration: none; color: inherit; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.audience a:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 18, 32, 0.12); }
.audience h3 { margin-bottom: 6px; }
.audience p { color: var(--ink2); margin-bottom: 14px; }
.audience .more { color: var(--brand); font-weight: 700; }

.strip { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; scroll-snap-align: start; flex: none; }
.strip figcaption { text-align: center; font-weight: 700; font-size: 14px; color: var(--ink2); margin-top: 12px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.4rem; color: var(--brand); display: block; line-height: 1; margin-bottom: 8px; }
.steps { padding: 0; margin: 0; }
.fineprint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }

/* Supported sports */
.sport-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.sport-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.sport-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sport-card__head h3 { margin: 0; font-size: 1.7rem; }
.sport-card__head p { margin: 0; color: var(--muted); font-size: 14px; }
.sport-card__icon { font-size: 2.4rem; line-height: 1; }
.pill-live { margin-left: auto; background: #e7f8f0; color: var(--ok); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 15px; min-width: 620px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--brand-deep); color: #fff; font-size: 16px; }
.compare tbody th { width: 22%; color: var(--ink); font-weight: 700; }
.compare td { color: var(--ink2); width: 39%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.soon { background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: var(--radius); padding: 22px; position: relative; }
.soon span { font-size: 2rem; display: block; margin-bottom: 8px; }
.soon h3 { margin-bottom: 4px; }
.soon p { color: var(--muted); font-size: 14px; margin: 0; }
.soon::after { content: "Coming soon"; position: absolute; top: 18px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }
@media (max-width: 760px) { .nav__links { gap: 0; } }
@media (min-width: 761px) and (max-width: 980px) { .nav__links { gap: 16px; } .nav__links a { font-size: 14px; } }

/* ── Flair: director-first home ── */
.stripes { position: relative; height: 26px; margin: 0; overflow: hidden; }
.stripes::before, .stripes::after { content: ""; position: absolute; height: 9px; width: 62%; transform: skewX(-24deg); }
.stripes::before { top: 2px; left: -4%; background: var(--orange); }
.stripes::after { top: 15px; left: 6%; background: var(--cyan); width: 48%; }

.hero--director { padding: 76px 0 110px; }
.hero--director h1 { max-width: 12ch; }
.hero--director .hero__media { min-height: 470px; }
.hero--director .hero__media .browser { position: relative; right: auto; top: auto; width: 112%; transform: perspective(1600px) rotateY(-9deg) rotateX(2deg); transform-origin: left center; }
.hero--director .hero__media .phone { position: absolute; left: -46px; bottom: -40px; width: 170px; padding: 7px; border-radius: 30px; }
.hero--director .hero__media .phone img { border-radius: 24px; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 34px rgba(11, 18, 32, 0.28); animation: float 6s ease-in-out infinite; max-width: 270px; line-height: 1.35; }
.chip b { display: block; font-size: 14px; }
.chip i { font-style: normal; font-size: 20px; }
.chip--flag { top: -18px; right: 4%; }
.chip--final { bottom: 34px; right: -2%; animation-delay: -3s; }
.chip--flag b { color: var(--bad); }
.chip--final b { color: var(--ok); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 960px) {
  .hero--director .hero__media { min-height: 0; display: block; margin-top: 18px; }
  .hero--director .hero__media .browser { display: block; width: 100%; transform: none; }
  .hero--director .hero__media .phone { display: none; }
  .chip--flag { top: -14px; right: 8px; }
  .chip--final { bottom: -16px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: #c9d9f4; font-size: 14px; font-weight: 600; }
.trust span::before { content: "✓"; color: var(--orange); margin-right: 7px; font-weight: 800; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs__col { border-radius: var(--radius); padding: 28px; }
.vs__col h3 { font-size: 1.5rem; margin-bottom: 14px; }
.vs__col ul { list-style: none; margin: 0; padding: 0; }
.vs__col li { padding: 11px 0 11px 34px; position: relative; border-top: 1px solid rgba(127, 127, 127, 0.18); }
.vs__col li:first-child { border-top: 0; }
.vs__before { background: var(--surface); border: 1px solid var(--line); color: var(--ink2); }
.vs__before li::before { content: "✕"; position: absolute; left: 4px; color: var(--bad); font-weight: 800; }
.vs__after { background: linear-gradient(160deg, #0a5bd3, #0b2a5b); color: #fff; box-shadow: 0 24px 50px rgba(10, 91, 211, 0.3); }
.vs__after li::before { content: "✓"; position: absolute; left: 4px; color: var(--orange); font-weight: 800; }
.vs__after li { border-top-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: tl; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 4px; background: linear-gradient(90deg, var(--orange), var(--cyan)); border-radius: 4px; }
.timeline li { list-style: none; text-align: center; padding: 0 10px; position: relative; }
.timeline li::before { counter-increment: tl; content: counter(tl); display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand); color: #fff; font: italic 800 1.6rem var(--display); box-shadow: 0 0 0 6px var(--bg); position: relative; }
.timeline h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { color: var(--ink2); font-size: 14px; margin: 0; }
.timeline { padding: 0; margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { top: 10px; bottom: 10px; left: 28px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--orange), var(--cyan)); }
  .timeline li { text-align: left; padding-left: 80px; min-height: 58px; }
  .timeline li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

.dark { background: #0b1220; color: #e2e8f0; }
.dark h2 { color: #fff; }
.dark p { color: #b6c3d6; }
.dark .checks li { color: #cbd5e1; border-bottom-color: #1f2a3b; }
.dark .checks strong { color: #fff; }
.dark .tablet { box-shadow: 0 30px 80px rgba(59, 130, 246, 0.25), inset 0 0 0 2px #2a3446; }

.bigstat { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-top: 30px; }
.bigstat div { border-left: 4px solid var(--orange); padding: 4px 0 4px 16px; }
.bigstat div:nth-child(even) { border-left-color: var(--cyan); }
.bigstat b { display: block; font: italic 800 2.4rem/1 var(--display); color: var(--brand); text-transform: uppercase; }
.dark .bigstat b { color: #fff; }
.bigstat span { color: var(--muted); font-size: 14px; }
.dark .bigstat span { color: #94a3b8; }

.apps { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.apps__phones { display: flex; gap: 14px; }
.apps__phones .phone--sm { width: 170px; }
.apps__phones .phone--sm:nth-child(2) { transform: translateY(-26px); }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } .apps__phones .phone--sm:nth-child(3) { display: none; } .apps__phones .phone--sm { width: 46%; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) { .hero::before, .hero::after { display: none; } }
