/* ==========================================================================
   Motherhood (LM) — Program (Pricing) page styles
   Page-only styles. Relies on tokens + .btn/.container/.section/.eyebrow from
   style.css. Never hardcode hex here — always use the CSS variables.
   ========================================================================== */

/* Reveal-on-scroll (hook: .reveal -> .is-visible added by main.js) --------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.pg-hero {
  position: relative;
  /* Pull the hero up behind the transparent header so its background is
     continuous — no seam between the header strip and the hero. */
  margin-top: -100px;
  padding: 180px 0 56px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--blush) 0%, transparent 70%),
    var(--warm-cream);
}
.pg-hero::before,
.pg-hero::after {
  /* soft decorative colour blooms */
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.pg-hero::before {
  width: 340px; height: 340px;
  top: -120px; left: -80px;
  background: var(--dusty-rose);
}
.pg-hero::after {
  width: 300px; height: 300px;
  top: -60px; right: -60px;
  background: var(--blush);
}
.pg-hero .container { position: relative; z-index: 1; }
.pg-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.pg-hero .hero-sub {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Monthly / Yearly toggle -------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.12);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.billing-toggle button {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.billing-toggle button.active {
  background: var(--deep-plum);
  color: #fff;
}
.billing-toggle .save-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--dusty-rose);
  color: #fff;
}
.billing-toggle button.active .save-pill { background: rgba(255, 255, 255, 0.22); }

/* --------------------------------------------------------------------------
   2. PRICING CARDS
   -------------------------------------------------------------------------- */
.pricing {
  padding: 40px 0 96px;
  background: var(--warm-cream);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1320px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(92, 61, 78, 0.10);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Highlighted / elevated middle card */
.plan-card.featured {
  border: 1.5px solid var(--dusty-rose);
  background: linear-gradient(180deg, var(--blush) 0%, #fff 42%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
}
.plan-card.featured:hover { transform: translateY(-20px); }
@media (min-width: 981px) {
  .plan-card.featured { z-index: 2; }
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--dusty-rose);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(201, 125, 138, 0.4);
}

/* Round icon badge above the plan name (chat / bottle / heart-in-hand / group) */
.plan-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--dusty-rose);
}
.plan-icon svg { width: 40px; height: 40px; display: block; }
.plan-card.featured .plan-icon { background: #fff; box-shadow: var(--shadow); }

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--deep-plum);
  margin-bottom: 6px;
  text-align: center;
}
.plan-tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  min-height: 2.6em;
  text-align: center;
}
.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 4px;
}
.plan-price .amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  color: var(--deep-plum);
  line-height: 1;
  white-space: nowrap;
}
/* "/ month" stays inline, on the same line as the amount */
.plan-price .per {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
/* 4th card — no price, a "Tailored to you" label sits where the price would be */
.plan-price--custom {
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
}
.plan-price--custom .tailored {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--deep-plum);
  line-height: 1.1;
}
.plan-price-note {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 1.2em;
  margin-bottom: 22px;
  text-align: center;
}
.plan-price-note[hidden] { visibility: hidden; }

.plan-divider {
  height: 1px;
  background: rgba(92, 61, 78, 0.10);
  margin: 4px 0 20px;
}
.plan-includes {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan-includes li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.5;
}
.plan-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blush);
  /* rose check mark */
  background-image:
    linear-gradient(var(--blush), var(--blush));
}
.plan-includes li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
}
.plan-includes .lead {
  font-weight: 600;
  color: var(--deep-plum);
}
.plan-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   2b. TRUSTED-BY FAMILIES STRIP (below the pricing cards)
   -------------------------------------------------------------------------- */
.family-band { padding: 0 0 40px; }
.family-band__card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  background: var(--blush);
  border: 1px solid rgba(92, 61, 78, 0.08);
  border-radius: var(--radius);
  padding: 28px 22px;
}

/* Left: the running count */
.family-band__count {
  display: flex; align-items: center; gap: 16px;
  padding-right: 24px;
  border-right: 1px solid rgba(92, 61, 78, 0.12);
}
.family-band__icon {
  display: grid; place-items: center;
  width: 62px; height: 62px; flex-shrink: 0;
  border-radius: 50%; background: #fff; color: var(--dusty-rose);
  box-shadow: var(--shadow);
}
.family-band__icon svg { width: 34px; height: 34px; }
.family-band__count-text { display: flex; flex-direction: column; line-height: 1.2; }
.family-band__lead { color: var(--muted); font-size: 0.9rem; }
.family-band__num {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--deep-plum); font-weight: 600;
}
.family-band__num strong { font-weight: 600; }
.family-band__sub {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 0.9rem;
}
.family-band__sub svg { color: var(--dusty-rose); }

/* Right: three parent quotes */
.family-band__quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.family-quote { display: flex; align-items: center; gap: 12px; margin: 0; }
.family-quote__avatar {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  overflow: hidden; background: #fff;
  box-shadow: 0 5px 14px rgba(92, 61, 78, 0.13);
  display: grid; place-items: center;
}
.family-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.family-quote__initial {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.1rem; color: var(--dusty-rose);
}
.family-quote__body { position: relative; padding-left: 18px; }
.family-quote__mark {
  position: absolute; left: 0; top: -1px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; line-height: 1;
  color: var(--dusty-rose);
}
.family-quote blockquote {
  margin: 0 0 6px; font-size: 0.82rem; color: var(--body); line-height: 1.45;
}
.family-quote figcaption { font-size: 0.68rem; color: var(--muted); }
.family-quote figcaption strong { color: var(--deep-plum); font-weight: 700; }

@media (max-width: 980px) {
  .family-band__card { grid-template-columns: 1fr; gap: 28px; }
  .family-band__count {
    border-right: 0; padding-right: 0; padding-bottom: 24px;
    border-bottom: 1px solid rgba(92, 61, 78, 0.12); justify-content: center;
  }
}
@media (max-width: 720px) {
  .family-band__quotes { grid-template-columns: 1fr; gap: 20px; }
}

/* --------------------------------------------------------------------------
   3. HOW IT WORKS — vertical timeline with ghost numbers
   -------------------------------------------------------------------------- */
.how {
  position: relative;
  /* NB: no overflow:hidden here — it would break the sticky step numbers. */
  background:
    radial-gradient(50% 40% at 100% 0%, var(--blush) 0%, transparent 60%),
    var(--warm-cream);
}
/* Flowing decorative line-art behind the timeline (ClearPath vibe) */
.how-flow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(760px, 90%); height: 100%;
  z-index: 0; pointer-events: none;
}
.how .container { position: relative; z-index: 1; }
.how-head {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 80px;
  padding-top: 12px;
}
/* Flowing line-art flourish woven behind the heading */
.how-head__flourish {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: min(1080px, 100%);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.how-head__title {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--deep-plum);
}
.how-head__accent { color: var(--dusty-rose); }
/* Subhead offset to the lower-right, ragged-left like the reference */
.how-head .how-intro {
  position: relative;
  z-index: 1;
  color: var(--body);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.55;
  max-width: 620px;
  margin: 22px 0 0 auto;
  text-align: right;
}

@media (max-width: 640px) {
  .how-head .how-intro { text-align: left; margin-top: 18px; }
}

/* Two columns: steps stack on the left, the big number on the right.
   Both columns share one grid row, so the right cell is as tall as all the
   steps — giving the sticky counter room to stay pinned to the viewport
   bottom the whole way down. */
.timeline {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(20px, 5vw, 64px);
}
.how-steps { grid-column: 1; min-width: 0; }

/* One big number pinned bottom-right. Its leading "0" is fixed; only the last
   digit rolls (0→1→2…) as the active step changes. align-self:end sits it at
   the bottom of the tall grid cell so `position:sticky; bottom` pins it. */
.how-counter {
  --dh: 0.82em;                       /* one-digit window height */
  grid-column: 2;
  align-self: end;
  justify-self: end;
  position: sticky;
  bottom: clamp(24px, 8vh, 96px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(7rem, 22vw, 19rem);
  line-height: 1;
  color: var(--dusty-rose);
  pointer-events: none;
  user-select: none;
  transform: scale(var(--num-scale, 1));   /* gentle grow as you scroll (JS) */
  transform-origin: bottom right;
  will-change: transform;
}
.how-counter__zero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--dh);
  overflow: hidden;
}
/* Plain top-aligned clipping window — do NOT center the tall digit column,
   or translateY(--reel) would map to the wrong digit and overshoot to blank. */
.how-counter__reel {
  display: block;
  height: var(--dh);
  overflow: hidden;
}
/* The vertical reel of last digits; JS sets --reel to the active step index */
.how-counter__digits {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--reel, 0) * var(--dh) * -1));
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.how-counter__d {
  height: var(--dh);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each step is tall; its text rises up on the left as you scroll through it. */
.step {
  display: flex;
  align-items: flex-end;
  min-height: 82vh;
}
.step-content {
  max-width: 500px;
  padding-bottom: clamp(40px, 12vh, 140px);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--dusty-rose);
  margin: 0 0 18px;
}
.step-desc {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.62;
  margin: 0 0 12px;
}
.step-tagline {
  display: block;
  font-style: italic;
  color: var(--dusty-rose);
  font-size: 0.98rem;
  margin: 6px 0 0;
}

@media (max-width: 700px) {
  .timeline { column-gap: 10px; }
  .how-counter { font-size: clamp(5.5rem, 30vw, 11rem); bottom: 24px; }
  .step { min-height: 66vh; }
  .step-content { max-width: none; padding-bottom: 8vh; }
}

@media (prefers-reduced-motion: reduce) {
  .how-counter { transform: none !important; }
  .how-counter__digits { transition: none; }
}

/* --------------------------------------------------------------------------
   4. CLOSING CTA
   -------------------------------------------------------------------------- */
.closing {
  background: var(--warm-cream);
}
.closing-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--deep-plum) 0%, var(--deep-rose) 100%);
  border-radius: 28px;
  padding: 56px 56px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  overflow: hidden;
}
.closing-card h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.closing-card p { color: rgba(255, 255, 255, 0.86); margin-bottom: 28px; max-width: 460px; }
.closing-card .btn-light {
  background: #fff;
  color: var(--deep-plum);
}
.closing-card .btn-light:hover { background: var(--blush); color: var(--deep-plum); transform: translateY(-2px); }

.trust-strip { text-align: center; }
.trust-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.trust-avatars .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--deep-plum);
  margin-left: -14px;
  overflow: hidden;
  background: var(--blush);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.trust-avatars .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-avatars .avatar:first-child { margin-left: 0; }
.trust-avatars .avatar.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.trust-strip p {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1.02rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. "A Day Inside Your LM Group" — WhatsApp-style chat mockup
   -------------------------------------------------------------------------- */
.chat-section {
  background:
    radial-gradient(60% 50% at 0% 100%, var(--blush) 0%, transparent 60%),
    var(--warm-cream);
}
.chat-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.chat-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.chat-head p { color: var(--muted); }

.chat-phone {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(92, 61, 78, 0.10);
  overflow: hidden;
}
.chat-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: #2f5d4f; /* WhatsApp-style green header */
  color: #fff;
}
.chat-topbar .grp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.chat-topbar .grp-avatar img {
  width: 78%; height: 78%; object-fit: contain;
}
.chat-topbar .grp-meta strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; }
.chat-topbar .grp-meta span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.chat-topbar .grp-online {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; color: rgba(255, 255, 255, 0.8);
}
.chat-topbar .grp-online::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; /* WhatsApp-feel online dot */
}

.chat-body {
  padding: 20px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* soft warm blush chat backdrop */
  background: #e9e1e1;
}
.chat-day {
  align-self: center;
  margin: 4px 0 6px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 1px 1px rgba(92, 61, 78, 0.08);
}
.bubble {
  max-width: 82%;
  padding: 8px 11px 7px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(92, 61, 78, 0.12);
  position: relative;
}
.bubble .role {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 2px;
  color: var(--deep-rose);
}
.bubble .meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  float: right;
  margin: 5px 0 -1px 12px;
}
.bubble .time {
  font-size: 0.66rem;
  color: rgba(92, 61, 78, 0.5);
}
.bubble .ticks {
  font-size: 0.68rem;
  letter-spacing: -3px;
  color: #4fa3d1; /* WhatsApp "read" blue double-tick */
}
/* incoming = a specialist replying (left, white) */
.bubble.incoming {
  align-self: flex-start;
  background: #fff;
  color: var(--body);
}
/* outgoing = the parent's own message (right, WhatsApp green) */
.bubble.outgoing {
  align-self: flex-end;
  background: #d8f4c4; /* WhatsApp-style sent-bubble green */
  color: var(--body);
}

/* WhatsApp-style message composer */
.chat-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px 12px;
  background: #e9e1e1;
}
.chat-input-field {
  flex: 1;
  padding: 11px 16px;
  background: #fff;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  box-shadow: 0 1px 1px rgba(92, 61, 78, 0.10);
}
.chat-input-mic {
  width: 42px; height: 42px; border-radius: 50%;
  background: #2f5d4f;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(47, 93, 79, 0.35);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
/* Wide tablet / small laptop — 2 across */
@media (max-width: 1160px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-6px); }
}
@media (max-width: 980px) {
  .closing-card { grid-template-columns: 1fr; text-align: center; padding: 44px 32px; }
  .closing-card p { margin-left: auto; margin-right: auto; }
}
/* Phones — single column */
@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .plan-tagline { min-height: 0; }
}
@media (max-width: 560px) {
  .pg-hero { padding: 156px 0 40px; }
  .closing-card { border-radius: 22px; }
  .billing-toggle button { padding: 9px 16px; font-size: 0.88rem; }
}
