/* ============================================================
   Munchi — marketing site styles
   Extends munchi.webflow.css (loaded after it). Keeps the brand
   tokens, Gordita / Magic Sound type, and the existing nav + CTA.
   ============================================================ */

:root {
  --midnight-blue: #181b59;
  --orange: #e39e2f;
  --orange-deep: #e89f0c;
  --seashell: #f6f0ea;
  --sky: #e6f1f9;
  --frost: #e7f2f9;
  --blue-gray: #9cabc7;
  --cream: #f6f0ea;
  --peach: #f5dfce;
  --app-bg: #f4fafe;

  /* per-child accents from the app */
  --kid-orange: #e39e2f;
  --kid-blue: #5bb6e8;
  --kid-green: #7bc67e;
  --kid-purple: #b57be0;
  --kid-pink: #e87b9d;
  --kid-teal: #4ec3c0;

  --ink-soft: #4a4f7a;
  --radius: 22px;
  --shadow-soft: 0 18px 50px rgba(24, 27, 89, 0.10);
  --shadow-card: 0 10px 30px rgba(24, 27, 89, 0.08);
  --maxw: 1120px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--app-bg);
  color: var(--midnight-blue);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- shared type / helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--midnight-blue);
}
.section-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.section { padding: 92px 0; }
.section--tint { background: linear-gradient(180deg, #ffffff 0%, var(--sky) 100%); }
.section--cream { background: var(--cream); }

/* ---------- navbar tweaks ---------- */
.navbar { backdrop-filter: saturate(140%) blur(6px); background-color: rgba(244, 250, 254, 0.72); }
.navbar.w-nav { position: sticky; top: 0; z-index: 40; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-left: 18px;
}
.nav-cta img { height: 44px; width: auto; display: block; }

/* ---------- buttons ---------- */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 24px rgba(227, 158, 47, 0.32);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(227, 158, 47, 0.42); }

.badge-link { display: inline-block; line-height: 0; transition: transform .2s ease; }
.badge-link:hover { transform: translateY(-2px); }
.badge-link img { height: 58px; width: auto; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.cta-note {
  font-size: 0.92rem;
  color: var(--blue-gray);
  margin: 14px 0 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-v2 {
  position: relative;
  padding: 70px 0 90px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(227,158,47,0.12), transparent 60%),
    linear-gradient(180deg, var(--app-bg) 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--orange); }
.hero-copy .section-lead { font-size: 1.2rem; max-width: 520px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(24,27,89,0.10);
  list-style: none;
}
.hero-trust li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

/* hero art: yeti behind, phone in front */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-art .yeti {
  position: absolute;
  width: 118%;
  max-width: 640px;
  opacity: 0.9;
  z-index: 0;
  filter: drop-shadow(0 30px 40px rgba(24,27,89,0.12));
}
.hero-art .phone { position: relative; z-index: 1; width: 270px; }

/* streak chip floating accent */
.float-chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.float-chip .emoji { font-size: 1.2rem; }
.float-chip.top { top: 40px; left: -6px; }
.float-chip.bottom { bottom: 56px; right: -10px; }
.float-chip small { display: block; font-weight: 500; color: var(--blue-gray); font-size: 0.78rem; }

/* ============================================================
   PHONE FRAME (with graceful placeholder)
   ============================================================ */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #11132e;
  padding: 10px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.12) inset,
    var(--shadow-soft);
}
.phone::after { /* dynamic island */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 24px;
  background: #11132e;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--sky), var(--app-bg));
  display: flex;
}
.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative; z-index: 2;
}
/* placeholder text sits behind the image; shows only if img is hidden/failed */
.phone-screen .ph-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: var(--midnight-blue);
}
.phone-screen .ph-fallback .ph-mark {
  width: 64px; height: 64px; border-radius: 18px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-card);
}
.phone-screen .ph-fallback strong { font-size: 1rem; }
.phone-screen .ph-fallback span { font-size: 0.82rem; color: var(--blue-gray); }

/* hero phone showcase trio */
.shots-strip {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}
.shots-strip .phone { width: 240px; }
.shots-strip .phone.lift { margin-bottom: 30px; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: 258px; }

.feature-body h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 12px 0 14px;
}
.feature-body p { font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); }
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: rgba(227,158,47,0.12);
  border-radius: 999px;
  padding: 6px 14px;
}
.mini-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--midnight-blue); }
.mini-list li::before {
  content: "✓";
  color: #fff;
  background: var(--orange);
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
  margin-top: 1px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step .num {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--midnight-blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.step h4 { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.step p { color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ============================================================
   PEDIATRICIAN / TRUST BLOCK
   ============================================================ */
.doctor {
  background:
    url('../images/Asset-2bg.svg') center/720px no-repeat,
    linear-gradient(135deg, #1d2068, var(--midnight-blue));
  color: #fff;
  border-radius: 30px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.doctor h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.08; margin: 0 0 16px; }
.doctor p { color: #d6def0; font-size: 1.08rem; line-height: 1.65; }
.doctor .mini-list li { color: #fff; }
.doctor-media { display: flex; justify-content: center; }
.doctor-media .phone { width: 250px; }

/* trust badges grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.trust-card .ic {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--frost);
}
.trust-card h4 { font-size: 1.08rem; font-weight: 800; margin: 0 0 6px; }
.trust-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ============================================================
   PRIVACY STRIP
   ============================================================ */
.privacy-strip {
  background: var(--midnight-blue);
  color: #fff;
  border-radius: 30px;
  padding: 54px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-strip h2 { color: #fff; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 14px; }
.privacy-strip p { color: #cdd6ea; line-height: 1.65; margin: 0; }
.privacy-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.privacy-points li .pk {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}

/* ============================================================
   FINAL CTA (reuses the navy confetti section visual)
   ============================================================ */
.cta-final { padding: 86px 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  text-align: center;
  padding: 70px 32px;
  color: #fff;
  background:
    url('../images/Asset-2bg.svg') 0 0/720px,
    linear-gradient(rgba(24,27,89,0.78), rgba(24,27,89,0.78)),
    url('../images/200w.gif') center/cover;
  box-shadow: var(--shadow-soft);
}
.cta-card .cta-yeti { width: 130px; margin: 0 auto 18px; display: block; }
.cta-card h2 {
  font-family: 'Magic Sound', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}
.cta-card p { color: #dfe6f5; font-size: 1.15rem; max-width: 560px; margin: 0 auto 8px; }
.cta-card .cta-row { justify-content: center; }
.cta-card .cta-note { color: rgba(255,255,255,0.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f1230;
  color: #aab3d0;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-grid img.foot-logo { width: 150px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-grid p { line-height: 1.6; font-size: 0.95rem; }
.footer-col h5 { color: #fff; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; color: #aab3d0; text-decoration: none; padding: 6px 0; font-size: 0.96rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  padding-top: 26px;
  font-size: 0.85rem; color: #7a83a6;
}
.disclaimer {
  font-size: 0.82rem;
  color: #7a83a6;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 720px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { min-height: 460px; margin-top: 10px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { order: -1; }
  .doctor, .privacy-strip { grid-template-columns: 1fr; padding: 44px 32px; }
  .doctor-media { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
  /* clean mobile nav: logo + App Store badge only */
  .navbar .w-nav-menu .nav-link { display: none; }
  .navbar .munchi-logo { width: 130px; padding-top: 6px; padding-bottom: 6px; }
  .nav-cta { margin-left: 0; height: 40px; }
  .nav-cta img { height: 40px; }
}
@media screen and (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-v2 { padding: 44px 0 60px; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-chip.top { left: 0; top: 20px; }
  .float-chip.bottom { right: 0; }
  .badge-link img { height: 52px; }
  .doctor, .privacy-strip { padding: 36px 24px; }
}
