/* ==========================================================================
 * Nova Baby · homepage
 * --------------------------------------------------------------------------
 * The app's dark "3am" identity (css/tokens.css, a port of Theme.swift),
 * turned into a night-sky instrument: hairline rings, ticks, one soft
 * moonlight glow behind the 3D, the ivory device as the only warm object.
 * Colour comes from tokens.css; this file adds layout, type and a few
 * page-only values. The 3D sections own css/orrery.css and css/rhythm.css.
 * Every animation is guarded by prefers-reduced-motion.
 * ========================================================================== */

:root {
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 13vw, 176px);

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;

  /* The app's tertiary text (#565D70) is 3:1 on the night background; small
   * print here carries real terms, so it gets a lighter step that passes AA
   * (5:1 on the background, 4.7:1 on cards). */
  --muted: #7A8196;

  /* The device's warm ivory and its red LED: the only warm colours on the page. */
  --ivory: #ECE5D8;
  --ivory-ink: #16130F;
  --led: #FF4A36;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quint: cubic-bezier(0.23, 1, 0.32, 1);

  /* Footer swatches: the five accent bases from tokens.css, shown together. */
  --sw-indigo: #8B8CF0;
  --sw-moonlight: #7FAEE8;
  --sw-rose: #E88BA8;
  --sw-gold: #E3B863;
  --sw-mint: #7ED0B4;

  --z-nav: 50;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
  background: var(--background);
}
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; }
img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text-1); }

.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Honeypot: off screen, never display:none (bots skip hidden fields). */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--elevated); color: var(--text-1);
  border: 1px solid var(--hairline); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ------------------------------------------------------------------ */
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 680;
  text-wrap: balance;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 660;
  text-wrap: balance;
}
/* The payoff of a headline: the app's serif (New York on Apple devices) in
 * italic, lit like the ring. Used once per headline, never for body copy. */
.h2 em, .h3 em, .hero__title em, .final__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--accent-bright);
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34em;
}

/* ---- Buttons + badges ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 650; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-bright); }
.btn--light { background: var(--ivory); color: var(--ivory-ink); }
.btn--light:hover { background: #F6F1E8; }
.btn--ghost {
  border-color: color-mix(in srgb, var(--text-1) 22%, transparent);
  color: var(--text-1);
}
.btn--ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn[disabled],
.btn[aria-disabled="true"] { background: var(--card); color: var(--text-2); border-color: var(--hairline); cursor: default; transform: none; }

/* Apple's badge artwork, unmodified; 50 px tall (Apple's minimum is 40). */
.store-badge {
  display: inline-block; flex: none;
  border-radius: 10px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}
.store-badge img { width: 150px; height: 50px; }
.store-badge:hover { transform: translateY(-1px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.cta-row--center { justify-content: center; }

/* ==========================================================================
 * Nav
 * ======================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
/* Over the hero the nav is part of the sky; once the page moves it gets a
 * solid night background (home.js sets data-scrolled). Solid, not glass. */
.site-nav[data-scrolled] {
  background: color-mix(in srgb, var(--background) 94%, transparent);
  border-bottom-color: var(--hairline);
}
.site-nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; padding-block: 8px;
}
.brand__mark { border-radius: 8px; }
.brand__word { font-family: var(--display); font-size: 17px; font-weight: 680; letter-spacing: -0.015em; }
.site-nav__links { display: none; gap: 30px; }
.site-nav__links a {
  font-size: 14.5px; font-weight: 550; color: var(--text-2); text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.site-nav__links a:hover { color: var(--text-1); }
@media (min-width: 900px) {
  .site-nav__links { display: flex; }
}

/* ==========================================================================
 * 1 · Hero
 * ======================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: -69px; /* the nav floats over the sky */
  padding-top: calc(69px + clamp(20px, 4vw, 48px));
  /* Short: the "why" section below opens on a pinned stage whose top half is
   * sky, so the hero needs little room of its own at the bottom. */
  padding-bottom: clamp(16px, 2.4vw, 32px);
}
/* Moonlight: one soft source behind the instrument, the way a night-light
 * pools on a wall. It is the light of the ring, so it sits where the ring is. */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 52% at 72% 46%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 70%);
}
@media (max-width: 939px) {
  .hero__glow {
    background:
      radial-gradient(70% 34% at 50% 72%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
      radial-gradient(90% 40% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 70%);
  }
}
/* The hero's items are all children of one grid, in reading order: eyebrow,
 * headline, the instrument, then the sub and the calls to action. Narrow
 * screens read them top to bottom; wide screens put the instrument in the
 * right column across every row, with the copy centred against it. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.hero__grid > :not(.orrery) { max-width: 600px; }
.hero__grid > .eyebrow-pill { justify-self: start; }
@media (min-width: 940px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: 1fr repeat(6, auto) 1fr;
    column-gap: clamp(36px, 6vw, 56px);
    min-height: min(680px, calc(100svh - 160px));
  }
  .hero__grid > :not(.orrery) { grid-column: 1; }
  .hero__grid > .eyebrow-pill { grid-row: 2; }
  .hero__title { grid-row: 3; }
  .hero__sub { grid-row: 4; }
  .hero .cta-row { grid-row: 5; }
  .hero__fine { grid-row: 6; }
  .hero .android { grid-row: 7; }
  .hero .orrery { grid-column: 2; grid-row: 1 / -1; align-self: center; }
}
/* Narrow screens: the instrument goes straight under the headline, so the
 * first screen holds the promise and the thing that proves it. (On iPhone
 * Safari the Smart App Banner already offers the download at the top.) */
@media (max-width: 939px) {
  .hero__title { margin-bottom: 4px; }
  /* The top of the stage is open sky; tuck it under the headline. */
  .hero .orrery { margin: calc(min(100vw, 600px) * -0.1) 0 28px; }
}

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-bright) 26%, transparent);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text-1);
}
.eyebrow-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--feed);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--feed) 18%, transparent);
}
.hero__title {
  margin: 22px 0 22px;
  font-family: var(--display);
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 1.0;
  letter-spacing: -0.042em;
  font-weight: 690;
  text-wrap: balance;
}
.hero__title em { display: inline; letter-spacing: -0.02em; }
.hero__sub {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 31em;
  margin-bottom: 30px;
}
.hero__fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 939px) {
  /* Here the sub sits over the moonlight glow: one step lighter keeps it
   * above 5:1 at every accent. */
  .hero__sub { color: color-mix(in srgb, var(--text-1) 25%, var(--text-2)); }
}

/* Android: a quiet disclosure under the main call to action. */
.android { margin-top: 10px; }
.android__toggle {
  display: block;
  list-style: none; cursor: pointer;
  font-size: 13.5px; color: var(--text-2);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--text-2) 40%, transparent);
  text-underline-offset: 4px;
}
.android__toggle::-webkit-details-marker { display: none; }
.android__toggle::after {
  content: ""; display: inline-block;
  width: 7px; height: 7px; margin-left: 10px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.android[open] .android__toggle::after { transform: translateY(1px) rotate(225deg); }
.android__toggle:hover { color: var(--text-1); }
.android[open] .android__toggle { color: var(--text-1); }
.android .wl { margin-top: 14px; }
.android__fine { margin-top: 10px; font-size: 13px; color: var(--muted); }
.android__fine a { color: var(--text-2); text-underline-offset: 3px; }

/* Email form (Android list). */
.wl { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.wl__label { flex-basis: 100%; margin-bottom: -4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.wl__input {
  flex: 1 1 220px; min-width: 0; min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  /* 3:1 against the page and the field's own fill (WCAG 1.4.11). */
  border: 1px solid #5F6678;
  background: var(--card);
  color: var(--text-1);
  font: inherit; font-size: 15px;
}
.wl__input[aria-invalid="true"] { border-color: var(--alert); }
.wl__input::placeholder { color: var(--muted); }
.wl__input:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 1px; }
.wl__submit { flex: none; }
.wl__status { flex-basis: 100%; min-height: 1.4em; font-size: 13.5px; color: var(--text-2); }
/* Empty, it takes no room but stays in the accessibility tree, so screen
 * readers already know the live region when the first message arrives. */
.wl__status:empty { height: 0; margin-top: -10px; overflow: hidden; }
.wl__status:focus { outline: none; }
.wl__status--ok { color: var(--feed); }
.wl__status--err { color: var(--alert); }
.wl__status a { color: inherit; text-underline-offset: 3px; }

/* ==========================================================================
 * Shared section scaffolding
 * ======================================================================== */
.section { position: relative; padding-block: var(--section); }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* A ruled instrument scale between sections: ticks every 1/24th, longer at
 * the quarters, like the ring's hours laid flat. */
.section + .section::before,
.rhythm + .section::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  height: 9px;
  transform: translateX(-50%);
  background:
    linear-gradient(var(--hairline), var(--hairline)) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text-1) 14%, transparent) 0 1px, transparent 1px calc(100% / 24)) bottom / 100% 5px no-repeat;
}

/* ==========================================================================
 * 3 · What we record: one instrument panel, three different readouts
 * ======================================================================== */
.record__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--hairline);
  counter-reset: none;
}
@media (min-width: 900px) {
  .record__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rcard {
  position: relative;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) {
  .rcard { padding: 36px clamp(20px, 3vw, 40px) 40px; border-bottom: 0; }
  .rcard:first-child { padding-left: 0; }
  .rcard + .rcard { border-left: 1px solid var(--hairline); }
}
.rcard__k {
  font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.rcard__title {
  font-family: var(--display);
  font-size: clamp(23px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650;
  margin-bottom: 14px;
  text-wrap: balance;
}
.rcard__body { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 30em; }

/* Small glyph above each readout, drawn in CSS so it inherits the accent. */
.rcard::after {
  content: "";
  position: absolute; top: 34px; right: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  opacity: 0.9;
}
@media (min-width: 900px) { .rcard::after { right: clamp(20px, 3vw, 40px); } }
.rcard--sleep::after {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background: conic-gradient(from 200deg, var(--accent) 0 34%, transparent 34% 100%);
  -webkit-mask: radial-gradient(circle, transparent 17px, #000 18px);
          mask: radial-gradient(circle, transparent 17px, #000 18px);
}
.rcard--day::after {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    radial-gradient(circle at 50% 8%, var(--feed) 0 3px, transparent 3.5px),
    radial-gradient(circle at 88% 58%, var(--diaper) 0 3px, transparent 3.5px),
    radial-gradient(circle at 18% 70%, var(--growth) 0 3px, transparent 3.5px);
}
.rcard--room::after { display: none; }

.readouts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
.readout { padding: 14px 14px 12px; }
.readout + .readout { border-left: 1px solid var(--hairline); }
.readout dt { font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin-top: 6px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.readout dd span { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }

.readouts__note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.rcard__body a { color: var(--text-1); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text-1) 35%, transparent); }

/* What we never record: three short refusals on one ruled line. */
.never {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 32px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 900px) { .never { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.never li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.never li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--alert) 70%, transparent);
  background: linear-gradient(135deg, transparent 45%, color-mix(in srgb, var(--alert) 70%, transparent) 45% 55%, transparent 55%);
}
.never strong { color: var(--text-1); font-weight: 650; }

/* ==========================================================================
 * 4 · Nova Room
 * ======================================================================== */
.room__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
@media (min-width: 980px) {
  .room__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  /* The copy column is the taller one: the device stays in view beside it. */
  .room__visual { position: sticky; top: max(88px, calc(50vh - min(320px, 25vw))); align-self: start; }
}
.room__visual { position: relative; isolation: isolate; aspect-ratio: 1; max-width: 640px; width: 100%; margin-inline: auto; }
.room__visual::before {
  content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--led) 10%, transparent), color-mix(in srgb, var(--accent) 10%, transparent) 55%, transparent 100%);
}
.room__visual img { width: 100%; height: 100%; object-fit: contain; }
.room__chips { position: absolute; inset: 0; pointer-events: none; }
.chip-pin {
  position: absolute;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-1);
  white-space: nowrap;
}
.chip-pin::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  border-radius: 50%; background: var(--accent-bright); vertical-align: 1px;
}
.chip-pin--grille { top: 14%; left: 2%; }
.chip-pin--light { top: 27%; right: 2%; }
.chip-pin--keys { bottom: 16%; left: 6%; }
.chip-pin--keys::before { background: var(--led); }

.room__copy .eyebrow { margin-bottom: 18px; }
.room__copy .h2 { margin-bottom: 22px; }
.room__copy .lede { margin-bottom: 28px; }

.ticks { display: grid; gap: 12px; margin-bottom: 34px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: 16.5px; line-height: 1.5; color: var(--text-1);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 16px; height: 9px;
  border-left: 1.8px solid var(--accent-bright); border-bottom: 1.8px solid var(--accent-bright);
  transform: rotate(-45deg);
}

.offer-card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--accent-bright) 22%, var(--hairline));
  border-radius: var(--r-sheet);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.offer-card__price {
  font-family: var(--display); font-size: clamp(44px, 5vw, 56px); font-weight: 680; letter-spacing: -0.04em; line-height: 1;
}
.offer-card__once { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.5em; letter-spacing: 0; color: var(--text-2); }
.offer-card__terms { display: grid; gap: 6px; margin: 16px 0 24px; font-size: 15px; color: var(--text-2); }
.offer-card__terms li { position: relative; padding-left: 18px; }
.offer-card__terms li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright);
}
.offer-card__fine { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
 * 5 · The app: features scroll past a phone that holds still
 * ======================================================================== */
.app__grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
@media (min-width: 980px) {
  .app__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(48px, 7vw, 120px); }
}
.features { display: grid; gap: 0; }
.feature {
  padding: 30px 0 34px;
  border-top: 1px solid var(--hairline);
}
.feature__title, .feature__k { transition: opacity 0.4s var(--ease-out), color 0.4s var(--ease-out); }
@media (min-width: 980px) {
  .feature { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
  /* Only the titles step back (still 5:1); the text stays fully readable. */
  .features.is-live .feature:not(.is-active) .feature__title { opacity: 0.55; }
  .features.is-live .feature:not(.is-active) .feature__k { color: var(--text-2); }
}
.feature__k {
  font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright);
  margin-bottom: 14px;
}
.feature__title {
  font-family: var(--display); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 660;
  margin-bottom: 14px; text-wrap: balance;
}
.feature__body { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 30em; }

/* On small screens each feature shows its own screen (home.js adds it); the
 * dock with the stacked phone only appears on wide screens. */
.feature__shot { margin-top: 22px; width: min(74vw, 300px); }
.phone-dock { display: none; }
@media (min-width: 980px) {
  .phone-dock {
    display: block;
    position: sticky; top: calc(50vh - min(330px, 40vh));
    align-self: start;
    height: min(660px, 80vh);
  }
  .feature__shot { display: none; }
}
.phone {
  position: relative;
  height: 100%;
  aspect-ratio: 1206 / 2622;
  margin-inline: auto;
  border-radius: 13% / 6%;
  padding: 3.2%;
  background: #05060A;
  border: 1px solid color-mix(in srgb, var(--text-1) 14%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 40px 120px -30px color-mix(in srgb, var(--accent) 34%, transparent);
}
.phone__shot {
  position: absolute; inset: 3.2%;
  width: 93.6%; height: 93.6%;
  object-fit: cover;
  border-radius: 10.5% / 4.8%;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.phone__shot.is-on { opacity: 1; }
/* The next-window card, drawn over the Today screen like the app's own card,
 * while the first feature is being read. */
.window-card {
  position: absolute; left: 7%; right: 7%; bottom: 10%;
  padding: 7% 7% 6%;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent-bright) 30%, transparent);
  background: color-mix(in srgb, var(--elevated) 94%, transparent);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.phone.show-window .window-card { opacity: 1; transform: none; }
.window-card__k { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.window-card__led { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); }
.window-card__time { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -0.02em; }
.window-card__meta { font-size: 12px; color: var(--text-2); }
.window-card__eta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent-bright); }
.window-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 22%, transparent); }
.feature__shot .window-card { display: none; }
.feature__shot .phone { height: auto; width: 100%; }
.feature__shot .phone__shot { position: static; width: 100%; height: auto; opacity: 1; }

.app__more {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 40px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 15.5px; color: var(--text-2);
}
@media (min-width: 900px) { .app__more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app__more strong { display: block; margin-bottom: 4px; color: var(--text-1); font-weight: 650; }

/* ==========================================================================
 * 6 · Everything you get
 * ======================================================================== */
.stack__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  max-width: 1040px; margin-inline: auto;
}
@media (min-width: 860px) { .stack__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.scard {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sheet);
  background: var(--card);
}
.scard--room {
  border-color: color-mix(in srgb, var(--accent-bright) 28%, var(--hairline));
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    var(--card);
}
.scard__k { font-size: 12px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.scard__price {
  margin: 12px 0 24px;
  font-family: var(--display); font-size: clamp(44px, 5vw, 60px); font-weight: 680; letter-spacing: -0.04em; line-height: 1;
}
.scard__once { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.45em; letter-spacing: 0; color: var(--text-2); }
.scard__list { display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.scard__list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
.scard__list li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em;
  width: 13px; height: 7px;
  border-left: 1.7px solid var(--accent-bright); border-bottom: 1.7px solid var(--accent-bright);
  transform: rotate(-45deg);
}
.scard__fine { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
 * 7 · FAQ
 * ======================================================================== */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 64px; }
@media (min-width: 980px) {
  .faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .faq .sec-head { position: sticky; top: 120px; align-self: start; }
}
.faq__list { border-top: 1px solid var(--hairline); }
.faq__list details { border-bottom: 1px solid var(--hairline); }
.faq__list summary {
  position: relative;
  list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--display); font-size: clamp(18px, 1.8vw, 21px); font-weight: 620; letter-spacing: -0.015em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.faq__list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; border-color: var(--accent-bright); }
.faq__list summary:hover { color: var(--accent-bright); }
.faq__list details p { padding: 0 0 26px; max-width: 62ch; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.faq__list details a, .app__more a { color: var(--accent-bright); text-underline-offset: 3px; }

/* ==========================================================================
 * 8 · Final call
 * ======================================================================== */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(120px, 16vw, 220px);
  text-align: center;
}
/* The ring, once more, as a quiet hairline dial: 24 hour ticks on a thin
 * circle, masked to a narrow band, over the same moonlight glow as the hero. */
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -2;
  width: min(900px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 80%);
  pointer-events: none;
}
.final__ring {
  position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(980px, 128vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent calc(100% - 13px), color-mix(in srgb, var(--accent) 50%, transparent) calc(100% - 12px) calc(100% - 11px), transparent calc(100% - 10px)),
    repeating-conic-gradient(from -0.4deg, color-mix(in srgb, var(--accent) 42%, transparent) 0 0.8deg, transparent 0.8deg 15deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
          mask: radial-gradient(closest-side, transparent calc(100% - 26px), #000 calc(100% - 25px));
  pointer-events: none;
}
.final__inner { display: grid; justify-items: center; gap: 28px; }
.final__kicker {
  font-size: 13px; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright);
}
.final__sub { max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); }
.final__title {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 690;
  text-wrap: balance;
}

/* ==========================================================================
 * Footer
 * ======================================================================== */
.site-footer { border-top: 1px solid var(--hairline); padding-block: 56px 48px; }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
.site-footer__motto { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--text-1); }
.site-footer__maker { margin-top: 10px; max-width: 34em; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.site-footer__links a:hover { color: var(--text-1); }
.site-footer__fine { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.site-footer__fine p { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 90ch; }

.dots { grid-column: 1 / -1; display: flex; gap: 22px; }
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.dot:hover { transform: scale(1.12); }
.dot[aria-pressed="true"] { border-color: var(--text-1); }
.dot--indigo { background-color: var(--sw-indigo); }
.dot--moonlight { background-color: var(--sw-moonlight); }
.dot--rose { background-color: var(--sw-rose); }
.dot--gold { background-color: var(--sw-gold); }
.dot--mint { background-color: var(--sw-mint); }
/* 44 px touch target without growing the swatch. */
.dot { position: relative; }
.dot::after { content: ""; position: absolute; inset: -11px; }

/* ==========================================================================
 * Motion: one orchestrated arrival, then quiet reveals as sections arrive.
 * Pure CSS, so nothing depends on a script to become visible: the reveals
 * use scroll-driven animations where the browser has them and are simply
 * absent where it doesn't.
 * ======================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero__grid > :not(.orrery) { animation: rise 1s var(--ease-quint) both; }
  .hero__grid > .hero__title { animation-delay: 0.07s; }
  .hero__grid > .hero__sub { animation-delay: 0.14s; }
  .hero__grid > .cta-row { animation-delay: 0.21s; }
  .hero__grid > .hero__fine, .hero__grid > .android { animation-delay: 0.28s; }

  @supports (animation-timeline: view()) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      /* Done by the time the element is 60 % in: an element near the end of
       * the page can always get there, so nothing stays half-faded. */
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}

/* Parent field guide entry point: also visible when mobile navigation is compact. */
.parent-library-promo{border-top:1px solid var(--hairline);padding-block:72px;background:#101319}
.parent-library-promo__inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.parent-library-promo p:not(.eyebrow){color:#b5bdcc;font-size:17px;line-height:1.7;margin-bottom:25px;max-width:500px}
@media(max-width:700px){.parent-library-promo{padding-block:48px}.parent-library-promo__inner{grid-template-columns:1fr;gap:25px}}

.hero__parents{display:inline-flex;align-items:center;gap:9px;min-height:44px;margin-top:8px;font-size:14px;color:#c7c9ed;text-underline-offset:4px}
