/* =========================================================================
   Kings of Golf · Homepage (v2)
   One responsive page. Mobile-first: base styles are the phone layout,
   then two breakpoints layer on the desktop design.
     --md  ≥ 860px   sections go multi-column
     --lg  ≥ 1100px  desktop nav
     --xl  ≥ 1240px  side-by-side photo hero
   Below 1240 the hero stays stacked like mobile (photo, live card, copy).
   ========================================================================= */

:root {
  /* Kings of Golf tokens (same as the Games app) */
  --green-950: #0E2416;
  --green-900: #13301F;
  --green-800: #17331F;
  --green-700: #1D4A2C;
  --green-500: #2E6B43;
  --surface: #F4F5F1;
  --surface-2: #E9EDE5;      /* sage band */
  --card: #FFFFFF;
  --ink: #14231A;
  --ink-2: #3E4A42;
  --muted: #56625A;
  --line: #E2E5DD;
  --line-2: #DDE2D8;
  --gold: #E8B10F;
  --gold-soft: #FFF6D8;
  --gold-tint: #FCEDB8;
  --gold-ink: #6E5000;
  --up: #1E7A3D;
  --up-soft: #EEF7F0;
  --up-on-dark: #7EE2A0;
  --on-dark: #DCE3DE;
  --on-dark-muted: #C9D3CC;
  --line-on-dark: #4B6656;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1180px;
  --nav-h: 60px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: var(--green-700); }
a:hover { color: var(--green-950); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 30px; line-height: 1.1; }
p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.only-desktop { display: none !important; }

.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.eyebrow--gold { color: var(--gold); }
.link { font-weight: 600; padding: 10px 0; }

/* hole rail accent: settled = green, current = gold */
.rail { display: flex; gap: 3px; }
.rail i { display: block; width: 12px; height: 4px; border-radius: 2px; background: #C7CEC4; }
.rail i.s { background: var(--up); }
.rail i.g { background: var(--gold); }
.rail--dark i { background: #3A5444; }
.rail--dark i.s { background: #3FA866; }
.rail--dark i.g { background: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: var(--radius); border: 0; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--lg { height: 56px; font-size: 18px; padding: 0 26px; }
.btn--sm { height: 44px; font-size: 15px; padding: 0 18px; border-radius: 12px; }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 12px rgba(232,177,15,.35); }
.btn--gold:hover { background: #F2BD1D; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--ghost-dark { background: rgba(14,36,22,.35); color: #fff; border: 1.5px solid rgba(255,255,255,.45); font-weight: 600; }
.btn--ghost-dark:hover { color: #fff; border-color: #fff; }

/* ---------- avatars ---------- */
.avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px; background: var(--line) center / cover no-repeat; }
.avatar--sm { width: 28px; height: 28px; }
.avatar--ring { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav { position: sticky; top: 0; z-index: 20; background: var(--green-950); color: #fff; }
.nav__toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav__inner { max-width: var(--max); margin: 0 auto; height: var(--nav-h); padding: 0 12px 0 var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.nav .brand { flex-grow: 1; min-height: 44px; }
.crown { fill: var(--gold); }
.nav__links { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__code { color: var(--on-dark-muted); font-size: 14px; font-weight: 600; text-decoration: none; padding: 12px 8px; }
.nav__code:hover { color: #fff; }
.nav__menu { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--green-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer { padding: 8px var(--gutter) 20px; border-top: 1px solid #23402E; display: flex; flex-direction: column; }
.nav__toggle:not(:checked) ~ .drawer { display: none; }
.nav__toggle:checked ~ .drawer { display: flex; }
.drawer a:not(.btn) { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid #23402E; }
.drawer .btn { margin-top: 16px; }

/* =========================================================================
   HERO
   Mobile: photo on top (fixed 360px stage), copy below.
   The live card is pinned to the phone in the photo. On mobile the photo
   is height-fitted (0.3 scale) so the phone sits at x = 46% + 81.6px of the
   stage; overlay positions use that formula so the pin stays on the phone
   from 320px to 480px wide. The stage is capped at 480px on tablets.
   ========================================================================= */
.hero { position: relative; background: var(--green-950); color: #fff; overflow: hidden; }
.hero__stage { position: relative; max-width: 480px; height: 360px; margin: 0 auto; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 0%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--green-950) 0%, rgba(14,36,22,.85) 14%, rgba(14,36,22,.35) 36%, rgba(14,36,22,0) 58%); }
.hero__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.hero__ping { position: absolute; left: calc(46% + 41.6px); top: 194px; overflow: visible; }
.hero__line { position: absolute; overflow: visible; }
.hero__line--desktop { display: none; }
.hero__line--mobile { left: calc(46% + 73.6px); top: 244px; }

.live-card { position: absolute; left: calc(46% - 1.4px); top: 274px; width: 192px; padding: 10px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 36px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; animation: rise .6s .3s both; }
.live-card__head { display: flex; justify-content: space-between; padding: 0 4px 3px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.live-card__head .live { color: var(--up); }
.live-card__row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: var(--radius-sm); }
.live-card__row.is-win { background: var(--gold-soft); }
.live-card__row .avatar { width: 26px; height: 26px; }
.live-card__row .avatar--ring { outline-offset: 1px; }
.live-card__row .name { flex-grow: 1; font-size: 14px; font-weight: 600; }
.live-card__row .score { font-size: 16px; font-weight: 700; }
.live-card__row .label { width: 40px; font-size: 12px; font-weight: 600; color: var(--muted); }
.live-card__row .label.win { color: var(--up); }
.live-card__foot { margin-top: 2px; padding: 8px 9px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; justify-content: space-between; }
.live-card__foot .up { color: var(--up-on-dark); }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.hero__inner { position: relative; max-width: 480px; margin: 0 auto; padding: 92px var(--gutter) 36px; background: url(img/contours-dark.svg) left 40% / 900px auto no-repeat; }
.hero__copy { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 40px; line-height: 1.02; letter-spacing: -0.02em; }
.lede { font-size: 17px; color: var(--on-dark); }
.lede__more { display: none; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn--gold { flex: 1 1 100%; }
.join { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: var(--radius); border: 1.5px solid var(--line-on-dark); background: var(--green-800); }
.join label { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--on-dark-muted); }
.join input { flex-grow: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; outline: none; }
.join input::placeholder { color: #6F8577; }
.join button { height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.hero__note { font-size: 14px; color: var(--on-dark-muted); text-align: center; }
.hero__rail, .hero__more { display: none; }

/* =========================================================================
   ANSWER STRIP · concise answer-first blocks for search and AI previews
   ========================================================================= */
.answer-strip { padding: 20px 0 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.answer-strip__head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.answer-strip__head h2 { font-size: 22px; }
.answer-strip__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.answer-strip__grid li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.answer-strip__grid strong { display: block; margin-bottom: 3px; font-size: 15px; line-height: 1.3; }
.answer-strip__grid p { color: var(--ink-2); font-size: 14px; line-height: 1.4; }

/* =========================================================================
   HOW IT WORKS · swipe on mobile, 3-up grid from --md
   ========================================================================= */
.how { background: var(--surface-2) url(img/contours-light.svg) right top / 900px auto no-repeat; border-bottom: 1px solid var(--line-2); padding: 48px 0 40px; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; max-width: 640px; }
.steps { list-style: none; margin: 0; padding: 0 var(--gutter) 6px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 78%; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step__img { height: 170px; background: var(--green-700); }
.step__img img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.step__num { width: 28px; height: 28px; border-radius: 999px; background: var(--green-950); color: var(--gold); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 18px; line-height: 1.25; }
.step p { grid-column: 1 / -1; color: var(--ink-2); font-size: 15px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #C7CEC4; transition: width .2s, background-color .2s; }
.dots span.on { width: 18px; background: var(--up); }

/* =========================================================================
   GAMES · 2×2 on mobile, 4-up from --md
   ========================================================================= */
.games { padding: 44px 0 24px; }
.section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.games h2 { font-size: 26px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.game:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,35,26,.10); }
.game--feature { background: var(--gold-soft); border: 2px solid var(--gold); }
.game__img { position: relative; height: 108px; background: var(--green-700); }
.game__img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; color: var(--gold-ink); background: var(--gold-tint); padding: 2px 8px; border-radius: 999px; }
.game__body { padding: 12px; display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.game__body strong { font-size: 18px; }
.game__desc { display: none; color: var(--ink-2); }
.game__meta { font-size: 13px; color: var(--muted); margin-top: auto; }

/* =========================================================================
   SCOREKEEPER · layered depth stack
   ========================================================================= */
.host { padding: 36px 0 48px; }
.host__grid { display: flex; flex-direction: column; gap: 24px; }
.stack { position: relative; height: 340px; }
.stack__outline { position: absolute; top: 20px; left: 20px; right: 0; bottom: 40px; border: 2px solid var(--gold); border-radius: var(--radius-xl); }
.stack__photo { position: absolute; top: 0; left: 0; right: 20px; bottom: 60px; border-radius: var(--radius-xl); overflow: hidden; background: var(--green-700); box-shadow: 0 20px 40px rgba(20,35,26,.25); }
.stack__photo img { width: 100%; height: 100%; object-fit: cover; }
.result-card { position: absolute; right: 0; bottom: 0; width: 236px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 32px rgba(20,35,26,.22); display: flex; flex-direction: column; gap: 8px; }
.result-card__eyebrow, .result-card__share { display: none; }
.result-card__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result-card__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.result-card__title .avatar { width: 28px; height: 28px; }
.result-card__pay { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--up-soft); }
.result-card__pay span { font-size: 14px; font-weight: 600; }
.result-card__pay strong { font-size: 22px; color: var(--up); font-variant-numeric: tabular-nums; }
.result-card__share { height: 44px; border-radius: 12px; background: var(--gold); font-weight: 700; align-items: center; justify-content: center; }
.host__copy { display: flex; flex-direction: column; gap: 14px; }
.host__copy .rail { display: none; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A3D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* =========================================================================
   AFTER THE ROUND · group-chat stack
   ========================================================================= */
.chat { background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 44px 0 48px; overflow: hidden; }
.chat__grid { display: flex; flex-direction: column; gap: 20px; }
.chat__copy { display: flex; flex-direction: column; gap: 10px; }
.chat__copy p { display: none; color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.collage { position: relative; height: 380px; }
.print { position: absolute; margin: 0; width: 58%; height: 230px; padding: 8px 8px 32px; background: #fff; border-radius: 14px; box-shadow: 0 14px 28px rgba(20,35,26,.22); }
.print span { display: block; width: 100%; height: 100%; border-radius: 8px; background-size: cover; background-repeat: no-repeat; }
.print figcaption { position: absolute; left: 12px; bottom: 9px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.print--left { left: 0; top: 18px; transform: rotate(-6deg); }
.print--right { right: 0; top: 0; transform: rotate(5deg); }
.bubbles { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bubble { padding: 9px 13px; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
.bubble--me { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--up); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.bubble-row { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; }

/* =========================================================================
   TRIPS · photo card on mobile, full-bleed band from --md
   ========================================================================= */
.trips { padding: 40px var(--gutter) 16px; }
.trips__card { position: relative; display: block; height: 440px; border-radius: var(--radius-xl); overflow: hidden; background: var(--green-950); color: #fff; text-decoration: none; }
.trips__card:hover { color: #fff; }
.trips__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; transition: transform .6s ease; }
.trips__card:hover img { transform: scale(1.03); }
.trips__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,36,22,.96) 0%, rgba(14,36,22,.75) 38%, rgba(14,36,22,0) 70%); }
.trips__content { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.trips h2 { font-size: 26px; line-height: 1.12; }
.trips p { font-size: 15px; color: var(--on-dark); }
.trips .btn { margin-top: 4px; height: 50px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chips--dark li { border: 1px solid rgba(255,255,255,.35); }

/* =========================================================================
   LEAGUES
   ========================================================================= */
.leagues { padding: 40px 0; }
.leagues .wrap { display: flex; flex-direction: column; gap: 16px; }
.leagues .section-row { display: contents; }          /* mobile: let the CTA drop below the grid */
.leagues__intro { display: flex; flex-direction: column; gap: 10px; }
.leagues__intro p { display: none; color: var(--ink-2); font-size: 17px; }
.leagues__cta { order: 3; display: flex; flex-direction: column-reverse; gap: 10px; }
.leagues__cta .btn { width: 100%; }
.price { text-align: center; font-size: 14px; color: var(--ink-2); }
.price strong { color: var(--ink); }
.league-grid { order: 2; display: flex; flex-direction: column; gap: 14px; }
.standings { background: var(--green-950) url(img/contours-dark.svg) center / 700px auto no-repeat; color: #fff; border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.standings__row { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.standings__row .name { flex-grow: 1; }
.standings__row.is-lead { color: #fff; font-weight: 600; }
.formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.formats li span { display: none; }

/* =========================================================================
   TESTIMONIAL · FAQ · FINAL · FOOTER
   ========================================================================= */
.quote { padding: 8px 0 32px; }
.quote__card { position: relative; margin: 0; height: 360px; border-radius: var(--radius-xl); overflow: hidden; background: var(--green-950); color: #fff; }
.quote__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; }
.quote__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,36,22,.92) 0%, rgba(14,36,22,.2) 70%); }
.quote__content { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.quote blockquote { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; max-width: 30ch; }
.quote figcaption { font-size: 14px; color: var(--on-dark-muted); }
.quote figcaption strong { color: #fff; }

.faq { padding: 16px 0 40px; }
.faq h2 { font-size: 26px; margin-bottom: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.final { background: var(--green-950) url(img/contours-gold.svg) center / cover no-repeat; color: #fff; padding: 48px 0; }
.final__row { display: flex; flex-direction: column; gap: 18px; }
.final .btn { width: 100%; }

.footer { background: #0A1C11; color: var(--on-dark-muted); padding: 36px 0 104px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.footer__brand p { max-width: 36ch; }
.footer nav { display: flex; flex-direction: column; gap: 4px; }
.footer h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.footer nav a { color: #fff; text-decoration: none; padding: 6px 0; }
.footer nav a:hover { color: var(--gold); }
.footer__base { margin-top: 28px; padding-top: 18px; border-top: 1px solid #23402E; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }

/* sticky mobile action */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(14,36,22,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid #23402E; display: flex; align-items: center; gap: 10px; transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta div { flex-grow: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sticky-cta strong { color: #fff; font-size: 15px; }
.sticky-cta span { color: var(--on-dark-muted); font-size: 12px; }

/* =========================================================================
   --md ≥ 860px · sections go multi-column
   ========================================================================= */
@media (min-width: 860px) {
  :root { --gutter: 24px; }
  h2 { font-size: 40px; }

  .how { padding: 88px 0 72px; background-image: none; position: relative; }
  .answer-strip { padding: 26px 0 24px; }
  .answer-strip__head { margin-bottom: 14px; }
  .answer-strip__head h2 { font-size: 24px; }
  .answer-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .answer-strip__grid li { padding: 14px 16px; }
  .how::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(img/contours-light.svg) calc(50% + 330px) top / 1280px auto no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 180px), #000 calc(50% + 60px), #000 calc(50% + 620px), transparent calc(50% + 860px));
            mask-image: linear-gradient(90deg, transparent calc(50% - 180px), #000 calc(50% + 60px), #000 calc(50% + 620px), transparent calc(50% + 860px)); }
  .how > * { position: relative; }
  .section-head { gap: 10px; margin-bottom: 32px; }
  .steps { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; overflow: visible; }
  .step { border-radius: 20px; }
  .step__img { height: 200px; }
  .step__body { padding: 22px; }
  .step h3 { font-size: 20px; }
  .dots { display: none; }

  .games { padding: 72px 0 40px; }
  .games h2 { font-size: 34px; }
  .section-row { margin-bottom: 24px; }
  .game-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .game { border-radius: 18px; }
  .game__img { height: 170px; }
  .game__body { padding: 18px; gap: 6px; }
  .game__body strong { font-size: 22px; }
  .game__desc { display: block; }
  .game__meta { font-size: 14px; font-weight: 600; padding-top: 8px; }
  .badge { left: 12px; top: 12px; font-size: 12px; padding: 3px 9px; }

  .host { padding: 64px 0; }
  .host__grid { flex-direction: row; align-items: center; gap: 48px; }
  .stack { flex: 1 1 480px; height: 460px; }
  .stack__outline { top: 28px; left: 28px; right: 32px; bottom: 12px; border-radius: 24px; }
  .stack__photo { right: 60px; bottom: 40px; border-radius: 24px; }
  .result-card { width: 300px; padding: 20px; gap: 10px; }
  .result-card__eyebrow { display: block; }
  .result-card__share { display: flex; }
  .result-card__title { font-size: 22px; }
  .result-card__title .avatar { width: 34px; height: 34px; }
  .result-card__pay { padding: 12px 14px; }
  .result-card__pay strong { font-size: 28px; }
  .host__copy { flex: 1 1 400px; gap: 18px; }
  .host__copy .rail { display: flex; }
  .checks { font-size: 16px; gap: 14px; }

  .chat { padding: 80px 0; }
  .chat__grid { flex-direction: row; align-items: center; gap: 48px; }
  .chat__copy { flex: 1 1 380px; gap: 16px; }
  .chat__copy p { display: block; }
  .collage { flex: 1 1 520px; height: 440px; }
  .print { width: 46%; height: 340px; padding: 12px 12px 48px; border-radius: 16px; }
  .print figcaption { left: 16px; bottom: 14px; font-size: 14px; }
  .print--left { left: 4%; top: 30px; }
  .print--right { left: 34%; right: auto; top: 6px; transform: rotate(4deg); }
  .bubbles { left: auto; width: 270px; font-size: 15px; }

  .trips { padding: 0; }
  .trips__card { height: 540px; border-radius: 0; }
  .trips__card img { object-position: 30% 45%; }
  .trips__card::after { background: linear-gradient(270deg, rgba(14,36,22,.96) 0%, rgba(14,36,22,.85) 40%, rgba(14,36,22,.15) 75%); }
  .trips__content { left: auto; right: max(24px, calc(50% - 566px)); bottom: auto; top: 50%; transform: translateY(-50%); width: min(500px, 46%); gap: 16px; }
  .trips h2 { font-size: 40px; line-height: 1.1; }
  .trips p { font-size: 17px; }
  .trips .btn { align-self: flex-start; height: 54px; padding: 0 24px; font-size: 17px; }

  .leagues { padding: 88px 0 40px; }
  .leagues .wrap { gap: 28px; }
  .leagues .section-row { display: flex; align-items: flex-end; margin: 0; order: 1; }
  .leagues__intro { max-width: 620px; gap: 8px; }
  .leagues__intro p { display: block; }
  .leagues__cta { order: 0; flex-direction: row; align-items: center; gap: 16px; }
  .leagues__cta .btn { width: auto; }
  .price { font-size: 15px; }
  .league-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .formats { display: contents; }
  .formats li { padding: 22px; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
  .formats li strong { font-size: 18px; }
  .formats li span { display: block; color: var(--ink-2); }

  .quote { padding: 40px 0; }
  .quote__card { height: 340px; border-radius: 24px; }
  .quote__card img { object-position: 40% 60%; }
  .quote__content { left: 40px; right: 40px; bottom: 40px; gap: 14px; }
  .quote blockquote { font-size: 30px; }

  .faq { padding: 48px 0 80px; }
  .faq h2 { font-size: 32px; }
  .faq details { padding: 18px 20px; }
  .faq summary { font-size: 18px; }

  .final { padding: 72px 0; }
  .final__row { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .final h2 { font-size: 38px; max-width: 18ch; }
  .final .btn { width: auto; }

  .footer { padding: 56px 0 32px; font-size: 15px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: auto; }
  .footer__base { flex-direction: row; justify-content: space-between; }

  .sticky-cta { display: none; }
}

/* =========================================================================
   --lg ≥ 1100px · desktop nav
   ========================================================================= */
@media (min-width: 1100px) {
  .only-desktop { display: revert !important; }
  .btn.only-desktop { display: inline-flex !important; }
  .rail.only-desktop { display: flex !important; }
  .chips.only-desktop { display: flex !important; }
  .only-mobile { display: none !important; }
  :root { --nav-h: 72px; }

  .nav__inner { padding: 0 var(--gutter); gap: 28px; }
  .nav .brand { flex-grow: 0; font-size: 18px; }
  .nav__links { display: flex; flex-grow: 1; justify-content: center; gap: 24px; font-size: 15px; font-weight: 500; }
  .nav__links a { color: var(--on-dark-muted); text-decoration: none; padding: 10px 0; }
  .nav__links a:first-child, .nav__links a:hover { color: #fff; }
  .nav__code { font-size: 15px; }
  .drawer { display: none !important; }

}

/* =========================================================================
   --xl ≥ 1240px · side-by-side photo hero (needs this width so the live card
   clears the friends' faces). 1100–1239 keeps the stacked hero.
   ========================================================================= */
@media (min-width: 1240px) {
  /* Hero: photo fades in from the right at an 8° angle; copy on the left */
  .hero { min-height: 640px; }
  /* contours sit behind the copy column (anchored to page centre, not the window edge) and feather out both ways */
  .hero::before { content: ""; position: absolute; inset: 0; background: url(img/contours-dark.svg) calc(50% - 330px) center / 1280px auto no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - 860px), #000 calc(50% - 620px), #000 calc(50% - 40px), transparent calc(50% + 180px));
            mask-image: linear-gradient(90deg, transparent calc(50% - 860px), #000 calc(50% - 620px), #000 calc(50% - 40px), transparent calc(50% + 180px)); }
  .hero__stage { position: absolute; inset: 0; max-width: none; height: auto; margin: 0; }
  .hero__media { left: calc(50% - 200px); right: auto; width: clamp(840px, calc(50% + 200px), 960px);
    -webkit-mask-image: linear-gradient(82deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 11%, rgba(0,0,0,.05) 14%, rgba(0,0,0,.14) 17%, rgba(0,0,0,.29) 20%, rgba(0,0,0,.48) 23%, rgba(0,0,0,.67) 26%, rgba(0,0,0,.83) 29%, rgba(0,0,0,.94) 32%, #000 35%);
            mask-image: linear-gradient(82deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 11%, rgba(0,0,0,.05) 14%, rgba(0,0,0,.14) 17%, rgba(0,0,0,.29) 20%, rgba(0,0,0,.48) 23%, rgba(0,0,0,.67) 26%, rgba(0,0,0,.83) 29%, rgba(0,0,0,.94) 32%, #000 35%); }
  .hero__media img { object-position: -8px 0; filter: saturate(1.05) contrast(1.03); }
  .hero__media::after { background: linear-gradient(0deg, rgba(14,36,22,.55) 0%, transparent 35%); }
  /* overlay coordinates are relative to the page centre so they track the photo */
  .hero__ping { left: calc(50% + 341px); top: 357px; }
  .hero__line--mobile { display: none; }
  .hero__line--desktop { display: block; left: calc(50% + 372px); top: 226px; }
  .live-card { left: calc(50% + 406px); top: 192px; width: 196px; padding: 12px; border-radius: 18px; gap: 4px; box-shadow: 10px 20px 40px rgba(10,25,15,.35), 0 2px 6px rgba(0,0,0,.15); }
  .live-card__head { font-size: 11px; padding-bottom: 4px; }
  .live-card__row { gap: 10px; padding: 7px 8px; }
  .live-card__row .avatar { width: 30px; height: 30px; }
  .live-card__row .score { font-size: 18px; }
  .live-card__row .label { width: 46px; font-size: 13px; }
  .live-card__foot { margin-top: 4px; padding: 9px 10px; font-size: 13px; border-radius: 10px; }

  .hero__inner { max-width: var(--max); min-height: 640px; padding: 0 var(--gutter); display: flex; align-items: center; background: none; z-index: 3; pointer-events: none; }
  .hero__copy { max-width: 500px; gap: 20px; pointer-events: auto; }
  .hero h1 { font-size: 60px; }
  .lede { font-size: 19px; max-width: 42ch; }
  .lede__more { display: inline; }
  .hero__ctas .btn--gold { flex: 0 0 auto; }
  .join { max-width: 420px; }
  .hero__note { text-align: left; }
  .hero__rail { display: flex; }
  .hero__more { display: inline-flex; }
}

/* very wide screens: soften the photo's right edge into the green */
@media (min-width: 1520px) {
  /* the photo stops at 960px wide, so its right edge eases into the green over ~190px.
     Two masks (left angled fade + right fade) are intersected. */
  .hero__media {
    -webkit-mask-image: linear-gradient(82deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 11%, rgba(0,0,0,.05) 14%, rgba(0,0,0,.14) 17%, rgba(0,0,0,.29) 20%, rgba(0,0,0,.48) 23%, rgba(0,0,0,.67) 26%, rgba(0,0,0,.83) 29%, rgba(0,0,0,.94) 32%, #000 35%),
                        linear-gradient(270deg, rgba(0,0,0,0) 0px, rgba(0,0,0,.06) 22px, rgba(0,0,0,.18) 46px, rgba(0,0,0,.36) 72px, rgba(0,0,0,.57) 100px, rgba(0,0,0,.76) 128px, rgba(0,0,0,.9) 156px, #000 190px);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(82deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 11%, rgba(0,0,0,.05) 14%, rgba(0,0,0,.14) 17%, rgba(0,0,0,.29) 20%, rgba(0,0,0,.48) 23%, rgba(0,0,0,.67) 26%, rgba(0,0,0,.83) 29%, rgba(0,0,0,.94) 32%, #000 35%),
                        linear-gradient(270deg, rgba(0,0,0,0) 0px, rgba(0,0,0,.06) 22px, rgba(0,0,0,.18) 46px, rgba(0,0,0,.36) 72px, rgba(0,0,0,.57) 100px, rgba(0,0,0,.76) 128px, rgba(0,0,0,.9) 156px, #000 190px);
            mask-composite: intersect; }
}

/* tablets: the mobile hero stage is capped at 480px, so feather its sides */
@media (min-width: 481px) and (max-width: 1239px) {
  .hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%); }
}

/* mid viewports: keep stacked hero, but scale it beyond the mobile cap */
@media (min-width: 860px) and (max-width: 1239px) {
  .hero__stage {
    max-width: min(820px, calc(100vw - 80px));
    height: clamp(390px, 43vw, 500px);
  }

  .hero__inner {
    max-width: min(820px, calc(100vw - 80px));
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
