/* Baby Tracker Pro — Modern, parent-friendly design */
:root {
  /* Warm, colorful palette — cheerful yet calming */
  --color-cream: #fef8f2;
  --color-peach: #fde4d9;
  --color-coral: #e89282;
  --color-rose: #d96b5f;
  --color-sage: #7ba88d;
  --color-mint: #9dd4b8;
  --color-sky: #7eb8e8;
  --color-lavender: #b8a4d4;
  --color-butter: #f5e6a8;
  --color-sand: #ebe2d4;
  --color-ink: #2d2a26;
  --color-ink-muted: #5c5650;
  --color-ink-light: #8a8278;
  --shadow-soft: 0 4px 24px rgba(45, 42, 38, 0.06);
  --shadow-medium: 0 8px 40px rgba(45, 42, 38, 0.08);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

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

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

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fef8f2 0%, #fdf0e8 50%, #fef8f2 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) 1rem max(1.5rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 248, 242, 0.95) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 107, 95, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.logo:hover {
  color: var(--color-rose);
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

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

.nav-links .btn-secondary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-coral) 100%);
  color: white;
}

.nav-links .btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-rose) 100%);
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-coral) 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(217, 107, 95, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 107, 95, 0.45);
}

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

.btn-secondary:hover {
  background: var(--color-ink-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink-muted);
}

.btn-ghost:hover {
  color: var(--color-ink);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-arrow {
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8rem 1.5rem 4rem;
  padding-bottom: max(4rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sage) 100%);
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(125, 168, 141, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(125, 168, 141, 0.4);
  transform: rotate(-1deg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-badge:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.06),
    0 6px 16px rgba(125, 168, 141, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #fff9e6 0%, #fff4d4 100%);
  border-radius: var(--radius-full);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 3px 10px rgba(245, 184, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(245, 184, 0, 0.35);
  transform: rotate(0.5deg);
  transition: transform 0.2s;
}

.hero-rating:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-rating .stars {
  color: #f5b800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.hero-rating .rating-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-ink);
}

.hero-rating .rating-reviews {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
  color: var(--color-ink);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-ink-muted);
  margin: 0 0 2rem;
  max-width: 480px;
}

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

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(45, 42, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(232, 146, 130, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-pill:nth-child(1) { transform: rotate(-0.5deg); }
.hero-pill:nth-child(2) { transform: rotate(0.8deg); }
.hero-pill:nth-child(3) { transform: rotate(-0.6deg); }

.hero-pill:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.04),
    0 8px 20px rgba(45, 42, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-pill-icon {
  font-size: 0.9375rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-lavender) 100%);
  border-radius: 50%;
  font-size: 1rem;
  border: 2px solid white;
  margin-left: -8px;
  box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.hero-avatar:first-child {
  margin-left: 0;
}

.hero-social-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

.hero-social-text strong {
  color: var(--color-ink);
}

.hero-stat {
  color: var(--color-sage);
  font-weight: 600;
}

.hero-stores {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-store-badge .store-badge-img {
  display: block;
  height: 40px;
  width: auto;
}

/* iPhone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-mockup {
  width: min(340px, 88vw);
  position: relative;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 50%, #1c1c1e 100%);
  border-radius: 56px;
  padding: 14px;
  box-shadow: 
    0 0 0 3px #2c2c2e,
    0 0 0 6px #1c1c1e,
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(217, 107, 95, 0.06);
}

.iphone-screen {
  background: var(--color-cream);
  border-radius: 48px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}

/* Side buttons (volume, power) */
.iphone-side-btn {
  position: absolute;
  width: 3px;
  background: #1c1c1e;
  border-radius: 2px;
  z-index: 5;
}

.iphone-side-btn--left {
  left: -1px;
  top: 135px;
  height: 50px;
}

.iphone-side-btn--right {
  right: -1px;
  top: 108px;
  height: 78px;
}

.hero-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-carousel .hero-app-screenshot {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink-light);
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.hero-carousel-dots .dot.active {
  opacity: 1;
  transform: scale(1.2);
  background: var(--color-rose);
}

/* Sections — unified spacing and scroll offset for fixed header */
section {
  padding: 5rem 0;
  scroll-margin-top: 5rem;
}

main {
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--color-ink);
}

.section-header p {
  color: var(--color-ink-muted);
  margin: 0;
  font-size: 1.125rem;
}

/* Section inner — consistent max-width for all sections */
.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

/* Features */
.features {
  background: linear-gradient(180deg, #ffffff 0%, #fefbf8 100%);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  margin: 0 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 146, 130, 0.15);
}

.features .section-inner {
  padding: 0;
}

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

.feature-card {
  padding: 2rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--color-sky);
}

.feature-card:nth-child(2) { border-left-color: var(--color-mint); }
.feature-card:nth-child(3) { border-left-color: var(--color-lavender); }
.feature-card:nth-child(4) { border-left-color: var(--color-coral); }
.feature-card:nth-child(5) { border-left-color: var(--color-butter); }
.feature-card:nth-child(6) { border-left-color: var(--color-sage); }

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(45, 42, 38, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(232, 146, 130, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(2deg);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.04),
    0 10px 24px rgba(45, 42, 38, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.feature-card p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step:nth-child(1) .step-number { background: linear-gradient(135deg, var(--color-sky) 0%, #5a9fd4 100%); }
.step:nth-child(2) .step-number { background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sage) 100%); }
.step:nth-child(3) .step-number { background: linear-gradient(135deg, var(--color-lavender) 0%, #9b87c4 100%); }

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

.step p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 1rem;
}

/* Testimonials */
.testimonials {
  background: linear-gradient(180deg, var(--color-peach) 0%, var(--color-lavender) 15%, var(--color-cream) 100%);
  border-radius: var(--radius-xl);
  margin: 0 1.5rem;
  padding: 5rem 2rem;
}

.testimonials .section-inner {
  padding: 0;
}

.testimonials-header {
  margin-bottom: 2.5rem;
}

.testimonials-header .section-header {
  margin-bottom: 1.5rem;
}

.testimonials-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.review-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
}

.review-stat:first-child {
  padding-left: 0;
}

.review-stat:last-child {
  padding-right: 0;
}

.review-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(92, 86, 80, 0.2);
  flex-shrink: 0;
}

.stars-large {
  color: #f5b800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-ink);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  line-height: 1.2;
}

.testimonials-track-wrapper {
  overflow: hidden;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(184, 164, 212, 0.2);
}

.testimonial-stars {
  color: #f5b800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.testimonial p {
  font-size: 1.125rem;
  color: var(--color-ink);
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial strong {
  color: var(--color-ink);
}

.testimonial span {
  font-size: 0.875rem;
  color: var(--color-ink-light);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  background: var(--color-ink-light);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.testimonial-dot.active {
  opacity: 1;
  transform: scale(1.2);
  background: var(--color-rose);
}

/* CTA — keyframe animations */
@keyframes cta-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cta-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes cta-shine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes cta-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* CTA */
.cta {
  padding: 5rem 1.5rem;
}

.cta-content {
  text-align: center;
  padding: 4rem 2.5rem;
  background: linear-gradient(145deg, var(--color-rose) 0%, var(--color-coral) 50%, #e07a6b 100%);
  border-radius: var(--radius-xl);
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 
    0 16px 48px rgba(217, 107, 95, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  position: relative;
  overflow: hidden;
  animation: cta-card-float 4s ease-in-out infinite;
}

/* Subtle decorative gradient overlay */
.cta-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Shine sweep on hover */
.cta-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-content:hover::after {
  opacity: 1;
  animation: cta-shine 0.8s ease-out forwards;
}

.cta-content > * {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
}

.cta-content.is-visible > * {
  animation: cta-fade-up 0.6s ease-out forwards;
}

.cta-content.is-visible .cta-badge { animation-delay: 0s; }
.cta-content.is-visible h2 { animation-delay: 0.1s; }
.cta-content.is-visible .cta-subtitle { animation-delay: 0.2s; }
.cta-content.is-visible .cta-buttons { animation-delay: 0.3s; }
.cta-content.is-visible .cta-stores { animation-delay: 0.4s; }

.cta-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  position: relative;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(-1.5deg);
  transition: transform 0.2s;
}

.cta-badge:hover {
  transform: rotate(0deg) scale(1.05);
}

.cta-content.is-visible .cta-badge {
  animation: cta-fade-up 0.6s ease-out forwards, cta-badge-pulse 2.5s ease-in-out 0.7s infinite;
}

.cta h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.cta-subtitle {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta .btn-primary {
  background: white;
  color: var(--color-rose);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta .btn-primary:hover {
  background: var(--color-cream);
  color: var(--color-rose);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta .btn-ghost {
  color: rgba(255, 255, 255, 0.95);
  transition: transform 0.2s;
}

.cta .btn-ghost:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.cta-stores {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-store-link {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s, opacity 0.2s;
}

.cta-store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.cta-store-link .store-badge-img {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .cta-content,
  .cta-content::after,
  .cta-badge {
    animation: none !important;
  }
  .cta-content > * {
    opacity: 1;
    transform: none;
  }
  .cta-content.is-visible > * {
    animation: none;
  }
  .hero-badge,
  .hero-pill,
  .hero-rating,
  .cta-badge {
    transform: none !important;
  }
  .hero-pill:hover,
  .feature-card:hover .feature-icon {
    transform: none !important;
  }
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-peach) 100%);
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer .logo {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--color-ink-muted);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--color-ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-ink);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-ink-light);
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero {
    padding-top: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-trust-pills {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .hero-stores {
    justify-content: center;
  }

  .testimonials-summary {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .review-stat:first-child,
  .review-stat:last-child {
    padding: 0;
  }

  .review-stat-divider {
    width: 60px;
    height: 1px;
  }

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

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

/* iPhone and small phones */
@media (max-width: 430px) {
  section {
    padding: 3rem 0;
    scroll-margin-top: 4rem;
  }

  .hero {
    padding-top: 5.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
  }

  .hero-trust-pills {
    gap: 0.5rem;
    justify-content: center;
  }

  .hero-pill {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-stores {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-store-badge {
    min-width: 140px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-store-badge .store-badge-img {
    height: 44px;
    width: auto;
  }

  .iphone-mockup {
    width: min(280px, 85vw);
    padding: 10px;
  }

  .iphone-screen {
    border-radius: 40px;
  }

  .hero-carousel-dots .dot {
    padding: 10px;
    margin: -10px;
    touch-action: manipulation;
  }

  .section-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .features {
    margin: 0 0.75rem;
    padding: 3rem 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
    font-size: 2rem;
  }

  .testimonials-track-wrapper {
    margin: 0 -1rem;
    padding: 0 1rem;
  }

  .testimonial {
    flex: 0 0 min(280px, 88vw);
    padding: 1.5rem;
  }

  .testimonials-dots {
    padding: 0.5rem 0;
    gap: 12px;
  }

  .testimonial-dot {
    padding: 12px;
    margin: -12px;
  }

  .testimonial p {
    font-size: 1rem;
  }

  .cta {
    padding: 3rem 1rem;
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
  }

  .cta-content {
    padding: 2.5rem 1.25rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .cta-stores {
    flex-direction: column;
    align-items: center;
  }

  .cta-store-link {
    min-width: 140px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cta-store-link .store-badge-img {
    height: 44px;
  }

  .footer {
    padding: 2.5rem 1rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: calc(60px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    padding: 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    gap: 0.5rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
    max-height: calc(100vh - 60px - env(safe-area-inset-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    min-height: 44px;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: -8px -8px -8px 0;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }

  .features {
    margin: 0 1rem;
    padding: 3rem 1rem;
  }

  .testimonials {
    margin: 0 1rem;
    padding: 3rem 1rem;
  }

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

  section {
    padding: 3.5rem 0;
    scroll-margin-top: 4.5rem;
  }

  .cta-content {
    padding: 3rem 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .cta-stores {
    flex-direction: column;
  }
}
