/* Moonlit Lullaby: features page. Each feature has a small phone that plays a gentle demo of the real
   screen (wording from the app). Demos start when scrolled into view; reduced motion shows them at rest. */

.f-hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 6vw, 4rem); text-align: center; overflow-x: clip; }
.f-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 500; margin: .8rem auto 1rem; max-width: 15ch; }
.f-hero h1 em { font-style: italic; color: var(--accent); }
.f-hero .lede { color: var(--soft); max-width: 36rem; margin: 0 auto; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.f-hero .eyebrow { justify-content: center; }
.f-index { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.f-index a { text-decoration: none; color: var(--soft); font-size: .88rem; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); transition: color .3s, border-color .3s, transform .4s var(--ease); }
.f-index a:hover { color: var(--accent); border-color: rgba(227, 201, 148, .45); transform: translateY(-2px); }

/* A feature: words on one side, a phone on the other, alternating. */
.feature { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.feature:nth-of-type(even) .wrap > .words { order: 2; }
.words .kicker { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.words h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 500; margin: .6rem 0 .9rem; }
.words p { color: var(--soft); max-width: 32rem; }
.words p.more { margin-top: .8rem; color: var(--text); opacity: .88; font-size: .98rem; }
.words ul { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.words li { display: flex; gap: .65rem; align-items: baseline; color: var(--text); font-size: .98rem; }
.words li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(227, 201, 148, .7); transform: translateY(-1px); }
.words .note { margin-top: 1rem; font-size: .82rem; color: var(--soft); opacity: .85; }

/* ---------- Phone frame ---------- */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227, 201, 148, .2), transparent 65%); animation: glow 9s ease-in-out infinite; }
.phone { position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #1b131c;
  box-shadow: 0 0 0 1.5px rgba(252, 249, 243, .12), 0 40px 70px -30px rgba(0, 0, 0, .7), inset 0 0 0 2px #2b2130; animation: float 8s ease-in-out infinite; }
.feature:nth-of-type(even) .phone { animation-delay: -4s; }
.screen { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #fcf9f3; color: #473643; font-family: var(--sans); }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 86px; height: 22px; margin-left: -43px; border-radius: 99px; background: #1b131c; z-index: 5; }
.scr { position: absolute; inset: 0; padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.scr h4 { margin: 0; font: 600 1.45rem/1.1 var(--serif); color: #63465d; }
.scr small { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #a88b59; font-weight: 700; }
.scr p { font-size: .78rem; color: #7c7078; }
.pill { border: 1.5px solid #e8e0dc; background: #fffdf9; border-radius: 16px; padding: 10px 12px; font-size: .8rem; color: #473643; transition: border-color .5s, background .5s, transform .5s var(--ease); }
.pill.on { border-color: #63465d; background: #f0e3e6; transform: scale(1.03); }
.pill b { display: block; font: 600 .82rem/1.2 var(--sans); }
.pill span { font-size: .7rem; color: #7c7078; }
.chip { align-self: flex-start; font-size: .7rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: #f3e7db; color: #63465d; }
.plum-btn { align-self: stretch; text-align: center; font-weight: 700; font-size: .85rem; padding: 12px; border-radius: 99px; background: #63465d; color: #fcf9f3; }
.mock-label { position: absolute; bottom: -2.2rem; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--soft); opacity: .8; }

/* 1 · Dates */
.due { margin-top: auto; text-align: center; background: #f3e7db; border-radius: 20px; padding: 14px 10px; }
.due small { display: block; }
.due strong { display: block; font: 600 1.5rem/1.1 var(--serif); color: #63465d; margin-top: 4px; transition: opacity .5s; }
.due .wk { font-size: .75rem; color: #7c7078; }

/* 2 · Today */
.today-sky { margin: -46px -18px 0; padding: 50px 18px 18px; background: linear-gradient(180deg, #3a2b3f, #63465d 70%, #8a6a7e); color: #fcf9f3; text-align: center; border-radius: 0 0 30px 30px; position: relative; }
.today-sky small { color: #e3c994; }
.today-sky h4 { color: #fcf9f3; font-size: 1.9rem; }
.today-sky .friend { position: relative; width: 120px; height: 120px; margin: 6px auto 0; cursor: pointer; }
.today-sky .friend img { width: 100%; animation: bob 5s ease-in-out infinite; }
.today-sky .friend canvas { position: absolute; inset: -40%; width: 180%; height: 180%; pointer-events: none; }
/* The baby floats large in a soft warm glow, as on the app's Today (owner, 30 Nov 2026). */
.today-sky .friend.baby { width: 190px; height: 190px; margin-top: 0; }
.today-sky .friend.baby::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(247,217,204,.55), rgba(231,175,175,.22) 50%, transparent); animation: glowBreathe 6s ease-in-out infinite; }
.today-sky .friend.baby img { position: relative; }
@keyframes glowBreathe { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .today-sky .friend.baby::before { animation: none; } }
.today-sky .tap { font-size: .7rem; color: #f0e3e6; animation: breatheText 3.5s ease-in-out infinite; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { border-radius: 16px; background: #fffdf9; border: 1px solid #e8e0dc; padding: 10px; font-size: .72rem; }
.mini b { display: block; color: #63465d; font: 600 .95rem/1.1 var(--serif); margin-bottom: 2px; }

/* 3 · Week by week: the week page scrolls by itself */
.scroller { position: absolute; inset: 46px 0 0; overflow: hidden; }
.scroller .track { padding: 0 18px 18px; display: grid; gap: 10px; animation: scrollWeek 22s ease-in-out infinite; }
@keyframes scrollWeek { 0%, 12% { transform: translateY(0); } 45%, 55% { transform: translateY(-46%); } 88%, 100% { transform: translateY(0); } }
.story-page { border-radius: 18px; background: #fffdf9; border: 1px solid #e8e0dc; padding: 12px; }
.story-page h5 { margin: 0 0 4px; font: 600 1.1rem/1 var(--serif); color: #63465d; }
.story-page p { font-size: .72rem; line-height: 1.45; }
.ticket { border-radius: 14px; border: 1.5px dashed #a88b59; padding: 10px 12px; background: #fcf3e6; font-size: .72rem; }
.ticket b { color: #a88b59; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; display: block; }
.envelope { border-radius: 14px; padding: 10px 12px; background: #f0e3e6; font-size: .72rem; position: relative; }
.envelope b { display: block; font: 600 .95rem/1.1 var(--serif); color: #63465d; }
.size-top { text-align: center; }
.size-top img { width: 110px; margin: 0 auto; }
/* The units switch: its pill glides across, as in the app. */
.units { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-self: center; border-radius: 99px; background: #f3e7db; padding: 3px; font-size: .68rem; font-weight: 700; }
.units::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: #63465d; box-shadow: 0 2px 6px rgba(43,34,54,.2); transition: transform .42s cubic-bezier(.3,1.12,.45,1); }
.units:has(span:last-child.on)::before { transform: translateX(100%); }
.units span { position: relative; z-index: 1; text-align: center; padding: 5px 10px; border-radius: 99px; color: #7c7078; transition: color .3s; }
.units span.on { color: #fcf9f3; }
@media (prefers-reduced-motion: reduce) { .units::before { transition: none; } }
.measure { display: flex; gap: 8px; justify-content: center; }
.measure div { background: #f3e7db; border-radius: 12px; padding: 6px 10px; text-align: center; font-size: .62rem; color: #7c7078; min-width: 84px; }
.measure strong { display: block; font: 600 1rem/1.2 var(--serif); color: #473643; }

/* 4 · Our story: the app's Our story screen with a little leather-bound book whose pages turn. */
.book-scr { background: radial-gradient(130% 70% at 50% 0%, #4a3550, #2e2232 65%); }
.story-scr { padding: 44px 14px 14px; gap: 0; color: #fcf9f3; }
.story-scr .tw { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f6e7c4; box-shadow: 0 0 6px 1px rgba(246, 231, 196, .7); animation: twinkle 3.6s ease-in-out infinite; }
.story-head { text-align: center; position: relative; z-index: 1; }
.story-head small { color: #e3c994; }
.story-head h4 { color: #fcf9f3 !important; font-size: 1.6rem !important; margin-top: 2px !important; }
.story-head h4 i { font-style: normal; font-size: .8rem; color: #e3c994; vertical-align: middle; }
.story-head p { color: #cdbfcb !important; font-size: .68rem !important; margin-top: 3px; }

/* An open book, spine in the middle. Pages are leaves hinged on the spine; features.js turns them. */
.book { position: relative; align-self: flex-start; width: 46%; height: 296px; margin: 14px 0 12px 50%; perspective: 1200px; }
.book .left-blank { position: absolute; right: 100%; top: 0; width: 100%; height: 100%; border-radius: 12px 3px 3px 12px; background: #f6efe4;
  box-shadow: -3px 3px 0 -1px #e9dfd0, -6px 6px 0 -2px #ddd1c0, 0 26px 40px -18px rgba(0, 0, 0, .7), inset -12px 0 16px -10px rgba(70, 45, 60, .35); }
.book::after { content: ""; position: absolute; inset: 0; border-radius: 3px 12px 12px 3px; z-index: 0; background: #fcf9f3;
  box-shadow: 3px 3px 0 -1px #e9dfd0, 6px 6px 0 -2px #ddd1c0, 0 26px 40px -18px rgba(0, 0, 0, .7); }
.title-page { position: absolute; inset: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.flourish { width: 46px; height: 8px; background: radial-gradient(circle, #a88b59 1.6px, transparent 2px) center / 8px 8px repeat-x; opacity: .7; }
.book .leaf { position: absolute; inset: 0; z-index: 1; transform-origin: left center; transform-style: preserve-3d; will-change: transform; }
.book .leaf > div { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; padding: 10px 9px 9px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .6), transparent 60%), #fcf9f3;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.book .leaf > .front { border-radius: 3px 12px 12px 3px; box-shadow: inset 12px 0 16px -10px rgba(70, 45, 60, .3); }
.book .leaf > .back { transform: rotateY(180deg); border-radius: 12px 3px 3px 12px; background: #f6efe4; box-shadow: inset -12px 0 16px -10px rgba(70, 45, 60, .35); }
/* The cover: plum leather, gold foil frame, a gold crescent and the name in gold. */
.book .leaf > .cover { justify-content: center; gap: 8px; color: #e3c994;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), transparent 55%), repeating-linear-gradient(45deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 5px), linear-gradient(160deg, #73546c, #63465d 55%, #4f3549); }
.cover .foil { position: absolute; inset: 8px; border-radius: 2px 8px 8px 2px; border: 1px solid rgba(227, 201, 148, .7); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgba(227, 201, 148, .35); }
.cover .crescent { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -9px -3px 0 0 #e3c994; transform: rotate(-25deg); filter: drop-shadow(0 0 6px rgba(227, 201, 148, .5)); }
.cover b { font: 600 1.25rem/1 var(--serif); color: #f1dcae; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.cover small { color: rgba(241, 220, 174, .8); font-size: .52rem; letter-spacing: .2em; }
/* Week pages: header, a taped photo, the week's size friend in the corner. */
.pg-head { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-bottom: 1px solid #efe4d6; padding-bottom: 4px; }
.pg-head b { font: 600 .8rem/1 var(--serif); color: #63465d; white-space: nowrap; }
.pg-head span { font-size: .46rem; color: #9a8e96; white-space: nowrap; }
.pg-note { font: italic 500 .74rem/1.25 var(--serif); color: #4f3549; margin-top: 2px; padding-right: 26px; }
.snap { position: relative; margin: 8px 0 0; width: 94%; background: #fff; padding: 5px 5px 4px; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .4); transform: rotate(var(--r, 0deg)); }
.snap img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.snap figcaption { font: italic 500 .7rem/1.2 var(--serif); color: #63465d; padding-top: 4px; }
.snap .tape { position: absolute; top: -7px; left: 50%; width: 42px; height: 13px; margin-left: -21px; background: rgba(240, 227, 230, .85); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.friend-mini { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; object-fit: contain; opacity: .95; }
/* Note pages: ruled paper and handwriting. */
.ruled { position: absolute; inset: 10px 10px 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left;
  background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(99, 70, 93, .12) 17px 18px); }
.ruled .pg-wk { font: 700 .5rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a88b59; }
.ruled p { font: italic 500 .86rem/18px var(--serif) !important; color: #4f3549 !important; }
.ruled .tbc { text-align: center; }
.heart-doodle { width: 12px; height: 11px; background: #d99aa9; clip-path: path("M6 11 1.3 6.4A3.1 3.1 0 0 1 6 2.2a3.1 3.1 0 0 1 4.7 4.2z"); align-self: flex-end; }
.handwritten { font: italic 500 .82rem/1.3 var(--serif); color: #63465d; }
/* Light and shadow while a page turns (opacity driven by features.js). */
.book .shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.book .front .shade { background: linear-gradient(90deg, rgba(40, 25, 38, .05), rgba(40, 25, 38, .45)); }
.book .back .shade { background: linear-gradient(270deg, rgba(40, 25, 38, .05), rgba(40, 25, 38, .4)); }
.book .cast { position: absolute; inset: 0; z-index: 200; pointer-events: none; opacity: 0; border-radius: 3px 12px 12px 3px; background: linear-gradient(90deg, rgba(30, 18, 28, .45), rgba(30, 18, 28, 0) 70%); }
.story-foot { margin-top: auto; display: grid; gap: 7px; position: relative; z-index: 1; }
.pages-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .66rem; color: #cdbfcb; }
.pages-row b { font: 600 1.05rem/1 var(--serif); color: #e3c994; }
.bar { height: 5px; border-radius: 9px; background: rgba(252, 249, 243, .12); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, #a88b59, #e3c994); box-shadow: 0 0 10px rgba(227, 201, 148, .6); }
.story-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 3px; }
.story-btns span { text-align: center; font-size: .7rem; font-weight: 700; padding: 10px 6px; border-radius: 99px; }
.story-btns .ghost { color: #fcf9f3; border: 1px solid rgba(252, 249, 243, .3); }
.story-btns .gold { color: #2e2232; background: linear-gradient(90deg, #e3c994, #d1b37a); }

/* 5 · Breathe (Rive moonflower) */
.breathe-scr { background: radial-gradient(120% 80% at 50% 30%, #4a3550, #2e2232 70%); color: #fcf9f3; text-align: center; --breath: .55; }
.breathe-scr h4 { color: #fcf9f3; }
.breathe-scr small { color: #e3c994; }
.breathe-scr .pondmini { position: relative; width: 100%; aspect-ratio: 1; margin-top: 4px; }
.breathe-scr .pondmini::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgba(227, 201, 148, .4); transform: scale(calc(.75 + var(--breath) * .45)); opacity: calc(.25 + var(--breath) * .6); }
.breathe-scr canvas { position: relative; width: 100%; height: 100%; }
.breathe-scr [data-breathe-label] { font: italic 500 1.5rem/1.2 var(--serif); color: #e3c994; min-height: 1.9rem; }
.breathe-scr [data-breathe-count] { font: 500 1.1rem/1 var(--serif); color: #f0e3e6; min-height: 1.2rem; }
.breathe-scr .rhythms { justify-content: center; margin: 0; }
.breathe-scr .rhythms button { font-size: .68rem; padding: .45rem .7rem; }
.breathe-scr .taps { font-size: .66rem; color: #cdbfcb; }

/* 6 · Contractions (matches the app: guidance card, "The last hour", "Recent", wide pill button) */
.con { gap: 9px; padding-bottom: 14px; }
.con-guide { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 10px 11px; border-radius: 16px; background: linear-gradient(135deg, #f0e3e6, #f3e7db); }
.con-guide b { display: block; font-size: .7rem; line-height: 1.25; color: #473643; }
.con-guide span { display: block; font-size: .6rem; color: #7c7078; margin-top: 2px; }
.con-guide i { font-style: normal; color: #63465d; font-size: 1.1rem; }
.moon-ico { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset -6px -2px 0 0 #a88b59; transform: rotate(-20deg); }
.con-label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a88b59; }
.con-hour { display: grid; gap: 6px; padding: 10px 10px 12px; border-radius: 18px; background: #fffdf9; border: 1px solid #e8e0dc; box-shadow: 0 10px 22px -18px rgba(71, 54, 67, .6); }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); }
.figs div { text-align: center; padding: 0 2px; }
.figs div + div { border-left: 1px solid #efe7e1; }
.figs strong { display: block; font: 600 1.35rem/1.1 var(--serif); color: #473643; }
.figs strong.roll { animation: roll .6s var(--ease); }
.figs span { font-size: .56rem; color: #7c7078; }
@keyframes roll { from { transform: translateY(8px); opacity: 0; } }
.con-list { display: grid; gap: 0; border-radius: 16px; background: #fffdf9; border: 1px solid #e8e0dc; overflow: hidden; }
.con-list div { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 8px 11px; font-size: .7rem; border-top: 1px solid #f2ebe6; animation: fadeUp .6s var(--ease) both; }
.con-list div:first-child { border-top: 0; }
.con-list b { font: 600 .82rem/1 var(--serif); color: #473643; }
.con-list span { color: #473643; white-space: nowrap; }
.con-list em { font-style: normal; font-size: .6rem; color: #7c7078; }
.con-list div.now { background: linear-gradient(90deg, rgba(176, 96, 126, .12), transparent); }
.con-list div.now span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #b0607e; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.5); opacity: .5; } }
.con-btn { position: relative; margin-top: auto; height: 52px; border-radius: 99px; display: grid; place-items: center; color: #fbf1e6; font-weight: 700; font-size: .85rem;
  background: linear-gradient(90deg, #3b2f55, #63465d); box-shadow: 0 12px 24px -14px rgba(59, 47, 85, .9); transition: transform .25s var(--ease); }
.con-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #b0607e, #63465d); opacity: 0; transition: opacity .6s; }
.con-btn > span[data-clabel] { position: relative; font-variant-numeric: tabular-nums; }
.con-btn.live::before { opacity: 1; }
.con-btn.press { transform: scale(.96); }
.con-btn .waves { position: absolute; inset: 0; pointer-events: none; }
.con-btn .waves i { position: absolute; inset: 0; border-radius: 99px; border: 1.5px solid rgba(176, 96, 126, .55); opacity: 0; }
.con-btn.live .waves i { animation: wave 2.4s ease-out infinite; }
.con-btn.live .waves i:nth-child(2) { animation-delay: .8s; } .con-btn.live .waves i:nth-child(3) { animation-delay: 1.6s; }
@keyframes wave { from { transform: scale(1); opacity: .8; } to { transform: scale(1.18, 1.6); opacity: 0; } }

/* 7 · Movements (matches the app: NHS guidance card, Today day-line, Earlier this week, heart pill button) */
.mov { gap: 8px; padding-bottom: 14px; }
.mov-guide { display: grid; gap: 2px; padding: 9px 11px; border-radius: 16px; background: linear-gradient(135deg, #f0e3e6, #f3e7db); border-left: 3px solid #b0607e; }
.mov-guide b { font-size: .7rem; color: #473643; line-height: 1.25; }
.mov-guide span { font-size: .62rem; color: #473643; line-height: 1.35; }
.mov-guide em { font-style: normal; font-size: .56rem; color: #7c7078; }
.mov-note { font-size: .66rem !important; line-height: 1.4; color: #473643 !important; }
.mov-today { border-radius: 18px; background: #fffdf9; border: 1px solid #e8e0dc; padding: 10px 12px 8px; box-shadow: 0 10px 22px -18px rgba(71, 54, 67, .6); }
.mov-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mov-head b { font: 600 1rem/1 var(--serif); color: #473643; }
.mov-head span { font-size: .6rem; color: #7c7078; transition: opacity .4s; }
.dayline { position: relative; height: 12px; }
.dayline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: #e8e0dc; }
.dayline.big { height: 18px; }
.dayline.big::before { height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, #e8e0dc calc(var(--now, .56) * 100%), #f4efeb 0); }
.dayline .dot { position: absolute; top: 50%; left: calc(var(--t) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #63465d; }
.dayline.big .dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 0 3px rgba(99, 70, 93, .12); }
.dayline .dot.new { animation: dotIn .9s var(--ease); background: #b0607e; }
@keyframes dotIn { 0% { transform: scale(0); } 55% { transform: scale(1.8); box-shadow: 0 0 0 8px rgba(176, 96, 126, .25); } 100% { transform: scale(1); } }
.dayline .now { position: absolute; top: -3px; bottom: -3px; left: calc(var(--t) * 100%); width: 2px; margin-left: -1px; border-radius: 2px; background: #a88b59; transition: left .8s var(--ease); }
.ticks { display: flex; justify-content: space-between; margin-top: 4px; font-size: .52rem; color: #9a8e96; }
.mov-week { display: grid; gap: 6px; }
.mov-week > b { font: 600 .9rem/1 var(--serif); color: #473643; margin-bottom: 2px; }
.mov-week > div { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 6px; }
.mov-week > div > span { font-size: .6rem; font-weight: 700; color: #7c7078; }
.mov-private { font-size: .56rem; color: #9a8e96; }
.toast { position: absolute; left: 14px; right: 14px; bottom: 74px; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; background: #473643; color: #fcf9f3; font-size: .68rem; opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease); pointer-events: none; }
.toast b { color: #e3c994; font-size: .66rem; }
.toast.show { opacity: 1; transform: none; }
.felt { position: relative; margin-top: auto; height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; cursor: pointer; font: 700 .86rem/1 var(--sans); color: #fbf1e6;
  background: linear-gradient(90deg, #3b2f55, #63465d); box-shadow: 0 12px 24px -12px rgba(62, 41, 59, .8); transition: transform .25s var(--ease); }
.felt .heart { width: 15px; height: 14px; background: #f6c9cf; clip-path: path("M7.5 13.5 1.6 7.8A3.9 3.9 0 0 1 7.5 2.6a3.9 3.9 0 0 1 5.9 5.2z"); animation: beat 1.6s ease-in-out infinite; }
.felt canvas { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -170px 0 0 -120px; pointer-events: none; }
.felt.tap { transform: scale(.95); }
/* The maternity unit card floats beside the phone, as its own card in the app's Tools. */
.unit-float { position: absolute; left: -2%; bottom: 16%; z-index: 4; display: flex; gap: 10px; align-items: center; max-width: 220px; padding: 10px 14px 10px 10px; border-radius: 20px; background: #fffdf9; color: #473643; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); animation: float 6s ease-in-out -2s infinite; text-align: left; }
.unit-float .ring { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #63465d; display: grid; place-items: center; position: relative; }
.unit-float .ring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(99, 70, 93, .35); animation: ring 2.4s ease-out infinite; }
.unit-float svg { width: 20px; height: 20px; }
.unit-float b { display: block; font: 600 .95rem/1.1 var(--serif); color: #63465d; }
.unit-float em { display: block; font-style: normal; font-size: .66rem; line-height: 1.35; color: #7c7078; margin-top: 2px; }
@media (max-width: 52rem) { .unit-float { left: 50%; translate: -50% 0; bottom: -1.6rem; } }

/* Privacy grid */
.privacy { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.p-grid div { border-radius: 24px; padding: 1.3rem 1.3rem 1.4rem; background: var(--glass); border: 1px solid var(--glass-line); transition: transform .6s var(--ease), border-color .6s, opacity 1.1s ease; }
.p-grid div:hover { transform: translateY(-5px); border-color: rgba(227, 201, 148, .4); }
.p-grid svg { width: 34px; height: 34px; margin-bottom: .6rem; }
.p-grid b { display: block; font: 600 1.3rem/1.2 var(--serif); margin-bottom: .3rem; }
.p-grid p { color: var(--soft); font-size: .93rem; }

@media (max-width: 52rem) {
  .feature .wrap { grid-template-columns: 1fr; text-align: center; }
  .feature:nth-of-type(even) .wrap > .words { order: 0; }
  .words p { margin-inline: auto; }
  .words ul { justify-items: center; }
  .phone-wrap { margin-bottom: 2rem; }
  .p-grid { grid-template-columns: 1fr; }
}
.calm .phone, .calm .phone *, .calm .phone-wrap::before { animation: none !important; }
.calm .con-btn .waves { display: none; }

/* ---------- Hero orbit: features circle the mum on the moon ---------- */
.orbit { position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin: 2rem auto 0; }
.orbit .moon { position: absolute; left: 20%; top: 18%; width: 60%; animation: cradle 9s ease-in-out infinite; transform-origin: 50% 55%; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(227, 201, 148, .28); animation: spin 120s linear infinite; }
.orbit .ring.r2 { inset: 9%; border-style: dotted; border-color: rgba(240, 227, 230, .18); animation-duration: 160s; animation-direction: reverse; }
.orbit .sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; rotate: calc(var(--i) * 36deg); animation: spin 90s linear infinite; }
.orbit .sat a { position: absolute; left: 0; top: calc(-1 * min(268px, 44vw)); translate: -50% -50%; rotate: calc(var(--i) * -36deg); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  white-space: nowrap; font: 600 .82rem/1 var(--sans); color: var(--text); padding: .55rem .85rem; border-radius: 999px; background: rgba(46, 34, 50, .85); border: 1px solid rgba(227, 201, 148, .35);
  box-shadow: 0 0 18px rgba(227, 201, 148, .18); animation: spin 90s linear infinite reverse; transition: border-color .3s, box-shadow .3s; }
.orbit .sat a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(227, 201, 148, .8); }
.orbit .sat a:hover { border-color: var(--accent); box-shadow: 0 0 26px rgba(227, 201, 148, .45); }
.orbit:hover .sat, .orbit:hover .sat a, .orbit:focus-within .sat, .orbit:focus-within .sat a { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Moon-phase trail: fills from new moon to full moon as you scroll ---------- */
.phases { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 12px; }
.phases a { display: block; width: 22px; height: 22px; border-radius: 50%; position: relative; background: #3a2b3f; box-shadow: inset 0 0 0 1px rgba(227, 201, 148, .35); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.phases a::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e3c994; clip-path: inset(0 0 0 calc(100% - var(--lit, 0%))); transition: clip-path .8s var(--ease); }
.phases a.on { transform: scale(1.25); box-shadow: inset 0 0 0 1px #e3c994, 0 0 14px rgba(227, 201, 148, .6); }
.phases a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 52rem) { .phases { display: none; } .orbit .sat a { font-size: .68rem; padding: .38rem .55rem; top: -34vw; } .orbit .ring { inset: 8%; } .orbit .ring.r2 { inset: 16%; } }

/* Constellation line drawn between features as you scroll */
.thread-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, rgba(227, 201, 148, .35) 15%, rgba(227, 201, 148, .35) 85%, transparent); transform-origin: top; transform: scaleY(var(--drawn, 0)); z-index: 0; }
@media (max-width: 52rem) { .thread-line { display: none; } }
.calm .orbit .sat, .calm .orbit .sat a, .calm .orbit .ring, .calm .orbit .moon { animation: none !important; }

/* Meditate and pelvic floor demos */
.med-moon { position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #4a3a5c, #2a2036 72%); }
.med-moon img { width: 58%; height: auto; margin-top: 4%; }
.med-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(#e3c994 calc(var(--p, .25) * 360deg), rgba(227, 201, 148, .15) 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(closest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); transition: --p .6s; }
.med-title { font: italic 500 1.35rem/1.2 var(--serif); color: #e3c994; transition: opacity .6s; }
.med-words { font-size: .72rem; line-height: 1.45; color: #f0e3e6; min-height: 4.4em; transition: opacity .6s; }
.med-step { font-size: .62rem; color: #c9b6c2; }
.med.fade .med-title, .med.fade .med-words { opacity: 0; }
.pf-word { font: italic 500 1.5rem/1.2 var(--serif); color: #e3c994; min-height: 1.9rem; }
.pf-count { font-size: .7rem; color: #f0e3e6; }
.pf-sets { display: flex; align-items: center; gap: 6px; font-size: .62rem; color: #c9b6c2; }
.pf-sets i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #e3c994; }
.pf-sets i.on { background: #e3c994; }
.pf-sets span { margin-left: 4px; }
