/* ============================================================
   WayToMom — Shared Stylesheet
   Colors / fonts mirror the Android app design system
   ============================================================ */

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

:root {
  --primary:       #F9A8C9;
  --primary-dark:  #E891B5;
  --mint:          #A8D8B9;
  --lavender:      #C9A8F9;
  --peach:         #F9C8A8;
  --rose:          #F9A8A8;
  --bg:            #FFF9FB;
  --text:          #4A2040;
  --text-light:    #7A5070;
  --white:         #FFFFFF;
  --shadow:        0 8px 32px rgba(74,32,64,.10);
  --radius:        20px;
  --radius-lg:     28px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6%;
  background: rgba(255,249,251,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(249,168,201,.18);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(74,32,64,.08); }

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-icon  { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text  { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; }

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .95rem; transition: color .2s;
}
.nav-links a:hover { color: var(--primary-dark); }

.btn-nav {
  background: var(--primary) !important; color: var(--text) !important;
  padding: 10px 22px !important; border-radius: 50px;
  font-weight: 800 !important; transition: background .2s, transform .2s !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ── Hero ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 6% 90px;
  background: linear-gradient(135deg, #FFF9FB 0%, #FFE8F4 40%, #EEE4FF 70%, #E4F8EE 100%);
  position: relative; overflow: hidden; text-align: center;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,168,201,.22) 0%, transparent 70%);
  top: -120px; right: -120px; border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,249,.18) 0%, transparent 70%);
  bottom: -60px; left: -60px; border-radius: 50%;
}

.hero-content { max-width: 640px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,168,201,.22);
  border: 1px solid rgba(249,168,201,.4);
  border-radius: 50px; padding: 8px 20px;
  font-size: .85rem; font-weight: 700; color: var(--text);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.18; margin-bottom: 22px;
}
.hero h1 span { color: var(--primary-dark); }

.hero p {
  font-size: 1.1rem; color: var(--text-light);
  margin-bottom: 42px; line-height: 1.8;
}

.hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: var(--white);
  padding: 16px 34px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(74,32,64,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(74,32,64,.38); }

.hero-note { font-size: .85rem; color: var(--text-light); }

.pill-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 56px;
}
.stat-pill {
  background: var(--white); border-radius: 50px; padding: 12px 22px;
  box-shadow: var(--shadow); font-size: .9rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}

/* ── Section helpers ─────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: block; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-header p  { color: var(--text-light); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── Features ────────────────────────────────────── */
.features { padding: 100px 6%; background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

/* Center the lone 4th-row card (when 5 cards in 3-col grid) */
.features-grid .feature-card:nth-child(4) { grid-column: 1 / 2; }
.features-grid .feature-card:nth-child(5) { grid-column: 2 / 3; }

.feature-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid rgba(249,168,201,.15);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 20px;
}
.feature-icon.pink     { background: rgba(249,168,201,.25); }
.feature-icon.lavender { background: rgba(201,168,249,.25); }
.feature-icon.mint     { background: rgba(168,216,185,.25); }
.feature-icon.peach    { background: rgba(249,200,168,.25); }
.feature-icon.rose     { background: rgba(249,168,168,.25); }

.feature-card h3 {
  font-family: 'Nunito', sans-serif; font-size: 1.1rem;
  font-weight: 800; margin-bottom: 10px;
}
.feature-card p { font-size: .95rem; color: var(--text-light); line-height: 1.7; }

/* ── How It Works ────────────────────────────────── */
.how-it-works {
  padding: 100px 6%;
  background: linear-gradient(180deg, #FFF9FB 0%, #F4EEFF 100%);
}

.steps {
  display: flex; gap: 48px; max-width: 900px;
  margin: 0 auto; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 28px; left: calc(16.66% + 0px); right: calc(16.66% + 0px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--lavender));
}

.step { flex: 1; text-align: center; }

.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step:nth-child(1) .step-number { background: var(--primary);   color: var(--text); }
.step:nth-child(2) .step-number { background: var(--mint);      color: var(--text); }
.step:nth-child(3) .step-number { background: var(--lavender);  color: var(--text); }

.step h3 {
  font-family: 'Nunito', sans-serif; font-size: 1.05rem;
  font-weight: 800; margin-bottom: 10px;
}
.step p { font-size: .9rem; color: var(--text-light); line-height: 1.7; }

/* ── Quote ───────────────────────────────────────── */
.quote-section { padding: 90px 6%; background: var(--white); text-align: center; }
.quote-content { max-width: 600px; margin: 0 auto; }
.quote-mark {
  font-family: 'Playfair Display', serif; font-size: 6rem;
  line-height: .5; color: var(--primary); margin-bottom: 16px; display: block;
}
.quote-content p {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.35rem; line-height: 1.7; color: var(--text); margin-bottom: 18px;
}
.quote-content span { font-size: .88rem; color: var(--text-light); font-weight: 600; }

/* ── CTA ─────────────────────────────────────────── */
.cta-section {
  padding: 100px 6%; background: var(--text);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(249,168,201,.12) 0%, transparent 70%);
  top: -100px; left: -100px; border-radius: 50%;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,249,.12) 0%, transparent 70%);
  bottom: -60px; right: -60px; border-radius: 50%;
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-section > p { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 40px; position: relative; z-index: 1; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--primary); color: var(--text);
  padding: 18px 42px; border-radius: 50px;
  text-decoration: none; font-weight: 800; font-size: 1.05rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(249,168,201,.4);
  position: relative; z-index: 1;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(249,168,201,.6); }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 40px 6%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.55); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: rgba(255,255,255,.35); font-size: .83rem; }

/* ── Privacy page ────────────────────────────────── */
.privacy-hero {
  padding: 140px 6% 60px;
  background: linear-gradient(135deg, #FFF9FB 0%, #FFE8F4 60%, #EEE4FF 100%);
  text-align: center;
}
.privacy-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.privacy-hero p  { color: var(--text-light); font-size: 1.05rem; }

.privacy-body {
  max-width: 780px; margin: 0 auto;
  padding: 60px 6% 100px;
}
.privacy-body h2 {
  font-family: 'Nunito', sans-serif; font-size: 1.25rem;
  font-weight: 800; margin: 40px 0 12px; color: var(--text);
}
.privacy-body p  { color: var(--text-light); line-height: 1.8; margin-bottom: 14px; font-size: .97rem; }
.privacy-body ul { color: var(--text-light); line-height: 1.8; margin: 0 0 14px 24px; font-size: .97rem; }
.privacy-body ul li { margin-bottom: 6px; }
.privacy-body a  { color: var(--primary-dark); }

/* ── Animations ──────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-9px); }
}
.floating { animation: float 4s ease-in-out infinite; }

.fade-in { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) { grid-column: auto; }
  .features-grid .feature-card:nth-child(5) { grid-column: 1 / 3; max-width: 440px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--bg); padding: 20px 6%;
    flex-direction: column; gap: 16px;
    border-bottom: 1px solid rgba(249,168,201,.2);
    box-shadow: 0 12px 32px rgba(74,32,64,.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }

  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card:nth-child(4),
  .features-grid .feature-card:nth-child(5) { grid-column: auto; max-width: none; }
}
