/* Baby's Day In — site styles
   Colours and typography drawn directly from the brand document.
   No purple-only gradient backgrounds. No SaaS card patterns. */

:root {
  /* Light palette */
  --bg-pink: #FFE8F0;
  --bg-lavender: #E8E4F8;
  --card: #F0EDF8;
  --card-soft: #F7F4FB;

  --ink: #1A1040;
  --ink-2: #2A2055;
  --body: #6B6490;
  --label: #9B94C0;

  /* Accents */
  --purple: #7B6FD0;
  --purple-deep: #5D52B0;
  --coral: #E8A042;
  --coral-soft: #F0B978;
  --green: #5DB88A;
  --pink: #E87A8A;
  --bath-blue: #7BAFD4;
  --feed-blue: #8AAAC8;
  --amber: #E8A042;

  /* Dark palette */
  --dark-bg: #0E0C24;
  --dark-card: #1A1840;
  --dark-card-2: #242256;
  --dark-text: #FFFFFF;
  --dark-text-2: #8A84C0;
  --dark-muted: #4A4480;

  /* Type scale (responsive via clamp) — reduced */
  --t-mega: clamp(44px, 6.8vw, 96px);
  --t-display: clamp(38px, 5vw, 72px);
  --t-h1: clamp(30px, 3.6vw, 52px);
  --t-h2: clamp(26px, 2.8vw, 40px);
  --t-h3: clamp(20px, 1.8vw, 26px);
  --t-lead: clamp(17px, 1.25vw, 21px);
  --t-body: 17px;
  --t-small: 14px;
  --t-tag: 12px;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 64px);

  /* Tweakable defaults will be applied at runtime by the tweaks layer */
  --cta-start: #C17ADB;
  --cta-end:   #E8A042;
}

br.mob { display: none; }
@media (max-width: 600px) {
  br.mob { display: initial; }
  body { font-variation-settings: "wdth" 100; }
}

@font-face {
  font-family: 'SF Pro';
  src: url('fonts/SF-Pro.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'SF Pro', sans-serif;
  font-weight: 300;
  font-variation-settings: "wdth" 125;
  color: var(--ink);
  background: var(--bg-lavender);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); }

/* No italics anywhere. Emphasis is carried by colour, not slant. Same weight as the parent. */
em, i, .serifish { font-style: normal !important; font-weight: inherit !important; }
h1 em, h2 em, h3 em {
  color: var(--purple-deep);
  letter-spacing: inherit;
}
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em, .feat.dark .copy h2 em { color: #B9AEEC; }
/* Body em — weight, not slant */
p em, li em, .lede em, .quote em, .intro-body em, .testimonial .quote em,
.feat-quote em, .pullquote q em, .who-card em {
  font-weight: 600;
  color: var(--ink);
}
.on-dark p em, .on-dark .lede em, .on-dark .quote em, .feat.dark .feat-quote em,
.testimonial.t2 .quote em { color: var(--dark-text); }

.t-mega    { font-size: var(--t-mega);    font-weight: 900; letter-spacing: -0.045em; line-height: 0.9; }
.t-display { font-size: var(--t-display); font-weight: 900; letter-spacing: -0.035em; line-height: 0.92; }
.t-h1      { font-size: var(--t-h1);      font-weight: 800; letter-spacing: -0.03em;  line-height: 0.98; }
.t-h2      { font-size: var(--t-h2);      font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.t-h3      { font-size: var(--t-h3);      font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
.t-lead    { font-size: var(--t-lead);    font-weight: 400; line-height: 1.55; color: var(--body); }
.t-body    { font-size: var(--t-body);    font-weight: 400; line-height: 1.7;  color: var(--body); }
.t-cap     { font-size: var(--t-tag);     font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.t-num     { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.serifish { font-feature-settings: "ss02"; font-style: italic; font-weight: 400; }

/* Dramatic mixed-weight headline helper:
   Combines heavy black with a light italic counterpoint. */
.h-mix em {
  font-style: italic;
  font-weight: 300;
  color: var(--purple);
  letter-spacing: -0.02em;
}

/* ---------------- Page chrome ---------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

/* Site nav — floating, glassmorphic pill */
.nav {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1240px;
  padding: 11px 14px 11px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  background: rgba(255, 244, 248, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.65) inset,
    0 12px 38px -22px rgba(26,16,64,0.30),
    0 2px 10px -4px rgba(26,16,64,0.06);
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}
.nav.is-light { color: var(--ink); }
.nav.is-dark  { color: var(--dark-text); background: rgba(20, 18, 50, 0.42); border-color: rgba(255,255,255,0.10); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 12px 38px -18px rgba(0,0,0,0.5); }
.nav.is-scrolled.is-light { background: rgba(255, 240, 246, 0.72); }
.nav.is-scrolled.is-dark  { background: rgba(14, 12, 36, 0.62); }
.nav .btn-cta { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a, .nav-item {
  color: inherit; text-decoration: none; font-size: 15px; font-weight: 600;
  opacity: 0.85; transition: opacity 200ms ease; position: relative;
}
.nav-links a:hover, .nav-links a.is-active, .nav-item:hover { opacity: 1; }

/* Modern underline animation */
.nav-links a::after, .nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-item:hover::after {
  width: 100%;
}
.nav-links a.is-active::after {
  width: 100%;
}

/* Dropdown menu */
.nav-item {
  position: relative; display: inline-flex; align-items: center;
}

.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: rgba(255, 244, 248, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(26, 16, 64, 0.1);
  border-radius: 16px;
  padding: 10px 0;
  min-width: 180px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  visibility: hidden;
  box-shadow: 0 12px 38px -18px rgba(26, 16, 64, 0.2);
}
.nav.is-dark .nav-dropdown {
  background: rgba(20, 18, 50, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav-item:hover .nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
  visibility: visible;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px;
  opacity: 0.75; transition: opacity 200ms ease, background 200ms ease;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover {
  opacity: 1; background: rgba(26, 16, 64, 0.05);
}
.nav.is-dark .nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icons in dropdown */
.nav-dropdown a {
  position: relative;
}
.dropdown-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex-shrink: 0; margin-right: 4px;
}
.dropdown-icon svg {
  width: 100%; height: 100%; stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Mobile hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: all 200ms ease;
  display: block;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100vh;
  background: rgba(255, 244, 248, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(26, 16, 64, 0.1);
  z-index: 40;
  transition: right 300ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: 80px;
}

.nav-drawer.is-open {
  right: 0;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(26, 16, 64, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.nav-backdrop.is-open {
  display: block;
  opacity: 1;
}

.nav.is-dark ~ .nav-drawer {
  background: rgba(14, 12, 24, 0.95);
  border-right-color: rgba(255, 255, 255, 0.1);
}

.nav-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 0 0;
}

.nav-drawer-link {
  display: block;
  padding: 16px 24px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(26, 16, 64, 0.06);
  transition: background 200ms ease, color 200ms ease;
}

.nav.is-dark ~ .nav-drawer .nav-drawer-link {
  color: var(--dark-text);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-drawer-link:hover {
  background: rgba(26, 16, 64, 0.04);
}

.nav.is-dark ~ .nav-drawer .nav-drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-drawer-link[href*="#"] {
  padding-left: 40px;
  font-size: 14px;
  opacity: 0.75;
}

.nav-drawer-cta {
  background: linear-gradient(180deg, var(--cta-start), var(--cta-end));
  color: #fff;
  font-weight: 600;
  border: none;
  text-align: center;
  margin: 16px;
  border-radius: 999px;
}

.nav-drawer-cta:hover {
  background: linear-gradient(180deg, var(--cta-start), var(--cta-end));
  opacity: 0.95;
}

.nav-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(26, 16, 64, 0.06);
  transition: background 200ms ease;
}

.nav.is-dark ~ .nav-drawer .nav-drawer-toggle {
  color: var(--dark-text);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-drawer-toggle:hover {
  background: rgba(26, 16, 64, 0.04);
}

.nav.is-dark ~ .nav-drawer .nav-drawer-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-drawer-toggle svg {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.nav-drawer-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-drawer-submenu {
  overflow: hidden;
  transition: max-height 200ms ease;
  max-height: 0;
}

.nav-drawer-submenu .nav-drawer-link {
  padding-left: 40px;
  font-size: 14px;
  opacity: 0.75;
}

.nav-drawer-submenu.is-open {
  max-height: 500px;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.compact { display: flex; gap: 18px; }
  .nav-links.compact a { font-size: 13px; }
  .nav-toggle { display: flex; }
  .nav .btn-cta { display: none; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  min-height: 44px;
  justify-content: center;
}
.btn-cta {
  color: #fff;
  background: linear-gradient(180deg, var(--cta-start), var(--cta-end));
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 24px -10px rgba(193,122,219,0.55);
}
.btn-cta:hover { transform: translateY(-1px); }

.btn-quiet {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(26,16,64,0.18);
}
.btn-quiet:hover { border-color: var(--ink); }

.btn-quiet.on-dark { color: var(--dark-text); border-color: rgba(255,255,255,0.22); }
.btn-quiet.on-dark:hover { border-color: rgba(255,255,255,0.6); }

.btn-arrow::after {
  content: "→"; font-weight: 500; transition: transform 180ms ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* App store badges — quiet, calm, not skeuomorphic */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 180ms ease;
  min-height: 44px;
  justify-content: center;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge .sb-stack { display: inline-flex; flex-direction: column; line-height: 1; align-items: flex-start; }
.store-badge .sb-small { display: block; font-size: 10px; opacity: 0.7; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.2; margin: 0 0 2px; }
.store-badge .sb-large { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.store-badge.on-light { background: #fff; color: var(--ink); border-color: rgba(26,16,64,0.1); }

/* ---------------- Sections ---------------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding: clamp(60px, 7vw, 100px) 0; }

.section.on-dark { color: var(--dark-text); }
.section.on-dark .t-body, .section.on-dark .t-lead { color: var(--dark-text-2); }
.section.on-dark .t-cap { color: var(--dark-muted); }
.section.on-dark h1, .section.on-dark h2, .section.on-dark h3 { color: var(--dark-text); }

/* Tag/index marker — used inline left of section titles, not a pill */
.section-index {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--label);
}
.section-index::before {
  content: ""; width: 28px; height: 1.5px; background: currentColor;
  display: inline-block; align-self: center;
}
.on-dark .section-index { color: var(--dark-muted); }

/* ---------------- Cards / panels ---------------- */
.panel {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(26,16,64,0.05);
}
.on-dark .panel {
  background: var(--dark-card);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ---------------- Footer ---------------- */
.footer {
  padding: 80px var(--gutter) 48px;
  background: #F7F4FB;
  color: var(--body);
  border-top: 1px solid rgba(26,16,64,0.06);
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: var(--ink); }
.footer h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.8; }
.footer a:hover { opacity: 1; }
.footer-bottom { max-width: var(--max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid rgba(26,16,64,0.08); display: flex; justify-content: space-between; font-size: 13px; color: var(--label); }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------------- Line illustration container ---------------- */
.line-ill {
  --stroke: var(--ink);
}
.line-ill path, .line-ill circle, .line-ill rect, .line-ill ellipse, .line-ill line, .line-ill polyline {
  vector-effect: non-scaling-stroke;
}
.on-dark .line-ill { --stroke: var(--dark-text); }

/* ---------------- Phone mockup (editorial, flat) ---------------- */
.phone {
  position: relative;
  background: #fff;
  border-radius: 38px;
  padding: 12px;
  border: 1.5px solid rgba(26,16,64,0.12);
  box-shadow: 0 30px 60px -40px rgba(26,16,64,0.25);
}
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFE8F0, #E8E4F8);
  aspect-ratio: 9 / 19.5;
  position: relative;
}
.phone.dark .phone-screen { background: linear-gradient(180deg, #0E0C24, #1A1840); color: var(--dark-text); }
.phone-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 8px; font-size: 11px; font-weight: 600; color: var(--ink); }
.phone.dark .phone-statusbar { color: var(--dark-text); }

/* ---------------- Utility ---------------- */
.eyebrow-none { display: none !important; } /* enforce: no eyebrows */
.center { text-align: center; }
.muted { color: var(--body); }
.on-dark .muted { color: var(--dark-text-2); }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; } .gap-64 { gap: 64px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* Subtle line-rule used to divide sections without heavy borders */
.hairline { height: 1px; background: rgba(26,16,64,0.08); border: 0; }
.on-dark .hairline { background: rgba(255,255,255,0.08); }

/* Hide focus rings on mouse, keep for keyboard */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------------- Stickers ---------------- */
/* Real-sticker treatment: a thick white die-cut border + lift shadow. */
.sticker {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.9))
    drop-shadow(0 14px 22px rgba(26,16,64,0.22))
    drop-shadow(0 4px 8px rgba(26,16,64,0.10));
  transform-origin: center center;
}
.sticker svg { display: block; width: 100%; height: auto; overflow: visible; }
.sticker.float-slow { animation: stickerFloat 7s ease-in-out infinite; }
.sticker.float-fast { animation: stickerFloat 4.5s ease-in-out infinite; }
@keyframes stickerFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker.float-slow, .sticker.float-fast { animation: none; }
}

/* Sticker palette helpers — keep the brand vocabulary, never neon */
:root {
  --st-pink:    #FFD7E5;
  --st-mint:    #D2EAD6;
  --st-lav:     #E0DAF4;
  --st-cream:   #FBE7CD;
  --st-sky:     #DCE8F4;
  --st-coral:   #FBD6CC;
  --st-yellow:  #FFE9A8;
}

/* Section root needs relative for stickers to anchor */
.hero, .intro, .two-phone, .monitor-section, .soothe, .wellness-dark,
.activity-section, .doctor-section, .testimonials, .cta-section,
.feat, .step, .pillars, .pullquote, .dl, .feature, .ph {
  position: relative;
}

/* ===== Features Carousel ===== */
.features-carousel-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
  background: linear-gradient(180deg, var(--bg-lavender) 0%, #F1E6F4 100%);
  position: relative;
}

.carousel-header {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.carousel-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.carousel-header h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.carousel-header p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--body);
  margin: 0;
  max-width: 560px;
  font-weight: 500;
  line-height: 1.6;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(93, 82, 176, 0.35);
  color: var(--purple-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
  flex-shrink: 0;
}

.btn-explore:hover {
  background: var(--purple-deep);
  border-color: var(--purple-deep);
  color: #fff;
}

/* Carousel Container */
.features-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.features-carousel-inner {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 24px;
}

/* Feature Card */
.feature-card {
  flex: 0 0 100%;
  background: #ffffff;
  border-radius: 28px;
  padding: clamp(40px, 5vw, 64px) clamp(72px, 8vw, 100px);
  border: 1px solid rgba(26, 16, 64, 0.07);
  box-shadow: 0 8px 32px rgba(26, 16, 64, 0.07);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  min-height: 480px;
}

.feature-card.active {
  opacity: 1;
  pointer-events: auto;
}

/* KPI Card */
.card-kpi {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.kpi-card {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,237,248,0.6));
  border-radius: 24px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(123, 111, 208, 0.14);
  box-shadow: 0 12px 36px rgba(93, 82, 176, 0.08), 0 2px 8px rgba(0,0,0,0.04);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--label);
}

.kpi-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(93, 184, 138, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
}

.kpi-trend-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: rgba(93, 184, 138, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}

.kpi-ready-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-deep);
  background: rgba(93, 82, 176, 0.1);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-subtext {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.kpi-divider {
  height: 1px;
  background: rgba(26, 16, 64, 0.07);
  margin: 20px 0;
}

.kpi-stats-row {
  display: flex;
  gap: 0;
}

.kpi-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-stat + .kpi-stat {
  padding-left: 16px;
  border-left: 1px solid rgba(26, 16, 64, 0.07);
}

.kpi-stat-val {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.kpi-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--label);
  line-height: 1.4;
}

.kpi-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* iPhone Frame Styling - Hidden */
.card-iphone {
  display: none;
}

.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 18;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 28px;
  background: #000;
  border-radius: 0 0 32px 32px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Feature card text sizing */
.feature-card .feature-copy h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 16px;
}

.feature-card .feature-copy .lede {
  font-size: clamp(15px, 1.7vw, 18px);
  margin-top: 16px;
  line-height: 1.6;
  color: var(--body);
  font-weight: 500;
}

.feature-card .feature-bullets {
  margin-top: 12px;
  margin-bottom: 0;
}

.feature-card .feature-bullets > li {
  padding: 10px 0;
  border-top: 1px solid rgba(26, 16, 64, 0.08);
  gap: 10px;
}

.feature-card .feature-bullets > li:last-child {
  border-bottom: 1px solid rgba(26, 16, 64, 0.08);
}

.feature-card .feature-bullets b {
  font-size: 14px;
  font-weight: 600;
}

.feature-card .feature-bullets span {
  font-size: 13px;
}

.feature-card .feature-bullets svg {
  width: 20px;
  height: 20px;
}

.feature-card .section-index {
  font-size: 12px;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 960px) {
  .feature-card {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
  }

  .card-iphone {
    order: -1;
  }

  .iphone-frame {
    max-width: 280px;
  }
}

/* Carousel Controls — buttons sit on the card edges */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(93, 82, 176, 0.25);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--purple-deep);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(93, 82, 176, 0.12);
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

.carousel-btn:hover:not(:disabled) {
  background: var(--purple-deep);
  color: #fff;
  border-color: var(--purple-deep);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(93, 82, 176, 0.3);
}

.carousel-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Pagination Dots — top-right corner of the card */
.carousel-dots {
  position: absolute;
  top: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 44px);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(93, 82, 176, 0.25);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dot:hover {
  background: rgba(93, 82, 176, 0.55);
  transform: scale(1.3);
}

.dot.active {
  background: var(--purple-deep);
  transform: scale(1.25);
  box-shadow: 0 0 0 3px rgba(93, 82, 176, 0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-btn-prev { left: 12px; }
  .carousel-btn-next { right: 12px; }

  .iphone-frame {
    max-width: 240px;
  }
}

/* Small phone optimization (375px-600px) */
@media (max-width: 600px) {
  /* Navigation drawer - narrower on tiny screens */
  .nav-drawer {
    width: 240px;
    right: -240px;
  }

  /* Reduce excessive section padding */
  .hero {
    padding: 96px 0 clamp(50px, 8vw, 80px);
    background: linear-gradient(180deg, var(--bg-pink) 0%, #F1E6F4 55%, var(--bg-lavender) 100%);
  }
  .deco-sketch {
    display: none;
  }

  .intro {
    padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 8vw, 100px);
  }

  /* Intro: already stacks heading→body→CTAs via HTML order + 960px grid reset */
  .intro-cta-group {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 16px;
  }

  .intro-cta-group .btn {
    white-space: nowrap;
    font-size: 13px;
    padding: 11px 14px;
  }

  .two-phone {
    padding: clamp(60px, 8vw, 100px) 0;
  }

  .monitor-section {
    padding: clamp(60px, 10vw, 120px) 0;
  }

  .soothe {
    padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 100px);
  }

  .wellness-dark {
    padding: clamp(50px, 8vw, 100px) 0;
  }

  .activity-section {
    padding: clamp(60px, 10vw, 120px) 0;
  }

  .doctor-section {
    padding: clamp(50px, 8vw, 100px) 0;
  }

  .testimonials {
    padding: clamp(40px, 8vw, 80px) 0;
  }

  /* Testimonials heading: collapse 2-col grid to single column, tight gap */
  .testimonials > .wrap > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: start !important;
  }

  .testimonials .t-lead {
    max-width: 100%;
    margin-left: 0 !important;
    margin-top: 16px;
    font-size: 17px;
  }

  .cta-section {
    padding: clamp(40px, 8vw, 80px) 0 clamp(50px, 8vw, 80px);
  }

  /* Reduce button padding for better touch targets but keep them at least 44px */
  .btn {
    padding: 14px 22px;
    font-size: 14px;
    min-height: 44px;
  }

  .btn-cta {
    min-width: 44px;
  }

  /* Optimize feature carousel for small screens */
  .features-carousel-section {
    padding: clamp(40px, 6vw, 80px) 0;
  }

  .feature-card {
    min-height: auto;
    padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 48px);
    grid-template-columns: 1fr;
  }

  /* Feature card text - left aligned */
  .feature-card .feature-copy {
    text-align: left;
  }

  /* Carousel: grid with auto-width columns so controls stay on one line */
  .features-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "inner inner inner"
      "prev  dots  next";
    row-gap: 16px;
    column-gap: 12px;
    align-items: center;
  }

  .features-carousel-inner {
    grid-area: inner;
    width: 100%;
  }

  .carousel-btn {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  /* No hover effects on mobile */
  .carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--purple-deep) !important;
    border-color: rgba(93, 82, 176, 0.25) !important;
    box-shadow: 0 4px 16px rgba(93, 82, 176, 0.12) !important;
    transform: none !important;
  }

  /* Slight color change on click only */
  .carousel-btn:active:not(:disabled) {
    background: rgba(93, 82, 176, 0.15) !important;
    transform: none !important;
  }

  .carousel-btn-prev {
    grid-area: prev;
  }

  .carousel-btn-next {
    grid-area: next;
  }

  .carousel-dots {
    grid-area: dots;
    position: static;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  /* Testimonials - reduce gap and size for side-by-side */
  .tg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: clamp(30px, 5vw, 60px);
  }

  .testimonial {
    padding: 16px;
    grid-column: span 1 !important;
  }

  .testimonial.t1,
  .testimonial.t2,
  .testimonial.t3,
  .testimonial.t4,
  .testimonial.t5 {
    grid-column: span 1 !important;
  }

  .testimonial .quote {
    font-size: 14px;
    line-height: 1.4;
  }

  .testimonial .who {
    margin-top: 16px;
    padding-top: 12px;
    gap: 10px;
  }

  .testimonial .who-initial {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .testimonial .who-name {
    font-size: 13px;
  }

  .testimonial .who-meta {
    font-size: 11px;
  }

  /* Rating stats: all 3 on one row, numbers scaled down */
  .rating-block {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    padding-top: 24px;
    margin-top: 32px;
  }

  .rating-stat .n {
    font-size: clamp(24px, 8vw, 40px);
  }

  .rating-stat .l {
    font-size: 10px;
  }

  /* Footer - single column on very small screens */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Hero illustration - reduce size further on tiny screens */
  .hero-vis {
    max-width: 100%;
  }

  .sticker {
    display: block;
  }

  /* Hero sticker repositioning and sizing on mobile */
  .hero-vis .sticker:nth-child(1) {
    /* YOU GOT THIS badge — keep top-right, smaller */
    width: 90px !important;
    top: -12px !important;
    right: -12px !important;
  }
  .hero-vis .sticker:nth-child(2) {
    /* Lightning — top-left corner */
    width: 36px !important;
    top: -10px !important;
    left: -8px !important;
  }
  .hero-vis .sticker:nth-child(3) {
    /* Longest sleep yet — bottom-left corner */
    width: 110px !important;
    top: auto !important;
    bottom: 12px !important;
    left: -10px !important;
  }

  /* Feature bullets - reduce padding */
  .feature-bullets > li {
    padding: 14px 0;
  }

  /* Page header sections */
  .section-index {
    font-size: 11px;
  }

  /* Reduce gutter on tiny screens */
  .wrap {
    padding: 0 16px;
  }

  /* Store badges - side by side on mobile */
  .store-badges {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }

  .store-badge {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 12px 14px;
    font-size: 13px;
  }

  .store-badge svg {
    width: 16px;
    height: 16px;
  }

  .store-badge .sb-small {
    font-size: 8px;
    white-space: nowrap;
  }

  .store-badge .sb-large {
    font-size: 13px;
    white-space: nowrap;
  }

  /* Mobile nav drawer link adjustments */
  .nav-drawer-link {
    padding: 14px 20px;
    font-size: 14px;
  }

  .nav-drawer-link[href*="#"] {
    padding-left: 36px;
  }

  .nav-drawer-cta {
    margin: 12px;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Larger section headings on mobile */
  .tp-copy h2 {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.08;
  }

  .carousel-header h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .carousel-header p {
    font-size: 17px;
    margin-top: 16px;
  }

  #heroHeadline {
    font-size: clamp(40px, 11vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .intro-left h2 {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.08;
  }

  .testimonials h2.t-h1 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .cta-grid h2 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.08;
  }
}
