/* Baby Mantra — babymantra.app
   One night, top to bottom: nightfall hero → cloud-white body → dawn. */

:root {
  --night: #262d52;
  --night-2: #353e6b;
  --night-3: #4a548c;
  --midnight: #4b5e81;
  --lavender: #a9b4e6;
  --cloud: #f6f7fb;
  --white: #ffffff;
  --sage: #d7ead9;
  --peach: #ffdcc7;
  --blush: #fadadd;
  --primary: #6c71b5;
  --primary-deep: #5a5fa5;
  --primary-soft: #e9ebf8;
  --ink: #2d3657;
  --ink-body: #545c7c;
  --ink-subtle: #7d84a2;
  --hairline: #e4e7f1;
  --star: #fff3e0;
  --cream-1: #fff4ea;
  --cream-2: #ffe2cc;

  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.75vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 4.1rem);

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 32px;
  --shadow-soft: 0 10px 30px -14px rgba(45, 54, 87, 0.28);
  --shadow-lift: 0 24px 60px -24px rgba(38, 45, 82, 0.55);
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--primary); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - var(--gutter) * 2); }

.section-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { margin-top: 12px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-body); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, #7a80c2, #6268ac);
  box-shadow: 0 12px 26px -12px rgba(108, 113, 181, 0.8);
}
.btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(108, 113, 181, 0.95); }
.btn--cream { color: var(--night); background: linear-gradient(135deg, var(--cream-1), var(--cream-2)); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* App Store badge (Apple-style, built in HTML/SVG) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.store-badge:active { transform: scale(0.97); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span {
  display: flex; flex-direction: column;
  font-family: -apple-system, "SF Pro Display", var(--body); font-weight: 600; font-size: 1.32rem;
  line-height: 1.05; letter-spacing: -0.01em;
}
.store-badge small { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.01em; }
.store-badge--light { border-color: #000; }

/* ── Header ── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.top__inner {
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  height: 64px; display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.18rem;
  color: var(--white); text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.top__nav { display: none; margin-left: auto; gap: 26px; }
.top__nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.top__nav a:hover { color: var(--white); }
.top .btn { margin-left: auto; }
.top.is-scrolled { background: rgba(38, 45, 82, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) {
  .top__nav { display: flex; }
  .top .btn { margin-left: 8px; }
}

/* ── Hero: nightfall ── */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 60% at 80% 10%, rgba(255, 220, 199, 0.16), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(169, 180, 230, 0.22), transparent 65%),
    linear-gradient(180deg, #232a4f 0%, #2e3664 45%, #4a548c 100%);
  padding: calc(96px + env(safe-area-inset-top)) 0 120px;
  /* Leave the last few pixels unpainted so no sub-pixel seam shows under the clouds. */
  background-size: 100% calc(100% - 4px);
  background-repeat: no-repeat;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; gap: 56px; align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: var(--step-4); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.04;
  max-width: 13ch;
}
.hero__lede {
  margin-top: 20px; max-width: 34em;
  font-size: var(--step-1); line-height: 1.55;
  color: rgba(239, 241, 255, 0.86);
}
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero__notes {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: var(--step--1); color: rgba(239, 241, 255, 0.78);
}
.hero__notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero__notes li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--peach);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 16.8 5.8 21.3l2.4-7.4L2 9.4h7.6z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 16.8 5.8 21.3l2.4-7.4L2 9.4h7.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* "Hear a sample" */
.play-sample {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 6px; min-height: 56px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white); font-weight: 600; cursor: pointer;
  transition: background 0.2s ease;
}
.play-sample:hover { background: rgba(255, 255, 255, 0.14); }
.play-sample__icon {
  width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  background: var(--white);
}
.play-sample__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--night);
  transform: translateX(2px);
}
.play-sample[aria-pressed="true"] .play-sample__icon::after {
  width: 12px; height: 14px; border: 0; transform: none;
  background: linear-gradient(90deg, var(--night) 0 4px, transparent 4px 8px, var(--night) 8px 12px);
}
.play-sample[aria-pressed="true"] .play-sample__icon { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.06); } }

/* Stars — three layers drifting in and out */
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sky span {
  position: absolute; inset: 0;
  background-repeat: repeat;
  animation: twinkle 6s ease-in-out infinite;
}
.sky span:nth-child(1) {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, var(--star), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, var(--star), transparent 60%),
    radial-gradient(1.6px 1.6px at 260px 20px, var(--star), transparent 60%),
    radial-gradient(1px 1px at 330px 160px, var(--star), transparent 60%);
  background-size: 380px 220px;
}
.sky span:nth-child(2) {
  background-image:
    radial-gradient(1.2px 1.2px at 60px 120px, var(--star), transparent 60%),
    radial-gradient(2px 2px at 200px 50px, #ffe7b8, transparent 60%),
    radial-gradient(1px 1px at 300px 190px, var(--star), transparent 60%);
  background-size: 420px 260px;
  animation-delay: -2s; animation-duration: 7.5s;
}
.sky span:nth-child(3) {
  background-image:
    radial-gradient(1px 1px at 90px 60px, var(--star), transparent 60%),
    radial-gradient(1.4px 1.4px at 180px 200px, var(--star), transparent 60%);
  background-size: 260px 300px;
  animation-delay: -4s; animation-duration: 9s;
  mask-image: linear-gradient(180deg, #000 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 85%);
}
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* Hero phones */
.hero__phones {
  position: relative; justify-self: center;
  width: min(360px, 88vw); aspect-ratio: 0.7;
}
.phone {
  position: absolute; width: 61%; aspect-ratio: 9 / 19.2;
  border-radius: 40px; padding: 9px;
  background: linear-gradient(145deg, #3b4170, #191d36);
  box-shadow: var(--shadow-lift), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone::before {
  content: ""; position: absolute; z-index: 3; top: 18px; left: 50%; transform: translateX(-50%);
  width: 28%; height: 20px; border-radius: 20px; background: #0a0c18;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--night); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone--back { left: 0; top: 0; transform: rotate(-6deg); }
.phone--front { right: 0; bottom: 0; transform: rotate(5deg); }

.screen-start__text {
  position: absolute; inset: 15% 0 auto; text-align: center;
  font-family: var(--display); color: #fff;
  text-shadow: 0 2px 14px rgba(38, 45, 82, 0.55);
}
.screen-start__text strong { display: block; font-size: clamp(1.5rem, 6vw, 1.95rem); line-height: 1.02; font-weight: 800; }
.screen-start__text span { display: block; margin-top: 8px; font-family: var(--body); font-size: 0.66rem; line-height: 1.35; }
.screen-start__cta { position: absolute; inset: auto 10% 6%; text-align: center; }
.fake-btn {
  display: block; padding: 9px 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--cream-1), var(--cream-2));
  color: var(--night); font-family: var(--display); font-weight: 800; font-size: 0.72rem;
}
.screen-start__cta small { display: block; margin-top: 6px; font-size: 0.52rem; color: #fff; text-shadow: 0 1px 6px rgba(38, 45, 82, 0.7); }

.screen-player img { filter: saturate(0.95); }
.screen-player__ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 14px 16px;
  background: linear-gradient(180deg, rgba(38, 45, 82, 0.35) 0%, transparent 25%, rgba(38, 45, 82, 0.25) 45%, rgba(38, 45, 82, 0.92) 78%);
}
.screen-player__top { display: flex; justify-content: space-between; }
.screen-player__body { text-align: center; color: #fff; }
.screen-player__body strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.screen-player__body > span { display: block; margin-top: 2px; font-size: 0.56rem; color: rgba(255, 255, 255, 0.8); }
.screen-player__body em {
  display: block; margin: 10px 0 12px;
  font-family: var(--display); font-weight: 700; font-style: italic; font-size: 0.74rem; color: #ffd9a6;
  transition: opacity 0.6s ease;
}
.bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.bar b { display: block; width: 22%; height: 100%; border-radius: 3px; background: #fff; }
.bar__meta { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.5rem; color: rgba(255, 255, 255, 0.75); }
.transport { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 10px; }
.transport i { width: 24px; height: 24px; border-radius: 50%; border: 1.2px solid rgba(255, 255, 255, 0.6); }
.transport .pp {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; position: relative;
}
.transport .pp::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 13px;
  background: linear-gradient(90deg, var(--night) 0 4px, transparent 4px 7px, var(--night) 7px 11px);
}
.ico { width: 16px; height: 16px; display: block; opacity: 0.9; }
.ico--chev { border-right: 2px solid #fff; border-bottom: 2px solid #fff; width: 8px; height: 8px; transform: rotate(45deg); margin: 2px 4px; }
.ico--heart {
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cloud-edge {
  position: absolute; z-index: 3; left: 0; bottom: 0;
  display: block; width: 100%; height: max(76px, 9.2vw);
}
.cloud-edge g { fill: var(--cloud); }
.cloud-edge__back { opacity: 0.22; }
.cloud-edge__mid { opacity: 0.5; }

@media (min-width: 900px) {
  .hero { padding: calc(130px + env(safe-area-inset-top)) 0 170px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero__phones { width: 470px; }
}

/* Load sequence: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__lede, .hero__actions, .hero__notes { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__lede { animation-delay: 0.08s; }
  .hero__actions { animation-delay: 0.16s; }
  .hero__notes { animation-delay: 0.24s; }
  .phone--back { animation: float-in-back 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .phone--front { animation: float-in-front 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes float-in-back { from { opacity: 0; transform: translateY(40px) rotate(-9deg); } }
@keyframes float-in-front { from { opacity: 0; transform: translateY(60px) rotate(8deg); } }

/* ── Promise ── */
.promise {
  width: min(760px, 100% - var(--gutter) * 2); margin: clamp(56px, 8vw, 100px) auto;
  text-align: center;
}
.promise h2 { font-size: var(--step-3); font-weight: 800; }
.promise p { margin-top: 18px; font-size: var(--step-1); line-height: 1.6; }

/* ── Listen ── */
.listen { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.quotes { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.quote {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  text-align: left; cursor: pointer;
  border: 0; border-radius: var(--radius-l);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 220, 199, 0.18), transparent 55%),
    linear-gradient(150deg, #2b3360, #3d4679);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quote:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.quote__text {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em;
}
.quote__hint { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); color: rgba(255, 255, 255, 0.78); font-weight: 500; }
.mini-play {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; position: relative; flex: none;
}
.mini-play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent var(--night);
  transform: translateX(1.5px);
}
.quote[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--peach), var(--shadow-lift); }
.quote[aria-pressed="true"] .quote__hint { color: var(--peach); }
.quote[aria-pressed="true"] .mini-play::after {
  width: 9px; height: 10px; border: 0; transform: none;
  background: linear-gradient(90deg, var(--night) 0 3px, transparent 3px 6px, var(--night) 6px 9px);
}
.quote:nth-child(2) { background: radial-gradient(120% 120% at 0% 100%, rgba(215, 234, 217, 0.22), transparent 55%), linear-gradient(150deg, #36406f, #4b5e81); }
.quote:nth-child(3) { background: radial-gradient(120% 120% at 100% 100%, rgba(250, 218, 221, 0.22), transparent 55%), linear-gradient(150deg, #3d4679, #5a5fa5); }
@media (min-width: 900px) {
  .quotes { grid-template-columns: 1.25fr 1fr 1fr; }
  .quote { min-height: 240px; justify-content: space-between; }
}

.sounds {
  list-style: none; margin: 0; padding: 4px 0 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.sounds::-webkit-scrollbar { display: none; }
.sounds li { scroll-snap-align: start; }
.sound {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; text-align: left;
}
.sound img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sound:hover img { transform: translateY(-2px); }
.sound__pp {
  position: absolute; top: calc(50% - 34px); left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28); border: 1.5px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sound__pp::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
  transform: translateX(2px);
}
.sound__name { display: block; margin-top: 10px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.sound[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--primary), var(--shadow-lift); }
.sound[aria-pressed="true"] .sound__pp { background: var(--primary); border-color: var(--primary); }
.sound[aria-pressed="true"] .sound__pp::after {
  width: 12px; height: 14px; border: 0; transform: none;
  background: linear-gradient(90deg, #fff 0 4px, transparent 4px 8px, #fff 8px 12px);
}
.sound[aria-pressed="true"] .sound__name { color: var(--primary); }
.listen__more { margin-top: 10px; color: var(--ink-subtle); font-size: var(--step--1); }
@media (min-width: 700px) { .sounds { grid-auto-columns: 26%; } }
@media (min-width: 1000px) {
  .sounds { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 150px)); justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .sound { text-align: center; }
  .listen__more { text-align: center; }
}

/* ── Features ── */
.features { padding: clamp(64px, 9vw, 110px) 0; background: var(--white); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 40px;
}
.feature-list li { display: flex; gap: 18px; align-items: flex-start; }
.feature-list h3 { font-size: var(--step-1); font-weight: 800; }
.feature-list p { margin-top: 4px; }
.bubble {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: var(--shadow-soft);
}
.bubble svg { width: 24px; height: 24px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bubble--lav { background: var(--primary-soft); }
.bubble--lav svg { stroke: #6f79c4; }
.bubble--peach { background: var(--peach); }
.bubble--peach svg { stroke: #d9814f; }
.bubble--blush { background: var(--blush); }
.bubble--blush svg { stroke: #d06576; }
.bubble--sage { background: var(--sage); }
.bubble--sage svg { stroke: #5b8f67; }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .feature-list { grid-template-columns: repeat(3, 1fr); } }

/* ── Steps ── */
.steps { padding: clamp(64px, 9vw, 110px) 0; background: var(--white); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; }
.step__art { position: relative; }
.step__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
.step__art::after {
  content: counter(step);
  position: absolute; left: 16px; bottom: -22px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); background: var(--primary);
  border: 4px solid var(--white);
}
.step-list h3 { margin-top: 36px; font-size: var(--step-1); font-weight: 800; }
.step-list p { margin-top: 6px; }
@media (min-width: 860px) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ── Voice ── */
.voice {
  display: grid; background: var(--night); color: rgba(239, 241, 255, 0.86);
  overflow: hidden;
}
.voice__art { position: relative; min-height: 420px; }
.voice__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.voice__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--night)); }
.voice__copy { padding: 8px var(--gutter) clamp(64px, 9vw, 110px); max-width: 620px; }
.voice h2 { color: #fff; font-size: var(--step-3); font-weight: 800; }
.voice p { margin-top: 16px; font-size: var(--step-1); line-height: 1.55; }
.voice .ticks li { color: rgba(239, 241, 255, 0.9); }
@media (min-width: 900px) {
  .voice { grid-template-columns: 1fr 1fr; align-items: center; }
  .voice__art { min-height: 640px; height: 100%; }
  .voice__art::after { background: linear-gradient(90deg, transparent 55%, var(--night)); }
  .voice__copy { padding: 80px clamp(32px, 6vw, 96px); }
}

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.voice .ticks li::before { background-color: #7a80c2; }

/* ── Collections ── */
.collections { padding: clamp(64px, 9vw, 110px) 0; }
.col-row {
  list-style: none; margin: 0; padding: 4px var(--gutter) 22px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 260px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
}
.col-row::-webkit-scrollbar { display: none; }
.col-row li { scroll-snap-align: start; }
.col-row figure { margin: 0; }
.col-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
.col-row figcaption { margin-top: 12px; }
.col-row strong { display: block; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.col-row span { display: block; margin-top: 2px; font-size: var(--step--1); line-height: 1.45; }
@media (min-width: 1000px) {
  .col-row {
    width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; padding: 4px 0 0;
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; overflow: visible;
  }
}

/* ── Pricing ── */
.pricing { padding: clamp(64px, 9vw, 110px) 0; background: var(--white); }
.plans { display: grid; gap: 18px; align-items: start; }
.plan {
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l);
  background: var(--cloud); border: 1px solid var(--hairline);
}
.plan h3 { font-size: var(--step-2); font-weight: 800; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.plan__price strong { font-family: var(--display); font-weight: 800; font-size: var(--step-3); color: var(--ink); line-height: 1; }
.plan__price span { color: var(--ink-subtle); }
.plan__alt { margin-top: 6px; color: var(--ink-body); }
.plan .btn { margin-top: 26px; width: 100%; }
.plan--premium {
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(255, 220, 199, 0.55), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(169, 180, 230, 0.35), transparent 60%),
    var(--white);
  border: 2px solid var(--primary);
  box-shadow: 0 24px 60px -30px rgba(108, 113, 181, 0.6);
}
.plan__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pill { padding: 5px 12px; border-radius: 999px; background: var(--peach); color: #9a4e22; font-size: 0.82rem; font-weight: 600; }
.fine { margin-top: 22px; max-width: 760px; font-size: 0.82rem; color: var(--ink-subtle); line-height: 1.55; }
@media (min-width: 820px) { .plans { grid-template-columns: 0.85fr 1.15fr; } }

/* ── Safe sleep ── */
.safe { background: var(--white); padding: 0 0 clamp(56px, 8vw, 90px); }
.safe__inner {
  width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px);
  border-radius: var(--radius-m); background: var(--sage);
  display: grid; gap: 8px;
}
.safe h2 { font-size: var(--step-1); font-weight: 800; color: #2f5a3a; }
.safe p { color: #36503d; max-width: 70ch; }

/* ── FAQ ── */
.faq { padding: clamp(64px, 9vw, 110px) 0; }
.faq h2 { font-size: var(--step-3); font-weight: 800; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--display); font-weight: 800; font-size: var(--step-1); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c71b5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; }

/* ── Dawn ── */
.dawn { position: relative; overflow: hidden; text-align: center; isolation: isolate; }
.dawn__bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.dawn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--cloud) 0%, rgba(246, 247, 251, 0) 18%, rgba(38, 45, 82, 0.15) 50%, rgba(246, 247, 251, 0.55) 100%);
}
.dawn__inner {
  width: min(640px, 100% - var(--gutter) * 2); margin-inline: auto;
  padding: clamp(110px, 14vw, 180px) 0 clamp(80px, 10vw, 130px);
  display: flex; flex-direction: column; align-items: center;
}
.dawn__icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-lift); }
.dawn h2 { margin-top: 26px; color: #fff; font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; text-shadow: 0 4px 30px rgba(38, 45, 82, 0.5); }
.dawn__inner > p { margin-top: 16px; color: #fff; font-size: var(--step-1); text-shadow: 0 2px 16px rgba(38, 45, 82, 0.6); max-width: 32em; }
.dawn .store-badge { margin-top: 28px; }

.notify {
  margin-top: 30px; width: 100%;
  padding: 22px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift); text-align: left;
}
.notify label { display: block; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.notify__row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.notify input {
  flex: 1 1 220px; min-height: 52px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--hairline); background: #fff;
  font: inherit; color: var(--ink);
}
.notify input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108, 113, 181, 0.18); }
.notify .btn { flex: 0 0 auto; }
.notify__status { min-height: 1.4em; margin-top: 10px; font-size: 0.92rem; font-weight: 500; }
.notify__status.is-ok { color: #3d7a4c; }
.notify__status.is-error { color: #b4434f; }
.notify__fine { font-size: 0.8rem; color: var(--ink-subtle); }

/* ── Footer ── */
.foot { background: var(--night); color: rgba(239, 241, 255, 0.72); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__inner { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; display: grid; gap: 14px; }
.foot__tag { color: var(--peach); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.foot nav a { color: rgba(239, 241, 255, 0.86); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot__copy { font-size: 0.85rem; margin-top: 10px; }

/* ── Explore: sleep guides & sounds ── */
.explore { padding: 0 0 clamp(64px, 9vw, 110px); }
.hubs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hubs a {
  display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px; text-decoration: none;
  border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft); transition: transform 0.2s ease, border-color 0.2s ease;
}
.hubs a:hover { transform: translateY(-2px); border-color: var(--lavender); }
.hubs strong { font-family: var(--display); font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.hubs span { font-size: var(--step--1); line-height: 1.45; color: var(--ink-body); }
.explore__h { margin-top: clamp(28px, 4vw, 40px); font-family: var(--display); font-weight: 800; color: var(--ink); }
.reads { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.reads a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: var(--primary-soft); color: var(--primary-deep); font-size: 0.92rem; font-weight: 500;
}
.reads a:hover { background: var(--lavender); color: var(--ink); }
@media (min-width: 640px) { .hubs { gap: 14px; } .hubs a { padding: 20px 22px; } .hubs strong { font-size: 1.1rem; } }
@media (min-width: 1000px) { .hubs { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .hubs a { transition: none; } .hubs a:hover { transform: none; } }

/* ── Now-playing pill ── */
.np {
  position: fixed; z-index: 60; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(38, 45, 82, 0.92); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lift); font-size: 0.92rem; font-weight: 500;
}
.np[hidden] { display: none; }
.np__eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.np__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--peach); animation: eq 1s ease-in-out infinite; }
.np__eq i:nth-child(2) { animation-delay: -0.3s; }
.np__eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.np__eq i { transform-origin: bottom; }
.np__stop { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; font-weight: 600; }

/* ── Legal / support pages ── */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #232a4f 0%, #2e3664 60%, #4a548c 100%);
  padding: calc(110px + env(safe-area-inset-top)) 0 90px;
}
.page-hero h1 { color: #fff; font-size: var(--step-4); font-weight: 800; }
.page-hero p { margin-top: 12px; color: rgba(239, 241, 255, 0.82); font-size: var(--step-1); }
.page-hero .wrap { position: relative; z-index: 2; }
.prose { width: min(760px, 100% - var(--gutter) * 2); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); }
.prose h2 { font-size: var(--step-2); font-weight: 800; margin: 44px 0 12px; }
.prose h3 { font-size: var(--step-1); font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-body); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose .meta { color: var(--ink-subtle); font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
