/* Pitch MetRx Marketing Site - Brand colors #8B0000, #950000 */
:root {
  --primary: #8B0000;
  --primary-dark: #950000;
  --primary-light: rgba(139, 0, 0, 0.08);
  --text: #1a1a1a;
  --text-muted: #555;
  --surface: #ffffff;
  --background: #fafafa;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-lg: 12px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f3f4f6;
  border-bottom: 1px solid #d1d5db;
}

.site-header .page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 72px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.header-email {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.header-email:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .header-email {
    display: none;
  }
}

.site-logo {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.cta-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: #ffffff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta-nav:hover {
  background: var(--primary-dark);
  color: #ffffff !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #f3f4f6;
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-bottom: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 320px;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a,
  .nav-links .cta-nav {
    display: block;
    padding: var(--space-md);
    text-align: center;
  }
}

/* Hero - fixed behind scrollable content */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
}

.hero-with-bg {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 0;
  padding: var(--space-3xl) 0;
}

.hero-spacer {
  visibility: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/field.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.scroll-content {
  position: relative;
  z-index: 1;
  background: var(--background);
  overflow: hidden;
}

.hero-logo {
  height: 275px;
  width: auto;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto var(--space-md);
  line-height: 1.25;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-xl);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Sections */
.section {
  padding: var(--space-3xl) 0;
}

.section:nth-child(even) {
  background: var(--surface);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

/* Stats strip */
.stats-strip {
  background: #8B0000;
  color: white;
  padding: var(--space-md) 0;
}

.stats-strip .page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  text-align: center;
}

.stat-item .stat-num {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-item .stat-desc {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Pitch-caller callout */
.callout-block {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.callout-block p {
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
}

.callout-block p + p {
  margin-top: var(--space-md);
}

.callout-block strong {
  color: var(--primary);
}

/* What it is */
.intro p {
  font-size: 1.125rem;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto var(--space-md);
  text-align: center;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.step {
  text-align: center;
  padding: var(--space-lg);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Key features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* For coaches / For pitchers */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.audience-card {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.audience-card ul {
  list-style: none;
}

.audience-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.audience-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* See it in action: three rows */
.media-rows {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.media-row-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.media-row-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.media-row {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.media-row-screenshots {
  grid-template-columns: repeat(3, 1fr);
}

.media-row-videos {
  grid-template-columns: repeat(2, 1fr);
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.media-row-phones {
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
}

.media-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--border);
  border: 2px dashed #999;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
}

.media-placeholder .media-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.media-placeholder p {
  font-size: 0.875rem;
  margin: 0;
}

.media-placeholder.media-screenshot:has(img) {
  padding: 0;
  border: none;
  background: transparent;
}

/* Phone screenshots: 25% smaller than original phone size */
.media-row-phones .media-placeholder.media-phone {
  max-width: 150px;
  aspect-ratio: 9 / 19.5;
  justify-self: center;
}

.media-placeholder.media-video:has(video),
.media-placeholder.media-video:has(.video-custom-thumbnail) {
  padding: 0;
  background: transparent;
  border: 2px solid #9ca3af;
  overflow: hidden;
}

.media-placeholder img,
.media-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}

/* Custom thumbnail for Sample Report video: gray background, logo, label */
.video-custom-thumbnail {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: #d1d5db;
  border-radius: var(--radius-lg);
}

.video-custom-thumbnail img {
  width: auto;
  height: auto;
  max-width: 55%;
  max-height: 50%;
  object-fit: contain;
}

.video-thumbnail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.media-clickable {
  cursor: pointer;
}

.media-clickable:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.media-video {
  aspect-ratio: 16 / 9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Final CTA section */
.cta-section .page {
  text-align: center;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--text);
  color: #ccc;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: 0;
}

.site-footer .page {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 640px) {
  .site-footer .page {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand {
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-xs);
}

.footer-contact {
  margin-bottom: var(--space-md);
}

.footer-contact a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-contact a:hover {
  color: white;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.footer-social a {
  display: inline-block;
  line-height: 0;
}

.footer-social img {
  display: block;
  width: 32px;
  height: 32px;
  opacity: 0.9;
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: white;
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-ctas .btn {
  min-width: 90px;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid #444;
  font-size: 0.875rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}

/* ===== Mobile / Small-screen optimizations ===== */

/* Tablets and smaller: disable parallax hero, tighten spacing */
@media (max-width: 768px) {

  /* Disable fixed hero – let it scroll normally so it doesn't waste screen */
  .hero-with-bg {
    position: relative;
    top: auto;
  }

  .hero-spacer {
    display: none;
  }

  .scroll-content {
    position: static;
    z-index: auto;
  }

  /* Shrink hero logo */
  .hero-logo {
    height: 140px;
  }

  /* Tighten hero padding — eliminate gap between header and hero content */
  .hero-with-bg {
    padding: var(--space-sm) 0 var(--space-lg) 0;
  }

  /* Reduce section padding */
  .section {
    padding: var(--space-xl) 0;
  }

  /* Stats strip: 2-column grid */
  .stats-strip .page {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm) var(--space-md);
  }

  .stat-item .stat-num {
    font-size: 1rem;
  }

  .stat-item .stat-desc {
    font-size: 0.75rem;
  }

  /* Steps: single column */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .step {
    padding: var(--space-md);
  }

  /* Feature cards: single column */
  .features {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Audience cards: single column */
  .audience {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Screenshots: 1 column */
  .media-row-screenshots {
    grid-template-columns: 1fr;
  }

  /* Videos: 1 column */
  .media-row-videos {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Phone screenshots: 2 across */
  .media-row-phones {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-row-phones .media-placeholder.media-phone {
    max-width: 120px;
  }

  /* Footer: stack everything vertically */
  .site-footer .page {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-ctas {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Callout block: tighter padding */
  .callout-block {
    padding: var(--space-md);
  }

  /* Hero CTA buttons: stack full width */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Header: compact on mobile */
  .site-header .page {
    min-height: 0;
    gap: var(--space-sm);
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .site-logo {
    height: 52px;
  }

  .menu-toggle {
    margin-left: auto;
    order: 2;
    padding: 4px;
  }

  .menu-toggle span {
    margin: 3px 0;
  }

  nav {
    order: 3;
  }

  /* Mobile nav dropdown must align to compact header */
  .nav-links {
    top: 56px;
  }
}

/* Very small phones */
@media (max-width: 480px) {

  .hero-logo {
    height: 100px;
  }

  .hero h1 {
    font-size: 1.375rem;
  }

  .hero .tagline {
    font-size: 0.9375rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.9375rem;
  }

  /* Stats strip: still 2 cols but even tighter */
  .stats-strip {
    padding: var(--space-sm) 0;
  }

  .stats-strip .page {
    gap: var(--space-xs) var(--space-sm);
  }

  /* Phone screenshots: still 2 across but smaller */
  .media-row-phones .media-placeholder.media-phone {
    max-width: 100px;
  }

  /* Tighter page padding */
  .page {
    padding: 0 var(--space-md);
  }

  /* Footer bottom */
  .footer-bottom {
    font-size: 0.75rem;
  }
}
