/* Little Orbit — the app's own palette: sage mist, cream, teal, and the
   night sky from Stars. Newsreader for headlines, as in the app. */
:root {
  --bg: #E9F0EC;
  --surface: #FBFCFA;
  --surface2: #E2EAE5;
  --line: #D6E0DA;
  --ink: #2C3436;
  --muted: #6C7876;
  --cta: #78CDD0;
  --cta-ink: #12302F;
  --hero: #D7EEEF;
  --pink: #F9B4C2;   /* the highlight pink, the same everywhere */
  --feed: #5A53A0;  --feed-bg: #E4E2F3;
  --pee: #7E6A12;   --pee-bg: #F2EACB;
  --diaper: #8A4A2E; --diaper-bg: #F6E3D4;
  --skin: #AE4868;  --skin-bg: #FBE0E6;
  --sleep: #4A6489; --sleep-bg: #E0E7F1;
  --tummy: #2F7A67; --tummy-bg: #D6EFEA;
  --night1: #141A2E; --night2: #1C2224; --night3: #2A1F33;
  --radius: 28px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
h3 { font-size: 26px; line-height: 1.15; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.hl { font-style: italic; color: var(--pink); }

/* Nav: a floating pill, like the app's tab bar. */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 100% - 24px); z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 18px;
  background: rgba(251, 252, 250, .78);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(214, 224, 218, .9);
  border-radius: 999px;
  transition: box-shadow .3s var(--ease), background .3s;
}
.nav.scrolled { box-shadow: 0 10px 30px rgba(28, 34, 36, .10); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 8px 22px rgba(44, 52, 54, .25); }
.btn-light { background: #fff; color: var(--night2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; height: 40px; padding: 0 16px; } }

/* Hero: the night sky in a rounded frame. */
.hero {
  position: relative; margin: 10px; border-radius: 36px; overflow: hidden;
  background: linear-gradient(160deg, var(--night1), var(--night2) 55%, var(--night3));
  color: #fff; padding: 140px 0 0;
}
.hero canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .lede { color: rgba(255,255,255,.72); margin-top: 22px; }
.hero .kicker { margin-bottom: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.hero-phone { justify-self: center; margin-bottom: -120px; }
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}

/* The phone, drawn in HTML so it can move. */
.phone {
  width: 320px; height: 650px; border-radius: 52px; padding: 12px;
  background: #0E1213; box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2b3336;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 100px; height: 28px; border-radius: 20px; background: #0E1213; transform: translateX(-50%); z-index: 3; }
.screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden; position: relative;
  background: var(--bg); color: var(--ink); padding: 58px 16px 16px;
}
.screen .scr { position: absolute; inset: 58px 16px 16px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.screen .scr.on { opacity: 1; transform: none; pointer-events: auto; }
.app-head { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; margin-bottom: 12px; }
.app-head svg { width: 24px; height: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.baby-row { display: flex; justify-content: space-between; align-items: baseline; }
.baby-name { font-family: var(--serif); font-size: 24px; }
.up-next { text-align: right; font-size: 11px; color: var(--muted); }
.up-next b { display: block; font-size: 14px; color: var(--feed); }

/* The orbit: rings, planets on their paths, the baby in the middle. */
.orbit { position: relative; width: 100%; height: 230px; margin: 4px auto 0; }
.orbit .ring { position: absolute; left: 50%; top: 50%; border: 1.5px dashed rgba(74, 100, 137, .28); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit .spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin linear infinite; }
.orbit .planet {
  position: absolute; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--surface); box-shadow: 0 4px 10px rgba(0,0,0,.08); animation: spin linear infinite reverse;
}
.orbit .planet svg { width: 17px; height: 17px; }
.orbit .baby {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 4px solid var(--surface);
  background: radial-gradient(circle at 35% 30%, #FBE0E6, #F9B4C2 60%, #E89AA9);
  box-shadow: 0 0 0 10px rgba(243,127,148,.12), 0 0 0 22px rgba(243,127,148,.06);
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: #7a2f45;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 14px rgba(243,127,148,.14), 0 0 0 28px rgba(243,127,148,.05); } }
.rows { margin-top: 10px; display: grid; gap: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-child { border-top: 0; }
.row .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.row .dot svg { width: 15px; height: 15px; }
.row span:last-child { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Feature tabs over the phone. */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 18px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.12);
  font: 600 14px/1 var(--sans); cursor: pointer; transition: all .25s var(--ease);
}
.tab .chip { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
.tab .chip svg { width: 13px; height: 13px; }
.tab.on { background: #fff; color: var(--night2); }

/* Sections. */
section { padding: 120px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } section { padding: 84px 0; } }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--hero) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%2312302F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(44,52,54,.06); }

/* Goal rings. */
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.goal { text-align: center; }
.goal svg { width: 100%; max-width: 110px; margin: 0 auto; overflow: visible; }
.goal circle { fill: none; stroke-width: 9; }
.goal .bgc { stroke: var(--c-bg); }
.goal .fg { stroke: var(--c); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 251.3; stroke-dashoffset: 251.3; transition: stroke-dashoffset 1.6s var(--ease); }
.goal .num { font: 500 28px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.goal b { display: block; margin-top: 8px; font-size: 14px; }
.goal small { color: var(--muted); font-size: 12px; }
.in .goal .fg { stroke-dashoffset: var(--off); }
.goal.done svg { animation: pop .5s var(--ease) 1.5s both; }
@keyframes pop { 50% { transform: scale(1.07); } }
.on-track { margin-top: 22px; font: 500 22px var(--serif); }

/* The + wheel. */
.wheel-stage { position: relative; height: 330px; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wheel { position: absolute; left: 50%; bottom: -260px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; background: #fff; box-shadow: 0 -12px 40px rgba(0,0,0,.08); }
.wheel-items { position: absolute; inset: 0; transition: transform .1s linear; }
.wi { position: absolute; left: 50%; top: 50%; width: 76px; margin: -38px 0 0 -38px; text-align: center; font-size: 12px; color: var(--muted); }
.wi .disc { width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; border: 4px solid #fff; }
.wi .disc svg { width: 26px; height: 26px; }
.wheel-hub { position: absolute; left: 50%; top: 214px; z-index: 2; transform: translateX(-50%); text-align: center; font: 500 18px var(--serif); }
.wheel-hub .bubble { width: 44px; height: 44px; margin: 0 auto 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chipx { padding: 9px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .3s var(--ease); }
.chipx.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Stages timeline. */
.stages { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 10px; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 4px; border-radius: 4px; background: var(--surface2); }
.stages .fill { position: absolute; left: 0; top: 23px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cta), var(--pink)); width: var(--p, 0%); transition: width .2s linear; }
.stage { position: relative; padding-top: 52px; }
.stage::before { content: ""; position: absolute; top: 14px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--surface2); transition: all .4s var(--ease); }
.stage.lit::before { border-color: var(--cta); background: var(--cta); box-shadow: 0 0 0 6px rgba(120,205,208,.25); }
.stage h4 { margin: 0 0 4px; font: 500 20px var(--serif); }
.stage .age { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.stage p { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) {
  .stages { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .stages::before, .stages .fill { left: 9px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .stages .fill { height: var(--p, 0%); bottom: auto; }
  .stage { padding: 4px 0 18px; }
  .stage::before { left: -34px; top: 4px; }
}

/* Sleep forecast. */
.track { position: relative; height: 70px; margin-top: 18px; }
.track .bar { position: absolute; left: 0; right: 0; top: 18px; height: 14px; border-radius: 7px; background: var(--surface2); }
.track .over { position: absolute; right: 0; top: 18px; height: 14px; width: 22%; border-radius: 0 7px 7px 0; background: rgba(181,69,58,.16); }
.track .prog { position: absolute; left: 0; top: 18px; height: 14px; border-radius: 7px; background: rgba(74,100,137,.32); width: 0; transition: width 2.2s var(--ease); }
.track .spot { position: absolute; left: 56%; width: 18%; top: 15px; height: 20px; border-radius: 8px; background: var(--sleep); box-shadow: 0 0 18px rgba(74,100,137,.55); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .4s; }
.track .now { position: absolute; top: 16px; left: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); transition: left 2.2s var(--ease); }
.in .track .prog { width: 48%; }
.in .track .spot { transform: none; }
.in .track .now { left: 48%; animation: pulse 1.6s ease-in-out 2.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }
.track .lbl { position: absolute; top: 44px; font-size: 12px; color: var(--muted); }
.daystrip { position: relative; height: 30px; border-radius: 9px; background: var(--surface2); margin-top: 12px; overflow: hidden; }
.daystrip i { position: absolute; top: 0; bottom: 0; border-radius: 7px; opacity: 0; transform: scaleY(.3); transition: all .6s var(--ease); }
.daystrip i.slept { background: var(--sleep); }
.daystrip i.likely { background: rgba(74,100,137,.18); border: 1.5px dashed rgba(74,100,137,.75); }
.daystrip i.bed { background: rgba(74,100,137,.4); }
.in .daystrip i { opacity: 1; transform: none; }
.hours { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Night sections: Stars and the reels. */
.night { position: relative; color: #fff; background: linear-gradient(160deg, var(--night1), var(--night2) 60%, var(--night3)); margin: 0 10px; border-radius: 36px; overflow: hidden; }
.night canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.night .wrap { position: relative; }
.night .kicker { color: rgba(255,255,255,.6); }
.night .lede { color: rgba(255,255,255,.72); }
.moon { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFF6E0, #EAD9B0 60%, #C9B37F); box-shadow: 0 0 60px rgba(255,236,190,.35); position: relative; overflow: hidden; }
.moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--night1); transform: translateX(var(--phase, 62%)); transition: transform 2.4s var(--ease); }
.in .moon::after { --phase: 34%; }
.swatches { display: flex; gap: 10px; margin-top: 20px; }
.swatches span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); transform: scale(0); transition: transform .6s var(--ease); }
.in .swatches span { transform: scale(1); }
.in .swatches span:nth-child(2) { transition-delay: .1s; } .in .swatches span:nth-child(3) { transition-delay: .2s; } .in .swatches span:nth-child(4) { transition-delay: .3s; }
.glass { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px; backdrop-filter: blur(6px); }
.pill-row { display: flex; gap: 6px; margin-bottom: 12px; }
.pill-row span, .pill-row button { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.1);
  color: inherit; border: 0; font-family: inherit; cursor: pointer; transition: background .25s, color .25s; }
.pill-row button:hover:not(.on) { background: rgba(255,255,255,.18); }
.pill-row span.on, .pill-row button.on { background: #fff; color: var(--night2); }

/* Story cards for the look-backs. */
.stories { position: relative; height: 560px; }
.story {
  position: absolute; left: 50%; top: 70px; width: 236px; height: 420px; margin-left: -118px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, var(--night1), var(--night2) 60%, var(--night3)); color: #fff; padding: 24px 22px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; transition: transform 1.1s var(--ease), opacity .8s;
  transform: translateY(40px) scale(.9); opacity: 0;
}
.story .k { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.story .big { font: 500 70px/1 var(--serif); margin-top: auto; }
.story .suf { font: 400 22px var(--serif); }
.story .ln { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; }
.story .wm { margin-top: auto; display: flex; align-items: center; gap: 7px; font: 500 13px var(--serif); background: rgba(0,0,0,.25); padding: 6px 11px; border-radius: 999px; align-self: flex-start; }
.story .wm svg { width: 18px; height: 18px; }
.story .photo { height: 150px; border-radius: 16px; margin: 6px 0 16px; background: linear-gradient(135deg, #F9B4C2, #B5B1D8 55%, #78CDD0); position: relative; overflow: hidden; }
.story .photo::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55), transparent 40%); animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(18%, 10%) scale(1.15); } }
.in .story { opacity: 1; }
.in .story.s1 { transform: translateX(-210px) rotate(-9deg); }
.in .story.s2 { transform: translateX(0) translateY(-14px); z-index: 2; }
.in .story.s3 { transform: translateX(210px) rotate(9deg); }
@media (max-width: 640px) { .in .story.s1 { transform: translateX(-90px) rotate(-8deg) scale(.86); } .in .story.s3 { transform: translateX(90px) rotate(8deg) scale(.86); } }
canvas.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Chat bubbles. */
.chat { display: grid; gap: 10px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 15px; opacity: 0; transform: translateY(12px); transition: all .6s var(--ease); }
.msg.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.orbit { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.action { background: var(--feed-bg); color: var(--feed); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.in .msg { opacity: 1; transform: none; }
.in .msg:nth-child(2) { transition-delay: .7s; } .in .msg:nth-child(3) { transition-delay: 1.4s; } .in .msg:nth-child(4) { transition-delay: 2.1s; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }

/* Feature grid. */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(44,52,54,.08); }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }

/* FAQ. */
.faq { max-width: 820px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; font: 500 22px var(--serif); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); }

/* Closing call and footer. */
.cta-band { text-align: center; padding: 110px 20px; }
.cta-band h2 { max-width: 14em; margin: 0 auto; }
.cta-band .hero-cta { justify-content: center; }
footer { padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

/* Scroll reveal: rise and fade, staggered within a group. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; } .stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; } .stagger.in > *:nth-child(5) { transition-delay: .32s; } .stagger.in > *:nth-child(6) { transition-delay: .4s; }

/* Legal pages. */
.doc { max-width: 760px; margin: 0 auto; padding: 140px 20px 80px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: #42494b; margin-top: 10px; }
.doc .updated { color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > *, .story, .msg { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------------
   The app's living sky (Oct 2026): the whole page sits on a sky that
   follows the visitor's own time of day, with glass cards on top, the
   same as the app. Overrides the light theme above.
------------------------------------------------------------------- */
:root {
  --ink: #F1EEE6; --muted: rgba(241, 238, 230, .74);
  --surface: rgba(255, 255, 255, .08); --surface2: rgba(255, 255, 255, .13); --line: rgba(255, 255, 255, .15);
  --hero: rgba(255, 255, 255, .1); --cta: #F3C46F; --cta-ink: #2A1E08;
  --feed: #B5B1D8; --feed-bg: rgba(181, 177, 216, .2);
  --pee: #DCC66A; --pee-bg: rgba(220, 198, 106, .2);
  --diaper: #E3A27F; --diaper-bg: rgba(227, 162, 127, .2);
  --skin: #F09AB2; --skin-bg: rgba(240, 154, 178, .2);
  --sleep: #97ACC8; --sleep-bg: rgba(151, 172, 200, .22);
  --tummy: #7CCDB6; --tummy-bg: rgba(124, 205, 182, .2);
  --sky-top: #10152A; --sky-mid: #171C33; --sky-haze: #171C33; --sky-bot: #231B33;
  --day: 0; --sun-x: 80%; --sun-y: 10%;
}
body { background: var(--sky-mid); color: var(--ink); }
.skybg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-haze) calc(47% + 30% * var(--day)), var(--sky-bot) 100%); }
.skybg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.skybg .sun { position: absolute; left: var(--sun-x); top: var(--sun-y); width: 70vmax; height: 70vmax; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 160, .55), rgba(255, 210, 122, .16) 45%, rgba(255, 210, 122, 0));
  opacity: var(--day); mix-blend-mode: screen; }
.skybg .disc { position: absolute; left: var(--sun-x); top: var(--sun-y); width: 54px; height: 54px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #FFFBEA, #FFD98A); box-shadow: 0 0 40px rgba(255, 217, 138, .9); filter: blur(2px); opacity: calc(var(--day) * .85); }
h1, h2, h3, .lede, .kicker, .hero-note { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }

.nav { background: rgba(16, 21, 42, .45); border-color: rgba(255, 255, 255, .14); }
.nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nav-links a:hover { color: #fff; }
.btn-ink { background: #F1EEE6; color: #141A2E; }
.btn-ink:hover { box-shadow: 0 8px 26px rgba(243, 196, 111, .35); }
.hero, .night { background: transparent; }
.night { margin: 0; border-radius: 0; }
.hero canvas.sky, .night canvas.sky { display: none; }   /* the page's own sky covers it */

.panel, .card, .tile, .wheel-stage, .chipx, details, .msg.orbit, .glass {
  background: var(--surface); border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.panel { box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.chipx.on, .msg.me { background: #F1EEE6; color: #141A2E; border-color: #F1EEE6; }
.wheel { background: rgba(20, 30, 60, .7); box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); }
.ticks li::before { background-color: rgba(243, 196, 111, .9); }
.track .now { border-color: #1C2340; }
.screen { background: linear-gradient(180deg, #2465BE, #4F93DB 55%, #DDBF76); color: #F1EEE6; }
.screen .card { background: rgba(10, 37, 80, .28); border-color: rgba(255, 255, 255, .16); }
.doc p, .doc li { color: var(--muted); }
footer a:hover { color: #fff; }

/* The 24-hour sky dial, as in the app: noon and the sun at the top. */
.dial { position: relative; width: 210px; height: 210px; margin: 6px auto 0; border-radius: 50%;
  background: conic-gradient(#FFF1D3 0turn, #FBD7B5 .2turn, #C98FA6 .27turn, #283252 .34turn, #1C2340 .5turn, #283252 .68turn, #E8A9B8 .74turn, #FBE3C2 .8turn, #FFF1D3 1turn);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px)); }
.dial-wrap { position: relative; width: 210px; height: 210px; margin: 6px auto 0; }
.dial-wrap .dial { position: absolute; inset: 0; margin: 0; }
.dial-wrap .arc { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from var(--from), var(--c) 0 var(--len), transparent var(--len) 1turn);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 calc(100% - 3px), transparent calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px), #000 calc(100% - 3px), transparent calc(100% - 2px));
  filter: drop-shadow(0 0 6px var(--c)); }
.dial-wrap .centre { position: absolute; inset: 40px; display: grid; place-content: center; text-align: center; }
.dial-wrap .centre b { font: 500 26px/1.05 var(--serif); }
.dial-wrap .centre .gold { color: #F3C46F; font-weight: 600; font-size: 13px; margin-top: 4px; }
.dial-wrap .centre small { color: var(--muted); font-size: 11px; }
.dial-wrap .nowdot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #F1EEE6; border: 3px solid #1C2340;
  left: calc(50% + 96px * sin(var(--t)) - 8px); top: calc(50% - 96px * cos(var(--t)) - 8px); }
.orbs { display: flex; justify-content: space-around; margin-top: 12px; }
.orbs span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 500 22px var(--serif);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.25), transparent 60%), var(--c-bg); color: var(--c);
  box-shadow: 0 0 22px var(--c-bg); border: 1px solid rgba(255,255,255,.2); }
.orbs span.next { border: 2px solid var(--c); box-shadow: 0 0 26px var(--c); }
/* Readability on the bright day sky. */
:root { --muted: rgba(241, 238, 230, .9); }
.skybg { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-haze) calc(60% + 22% * var(--day)), var(--sky-bot) 100%); }
.lede, .hero .lede, .tile p, .ticks li, details p { text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.hero .lede { color: rgba(255, 255, 255, .92); }

/* Orbit on the phone: a compact chat. */
.chat.mini { display: grid; gap: 8px; margin-top: 6px; }
.chat.mini .msg { font-size: 13px; padding: 9px 12px; max-width: 88%; opacity: 1; transform: none; }
.chat.mini .msg.orbit { background: rgba(10, 37, 80, .32); border-color: rgba(255, 255, 255, .16); }
.msg .go { margin-left: auto; font-size: 12px; background: var(--feed); color: #141A2E; padding: 4px 10px; border-radius: 99px; }

/* Sleep on the phone: today's naps, done and to come. */
.naps { display: grid; gap: 2px; padding: 8px 12px; }
.nap { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; }
.nap i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sleep); flex: none; }
.nap.done i { background: var(--sleep); }
.nap.next { color: #F3C46F; font-weight: 600; }
.nap.next i { border-color: #F3C46F; box-shadow: 0 0 10px #F3C46F; }
.nap span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.nap.next span { color: #F3C46F; }

/* Made for two: the 3am hand-over. */
.handover .ho-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.handover .ho-row:first-of-type { margin-top: 10px; }
.handover .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.handover .dot svg { width: 17px; height: 17px; }
.handover .ho-row span:last-child { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.handover .ho-next { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(243, 196, 111, .14); color: #F3C46F; font-size: 14px; }

/* Pricing: free beside Plus, with its three ways to pay. */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; align-items: start; }
.plan .price { font: 500 34px var(--serif); color: var(--ink); margin: 10px 0 6px; }
.plan .ticks { margin-top: 14px; }
.plan.plus { border-color: rgba(243, 196, 111, .6); box-shadow: 0 0 40px rgba(243, 196, 111, .18); }
.tiers { display: grid; gap: 8px; margin-top: 14px; }
.tier { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); }
.tier b { font-size: 15px; }
.tier em { font-style: normal; font-size: 11px; font-weight: 700; color: #141A2E; background: #F3C46F; padding: 2px 8px; border-radius: 99px; margin-left: 6px; white-space: nowrap; }
.tier span { font: 500 22px var(--serif); white-space: nowrap; }
.tier small { font: 500 13px var(--sans, inherit); color: var(--muted); }
.tier.best { border-color: #F3C46F; background: rgba(243, 196, 111, .1); }
.plan .fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.chat.mini { align-content: start; align-items: start; }
.chat.mini .msg { text-align: left; height: auto; }
.chat.mini .msg.action { background: rgba(181, 177, 216, .3); color: #F1EEE6; border: 1px solid rgba(181, 177, 216, .5); }
.chat.mini .msg.action .go { background: #B5B1D8; }
@media (max-width: 480px) { .panel.privacy { grid-template-columns: 1fr !important; gap: 14px !important; } }

/* The phone's own sky, running through a day: dawn, blue day, golden hour,
   dusk, twilight and night. Colours and --d (daylight) come from app.js. */
.screen { background: #10152A; }
.ph-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: background .3s linear; }
.ph-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-sun { position: absolute; left: var(--sx, 70%); top: var(--sy, 20%); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #FFFBEA, #FFD98A); opacity: var(--sun, 0);
  box-shadow: 0 0 30px 10px rgba(255, 214, 140, .55), 0 0 120px 60px rgba(255, 220, 150, .22); filter: blur(1px); }
.ph-moon { position: absolute; right: 30px; top: 70px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFDF4, #E9E2CC); opacity: var(--moon, 0);
  box-shadow: 0 0 22px rgba(255, 250, 230, .45), inset -7px -2px 0 rgba(16, 21, 42, .75); }
.screen .scr { z-index: 1; }
.ph-status { position: absolute; z-index: 2; top: 24px; left: 34px; right: 30px; display: flex; justify-content: space-between; align-items: center;
  font: 600 14px/1 var(--sans); color: #F1EEE6; font-variant-numeric: tabular-nums; pointer-events: none; }
.ph-bars { display: flex; align-items: flex-end; gap: 2px; }
.ph-bars i { width: 3px; border-radius: 1px; background: #F1EEE6; }
.ph-bars i:nth-child(1) { height: 5px; } .ph-bars i:nth-child(2) { height: 7px; } .ph-bars i:nth-child(3) { height: 9px; }
.ph-bars b { width: 22px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid rgba(241, 238, 230, .8);
  background: linear-gradient(90deg, #F1EEE6 70%, transparent 70%) content-box; padding: 1px; }
/* Glass, as in the app: frosted white under the stars, deep blue in daylight. */
.screen .card {
  background: linear-gradient(rgb(255 255 255 / calc(.1 * (1 - var(--d, 1)))), rgb(255 255 255 / calc(.1 * (1 - var(--d, 1))))),
              rgb(10 37 80 / calc(.06 + .24 * var(--d, 1)));
  border-color: rgb(255 255 255 / calc(.12 + .06 * var(--d, 1)));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .3s linear;
}
.screen .app-head, .screen .baby-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ph-caption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.ph-caption i { width: 8px; height: 8px; border-radius: 50%; background: #F3C46F; box-shadow: 0 0 10px #F3C46F; }
.ph-caption b { color: var(--ink); font-weight: 600; min-width: 5.5em; text-align: right; }

/* The phone and its switcher share one centre line: a glass segmented bar,
   exactly the phone's width, like the app's own section picker. */
.hero-phone { display: flex; flex-direction: column; align-items: center; }
.hero-phone .tabs {
  display: flex; flex-wrap: nowrap; gap: 4px; width: 320px; max-width: 100%; margin: 0 0 18px; padding: 4px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-phone .tab { flex: 1; justify-content: center; gap: 6px; height: 38px; padding: 0 6px; font-size: 13px;
  background: transparent; border-color: transparent; }
.hero-phone .tab .chip { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.hero-phone .tab.on { background: #F1EEE6; color: #141A2E; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.hero-phone .tab:not(.on):hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* Header: logo left, links centred between it and the button, all on one line. */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; top: 16px; padding: 8px 8px 8px 20px; min-height: 60px; }
.nav .brand { justify-self: start; }
.nav .nav-links { margin: 0; gap: 26px; }
.nav .nav-links a { color: rgba(241, 238, 230, .78); }
.nav .btn { justify-self: end; height: 44px; padding: 0 20px; }
.nav.scrolled { background: rgba(16, 21, 42, .72); }
@media (max-width: 1020px) { .nav .nav-links { gap: 18px; } .nav .nav-links a { font-size: 14px; } }
@media (max-width: 900px) { .nav { grid-template-columns: 1fr auto; } .nav .nav-links { display: none; } }

/* Moonrise on the phone's Sleep screen: last night, the dial, today's naps. */
.night-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 6px; margin-bottom: 8px; }
.night-strip .k { grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--sleep); display: flex; gap: 6px; align-items: center; }
.night-strip div { text-align: left; }
.night-strip b { display: block; font: 500 17px/1.1 var(--serif); }
.night-strip small { font-size: 10px; color: var(--muted); }
.naps .usual { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 0 4px; border-bottom: 1px solid rgb(255 255 255 / .12); margin-bottom: 2px; }
.scr[data-scr="sleep"] .dial-wrap { width: 160px; height: 160px; }
.scr[data-scr="sleep"] .dial-wrap .nowdot { left: calc(50% + 72px * sin(var(--t)) - 8px); top: calc(50% - 72px * cos(var(--t)) - 8px); }
.scr[data-scr="sleep"] .dial-wrap .centre { inset: 32px; }
.scr[data-scr="sleep"] .dial-wrap .centre b { font-size: 20px; }
.scr[data-scr="sleep"] .card { padding: 11px 12px; }
.scr[data-scr="sleep"] .app-head { margin-bottom: 8px; }
.scr[data-scr="sleep"] .nap { padding: 4px 0; }
/* Section labels on the phone stay readable on any sky. */
.screen .card > div:first-child > span:first-child, .night-strip .k { color: #DCE4F5; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
/* The dial always fills its frame, so arcs, ring and the now-dot line up at any size. */
.dial-wrap .dial { width: 100%; height: 100%; }
.night-strip b { margin-bottom: 2px; }
.night-strip small { display: block; line-height: 1.2; }
.screen .card > div:first-child > span:first-child { color: #DCE4F5 !important; }

/* Stars: a reading for each of you, cycling until someone taps. */
.horoscopes .pill-row { flex-wrap: wrap; }
.horoscopes .reading { min-height: 128px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.horoscopes .reading.fade { opacity: 0; transform: translateY(6px); }
.horoscopes .who { font-weight: 600; }
.horoscopes .sign { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); margin-top: 2px; }
.horoscopes .text { color: rgba(255, 255, 255, .78); font-size: 15px; margin-top: 6px; }
@media (max-width: 480px) { .horoscopes .reading { min-height: 150px; } }

/* FAQ: each question its own glass card, with room to breathe and a round
   +/× that sits level with the question. */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 22px; padding: 0; overflow: hidden;
  transition: border-color .25s, background .25s; }
.faq details[open] { border-color: rgba(249, 180, 194, .45); }
.faq summary { align-items: center; padding: 20px 22px; font-size: 21px; line-height: 1.25; }
.faq summary:hover { background: rgba(255, 255, 255, .03); }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .08) center / 14px 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' stroke='%23F1EEE6' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 2v10M2 7h10'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(249, 180, 194, .22); }
.faq details p { margin: 0; padding: 0 22px 22px; max-width: 68ch; line-height: 1.6; }
.faq details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .faq summary { padding: 16px 16px 16px 18px; font-size: 18px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .faq details[open] p { animation: none; } }
