/* ============================================================
   Report Buddy - Marketing Site Stylesheet
   AI-Powered Police Report Writing Tool
   ============================================================
   Table of Contents:
   1.  CSS Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Layout & Container
   5.  Utility Classes
   6.  Buttons
   7.  Navigation
   8.  Hero Section
   9.  Problem Section
   10. Feature Grid
   11. Court Prep Section (Dark)
   12. How It Works
   13. Pricing Cards
   14. FAQ / Accordion
   15. About Section
   16. Contact Section
   17. Footer
   18. 404 Page
   19. Animations & Keyframes
   20. Scroll Reveal System
   21. Reduced Motion
   22. Responsive: 640px
   23. Responsive: 1024px
   24. Responsive: 1280px
   ============================================================ */


/* ==========================================================
   1. CSS Custom Properties
   ========================================================== */

:root {
  /* Palette - Backgrounds */
  --bg-white: #ffffff;
  --bg-alt: #f8f9fc;
  --bg-dark: #0f1729;
  --bg-dark-card: #1a2540;
  --bg-dark-card-hover: #1f2d4d;

  /* Palette - Gold Accent */
  --gold: #e0ac3e;
  --gold-hover: #cc9a2e;
  --gold-light: rgba(224, 172, 62, 0.12);
  --gold-glow: rgba(224, 172, 62, 0.25);

  /* Palette - Text */
  --text-heading: #0f1729;
  --text-body: #3d4a66;
  --text-muted: #6b7a9e;
  --text-light: #f8f9fc;
  --text-light-muted: #8a96b0;

  /* Palette - Borders */
  --border: #e2e8f0;
  --border-dark: #2a3a5c;

  /* Typography */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-padding: 5rem;
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 8px 30px rgba(15, 23, 41, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 23, 41, 0.16);
  --shadow-gold: 0 4px 20px rgba(224, 172, 62, 0.3);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;

  /* Z-Index Scale */
  --z-nav: 50;
  --z-mobile-menu: 40;
  --z-overlay: 30;
  --z-sticky: 20;
}


/* ==========================================================
   2. Reset & Base
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

::selection {
  background-color: var(--gold-light);
  color: var(--text-heading);
}


/* ==========================================================
   3. Typography
   ========================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================
   4. Layout & Container
   ========================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1400px;
}

section,
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-light);
}

.section-dark p,
.section-dark li {
  color: var(--text-light-muted);
}

.section-dark .section-label {
  color: var(--gold);
}

main {
  min-height: 100vh;
}


/* ==========================================================
   5. Utility Classes
   ========================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text color */
.text-muted    { color: var(--text-muted); }
.text-gold     { color: var(--gold); }
.text-heading  { color: var(--text-heading); }

/* Flex */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive grids */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  line-height: 1.5;
}

.badge-gold {
  background-color: var(--gold);
  color: var(--bg-dark);
}

.badge-pro {
  background-color: var(--gold);
  color: var(--bg-dark);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visually hidden but focusable */
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ==========================================================
   6. Buttons
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

/* Primary - Gold */
.btn-primary {
  background-color: var(--gold);
  color: var(--text-heading);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: var(--shadow-gold);
}

.btn-primary:active {
  background-color: var(--gold-hover);
  box-shadow: 0 2px 8px rgba(224, 172, 62, 0.2);
}

/* Secondary - Navy outline */
.btn-secondary {
  background-color: transparent;
  color: var(--text-heading);
  border-color: var(--text-heading);
}

.btn-secondary:hover {
  background-color: var(--text-heading);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  background-color: var(--text-heading);
  color: var(--bg-white);
}

/* Secondary - Light (on dark bg) */
.btn-secondary-light {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-md);
}

/* Ghost - Minimal */
.btn-ghost {
  background-color: transparent;
  color: var(--text-body);
  padding: 0.625rem 1.25rem;
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--bg-alt);
  color: var(--text-heading);
  transform: translateY(0);
}

/* Large */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Small */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* Full width */
.btn-block {
  display: flex;
  width: 100%;
}

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Icon inside button */
.btn svg,
.btn .btn-icon {
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
}


/* ==========================================================
   7. Navigation
   ========================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1rem 0;
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease,
    padding 300ms ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  z-index: calc(var(--z-nav) + 1);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  transition: color 300ms ease;
}

/* Transparent state (default on hero) */
.nav {
  background-color: transparent;
}

.nav .nav-link {
  color: var(--text-light);
}

.nav .nav-logo-text {
  color: var(--text-light);
}

/* Scrolled state */
.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 0;
}

.nav.scrolled .nav-link {
  color: var(--text-body);
}

.nav.scrolled .nav-link:hover {
  color: var(--text-heading);
}

.nav.scrolled .nav-logo-text {
  color: var(--text-heading);
}

.nav.scrolled .hamburger span {
  background-color: var(--text-heading);
}

/* Desktop links (hidden on mobile by default) */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--bg-white);
}

/* Nav actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-login {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  transition: color var(--duration-fast) ease;
}

.nav-login:hover {
  color: var(--gold);
}

.nav.scrolled .nav-login {
  color: var(--text-body);
}

.nav.scrolled .nav-login:hover {
  color: var(--gold);
}

.nav-cta {
  padding: 0.625rem 1.5rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    opacity var(--duration-fast) ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-dark);
  z-index: var(--z-mobile-menu);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 41, 0.6);
  z-index: calc(var(--z-mobile-menu) - 1);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-normal) ease,
    visibility var(--duration-normal) ease;
}

.mobile-nav-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0.75rem 0;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    color var(--duration-fast) ease;
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 50ms; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 100ms; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 150ms; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 200ms; }
.mobile-nav.open .mobile-nav-link:nth-child(5) { transition-delay: 250ms; }
.mobile-nav.open .mobile-nav-link:nth-child(6) { transition-delay: 300ms; }
.mobile-nav.open .mobile-nav-link:nth-child(7) { transition-delay: 350ms; }
.mobile-nav.open .mobile-nav-link:nth-child(8) { transition-delay: 400ms; }

.mobile-nav-link:hover {
  color: var(--gold);
}

.mobile-nav-actions {
  margin-top: auto;
  padding-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ==========================================================
   8. Hero Section
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(224, 172, 62, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(224, 172, 62, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold);
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Hero stagger children */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

/* Hero screenshot / mockup */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.hero-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(224, 172, 62, 0.08);
  border: 1px solid var(--border-dark);
}

.hero-mockup img {
  width: 100%;
  display: block;
}

.hero-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background-color: var(--bg-dark-card);
  border-bottom: 1px solid var(--border-dark);
}

.hero-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-dark);
}

.hero-mockup-dot:nth-child(1) { background-color: #ff5f57; }
.hero-mockup-dot:nth-child(2) { background-color: #febc2e; }
.hero-mockup-dot:nth-child(3) { background-color: #28c840; }


/* ==========================================================
   9. Problem Section
   ========================================================== */

.problem {
  padding: var(--section-padding) 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.problem-column {
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.problem-column h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-body);
  line-height: 1.6;
}

.problem-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  margin-top: 0.6rem;
  flex-shrink: 0;
}


/* ==========================================================
   10. Feature Grid
   ========================================================== */

.features {
  padding: var(--section-padding) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.feature-icon svg,
.feature-icon img {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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


/* ==========================================================
   11. Court Prep Section (Dark)
   ========================================================== */

.court-prep {
  padding: var(--section-padding) 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.court-prep .section-header {
  text-align: center;
}

.court-prep .section-title {
  color: var(--text-light);
}

.court-prep .section-subtitle {
  color: var(--text-light-muted);
}

.court-prep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.court-prep-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) ease;
}

.court-prep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background-color: var(--bg-dark-card-hover);
}

.court-prep-card .badge-pro {
  margin-bottom: 1rem;
}

.court-prep-card h3 {
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.court-prep-card p {
  color: var(--text-light-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ==========================================================
   12. How It Works
   ========================================================== */

.how-it-works {
  padding: var(--section-padding) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  padding-left: 3rem;
}

/* Vertical connecting line (mobile) */
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 2px;
  background-color: var(--border);
}

.step {
  position: relative;
}

.step-number {
  position: absolute;
  left: -3rem;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  z-index: 1;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 400px;
}

/* Horizontal layout overrides applied at desktop breakpoint below */


/* ==========================================================
   13. Pricing Cards
   ========================================================== */

.pricing {
  padding: var(--section-padding) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-plan {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.5;
}

.pricing-feature svg,
.pricing-check {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Checkmark using pseudo-element if no SVG */
.pricing-check::before {
  content: '\2713';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
}


/* ==========================================================
   14. FAQ / Accordion
   ========================================================== */

.faq {
  padding: var(--section-padding) 0;
}

.faq-group {
  margin-bottom: 2.5rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-heading);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--duration-fast) ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.faq-chevron svg {
  width: 18px;
  height: 18px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out-expo);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-body);
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ==========================================================
   15. About Section
   ========================================================== */

.about {
  padding: var(--section-padding) 0;
}

/* Founder story */
.about-story {
  margin-bottom: 4rem;
}

.about-story-text {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.8;
  color: var(--text-body);
  max-width: 720px;
}

.about-story-text strong {
  color: var(--text-heading);
}

/* Credentials */
.about-credentials {
  margin-bottom: 4rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
}

.credential-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--gold-light);
  color: var(--gold);
  flex-shrink: 0;
}

.credential-icon svg {
  width: 20px;
  height: 20px;
}

.credential-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  font-weight: 500;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.value-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    border-color var(--duration-fast) ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.value-card h4 {
  margin-bottom: 0.5rem;
}

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

/* Mission callout */
.mission-callout {
  background-color: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
}

.mission-callout h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mission-callout p {
  color: var(--text-light-muted);
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mission-callout .section-label {
  color: var(--gold);
}


/* ==========================================================
   16. Contact Section
   ========================================================== */

.contact {
  padding: var(--section-padding) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Form */
.contact-form-wrapper {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: 0.8125rem;
  color: #e53e3e;
  margin-top: 0.375rem;
}

.form-submit {
  width: 100%;
}

/* Form states */
.form-loading .form-submit {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.form-loading .form-submit::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--text-heading);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--gold-light);
  color: var(--gold);
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--gold-light);
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-heading);
  font-weight: 500;
}

.contact-info-value a {
  transition: color var(--duration-fast) ease;
}

.contact-info-value a:hover {
  color: var(--gold);
}


/* ==========================================================
   17. Footer
   ========================================================== */

.footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

/* Brand column */
.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light-muted);
}

/* Link columns */
.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  transition: color var(--duration-fast) ease;
}

.footer-link:hover {
  color: var(--gold);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-light-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  font-size: 0.8125rem;
  color: var(--text-light-muted);
  transition: color var(--duration-fast) ease;
}

.footer-bottom-link:hover {
  color: var(--gold);
}


/* ==========================================================
   18. 404 Page
   ========================================================== */

.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 2rem;
}

.page-404-content {
  max-width: 520px;
}

.page-404-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}


/* ==========================================================
   19. Animations & Keyframes
   ========================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes navFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* ==========================================================
   20. Scroll Reveal System
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing card reveal variant */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Parallax background */
.parallax-bg {
  will-change: transform;
}


/* ==========================================================
   21. Reduced Motion
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Page fade-in */
  main {
    animation: fadeIn var(--duration-normal) var(--ease-out-expo) both;
  }

  /* Nav fade-in with delay */
  .nav {
    animation: navFadeIn var(--duration-normal) ease 200ms both;
  }

  /* Hero stagger */
  .hero-content > *:nth-child(1) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 0ms both;
  }

  .hero-content > *:nth-child(2) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 100ms both;
  }

  .hero-content > *:nth-child(3) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 200ms both;
  }

  .hero-content > *:nth-child(4) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 300ms both;
  }

  .hero-content > *:nth-child(5) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 400ms both;
  }

  .hero-content > *:nth-child(6) {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 500ms both;
  }

  .hero-visual {
    animation: fadeInUp var(--duration-slow) var(--ease-out-expo) 400ms both;
  }

  /* How It Works connecting line */
  .steps::before {
    transform-origin: top;
    animation: lineGrow 1s var(--ease-out-expo) 300ms both;
  }
}

/* Kill all animations and transitions for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .hero-content > *,
  .hero-visual {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================
   22. Responsive: 640px (sm)
   ========================================================== */

@media (min-width: 640px) {
  /* Grids */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Problem grid */
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Court prep */
  .court-prep-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Mission callout */
  .mission-callout {
    padding: 4rem 3rem;
  }

  /* Contact form */
  .contact-form-wrapper {
    padding: 3rem;
  }
}


/* ==========================================================
   23. Responsive: 1024px (md)
   ========================================================== */

@media (min-width: 1024px) {
  /* Navigation: show desktop links, hide hamburger */
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-actions {
    display: flex;
  }

  /* Grids */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero two-column */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-content {
    flex: 1;
    max-width: 560px;
  }

  .hero-visual {
    flex: 1;
    max-width: 540px;
  }

  /* Feature grid 3-col */
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Court prep 3-col */
  .court-prep-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* How It Works - horizontal */
  .steps {
    flex-direction: row;
    padding-left: 0;
    gap: 2rem;
  }

  .steps::before {
    /* Horizontal line */
    top: 20px;
    bottom: auto;
    left: 60px;
    right: 60px;
    width: auto;
    height: 2px;
    transform-origin: left;
  }

  @media (prefers-reduced-motion: no-preference) {
    .steps::before {
      animation-name: lineGrowH;
    }
  }

  .step {
    flex: 1;
    text-align: center;
    padding-top: 3.5rem;
  }

  .step-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }

  .step p {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact two-column */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Footer 4-col */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Values 3-col */
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes lineGrowH {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}


/* ==========================================================
   24. Responsive: 1280px (lg)
   ========================================================== */

@media (min-width: 1280px) {
  :root {
    --section-padding: 6rem;
    --container-padding: 2rem;
  }

  /* Hero more breathing room */
  .hero {
    padding: 10rem 0 6rem;
  }

  .hero-inner {
    gap: 5rem;
  }

  /* Larger type scale at largest breakpoint */
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  /* Steps wider spacing */
  .steps {
    gap: 3rem;
  }

  /* Pricing cards wider */
  .pricing-grid {
    max-width: 920px;
  }

  .pricing-card {
    padding: 3rem 2.5rem;
  }

  /* Footer wider brand column */
  .footer-brand {
    max-width: 360px;
  }
}


/* ==========================================================
   Print Styles
   ========================================================== */

@media print {
  .nav,
  .mobile-nav,
  .mobile-nav-backdrop,
  .footer,
  .btn,
  .hero::before {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section-dark {
    background-color: #fff;
    color: #000;
  }

  .section-dark h1,
  .section-dark h2,
  .section-dark h3,
  .section-dark h4,
  .section-dark h5,
  .section-dark h6,
  .section-dark p,
  .section-dark li {
    color: #000;
  }
}


/* ==========================================================
   25. HTML Class Aliases & Additional Styles
   ========================================================== */

/* Mobile nav overlay (body.nav-open pattern) */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: var(--z-mobile-menu);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  overflow-y: auto;
}

body.nav-open .mobile-nav-overlay {
  transform: translateX(0);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
  transition: color var(--duration-fast) ease;
}

.mobile-nav-close:hover {
  color: var(--gold);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-overlay .mobile-nav-link {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo),
    color var(--duration-fast) ease;
}

body.nav-open .mobile-nav-overlay .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(1) { transition-delay: 50ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(2) { transition-delay: 100ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(3) { transition-delay: 150ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(4) { transition-delay: 200ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(5) { transition-delay: 250ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(6) { transition-delay: 300ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(7) { transition-delay: 350ms; }
body.nav-open .mobile-nav-overlay .mobile-nav-link:nth-child(8) { transition-delay: 400ms; }

/* Page-level layout for non-home pages */
.main-page {
  padding-top: 5rem;
}

/* Section heading / sub aliases */
.section-heading {
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.section-dark .section-heading {
  color: var(--text-light);
}

.section-dark .section-sub {
  color: var(--text-light-muted);
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 8rem 0 4rem;
  background-color: var(--bg-dark);
  text-align: center;
}

.page-hero-heading,
.page-hero-headline,
.page-hero .section-heading,
.page-hero h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 1.125rem;
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero-sub a {
  color: var(--gold);
}

/* Hero element aliases */
.hero-headline {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-light-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero-screenshot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(224, 172, 62, 0.08);
  border: 1px solid var(--border-dark);
}

.hero-screenshot-frame img {
  width: 100%;
  display: block;
}

/* Problem section aliases */
.problem-col {
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}

.problem-subheading {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Feature card title/desc aliases */
.feature-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Court section aliases */
.court-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.court-card {
  position: relative;
  background-color: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
}

.court-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.court-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--gold);
}

.court-card-title {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.court-card-desc {
  color: var(--text-light-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Badge aliases */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.badge-gold {
  background-color: var(--gold-light);
  color: var(--gold);
}

.badge-pro {
  background-color: var(--gold);
  color: var(--bg-dark);
}

.badge-popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--bg-dark);
  white-space: nowrap;
}

/* Pricing aliases */
.pricing-tier {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.pricing-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pricing-card-featured {
  position: relative;
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold);
}

.pricing-card-featured .pricing-amount {
  color: var(--gold-hover);
}

/* Check icon */
.check-icon {
  flex-shrink: 0;
  color: var(--gold);
  display: inline-block;
  vertical-align: middle;
}

.check-icon.gold {
  color: var(--gold);
}

/* Text utilities */
.text-link {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.text-link:hover {
  color: var(--gold-hover);
}

/* FAQ section heading */
.faq-section-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* About page specific */
.about-text {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.8;
  color: var(--text-body);
  max-width: 720px;
}

.about-photo-placeholder {
  width: 100%;
  max-width: 360px;
  height: 400px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border: 2px dashed var(--border);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.credential-title {
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

/* Mission box */
.mission-box {
  background-color: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
}

.mission-box h2,
.mission-box h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mission-box p {
  color: var(--text-light-muted);
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Value card title/desc */
.value-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

/* Contact page specific */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.contact-card svg {
  flex-shrink: 0;
  color: var(--gold);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.dept-callout {
  background-color: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.dept-callout h3,
.dept-callout h4 {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

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

/* Contact form native elements */
.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Spinner for loading button */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

/* 404 page aliases */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-heading {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

.cta-section .section-heading {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature detail (features page - alternating layout) */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-detail + .feature-detail {
  border-top: 1px solid var(--border);
}

.feature-detail-visual,
.feature-detail-icon {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-detail-placeholder,
.feature-detail-icon {
  width: 100%;
  height: 100%;
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.feature-detail-placeholder svg,
.feature-detail-icon svg {
  width: 64px;
  height: 64px;
  color: var(--gold);
}

.feature-detail-title {
  margin-bottom: 1rem;
}

.feature-detail-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
}

.feature-detail-content h3 {
  margin-bottom: 1rem;
}

.feature-detail-content p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Feature comparison table */
.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table thead {
  background-color: var(--bg-dark);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 1rem 1.5rem;
  text-align: left;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--bg-alt);
}

/* Responsive additions */
@media (min-width: 640px) {
  .court-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero-media {
    flex: 1;
  }

  .about-story {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

  .feature-detail {
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail-reverse {
    direction: rtl;
  }

  .feature-detail-reverse > * {
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
