/* SeatConnect Redesign — Base Styles */

/* ── Greycliff CF (primary display + UI family) */
@font-face {
  font-family: 'Greycliff CF'; font-weight: 300; font-style: normal;
  src: url('fonts/GreycliffCF-Light.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 400; font-style: normal;
  src: url('fonts/GreycliffCF-Regular.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 400; font-style: italic;
  src: url('fonts/GreycliffCF-RegularOblique.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 500; font-style: normal;
  src: url('fonts/GreycliffCF-Medium.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 600; font-style: normal;
  src: url('fonts/GreycliffCF-DemiBold.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 700; font-style: normal;
  src: url('fonts/GreycliffCF-Bold.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 700; font-style: italic;
  src: url('fonts/GreycliffCF-BoldOblique.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 800; font-style: normal;
  src: url('fonts/GreycliffCF-ExtraBold.otf') format('opentype'); font-display: swap;
}
@font-face {
  font-family: 'Greycliff CF'; font-weight: 900; font-style: normal;
  src: url('fonts/GreycliffCF-Heavy.otf') format('opentype'); font-display: swap;
}

/* ── Aktiv Grotesk Ex Black — big statement moments only */
@font-face {
  font-family: 'Aktiv Grotesk Ex Black';
  src: url('fonts/AktivGrotesk-ExBlack.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Recent Grotesk Bold — secondary display (alternate numerals / tabular) */
@font-face {
  font-family: 'Recent Grotesk';
  src: url('fonts/RecentGrotesk-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand fonts */
  --font-display: 'Greycliff CF', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-impact: 'Aktiv Grotesk Ex Black', 'Greycliff CF', -apple-system, sans-serif;
  --font-sans: 'Greycliff CF', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-serif: 'Greycliff CF', -apple-system, sans-serif; /* deprecated — aliased to display */
  --accent: #6B3DE8; /* SeatConnect purple from logo */
  --accent-soft: #EFE8FE;
  --accent-ink: #4A25B8;
  --accent-2: #9B7AF0;
  --ink: #0B0D10;
  --ink-2: #1B1F24;
  --ink-3: #464C54;
  --ink-4: #6B7280;
  --ink-5: #9AA0A6;
  --line: #E8E5E0;
  --line-2: #F2EFEA;
  --bg: #FBFAF7;
  --bg-2: #F5F2EC;
  --card: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11,13,16,0.04), 0 1px 3px rgba(11,13,16,0.06);
  --shadow: 0 8px 24px rgba(11,13,16,0.06), 0 2px 6px rgba(11,13,16,0.04);
  --shadow-lg: 0 24px 60px rgba(11,13,16,0.12), 0 8px 20px rgba(11,13,16,0.06);
  --density: 1;
}

[data-mode="dark"] {
  --ink: #F5F3EF;
  --ink-2: #E2DFD9;
  --ink-3: #A8A49C;
  --ink-4: #7A766D;
  --ink-5: #54504A;
  --line: #262420;
  --line-2: #1A1916;
  --bg: #0E0D0B;
  --bg-2: #161412;
  --card: #17140F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.site {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Greycliff CF — Hero, Page Title, Section Title, CTA */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: inherit;
  letter-spacing: -0.01em;
}
/* Type ramp per spec — line heights match pt values */
.t-hero   { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.t-page   { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.01em; }
.t-section{ font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 24px; letter-spacing: 0; }
.t-cta    { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 20px; letter-spacing: 0.01em; }
.t-body   { font-family: var(--font-sans); font-weight: 400; font-size: 16px; line-height: 22px; }
.t-subhead{ font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 20px; }
.t-caption{ font-family: var(--font-sans); font-weight: 400; font-size: 12px; line-height: 16px; }
.t-overline{ font-family: var(--font-sans); font-weight: 500; font-size: 12px; line-height: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}

.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--line-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.hairline {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pulse dot */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

/* Feed item slide in */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Tweaks */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  width: 280px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-sans);
  color: var(--ink);
}
.tweaks-panel h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-4);
}
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: block;
}
.tweak-swatches { display: flex; gap: 6px; }
.tweak-swatch {
  width: 26px; height: 26px; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 0.15s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active { border-color: var(--ink); }
.tweak-segmented {
  display: flex; gap: 4px; padding: 3px;
  background: var(--bg-2); border-radius: 8px;
}
.tweak-seg-btn {
  flex: 1; padding: 6px 10px; border-radius: 6px;
  font-size: 12px; border: none; cursor: pointer;
  background: transparent; color: var(--ink-3);
  font-family: inherit;
}
.tweak-seg-btn.active {
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE LAYER — class-based, not inline-style-matched.
   Every targeted element has a real semantic className so we're
   not relying on fragile [style*="..."] selectors. Keeps specificity
   low and predictable.
   ═══════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  /* Two-column hero / NoFees / split headers collapse early */
  .sc-hero-grid,
  .sc-two-col,
  .sc-split-header,
  .sc-anatomy-grid {
    grid-template-columns: 1fr !important;
    gap: 56px !important;
  }

  /* 4-col card grids drop to 2-col on tablet */
  .sc-card-grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }

  /* 3-col card grid drops to 1-col */
  .sc-card-grid-3 { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Hub directory — 2x2 on tablet (each tile keeps its span) */
  .sc-hub-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sc-hub-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }

  /* Hub explainer drops to single column early */
  .sc-hub-explainer { grid-template-columns: 1fr !important; }
  .sc-hub-explainer > * {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 20px 0 !important;
  }
  .sc-hub-explainer > *:last-child { border-bottom: none !important; }
}

/* ── MOBILE (≤ 768px) ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .site { max-width: 100%; overflow-x: hidden; }
  .container { padding: 0 20px !important; }

  /* Section vertical rhythm */
  .site section { padding-top: 64px !important; padding-bottom: 64px !important; }

  /* Every tagged grid → single column (tablet already collapsed most) */
  .sc-hero-grid,
  .sc-two-col,
  .sc-split-header,
  .sc-card-grid-3,
  .sc-footer-grid,
  .sc-anatomy-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* ── HERO ── */
  .sc-hero-stage {
    height: auto !important;
    min-height: 560px !important;
    padding: 40px 0 !important;
  }
  .sc-hero-stage > div:first-child { transform: scale(0.9) !important; }
  .sc-hero-chip { display: none !important; }
  .site h1.display { line-height: 1 !important; }

  /* Hero stats — wrap, kill dividers */
  .sc-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    text-align: left !important;
  }
  .sc-stat-divider { display: none !important; }
  .sc-hero-stats .sc-stat-num { font-size: 30px !important; }

  /* Generic stat row (TeamHubsC footer) */
  .sc-stat-row {
    gap: 20px !important;
    padding-top: 24px !important;
    margin-top: 40px !important;
  }
  .sc-stat-row > div[style*="width: 1px"] { display: none !important; }

  /* Pillars wrapper — strip the 48px desktop horizontal padding on mobile
     so the kicker/title and carousel below align with the 20px page gutter
     (matching the "AN IDENTITY" callouts and section header above). */
  .sc-pillars-wrap {
    padding: 40px 0 24px !important;
  }

  /* ── HORIZONTAL CAROUSELS for 4-col card grids ── */
  .sc-card-grid-4 {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-columns: 78% !important;
    grid-auto-flow: column !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 20px 20px 20px !important;
    scroll-padding-left: 20px !important;
    margin: 0 -20px !important;
    scrollbar-width: none !important;
  }
  .sc-card-grid-4::-webkit-scrollbar { display: none !important; }
  .sc-card-grid-4 > * {
    scroll-snap-align: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Hub grid — horizontal swipe carousel on mobile with peek of next tile.
     Reset inline grid-column/grid-row spans so each tile becomes a snap slide. */
  .sc-hub-grid {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-columns: 82% !important;
    grid-auto-flow: column !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 20px 20px 20px !important;
    scroll-padding-left: 20px !important;
    margin: 0 -20px !important;
    scrollbar-width: none !important;
  }
  .sc-hub-grid::-webkit-scrollbar { display: none !important; }
  .sc-hub-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
    scroll-snap-align: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 280px !important;
  }

  /* Hub header — stack, center-left */
  .sc-hub-header { flex-direction: column !important; align-items: flex-start !important; }

  /* Mobile hub swipe hint */
  .sc-hub-mobile-hint {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin: 4px 0 12px !important;
  }

  /* ── NAV ── */
  header nav { display: none !important; }
  header .container { padding: 0 20px !important; }
  .sc-footer-grid { text-align: center !important; gap: 36px !important; }
  .sc-footer-grid > * { text-align: center !important; }

  /* ── BUTTONS ── */
  .btn { padding: 13px 18px !important; font-size: 14px !important; }

  /* ── PHONE FRAMES ── */
  .sc-phone,
  div[style*="width: 320"] {
    max-width: 100% !important;
  }

  /* ── TWEAKS PANEL ── */
  .tweaks-panel { display: none !important; }

  /* ── IMAGES ── */
  /* Only stretchable content images, not header/logo/icon images that have explicit heights.
     Previously this blew up <Logo> (height: 24) and the SEATCONNECT wordmarks inside phone frames. */
  img:not([style*="height"]):not([height]) { max-width: 100% !important; height: auto !important; }

  /* ── MIN-WIDTHS ── */
  [style*="min-width: 248"], [style*="minWidth: 248"],
  [style*="min-width: 300"], [style*="minWidth: 300"],
  [style*="min-width: 360"], [style*="minWidth: 360"] {
    min-width: 0 !important;
  }
}

/* ── SMALL MOBILE (≤ 420px) ── */
@media (max-width: 420px) {
  .container { padding: 0 16px !important; }
  .site h1.display { font-size: clamp(40px, 11vw, 54px) !important; }
  .sc-hero-stats .sc-stat-num { font-size: 26px !important; }
  .sc-hero-stage > div:first-child { transform: scale(0.82) !important; transform-origin: center top; }
  .sc-hero-stage { min-height: 520px !important; }

  /* Tighter section padding on tiny screens */
  .site section { padding-top: 52px !important; padding-bottom: 52px !important; }

  /* App store badges — stack full width */
  a[href*="apps.apple.com"],
  a[href*="play.google.com"] {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TARGETED FIXES — things that don't have class hooks yet
   (Two Worlds, inline-style components from library code, etc.)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Two Worlds — rotate the 1px vertical divider to horizontal */
  .two-worlds-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .two-worlds-grid > [style*="width: 1px"] {
    width: 40% !important;
    height: 1px !important;
    justify-self: center !important;
    margin: 8px 0 !important;
  }

  /* Two Worlds — center the CO orb on mobile (was left-flush in stacked grid) */
  .sc-tw-orb {
    justify-self: center !important;
    margin: 8px auto !important;
  }

  /* ──────────────────────────────────────────────────────────────
     HOW IT WORKS — 3 step cards as horizontal swipe carousel
     (tablet already collapses to 1-col stack; override to a carousel)
     ────────────────────────────────────────────────────────────── */
  #how-it-works .sc-card-grid-3 {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-columns: 78% !important;
    grid-auto-flow: column !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 20px 20px 20px !important;
    scroll-padding-left: 20px !important;
    margin: 0 -20px !important;
    scrollbar-width: none !important;
  }
  #how-it-works .sc-card-grid-3::-webkit-scrollbar { display: none !important; }
  #how-it-works .sc-card-grid-3 > * {
    scroll-snap-align: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 280px !important;
  }

  /* ──────────────────────────────────────────────────────────────
     FAN CARDS ANATOMY — callouts as a single horizontal carousel
     Phone sits above, callouts swipe below with a visible hint.
     ────────────────────────────────────────────────────────────── */
  .sc-anatomy-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 80px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .sc-anatomy-grid .sc-anatomy-phone {
    order: 1 !important;
  }
  .sc-anatomy-grid .sc-anatomy-hint {
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--accent) !important;
    margin: 12px 0 -4px !important;
  }
  .sc-anatomy-grid .sc-anatomy-callouts--left { display: none !important; }
  .sc-anatomy-grid .sc-anatomy-callouts--right { display: none !important; }
  .sc-anatomy-grid .sc-anatomy-callouts--mobile { display: none !important; }

  /* ══════════════════════════════════════════════════════════════
     MOBILE BENEFIT RAIL — purpose-built, renders as a SIBLING of
     .sc-anatomy-grid so it's not trapped inside maxWidth: 1200px.
     Full-bleed: spans edge to edge, with proper internal padding.
     ══════════════════════════════════════════════════════════════ */
  .sc-benefit-rail-wrap {
    /* Break out of .container's horizontal padding */
    width: 100vw !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: -40px !important;
    margin-bottom: 80px !important;
    padding: 0 !important;
    overflow: hidden !important; /* clip any transform bleed */
  }
  .sc-benefit-rail {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 20px 24px 20px !important;
    scroll-padding-left: 20px !important;
    scrollbar-width: none !important;
  }
  .sc-benefit-rail::-webkit-scrollbar { display: none !important; }

  .sc-benefit-pill {
    flex: 0 0 72% !important;
    scroll-snap-align: start !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    padding: 18px 18px !important;
    box-shadow: 0 2px 6px rgba(10, 8, 30, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .sc-benefit-pill__num {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    color: var(--accent) !important;
  }
  .sc-benefit-pill__label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    line-height: 1.2 !important;
  }
  .sc-benefit-pill__body {
    font-size: 13px !important;
    color: var(--ink-2) !important;
    line-height: 1.5 !important;
  }
}

/* Hide the mobile-only swipe hint + benefit rail on tablet & desktop */
@media (min-width: 769px) {
  .sc-anatomy-hint { display: none !important; }
  .sc-anatomy-callouts--mobile { display: none !important; }
  .sc-benefit-rail-wrap { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — NAV, APP BADGES, DOWNLOAD CTA, FOOTER
   Round 2 of targeted fixes
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── NAV — hide link list, keep Logo + Get-the-app button visible ── */
  .sc-nav-links { display: none !important; }
  .sc-nav-inner {
    padding: 0 20px !important;
    gap: 12px !important;
  }
  .sc-nav-cta-btn {
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  /* ── APP BADGES — equal width, full-row on mobile ── */
  .sc-app-badge {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    padding: 10px 14px !important;
  }
  /* Container row hugs the badges evenly */
  .sc-app-badge + .sc-app-badge { margin-left: 0 !important; }

  /* ── DOWNLOAD CTA — keep watermark out of the headline path ── */
  .sc-cta-watermark {
    top: 24px !important;
    width: 40% !important;
    max-width: 220px !important;
    opacity: 0.12 !important;
  }

  /* ── FOOTER — full center alignment on mobile ── */
  .sc-footer-grid {
    text-align: center !important;
    gap: 36px !important;
  }
  .sc-footer-grid > * {
    text-align: center !important;
  }
  .sc-footer-brand { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .sc-footer-brand p { max-width: 320px !important; margin-left: auto !important; margin-right: auto !important; }
  .sc-footer-questions { text-align: center !important; }
  .sc-footer-questions p { max-width: 320px !important; margin-left: auto !important; margin-right: auto !important; text-align: center !important; }

  /* Bottom bar — stack + center everything */
  .sc-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .sc-footer-legal {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .sc-footer-disclaimer {
    text-align: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 420px) {
  /* On very narrow screens, app badges stack full width */
  .sc-app-badge {
    flex: 1 1 100% !important;
    width: 100% !important;
    justify-content: center !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE — ROUND 3: Nav collapse earlier (tablet widths)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .sc-nav-links { display: none !important; }
  .sc-nav-inner {
    padding: 0 20px !important;
    gap: 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — ROUND 4: fix from real-iPhone feedback
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── HOW IT WORKS — start-anchored so slide 1 fully shows,
     with slide 2 peeking as a clear swipe affordance (not centered) ── */
  #how-it-works .sc-card-grid-3 > * {
    scroll-snap-align: start !important;
  }
  #how-it-works .sc-card-grid-3 {
    padding-right: 40px !important;
    grid-auto-columns: 78% !important;
  }

  /* ── TEAM HUBS (TeamHubsB) — true horizontal swipe, one phone-card per slide.
     Reset the inline 2-col grid and turn each phone-card into a snap slide. ── */
  .sc-teamhubs-phones {
    display: grid !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 86% !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 20px 24px !important;
    margin: 0 -20px !important;
    max-width: none !important;
    scrollbar-width: none !important;
  }
  .sc-teamhubs-phones::-webkit-scrollbar { display: none !important; }
  .sc-teamhubs-phone-card {
    scroll-snap-align: start !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* ── TWO WORLDS marquee — the "OTHER TICKET APPS..." running text
     was overflowing out the right edge of the phone frame mockup.
     Let the text wrap on mobile, keep the uppercase mono treatment. ── */
  .two-worlds-marquee,
  .two-worlds-grid [class*="marquee"] {
    white-space: normal !important;
    word-break: normal !important;
    text-align: center !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  /* ── DOWNLOAD CTA — more breathing room above the headline so the
     faded SEATCONNECT watermark doesn't kiss the "Join for the tickets" line.
     Also dial down watermark opacity so it doesn't read as a heading. ── */
  .sc-cta-watermark {
    top: 18px !important;
    width: 56% !important;
    max-width: 260px !important;
    opacity: 0.08 !important;
  }
  #download .container,
  section[id*="download"] .container {
    padding-top: 40px !important;
  }

  /* "Social marketplace · Fan-to-fan · No fees" line — tight tracking
     made this line run past the viewport. Tighten tracking + allow wrap. */
  .sc-cta-taglist {
    letter-spacing: 0.14em !important;
    font-size: 10px !important;
    line-height: 1.8 !important;
    padding: 0 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

