/* Colors come from DESIGN.md: Day by default, Night when the device is in dark mode. */
:root {
  --primary: #A04E31;
  --on-primary: #FFFDF9;
  --link: #A04E31;
  --accent: #C56541;
  --background: #FBF3EC;
  --wash-start: #F2D3C5;
  --wash-mid: #F8E3D0;
  --surface: #FFFDF9;
  --surface-row: #F6ECE3;
  --outline: #E2C5AF;
  --on-surface: #3A2E2A;
  --on-surface-variant: #765E56;

  --arch-top: #F0D2C1;

  --diaper: #B76012;
  --nursing: #8A62CD;
  --bottle: #CB4486;
  --sleep: #347AC3;
  --pump: #348379;
  --supplement: #548339;

  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #B8863C;
    --on-primary: #2B1D0C;
    --link: #F4C078;
    --accent: #E9A94F;
    --background: #1B1930;
    --wash-start: #2C2648;
    --wash-mid: #221F3B;
    --surface: #262341;
    --surface-row: #241F3D;
    --outline: #47426A;
    --on-surface: #F1E9DD;
    --on-surface-variant: #A19BBD;
    --arch-top: #2C2648;
    --diaper: #CE6C14;
    --nursing: #9A77D4;
    --bottle: #D36098;
    --sleep: #498BCF;
    --pump: #3C978B;
    --supplement: #619642;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }

.wash { background: linear-gradient(160deg, var(--wash-start) 0%, var(--wash-mid) 35%, var(--background) 70%); overflow-x: clip; }
/* Long text pages: keep the gradient the same height as the home hero instead of stretching it. */
.wash:has(.page) { background-color: var(--background); background-size: 100% 800px; background-repeat: no-repeat; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 720px; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Header ─────────────────────────────────────────────── */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font: 500 15px/1 var(--sans); text-decoration: none; border-radius: 10px;
}
.nav a[aria-current="page"] { color: var(--on-surface); }
.nav .btn { margin-left: 8px; }
@media (max-width: 480px) { .nav a.hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 16px;
  background: var(--primary); color: var(--on-primary);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--outline); }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 7vw, 60px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 19px; }
p { margin: 14px 0 0; }
.eyebrow {
  margin: 0 0 14px; font: 600 13px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-surface-variant);
}
.lede { font-size: 19px; color: var(--on-surface-variant); max-width: 32em; }
.meta { font-size: 14px; color: var(--on-surface-variant); }

/* ── iPhone shell around real screenshots ───────────────── */
/* Titanium band (border), a thin black glass edge (padding), screen (img), side buttons (pseudo-elements). */
.phone {
  --band: linear-gradient(140deg, #F4F1EE 0%, #BDB7B2 20%, #8E8883 46%, #DCD7D2 70%, #9E9893 100%);
  --button: #A39D98;
  position: relative;
  padding: 1.1%;
  border: 3px solid transparent;
  border-radius: 15% / 7%;
  background: linear-gradient(#0A0A0C, #0A0A0C) padding-box, var(--band) border-box;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.3),
    0 44px 70px -28px rgba(58, 46, 42, 0.5),
    0 14px 28px -14px rgba(58, 46, 42, 0.3);
}
.phone picture { display: block; }
.phone img { width: 100%; height: auto; border-radius: 13.7% / 6.3%; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; }
.phone::before { right: -6px; top: 27%; height: 11%; border-radius: 0 2px 2px 0; background: var(--button); }
/* Action button, volume up, volume down */
.phone::after {
  left: -6px; top: 17%; height: 23.5%; border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom,
    var(--button) 0 17%, transparent 17% 30%,
    var(--button) 30% 60%, transparent 60% 68%,
    var(--button) 68% 100%);
}
/* Black titanium for the Night section */
.phone.dark {
  --band: linear-gradient(140deg, #6E6C72 0%, #3A393E 25%, #232226 50%, #55535A 75%, #2C2B30 100%);
  --button: #3E3D42;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { display: grid; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 72px; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .meta { margin-top: 16px; }

/* The phones lie on a tabletop of everyday baby mess (mess.svg), which spills past the stage. */
.stage {
  position: relative; width: min(100%, 440px); margin: 48px auto 24px;
  aspect-ratio: 440 / 540;
}
.stage::before {
  content: ""; position: absolute; inset: 4% -6% 0;
  background: radial-gradient(closest-side, var(--arch-top), transparent);
}
/* mess.svg's viewBox is the stage plus 80 units each side, 60 above and 60 below. */
.stage .mess { position: absolute; left: -18.18%; top: -11.11%; width: 136.36%; height: 122.22%; max-width: none; }
.stage .phone { position: absolute; }
.stage .phone.front { width: 50%; left: 10%; top: 3%; transform: rotate(-4deg); z-index: 1; }
.stage .phone.back { width: 43%; right: 6%; top: 14%; transform: rotate(5deg); }

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 40px; padding-bottom: 96px; }
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 640px; }
.section-head p { color: var(--on-surface-variant); font-size: 18px; }

/* Categories */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 999px;
  font: 500 15px/1 var(--sans);
}
.chip i { width: 28px; height: 28px; border-radius: 50%; flex: none; }

/* Feature splits */
.split { display: grid; gap: 40px; align-items: center; }
.split .shot { width: min(78%, 300px); margin: 0 auto; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.points li::before {
  content: ""; width: 12px; height: 12px; margin: 7px 0 0 8px; border-radius: 50%;
  background: var(--dot, var(--accent));
}
.points strong { display: block; }
.points span { color: var(--on-surface-variant); font-size: 16px; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip > :first-child { order: 2; }
}

/* The night band always uses Night colors: it shows what 3am looks like. */
.night {
  --on-surface: #F1E9DD; --on-surface-variant: #A19BBD; --link: #F4C078; --accent: #E9A94F;
  background: radial-gradient(120% 80% at 80% 0%, #2C2648 0%, #1B1930 60%);
  color: var(--on-surface);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .night { background: radial-gradient(120% 80% at 80% 0%, #2C2648 0%, #14122A 70%); border-block: 1px solid #47426A; }
}
.night .phone { box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 40px 90px -20px rgba(0, 0, 0, 0.7); }
.stars { position: relative; }
.stars::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #F1E9DD 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #F1E9DD 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 12%, #F4C078 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 40%, #F1E9DD 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 88%, #F1E9DD 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 82%, #F1E9DD 50%, transparent 51%);
}

/* Comparison */
.compare {
  width: 100%; margin-top: 32px; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; overflow: hidden;
  font-size: 16px;
}
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; }
.compare thead th { font: 600 13px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-surface-variant); background: var(--surface-row); }
.compare thead th:last-child { color: var(--link); }
.compare tbody th { font-weight: 600; width: 30%; }
.compare tbody td:nth-child(2) { color: var(--on-surface-variant); }
.compare tbody td:last-child { font-weight: 600; }
.compare tbody tr + tr > * { border-top: 1px solid var(--outline); }
@media (max-width: 600px) {
  .compare { font-size: 15px; }
  .compare th, .compare td { padding: 12px; }
  .compare tbody th { width: auto; }
}

/* Privacy promise */
.promise {
  display: grid; gap: 24px; align-items: center; padding: 40px 28px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--outline);
}
.promise ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promise li { padding: 8px 14px; border-radius: 999px; background: var(--surface-row); font: 500 15px/1.2 var(--sans); }
@media (min-width: 720px) { .promise { padding: 48px; } }

/* Closing call to action */
.cta { text-align: center; padding-bottom: 96px; }
.cta img { width: 96px; margin: 0 auto 20px; }
.cta p { color: var(--on-surface-variant); max-width: 30em; margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* ── Long-form pages (support, privacy) ─────────────────── */
.page { padding-top: 24px; padding-bottom: 64px; }
.page h1 { font-size: clamp(34px, 6vw, 44px); }
.page h2 { font-size: 22px; margin-top: 40px; }
.page ul { margin: 12px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.summary { margin-top: 24px; padding: 20px; background: var(--surface-row); border-radius: 16px; }
.summary p:first-child { margin-top: 0; }
.summary ul { margin-top: 8px; }
.page .btn { margin-top: 20px; }

details { margin-top: 10px; background: var(--surface-row); border-radius: 16px; padding: 0 18px; }
details[open] { padding-bottom: 16px; }
summary { cursor: pointer; min-height: 52px; padding: 12px 0; display: flex; align-items: center; font-weight: 600; font-size: 16px; line-height: 1.3; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--accent); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 4px; font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────── */
/* Footer: brand and links on top, a nursery drawn in one ink along the bottom (nursery.svg). */
.site-footer { padding-top: 8px; color: var(--on-surface-variant); }
.divider { display: flex; align-items: center; gap: 20px; margin-bottom: 48px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; }
.divider::before { background: linear-gradient(to right, transparent, var(--outline)); }
.divider::after { background: linear-gradient(to left, transparent, var(--outline)); }
.divider img { width: 96px; height: auto; opacity: 0.8; }
.footer-top { display: grid; gap: 32px; }
.footer-brand .brand img { height: 28px; }
.footer-brand p { margin-top: 14px; max-width: 26em; font-size: 16px; }
.footer-brand .footer-line { margin-top: 28px; color: var(--on-surface); font-family: var(--serif); font-size: 17px; }
.footer-cols { display: flex; gap: 48px; }
.footer-cols div { display: grid; gap: 4px; align-content: start; }
.footer-cols h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; color: var(--on-surface); }
.footer-cols a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; color: var(--on-surface-variant); text-decoration: none; }
.footer-cols a:hover { color: var(--link); text-decoration: underline; }
.site-footer picture { display: block; }
.nursery {
  display: block; width: 100%; margin-top: 24px;
  height: clamp(240px, 35vw, 560px); object-fit: cover; object-position: 50% 100%;
}
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr auto; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Founder note */
.founders { padding-top: 24px; padding-bottom: 24px; }
.founders blockquote { margin: 0; padding: 32px; background: var(--surface); border: 1px solid var(--outline); border-radius: 24px; }
.founders blockquote p { margin: 0; font-family: var(--serif); font-size: clamp(19px, 2.6vw, 23px); line-height: 1.5; }
.founders blockquote footer { margin-top: 18px; color: var(--on-surface-variant); font-size: 15px; }
.founders blockquote footer::before { content: "— "; }

/* Beta sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 28px auto 0; }
.signup input[type="email"] {
  flex: 1 1 240px; min-height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1.5px solid var(--outline); background: var(--surface); color: var(--on-surface); font: 400 17px/1 var(--sans);
}
.signup input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.signup .btn { flex: 0 0 auto; border: 0; cursor: pointer; }
.signup .btn:disabled { opacity: 0.6; cursor: default; }
.signup .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.signup-status { min-height: 1.5em; margin-top: 14px; font-weight: 600; color: var(--on-surface); }
.cta .meta { margin-top: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
