/* Landing and join pages. Shares the app's tokens from app.css.
   Written mobile-first: every rule below is the phone layout, and the two
   min-width blocks widen it. Nothing here may cause a sideways scroll. */

body.lp { padding-bottom: 0; background: var(--ink); color: var(--text); }
.lp section, .lp header, .lp footer { max-width: 1120px; margin-inline: auto; }
.lp, .lp * { max-width: 100%; }
.lp img { height: auto; }

/* Any author rule that sets `display` beats the browser's own [hidden] rule.
   A panel styled `display: grid` therefore stayed on screen with the attribute
   set, which is what listed all three sports at once. This makes hidden mean
   hidden whatever else is declared. */
/* Two belts. `[hidden]` alone is beaten by any author rule that sets `display`,
   and .live-grid sets `display: grid` — which is what listed all three sports
   at once. The class settles it without depending on cascade precedence. */
.lp [hidden] { display: none !important; }
.lp .is-off { display: none !important; }

/* ---------- header ---------- */

.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
/* The supplied wordmark, rather than type approximating it. Height-driven so
   it scales with the header without the aspect ratio drifting. */
.lp-brand { display: flex; align-items: center; flex: 0 0 auto; }
.lp-brand img {
  display: block;
  height: clamp(22px, 6vw, 34px);
  width: auto;
}
.lp-auth { display: flex; gap: 8px; flex: 0 0 auto; }

.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #10141b; border: 1px solid var(--gold); }
.btn-gold:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #2c3240; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 16px 30px;
  background:
    radial-gradient(115% 95% at 76% 34%, rgba(247,181,26,.22) 0%, rgba(247,181,26,0) 58%),
    linear-gradient(160deg, #10141b 0%, #06090d 72%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 26%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 32%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 32%, #000 72%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-family: Archivo, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 12vw, 76px);
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0 0 12px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,.65);
}
.hero h1 em { color: var(--gold); font-style: normal; }
/* Three stacked lines, and the middle one has to dominate. The eyebrow and the
   strapline are deliberately held well below the headline's size so the offer
   reads first — at similar weights the block turns into a wall of text. */
.hero-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.hero-tagline {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: clamp(13px, 3.8vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  color: #e7ecf5;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  max-width: 28ch;
}
.hero-tagline em { color: var(--gold); font-style: normal; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero { padding: 14px 22px; font-size: 13px; flex: 1 1 auto; min-width: 132px; }

/* Small circular sport glyph, used on the live tabs. */
.ss-icon {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 11px;
  opacity: .85;
}

/* ---------- live odds ---------- */

.live { padding: 16px 12px 8px; }
.live-head { margin-bottom: 12px; }

/* Three equal segments on a phone, so every tab is a wide, obvious target and
   the row never scrolls out of reach. Nothing about a bare <button> tells a
   visitor it can be tapped, which is why the cursor, the border and the active
   underline all have to say so. */
.live-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.live-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 4px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.live-tab:hover { color: #fff; background: var(--panel-2); }
.live-tab.on { color: #10141b; background: var(--gold); }
.live-tab .ss-icon { border-color: currentColor; opacity: .9; }
.view-all { display: none; }

.live-grid {
  display: grid;
  /* Two across on a phone. The card below is sized for ~160px so this holds on
     the narrowest handset in use. */
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mc {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mc-league {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Teams stacked, not "A VS B": at 160px a horizontal pair truncates both names
   to initials. */
.mc-teams { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.mc-teams span {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mc-price {
  padding: 6px 2px;
  text-align: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.mc-price .mc-label { display: block; font-size: 8.5px; color: var(--muted); margin-bottom: 1px; }
.mc-price b {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: Archivo, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
}

/* Two-way markets: the price sits on the line with the competitor it belongs
   to, rather than under an unlabelled "2". */
.mc-pairs { display: flex; flex-direction: column; gap: 4px; }
.mc-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.mc-pair span {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-pair b {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: Archivo, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}

.mc-time { font-size: 10px; color: var(--muted); margin: 8px 0 8px; text-align: center; }

/* Green when a price drifts out, red when it shortens — only ever set from a
   real change between two feed refreshes. */
.mc-price b.mv-up, .mc-pair b.mv-up { color: #4ade80; }
.mc-price b.mv-down, .mc-pair b.mv-down { color: #f87171; }
.mv { font-size: 8px; line-height: 1; }
.mv.up { color: #4ade80; }
.mv.down { color: #f87171; }
@keyframes mvflash { 0% { opacity: .25; } 100% { opacity: 1; } }
.mc-price b.flash, .mc-pair b.flash { animation: mvflash .7s ease; }

.mc-bet {
  margin-top: auto;
  display: block;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mc-bet:hover { border-color: var(--gold); background: rgba(247,181,26,.08); }

/* ---------- how to start ---------- */

.start {
  margin: 18px 16px 0;
  padding: 26px 16px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.start h2 {
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: clamp(20px, 6vw, 30px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 auto 22px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
  width: fit-content;
}
.start ol { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.start li {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.start .step {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #10141b;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 12px;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 10px auto 6px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
}
.step-icon svg { width: 40px; height: 40px; display: block; }

.start li b {
  display: block;
  margin: 8px 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.start li .d { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* ---------- wider screens ---------- */

/* Two across as soon as there is room — a match card is legible at ~230px, and
   a single column wastes half a phone in landscape or on a large handset. */
@media (min-width: 520px) {
  .start ol { grid-template-columns: repeat(2, 1fr); }
  .live-tab { font-size: 12px; }
  .mc { padding: 12px; }
  .mc-teams span { font-size: 13.5px; }
  .mc-price b, .mc-pair b { font-size: 14px; }
  .mc-league { font-size: 10px; }
  .mc-time { font-size: 11px; }
  .mc-bet { font-size: 11px; padding: 9px; }
}

@media (min-width: 780px) {
  .live { padding: 22px 20px 10px; }
  /* Four across, as in the design. */
  .live-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .start ol { grid-template-columns: repeat(4, 1fr); }
  .btn-hero { flex: 0 0 auto; padding: 15px 30px; font-size: 14px; }
  .live-head { display: flex; align-items: center; gap: 12px; }
  .live-tabs { flex: 0 0 auto; grid-template-columns: repeat(3, auto); }
  .live-tab { padding: 8px 20px; }
  .view-all { display: inline-flex; margin-left: auto; }
}

@media (min-width: 780px) {
  /* Enough width for four columns, so the sections stop being drawers and
     become a normal sitemap — all open, no chevrons, nothing to tap first. */
  /* The sections are opened by footer.js at this width; CSS cannot reliably
     force a closed <details> open, because browsers hide its contents through
     the shadow slot rather than a display rule an author can override. */
  .lp-foot { padding: 30px 20px 46px; }
}

@media (min-width: 900px) {
  .lp-top { padding: 18px 20px; }
  .hero {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 20px;
    padding: 54px 20px 50px;
    min-height: 400px;
  }
  .hero-photo {
    position: static;
    width: 100%;
    height: 100%;
    max-height: 400px;
    opacity: 1;
    border-radius: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
  }
  .live { padding: 22px 20px 10px; }
  .start { margin-inline: 20px; padding: 32px 24px 26px; }
}

/* ---------- join page ---------- */

.join-wrap { padding: 18px 14px 36px; }
.join-banner {
  position: relative;
  min-height: 116px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  margin-bottom: 18px;
}
.join-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join-banner-text {
  position: relative;
  z-index: 1;
  padding: 20px 24px;
  width: 100%;
}
.join-banner.has-img .join-banner-text {
  background: linear-gradient(90deg, rgba(8,11,16,.93) 0%, rgba(8,11,16,.75) 55%, rgba(8,11,16,.1) 100%);
}
.join-banner-text b {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: clamp(19px, 4vw, 26px);
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.join-banner-text span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.join-card {
  max-width: 460px;
  margin: 0 auto 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
}
.join-tabs { display: flex; gap: 4px; padding: 4px; }
.join-tab {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.join-tab.on { background: var(--panel-2); color: #fff; }
.join-form { padding: 12px 16px 18px; }
.join-form.hidden { display: none; }
.join-form label { display: block; margin-bottom: 12px; }
.join-form label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.join-form label i { font-style: normal; opacity: .7; }
.join-form input {
  width: 100%;
  padding: 12px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  color: var(--text);
}
.join-form input:focus { outline: none; border-color: var(--gold); }
.join-form small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.join-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #3a1a1f;
  color: #fca5a5;
  font-size: 13px;
}

.join-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.join-points li { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.join-points b { display: block; font-size: 14px; margin-bottom: 4px; }
.join-points span { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- footer ---------- */

.lp-foot {
  padding: 26px 18px 44px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.lp-foot img { display: block; margin: 0 auto 12px; border-radius: 50%; opacity: .9; }
.lp-foot nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.lp-foot nav a { color: #fff; font-size: 13px; font-weight: 600; }
.lp-foot nav a:hover { color: var(--gold); }
.lp-foot .warn { color: #fff; font-weight: 600; font-size: 12px; margin: 0 0 8px; }
.lp-foot p { max-width: 620px; margin: 0 auto; }
