/* =============================================================================
   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-gray-muted: #aaa;
  --color-border: #e5e7eb;
  --color-cta-bg: rgb(62, 157, 173);

  /* Feature icon backgrounds */
  --color-icon-yellow: rgb(250, 219, 156);
  --color-icon-pink: rgb(245, 189, 178);
  --color-icon-green: rgb(200, 230, 201);
  --color-icon-blue: rgb(187, 222, 251);

  /* 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: 'Open Sans', 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;

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

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

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

  /* 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, .main-heading {
  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-lg);
  font-weight: 400;
  color: var(--color-primary-dark);
  margin: 0;
}

p {
  margin: 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-primary-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
  line-height: var(--leading-relaxed);
}

/* =============================================================================
   MOBILE-FIRST GRID SYSTEM
   Base = single column (mobile)
   ============================================================================= */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid--2,
.grid--3,
.grid--4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* =============================================================================
   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;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}

.btn--primary:hover {
  background: rgb(0, 86, 179);
  border-color: rgb(0, 86, 179);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-white);
}

.btn--white:hover {
  background: var(--color-cta-bg);
  color: var(--color-white);
  border-color: var(--color-cta-bg);
}

.btn--lg {
  padding: 16px 36px;
}

/* =============================================================================
   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: var(--color-cream);
  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;
  gap: 12px;
}

.header__logo-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
}

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

.header__nav-link {
  color: var(--color-primary);
  padding: 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  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;
  /* margin-left: auto removed - .lang-selector now handles right-side positioning */
}

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

/* =============================================================================
   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;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--color-cream);
  overflow: hidden;
}

.hero__accent {
  display: none; /* Hide curved accent on mobile */
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-md);
  order: 2;
}

.hero__title {
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--color-primary-dark);
  letter-spacing: -0.99px;
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: #5a5a5a;
  letter-spacing: -0.4px;
  margin-bottom: var(--space-md);
}

.hero__lead {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: var(--leading-normal);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-md);
}

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

.hero__image {
  position: relative;
  z-index: 1;
  height: 250px;
  order: 1;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

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

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

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

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

.landing-section--teal-light {
  background: var(--color-primary-light);
}

.landing-section--teal {
  background: var(--color-cta-bg);
}

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

.section-content {
  max-width: 1100px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* =============================================================================
   FEATURE CARDS (Why Emotional Revive)
   ============================================================================= */

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

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

.feature-card__icon--yellow {
  background: var(--color-icon-yellow);
}

.feature-card__icon--pink {
  background: var(--color-icon-pink);
}

.feature-card__icon--green {
  background: var(--color-icon-green);
}

.feature-card__icon--blue {
  background: var(--color-icon-blue);
}

.feature-card__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-primary-dark);
  stroke-width: 1.5;
  fill: none;
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}

/* =============================================================================
   STEP CARDS (How It Works)
   ============================================================================= */

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

.step-card__number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.step-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-xs);
}

.step-card__text {
  color: var(--color-gray-text);
  line-height: var(--leading-normal);
}

/* =============================================================================
   EDITORIAL SECTIONS (Stress & Change, Why Different)
   ============================================================================= */

.editorial {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.editorial__content {
  order: 2;
}

.editorial__content h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-primary-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.editorial__content p {
  font-size: var(--text-base);
  color: var(--color-gray-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

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

.editorial__media {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.editorial__image {
  width: 100%;
  max-width: 300px;
  border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
  object-fit: cover;
}

/* Staggered images grid */
.editorial__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  position: relative;
}

.editorial__images .blob {
  display: none; /* Hide decorative blobs on mobile */
}

.editorial__images img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.editorial__images img:first-of-type {
  border-radius: 60% 40% 55% 45% / 55% 45% 50% 50%;
}

.editorial__images img:last-of-type {
  border-radius: 45% 55% 40% 60% / 50% 55% 45% 50%;
}

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

.testimonials {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-primary-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

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

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

.testimonial-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  margin-bottom: var(--space-sm);
}

.testimonial-card__quote-mark {
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-md);
}

.testimonial-card__text {
  color: var(--color-primary-dark);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

.testimonial-card__author {
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* =============================================================================
   PRICING CARDS
   ============================================================================= */

.pricing {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cream);
}

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

.pricing-card {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  background: var(--color-white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(66, 149, 174, 0.2);
}

.pricing-card--featured {
  border: 3px solid var(--color-primary);
  position: relative;
  box-shadow: 0 8px 24px rgba(66, 149, 174, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: bold;
}

.pricing-card__title {
  color: var(--color-primary-dark);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.pricing-card__promo {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: var(--space-xs);
}

.pricing-card__price {
  font-size: 24px;
  color: var(--color-primary-dark);
  margin: var(--space-md) 0;
}

.pricing-card__price-suffix {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
}

.pricing-card__original-price {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  text-decoration: line-through;
  margin-bottom: var(--space-xs);
}

.pricing-card__description {
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: var(--text-sm);
}

.pricing-card__feature {
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--color-border);
}

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

.faq {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cream);
}

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

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
}

.faq-item summary {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  padding: var(--space-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary span {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-primary-dark);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item__content {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  border-top: 1px solid #eee;
}

.faq-item__content p {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  line-height: var(--leading-normal);
  margin-top: var(--space-md);
}

.faq-item[open] .faq-item__content {
  animation: faq-expand 0.3s ease;
}

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

/* =============================================================================
   WHO IS IT FOR (Persona Accordions)
   ============================================================================= */

.personas {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cream);
}

.personas__list {
  max-width: 700px;
  margin: 0 auto var(--space-xl) auto;
}

.persona-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.persona-item summary {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  padding: var(--space-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.persona-item summary::-webkit-details-marker {
  display: none;
}

.persona-item summary::marker {
  display: none;
}

.persona-item summary span {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-primary-dark);
  transition: transform var(--transition-fast);
}

.persona-item[open] summary span {
  transform: rotate(45deg);
}

.persona-item__content {
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  border-top: 1px solid #eee;
}

.persona-item__content p {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  line-height: var(--leading-normal);
  margin-top: var(--space-md);
}

.persona-item[open] .persona-item__content {
  animation: faq-expand 0.3s ease;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cta-bg);
  text-align: center;
}

.cta-section p {
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

/* =============================================================================
   BENEFITS SECTION
   ============================================================================= */

.benefits {
  padding: var(--space-xl) var(--space-md);
  background: var(--color-cream);
}

.benefits__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.benefits__text {
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.benefits__disclaimer {
  font-size: var(--text-sm);
  color: var(--color-gray-text);
  line-height: var(--leading-normal);
  font-style: italic;
}

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

.footer {
  background: var(--color-gray-dark);
  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--lg {
    min-height: 52px;
  }

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

  /* Ensure pricing card buttons are prominent on mobile (er-kfpo) */
  .pricing-card .btn {
    width: 100%;
    display: block;
  }

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

  .hero__title {
    font-size: var(--text-xl);
  }

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

  /* Step cards more compact on mobile (er-kfpo) */
  .step-card__number {
    font-size: 48px;
    margin-bottom: var(--space-sm);
  }
}

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

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

  .section-title {
    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-img {
    width: 85px;
    height: 85px;
  }

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

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

  .header__cta {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-left: auto;
    margin-right: var(--space-xl);
    transition: all var(--transition-normal);
  }

  .header__cta:hover {
    background: var(--color-cream);
    color: #000;
    border: 1px solid var(--color-primary);
  }

  .header__menu-btn {
    display: none;
  }

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

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

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

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

  /* Hero */
  .hero {
    flex-direction: row;
  }

  .hero__accent {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 0 0 0 50%;
    z-index: 0;
  }

  .hero__content {
    flex: 1;
    padding: var(--space-2xl);
    order: 1;
    justify-content: center;
  }

  .hero__title {
    font-size: var(--text-3xl);
    max-width: 361px;
  }

  .hero__image {
    flex: 1;
    height: auto;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Editorial sections */
  .editorial {
    flex-direction: row;
    gap: var(--space-2xl);
  }

  .editorial__content {
    flex: 1;
    order: 1;
  }

  .editorial__content h2 {
    font-size: var(--text-3xl);
  }

  .editorial__media {
    flex: 1;
    order: 2;
  }

  .editorial--reverse .editorial__content {
    order: 2;
  }

  .editorial--reverse .editorial__media {
    order: 1;
  }

  .editorial__image {
    max-width: 400px;
  }

  .editorial__images {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .editorial__images img {
    max-height: 280px;
  }

  .editorial__images img:last-of-type {
    transform: translateY(30px);
  }

  /* 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: 60px;
  }

  /* Pricing */
  .pricing {
    padding: var(--space-2xl) var(--space-xl);
  }

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

  /* FAQ */
  .faq {
    padding: var(--space-2xl) var(--space-xl);
  }

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

  /* 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);
  }

  /* Step card numbers */
  .step-card__number {
    font-size: 64px;
  }

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

  .cta-section h2 {
    font-size: var(--text-3xl);
  }
}

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

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

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

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

  /* Hero */
  .hero__content {
    padding: var(--space-2xl) 99px;
  }

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

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

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

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

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

  /* Step numbers larger */
  .step-card__number {
    font-size: 96px;
  }
}

/* =============================================================================
   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; }
  }
}
