/* Lullie — lullie.app (the home page; the Linen style)
   Linen style: linen and paper neutrals, hairlines, muted kind colors, Clay for the one action.
   Flat: no offset shadows. Newsreader (a free serif close to New York) for the big headline and the
   wordmark only; the system sans (SF Pro on Apple devices) for everything else.
   Dark mode follows Linen's night palette: warm near-black with amber. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Linen day (Lullie/DesignSystem/Tokens/LullieStyle.swift, enum Linen) */
  --ground: #FAF7F2;
  --surface: #FFFDF9;
  --linen: #F3EEE7;
  --linen-pressed: #E9E2D7;
  --line: #E8E1D6;
  --line-soft: #EFE9E0;
  --ink: #1E1B18;
  --ink-pressed: #37312B;
  --text-2: #5C544C;
  --text-3: #6F665D;
  --clay: #A24E36;
  --clay-pressed: #86402C;
  --on-clay: #FAF7F2;

  /* Kinds: mark, tint, ink */
  --sleep-mark: #8B83B5;  --sleep-tint: #ECE9F3;  --sleep-ink: #4C4579;
  --feed-mark: #C27B48;   --feed-tint: #F8EADC;   --feed-ink: #87502A;
  --diaper-mark: #8FA685; --diaper-tint: #E7EDE2; --diaper-ink: #4A5D43;
  --awake-mark: #E2AE3D;  --awake-tint: #F7E8BC;  --awake-ink: #8A5A06;

  /* Members */
  --sky-tint: #DCE4EA;   --sky-ink: #3F5463;
  --coral-tint: #F1DDD6; --coral-ink: #7E4A3C;
  --lilac-tint: #E4DEEE; --lilac-ink: #574A78;

  /* Mochi */
  --m-bg: #F3E3D3;       /* apricot, the baby's tint */
  --m-face: #FFFAF4;
  --m-line: var(--ink);
  --m-cheek: #F5D4CA;
  --m-mouth: #E9A497;
  --m-bubble: #FFFFFF;

  /* Linen night (enum Linen.Night) */
  --n-ground: #0E0B0A;
  --n-surface: #171210;
  --n-raised: #221A15;
  --n-pressed: #2C221B;
  --n-line: #2B221C;
  --n-line-strong: #3A2D24;
  --n-amber: #E6A271;
  --n-amber-pressed: #F0B88E;
  --n-text: #EDE2D6;
  --n-text-2: #B4845F;
  --n-text-3: #A57B5C;

  --f-serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --content: 1120px;
  --section: clamp(112px, 13vw, 200px);
  --hair: 1px;
  --radius-card: 24px;
  --shadow-soft: 0 1px 0 rgba(30, 27, 24, 0.02), 0 24px 48px -28px rgba(60, 40, 20, 0.18);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: var(--n-ground);
    --surface: var(--n-surface);
    --linen: var(--n-raised);
    --linen-pressed: var(--n-pressed);
    --line: var(--n-line);
    --line-soft: var(--n-line);
    --ink: var(--n-text);
    --ink-pressed: #FFFFFF;
    --text-2: var(--n-text-2);
    --text-3: var(--n-text-3);
    --clay: var(--n-amber);
    --clay-pressed: var(--n-amber-pressed);
    --on-clay: var(--n-ground);

    --sleep-tint: #231D2A;  --sleep-ink: #C9C3E8;
    --feed-tint: #2A1D14;   --feed-ink: #F0C9A6;
    --diaper-tint: #1D2119; --diaper-ink: #C9D6C0;
    --awake-tint: #2A2112;  --awake-ink: #F3D58E;
    --sleep-mark: #8B83B5;  --feed-mark: #C27B48; --diaper-mark: #8FA685;

    --sky-tint: #1E2226;   --sky-ink: #B9C7D2;
    --coral-tint: #2A1D19; --coral-ink: #E9BFAF;
    --lilac-tint: #221E2A; --lilac-ink: #CFC4E6;

    --m-bg: #241B16;
    --m-face: #1F1814;
    --m-line: var(--n-amber);
    --m-cheek: transparent;
    --m-mouth: none;
    --m-bubble: none;

    --shadow-soft: 0 0 0 transparent;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

img, svg { display: block; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--clay); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-pressed); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: var(--feed-tint); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: 16px; color: var(--ground); }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { --content: 1240px; }

/* ---------- Icons ---------- */

.i { width: 22px; height: 22px; flex: none; }
.i--sm { width: 17px; height: 17px; }

/* ---------- Mochi (Linen: thin-line face on a tint circle) ---------- */

.mochi { --m-w: 1.4px; width: 56px; height: 56px; flex: none; overflow: visible; }
.m-bg { fill: var(--m-bg); }
.m-face { fill: var(--m-face); }
.m-face,
.m-line,
.m-mouth,
.m-bubble {
  stroke: var(--m-line);
  stroke-width: var(--m-w);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.m-line { fill: none; }
.m-cheek { fill: var(--m-cheek); }
.m-mouth { fill: var(--m-mouth); }
.m-bubble { fill: var(--m-bubble); }

/* ---------- Buttons (flat) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--clay);
  color: var(--on-clay);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--clay-pressed); color: var(--on-clay); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }

.btn--quiet {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 var(--hair) var(--line);
}
.btn--quiet:hover { background: var(--linen); color: var(--ink); }

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.brand:hover { color: var(--ink); }
.brand__mochi { width: 36px; height: 36px; --m-w: 1.2px; }
.brand__name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.015em;
  padding-bottom: 3px;
}

/* ---------- Phone frame: a slim, flat device ---------- */

.phone {
  --w: 340px;
  --bezel: calc(var(--w) * 0.028);
  position: relative;
  width: var(--w);
  padding: var(--bezel);
  border-radius: calc(var(--w) * 0.165);
  background: #1E1B18;
  box-shadow: var(--shadow-soft);
  flex: none;
}
.phone img,
.phone picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 848;
  border-radius: calc(var(--w) * 0.14);
  background: #FAF7F2;
  overflow: hidden;
}
.phone--night { background: var(--n-raised); box-shadow: inset 0 0 0 1px var(--n-line-strong); }
.phone--night img, .phone--night picture { background: var(--n-ground); }

@media (prefers-color-scheme: dark) {
  .phone { background: #2A221D; box-shadow: inset 0 0 0 1px var(--n-line-strong); }
}

/* ---------- Small pieces ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot--sleep { background: var(--sleep-mark); }
.dot--feed { background: var(--feed-mark); }
.dot--diaper { background: var(--diaper-mark); }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  flex: none;
}
.avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.avatar--xs { width: 24px; height: 24px; font-size: 11px; }
.avatar--sky { background: var(--sky-tint); color: var(--sky-ink); }
.avatar--coral { background: var(--coral-tint); color: var(--coral-ink); }
.avatar--lilac { background: var(--lilac-tint); color: var(--lilac-ink); }
.avatar--invite { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 var(--hair) var(--line); }
.avatar--invite .i { width: 16px; height: 16px; }

/* Sentence-case label (Linen has no caps): a mark dot, then the word. */
.label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-2);
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.label--awake::before { background: var(--awake-mark); }
.label--feed::before { background: var(--feed-mark); }
.label--diaper::before { background: var(--diaper-mark); }
.label--sleep::before { background: var(--sleep-mark); }

/* ---------- Section heads ---------- */

.section { padding-top: var(--section); }
.hero + .section { padding-top: clamp(64px, 8vw, 120px); }

.eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--clay);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.lead {
  margin-top: 20px;
  max-width: 28em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--text-2);
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(24px, 5vw, 72px); overflow-x: clip; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 48px;
}

.tagline {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 9.5em;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: clamp(32px, 4vw, 48px);
}
.hero__note { font-size: 15px; color: var(--text-3); }

.hero__sub {
  margin-top: clamp(20px, 2.4vw, 28px);
  max-width: 25em;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text-2);
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 34em;
}
.hero__pills li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 var(--hair) var(--line);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 24px;
}
.hero__disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 120%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--linen);
}
.hero__stage .phone { --w: 340px; }
.hero__mochi {
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 84px;
  --m-w: 1.6px;
  left: calc(50% - 240px);
  top: 14%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ground);
}
.hero__pill { position: absolute; z-index: 2; }
.hero__pill--a { right: calc(50% - 250px); top: 3%; }
.hero__pill--b { left: calc(50% - 250px); bottom: 20%; }

/* ---------- Screen run ---------- */

.run {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.run__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.run__item .phone { --w: 100%; width: 100%; padding: 6px; border-radius: 36px; box-shadow: none; }
.run__item .phone img,
.run__item .phone picture { border-radius: 30px; }

.run__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  text-align: center;
}
.run__cap p {
  text-wrap: balance;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 12em;
}

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.facts { margin-top: 40px; border-top: var(--hair) solid var(--line); max-width: 30em; }
.fact {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: var(--hair) solid var(--line);
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--text-2);
}
.fact__icon .i { width: 20px; height: 20px; }
.fact h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; padding-top: 1px; }
.fact p { margin-top: 2px; font-size: 16px; line-height: 1.45; color: var(--text-2); }

/* ---------- Full featured ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}
.feature {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: var(--hair) solid var(--line);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.feature__icon .i { width: 18px; height: 18px; }
.feature__label { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.feature__detail { display: block; font-size: 14px; line-height: 1.35; color: var(--text-2); }

/* ---------- Crew illustration ---------- */

.crew-art { position: relative; justify-self: end; width: 100%; max-width: 460px; }

.log-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-soft);
  padding: 24px 24px 8px;
}
.log-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.log-card__head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.log-card__date { display: block; margin-top: 2px; margin-bottom: 10px; font-size: 14px; color: var(--text-3); }
.avatars { display: flex; }
.avatars .avatar { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -6px; }
.avatars .avatar--invite { margin-left: 6px; box-shadow: inset 0 0 0 var(--hair) var(--line); }

.log-row {
  display: grid;
  grid-template-columns: 64px 36px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: var(--hair) solid var(--line-soft);
}
.log-row__time { font-size: 14px; color: var(--text-3); white-space: nowrap; }
.log-row__kind {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.log-row__kind .i { width: 18px; height: 18px; }
.kind--feed { background: var(--feed-tint); color: var(--feed-ink); }
.kind--diaper { background: var(--diaper-tint); color: var(--diaper-ink); }
.kind--sleep { background: var(--sleep-tint); color: var(--sleep-ink); }
.kind--awake { background: var(--awake-tint); color: var(--awake-ink); }
.kind--health { background: var(--coral-tint); color: var(--coral-ink); }
.log-row__title { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; }
.log-row__sub { display: block; font-size: 14px; color: var(--text-3); line-height: 1.35; }

.crew-art__pill { position: absolute; left: -22px; bottom: -18px; }

/* ---------- Night (always night, even in day mode) ---------- */

.night__band {
  --ink: var(--n-text);
  --text-2: var(--n-text-2);
  --text-3: var(--n-text-3);
  --clay: var(--n-amber);
  background: var(--n-ground);
  color: var(--n-text);
  padding-block: clamp(80px, 10vw, 140px);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .night__band {
    background: var(--n-surface);
    border-block: var(--hair) solid var(--n-line);
  }
}
.night .eyebrow { color: var(--n-amber); }
.night .h2 { color: var(--n-amber); }
.night__band a:hover { color: var(--n-amber-pressed); }
.night__stage { position: relative; display: grid; place-items: center; }
.night__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 130%);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(230, 162, 113, 0.14), rgba(230, 162, 113, 0.04) 60%, transparent);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px 0 13px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 var(--hair) var(--n-line-strong);
  background: var(--n-surface);
  color: var(--n-amber);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- AI ---------- */

.promise {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-2);
}
.promise .i { color: var(--diaper-ink); }

.ai__stage { position: relative; height: 700px; }
.ai__stage .phone { --w: 264px; position: absolute; }
.ai__stage .phone--back { right: 0; top: 0; }
.ai__stage .phone--front { left: 0; top: 96px; box-shadow: 0 0 0 8px var(--ground), var(--shadow-soft); }

/* ---------- Privacy ---------- */

.privacy-card {
  position: relative;
  background: var(--linen);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 96px);
  text-align: center;
}
.privacy-card__mochi { width: 72px; height: 72px; margin: 0 auto 28px; --m-bg: var(--sleep-tint); --m-w: 1.6px; }
@media (prefers-color-scheme: dark) { .privacy-card__mochi { --m-bg: #241B16; } }
.privacy-card .lead { margin-inline: auto; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
  border-top: var(--hair) solid var(--line);
}
.pillar { padding: 28px 28px 0; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar + .pillar { border-left: var(--hair) solid var(--line); }
.pillar h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.pillar p { margin-top: 4px; font-size: 16px; color: var(--text-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(36px, 4vw, 52px);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Final call ---------- */

.final { text-align: center; padding-bottom: var(--section); }
.final__mochi { width: 88px; height: 88px; margin: 0 auto 32px; --m-w: 1.6px; }
.final .lead { margin-inline: auto; margin-bottom: 36px; }

/* ---------- Footer ---------- */

.site-footer { padding-bottom: 48px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 32px;
  border-top: var(--hair) solid var(--line);
}
.footer-inner nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-footer nav a {
  display: inline-block;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  padding: 10px 0;
}
.site-footer nav a:hover { color: var(--ink); }
.site-footer small { display: block; width: 100%; color: var(--text-3); font-size: 13px; }
.footer-alt a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line); }
.footer-alt a:hover { color: var(--text-2); }
.site-footer .brand__name { font-size: 24px; }
.site-footer .brand__mochi { width: 32px; height: 32px; }

/* Footer bottom row: copyright left, the Calm / Bold look picker right (a drop-up <details> menu,
   no JavaScript; the links set a cookie and src/index.js (the Worker) serves the matching page). */
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.footer-bottom small { width: auto; }
.look-picker { position: relative; }
.look-picker summary {
  display: inline-flex; align-items: center; gap: 6px;
  list-style: none; cursor: pointer; user-select: none;
}
.look-picker summary::-webkit-details-marker { display: none; }
.look-picker__chev { width: 12px; height: 12px; transform: rotate(180deg); transition: transform .15s ease; }
.look-picker[open] .look-picker__chev { transform: none; }
.look-picker ul {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 10;
  min-width: 140px; margin: 0; padding: 6px; list-style: none;
}
.look-picker li { margin: 0; }
.look-picker ul a { display: block; padding: 8px 12px; text-decoration: none; }
.look-picker summary {
  padding: 6px 12px; border: var(--hair) solid var(--line); border-radius: 999px;
  color: var(--text-2); font-size: 13px;
}
.look-picker summary:hover, .look-picker[open] summary { color: var(--ink); background: var(--linen); }
.look-picker__label { color: var(--text-3); }
.look-picker ul {
  background: var(--surface); border: var(--hair) solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgb(30 27 24 / .10);
}
.look-picker ul a { border-radius: 9px; color: var(--text-2); font-size: 14px; }
.look-picker ul a:hover { background: var(--linen); color: var(--ink); }
.look-picker ul a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.look-picker ul a[aria-current="true"]::after { content: " ✓"; color: var(--clay); }

/* ---------- Document pages (privacy, support) ---------- */

.wrap--narrow { --content: 720px; }

.site-footer nav a[aria-current="page"] { color: var(--ink); }

.doc { padding-block: clamp(32px, 5vw, 72px) var(--section); }
.doc__head { margin-bottom: clamp(40px, 5vw, 64px); }
.doc__head h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.doc__head .lead { margin-top: 20px; }
.doc__meta { margin-top: 16px; font-size: 15px; color: var(--text-3); }

.doc h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.summary {
  background: var(--linen);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.4vw, 36px);
  margin-bottom: clamp(48px, 6vw, 72px);
}
.summary h2 { margin-bottom: 16px; }
.summary ul { display: grid; gap: 12px; }
.summary li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.summary li .i { width: 20px; height: 20px; margin-top: 2px; color: var(--diaper-ink); }

.prose h2 { margin: 52px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.prose p,
.prose li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.prose p + p,
.prose ul + p,
.prose ol + p,
.prose p + ul,
.prose p + ol { margin-top: 14px; }
.prose ul,
.prose ol { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}
.prose ol { list-style: decimal; padding-left: 22px; }
.prose ol li::marker { color: var(--text-3); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.prose th,
.prose td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: var(--hair) solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--text-2); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--linen);
  border-radius: var(--radius-card);
}
.contact-card h2 { margin: 0; }
.contact-card p { margin-top: 4px; color: var(--text-2); font-size: 16px; }

/* FAQ: a hairline list of details/summary rows, so it opens without JavaScript. */
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 64px); }
.faq-group > h2 { margin-bottom: 12px; }
.faq { border-top: var(--hair) solid var(--line); }
.faq details { border-bottom: var(--hair) solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary:hover { color: var(--clay); }
.faq summary:focus-visible { outline-offset: 2px; border-radius: 8px; }
.faq summary .i { width: 20px; height: 20px; color: var(--text-3); transition: transform 200ms ease; }
.faq summary:hover .i { color: var(--clay); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 36px 22px 0; }
.faq .answer p,
.faq .answer li { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.faq .answer p + p,
.faq .answer ol + p,
.faq .answer p + ol { margin-top: 10px; }
.faq .answer ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; }
.faq .answer ol li::marker { color: var(--text-3); }
.faq .answer strong { color: var(--ink); font-weight: 600; }

/* ---------- 404 ---------- */

.lost { text-align: center; padding-block: clamp(48px, 9vw, 120px) var(--section); }
.lost__mochi { width: 120px; height: 120px; margin: 0 auto 36px; --m-w: 1.6px; --m-bg: var(--sleep-tint); }
@media (prefers-color-scheme: dark) { .lost__mochi { --m-bg: #241B16; } }
.lost h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lost .lead { margin-inline: auto; }
.lost .btn { margin-top: 36px; }

@media (max-width: 640px) {
  .doc__head h1 { font-size: clamp(44px, 12.4vw, 56px); }
  .prose p,
  .prose li { font-size: 16px; }
  .faq summary { font-size: 16px; }
  .faq .answer { padding-right: 0; }
  .lost__mochi { width: 96px; height: 96px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .run-scroller {
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .run-scroller::-webkit-scrollbar { display: none; }
  .run-scroller:focus-visible { outline-offset: -2px; border-radius: 16px; }
  .run {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 4px var(--gutter) 8px;
  }
  .run__item { width: 236px; scroll-snap-align: start; }
}

@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__stage { padding-block: 32px 8px; }
  .hero__stage .phone { --w: min(320px, 74vw); }
  .hero__disc { width: min(520px, 108vw); }
  .hero__mochi { left: calc(50% - min(160px, 37vw) - 44px); }
  .hero__pill--a { right: calc(50% - min(160px, 37vw) - 36px); }
  .hero__pill--b { left: calc(50% - min(160px, 37vw) - 36px); }

  .split,
  .night .split,
  .ai .split { grid-template-columns: minmax(0, 1fr); }
  .night__stage { order: 2; }
  .crew-art { justify-self: stretch; max-width: 520px; margin-inline: auto; }
  .ai__stage { height: clamp(560px, 150vw, 700px); width: 100%; max-width: 520px; margin-inline: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar,
  .pillar:first-child,
  .pillar:last-child { padding: 22px 0; }
  .pillar + .pillar { border-left: 0; border-top: var(--hair) solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 68px; }
  .brand__name { font-size: 25px; }
  .brand__mochi { width: 32px; height: 32px; }

  .hero { padding-top: 20px; }
  .tagline { font-size: clamp(44px, 12.4vw, 56px); }
  .hero__sub { font-size: 17px; }
  .hero__pills { gap: 6px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 13px 0; }
  .hero__actions { gap: 12px 16px; }
  .hero__mochi { width: 64px; height: 64px; top: 10%; left: calc(50% - min(160px, 37vw) - 26px); box-shadow: 0 0 0 4px var(--ground); }
  .hero__pill { min-height: 34px; font-size: 13px; padding: 0 13px 0 10px; }
  .hero__pill--a { right: max(-4px, calc(50% - min(160px, 37vw) - 22px)); top: 5%; }
  .hero__pill--b { left: max(-4px, calc(50% - min(160px, 37vw) - 22px)); bottom: 16%; }

  .h2 { font-size: clamp(32px, 9vw, 40px); }
  .lead { font-size: 18px; }

  .log-card { padding: 20px 16px 4px; border-radius: 20px; }
  .log-row { grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 12px; }
  .log-row__time { display: none; }
  .log-row__kind { width: 34px; height: 34px; }
  .log-row .avatar--sm { width: 28px; height: 28px; font-size: 12px; }
  .crew-art__pill { left: auto; right: 12px; bottom: -18px; }

  .ai__stage { height: 560px; }
  .ai__stage .phone { --w: min(196px, 50vw); }
  .ai__stage .phone--front { top: 110px; }

  .privacy-card { border-radius: 24px; padding: 44px 20px 32px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 380px) {
  .btn { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:active { transform: none; }
}

@media (forced-colors: active) {
  .btn, .pill, .phone, .log-card, .privacy-card, .summary, .contact-card { border: 1px solid CanvasText; }
}
