/* =========================================================
   CSS Custom Properties
   ========================================================= */
:root {
  --coral:       #D85A30;
  --coral-light: #FAECE7;
  --sage:        #1D9E75;
  --sage-light:  #E1F5EE;
  --dark:        #2C2C2A;
  --mid:         #5F5E5A;
  --white:       #FFFFFF;
  --grey-border: #E8E7E3;
  --grey-light:  #F7F6F3;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(44, 44, 42, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 44, 42, 0.10);
  --shadow-lg: 0 8px 40px rgba(44, 44, 42, 0.13);

  --container: 1100px;
  --gap:        2rem;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* =========================================================
   Typography
   ========================================================= */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

p {
  color: var(--mid);
}

.section-body {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
  color: var(--mid);
}

/* =========================================================
   Eyebrow Labels
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 0.3em 0.9em;
  margin-bottom: 1rem;
}

.eyebrow-sage {
  background: var(--sage-light);
  color: var(--sage);
}

.eyebrow-coral {
  background: var(--coral-light);
  color: var(--coral);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85em 2em;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover {
  background: #c24e26;
}

.btn-coral-outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}

.btn-coral-outline:hover {
  background: var(--coral-light);
}

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

.btn-dark:hover {
  background: #1a1a18;
}

/* =========================================================
   Entrance Animations
   ========================================================= */
.animate-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for siblings */
.animate-up:nth-child(2) { transition-delay: 0.08s; }
.animate-up:nth-child(3) { transition-delay: 0.16s; }
.animate-up:nth-child(4) { transition-delay: 0.24s; }
.animate-up:nth-child(5) { transition-delay: 0.32s; }

/* Grid children stagger */
.stats-grid   .animate-up:nth-child(2),
.benefits-grid .animate-up:nth-child(2),
.modes-grid    .animate-up:nth-child(2),
.pricing-grid  .animate-up:nth-child(2) { transition-delay: 0.12s; }

.stats-grid   .animate-up:nth-child(3),
.benefits-grid .animate-up:nth-child(3),
.modes-grid    .animate-up:nth-child(3) { transition-delay: 0.22s; }

.benefits-grid .animate-up:nth-child(4) { transition-delay: 0.32s; }

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  position: relative;
  background: var(--coral-light);
  padding: 6rem 0 5rem;
  overflow: hidden;
  text-align: left;
}

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

.appstore-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.appstore-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.appstore-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.badge-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 2.25rem;
}

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

/* Decorative background shape */
.hero-shape {
  position: absolute;
  right: -120px;
  bottom: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(216, 90, 48, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* =========================================================
   Stats Bar
   ========================================================= */
.stats-bar {
  background: var(--grey-light);
  padding: 4rem 0;
  border-top: 1px solid var(--grey-border);
  border-bottom: 1px solid var(--grey-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.4;
}

.stat-source {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.stat-source:hover {
  color: #004499;
}

/* =========================================================
   Science Section
   ========================================================= */
.science {
  padding: 6rem 0;
}

.science-quote {
  position: relative;
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem 2rem 2rem 2.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  max-width: 780px;
}

.science-sources {
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
}

.science-sources a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.science-sources a:hover {
  color: #004499;
}

.source-sep {
  color: var(--mid);
  opacity: 0.5;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0;
  color: var(--sage);
  opacity: 0.35;
  position: absolute;
  top: 1.6rem;
  left: 1.5rem;
}

/* =========================================================
   Benefits Grid
   ========================================================= */
.benefits {
  background: var(--grey-light);
  padding: 6rem 0;
}

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

.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-icon--coral {
  background: var(--coral-light);
}

.benefit-icon--sage {
  background: var(--sage-light);
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefit-source {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.benefit-source:hover {
  color: #004499;
}

/* =========================================================
   Exercise Categories
   ========================================================= */
.exercises {
  padding: 6rem 0;
}

.category-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55em 1.2em;
  border-radius: var(--radius-pill);
}

.pill--coral {
  background: var(--coral-light);
  color: var(--coral);
}

.pill--sage {
  background: var(--sage-light);
  color: var(--sage);
}

/* =========================================================
   Break Modes Section
   ========================================================= */
.break-modes {
  background: var(--grey-light);
  padding: 6rem 0;
  border-top: 1px solid var(--grey-border);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mode-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mode-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mode-card--featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
}

.mode-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.mode-icon--coral {
  background: var(--coral-light);
}

.mode-icon--sage {
  background: var(--sage-light);
}

.mode-card h3 {
  margin-bottom: 0;
}

.mode-interval {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

.mode-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.mode-stats {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--grey-light);
  border-radius: var(--radius-sm);
  padding: 0.4em 0.75em;
  margin-top: 0.5rem;
  display: inline-block;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  background: var(--grey-light);
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.price-period {
  font-size: 0.9rem;
  color: var(--mid);
}

.plan-features {
  flex: 1;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.95rem;
  color: var(--dark);
}

.feature-check {
  color: var(--sage);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-legal {
  font-size: 0.8rem;
  color: var(--mid);
  max-width: 760px;
}

.pricing-legal a {
  color: var(--mid);
  text-decoration: underline;
}

.pricing-legal a:hover {
  color: var(--dark);
}

/* =========================================================
   Footer CTA Section
   ========================================================= */
.footer-cta {
  background: var(--dark);
  padding: 7rem 0;
  text-align: center;
}

.footer-cta h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-cta p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* =========================================================
   Footer Bar
   ========================================================= */
.footer-bar {
  background: #1e1e1c;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   Responsive — Mobile (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

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

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

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

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

  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .science-quote {
    padding: 1.5rem 1.25rem 1.5rem 2rem;
  }

  .quote-mark {
    font-size: 3rem;
  }

  .category-pills {
    gap: 0.5rem;
  }
}

/* =========================================================
   Responsive — Tablet (601px – 900px)
   ========================================================= */
@media (min-width: 601px) and (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid {
    max-width: 100%;
  }
}
