/* =============================================================================
   LANDING PAGE - MOBILE-FIRST CSS ARCHITECTURE
   Issue: er-07y3

   Strategy: Mobile-first with min-width breakpoints
   - Base styles = Mobile (0-767px)
   - Tablet: @media (min-width: 768px)
   - Desktop: @media (min-width: 1200px)
   ============================================================================= */

/* =============================================================================
   DESIGN TOKENS (CSS Variables)
   ============================================================================= */

:root {
  /* Colors */
  --color-primary: rgb(66, 149, 174);
  --color-primary-dark: rgb(1, 92, 101);
  --color-primary-light: rgb(155, 196, 203);
  --color-cream: rgb(247, 245, 238);
  --color-white: white;
  --color-gray-text: #666;
  --color-gray-dark: #1a1a1a;
  --color-dark-text: rgb(36, 35, 35);
  --color-gray-muted: #aaa;
  --color-border: #e5e7eb;

  /* New design system colors */
  --color-navy: rgb(50, 65, 88);
  --color-lime: rgb(205, 255, 0);
  --color-teal-light: rgb(157, 197, 206);
  --color-yellow-accent: rgb(230, 231, 149);
  --color-footer-bg: rgb(0, 0, 0);

  /* Spacing */
  --space-xs: 10px;
  --space-sm: 15px;
  --space-md: 20px;
  --space-lg: 30px;
  --space-xl: 40px;
  --space-2xl: 60px;
  --space-3xl: 80px;

  /* Typography */
  --font-heading: georgia, palatino, "book antiqua", "palatino linotype", serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-caps: avenir-lt-w01_85-heavy1475544, sans-serif;

  /* Font sizes - mobile base */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 26px;
  --text-3xl: 33px;
  --text-4xl: 56px;

  /* Line heights */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;
  --leading-quote: 1.8;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 50px;
  --radius-circle: 50%;
  --radius-pill: 27px;

  /* Header */
  --header-height-mobile: 70px;
  --header-height-desktop: 93px;

  /* Letter spacing */
  --tracking-tighter: -0.99px;
  --tracking-tight: -0.18px;
  --tracking-normal: normal;

  /* Font weights */
  --weight-normal: 400;
  --weight-bold: 700;

  /* White opacity aliases (for dark/navy sections) */
  --color-white-muted: var(--color-white-muted);
  --color-white-dim: var(--color-white-dim);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* =============================================================================
   RESET & BASE STYLES
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height-mobile) + 5px);
  -webkit-text-size-adjust: 100%;
  /* Global overflow prevention (er-07y3) */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  letter-spacing: -0.18px;
  color: var(--color-primary-dark);
  background: var(--color-cream);
  min-height: 100vh;
  /* Global overflow prevention (er-07y3) */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

h1, h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.99px;
  color: var(--color-primary-dark);
  margin-bottom: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: -0.2px;
  color: var(--color-primary-dark);
  margin-bottom: 0;
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.99px;
  color: var(--color-primary-dark);
  margin: 0;
}

h5 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: -0.18px;
  line-height: 23.4px;
  color: var(--color-primary-dark);
  margin: 0;
}

h6 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: var(--color-primary-dark);
  margin: 0;
}

p {
  margin: 0;
}

.section-subtitle {
  font-family: var(--font-caps);
  font-size: var(--text-lg);
  line-height: 27px;
  letter-spacing: -0.18px;
  color: var(--color-primary-dark);
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  /* Mobile touch target: ensure minimum 44px height (er-kfpo) */
  min-height: 44px;
  min-width: 44px;
}

/* Lime CTA button - primary call to action */
.btn--lime {
  background: var(--color-lime);
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 0;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
  width: 248px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1.1px;
  text-transform: none;
  transition: all var(--transition-normal);
}

.btn--lime:hover {
  background: rgb(185, 235, 0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(205, 255, 0, 0.4);
}

/* Free trial note below CTA buttons */
.cta-note {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  line-height: 18.2px;
  letter-spacing: -0.14px;
  color: var(--color-primary-dark);
  text-align: center;
  margin-top: var(--space-xs);
}

.section--dark .cta-note {
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   HEADER - Mobile First
   ============================================================================= */

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-sm);
  background: #000;
  z-index: 52;
}

.header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-link {
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.header__nav {
  display: none; /* Hidden on mobile */
}

.header__nav-link {
  color: white;
  line-height: 30px;
  padding: 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  transition: opacity var(--transition-normal);
}

.header__nav-link:hover {
  opacity: 0.7;
}

.header__cta {
  display: none; /* Hidden on mobile */
}

.header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
}

.header__menu-btn svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-dark);
}

/* =============================================================================
   LANGUAGE SELECTOR (SSR Landing Page - er-wh2q)
   ============================================================================= */

.lang-selector {
  position: relative;
  display: inline-block;
  margin-left: auto;  /* Push to right side of header on mobile */
  margin-right: var(--space-sm);  /* Gap between selector and hamburger */
}

.lang-trigger {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary-dark);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.lang-trigger:hover {
  border-color: var(--color-primary);
  background: rgba(66, 149, 174, 0.05);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

/* Menu shown via JavaScript click handler, not CSS hover */
.lang-selector.open .lang-menu {
  display: block;
}

.lang-item {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.875rem;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--transition-fast);
}

.lang-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.lang-item--active {
  background: rgba(66, 149, 174, 0.1);
  font-weight: 600;
}

/* =============================================================================
   MOBILE MENU OVERLAY
   ============================================================================= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-cream);
  z-index: 100;
  flex-direction: column;
  padding: var(--space-md);
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu.flex {
  display: flex;
}

.mobile-menu__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 32px;
  color: var(--color-primary);
  width: 44px;
  height: 44px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.mobile-menu__link {
  font-size: var(--text-xl);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(66, 149, 174, 0.2);
  color: var(--color-primary);
  /* Ensure adequate touch target (er-kfpo) */
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-menu__cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-align: center;
  margin-top: var(--space-md);
  font-weight: 700;
  border-bottom: none;
  /* Ensure adequate touch target (er-kfpo) */
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================================
   LANDING SECTIONS - Mobile First
   ============================================================================= */

.landing-section {
  padding: var(--space-xl) var(--space-md);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg) auto;
}

/* =============================================================================
   SHARED SECTION PATTERNS
   Extracted from outcome + capable (Wix reference sections).
   Applied across all landing content sections for visual consistency.
   ============================================================================= */

/* Display heading: Georgia 33px teal — matches Wix across ALL sections */
.outcome__label,
.section-header h4 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: rgb(1, 92, 101);
  margin-bottom: 0;
}

/* Section body/descriptive text: sans-serif base size */
.section-header .section-subtitle,
.pain-card__text,
.capable__bottom p,
.engineering__explanation,
.feature-card__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* Base section padding - mobile (all landing content sections) */
.capable,
.engineering,
.what-train,
.testimonials,
.faq-section {
  padding: var(--space-xl) var(--space-md);
}

/* Section header spacing - all content sections share the same bottom margin */
.capable .section-header,
.engineering .section-header,
.what-train .section-header,
.testimonials .section-header,
.faq-section .section-header {
  margin-bottom: var(--space-xl);
}

/* Dark section headings - bold weight in navy sections */
.engineering .section-header h4,
.engineering .section-header h5,
.what-train .section-header h4,
.what-train .section-header h5 {
  font-weight: 700;
}

/* Dark section subtitles - slightly transparent white */
.engineering .section-subtitle,
.what-train .section-subtitle {
  color: var(--color-white-muted);
}

/* Dark section CTA notes */
.engineering .cta-note,
.what-train .cta-note,
.testimonials .cta-note {
  color: var(--color-white-dim);
}

/* Card grid base - shared layout for pain-cards, feature-cards */
.pain-cards,
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================================================
   DARK SECTION VARIANT (Navy background with white text)
   ============================================================================= */

.section--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6,
.section--dark p,
.section--dark .section-subtitle {
  color: var(--color-white);
}

.section--dark a:not(.btn) {
  color: var(--color-lime);
}

/* =============================================================================
   SPLIT LAYOUT (Image + Text side by side)
   Stacked on mobile, side-by-side on tablet+
   ============================================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.split__media {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.split__content {
  padding: var(--space-xl) var(--space-md);
  position: relative;
}

.split__content h4 {
  margin-bottom: var(--space-md);
}

.split__content p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.split__content ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.split__content ul li {
  padding: var(--space-xs) 0;
  padding-left: 24px;
  position: relative;
  line-height: var(--leading-normal);
}

.split__content ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-lime);
  font-weight: 700;
}

.section--dark .split__content ul li::before {
  color: var(--color-lime);
}

/* =============================================================================
   HERO SECTION - Mobile First
   ============================================================================= */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 680px;
  background: #000;
  overflow: hidden;
  text-align: center;
}

.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  order: 1;
}

.hero__title {
  font-size: var(--text-2xl);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: normal;
  color: rgb(247, 245, 238);
  letter-spacing: -0.18px;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 27px;
  letter-spacing: -0.18px;
  color: rgb(255, 255, 255);
  margin-bottom: 0;
  max-width: 700px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 27px;
  color: rgb(255, 255, 255);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.hero__tagline p {
  color: rgb(255, 255, 255);
  margin: 0;
}

.hero .cta-note {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 1.0);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-lg);
}

/* =============================================================================
   OUTCOME SECTION
   Teal background with yellow accent, split layout
   ============================================================================= */

.outcome {
  position: relative;
  background: white;
  color: var(--color-gray-dark);
  /* overflow:hidden removed — allows background-attachment:fixed parallax to work */
}

.outcome .split__media {
  position: relative;
  overflow: hidden;
  background-image: url('/images/landing/outcome-mountain.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center 25%;
  min-height: 400px;
}

.outcome .split__media img {
  display: none;
}

.outcome .split__content {
  background: white;
  color: var(--color-gray-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.outcome .split__content h5 {
  color: var(--color-primary-dark);
}

.outcome .split__content p {
  color: var(--color-gray-dark);
}

.outcome .split__content ul {
  margin-bottom: 0;
  list-style: disc;
  padding-left: 20px;
}

.outcome .split__content ul li {
  color: var(--color-gray-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.4;
  margin-bottom: 2px;
  padding-top: 0;
  padding-bottom: 0;
}

.outcome .split__content ul li::before {
  display: none;
}

.outcome__label {
  text-transform: none;
  margin-bottom: 22px;
}

.outcome .split__content .outcome__label {
  color: var(--color-primary-dark);
}

.outcome .split__content h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-dark-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.outcome__bottom {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-gray-dark);
  margin-top: 4px;
}

.outcome .cta-note {
  color: var(--color-gray-text);
}

/* =============================================================================
   YOU ARE CAPABLE SECTION (Pain Point Cards)
   ============================================================================= */

.capable {
  background: rgb(255, 255, 254);
}

.capable .section-header {
  max-width: 560px;
}

.capable .section-header .section-subtitle {
  max-width: 375px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-dark-text);
}

.capable .section-header h4 {
  color: rgb(36, 35, 35);
}

.capable .section-header h5 {
  color: var(--color-dark-text);
}

.pain-cards {
  margin-bottom: 0;
}

.pain-card {
  text-align: center;
  padding: var(--space-md);
}

.pain-card__icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
}

.pain-card__icon img,
.pain-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pain-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-dark-text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.18px;
}

.pain-card__text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark-text);
  line-height: var(--leading-normal);
}

.capable__bottom {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
  text-align: center;
}

.capable__bottom p {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-dark-text);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-xs);
}

/* =============================================================================
   EMOTIONAL ENGINEERING SECTION (Flow Diagram)
   ============================================================================= */

.engineering {
  text-align: center;
}

.engineering .section-subtitle {
  max-width: 700px;
  margin: var(--space-sm) auto 0;
  font-size: var(--text-lg);
}

/* Flow diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--space-xl) auto;
  max-width: 900px;
}

.flow__step {
  padding: 20px 36px;
  border: 1px solid rgba(1, 92, 101, 0.2);
  border-radius: 0;
  background: rgb(247, 245, 238);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-primary-dark);
  white-space: nowrap;
  letter-spacing: -0.18px;
}

.flow__step--highlight {
  border: 2px solid var(--color-lime);
}

.flow__arrow {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-lg);
  line-height: 1;
}

.flow__arrow svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  fill: none;
}

.engineering__explanation {
  max-width: 700px;
  margin: var(--space-lg) auto;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-white-muted);
}


/* =============================================================================
   WHY IT WORKS SECTION
   Matches Wix aerialsilksf.wixsite.com/website:
   White background, split layout — text left, mountain image right.
   ============================================================================= */

.why-works {
  background: white;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* Text column */
.why-works__text {
  padding: var(--space-2xl) var(--space-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-lg);
}

.why-works__title {
  font-family: var(--font-heading);
  font-size: 33px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.99px;
  color: var(--color-dark-text);
  margin: 0;
  white-space: pre-wrap;
}

.why-works__body1,
.why-works__body2 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark-text);
  line-height: var(--leading-normal);
  margin: 0;
}

/* Image column */
.why-works__image {
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}

.why-works__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   WHAT YOU TRAIN SECTION (Feature cards + quote block)
   ============================================================================= */

/* Feature cards */
.feature-cards {
  margin-bottom: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-md);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:last-child {
  border-right: none;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-sm);
}

.feature-card__icon img,
.feature-card__icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: white;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.18px;
}

.feature-card__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-white-dim);
  line-height: var(--leading-normal);
}

/* Quote block within what-train section */
.quote-block {
  background: transparent;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto var(--space-xl);
}

.quote-block::before {
  content: "\201C";
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 100px;
  line-height: 0.75;
  color: var(--color-lime);
}

.quote-block__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-block__text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 32.4px;
  letter-spacing: -0.18px;
  color: white;
  font-style: italic;
  text-align: left;
}

.quote-block__author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-white-dim);
  margin-top: var(--space-sm);
}


/* =============================================================================
   OPERATING BASELINE SECTION (Dark navy, split layout)
   ============================================================================= */

.baseline {
  background: white;
  color: var(--color-gray-dark);
}

.baseline .split__content h4,
.baseline .split__content h5 {
  color: var(--color-dark-text);
  font-weight: 700;
}

.baseline .split__content p {
  color: var(--color-gray-dark);
}

.baseline .split__media {
  min-height: 300px;
}

.baseline .split__media img {
  height: 100%;
  object-fit: cover;
}

.baseline .split__content ul li {
  color: var(--color-gray-dark);
}

.baseline .split__content ul li::before {
  color: var(--color-gray-dark);
  content: "\2022";
}

.baseline__report {
  font-style: italic;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-gray-text);
}

.baseline .cta-note {
  color: var(--color-gray-text);
}

/* =============================================================================
   TESTIMONIALS
   ============================================================================= */

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card:last-child {
  border-bottom: none;
}

.testimonial-card__quote-mark {
  font-size: 80px;
  line-height: 0.75;
  color: var(--color-lime);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

.testimonial-card__text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  line-height: 32.4px;
  letter-spacing: -0.18px;
  color: white;
  margin-bottom: var(--space-md);
}

.testimonial-card__author {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--color-white-muted);
  font-style: italic;
}

/* =============================================================================
   FAQ SECTION
   ============================================================================= */

.faq-section {
  background: var(--color-cream);
}

.faq-section .section-header h4,
.faq-section .section-header h5 {
  color: var(--color-dark-text);
  font-weight: 700;
}

.faq__label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.faq-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
}

.faq-card__question {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: var(--color-dark-text);
  margin-bottom: var(--space-sm);
}

.faq-card__answer {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gray-text);
  line-height: var(--leading-normal);
}

/* =============================================================================
   FINAL CTA SECTION (Dark navy, centered)
   ============================================================================= */

.final-cta {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.final-cta h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: var(--leading-relaxed);
}

.final-cta .cta-note {
  color: rgba(255, 255, 255, 0.8);
}

.final-cta .btn--lime {
  background: var(--color-lime);
  color: var(--color-navy);
  border-radius: var(--radius-full);
}

.final-cta .btn--lime:hover {
  background: var(--color-lime);
  opacity: 0.9;
  box-shadow: none;
  transform: none;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  background: var(--color-footer-bg);
  color: var(--color-gray-muted);
  padding: var(--space-lg) var(--space-md);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.footer__brand {
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
  /* Ensure adequate touch target while keeping icon size (er-kfpo) */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

.footer__social-link:hover {
  opacity: 1;
}

.footer__social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.footer__link {
  color: var(--color-gray-muted);
  font-size: 13px;
  transition: color var(--transition-normal);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__disclaimer {
  text-align: center;
  font-size: var(--text-xs);
  color: #888;
  max-width: 600px;
  margin: 0 auto var(--space-md);
  padding: 0 var(--space-md);
}

.footer__bottom {
  text-align: center;
  font-size: var(--text-xs);
  color: #666;
}

/* =============================================================================
   MOBILE OVERFLOW CATCH-ALL (er-07y3, er-kfpo)
   Defensive rules for mobile viewports to prevent any horizontal scroll
   and ensure adequate touch targets and readability
   ============================================================================= */

@media (max-width: 767px) {
  * {
    max-width: 100%;
  }

  img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
  }

  /* Mobile touch target enhancements (er-kfpo) */
  .btn {
    /* Ensure full-width buttons on mobile for easier tapping */
    min-height: 48px;
    padding: 14px 24px;
  }

  .btn--lime {
    width: 100%;
    max-width: 300px;
  }

  /* Ensure footer links are tappable (er-kfpo) */
  .footer__link {
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Improve hero section mobile spacing (er-kfpo) */
  .hero__content {
    padding: var(--space-lg) var(--space-md);
  }

  .hero__title {
    font-size: 28px;
  }

  /* Ensure section headers don't have excessive padding (er-kfpo) */
  .section-header {
    padding: 0 var(--space-sm);
  }

  /* Flow diagram wraps on mobile */
  .flow {
    gap: 6px;
  }

  .flow__step {
    padding: 12px 20px;
    font-size: var(--text-sm);
  }

  /* Split sections stack with media on top */
  .split__media {
    min-height: 250px;
  }
}

/* =============================================================================
   TABLET BREAKPOINT (768px+)
   ============================================================================= */

@media (min-width: 768px) {
  /* Typography */
  h1, h2 {
    font-size: var(--text-3xl);
    line-height: 42.9px;
  }

  h4 {
    font-size: var(--text-3xl);
  }

  /* Scroll padding for taller header */
  html {
    scroll-padding-top: calc(var(--header-height-desktop) + 5px);
  }

  /* Header */
  .header {
    height: var(--header-height-desktop);
    padding: 0;
    justify-content: center;
  }

  .header__logo {
    margin-left: var(--space-xl);
  }

  .header__inner .lang-selector {
    margin-left: auto;
    margin-right: var(--space-xl);
  }

  .header__nav {
    display: flex;
    gap: 0;
    margin-left: var(--space-md);
  }

  .header__cta {
    display: inline-block;
    padding: 11.8px 46.5px;
    min-height: 47px;
    background: var(--color-primary);
    color: rgb(0, 0, 0);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: auto;
    margin-right: 45.7px;
    transition: all var(--transition-normal);
  }

  .header__cta:hover {
    background: var(--color-primary-dark);
    color: rgb(0, 0, 0);
  }

  .header__menu-btn {
    display: none;
  }

  /* Language selector - reset margins for desktop layout */
  .lang-selector {
    margin-left: 0;
    margin-right: var(--space-xl);
  }

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

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Hero */
  .hero__title {
    font-size: 48px;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-xl);
  }

  /* Split layouts - side by side */
  .split {
    grid-template-columns: 1fr 1fr;
  }

  /* Outcome: image takes 60%, content takes 40%, tighter horizontal padding */
  .outcome .split {
    grid-template-columns: 3fr 2fr;
  }

  .outcome .split__content {
    padding: 24px 24px var(--space-lg);
  }

  .split__media {
    min-height: 400px;
  }

  .split__content {
    padding: var(--space-2xl);
  }

  /* Reverse split (text left, image right is default; this puts image left) */
  .split--reverse .split__media {
    order: -1;
  }

  /* Pain cards - 4 columns (matches Wix at 768px+) */
  .pain-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }

  /* Smaller icons for 4-column layout */
  .pain-card__icon {
    width: 70px;
    height: 70px;
  }

  .capable {
    padding: 80px var(--space-xl);
  }

  /* Engineering / What-Train / FAQ - same tablet padding */
  .engineering,
  .what-train,
  .faq-section {
    padding: var(--space-2xl) var(--space-xl);
  }

  /* Why Works - side-by-side layout on tablet+ */
  .why-works {
    flex-direction: row;
    min-height: 500px;
  }

  .why-works__text {
    flex: 0 0 40%;
    padding: var(--space-3xl) var(--space-2xl);
  }

  .why-works__image {
    flex: 1;
    min-height: unset;
  }

  .flow__step {
    padding: 20px 36px;
  }

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

  .quote-block {
    padding: var(--space-2xl);
  }

  /* Testimonials */
  .testimonials {
    padding: var(--space-2xl);
  }

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

  .testimonial-card {
    padding: var(--space-xl);
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }

  .testimonial-card:nth-child(2n) {
    border-right: none;
  }

  .testimonial-card__quote-mark {
    font-size: 80px;
  }

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

  /* Final CTA */
  .final-cta {
    padding: var(--space-2xl) var(--space-xl);
  }

  /* Footer */
  .footer {
    padding: var(--space-xl);
  }

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
  }
}

/* =============================================================================
   DESKTOP BREAKPOINT (1200px+)
   ============================================================================= */

@media (min-width: 1200px) {
  /* Hero - full size heading */
  .hero__title {
    font-size: var(--text-4xl);
    letter-spacing: -2.24px;
  }

  .hero__content {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 800px;
  }

  /* Pain cards - 4 columns */
  .pain-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .capable {
    padding: 80px var(--space-2xl);
  }

  /* Engineering / What-Train / Testimonials / FAQ / Final CTA - shared desktop padding */
  .engineering,
  .what-train,
  .testimonials,
  .faq-section,
  .final-cta {
    padding: var(--space-3xl) var(--space-2xl);
  }

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

  /* Split layouts - larger content area */
  .split__content {
    padding: var(--space-3xl) var(--space-2xl);
  }

  /* Outcome: top-aligned content matching Wix */
  .outcome .split__content {
    padding: 24px var(--space-xl) var(--space-xl);
  }

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

  .testimonial-card {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
  }

  .testimonial-card:last-child {
    border-right: none;
  }

  .testimonial-card:nth-child(2n) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }

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

}

/* =============================================================================
   ANIMATION KEYFRAMES
   ============================================================================= */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Page transition animation - gentle fade + rise for therapeutic context */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility: Respect user's reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  @keyframes pageEnter {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
  }
}

/* =============================================================================
   SCROLL REVEAL ANIMATIONS (matches Wix entrance animations)
   Progressive enhancement: cards visible by default; JS adds hidden + animate.
   ============================================================================= */

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

/* JS pre-hides cards before they enter view */
.pain-card.will-animate {
  opacity: 0;
  transform: translateY(28px);
}

/* JS adds is-visible when card enters viewport → triggers animation */
.pain-card.is-visible {
  animation: painCardReveal 0.55s ease both;
}

.pain-card.is-visible:nth-child(2) { animation-delay: 0.12s; }
.pain-card.is-visible:nth-child(3) { animation-delay: 0.24s; }
.pain-card.is-visible:nth-child(4) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .pain-card.will-animate { opacity: 1; transform: none; }
  .pain-card.is-visible { animation: none; }
}
