/* ============================================================ landing =====
   Logged-out marketing front door (rendered by js/pages/auth.js into #app).
   A full-scroll page: sticky nav, hero with a device mockup, feature sections
   that sell the football + loot pillars, a how-it-works strip, and the
   login/signup forms as the closing CTA. The form panels reuse the shared
   .auth-* / .stat-chip styles from onboarding.css; everything else is lp-*.    */

.lp {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(var(--s4), 4vw, var(--s6)) var(--s7);
  color: var(--text);
}

/* ----------------------------------------------------------------- nav ---- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 60px;
  margin-bottom: var(--s4);
  background: var(--glass);
  backdrop-filter: var(--blur);
  /* Bleed the glass bar to the page edges while the content stays in-column. */
  box-shadow: 0 0 0 100vmax var(--glass);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--line);
}

.lp-brand {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.lp-lang {
  min-height: 36px;
  padding: 0 var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font: 500 var(--fs-sm) var(--font);
  cursor: pointer;
}

.lp-nav-btn {
  min-height: 36px;
}

/* ---------------------------------------------------------------- hero ---- */
.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s5), 5vw, var(--s7));
  padding: clamp(var(--s5), 5vw, var(--s7)) 0 var(--s7);
}

/* Warm radial glow behind the hero, echoing the in-game hero treatment. */
.lp-hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 70%;
  background: radial-gradient(60% 80% at 30% 20%, rgba(227, 183, 101, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s3);
}

.lp-kicker {
  color: var(--gold);
  font-size: var(--fs-cap);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lp-hero-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lp-hero-tagline {
  margin: 0;
  color: var(--gold);
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 600;
}

.lp-hero-lede {
  margin: 0;
  max-width: 48ch;
  color: var(--text-2);
  font-size: clamp(var(--fs-body), 1.6vw, 17px);
  line-height: 1.65;
}

.lp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s2);
}

.lp-cta-lg {
  min-height: 48px;
  padding: 0 var(--s5);
  font-size: var(--fs-body);
}

.lp-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}

/* --------------------------------------------------------- device mockup -- */
.lp-hero-art {
  position: relative;
  z-index: 1;
  /* Headroom so the overlapping phone isn't clipped. */
  padding: 0 clamp(var(--s4), 4vw, var(--s6)) clamp(var(--s5), 5vw, var(--s6)) 0;
}

.lp-mockup {
  position: relative;
}

.lp-laptop-screen {
  aspect-ratio: 16 / 10;
  padding: 8px;
  background: #050507;
  border: 2px solid var(--line-strong);
  border-radius: 14px 14px 4px 4px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.lp-laptop-screen img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  object-position: top center;
}

.lp-laptop-base {
  position: relative;
  width: 114%;
  height: 14px;
  margin: 0 0 0 -7%;
  background: linear-gradient(180deg, #2a2a31, #131317);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow-1);
}

.lp-laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 16%;
  height: 5px;
  transform: translateX(-50%);
  background: #0a0a0c;
  border-radius: 0 0 6px 6px;
}

.lp-phone {
  position: absolute;
  right: -2%;
  bottom: -7%;
  width: 24%;
  min-width: 96px;
  aspect-ratio: 9 / 19;
  padding: 5px;
  background: #050507;
  border: 3px solid #2a2a31;
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.lp-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.lp-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ------------------------------------------------------------ features ---- */
.lp-features {
  display: grid;
  gap: clamp(var(--s6), 6vw, var(--s7));
  padding: var(--s6) 0;
}

.lp-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(var(--s5), 5vw, var(--s7));
}

/* Alternate the art to the left on even rows for a zig-zag rhythm. */
.lp-feature:nth-child(even) .lp-feature-art {
  order: -1;
}

.lp-feature-copy {
  display: grid;
  gap: var(--s3);
}

.lp-feature-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lp-feature-copy p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.65;
}

.lp-feature-art {
  display: grid;
  justify-items: center;
}

/* Marquee fixture card (pyramid feature). */
.lp-fixture {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 0, rgba(227, 183, 101, 0.14), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-1);
}

.lp-fixture-comp {
  color: var(--gold);
  font-size: var(--fs-cap);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lp-fixture-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s4);
  width: 100%;
}

.lp-fixture-side {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  min-width: 0;
}

.lp-fixture-side canvas {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.lp-fixture-name {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}

.lp-vs {
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lp-fixture-meta {
  color: var(--text-3);
  font-size: var(--fs-cap);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-fixture-cta {
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* When the marquee is a real played match, the whole card links to its replay. */
.lp-fixture--clickable {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lp-fixture--clickable:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 44%, var(--line-strong));
  box-shadow: var(--shadow-2);
}

.lp-fixture--clickable:focus-visible {
  outline: var(--focus-ring-w) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* Inline text link under a feature's copy (e.g. "View the live league →"). */
.lp-feature-links {
  margin-top: var(--s1);
}

.lp-inline-link {
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 650;
  text-decoration: none;
}

.lp-inline-link:hover {
  text-decoration: underline;
}

/* Dungeon tier strip. */
.lp-tier-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  width: 100%;
}

.lp-tier {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lp-tier img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lp-tier figcaption {
  padding: var(--s2) var(--s3);
  color: var(--text-2);
  font-size: var(--fs-cap);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Art tile grids (loot items, monster sets, bands). */
.lp-art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: var(--s3);
  width: 100%;
}

.lp-art-cell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.lp-art-cell:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.lp-art-cell img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Loot items grid is roomier than the square sets/bands grid. */
.lp-feature-art .lp-art-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
}

.lp-art-wide {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

/* Rarity strip — reuses the in-game .item-card.rar-* glow language. */
.lp-rarity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}

.item-card.lp-rar {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
}

.item-card.lp-rar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.item-card.lp-rar .item-name {
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* -------------------------------------------------------------- steps ----- */
.lp-section-title {
  margin: 0 0 var(--s5);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.lp-steps {
  padding: var(--s6) 0;
  border-top: 1px solid var(--line);
}

.lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.lp-step {
  display: grid;
  gap: var(--s2);
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.lp-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(227, 183, 101, 0.12);
  color: var(--gold);
}

.lp-step-icon svg {
  width: 22px;
  height: 22px;
}

.lp-step h3 {
  margin: var(--s1) 0 0;
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lp-step p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* -------------------------------------------------------------- claim ----- */
.lp-claim {
  padding: clamp(var(--s6), 5vw, var(--s7)) 0 var(--s6);
  border-top: 1px solid var(--line);
}

.lp-claim-head {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s5);
  text-align: center;
}

.lp-claim-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lp-claim-head p {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--text-2);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.lp-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  max-width: 820px;
  margin: 0 auto;
}

.lp-auth .auth-panel {
  margin-bottom: 0;
}

/* The forms live outside .onboard now, so restate the panel-heading style that
   onboarding.css scopes to .onboard (otherwise components.css renders it as a
   tiny uppercase caption). */
.lp-auth .auth-panel h3 {
  margin: 0 0 var(--s4);
  color: var(--text);
  font-size: var(--fs-title);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: none;
}

/* ------------------------------------------------------------- footer ----- */
.lp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  color: var(--text-3);
}

.lp-footer-note {
  font-size: var(--fs-sm);
}

/* ---------------------------------------------- public preview shell ------ */
/* Slim chrome for the read-only pages a logged-out visitor can open from the
   landing (a match's commentary, the live league). */
.public-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 60px;
  padding: 0 clamp(var(--s4), 4vw, var(--s6));
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}

.public-bar .lp-brand {
  text-decoration: none;
}

.public-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.public-bar-actions .btn {
  min-height: 36px;
  text-decoration: none;
}

/* --------------------------------------------------------- responsive ----- */
@media (max-width: 900px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: var(--s6);
  }

  .lp-hero-art {
    padding-right: clamp(var(--s5), 8vw, var(--s7));
    max-width: 560px;
  }

  .lp-feature {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  /* Keep a consistent copy→art reading order once stacked. */
  .lp-feature:nth-child(even) .lp-feature-art {
    order: 0;
  }

  .lp-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-auth {
    grid-template-columns: 1fr;
    gap: var(--s4);
    max-width: 440px;
  }
}

@media (max-width: 560px) {
  .lp-nav-btn {
    padding-inline: var(--s3);
  }

  .lp-feature-art .lp-art-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-steps-grid {
    grid-template-columns: 1fr;
  }

  .lp-phone {
    width: 28%;
  }
}
