/* ─────────────────────────────────────────────
   Clubbie — Mobile responsive layer
   Scoped under (max-width: 720px). Inherits tokens.
   Patterns:
    · Stacked hero (full-bleed photo + editorial)
    · Compact nav: logo + menu icon + sticky bottom CTA
    · Horizontal-scroll feature cards (swipeable)
    · Horizontal-swipe audiences with dots
    · Simpler pitch / founder / history stacks
    · Full inline reserve form
   ───────────────────────────────────────────── */

@media (max-width: 720px) {

  /* ── Wrap / layout ── */
  .wrap { padding: 0 20px; }
  .wrap--wide { padding: 0 20px; }

  /* ── NAV — logo + menu trigger, hide inline links ── */
  .nav { background: color-mix(in oklab, var(--bg) 92%, transparent); }
  .nav__inner { height: 58px; }
  .nav__brand { font-size: 18px; gap: 8px; }
  .nav__brand-mark { width: 26px; height: 26px; }
  .nav__links { display: none; }
  /* Nav CTA stays visible on mobile — persistent Reserve button in the
     sticky header replaces the bottom sticky CTA bar (dropped as
     redundant). */
  .nav__cta {
    height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
    gap: 6px;
  }
  .nav__cta svg { width: 11px; height: 11px; }

  /* ── HERO — tighter, stacked ── */
  .hero { min-height: 0; }
  .hero__inner {
    min-height: 0;
    padding: 110px 0 44px;
  }
  .hero__logo {
    width: 58px;
    margin-bottom: 14px;
  }
  .hero__eyebrow {
    font-size: 9.5px;
    letter-spacing: 1.4px;
    margin-bottom: 12px;
    gap: 8px;
  }
  .hero__eyebrow::before { width: 16px; }
  .hero__headline {
    font-size: 44px;
    line-height: 0.96;
    max-width: 11ch;
    margin-bottom: 18px;
    text-wrap: balance;
  }
  .hero__lede {
    font-size: 14px;
    line-height: 1.5;
    max-width: 38ch;
    margin-bottom: 20px;
    text-wrap: pretty;
  }
  .hero__ctas { gap: 10px; margin-bottom: 18px; }
  .hero__ctas .btn { height: 46px; padding: 0 20px; font-size: 13.5px; }
  .hero__ctas .btn--ghost-light { display: none; } /* CTA-focused on mobile */
  .hero__platforms {
    gap: 12px;
    font-size: 11px;
  }
  .hero__platforms strong { font-size: 9px; letter-spacing: 1.5px; }
  .hero__meta {
    padding: 10px 0 12px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .hero__meta-inner {
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero__meta-inner::-webkit-scrollbar { display: none; }
  .hero__meta span { white-space: nowrap; }

  /* ── Section spacing ── */
  section { padding: 0; }

  /* ── PITCH ── */
  .pitch { padding: 56px 0; }
  .pitch__kicker { margin-bottom: 32px; }
  .pitch__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pitch__headline {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.02;
  }
  .pitch__headline .wa-word { gap: 6px; }
  .pitch__headline .wa-word svg { width: 22px; height: 22px; }
  .pitch__body { font-size: 15.5px; line-height: 1.6; }
  .pitch__body p { margin: 0 0 16px; }
  .pitch__wa { font-size: 12px; padding: 8px 12px; margin-bottom: 18px; }
  .pitch__sig { margin-top: 32px; padding-top: 22px; font-size: 11px; letter-spacing: 1.3px; }

  /* ── AUDIENCES — tab switcher (Organisers / Players) ── */
  .aud { padding: 56px 0; }
  .aud__header { margin-bottom: 20px; max-width: none; }

  /* Segmented tab bar injected by main.js before .aud__split */
  .aud__tabs {
    display: flex;
    gap: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    margin: 0 0 28px;
    position: relative;
  }
  .aud__tab {
    flex: 1;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    /* Readable-but-clearly-inactive: use fg1 with lowered opacity so
       inactive tabs aren't invisible on the dark bar background. */
    color: var(--fg1);
    opacity: 0.6;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur-base) var(--ease-std),
                opacity var(--dur-base) var(--ease-std),
                color var(--dur-base) var(--ease-std);
  }
  .aud__tab.is-active {
    background: var(--primary);
    color: var(--fg-on-primary);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }

  /* Stack the two columns, show only the active one */
  .aud__split {
    display: block;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .aud__col {
    display: none;
  }
  .aud__col.is-visible { display: block; }

  .aud__kicker { display: none; } /* number/role now in the tab */
  .aud__title {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 14px;
    max-width: 18ch;
    text-wrap: balance;
  }
  .aud__lede {
    font-size: 14.5px;
    line-height: 1.55;
    max-width: none;
    margin-bottom: 22px;
    text-wrap: pretty;
  }
  .aud__list li { padding: 13px 0; gap: 12px; }
  .aud__list li strong {
    font-size: 14.5px;
    line-height: 1.3;
    text-wrap: balance;
  }
  .aud__list li span {
    font-size: 13px;
    line-height: 1.45;
    text-wrap: pretty;
  }
  .aud__list li > svg { width: 22px; height: 22px; }

  /* Hide dots — we use tabs instead */
  .aud__dots { display: none !important; }

  /* ── FEATURES — horizontal-scroll swipe cards ── */
  .m-features {
    padding: 56px 0 48px;
    position: relative;
  }
  .m-features__head {
    padding: 0 20px;
    margin-bottom: 28px;
  }
  .m-features__head .eyebrow { margin-bottom: 14px; }
  .m-features__head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
    max-width: 16ch;
    color: var(--fg1);
  }
  .m-features__head h2 em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }

  .m-feature-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Generous left/right gutter so the first/last card doesn't
       snap flush against the screen edge. scroll-padding-left keeps
       the snap target offset from the track's inner start. */
    padding: 6px 24px 28px;
    scroll-padding-left: 24px;
  }
  .m-feature-track::-webkit-scrollbar { display: none; }

  .m-feature-card {
    flex: 0 0 calc(100% - 56px);
    max-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
  }

  /* Visual area — the hero of the card: shows the screenshot large.
     Height is tuned so ~60% of the phone screen is visible (the
     transform pushes the phone slightly down for visual weight, not
     to hide content). */
  .m-feature-card__visual {
    position: relative;
    height: 340px;
    margin: -4px -6px 0;
    border-radius: 16px;
    background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 14%, transparent));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
  }
  .m-feature-card__visual .phone {
    width: 220px;
    aspect-ratio: 1280 / 2856;
    transform: translateY(22%);
    padding: 6px;
    border-radius: 28px;
  }
  .m-feature-card__visual .phone::before {
    top: 10px;
    width: 62px;
    height: 16px;
    border-radius: 10px;
  }
  .m-feature-card__visual .phone__screen { border-radius: 22px; }

  .m-feature-card__eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 2px;
  }
  .m-feature-card__eyebrow--mixer {
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }
  .m-feature-card__eyebrow--mixer::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
    animation: pulse 1.8s var(--ease-std) infinite;
  }

  .m-feature-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--fg1);
    text-wrap: balance;
  }
  .m-feature-card__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
  }

  .m-feature-card__body {
    font-size: 14px;
    line-height: 1.55;
    color: var(--fg2);
    margin: 0;
  }

  .m-feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .m-feature-card__list li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
    color: var(--fg1);
  }
  .m-feature-card__list li:last-child { border-bottom: 1px solid var(--border); }
  .m-feature-card__list li svg {
    color: var(--primary);
    margin-top: 2px;
  }
  .m-feature-card__list li strong { font-weight: 600; color: var(--fg1); }

  /* Progress dots for feature scroll */
  .m-feature-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 6px;
  }
  .m-feature-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-strong);
    transition: all var(--dur-base) var(--ease-std);
  }
  .m-feature-dots span.is-active {
    background: var(--primary);
    width: 22px;
    border-radius: 3px;
  }

  /* Hide desktop feature rows on mobile */
  .feature,
  .mixer__grid {
    /* Keep structure, hide when .m-features is shown */
  }
  section#sessions, section#payments, section#mixer, section#clubhub, section#history {
    display: none;
  }

  /* ── FOUNDER ── */
  .founder { padding: 56px 0; }
  .founder__grid { grid-template-columns: 1fr; gap: 28px; }
  .founder__photo { aspect-ratio: 4/5; max-width: 260px; margin: 0 auto; }
  .founder__caption { align-items: center; text-align: center; margin-top: 14px; }
  .founder__note { padding-top: 0; text-align: left; }
  .founder__note .eyebrow { margin-bottom: 18px; }
  .founder__quote {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 22px;
  }
  .founder__body { font-size: 15px; line-height: 1.65; }
  .founder__body p { margin: 0 0 14px; }

  /* ── DUBLIN sign-off ── */
  .dublin { padding: 64px 0 40px; }
  .dublin__giant {
    font-size: clamp(56px, 16vw, 88px);
    line-height: 0.9;
    letter-spacing: -0.03em;
  }
  .dublin__meta {
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    font-size: 10px;
    letter-spacing: 1.4px;
  }

  /* ── RESERVE ── */
  .reserve { padding: 56px 0 96px; } /* extra bottom for sticky CTA */
  .reserve__grid { grid-template-columns: 1fr; gap: 32px; }
  .reserve__lead h2 { font-size: clamp(30px, 8vw, 42px); }
  .reserve__lead .lede { font-size: 15.5px; margin-bottom: 24px; }
  .reserve__form {
    padding: 22px 20px 26px;
    border-radius: 16px;
  }
  .reserve__field { margin-bottom: 16px; }
  .reserve__label { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 8px; }
  .reserve__input, .reserve__select { height: 46px; font-size: 15px; }
  .reserve__url { height: 46px; }
  .reserve__url-suffix { font-size: 12px; padding: 0 12px; }
  .reserve__row { grid-template-columns: 1fr; gap: 14px; }
  .reserve__segmented { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .reserve__seg { padding: 10px 4px; font-size: 12.5px; }
  .reserve__submit { height: 52px; font-size: 14.5px; }

  /* ── FOOTER ── */
  .foot {
    padding: 32px 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 60px; /* clear sticky CTA */
  }
  .foot__links {
    gap: 14px 20px;
    font-size: 13px;
  }

  /* ── AUDIENCES: segmented toggle pattern ── */
  .aud { padding: 48px 0 56px; }
  .aud__header { margin-bottom: 20px; max-width: none; }

  /* Hero polish: bigger logo */
  .hero__logo { width: 88px; margin-bottom: 18px; }

  /* Hide the text "Available on iOS · Android · Web" row */
  .hero__platforms { display: none; }

  /* Hide the bottom meta strip (Est. 2026 · Dublin · etc.) */
  .hero__meta { display: none; }

  /* Reduce bottom padding since meta strip is gone */
  .hero__inner { padding-bottom: 32px; }

  /* Hero breathing room */
  .hero .wrap { padding-left: 28px; padding-right: 28px; }

  /* Slightly more left padding overall for editorial feel */
  .wrap { padding-left: 24px; padding-right: 24px; }
}

/* Hide mobile-only elements on desktop. */
@media (min-width: 721px) {
  .m-features,
  .aud__dots,
  .m-feature-dots { display: none !important; }
}

/* ─── App-store badges (desktop + mobile) ─── */
.hero__stores {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px 0 14px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.22);
  font-family: -apple-system, system-ui, 'Figtree', sans-serif;
  transition: transform var(--dur-fast) var(--ease-std), filter var(--dur-fast) var(--ease-std);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.store-badge:hover { transform: translateY(-1px); filter: brightness(1.1); }
.store-badge:active { transform: scale(0.98); }

.store-badge svg {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
  color: #fff;
}
.store-badge--google svg { width: 22px; height: 24px; }
.store-badge--ios svg { fill: #fff; }
.store-badge--google svg { fill: #fff; }

.store-badge__pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--fg-on-primary);
  border-radius: 4px;
  vertical-align: 1px;
}

.store-badge__txt {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  text-align: left;
}
.store-badge__hint {
  font-size: 9.5px;
  letter-spacing: 0.6px;
  text-transform: none;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.store-badge__name {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: #fff;
}

/* Scale badges down slightly for narrow viewports */
@media (max-width: 380px) {
  .store-badge { height: 48px; padding: 0 12px 0 10px; gap: 8px; }
  .store-badge__name { font-size: 15.5px; }
  .store-badge__hint { font-size: 9px; }
}
