/* Spavo site refresh — Single League and Commissioner League pages (TER-524).
   Brand tokens mirror assets/site.css. Light theme only, deliberately. */
/* Spavo site tokens — copied from spavo-site/assets/site.css :root.
     Light theme only, deliberately: the marketing site is light-theme and a
     dark variant would misrepresent what ships. Every colour painted explicitly. */
  :root {
    --ink:        #161616;
    --ink-soft:   #4a463f;
    --muted:      #8A857C;
    --faint:      #B3ACA0;
    --screen:     #F6F5F2;
    --card:       #FFFFFF;
    --indigo:     #4B3DF5;
    --indigo-lt:  #7B6FF8;
    --indigo-bg:  #EEEFFE;
    --indigo-10:  rgba(75, 61, 245, 0.10);
    --money:      #12B57C;
    --money-bg:   rgba(18, 181, 124, 0.10);
    --navy:       #1E1B4B;
    --divider:    rgba(0, 0, 0, 0.06);

    --tint-butter: #FDF8E7;
    --tint-lilac:  #F2F0FE;
    --tint-mint:   #E9F6F0;
    --tint-sky:    #EDF5FD;
    --tint-peach:  #FDF2EA;
    --tint-rose:   #FDF0F4;

    --wrap: 1080px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-card: 0 1px 3px rgba(30, 27, 75, 0.05), 0 8px 24px rgba(30, 27, 75, 0.06);
    --shadow-lift: 0 18px 44px rgba(30, 27, 75, 0.14);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0; background: var(--card); color: var(--ink);
    font-family: var(--font); font-size: 17px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  /* ── review banner (not part of the page) ─────────────────────── */

  .review-bar {
    background: var(--navy); color: #fff; font-size: 13.5px; padding: 11px 28px;
    display: flex; gap: 14px; align-items: center; justify-content: center;
    flex-wrap: wrap; letter-spacing: 0.01em;
  }
  .review-bar strong { font-weight: 700; }
  .review-bar span { color: #BDB8F5; }

  /* ── brand lockup ─────────────────────────────────────────────── */

  /* The lockup is a real button so it can switch pages, which means the UA
     button chrome has to be stripped or the mark sits in a grey bevelled box. */
  .brand-lockup {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    text-decoration: none; background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: inherit; text-align: left; -webkit-appearance: none; appearance: none;
  }
  .brand-lockup:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: 4px; }
  .brand-lockup img { display: block; width: 134px; height: auto; }
  .brand-tagline { margin: 0; font-weight: 700; font-size: 9.5px; letter-spacing: 0.19em; color: var(--indigo); white-space: nowrap; }

  /* ── header ───────────────────────────────────────────────────── */

  header.site {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
  }
  /* Stretch, so the active tab's rail lands flush on the header border. */
  .nav { display: flex; align-items: stretch; gap: 22px; padding: 0; min-height: 78px; }
  .nav > .brand-lockup, .nav > .nav-links, .nav > .nav-store { align-self: center; }
  .nav-links { display: flex; gap: 22px; align-items: center; }
  .nav-links button, .nav-links a {
    color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
    background: none; border: 0; padding: 0; font-family: var(--font); cursor: pointer;
  }
  .nav-links button:hover, .nav-links a:hover { color: var(--indigo); }
  .nav-links button:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
  /* ── the two league tabs ──────────────────────────────────────
     The two league types are the primary choice on the site, so they are
     tabs with an active rail rather than links in the same row as Games
     and Leagues. Single League is the default. */
  .tab-nav { display: flex; align-items: stretch; gap: 4px; }
  .tab-link {
    position: relative; background: none; border: 0; cursor: pointer;
    display: flex; align-items: center;
    font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--muted);
    padding: 0 16px; line-height: 1.2; white-space: nowrap; text-decoration: none;
  }
  .tab-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
    height: 3px; border-radius: 3px 3px 0 0; background: transparent;
  }
  .tab-link:hover { color: var(--ink); }
  .tab-link[aria-current="page"] { color: var(--indigo); }
  .tab-link[aria-current="page"]::after { background: var(--indigo); }
  .tab-link:focus-visible { outline: 2px solid var(--indigo); outline-offset: -4px; border-radius: 6px; }
  .tab-divider { width: 1px; background: var(--divider); margin: 16px 8px; }
  /* Store badges — copied from spavo-site: real marks, and "Coming soon",
     because the app has not shipped. */
  .nav-store { margin-left: auto; display: flex; gap: 10px; }
  .store-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 15px 8px 12px; border-radius: 12px;
    background: #161616; color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px rgba(22, 22, 22, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 22, 22, 0.26); }
  .store-badge .sb-logo { width: 21px; height: 21px; flex: none; }
  .store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
  .store-badge .sb-txt small { font-size: 9px; font-weight: 500; opacity: 0.85; }
  .store-badge .sb-txt b { font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; }

  /* Section tag — the site's eyebrow pill. */
  .tag {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(58, 47, 208, 0.08); border: 1px solid rgba(58, 47, 208, 0.08);
    border-radius: 999px; padding: 5px 18px 5px 5px; margin: 0 0 16px;
  }
  .tag .tag-ic {
    display: grid; place-items: center; width: 34px; height: 26px;
    border-radius: 999px; background: var(--indigo); color: #fff; flex: none;
  }
  .tag .tag-ic svg { width: 15px; height: 15px; }
  .tag b { font-size: 13.5px; font-weight: 700; color: var(--indigo); letter-spacing: -0.01em; }

  /* Game leagues chips — the site's own treatment, icons and all. */
  .game-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px auto 0; max-width: 860px; }
  .game-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px;
    background: #fff; border: 1px solid var(--divider); box-shadow: var(--shadow-card);
    font-weight: 600; font-size: 16.5px; color: var(--ink);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .game-chip:hover { transform: translateY(-2px); border-color: var(--indigo-10); }
  .game-chip svg { width: 21px; height: 21px; color: var(--indigo); flex: none; }
  a.game-chip { color: inherit; text-decoration: none; }
  a.game-chip:hover { color: var(--indigo); text-decoration: none; }
  .game-chip.soon { background: var(--indigo-bg); border-color: rgba(75, 61, 245, 0.22); color: var(--indigo); font-weight: 700; }

  /* Trademark mark for Spavo Ratings — raised and small so it marks the term
     without breaking the line's rhythm. line-height:0 keeps it off the leading. */
  .tm {
    font-size: 0.6em; vertical-align: 0.45em; line-height: 0;
    margin-left: 1px; letter-spacing: 0.02em; font-weight: 600;
  }


  /* Legal pages — the Terms document, set to read rather than scan. */
  .legal { max-width: 780px; padding-top: 56px; padding-bottom: 96px; }
  .legal h1 { font-size: clamp(30px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
  .legal .meta { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
  .legal h2 {
    font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
    margin: 42px 0 12px; padding-top: 20px; border-top: 1px solid var(--divider);
    scroll-margin-top: 96px; text-transform: none;
  }
  .legal h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
  .legal p, .legal li { color: #2A2824; font-size: 16px; line-height: 1.68; }
  .legal p { margin: 0 0 14px; max-width: none; }
  .legal ul { padding-left: 22px; margin: 10px 0 14px; }
  .legal li { margin: 6px 0; }
  .legal li p { margin: 0 0 6px; }
  .legal a { color: var(--indigo); }
  .legal em strong, .legal strong em { font-style: normal; font-weight: 700; }
  .legal ol.toc { padding-left: 24px; margin: 10px 0 0; columns: 2; column-gap: 36px; }
  .legal ol.toc li { margin: 4px 0; font-size: 14.5px; break-inside: avoid; }
  .legal ol.toc a { text-decoration: none; }
  .legal ol.toc a:hover { text-decoration: underline; }
  @media (max-width: 620px) { .legal ol.toc { columns: 1; } }
  .legal-top {
    display: inline-block; margin-top: 40px; font-size: 14px; font-weight: 600;
    color: var(--indigo); background: none; border: 0; padding: 0;
    font-family: var(--font); cursor: pointer; text-decoration: none;
  }
  .legal-top:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

  /* Early-access capture — mirrors spavo-site/functions/subscribe.js */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .capture-fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; max-width: 46ch; line-height: 1.5; }
  .capture-note { transition: color 0.15s ease; }
  .capture-note.is-ok { color: var(--money-dark, #0B8A5F); font-weight: 600; }
  .capture-note.is-err { color: #B3243B; font-weight: 600; }
  .capture button[disabled] { opacity: 0.6; cursor: default; }
  .cta .capture-note { color: #C9C3FB; }
  .cta .capture-fine { color: rgba(255,255,255,0.5); }
  .cta .capture-note.is-ok { color: #7BE8C0; }
  .cta .capture-note.is-err { color: #FFA8B6; }
  .cta .capture-note, .cta .capture-fine { text-align: center; margin-left: auto; margin-right: auto; }

  .games-sec { scroll-margin-top: 92px; }
  .foot-legal {
    max-width: 760px; margin: 26px auto 0; padding: 0;
    font-size: 11.5px; line-height: 1.55; color: var(--faint); text-align: center;
  }

  /* ── hero ─────────────────────────────────────────────────────── */

  .hero {
    background:
      radial-gradient(900px 520px at 82% 8%, #F0E9FE 0%, rgba(240,233,254,0) 62%),
      radial-gradient(700px 480px at 12% 42%, #FDF1F6 0%, rgba(253,241,246,0) 60%),
      var(--card);
    padding: 76px 0 0;
  }
  .hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; }

  h1.hero-h {
    font-size: clamp(40px, 6vw, 62px); font-weight: 800; line-height: 1.05;
    letter-spacing: -0.035em; margin: 0 0 22px; text-wrap: balance;
  }
  .hl { background: var(--indigo); color: #fff; padding: 2px 16px 6px; border-radius: 12px; display: inline-block; margin: 6px 0; }
  .hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }

  .capture { display: flex; gap: 10px; max-width: 440px; }
  .capture input {
    flex: 1; border: 1px solid #E4E1DA; border-radius: 12px; padding: 14px 16px;
    font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
  }
  .capture input::placeholder { color: var(--faint); }
  .capture button {
    background: var(--indigo); color: #fff; border: 0; border-radius: 12px;
    padding: 14px 20px; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .capture button:hover { background: #3F31E0; }
  .capture-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; max-width: 44ch; line-height: 1.5; }
  .capture-note b { color: var(--ink-soft); font-weight: 600; }

  .hero-mock { display: flex; justify-content: center; }
  .float-chip {
    position: absolute; background: #fff; border-radius: 12px; padding: 8px 12px;
    box-shadow: var(--shadow-card); font-size: 11.5px; font-weight: 600; white-space: nowrap;
  }
  .float-chip small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em; }
  .fc-1 { top: 46px; left: -58px; }
  .fc-2 { bottom: 92px; right: -52px; }

  /* ── games scroll ─────────────────────────────────────────────── */

  .marquee-wrap {
    margin-top: 66px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
    background: var(--card); overflow: hidden; padding: 17px 0; scroll-margin-top: 92px;
  }
  .marquee { display: flex; width: max-content; animation: slide 46s linear infinite; }
  .marquee-track { display: flex; align-items: center; }
  @keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; }
    .marquee-wrap { overflow-x: auto; }
  }
  .g-chip {
    display: flex; align-items: center; font-size: 15px; font-weight: 600;
    letter-spacing: 0.03em; white-space: nowrap; color: var(--ink-soft);
    padding: 0 52px; border-right: 1px solid var(--divider);
  }
  @media (max-width: 700px) { .g-chip { padding: 0 30px; } }

  /* ── generic section ──────────────────────────────────────────── */

  section { padding: 84px 0; scroll-margin-top: 92px; }
  .sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
  .sec-eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--indigo); margin: 0 0 14px;
  }
  h2 {
    font-size: clamp(31px, 4.2vw, 44px); font-weight: 800; line-height: 1.1;
    letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance;
  }
  .sec-head p { color: var(--ink-soft); font-size: 17.5px; margin: 0; }
  .what { background: var(--screen); }
  .what .sec-head { margin-bottom: 0; max-width: 760px; }

  /* ── problem cards ────────────────────────────────────────────── */

  .prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .prob-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .prob {
    border-radius: 16px; padding: 20px 18px;
  }
  .prob:nth-child(1) { background: #EDF0FE; }
  .prob:nth-child(2) { background: #E8F6EF; }
  .prob:nth-child(3) { background: #FDECEF; }
  .prob:nth-child(4) { background: #FDF2E7; }
  .prob b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 5px; }
  .prob p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
  .prob-copy h2 { margin-bottom: 18px; }
  .prob-copy p { color: var(--ink-soft); font-size: 16.5px; margin: 0; max-width: 40ch; }

  /* ── feature blocks ───────────────────────────────────────────── */

  .feat {
    display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
    border-radius: var(--radius-lg); padding: 52px 48px; margin: 0 0 22px;
  }
  .feat.flip .feat-copy { order: 2; }
  .feat.t-butter { background: var(--tint-butter); }
  .feat.t-lilac  { background: var(--tint-lilac); }
  .feat.t-mint   { background: var(--tint-mint); }
  .feat.t-sky    { background: var(--tint-sky); }
  .feat.t-peach  { background: var(--tint-peach); }
  .feat.t-rose   { background: var(--tint-rose); }

  .feat-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--indigo); margin: 0 0 18px; }
  .feat h3 { font-size: clamp(27px, 3.4vw, 37px); font-weight: 800; line-height: 1.1; letter-spacing: -0.028em; margin: 0 0 14px; text-wrap: balance; }
  .feat-sub { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 22px; }
  ul.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
  ul.bullets li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink); line-height: 1.45; }
  ul.bullets li::before { content: "\00BB"; color: var(--indigo); font-weight: 700; font-size: 17px; line-height: 1.35; flex: none; }

  /* ── figma device renders ─────────────────────────────────────── */

  .fig { position: relative; display: flex; justify-content: center; }
  .fig img { width: 100%; max-width: 560px; height: auto; display: block; }
  .fig-in { position: relative; display: inline-block; max-width: 500px; width: 100%; }
  .fig-in img { max-width: 100%; }

  /* ── the commissioner home, drawn from the real screen ────────── */

  .dash { position: relative; max-width: 420px; margin: 0 auto; }
  .dash-card {
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lift); overflow: hidden;
  }
  .dash-head { background: var(--navy); color: #fff; padding: 18px 18px 14px; }
  .dash-head .dh-r { font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #A9A2F4; font-weight: 700; }
  .dash-head b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-top: 3px; }
  /* The season card: indigo gradient, three figures, exactly the app's. */
  .season-card {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-lt) 100%);
    border-radius: 16px; margin: -1px 14px 0; transform: translateY(-14px);
    box-shadow: 0 10px 24px rgba(75,61,245,0.28); display: grid; grid-template-columns: repeat(3, 1fr);
  }
  .season-card .st { padding: 14px 8px; text-align: center; color: #fff; }
  .season-card .st + .st { border-left: 1px solid rgba(255,255,255,0.22); }
  .season-card .st b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
  .season-card .st span { font-size: 10px; font-weight: 600; color: #DAD6FC; letter-spacing: 0.05em; }
  .season-line { padding: 0 18px; margin-top: -4px; }
  .season-line .sl-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
  .season-line .sl-row b { font-weight: 700; }
  .season-line .sl-row span { color: var(--muted); font-size: 11.5px; }
  .season-line .track { height: 5px; border-radius: 99px; background: #EFEDE8; margin-top: 7px; overflow: hidden; }
  .season-line .track i { display: block; height: 100%; background: var(--indigo); border-radius: 99px; }

  .dash-sec { padding: 16px 18px 0; }
  .dash-sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
  .dash-sec-h b { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; }
  .view-pill { font-size: 10.5px; font-weight: 600; color: var(--indigo); background: var(--indigo-bg); padding: 4px 10px; border-radius: 999px; }

  .match { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--divider); }
  .match .when { text-align: center; width: 34px; flex: none; }
  .match .when em { display: block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .match .when b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
  .match .teams { flex: 1; min-width: 0; }
  .match .teams .tm { font-size: 13px; font-weight: 600; line-height: 1.3; }
  .match .teams .tm i { font-style: normal; color: var(--muted); font-weight: 500; }
  .match .teams .meta { font-size: 11px; color: var(--muted); line-height: 1.3; }
  .match .chev { color: var(--faint); font-size: 15px; }

  .stand-head, .stand-row { display: grid; grid-template-columns: 20px 1fr 52px 40px 26px; gap: 8px; align-items: center; }
  .stand-head { padding: 6px 0; border-bottom: 1px solid var(--divider); }
  .stand-head span { font-size: 9px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
  .stand-head span:nth-child(3), .stand-head span:nth-child(4), .stand-head span:nth-child(5),
  .stand-row .rec, .stand-row .diff, .stand-row .pts { text-align: right; }
  .stand-row { padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.035); font-variant-numeric: tabular-nums; }
  .stand-row:last-child { border-bottom: 0; }
  .stand-row .rk { font-size: 11px; font-weight: 700; color: var(--muted); }
  .stand-row .nm { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; min-width: 0; }
  .stand-row .crest { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: #fff; flex: none; }
  .stand-row .rec { font-size: 12px; }
  .stand-row .diff { font-size: 12px; color: var(--muted); }
  .stand-row .pts { font-size: 13px; font-weight: 800; }
  .dash-legend { padding: 10px 18px 16px; font-size: 10.5px; color: var(--muted); margin: 0; }

  .dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0 18px 18px; }
  .dash-tiles span {
    font-size: 10px; font-weight: 600; text-align: center; padding: 9px 3px;
    border: 1px solid var(--divider); border-radius: 10px; color: var(--ink-soft);
  }

  /* ── app mock cards ───────────────────────────────────────────── */

  .mock { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; font-size: 14px; }
  .mock-bar { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--divider); }
  .mock-bar b { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
  .mock-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; background: var(--indigo-bg); color: var(--indigo); padding: 4px 9px; border-radius: 999px; }
  .mock-tag.green { background: var(--money-bg); color: #0B8A5F; }
  .mock-body { padding: 15px 16px; display: flex; flex-direction: column; gap: 9px; }

  .m-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--divider); border-radius: 12px; }
  .m-av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; }
  .m-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
  .m-meta { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
  .m-badge { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
  .b-capt   { background: var(--indigo-bg); color: var(--indigo); }
  .b-player { background: #F1EFEA; color: var(--ink-soft); }

  .tbl-scroll { overflow-x: auto; }
  table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
  table.tbl th, table.tbl td { padding: 9px 10px; text-align: right; white-space: nowrap; }
  table.tbl th:nth-child(1), table.tbl td:nth-child(1),
  table.tbl th:nth-child(2), table.tbl td:nth-child(2) { text-align: left; }
  table.tbl thead th { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--divider); }
  table.tbl tbody td { border-bottom: 1px solid rgba(0,0,0,0.035); font-variant-numeric: tabular-nums; }
  table.tbl tbody tr:last-child td { border-bottom: 0; }
  .t-team { display: flex; align-items: center; gap: 9px; font-weight: 600; }
  .t-crest { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #fff; flex: none; }
  .t-pts { font-weight: 800; }
  .legend { padding: 11px 16px; border-top: 1px solid var(--divider); font-size: 11.5px; color: var(--muted); margin: 0; }

  /* bracket */
  .bracket { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 10px; align-items: center; padding: 15px 16px; }
  .bk-col { display: flex; flex-direction: column; gap: 9px; }
  .bk-tie { border: 1px solid var(--divider); border-radius: 11px; overflow: hidden; }
  .bk-seat { display: flex; align-items: center; gap: 7px; padding: 7px 9px; font-size: 11.5px; }
  .bk-seat + .bk-seat { border-top: 1px solid var(--divider); }
  .bk-seat .sd { font-size: 9px; color: var(--muted); font-weight: 700; width: 11px; flex: none; }
  .bk-seat .sn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bk-seat .sc { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
  .bk-seat.win { background: var(--indigo-bg); }
  .bk-seat.win .sn, .bk-seat.win .sc { color: var(--indigo); }
  .bk-bye { border: 1px dashed var(--indigo-lt); border-radius: 11px; padding: 9px; font-size: 10.5px; text-align: center; color: var(--indigo); font-weight: 600; background: #FBFAFF; }
  .bk-bye b { display: block; font-size: 11.5px; font-weight: 700; }
  .champ { background: var(--indigo); color: #fff; border-radius: 13px; padding: 15px 11px; text-align: center; }
  .champ .cup { font-size: 24px; }
  .champ b { display: block; font-size: 13.5px; font-weight: 700; margin-top: 3px; }
  .champ span { font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: #C9C3FB; font-weight: 700; }
  .bk-rounds { display: flex; gap: 7px; padding: 0 16px 15px; flex-wrap: wrap; }
  .bk-rounds span { font-size: 10px; font-weight: 600; color: var(--ink-soft); background: #F4F3EF; padding: 5px 10px; border-radius: 999px; }
  .bk-rounds span.on { background: var(--indigo-bg); color: var(--indigo); }

  /* tournament */
  .tour-head { background: var(--navy); color: #fff; padding: 15px 16px; }
  .tour-head .th-r { font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: #A9A2F4; font-weight: 700; }
  .tour-head b { display: block; font-size: 17px; font-weight: 700; margin-top: 4px; letter-spacing: -0.015em; }
  .tour-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
  .tour-pills span { font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.13); color: #DDD9FA; }
  .tour-pills span.live { background: var(--indigo); color: #fff; }
  .tour-rows { padding: 15px 16px; display: flex; flex-direction: column; gap: 13px; }
  .tour-row .tr-t { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
  .tour-row .tr-t i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11.5px; }
  .tour-row .tr-t i.done { color: var(--money); font-weight: 600; }
  .bar { height: 5px; border-radius: 99px; background: #EFEDE8; overflow: hidden; }
  .bar b { display: block; height: 100%; background: var(--indigo); border-radius: 99px; }
  .bar b.done { background: var(--money); }

  /* scoring correction notice */
  .notice { border: 1px solid #F2D9A8; background: #FDF7EA; border-radius: 12px; padding: 12px 13px; }
  .notice b { display: block; font-size: 12.5px; font-weight: 700; color: #7A5406; margin-bottom: 3px; }
  .notice p { margin: 0; font-size: 11.5px; color: #8A6519; line-height: 1.45; }
  .notice-acts { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
  .notice-acts span { font-size: 10.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #EADCC0; color: #7A5406; }
  .notice-acts span.pri { background: var(--indigo); border-color: var(--indigo); color: #fff; }
  .float-notice { position: absolute; left: 0; bottom: 4px; width: 262px; box-shadow: var(--shadow-lift); background: #FEFBF3; }
  @media (max-width: 900px) { .float-notice { position: static; width: auto; margin: 14px 0 0; } }

  /* chat */
  .chat { padding: 15px 16px; display: flex; flex-direction: column; gap: 10px; background: #F8F8FC; }
  .bubble { display: flex; gap: 8px; align-items: flex-end; }
  .bubble .m-av { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; }
  .bubble p { margin: 0; background: #fff; border-radius: 13px 13px 13px 4px; padding: 9px 12px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 1px 2px rgba(30,27,75,0.05); max-width: 78%; }
  .bubble.me { flex-direction: row-reverse; }
  .bubble.me p { background: var(--indigo); color: #fff; border-radius: 13px 13px 4px 13px; }
  .announce { background: var(--indigo-bg); border: 1px solid var(--indigo-10); border-radius: 12px; padding: 11px 13px; }
  .announce b { display: block; font-size: 9.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--indigo); font-weight: 700; margin-bottom: 4px; }
  .announce p { margin: 0; font-size: 12.5px; color: var(--ink); line-height: 1.45; }
  .chat-input { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--divider); border-radius: 999px; padding: 9px 14px; }
  .chat-input span { font-size: 12.5px; color: var(--faint); flex: 1; }
  .chat-input i { width: 24px; height: 24px; border-radius: 50%; background: var(--indigo); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; }

  /* ── steps ────────────────────────────────────────────────────── */

  .steps { display: flex; flex-direction: column; gap: 22px; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
  .step .n {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--indigo-10);
    background: var(--indigo-bg); color: var(--indigo); display: grid; place-items: center;
    font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
  }
  .step b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
  .step p { margin: 2px 0 0; font-size: 15.5px; color: var(--ink-soft); }

  /* ── commissioner cross-link ──────────────────────────────────── */

  .crosslink {
    border: 1px solid var(--indigo-10); background: var(--indigo-bg);
    border-radius: var(--radius-lg); padding: 40px 44px; display: grid;
    grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  }
  .crosslink h3 { margin: 0 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -0.025em; }
  .crosslink p { margin: 0; color: var(--ink-soft); font-size: 16.5px; max-width: 50ch; }
  .crosslink button, .crosslink .crosslink-cta {
    display: inline-block; text-decoration: none;
    background: var(--indigo); color: #fff; border: 0; border-radius: 12px;
    padding: 15px 26px; font-family: var(--font); font-size: 15.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
  }
  .crosslink button:hover, .crosslink .crosslink-cta:hover { background: #3F31E0; }
  .crosslink button:focus-visible, .crosslink .crosslink-cta:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

  /* ── final cta ────────────────────────────────────────────────── */

  .cta {
    background: linear-gradient(140deg, var(--navy) 0%, #322A7A 58%, #4B3DF5 130%);
    color: #fff; border-radius: var(--radius-lg); padding: 62px 48px; text-align: center;
  }
  .cta h2 { color: #fff; margin-bottom: 14px; }
  .cta p { color: #C9C3FB; font-size: 17.5px; max-width: 52ch; margin: 0 auto 30px; }
  .cta .capture { margin: 0 auto; }
  .cta .capture input { border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.1); color: #fff; }
  .cta .capture input::placeholder { color: rgba(255,255,255,0.55); }
  .cta .capture button { background: #fff; color: var(--indigo); }
  /* The tag inverts inside the dark CTA. */
  .cta .tag { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
  .cta .tag b { color: #fff; }
  .cta .tag .tag-ic { background: #fff; color: var(--indigo); }

  /* A page switch sitting inside a sentence. */
  .inline-link {
    background: none; border: 0; padding: 0; font: inherit; color: var(--indigo);
    font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  }
  .inline-link:hover { color: #3F31E0; }
  .inline-link:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 3px; }

  /* ── footer ───────────────────────────────────────────────────── */

  footer.site { border-top: 1px solid var(--divider); margin-top: 84px; padding: 38px 0 56px; }
  .foot-in { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
  .foot-links { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; align-items: center; }
  .foot-links a, .foot-links button {
    color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
    background: none; border: 0; padding: 0; font-family: var(--font); cursor: pointer;
  }
  .foot-links a:hover, .foot-links button:hover { color: var(--indigo); }
  .foot-cr { width: 100%; color: var(--muted); font-size: 13px; margin: 8px 0 0; }
  /* Phone-only copy of the header store badges (the header hides them). */
  .hero-store { display: none; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }

  /* ── responsive ───────────────────────────────────────────────── */

  @media (max-width: 900px) {
    .hero-grid, .feat, .prob-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .feat { padding: 38px 26px; }
    .feat.flip .feat-copy { order: 0; }
    /* The two league tabs are the primary choice, so they stay on a phone. */
    .nav-links, .nav-store, .tab-divider { display: none; }
    .hero-store { display: flex; }
    .nav { min-height: 68px; gap: 10px; padding: 0 20px; }
    .tab-link { font-size: 13.5px; padding: 0 9px; }
    .brand-lockup img { width: 108px; }
    .bracket { grid-template-columns: minmax(0, 1fr); }
    .fc-1 { top: 10px; left: 0; }
    .fc-2 { bottom: 20px; right: 0; }
    .foot-links { margin-left: 0; }
    .crosslink { grid-template-columns: minmax(0, 1fr); padding: 32px 26px; }
  }
  @media (max-width: 620px) { .prob-cards { grid-template-columns: 1fr; } }
  /* The logo and both "… League" tabs need ~500px in one row, so a phone
     scrolled sideways. Below 620px the tabs take their own full-width row. */
  @media (max-width: 620px) {
    .nav { flex-wrap: wrap; row-gap: 0; min-height: 0; padding: 0 16px; }
    .nav > .brand-lockup { padding: 10px 0 4px; }
    .tab-nav { width: 100%; }
    .tab-link { flex: 1; justify-content: center; min-height: 44px; }
    /* Email field above a full-width button, so the pair fits a 360px phone. */
    .capture { flex-direction: column; }
    .capture button { width: 100%; }
  }
