@font-face {
  font-family: "Nunito";
  src: url("assets/Nunito-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fefaf2;
  --cream-deep: #f6efe6;
  --ink: #1f2326;
  --muted: #6f6977;
  --lavender: #bfb2d7;
  --purple: #7b61c9;
  --purple-deep: #4e377d;
  --purple-pale: #eee7f8;
  --blue: #3f78c5;
  --blue-pale: #e5f0ff;
  --peach: #feead6;
  --peach-deep: #c96f2d;
  --mint: #ddf8ef;
  --green: #327c66;
  --yellow: #fff3c4;
  --white: #ffffff;
  --line: #dcd4cd;
  --shadow: 0 18px 42px rgba(44, 36, 53, 0.09);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 52%, #f3edf8 100%);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.not-found { min-height: 100vh; width: min(680px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found .brand { margin-bottom: 92px; }
.not-found h1 { font-size: clamp(3.2rem, 10vw, 6rem); }
.not-found > p:not(.eyebrow) { max-width: 420px; color: var(--muted); font-size: 1.12rem; }
.not-found-link { margin-top: 22px; padding: 12px 18px; border-radius: 13px; background: var(--purple-deep); color: var(--white); font-weight: 750; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--purple); transform: scaleX(0); transform-origin: left; }

.site-header {
  position: absolute;
  z-index: 50;
  top: 24px;
  left: 50%;
  width: var(--shell);
  min-height: 68px;
  padding: 10px 12px 10px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 28px rgba(44,36,53,.06);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.25rem; letter-spacing: 0; }
.brand img { border-radius: 12px; box-shadow: 0 5px 15px rgba(73,53,96,.14); }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a, .footer-links a { color: var(--muted); font-weight: 650; text-decoration: none; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { color: var(--purple); }
.header-cta { justify-self: end; padding: 10px 16px; border-radius: 13px; background: var(--purple-deep); color: var(--white); font-weight: 750; text-decoration: none; }
.header-cta:hover { background: var(--purple-deep); }

.hero {
  position: relative;
  min-height: 940px;
  padding: 170px max(24px, calc((100vw - 1180px) / 2)) 90px;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 60px;
  background: radial-gradient(circle at 82% 78%, rgba(237,231,250,.7), transparent 30%), var(--cream);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to bottom, transparent, rgba(254,250,242,.75)); pointer-events: none; }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 10px; color: var(--purple-deep); font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.eyebrow > span { width: 23px; height: 2px; background: currentColor; border-radius: 10px; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 720px; margin: 0; font-size: clamp(3.7rem, 6.3vw, 6.2rem); line-height: 1; letter-spacing: 0; font-weight: 780; }
h1 em { display: block; color: var(--purple); font-style: normal; }
.hero-lede { max-width: 630px; margin: 30px 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-row.centered { justify-content: center; }
.store-badge { min-width: 180px; height: 60px; padding: 8px 17px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 17px; background: var(--purple-deep); color: var(--white); text-align: left; box-shadow: 0 10px 25px rgba(78,55,125,.18); opacity: 1; cursor: default; }
.store-badge > span:last-child { display: grid; line-height: 1.05; }
.store-badge small { font-size: .68rem; color: rgba(255,255,255,.72); }
.store-badge strong { font-size: 1.05rem; letter-spacing: 0; }
.store-symbol { width: 24px; font-size: 1.4rem; text-align: center; }
.store-symbol.play { font-size: 1.05rem; }
.availability { margin: 18px 0 0; color: var(--muted); font-size: .88rem; font-weight: 650; }
.availability span { color: var(--peach-deep); }

.hero-visual { min-height: 650px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 520px; height: 560px; border: 1px solid #e4dff0; border-radius: 42px; background: #f3edf8; }
.phone { position: relative; width: 314px; height: 640px; padding: 8px; border: 1px solid var(--line); border-radius: 43px; background: var(--white); box-shadow: 0 28px 60px rgba(44,36,53,.15); }
.phone::after, .phone-speaker { display: none; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; background: var(--white); overflow: hidden; }
.phone-screen > img, .phone-panel > img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.screen-topline { height: 42px; padding: 13px 22px 0; display: flex; justify-content: space-between; font-size: .62rem; font-weight: 800; }
.screen-greeting { padding: 18px 21px 14px; display: grid; }
.screen-greeting span { color: var(--muted); font-size: .72rem; }
.screen-greeting strong { font-size: 1.24rem; line-height: 1.25; }
.sleep-card { margin: 0 15px 17px; padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; border-radius: 18px; background: linear-gradient(135deg, #7b61c9, #5f45a2); color: white; box-shadow: 0 12px 24px rgba(100,74,166,.25); }
.sleep-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.16); font-size: 1.4rem; }
.sleep-card div:nth-child(2) { display: grid; }
.sleep-card small { font-size: .62rem; opacity: .72; }
.sleep-card strong { font-size: 1.16rem; }
.sleep-detail { padding: 5px 7px; border-radius: 9px; background: rgba(255,255,255,.14); font-size: .6rem; }
.routine-title { margin: 0 18px 9px; display: flex; justify-content: space-between; align-items: baseline; }
.routine-title strong { font-size: .88rem; }
.routine-title small { color: var(--muted); font-size: .59rem; }
.routine-grid { padding: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.routine-grid span { min-height: 71px; padding: 9px; display: grid; align-content: center; justify-items: center; gap: 2px; border-radius: 15px; background: white; box-shadow: 0 5px 15px rgba(45,35,57,.07); font-size: .68rem; font-weight: 750; }
.routine-grid b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--purple-pale); color: var(--purple); font-size: .95rem; }
.routine-grid span:nth-child(2) b { background: var(--peach); color: var(--peach-deep); }
.routine-grid span:nth-child(3) b { background: var(--blue-pale); color: var(--blue); }
.routine-grid span:nth-child(4) b { background: var(--mint); color: var(--green); }
.today-strip { margin: 16px; padding: 12px; display: flex; justify-content: space-between; border-radius: 13px; background: rgba(255,255,255,.65); color: var(--muted); font-size: .62rem; }
.today-strip b { color: var(--ink); }
.hero-note { position: absolute; z-index: 5; padding: 12px 16px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 17px; background: rgba(255,255,255,.83); box-shadow: 0 17px 35px rgba(52,40,68,.14); backdrop-filter: blur(12px); animation: float 4s ease-in-out infinite; }
.hero-note > span:last-child { display: grid; line-height: 1.15; }
.hero-note strong { font-size: .83rem; }
.hero-note small { color: var(--muted); font-size: .66rem; }
.hero-note-sleep { top: 90px; left: -5px; }
.hero-note-sync { right: -18px; bottom: 104px; animation-delay: -2s; }
.note-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; background: var(--purple-pale); color: var(--purple); font-size: 1.3rem; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 33px; height: 33px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--purple); color: white; font-size: .7rem; font-style: normal; font-weight: 800; }
.avatar-stack i + i { margin-left: -10px; background: var(--blue); }
.hero-scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 35px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .73rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; transform: translateX(-50%); }
.hero-scroll-cue span { width: 20px; height: 32px; border: 1px solid rgba(34,32,40,.3); border-radius: 14px; }
.hero-scroll-cue span::after { content: ""; display: block; width: 3px; height: 7px; margin: 6px auto; border-radius: 4px; background: var(--purple); animation: scroll-dot 1.7s ease-in-out infinite; }

.routine-marquee { padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.4); overflow: hidden; }
.marquee-track { width: max-content; display: flex; align-items: center; animation: marquee var(--marquee-duration, 42s) linear infinite; color: var(--muted); font-size: .9rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; will-change: transform; }
.marquee-group { flex: 0 0 auto; padding-right: 34px; display: flex; align-items: center; gap: 34px; }
.marquee-track i { color: var(--purple); font-style: normal; }

.section-shell { width: var(--shell); margin-inline: auto; }
.feature-intro { padding: 140px 0; }
.section-heading { max-width: 710px; margin-bottom: 58px; }
.section-heading h2, .story-heading h2, .privacy-callout h2, .download-card h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: 1.08; letter-spacing: 0; }
.section-heading > p:last-child { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.bento-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.bento-card { position: relative; min-height: 325px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 28px rgba(44,36,53,.035); }
.bento-card h3 { max-width: 430px; margin: 18px 0 10px; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.16; letter-spacing: 0; }
.bento-card p { max-width: 500px; margin: 0; color: var(--muted); }
.card-kicker { display: flex; align-items: center; gap: 9px; color: var(--purple-deep); font-size: .78rem; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.card-kicker span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.55); font-size: 1rem; }
.bento-large { grid-row: span 2; min-height: 670px; background: #ede7fa; }
.bento-large::after { content: ""; position: absolute; width: 250px; height: 250px; right: -50px; top: -70px; border-radius: 50%; background: rgba(255,255,255,.25); }
.bento-voice { background: #feead6; }
.bento-family { background: #ddf8ef; }
.daily-sleep-summary { position: absolute; left: 34px; right: 34px; bottom: 34px; padding: 18px; display: grid; gap: 11px; border-radius: 25px; background: rgba(255,255,255,.52); box-shadow: inset 0 1px rgba(255,255,255,.7); }
.daily-sleep-stat { min-height: 76px; padding: 13px 15px; display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 13px; border-radius: 17px; background: rgba(255,255,255,.72); }
.daily-sleep-stat > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--purple-pale); color: var(--purple); font-size: 1.25rem; }
.daily-sleep-stat small { align-self: end; color: var(--muted); font-size: .66rem; }
.daily-sleep-stat strong { grid-column: 2; align-self: start; font-size: 1.05rem; line-height: 1.15; }
.daily-sleep-stat::after { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: .72rem; font-weight: 900; }
.daily-sleep-stat.night::after { content: "Last night"; }
.daily-sleep-stat.naps::after { content: "1 nap"; }
.daily-sleep-stat.awake::after { content: "Since wake"; }
.daily-sleep-stat.naps > span { background: var(--blue-pale); color: var(--blue); }
.daily-sleep-stat.awake > span { background: var(--yellow); color: var(--peach-deep); }
.voice-wave { position: absolute; left: 34px; right: 34px; bottom: 31px; height: 88px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 19px; background: rgba(255,255,255,.5); }
.voice-wave i { width: 5px; height: 30%; border-radius: 7px; background: var(--peach-deep); animation: wave 1.2s ease-in-out infinite alternate; }
.voice-wave i:nth-child(2n) { height: 55%; animation-delay: -.2s; }
.voice-wave i:nth-child(3n) { height: 78%; animation-delay: -.5s; }
.family-pulse { position: absolute; left: 34px; right: 34px; bottom: 32px; height: 82px; display: flex; align-items: center; justify-content: center; }
.family-pulse span { z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--green); color: white; font-size: .85rem; font-weight: 850; box-shadow: 0 8px 20px rgba(50,124,102,.18); }
.family-pulse span:nth-of-type(2) { background: var(--purple); }
.family-pulse span:nth-of-type(3) { background: var(--blue); }
.family-pulse i { width: 42px; height: 2px; background: rgba(50,124,102,.35); }

.story { padding: 120px 0 80px; }
.story-heading { max-width: 830px; margin-bottom: 70px; }
.story-grid { display: grid; grid-template-columns: .93fr 1.07fr; gap: 90px; }
.story-visual { position: relative; height: calc(100vh - 100px); min-height: 700px; max-height: 800px; display: grid; place-items: center; position: sticky; top: 50px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: #f3edf8; overflow: hidden; }
.story-visual::before, .story-visual::after { content: ""; position: absolute; border: 1px solid rgba(118,85,186,.15); border-radius: 50%; }
.story-visual::before { width: 470px; height: 470px; }
.story-visual::after { width: 620px; height: 620px; }
.phone-story { z-index: 2; width: 296px; height: 605px; }
.story-screen { background: linear-gradient(#fefaf2, #f3ecf8); }
.phone-panel { position: absolute; inset: 0; padding: 43px 15px 15px; opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.phone-panel.is-active { opacity: 1; transform: none; }
.panel-header { padding: 17px 5px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.panel-header small { grid-column: 1; color: var(--muted); font-size: .62rem; }
.panel-header strong { grid-column: 1; font-size: 1.23rem; line-height: 1.2; }
.panel-header > span { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.75); color: var(--muted); font-size: .57rem; font-weight: 750; }
.active-pill { padding: 15px; display: flex; align-items: center; gap: 12px; border-radius: 18px; background: linear-gradient(135deg, var(--purple), #9a83c4); color: white; }
.active-pill b { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.16); }
.active-pill span { display: grid; line-height: 1.2; }
.active-pill small { font-size: .6rem; opacity: .7; }
.active-pill strong { font-size: 1.08rem; }
.placeholder-title { margin: 18px 3px 10px; font-size: .75rem; font-weight: 850; }
.log-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.log-options span { height: 78px; display: grid; place-items: center; align-content: center; border-radius: 15px; background: white; color: var(--purple); font-size: 1.1rem; box-shadow: 0 5px 15px rgba(45,35,57,.06); }
.log-options small { color: var(--ink); font-size: .62rem; font-weight: 750; }
.phone-panel button { position: absolute; left: 15px; right: 15px; bottom: 16px; height: 46px; border: 0; border-radius: 14px; background: var(--purple-deep); color: white; font-size: .72rem; font-weight: 800; }
.sleep-total { min-height: 220px; padding: 25px; display: grid; place-items: center; align-content: center; border-radius: 22px; background: linear-gradient(145deg, var(--purple), #4f387e); color: white; }
.sleep-total > span { font-size: 2.2rem; }
.sleep-total small { margin-top: 8px; font-size: .65rem; opacity: .7; }
.sleep-total strong { font-size: 2.55rem; line-height: 1.15; }
.sleep-total em { margin-top: 9px; padding: 5px 9px; border-radius: 9px; background: rgba(255,255,255,.13); font-size: .58rem; font-style: normal; }
.sleep-timeline { height: 34px; margin-top: 20px; display: flex; gap: 5px; }
.sleep-timeline i, .sleep-timeline b { display: block; border-radius: 9px; background: #c6b6df; }
.sleep-timeline i:first-child { flex: 5; }
.sleep-timeline b { flex: 1; background: var(--peach); }
.sleep-timeline i:last-child { flex: 2; background: #a48bc9; }
.timeline-labels { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .6rem; }
.timeline-labels b { color: var(--ink); }
.message-bubble { margin-top: 5px; padding: 15px; border-radius: 18px 18px 5px 18px; background: var(--purple); color: white; font-size: .76rem; line-height: 1.4; }
.assistant-draft { margin-top: 15px; padding: 15px; display: grid; gap: 10px; border-radius: 18px; background: white; box-shadow: 0 7px 20px rgba(45,35,57,.07); }
.assistant-draft > small { color: var(--muted); font-size: .58rem; font-weight: 750; text-transform: uppercase; }
.assistant-draft span { padding: 8px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; border-radius: 11px; background: var(--cream); font-size: .68rem; font-weight: 750; }
.assistant-draft b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: var(--purple-pale); color: var(--purple); }
.assistant-draft em { color: var(--muted); font-size: .56rem; font-style: normal; }
.caregiver-row { margin-bottom: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; border-radius: 15px; background: white; box-shadow: 0 5px 14px rgba(45,35,57,.055); }
.caregiver-row > i { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--purple); color: white; font-size: .68rem; font-style: normal; font-weight: 850; }
.caregiver-row:nth-of-type(3) > i { background: var(--blue); }
.caregiver-row:nth-of-type(4) > i { background: var(--green); }
.caregiver-row span { display: grid; }
.caregiver-row strong { font-size: .66rem; }
.caregiver-row small { color: var(--muted); font-size: .56rem; }
.sync-banner { margin-top: 18px; padding: 11px; border-radius: 13px; background: var(--mint); color: var(--green); text-align: center; font-size: .65rem; font-weight: 850; }
.story-steps { padding: 10vh 0; }
.story-step { min-height: 80vh; padding: 80px 0; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); opacity: .48; transition: opacity .35s ease; }
.story-step.is-active { opacity: 1; }
.step-number { width: 46px; height: 46px; margin-bottom: 28px; display: grid; place-items: center; border-radius: 15px; background: var(--purple-pale); color: var(--purple); font-size: .78rem; font-weight: 900; }
.story-step h3 { max-width: 520px; margin: 0 0 18px; font-size: clamp(2.2rem, 4.2vw, 3.8rem); line-height: 1.1; letter-spacing: 0; }
.story-step > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.story-step ul { margin: 25px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.story-step li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.5); color: var(--purple-deep); font-size: .75rem; font-weight: 750; }
.mobile-shot { display: none; }

.details { padding: 130px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.detail-card { min-height: 270px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); box-shadow: 0 8px 22px rgba(44,36,53,.025); }
.detail-card > span { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; background: var(--purple-pale); color: var(--purple); font-size: 1.25rem; }
.detail-card:nth-child(2) > span { background: var(--peach); color: var(--peach-deep); }
.detail-card:nth-child(3) > span { background: var(--mint); color: var(--green); }
.detail-card:nth-child(4) > span { background: var(--blue-pale); color: var(--blue); }
.detail-card h3 { margin: 48px 0 10px; font-size: 1.3rem; line-height: 1.2; letter-spacing: 0; }
.detail-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.privacy-callout { margin-block: 40px 130px; padding: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #292331, #4d3a63); color: white; box-shadow: var(--shadow); }
.privacy-callout .eyebrow { color: #d9cbea; }
.privacy-callout h2 { max-width: 700px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.privacy-callout p:last-child { max-width: 690px; color: rgba(255,255,255,.68); }
.privacy-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: rgba(255,255,255,.1); }
.privacy-mark span { width: 37px; height: 37px; display: grid; place-items: center; border: 2px solid #d9cbea; border-radius: 50%; color: #d9cbea; font-weight: 900; }
.text-link { white-space: nowrap; color: white; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.download { padding: 40px 0 140px; }
.download-card { position: relative; padding: 85px 30px; display: grid; justify-items: center; border-radius: var(--radius-xl); background: linear-gradient(150deg, #ede6f7, #f8eadf); text-align: center; overflow: hidden; }
.download-card::before, .download-card::after { content: ""; position: absolute; border: 1px solid rgba(118,85,186,.13); border-radius: 50%; }
.download-card::before { width: 620px; height: 620px; }
.download-card::after { width: 850px; height: 850px; }
.download-card > * { position: relative; z-index: 1; }
.download-card img { margin-bottom: 30px; border-radius: 25px; box-shadow: 0 18px 35px rgba(69,48,92,.18); }
.eyebrow.centered { justify-content: center; }
.download-card h2 { max-width: 720px; }
.download-card > p:not(.eyebrow) { margin: 18px 0 28px; color: var(--muted); font-size: 1.08rem; }
.download-card .support-note { margin: -10px 0 28px; font-size: .95rem; }
.support-note a { color: var(--purple-deep); font-weight: 850; text-underline-offset: 4px; }
.download-stars { position: absolute; top: 32px; color: var(--purple); }

.site-footer { padding: 30px 0 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.site-footer > p { color: var(--muted); font-size: .85rem; }
.footer-links { justify-self: end; display: flex; align-items: center; gap: 21px; color: var(--muted); font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(11px); } }
@keyframes marquee { to { transform: translateX(var(--marquee-shift, -50%)); } }
@keyframes wave { to { height: 72%; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-note-sleep { left: -30px; }
  .hero-note-sync { right: -25px; }
  .story-grid { gap: 45px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .privacy-callout { grid-template-columns: auto 1fr; }
  .privacy-callout .text-link { grid-column: 2; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .site-header { grid-template-columns: 1fr auto; top: 14px; min-height: 60px; }
  /* Keep the compact header focused on getting the app on smaller screens. */
  .site-header nav { display: none; }
  .header-cta { padding: 9px 13px; font-size: .85rem; }
  .hero { min-height: auto; padding: 130px 24px 95px; grid-template-columns: 1fr; gap: 55px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  h1 { max-width: 680px; font-size: clamp(3.25rem, 12vw, 5rem); }
  .hero-lede { max-width: 580px; }
  .hero-visual { min-height: 610px; transform: scale(.92); margin-block: -20px; }
  .hero-scroll-cue { display: none; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-row: auto; min-height: 600px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-steps { padding: 0; }
  .story-step { min-height: auto; padding: 65px 0; opacity: 1; }
  .mobile-shot { position: relative; height: 300px; margin: 0 0 35px; display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #f3edf8; overflow: hidden; }
  .mobile-shot > img { position: absolute; top: 18px; left: 50%; width: 122px; height: 264px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 15px 35px rgba(44,36,53,.15); object-fit: cover; object-position: center; transform: translateX(-50%); }
  .mobile-shot-screen { position: absolute; top: 19px; left: 50%; width: 150px; height: 205px; padding: 24px 10px 12px; display: grid; align-content: start; gap: 3px; border: 7px solid #292630; border-radius: 26px 26px 0 0; background: linear-gradient(#fffaf2, #e9e0f3); box-shadow: 0 15px 35px rgba(50,39,63,.16); color: var(--ink); transform: translateX(-50%); }
  .mobile-shot-screen::before { content: ""; position: absolute; top: 7px; left: 50%; width: 47px; height: 8px; border-radius: 10px; background: #292630; transform: translateX(-50%); }
  .mobile-shot-screen > small { color: var(--muted); font-size: .45rem; line-height: 1; }
  .mobile-shot-screen > strong { margin-bottom: 7px; font-size: .78rem; line-height: 1.1; }
  .mobile-shot b { display: none; }
  .mobile-shot-status { padding: 8px; display: flex; align-items: center; gap: 5px; border-radius: 9px; background: var(--purple); color: white; font-size: .48rem; }
  .mobile-shot-status span { font-size: .8rem; }
  .mobile-shot-options { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .mobile-shot-options span { height: 38px; display: grid; place-items: center; align-content: center; border-radius: 7px; background: white; color: var(--purple); font-size: .7rem; box-shadow: 0 3px 7px rgba(45,35,57,.08); }
  .mobile-shot-options i { color: var(--ink); font-size: .4rem; font-style: normal; font-weight: 800; }
  .mobile-shot-total { padding: 12px 7px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--purple), #4f387e); color: white; }
  .mobile-shot-total > span { font-size: 1.15rem; }
  .mobile-shot-total small { font-size: .42rem; opacity: .7; }
  .mobile-shot-total b { padding: 0; background: none; font-size: 1rem; }
  .mobile-shot-total i { margin-top: 3px; font-size: .4rem; font-style: normal; opacity: .75; }
  .mobile-shot-timeline { height: 14px; margin-top: 9px; display: flex; gap: 3px; }
  .mobile-shot-timeline i { border-radius: 4px; background: #c6b6df; }
  .mobile-shot-timeline i:first-child { flex: 5; }
  .mobile-shot-timeline i:nth-child(2) { flex: 1; background: var(--peach); }
  .mobile-shot-timeline i:last-child { flex: 2; background: #a48bc9; }
  .mobile-shot-message { margin-top: 2px; padding: 8px; border-radius: 9px 9px 3px 9px; background: var(--purple); color: white; font-size: .48rem; line-height: 1.35; }
  .mobile-shot-drafts { margin-top: 7px; padding: 7px; display: grid; gap: 4px; border-radius: 9px; background: white; box-shadow: 0 3px 8px rgba(45,35,57,.06); }
  .mobile-shot-drafts > small { color: var(--muted); font-size: .39rem; font-weight: 800; text-transform: uppercase; }
  .mobile-shot-drafts span { padding: 4px; display: flex; justify-content: space-between; border-radius: 4px; background: var(--cream); font-size: .45rem; font-weight: 800; }
  .mobile-shot-drafts i { color: var(--muted); font-size: .39rem; font-style: normal; }
  .mobile-shot-person { padding: 6px; display: flex; align-items: center; gap: 5px; border-radius: 8px; background: white; box-shadow: 0 2px 6px rgba(45,35,57,.05); }
  .mobile-shot-person + .mobile-shot-person { margin-top: 5px; }
  .mobile-shot-person i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: white; font-size: .4rem; font-style: normal; font-weight: 850; }
  .mobile-shot-person + .mobile-shot-person i { background: var(--blue); }
  .mobile-shot-person span { display: grid; font-size: .43rem; font-weight: 800; }
  .mobile-shot-person small { color: var(--muted); font-size: .36rem; }
  .mobile-shot-sync { margin-top: 8px; padding: 6px; border-radius: 7px; background: var(--mint); color: var(--green); text-align: center; font-size: .42rem; font-weight: 850; }
  .story-step:nth-child(2) .mobile-shot { background: #e4f0ff; }
  .story-step:nth-child(3) .mobile-shot { background: #feead6; }
  .story-step:nth-child(4) .mobile-shot { background: #ddf8ef; }
  .privacy-callout { padding: 42px; grid-template-columns: 1fr; }
  .privacy-callout .text-link { grid-column: 1; }
  .privacy-mark { width: 62px; height: 62px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p { display: none; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); --radius-xl: 29px; }
  .site-header { width: calc(100% - 24px); }
  .brand { font-size: 1.1rem; }
  .site-header .brand img { width: 38px; height: 38px; }
  .header-cta span { display: none; }
  .hero { padding-inline: 14px; }
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .hero-lede { font-size: 1.02rem; }
  .store-row { width: 100%; justify-content: center; }
  .store-badge { min-width: min(220px, 100%); }
  .hero-visual { min-height: 545px; transform: scale(.82); margin: -55px -35px -60px; }
  .hero-note-sleep { left: -2px; top: 70px; }
  .hero-note-sync { right: -2px; bottom: 80px; }
  .feature-intro, .details { padding: 90px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .story-heading h2 { font-size: 2.65rem; }
  .bento-card { padding: 26px; }
  .bento-large { min-height: 510px; }
  .daily-sleep-summary { left: 26px; right: 26px; bottom: 26px; padding: 13px; gap: 8px; }
  .daily-sleep-stat { min-height: 65px; padding: 9px 11px; grid-template-columns: 38px 1fr auto; column-gap: 10px; }
  .daily-sleep-stat > span { width: 36px; height: 36px; font-size: 1.05rem; }
  .daily-sleep-stat::after { font-size: .61rem; }
  .bento-voice, .bento-family { min-height: 350px; }
  .voice-wave, .family-pulse { left: 26px; right: 26px; }
  .story { padding-top: 90px; }
  .story-heading { margin-bottom: 35px; }
  .story-step h3 { font-size: 2.45rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-card { min-height: 220px; }
  .detail-card h3 { margin-top: 30px; }
  .privacy-callout { margin-bottom: 90px; padding: 34px 27px; }
  .download { padding-bottom: 90px; }
  .download-card { padding: 70px 20px; }
  .download-card h2 { font-size: 2.8rem; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { justify-self: center; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
