/* ==========================================================================
   Stadium Scout — Waitlist Landing Page
   Brand: Navy #002D62 | Red #C41E3A | Gold #C9B037
   Heading font: Bebas Neue | Body: Inter | Subtitle: Oswald
   ========================================================================== */

:root {
  --navy: #002D62;
  --red: #C41E3A;
  --gold: #C9B037;
  --bg: #ffffff;
  --bg-soft: #f7f7f9;
  --border: rgba(0, 45, 98, 0.1);
  --text: #002D62;
  --muted: rgba(0, 45, 98, 0.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --container: 1200px;
  --font-heading: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-sub: 'Oswald', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- A11y helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--navy); color: #fff;
  padding: 8px 16px; z-index: 1000;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 18px;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 22px;
  letter-spacing: 1px;
}

/* ---------- Header ---------- */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand {
  font-family: var(--font-heading);
  font-size: 36px;
  letter-spacing: 2px;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1464701116432-f476204d6c45?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy {
  text-align: center;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: 1px;
}
.hero-subtitle {
  font-family: var(--font-sub);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--navy);
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .hero { padding: 6rem 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { text-align: left; }
  .hero-cta { justify-content: flex-start; }
}

/* ---------- Phones ---------- */
.phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}
.phone {
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.phone-side { transform: translateY(2rem) scale(0.9); opacity: 0.9; }
.phone-side:hover { opacity: 1; }
.phone-center { position: relative; z-index: 2; }
.phone-center:hover { transform: scale(1.03); }

.phone-frame {
  background: #111827;
  border-radius: 2.5rem;
  padding: 0.625rem;
  box-shadow: var(--shadow-xl);
  width: 260px;
}
.phone-center .phone-frame { width: 280px; }
.phone-screen {
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  height: 540px;
  display: flex;
  flex-direction: column;
}
.phone-center .phone-screen { height: 580px; }

/* Tablet & mobile: show only the Home Feed phone (the hero) at a larger scale */
@media (max-width: 1023px) {
  .phone-center, .phone-right { display: none; }
  .phone-left {
    transform: none;
    opacity: 1;
  }
  .phone-left .phone-frame {
    width: 340px;
    max-width: 100%;
  }
  .phone-left .phone-screen { height: 660px; }
}

@media (max-width: 767px) {
  .phones { padding: 0 1rem; }
  .phone-left .phone-frame { width: min(340px, calc(100vw - 3rem)); }
}

/* Phone screen UI shared */
.phone .b { font-weight: 500; color: var(--navy); }
.phone .m { color: var(--navy); opacity: 0.6; font-size: 11px; }

.ps-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.ps-header.big { padding: 0.75rem 1rem; border-bottom: 0; }
.ps-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.75px;
}
.ps-brand.big { font-size: 24px; }
.ps-add {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ps-add.big { width: 32px; height: 32px; font-size: 18px; }

.ps-search-wrap { padding: 0.5rem 0.75rem; background: #fff; }
.ps-search {
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  display: flex; gap: 0.4rem; align-items: center;
  font-size: 11px;
  color: rgba(0,45,98,0.5);
}

.ps-stories {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0.75rem 1rem;
  background: #fff;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid #f3f4f6;
  min-height: 96px;
}
.ps-stories::-webkit-scrollbar { display: none; }
.ps-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}
.ps-bubble {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ps-bubble.active { border-color: var(--red); }
.ps-bubble-plus {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ps-story span {
  font-size: 10px;
  line-height: 1.3;
  color: var(--navy);
  opacity: 0.75;
  display: block;
  margin-top: 8px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-story:first-child span { opacity: 1; font-weight: 500; }

.ps-subtitle {
  padding: 0.25rem 1rem 0.5rem;
  background: #fff;
  font-size: 12px;
  color: var(--navy);
  opacity: 0.7;
  border-bottom: 1px solid #e5e7eb;
}

.ps-tabs {
  display: flex; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.ps-tab {
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 10px;
  color: var(--navy);
  white-space: nowrap;
}
.ps-tab.active {
  border: 2px solid var(--red);
  background: #fff5f5;
  color: var(--red);
}

.ps-games-block {
  background: #fdf6ec;
  padding: 0.75rem 0 0.85rem;
  margin-top: 0.25rem;
}
.ps-section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--navy);
  padding: 0.5rem 0.75rem 0.5rem;
}
.ps-games-block .ps-section-label { padding-bottom: 0.5rem; }
.ps-game-card {
  margin: 0 0.75rem 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border-radius: 0.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  box-shadow: var(--shadow-sm);
}
.ps-game-card:last-child { margin-bottom: 0; }
.ps-game-card .b { font-size: 11px; }
.ps-game-card .m { font-size: 10px; }

.ps-post {
  margin: 0.5rem 0.75rem 0;
  padding: 0.6rem;
  background: #fff;
  border-radius: 0.5rem;
  border-top: 1px solid #f3f4f6;
}
.ps-post-head { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.ps-post-meta { flex: 1; min-width: 0; }
.ps-post-name-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.ps-trending {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.75px;
  color: var(--red);
  background: #fff5f5;
  border: 1px solid rgba(196,30,58,0.2);
  border-radius: 0.25rem;
  padding: 1px 5px;
}
.ps-post-more {
  font-size: 16px;
  color: var(--navy);
  opacity: 0.5;
  line-height: 1;
  padding-left: 0.25rem;
}
.ps-avatar {
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
  flex-shrink: 0;
}
.ps-post .b { font-size: 11px; }
.ps-post .m { font-size: 9px; opacity: 0.5; }
.ps-post-text { font-size: 11px; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.4; }
.ps-post-img {
  background: #f3f4f6;
  border-radius: 0.5rem;
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}

.ps-event-card {
  margin: 0 1rem 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}
.ps-event-card .t {
  font-size: 12px; font-weight: 600;
  color: var(--navy); margin-bottom: 0.5rem;
}
.ps-event-card .m {
  font-size: 11px;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: 0.25rem;
  display: flex; align-items: center; gap: 0.25rem;
}
.ps-event-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.5rem;
}
.btn-mini {
  background: var(--red);
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.25rem 0.6rem;
  font-size: 10px;
  font-weight: 600;
}

/* Chat phone */
.ps-chat-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.ps-chat-avatar {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.ps-chat-header .b { font-size: 11px; }
.ps-chat-header .m { font-size: 9px; opacity: 0.6; }
.ps-gear { margin-left: auto; opacity: 0.5; }

.ps-chat-bubble {
  display: flex; gap: 0.5rem;
  padding: 0.75rem 0.75rem 0.25rem;
}
.ps-chat-mini-avatar {
  width: 24px; height: 24px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.ps-chat-msg {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 11px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.ps-chat-react {
  font-size: 10px;
  color: var(--navy);
  opacity: 0.6;
  padding: 0 0.75rem 0.75rem;
  text-align: left;
}

.ps-chat-suggest {
  margin: 0 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 0.5rem;
}
.ps-chat-suggest .t {
  font-size: 10px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.ps-chat-pill {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 10px;
  color: var(--navy);
}

.ps-chat-input {
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex; gap: 0.5rem; align-items: center;
}
.ps-chat-field {
  flex: 1;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 10px;
  color: rgba(0,45,98,0.6);
}
.ps-chat-send {
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}

/* Bottom nav (shared) */
.ps-nav {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem 0.4rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.ps-nav-item {
  text-align: center;
  color: var(--navy);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ps-nav-item.active { color: var(--red); opacity: 1; }
.ps-nav-icon { font-size: 16px; }
.ps-nav-svg { width: 18px; height: 18px; }
.ps-nav-item span {
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 0.5px;
  display: block;
}
.ps-nav-camera {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-top: -0.5rem;
  box-shadow: 0 4px 8px rgba(196,30,58,0.3);
}
.ps-home-bar {
  height: 4px;
  width: 100px;
  background: #111;
  border-radius: 2px;
  margin: 4px auto 6px;
}

/* Make scrollable areas inside phones not steal page scroll */
.phone-screen { overflow: hidden; }

/* ---------- Features section ---------- */
.features {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature { text-align: center; }
.feature-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.feature-title {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.feature-text {
  color: var(--navy);
  max-width: 32ch;
  margin: 0 auto;
}

.vip-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  border: 2px solid var(--red);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .vip-card {
    flex-direction: row;
    text-align: left;
    padding: 3rem;
    gap: 2.5rem;
  }
}
.vip-icon {
  width: 96px; height: 96px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.vip-title {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.vip-text { color: var(--navy); font-size: 1.05rem; line-height: 1.6; }

/* ---------- Section title ---------- */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: 1px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 3rem;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 5rem 0; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.t-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 18px;
}
.t-name { font-weight: 500; color: var(--navy); }
.t-role { font-size: 14px; color: var(--navy); opacity: 0.6; }
.t-quote { color: var(--navy); }

/* ---------- Signup ---------- */
.signup {
  padding: 5rem 0;
  background: var(--bg-soft);
}
.signup-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.signup-title {
  margin-bottom: 1rem;
  line-height: 1.05;
}
.signup-sub {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 640px) { .signup-form { flex-direction: row; } }
.signup-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
}
.signup-form input[type="email"]::placeholder { color: rgba(0,45,98,0.5); }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,45,98,0.15);
}
.form-error {
  margin-top: 1rem;
  color: var(--red);
  font-weight: 500;
}
.form-success {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 600;
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { font-size: 28px; margin-bottom: 0.25rem; }
.copyright { font-size: 14px; color: var(--navy); opacity: 0.7; }

.social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 44px; height: 44px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.social-btn:hover { opacity: 0.85; transform: translateY(-2px); }

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

/* ---------- Print ---------- */
@media print {
  .site-header, .signup, .site-footer, .phones { display: none; }
  .hero, .features, .testimonials { padding: 1rem 0; }
}
