/* =========================================================================
   AI Baby — extended visual system
   Base gradient page, nav shell, footer, language switcher, shared atoms.
   Landing-section styles are appended in Phase B.
   ========================================================================= */

body.is-aibaby-home,
body {
  background: linear-gradient(168deg, #FBF1E5 0%, #F8EEE0 38%, #EFEAEC 70%, #E9EAF3 100%);
  overflow-x: hidden;
}

a { color: var(--accent); }

/* keep anchored sections clear of the sticky nav */
#quiz, #how, #grow, #features, #reviews, #faq { scroll-margin-top: 92px; }

/* ---------- NAV ---------- */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 60;
  padding: 0 18px;
}
.nav-bar {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 4px);
  margin: 0 auto;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 16px 40px -20px rgba(90,55,30,.4);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 12px;
  transition: padding .25s ease, gap .25s ease;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 8px 16px -5px rgba(242,62,92,.6);
}
.nav-logo-text { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 21px; letter-spacing: .6px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; font-weight: 600; font-size: 15px; padding: 0 18px; }
.nav-links-level-main { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: #564E49; }
.nav-links a:hover { color: var(--accent); }
.nav-links-level-lang, .nav-links-lang-row { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* ---------- MOBILE NAV TOGGLE ---------- */
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column;
  gap: 5px; width: 44px; height: 44px; border: none; background: var(--tint-cream); border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle-bar { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-wrap.is-nav-open .nav-toggle { background: var(--tint-cream-2); }
.nav-wrap.is-nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-wrap.is-nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-wrap.is-nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none; border-radius: 999px;
  padding: 13px 28px; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 24px -8px rgba(242,62,92,.6);
}
.nav-cta:hover { background: var(--accent-dark); }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1.5px solid rgba(0,0,0,.08); background: #fff; color: #564E49;
  border-radius: 999px; padding: 9px 13px; font-weight: 700; font-size: 13px;
  font-family: inherit;
}
.lang-toggle:hover { border-color: rgba(242,62,92,.4); color: var(--accent); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border-radius: 16px; min-width: 180px;
  box-shadow: 0 24px 50px -20px rgba(70,45,30,.4); border: 1px solid rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
  z-index: 70; max-height: 60vh; overflow: auto;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-item {
  display: block; padding: 9px 14px; border-radius: 10px; text-decoration: none;
  color: #46403B; font-weight: 600; font-size: 14px;
}
.lang-item:hover { background: var(--tint-cream); }
.lang-item.is-active { color: var(--accent); background: #FFF1F3; }

/* ---------- SHARED ATOMS ---------- */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 16px 34px; font-family: 'Baloo 2', cursive;
  font-weight: 700; font-size: 17px; box-shadow: 0 16px 30px -10px rgba(242,62,92,.6);
}
.btn-primary:hover { background: var(--accent-dark); }
.err-mark {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 12px 24px -8px rgba(242,62,92,.5);
}

/* ---------- GENERIC PAGE ---------- */
.page-main { padding: 40px 20px 80px; }
.page-container { max-width: 760px; margin: 0 auto; }
.page-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(30px,4vw,46px); letter-spacing: -1px; }
.page-content { font-size: 17px; line-height: 1.7; color: #3A332F; }
.page-content h2 { font-family: 'Baloo 2', cursive; font-size: 26px; margin-top: 32px; }
.about-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 20px; margin: 20px 0; }
.about-team-card { text-align: center; position: relative; }
.about-team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 20px; box-shadow: 0 10px 22px -12px rgba(70,45,30,.35); }
.about-team-card h3 { font-family: 'Baloo 2', cursive; font-size: 17px; margin: 12px 0 2px; }
.about-team-card p { font-size: 13.5px; color: var(--muted); margin: 0; font-weight: 600; }
.about-team-role { display: inline-block; }

/* ---------- ABOUT PAGE ---------- */
.about-hero { padding-bottom: 0; position: relative; overflow: hidden; min-height: clamp(560px,58vw,720px); display: flex; align-items: center; margin-top: -84px; }
.about-hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: 0; }
.about-hero-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 50% 62% at 44% 48%, rgba(251,241,229,.97) 0%, rgba(251,241,229,.93) 34%, rgba(251,241,229,.55) 62%, rgba(251,241,229,0) 85%); }
.about-hero-center { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; padding: 70px 20px 30px; }
.about-hero-title { text-align: center; margin: 16px 0 18px; }
.about-hero-accent { color: var(--accent); }
.about-hero-lead { text-align: center; margin: 0 auto 26px; max-width: 480px; }
.about-hero-stats { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.about-hero-stat strong { display: block; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 28px; }
.about-hero-stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.about-hero-stat-pink strong { color: var(--accent); }
.about-hero-stat-blue strong { color: var(--blue); }
.about-hero-stat-purple strong { color: var(--purple); }
@media (max-width: 640px) {
  .about-hero { display: block; min-height: 0; }
  .about-hero-bg-img { position: static; display: block; width: 240%; max-width: 240%; height: auto; margin-left: 50%; transform: translateX(-50%); object-fit: contain; }
  .about-hero-scrim { background: linear-gradient(180deg, rgba(251,241,229,0) 0%, rgba(251,241,229,.18) 26%, rgba(251,241,229,.72) 42%, rgba(251,241,229,.96) 54%, rgba(251,241,229,1) 66%); }
  .about-hero-center { margin-top: -47vw; padding: 0 20px 40px; }
  .about-hero-stats { gap: 22px; }
}
@media (min-width: 641px) {
  .hero.about-hero { max-width: none; width: 100%; margin: -84px 0 0; padding: 0; }
  .about-hero-center { padding: 174px 20px 40px; }
}

.about-values-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px; }
.about-value-card { background: #fff; border-radius: 22px; padding: 28px 24px; box-shadow: 0 24px 46px -34px rgba(70,45,30,.35); text-align: center; }
.about-value-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; }
.about-value-icon svg { width: 24px; height: 24px; }
.about-value-icon-pink { background: var(--tint-pink); color: var(--accent); }
.about-value-icon-blue { background: var(--tint-blue); color: var(--blue); }
.about-value-icon-purple { background: var(--tint-purple); color: var(--purple); }
.about-value-title { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 17.5px; margin: 0 0 8px; }
.about-value-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

.about-timeline { position: relative; max-width: 620px; margin: 0 auto; }
.about-timeline::before { content: ''; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--blue), var(--purple)); border-radius: 2px; }
.about-timeline-item { position: relative; display: flex; gap: 22px; padding-bottom: 34px; }
.about-timeline-item:last-child { padding-bottom: 0; }
.about-timeline-dot { position: relative; z-index: 1; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 14px 26px -14px rgba(70,45,30,.45); display: grid; place-items: center; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 11px; color: var(--accent); }
.about-timeline-item:nth-child(3n-1) .about-timeline-dot { color: var(--blue); }
.about-timeline-item:nth-child(3n) .about-timeline-dot { color: var(--purple); }
.about-timeline-body { padding-top: 4px; }
.about-timeline-body h3 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.about-timeline-body p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 52ch; }

/* ---------- SCROLL / ENTRANCE REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.about-values-grid > [data-reveal]:nth-child(2) { transition-delay: .09s; }
.about-values-grid > [data-reveal]:nth-child(3) { transition-delay: .18s; }
.about-timeline-item:nth-child(2) { transition-delay: .08s; }
.about-timeline-item:nth-child(3) { transition-delay: .16s; }
.about-timeline-item:nth-child(4) { transition-delay: .24s; }
.about-timeline-item:nth-child(5) { transition-delay: .32s; }
.about-timeline-item:nth-child(6) { transition-delay: .4s; }
.about-team-grid > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.about-team-grid > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.about-team-grid > [data-reveal]:nth-child(4) { transition-delay: .24s; }
.about-hero-title[data-reveal] { transition-delay: .08s; }
.about-hero-lead[data-reveal] { transition-delay: .16s; }
.about-hero-stats[data-reveal] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.about-panel { background: linear-gradient(140deg,#FBF1E5,#EDEAF4); border-radius: 34px; padding: clamp(30px,5vw,60px) clamp(20px,4vw,44px); }

/* ---------- FOOTER ---------- */
.site-footer { background: #1C1A1F; color: #D8D2CE; padding: 56px 20px 30px; margin-top: 40px; }
.footer-grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 28px;
}
.footer-brand { max-width: 320px; }
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; }
.footer-logo-text { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .5px; }
.footer-tagline { font-size: 14px; line-height: 1.6; color: #9A938E; margin: 0 0 18px; }
.footer-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-store {
  display: inline-flex; align-items: center; background: #2A282E; color: #fff;
  text-decoration: none; border-radius: 11px; padding: 2px 5px;
}
.footer-store:hover { background: #3a373f; }
.footer-store img { display: block; height: 46px; width: auto; }
.footer-col h4 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15px; color: #fff; margin: 0 0 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: #9A938E; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal-note { max-width: 1180px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid #2E2C32; }
.footer-legal-note p { font-size: 12.5px; line-height: 1.6; color: #7C756F; margin: 0 0 12px; }
.footer-legal-note p:last-child { margin: 0; }

/* ---------- RTL ---------- */
body.is-rtl-language { direction: rtl; }

/* ---------- RESPONSIVE ----------
   Compact nav (tablet + mobile): triggers as soon as the inline link row
   would wrap onto two lines (measured ~840px for the current EN labels;
   1024px keeps a safety margin for longer translated labels). Below this,
   the pill stretches edge-to-edge and the language switcher moves from the
   header into a second level inside the hamburger panel. Below 480px
   (phone only) the wordmark text is dropped to save room. */
@media (max-width: 1024px) {
  .nav-bar { width: 100%; max-width: none; gap: 10px; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .lang-switch { display: none; }
  .nav-links {
    display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 10px);
    background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 24px 50px -20px rgba(70,45,30,.4);
    border: 1px solid rgba(0,0,0,.06); z-index: 65; overflow: hidden;
  }
  .nav-wrap.is-nav-open .nav-links { display: flex; }
  .nav-links-level { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links-level-lang { max-height: min(58vh, 420px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .nav-links a { padding: 13px 14px; border-radius: 14px; min-height: 44px; display: flex; align-items: center; }
  .nav-links a:hover { background: var(--tint-cream); }

  /* language row (level 1) + language list (level 2) */
  .nav-links-lang-row {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 13px 14px; min-height: 44px; border: none; background: none; cursor: pointer;
    font-family: inherit; font-weight: 600; font-size: 15px; color: #564E49; border-radius: 14px;
  }
  .nav-links-lang-row:hover { background: var(--tint-cream); }
  .nav-links-lang-row-label { display: flex; align-items: center; gap: 10px; }
  .nav-links-lang-row-val { display: flex; align-items: center; gap: 4px; color: #A79C94; font-weight: 700; font-size: 13px; }
  .nav-links-level-lang { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-links-back {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    padding: 13px 14px; min-height: 44px; border: none; background: #fff; cursor: pointer;
    font-family: inherit; font-weight: 700; font-size: 13px; color: #A79C94; border-radius: 14px;
    position: sticky; top: 0; z-index: 1; flex-shrink: 0;
  }
  .nav-links-back:hover { background: var(--tint-cream); }
  .nav-links-lang-item { padding: 13px 14px; border-radius: 14px; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 15px; }
  .nav-links-lang-item:hover { background: var(--tint-cream); }
  .nav-links-lang-item.is-active { color: var(--accent); background: #FFF1F3; }

  .nav-right { gap: 8px; }
  .nav-cta { padding: 13px 15px; font-size: 13.5px; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; white-space: nowrap; }
}
@media (min-width: 1025px) {
  .nav-wrap.is-scrolled .nav-bar { padding: 7px 8px; gap: 22px; box-shadow: 0 10px 26px -16px rgba(90,55,30,.4); }
  .nav-wrap.is-scrolled .nav-logo-mark { width: 32px; height: 32px; transition: width .25s ease, height .25s ease; }
  .nav-wrap.is-scrolled .nav-logo-text { font-size: 17px; }
  .nav-wrap.is-scrolled .nav-cta { padding: 10px 22px; font-size: 14px; }
  .nav-logo-mark, .nav-logo-text, .nav-cta { transition: all .25s ease; }
}

/* =========================================================================
   LANDING SECTIONS (Phase B)
   ========================================================================= */
@keyframes floatHeart {0%,100%{transform:translateY(0) rotate(var(--r,0deg))}50%{transform:translateY(-22px) rotate(var(--r,0deg))}}
@keyframes fadeUp {from{opacity:.4;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes spin {to{transform:rotate(360deg)}}
@keyframes pop {from{transform:scale(.96)}to{transform:none}}

.landing { position: relative; }
.sec { max-width: 1180px; margin: 0 auto; padding: 64px 20px; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.eyebrow-pink { color: var(--accent); background: var(--tint-pink); }
.eyebrow-blue { color: var(--blue); background: var(--tint-blue); }
.eyebrow-purple { color: var(--purple); background: var(--tint-purple); }
.sec-h2 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(32px,4.6vw,52px); line-height: 1.05; letter-spacing: -1px; margin: 18px 0 12px; }
.sec-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0; }
.stars { color: #F4A422; letter-spacing: 1px; }
.stars-lg { display: block; margin-top: 14px; font-size: 26px; letter-spacing: 3px; }

/* HERO */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding: 46px 20px 0; text-align: center; }
.hero-hearts { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-hearts .fh { position: absolute; color: #fff; }
.fh svg { width: 100%; height: 100%; }
.fh1 { --r:-12deg; left:24%; top:19%; width:130px; height:130px; opacity:.85; filter: blur(2px) drop-shadow(0 8px 20px rgba(242,62,92,.12)); animation: floatHeart 7s ease-in-out infinite; }
.fh2 { --r:10deg; left:12%; top:50%; width:80px; height:80px; opacity:.7; filter: blur(1px); animation: floatHeart 9s ease-in-out infinite .8s; }
.fh3 { --r:8deg; right:18%; top:74%; width:80px; height:80px; opacity:.8; filter: blur(1.5px) drop-shadow(0 8px 20px rgba(94,141,240,.14)); animation: floatHeart 8.5s ease-in-out infinite .4s; }
.fh4 { --r:-6deg; right:9%; top:52%; width:170px; height:170px; opacity:.55; filter: blur(2.5px); animation: floatHeart 10s ease-in-out infinite 1.2s; }
.fh5 { --r:14deg; left:29%; top:88%; width:46px; height:46px; opacity:.6; animation: floatHeart 6.5s ease-in-out infinite 1.6s; }
.fh6 { --r:-9deg; left:2%; top:26%; width:46px; height:46px; opacity:.55; filter: blur(1px); animation: floatHeart 8s ease-in-out infinite .6s; }
.fh7 { --r:5deg; right:5%; top:84%; width:55px; height:55px; opacity:.6; animation: floatHeart 7.5s ease-in-out infinite 2s; }
.hero-inner { position: relative; z-index: 1; }
.hero-kicker { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 15px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin: 20px 0 0; }
.hero-rating { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; color: #7A716B; margin-top: 6px; }
.hero-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(48px,8.5vw,104px); line-height: .96; letter-spacing: -1.5px; margin: 14px 0 0; }
.hero-sub { font-family: 'Baloo 2', cursive; font-weight: 600; font-size: clamp(24px,3.5vw,40px); color: #3A332F; margin: 6px 0 0; }
.hero-stores, .bm-modal .hero-stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 22px; padding: 2px 5px; box-sizing: border-box; box-shadow: 0 14px 26px -12px rgba(28,26,31,.45); transition: filter .15s ease, background .15s ease; }
.store-btn:hover { filter: brightness(1.15); }
.store-btn-accent { background: var(--accent); box-shadow: 0 12px 24px -8px rgba(242,62,92,.6); }
.store-btn-accent:hover { background: var(--accent-dark); filter: none; }
.store-btn img { display: block; height: 69px; width: auto; }
.hero-scene { position: relative; width: min(900px,96vw); margin: 18px auto 0; display: flex; justify-content: center; align-items: flex-start; }
.hero-arrow { position: absolute; top: 24%; width: clamp(120px,25vw,250px); height: auto; z-index: 3; pointer-events: none; }
.hero-arrow-mom { left: 2%; top: 19%; }
.hero-arrow-dad { right: 3%; top: 11%; width: clamp(125px,26vw,260px); }
.hero-phone { position: relative; z-index: 2; width: min(380px,52vw); height: auto; filter: drop-shadow(0 40px 60px rgba(70,45,30,.28)); }
.hero-card { position: relative; z-index: 4; max-width: 540px; margin: -20px auto 0; background: #fff; border-radius: 42px; box-shadow: 0 40px 70px -34px rgba(70,45,30,.38); padding: 40px 38px; }
.hero-card p { font-size: clamp(18px,2.4vw,22px); line-height: 1.5; color: #46403B; font-weight: 500; margin: 0; }

/* HOW — numbered step timeline (badge overlaps the media, not a plain card) */
.sec-quiz { padding-top: 72px; padding-bottom: 40px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 22px 26px; }
.how-card { background: #fff; border-radius: 24px; padding: 18px 20px 22px; box-shadow: 0 26px 50px -34px rgba(70,45,30,.35); display: flex; flex-direction: column; gap: 16px; }
.how-media { position: relative; }
.how-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; display: block; background: linear-gradient(135deg,#FBEFE2,#F1E7F1); }
.how-num {
  position: absolute; left: 14px; bottom: -16px; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 18px -6px rgba(242,62,92,.6); border: 3px solid #fff;
}
@media (min-width: 1000px) {
  .how-grid { grid-template-columns: repeat(4,1fr); }
}
.how-body { padding-top: 6px; }
.how-title { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 19px; margin: 0 0 7px; }
.how-desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* GROW */
.sec-grow { padding: 44px 20px; }
.grow-panel { background: linear-gradient(140deg,#FBF1E5,#EDEAF4); border-radius: 34px; padding: clamp(28px,5vw,64px); display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 40px; align-items: center; }
.grow-lead { font-size: 17px; line-height: 1.6; color: #5A524C; margin: 0 0 24px; max-width: 440px; }
.grow-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.grow-age { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 40px; color: var(--ink); }
.grow-age small { font-size: 18px; color: var(--purple); }
.grow-make-older { display: block; margin-top: 14px; font-family: inherit; font-weight: 700; font-size: 14px; color: #fff; background: var(--purple); border: none; border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 16px -6px rgba(155,123,224,.55); }
.grow-make-older:hover { transform: translateY(-1px); }
.grow-make-older:active { transform: translateY(0); }
.grow-range { width: 100%; max-width: 420px; margin-top: 22px; accent-color: var(--purple); height: 6px; cursor: pointer; display: block; }
.grow-ticks { display: flex; justify-content: space-between; max-width: 420px; font-size: 12px; color: #A79C94; font-weight: 600; margin-top: 4px; }
.grow-phone-wrap { position: relative; display: flex; justify-content: center; width: min(300px,80vw); margin: 0 auto; }
.grow-reference-photo { position: absolute; left: 0; top: 30%; transform: translate(-46%, -50%); width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 14px 28px -10px rgba(70,45,30,.4); z-index: 4; }
.grow-phone { width: min(300px,80vw); aspect-ratio: 9/16; border-radius: 34px; background: #fff; border: 8px solid var(--ink); box-shadow: 0 40px 70px -30px rgba(70,45,30,.4); overflow: hidden; display: flex; flex-direction: column; }
.grow-screen { position: relative; flex: 1; overflow: hidden; background: linear-gradient(160deg,#F3E7F0,#E4DCF2); }
.grow-age-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1; transition: opacity .3s ease; }
.grow-age-img:first-of-type { z-index: 2; }
.grow-age-img:last-of-type { z-index: 1; }
.grow-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(28,26,31,.62); color: #fff; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; z-index: 3; }
.grow-screen-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(20,17,23,.8), rgba(20,17,23,0)); pointer-events: none; display: none; z-index: 3; }
.grow-slider-slot { position: absolute; left: 0; right: 0; bottom: 40px; padding: 14px 18px calc(10px + env(safe-area-inset-bottom)); display: none; z-index: 3; }
.grow-slider-slot .grow-range { max-width: none; margin-top: 0; height: 44px; touch-action: pan-x; }
.grow-slider-slot .grow-ticks { max-width: none; color: rgba(255,255,255,.85); }
.grow-slider-slot .grow-make-older { display: none; }
@media (max-width: 720px) {
  .grow-badge-top { top: 14px; bottom: auto; }
  .grow-screen-scrim, .grow-slider-slot { display: block; }
  .grow-controls { display: none; }
}

/* FEATURES — bento: the flagship feature (first card) runs wide */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 20px; }
.feat-card { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 24px 46px -34px rgba(70,45,30,.35); display: flex; flex-direction: column; gap: 15px; }
.feat-card > img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 15px; display: block; background: linear-gradient(135deg,#FBEFE2,#EDE9F3); }
.feat-name { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.feat-desc { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
@media (min-width: 701px) {
  .feat-card:first-child { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; padding: 22px; }
  .feat-card:first-child > img { width: 46%; flex-shrink: 0; aspect-ratio: 4/3; }
  .feat-card:first-child .feat-name { font-size: 21px; }
  .feat-card:first-child .feat-desc { font-size: 15px; }
}

/* REVIEWS — 4-up grid, no clipping */
.sec-reviews { padding-bottom: 64px; }
.review-wrap { position: relative; }
.review-track { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.review-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 24px 46px -34px rgba(70,45,30,.35); display: flex; flex-direction: column; gap: 16px; }
.review-quote { font-size: 15.5px; line-height: 1.6; color: #3A332F; margin: 0; flex: 1; }
.review-author { display: flex; align-items: center; gap: 11px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; filter: blur(2.5px); transform: scale(1.15); }
.review-name { font-weight: 700; font-size: 14.5px; color: #46403B; }

/* FAQ */
.sec-faq { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -34px rgba(70,45,30,.4); overflow: hidden; }
.faq-q { width: 100%; cursor: pointer; border: none; background: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; text-align: left; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq-sign { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-cream); display: grid; place-items: center; color: var(--accent); font-size: 18px; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.16,1,.3,1); }
.faq-a-inner { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 22px 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* FINAL CTA */
.sec-final { padding: 20px 20px 80px; max-width: none; }
.final-card { max-width: 1000px; margin: 0 auto; background: linear-gradient(135deg,#F23E5C,#FF6E8A 55%,#9B7BE0); border-radius: 38px; padding: clamp(40px,6vw,80px) 28px; text-align: center; color: #fff; box-shadow: 0 50px 90px -40px rgba(242,62,92,.6); position: relative; overflow: hidden; }
.final-heart { position: absolute; }
.final-heart svg { width: 100%; height: 100%; }
.final-heart-1 { top: -30px; right: 6%; width: 120px; height: 120px; color: rgba(255,255,255,.18); }
.final-heart-2 { bottom: -20px; left: 5%; width: 90px; height: 90px; color: rgba(255,255,255,.15); }
.final-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(34px,5vw,60px); line-height: 1.04; letter-spacing: -1px; margin: 0 0 14px; position: relative; }
.final-lead { font-size: clamp(17px,2.4vw,21px); line-height: 1.5; opacity: .95; margin: 0 auto 30px; max-width: 480px; position: relative; }
.final-card .hero-stores { position: relative; }
.final-disclaimer { max-width: 560px; margin: 22px auto 0; font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.8); text-align: center; position: relative; }

/* Responsive tweaks for landing */
@media (max-width: 720px) {
  .sec { padding-left: 18px; padding-right: 18px; }
  .sec-how, .sec-features { padding-top: 48px; padding-bottom: 48px; }
  .sec-quiz { padding-top: 52px; }
  .hero-phone { width: min(430px,86vw); }
  .hero-arrow { width: clamp(96px,28vw,150px); }
  .hero-arrow-mom { top: 22%; }
  .hero-arrow-dad { top: 13%; }
  .hero-card { margin-top: -10px; }
  .hero-stores, .bm-modal .hero-stores { flex-wrap: nowrap; gap: 8px; }
  .store-btn { padding: 2px 4px; flex: 1 1 0; min-width: 0; }
  .store-btn img { height: 52px; max-width: 100%; }
}
@media (max-width: 380px) {
  .hero-phone { width: 90vw; }
  .hero-arrow { width: 26vw; }
  .hero-title { font-size: clamp(38px,12vw,48px); }
}

/* =========================================================================
   BABY MIX QUIZ CARD (Phase C)
   ========================================================================= */
.bm-card { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 32px; box-shadow: 0 40px 80px -40px rgba(70,45,30,.4); overflow: hidden; min-height: 420px; position: relative; }
.bm-exit { display: none; }
.bm-card.is-fullscreen { position: fixed; inset: 0; z-index: 200; max-width: none; width: 100%; height: 100%; border-radius: 0; margin: 0; overflow-y: auto; }
.bm-card.is-fullscreen .bm-body { max-width: 600px; margin: 0 auto; padding-top: 70px; }
.bm-card.is-fullscreen .bm-exit {
  display: flex; align-items: center; justify-content: center; position: fixed; top: 18px; right: 18px; z-index: 210;
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--tint-cream-2); color: #46403B; font-size: 20px; line-height: 1; cursor: pointer;
}
body.bm-scroll-lock { overflow: hidden; }
.bm-strip { height: 8px; background: linear-gradient(90deg,#F7B58E,#F23E5C 45%,#9B7BE0 75%,#5E8DF0); }
.bm-body { padding: 34px 34px 36px; }
.bm-step { animation: fadeUp .4s ease; }
.bm-center { text-align: center; }
.bm-h3 { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 25px; line-height: 1.2; margin: 0 0 12px; }
.bm-p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.bm-small { font-size: 14px; }
.bm-fine { font-size: 12.5px; color: #A79C94; margin: 14px 0 0; line-height: 1.5; }

.bm-btn-primary { border: none; cursor: pointer; background: var(--accent); color: #fff; border-radius: 999px; padding: 17px 40px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 18px; box-shadow: 0 16px 30px -10px rgba(242,62,92,.6); }
.bm-btn-primary:hover { background: var(--accent-dark); }
.bm-block { display: block; width: 100%; text-align: center; }
.bm-btn-ghost { width: 100%; margin-top: 11px; cursor: pointer; border: 2px solid var(--tint-border); background: #fff; color: #46403B; border-radius: 999px; padding: 15px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 16px; }
.bm-btn-ghost:hover { background: var(--tint-cream); }
.bm-link { border: none; background: none; cursor: pointer; color: #8A817B; font-weight: 600; font-size: 13px; text-decoration: underline; font-family: inherit; }
.bm-share-native { display: block; width: 100%; padding: 14px; font-size: 16px; margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* intro */
.bm-intro { text-align: center; padding: 18px 4px 6px; }
.bm-intro-illustration { display: block; width: 600px; max-width: 100%; height: auto; margin: 0 auto 18px; }

/* upload */
.bm-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bm-upload { width: 100%; cursor: pointer; border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; overflow: hidden; position: relative; }
.bm-upload-user { border: 2px dashed rgba(242,62,92,.4); background: #FFF7F8; }
.bm-upload-partner { border: 2px dashed rgba(94,141,240,.4); background: #F5F8FF; }
.bm-upload-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-upload-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bm-upload-t { font-weight: 700; font-size: 14px; color: #46403B; }
.bm-upload-h { font-size: 12px; color: #A79C94; }
.bm-continue { width: 100%; margin-top: 18px; cursor: pointer; border: none; border-radius: 999px; padding: 16px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 17px; color: #fff; background: #E6DACF; }
.bm-continue.is-ready { background: var(--accent); box-shadow: 0 16px 30px -10px rgba(242,62,92,.55); }
.bm-continue:disabled { cursor: default; }

/* quiz */
.bm-qtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bm-progress { font-weight: 700; font-size: 13px; color: #A79C94; letter-spacing: .5px; }
.bm-track { height: 6px; background: var(--tint-peach); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.bm-track-fill { height: 100%; background: linear-gradient(90deg,#F7B58E,#F23E5C); border-radius: 999px; transition: width .4s ease; }
.bm-qtext { margin-bottom: 22px; }
.bm-options { display: flex; flex-direction: column; gap: 11px; }
.bm-option { position: relative; text-align: left; cursor: pointer; border: none; border-radius: 16px; padding: 13px 18px; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 16px; background: #FBF6F1; color: #3A332F; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06); display: flex; align-items: center; gap: 14px; }
.bm-option:hover { filter: brightness(.98); }
.bm-option.is-selected { background: #FFF1F3; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); animation: bmOptionPop .3s ease; }
@keyframes bmOptionPop { 0% { transform: scale(.97); } 55% { transform: scale(1.015); } 100% { transform: scale(1); } }
.bm-option:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.bm-opt-label { flex: 1; }
.bm-check { font-size: 18px; color: var(--accent); flex-shrink: 0; }

/* question-to-question transition: the just-answered options fade/slide out,
   the next question's options fly in staggered by index — makes the progress
   between the 5 questions legible instead of a hard content swap. */
.bm-option { animation: bmOptIn .45s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes bmOptIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.bm-options.bm-options-leaving .bm-option { animation: bmOptOut .2s ease forwards !important; }
@keyframes bmOptOut { to { opacity: 0; transform: translateY(-10px) scale(.96); } }

/* desktop: center the question, show options as bigger side-by-side cards so
   the per-option illustration/avatar reads larger */
@media (min-width: 900px) {
  .bm-qtext { text-align: center; font-size: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }
  .bm-options { flex-direction: row; justify-content: center; gap: 18px; }
  .bm-option { flex-direction: column; justify-content: center; text-align: center; width: 210px; padding: 26px 18px 20px; gap: 14px; }
  .bm-opt-ava { width: 120px; height: 120px; }
  .bm-opt-ava-mix img { width: 64px; height: 64px; top: 16px; }
  .bm-check { position: absolute; top: 12px; right: 12px; }
}

/* per-option avatar — reuses the uploaded parent photos so every question keeps
   the two-faces motif alive instead of reading as a plain text list (quiz-backlog.md D1) */
.bm-opt-ava { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; position: relative; }
.bm-opt-ava-photo { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(242,62,92,.4); }
.bm-opt-ava-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bm-opt-ava-photo-blue { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(94,141,240,.4); }
.bm-opt-ava-mix img { position: absolute; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; top: 4px; }
.bm-opt-ava-mix img:first-child { left: 0; z-index: 1; }
.bm-opt-ava-mix img:last-child { right: 0; }
.bm-opt-ava-swatch { background: var(--tint-cream-2); overflow: hidden; }
.bm-opt-ava-swatch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bm-opt-ava-surprise { background: linear-gradient(135deg,#C9B6E8,#9B7BE0); }
.bm-opt-ava-soft { background: linear-gradient(135deg,#FBE6D8,#F7B58E); }
.bm-opt-ava-playful { background: linear-gradient(135deg,#FFC2CE,#F23E5C); }
.bm-opt-ava-mixed { background: linear-gradient(135deg,#BFD3FF,#5E8DF0); }
.bm-option.is-selected .bm-opt-ava-photo { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--accent); }
.bm-option.is-selected .bm-opt-ava-photo-blue { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--blue); }

/* upload / quiz / calc steps: vertically center inside the fullscreen card so
   short content doesn't strand a wall of empty space beneath it on tall phones */
@media (max-width: 720px) {
  .bm-card.is-fullscreen .bm-step[data-step="upload"],
  .bm-card.is-fullscreen .bm-step[data-step="quiz"],
  .bm-card.is-fullscreen .bm-step[data-step="calc"] {
    min-height: calc(100vh - 106px); display: flex; flex-direction: column; justify-content: center;
  }
}

/* calc */
.bm-spinner { width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; border: 4px solid #F4E6DD; border-top-color: var(--accent); animation: spin .9s linear infinite; }
.bm-step[data-step="calc"] { padding: 46px 0; }

/* result — staggered reveal (score → features → locked block → actions) */
.bm-reveal { opacity: 0; }
.bm-step[data-step="result"].bm-anim-in .bm-reveal {
	animation: revealUp .55s cubic-bezier(.16,1,.3,1) forwards;
	animation-delay: calc(var(--d, 0) * 110ms);
}
@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.bm-reveal { opacity: 1; animation: none !important; }
}

/* result */
.bm-result-head { margin-bottom: 18px; }
.bm-burst { position: relative; height: 0; }
.bm-burst-h { position: absolute; top: -6px; width: 15px; height: 15px; opacity: 0; }
.bm-step[data-step="result"].bm-anim-in .bm-burst-h { animation: bmBurst 1.05s ease-out forwards; }
.bm-burst-h1 { left: 18%; color: var(--accent); animation-delay: .18s; }
.bm-burst-h2 { left: 37%; width: 11px; height: 11px; color: var(--purple); animation-delay: .04s; }
.bm-burst-h3 { left: 50%; color: var(--blue); animation-delay: .3s; }
.bm-burst-h4 { left: 63%; width: 11px; height: 11px; color: var(--accent); animation-delay: .1s; }
.bm-burst-h5 { left: 80%; color: var(--purple); animation-delay: .24s; }
@keyframes bmBurst { 0% { opacity: 0; transform: translateY(4px) scale(.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-42px) scale(1.05); } }
.bm-facerow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 22px; }
.bm-face { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #F2EAE2; box-shadow: 0 6px 14px -6px rgba(0,0,0,.3); border: 3px solid #fff; display: grid; place-items: center; position: relative; }
.bm-face img { width: 100%; height: 100%; object-fit: cover; }
.bm-face-blue { background: #E9EEF8; }
.bm-face-baby { background: #E9D9F2; }
.bm-face-baby img { filter: blur(3.5px) saturate(.9); transform: scale(1.12); }
/* the lock badge is meant to peek outside the circle's edge — it needs a
   wrapper that isn't clipped by .bm-face's own overflow:hidden, otherwise
   the badge gets cut into a quarter-circle sliver instead of sitting on top */
.bm-face-wrap { position: relative; display: inline-flex; }
.bm-face-lockbadge { position: absolute; right: -3px; bottom: -3px; width: 21px; height: 21px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.bm-plus { font-family: 'Baloo 2', cursive; font-weight: 700; color: #C9BFB6; font-size: 20px; }
.bm-pctrow { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.bm-pct-user { color: var(--accent); }
.bm-pct-partner { color: var(--blue); }
.bm-pctbar { height: 13px; border-radius: 999px; background: var(--blue); overflow: hidden; margin-bottom: 22px; }
.bm-pctbar-fill { height: 100%; background: linear-gradient(90deg,#F7B58E,#F23E5C); border-radius: 999px; transition: width .9s ease; }
.bm-resulttext { background: var(--tint-cream); border-radius: 18px; padding: 18px 20px; margin-bottom: 20px; }
.bm-main { font-size: 16px; line-height: 1.55; color: #3A332F; font-weight: 600; margin: 0 0 8px; }
.bm-sub { font-size: 14px; line-height: 1.5; color: #7A716B; margin: 0; }
.bm-featlabel { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 15px; margin: 0 0 10px; color: #46403B; }
.bm-featgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; }
.bm-feat { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 12px; padding: 9px 6px; text-align: center; }
.bm-feat-l { font-size: 10.5px; color: #A79C94; font-weight: 600; margin-bottom: 2px; white-space: nowrap; }
.bm-feat-v { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
@media (max-width: 380px) {
  .bm-featgrid { grid-template-columns: 1fr 1fr; }
}
.bm-locked { background: var(--ink); border-radius: 18px; padding: 20px 22px; margin-bottom: 22px; color: #fff; }
.bm-locked-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 16px; }
.bm-locked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.bm-locked-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #D8D2CE; }
.bm-locked-item span:first-child { color: #F7B58E; }
.bm-tryagain { margin-top: 16px; }

/* result actions — pinned to the bottom of the viewport on mobile so the
   conversion CTA never requires scrolling past the locked-features block to
   find it (quiz-backlog.md D0 sequel: reachable, not just non-destructive) */
@keyframes bmCtaPulse { 0%,100% { box-shadow: 0 16px 30px -10px rgba(242,62,92,.6); } 50% { box-shadow: 0 16px 34px -4px rgba(242,62,92,.85); } }
.bm-step[data-step="result"] .bm-result-actions .bm-btn-primary { animation: bmCtaPulse 2.6s ease-in-out infinite; }
@media (max-width: 720px) {
  .bm-card.is-fullscreen .bm-result-actions {
    position: sticky; bottom: 0; z-index: 5;
    margin: 20px -34px 0; padding: 14px 34px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #fff 62%, rgba(255,255,255,0));
  }
}

/* modals */
[hidden] { display: none !important; }
/* fixed (not absolute) so the overlay stays pinned to the viewport even
   though the fullscreen quiz card underneath (.bm-card.is-fullscreen) is
   itself a scroll container — with `absolute` the modal's inset:0 was
   relative to the card's scrollable content box, so scrolling inside the
   modal on mobile revealed the page/card content sliding in behind it */
.bm-modal { position: fixed; inset: 0; background: rgba(28,26,31,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 10; animation: fadeUp .25s ease; overscroll-behavior: contain; }
.bm-modal-card { background: #fff; border-radius: 26px; width: 100%; max-width: 440px; max-height: 92%; overflow: auto; padding: 26px 24px 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: pop .3s ease; }
.bm-modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bm-modal-topclose { display: flex; justify-content: flex-end; }
.bm-close { border: none; background: var(--tint-cream-2); cursor: pointer; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; color: #6B635D; flex-shrink: 0; }
.bm-modal-bar { background: linear-gradient(135deg,var(--tint-cream),#F6EEF6); border-radius: 16px; padding: 14px 16px; margin: 16px 0; display: flex; align-items: center; gap: 12px; }
.bm-modal-bar .bm-pct-user, .bm-modal-bar .bm-pct-partner { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 22px; }
.bm-modal-bar .bm-pctbar { flex: 1; height: 9px; margin: 0; }
.bm-messages { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.bm-msg { text-align: left; cursor: pointer; border: none; border-radius: 14px; padding: 13px 15px; font-family: 'Figtree', sans-serif; font-size: 14px; line-height: 1.45; background: #FBF6F1; color: #3A332F; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.06); }
.bm-msg.is-selected { background: #FFF1F3; color: #9A2238; box-shadow: inset 0 0 0 2px var(--accent); }
.bm-channels { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.bm-channel { cursor: pointer; border: 1px solid rgba(0,0,0,.08); background: #fff; border-radius: 14px; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 11.5px; color: #46403B; }
.bm-channel:hover { background: var(--tint-cream); }
.bm-channel-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.bm-channel.is-copied { background: #EAFBF1; box-shadow: inset 0 0 0 1.5px #34C759; color: #1E8A46; }
.bm-channel-ic-ok { background: #34C759; }
.bm-copystatus { text-align: center; font-size: 13px; font-weight: 700; color: #1F8A5B; margin: 14px 0 0; }
/* Send modal on desktop: wide two-column layout (message picker left, share
   actions right) instead of a narrow single column, so the full flow is
   visible without scrolling the dialog. */
@media (min-width: 900px) {
  .bm-modal-card-send {
    max-width: 720px; display: grid;
    grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "scroll bottom";
    column-gap: 32px;
  }
  .bm-modal-card-send .bm-modal-top { grid-area: head; }
  .bm-modal-card-send .bm-modal-scroll { grid-area: scroll; overflow: visible; padding: 0; }
  .bm-modal-card-send .bm-modal-bottom { grid-area: bottom; padding-top: 18px; }
  .bm-modal-card-send .bm-messages { margin-bottom: 0; }
}
.bm-qr { width: 188px; height: 188px; margin: 0 auto 18px; background: var(--tint-cream); border-radius: 20px; display: grid; place-items: center; padding: 14px; }
.bm-qr img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.bm-locked-preview { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.bm-locked-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Send / Reveal modals go edge-to-edge fullscreen on mobile, same treatment as
   the quiz card itself, with a sticky header and (for Send) a sticky action
   footer so the channel grid stays reachable while messages scroll underneat. */
@media (max-width: 720px) {
  .bm-modal { padding: 0; align-items: stretch; }
  .bm-modal-card { max-width: none; width: 100%; height: 100%; max-height: none; border-radius: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
  .bm-modal-card > .bm-modal-top,
  .bm-modal-card > .bm-modal-topclose {
    flex-shrink: 0; padding: calc(18px + env(safe-area-inset-top)) 24px 14px; background: #fff;
  }
  .bm-modal-scroll { flex: 1; overflow-y: auto; padding: 4px 24px 20px; width: 100%; box-sizing: border-box; }
  .bm-modal-scroll.bm-center { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .bm-modal-bottom { flex-shrink: 0; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -10px 24px -18px rgba(0,0,0,.25); }
  .bm-modal-bottom .bm-channels:last-child,
  .bm-modal-bottom .bm-copystatus:last-child { margin-bottom: 0; }
  /* the fullscreen sheet has its own close button up top; the quiz card's
     persistent exit button would otherwise sit right on top of it */
  .bm-card.is-fullscreen.has-modal-open .bm-exit { display: none; }
}
.bm-outro { text-align: left; font-size: 14px; color: #9A8F87; margin: 10px 0 0; line-height: 1.5; }
.bm-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.bm-seo { text-align: left; }
@media (max-width: 899px) {
  .bm-seo { text-align: center; }
  .bm-outro { text-align: center; margin-left: auto; margin-right: auto; }
  .bm-seo-step { text-align: left; }
}
.bm-seo-h2 { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(22px,3vw,30px); line-height: 1.1; letter-spacing: -.5px; margin: 0 0 6px; color: #46403B; }
.bm-seo-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.bm-seo-step { background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.05); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: row; align-items: center; gap: 16px; }
.bm-seo-step span { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--tint-pink); overflow: hidden; display: grid; place-items: center; }
.bm-seo-step span img { width: 100%; height: 100%; object-fit: cover; }
.bm-seo-step h3 { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.35; color: #46403B; margin: 0; }
@media (min-width: 900px) {
  .bm-layout { grid-template-columns: minmax(280px,380px) 1fr; gap: 48px; align-items: stretch; }
  .bm-seo { padding-top: 12px; }
  /* resting (non-fullscreen) card only shows the intro panel — stretch it to
     match the left column's height and center the intro content inside,
     instead of the card sitting short and top-aligned next to a taller list */
  .bm-card:not(.is-fullscreen) { display: flex; flex-direction: column; height: 100%; }
  .bm-card:not(.is-fullscreen) .bm-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

/* ---- Quiz: upload remove/replace, errors, drag&drop, message-style tabs ---- */
.bm-slot { position: relative; }
.bm-slot.is-dragover .bm-upload { filter: brightness(.97); box-shadow: inset 0 0 0 2px var(--accent); }
.bm-slot.is-loading .bm-upload { position: relative; overflow: hidden; }
.bm-slot.is-loading .bm-upload::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  background-size: 200% 100%; animation: bmShimmer 1.1s ease-in-out infinite;
}
@keyframes bmShimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) {
  .bm-slot.is-loading .bm-upload::after { animation: none; }
  /* Remaining pre-existing motion not yet gated: floating hero hearts (infinite
     loop — the strongest vestibular trigger of the set), the calc spinner, and
     the brief step/modal entrance fades. Static equivalents keep the same
     layout without the motion. */
  .fh1, .fh2, .fh3, .fh4, .fh5, .fh6, .fh7 { animation: none; }
  .bm-spinner { animation: none; }
  .bm-step, .bm-modal, .bm-modal-card { animation: none; }
  .bm-option, .bm-option.is-selected { animation: none; }
  .bm-burst-h { display: none; }
  .bm-step[data-step="result"] .bm-result-actions .bm-btn-primary { animation: none; }
}
.bm-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; background: rgba(28,26,31,.7); color: #fff; font-size: 17px; line-height: 1; display: grid; place-items: center; z-index: 2; }
.bm-remove:hover { background: rgba(28,26,31,.9); }
.bm-error { text-align: center; font-size: 13px; font-weight: 700; color: #C0392B; margin: 12px 0 0; }
.bm-msgtabs { display: flex; gap: 6px; background: var(--tint-cream-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.bm-msgtab { flex: 1; cursor: pointer; border: none; background: none; border-radius: 999px; padding: 9px 6px; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 13px; color: #8A817B; }
.bm-msgtab.is-active { background: #fff; color: var(--accent); box-shadow: 0 4px 10px -4px rgba(70,45,30,.3); }

/* ---- Partner landing page ---- */
.partner-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.partner-title { font-family: 'Baloo 2', cursive; font-weight: 800; font-size: clamp(30px,5vw,46px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 10px; }
.partner-sub { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0 auto 26px; max-width: 460px; }
.partner-card { background: #fff; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(70,45,30,.4); overflow: hidden; text-align: left; }
.partner-card-body { padding: 28px 26px 26px; }
.partner-personal { font-size: 16px; line-height: 1.55; color: #3A332F; font-weight: 600; background: var(--tint-cream); border-radius: 16px; padding: 16px 18px; margin: 0 0 20px; }
.partner-card .bm-btn-primary { margin-top: 20px; }
