/* Shared tokens for togwise.com + doda.land.
   Sources (read-only): the app's tailwind.config.js (Theme v2 "Warmth Meter"),
   src/theme/warmth.ts (the cold→warm ramp), and colours sampled from the real
   emulator screenshots (KEY-card tint). One look with the app and the bedtime chart
   (vision §12 2026-11-15 11:29): Figtree, white cards on cream, the navy top. Figtree is
   self-hosted from /assets (CSP font-src 'self'), preloaded on every page, font-display swap. */

@font-face {
  font-family: "Figtree";
  src: url("/assets/Figtree-wght.2f940894.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Light — warm neutrals (tailwind.config.js) */
  --canvas: #f4eee3;
  --surface: #ffffff; /* white cards on the cream page (tailwind surface) */
  --ink: #2c2925;
  --muted: #6a625a;
  --hairline: #e7ddce;
  --accent: #57986c;
  --accent-ink: #2c5a40;
  --key-tint: #eceadd; /* sampled: KEY layer card, light */
  --honey: #e6b450;
  --warm-ink: #8a4b12;
  --caution: #c2410c; /* Hard Stops / car seat (tailwind caution) */
  --trust-strip: #e9efe3; /* the app's trust strip */
  --trust-edge: #cddbc8;
  --trust-ink: #35563e;

  /* Hero — the app's navy top (tailwind navy-top / navy-top-end; dark values below) */
  --hero-top: #17344b;
  --hero-bottom: #132b3e;
  --hero-glow: #24506f;
  --hero-fg: #f3ece0;
  --hero-muted: #a79e92;
  --night-top: #1a172f; /* sampled: sleep hero */
  --night-bottom: #0e0c19;
  --icon-ground: #1b3550; /* the app icon's navy square (icon master 2026-12-02; togwise/src/assets/favicon.fa791851.svg) */

  /* Warmth ramp (warmth.ts WARMTH_STOPS) */
  --w-cold: #7fb2f2;
  --w-chilly: #58c1d6;
  --w-cool: #46c2a6;
  --w-mild: #cbb878;
  --w-warm: #ecab5c;
  --w-hot: #ec8863;
  --warmth: linear-gradient(90deg, var(--w-cold), var(--w-chilly), var(--w-cool), var(--w-mild), var(--w-warm), var(--w-hot));

  /* Type — Figtree (self-hosted) over system fallbacks, fluid scale (1.2 → 1.25) */
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.33rem);
  --step-2: clamp(1.44rem, 1.3rem + 0.7vw, 1.77rem);
  --step-3: clamp(1.73rem, 1.48rem + 1.25vw, 2.4rem);
  --step-4: clamp(2.07rem, 1.65rem + 2.1vw, 3.3rem);

  /* Space + shape (card radius 18px, pill 999px — tailwind borderRadius) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;
  --r-card: 18px; /* tailwind borderRadius.card */
  --r-pill: 999px;
  --wrap: 72rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgb(44 41 37 / 0.06), 0 8px 24px -12px rgb(44 41 37 / 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark — warm near-black (tailwind.config.js *D tokens) */
    --canvas: #15120e;
    --surface: #221d18;
    --ink: #f0e9dd;
    --muted: #a39a8e; /* a touch lighter than the app's #a0968a, for text contrast on --surface */
    --hairline: #322b23;
    --accent: #7fb89a;
    --accent-ink: #7fb89a;
    --key-tint: #2a332a; /* sampled: KEY layer card, dark */
    --warm-ink: #ecab5c;
    --caution: #e8743b;
    --trust-strip: #2a332a;
    --trust-edge: #2a332a;
    --trust-ink: #a9cdb5;
    --hero-top: #142e42;
    --hero-bottom: #0e141a;
    --hero-glow: #1d4260;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -14px rgb(0 0 0 / 0.6);
  }
}

/* togwise.com — "modern in capabilities, calm in skin". No JS; motion is CSS only and
   switched off under prefers-reduced-motion. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-round); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 var(--s-3); text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 720; }
h3 { font-size: var(--step-1); font-weight: 680; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: text-decoration-thickness 0.2s, text-underline-offset 0.2s, color 0.2s; }
a:hover { text-decoration-thickness: 2px; text-underline-offset: 0.26em; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible { outline-color: var(--w-cool); } /* the hero is dark in both themes */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 10; padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--canvas); border-radius: var(--r-pill); }
.skip:focus { top: var(--s-4); }

/* Draft strip */
.draft-banner {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.01em;
  background: var(--key-tint); color: var(--ink); border-bottom: 1px solid var(--hairline);
}
.draft-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 3px color-mix(in srgb, var(--honey) 30%, transparent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); text-decoration: none; font-family: var(--font-round); font-weight: 750; font-size: var(--step-1); letter-spacing: -0.02em; }
/* The mark is the app icon itself: its bands (build.mjs TOGWISE_MARK, from favicon.svg) fill the tile as in the icon master, no inner padding. */
.brand .mark { width: 2rem; height: 2rem; background: var(--icon-ground); border-radius: 0.55rem; transition: transform 0.3s var(--ease); }
.brand:hover .mark { transform: rotate(-4deg) scale(1.05); }
.brand-sm { font-size: var(--step-0); }
.brand-sm .mark { width: 1.6rem; height: 1.6rem; }
.nav { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); color: var(--muted); font-size: var(--step--1); font-weight: 600; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }
@media (max-width: 30rem) { .nav li:first-child { display: none; } }

/* Hero — the app's navy top, rounded like the app's hero card */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--s-3) var(--s-3) 0; border-radius: 28px;
  background: radial-gradient(120% 80% at 85% 0%, var(--hero-glow) 0%, transparent 60%), linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  color: var(--hero-fg);
  border: 1px solid rgb(243 236 224 / 0.06);
  padding-block: var(--s-8) var(--s-7);
}
.hero-phone { position: relative; }
/* The icon's three thermal bars (geometry from the 1024 grid: x/y/width as %), each its OWN
   pre-blurred layer: the breathing animates only transform/opacity of the blurred layer,
   so the browser reuses the blur instead of re-blurring every frame (F123). */
.hero-bars { position: absolute; z-index: 0; left: 50%; top: 46%; width: 165%; aspect-ratio: 1; translate: -50% -50%; opacity: 0.5; pointer-events: none; }
.hero-phone .phone { z-index: 1; }
.hero-bars .bar { position: absolute; height: 14.16%; border-radius: 999px; filter: blur(46px); transform-origin: center; will-change: transform; }
.hero-bars .bar-1 { left: 32.52%; top: 21.29%; width: 34.96%; background: var(--w-cold); }
.hero-bars .bar-2 { left: 25.88%; top: 42.97%; width: 48.24%; background: var(--w-cool); }
.hero-bars .bar-3 { left: 19.24%; top: 64.65%; width: 61.52%; background: var(--w-warm); }
.hero-grid { position: relative; display: grid; gap: var(--s-7); align-items: center; }
.eyebrow { margin: 0 0 var(--s-3); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w-cool); }
.eyebrow-ink { color: var(--accent-ink); }
.hero h1 { color: var(--hero-fg); max-width: 14ch; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--hero-muted); max-width: 34rem; }
.lead-ink { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 40rem; }

/* Warmth meter (decorative; mirrors the app's hero meter) */
.meter { max-width: 26rem; margin: var(--s-5) 0 var(--s-6); }
.meter-track { position: relative; height: 0.5rem; }
.meter-track::before { content: ""; position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--warmth); }
.meter-dot { position: absolute; top: 50%; left: 40%; width: 1.15rem; height: 1.15rem; margin: -0.575rem 0 0 -0.575rem; border-radius: 50%; background: var(--hero-fg); box-shadow: 0 0 0 3px var(--hero-bottom), 0 2px 10px rgb(0 0 0 / 0.5); }
.meter-labels { display: flex; justify-content: space-between; margin-top: var(--s-2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hero-muted); }
.meter-labels span:first-child { color: var(--w-cold); }
.meter-labels span:last-child { color: var(--w-warm); }

/* One status line until the store links go live (no dead "button" boxes). */
/* The dot sits on the FIRST line when the text wraps (F127): top-aligned, centred in one line-height. */
.status { display: inline-flex; align-items: flex-start; gap: var(--s-2); margin: 0; font-weight: 650; color: var(--hero-fg); }
/* The store row: Google's badge, then a plain tag for the iPhone app (home page only). The tag is
   plain text: not a link or a button, no hover. 40px tall = the visible part of the 60px badge
   (Google's artwork carries about 10px of clear space on every side); the tag's own 10px margin
   mirrors that, so beside the badge it sits centred in the same band, and wrapped under it on a
   phone it lines up with the badge's edge. */
.store-row { display: flex; flex-wrap: wrap; align-items: center; margin: var(--s-3) 0 0; }
.play-badge { margin: 0; }
.play-badge img { display: block; height: 60px; width: auto; }
.soon-tag { display: inline-flex; align-items: center; min-height: 40px; margin: 10px; padding: 0 var(--s-4); border: 1px solid color-mix(in srgb, var(--hero-fg) 30%, transparent); border-radius: var(--r-pill); color: var(--hero-fg); font-size: var(--step--1); font-weight: 650; line-height: 1.2; white-space: nowrap; }
.status-dot { flex: none; width: 0.6rem; height: 0.6rem; margin-top: calc((1lh - 0.6rem) / 2); border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px rgb(230 180 80 / 0.22); }

/* Phone frame */
.phone {
  position: relative; width: min(100%, 17.5rem); margin-inline: auto; aspect-ratio: 1 / 2;
  padding: 0.55rem; border-radius: 2.6rem;
  background: linear-gradient(145deg, #3a3631, #121010 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(0 0 0 / 0.55), 0 12px 24px -12px rgb(0 0 0 / 0.4);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 2.1rem; }
figure { margin: 0; }
figcaption { margin-top: var(--s-4); text-align: center; font-size: var(--step--1); color: var(--muted); }
.hero-phone .phone { width: min(100%, 18.5rem); }

/* Provenance band */
.band { padding-block: var(--s-5); }
.provenance-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.provenance-row p { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 44rem; }
/* The app's trust strip, as a chip */
.chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--trust-strip); color: var(--trust-ink); font-weight: 700; font-size: var(--step--1); border: 1px solid var(--trust-edge); }
.chip svg { width: 1.1rem; height: 1.1rem; }

/* Sections */
.section { padding-block: var(--s-8); }
.section-alt { background: var(--surface); border-block: 1px solid var(--hairline); }
.section-head { margin-bottom: var(--s-6); max-width: 44rem; }
/* Founder note (owner 2026-11-29): a narrow reading column. */
.why-wrap { max-width: 40rem; }

.how-grid { display: grid; gap: var(--s-7); align-items: center; }
/* Steps: a numbered list on the page itself, no boxes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--hairline); }
.step:first-child { border-top: 0; padding-top: 0; }
.step h3 { font-size: var(--step-2); }
.step p { margin: 0; color: var(--muted); }
.step-num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; font-family: var(--font-round); font-weight: 800; color: #1c1815; }
.step:nth-child(1) .step-num { background: var(--w-cold); }
.step:nth-child(2) .step-num { background: var(--w-cool); }
.step:nth-child(3) .step-num { background: var(--w-warm); }
.phone-tilt { transform: rotate(2deg); transition: transform 0.5s var(--ease); }
.phone-tilt-left { transform: rotate(-2deg); transition: transform 0.5s var(--ease); }
.phone-figure:hover .phone-tilt, .phone-figure:hover .phone-tilt-left { transform: rotate(0deg) translateY(-4px); }

/* The outfit strip: the app's own clothes pictures on white tiles */
.outfit { margin-top: var(--s-8); }
.how-grid + .free-list { margin-top: var(--s-8); }
.outfit-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.garment { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-2) var(--s-3); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); font-size: var(--step--1); font-weight: 650; text-align: center; }
/* No hover lift: the tiles are not links (F124). */
.garment img { width: auto; height: 4.5rem; object-fit: contain; }
.outfit-caption { margin-top: var(--s-4); }

.free-grid { display: grid; gap: var(--s-6); align-items: start; }
/* The free list: ONE sage-edged panel, ticked rows inside */
.free-list { list-style: none; margin: 0; padding: var(--s-3) var(--s-5); display: grid; border-radius: var(--r-card); background: var(--trust-strip); border: 1px solid var(--trust-edge); }
.free-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; font-weight: 650; }
.free-item + .free-item { border-top: 1px solid var(--trust-edge); }
.tick { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--surface); position: relative; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.tick::after { content: ""; position: absolute; left: 0.47rem; top: 0.25rem; width: 0.35rem; height: 0.65rem; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.reminder-grid { display: grid; gap: var(--s-4); margin-top: var(--s-7); }
/* Reminders: text columns under a rule, not cards; the car seat carries the app's caution edge */
.reminder { padding-top: var(--s-4); border-top: 2px solid var(--hairline); }
.reminder-car { border-top-color: var(--caution); }
.reminder-car .card-icon { background: color-mix(in srgb, var(--caution) 12%, transparent); color: var(--caution); border-color: color-mix(in srgb, var(--caution) 35%, transparent); }
.reminder p { margin: 0; color: var(--muted); }
/* The car-seat block carries a crop of the app's car-seat rows: below the text on phones, beside it on wider
   screens. A slice of the real screen in a rounded card (no phone frame, no tilt), wide enough that its
   orange "off once baby's in the seat" lines stay readable (~13 px) on a 390 px phone. */
.reminder-car-shot { margin-top: var(--s-6); }
.app-crop { width: min(100%, 22rem); margin-inline: auto; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45); }
.app-crop img { display: block; width: 100%; height: auto; }

.gallery-row { display: grid; gap: var(--s-7); }

/* The bedtime chart teaser: the chart's own indigo sky, one bold card */
.chart-band { padding-block: 0 var(--s-8); }
.section-alt + .chart-band { padding-top: var(--s-8); }
.chart-teaser { position: relative; display: grid; gap: var(--s-5); align-items: center; padding: var(--s-6); border-radius: 28px; background: linear-gradient(180deg, #272654 0%, #1e1d46 62%, #1a1939 100%); color: #f3ece0; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.chart-teaser:hover { transform: translateY(-3px); }
.chart-teaser .eyebrow { color: #86bfa0; }
.chart-teaser h2 { color: #f3ece0; }
.chart-teaser p { color: #c4c0db; max-width: 34rem; }
/* Sized by height since the 2026-11-30 bag drawing (narrower than the old one): the same height as the
   old 7rem / 9rem-wide picture had. */
.chart-teaser-bag { width: auto; height: 9.16rem; filter: drop-shadow(0 12px 24px rgb(0 0 0 / 0.35)); }
.chart-teaser-go { color: #f3ece0; font-weight: 700; text-decoration: none; }
.chart-teaser-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link's target */
.chart-teaser-go span { display: inline-block; transition: transform 0.25s var(--ease); }
.chart-teaser:hover .chart-teaser-go { text-decoration: underline; }
.chart-teaser:hover .chart-teaser-go span { transform: translateX(4px); }
.chart-teaser :focus-visible { outline-color: #86bfa0; }
.shot figcaption { max-width: 17rem; margin-inline: auto; }
.shot figcaption strong { display: block; color: var(--ink); font-size: var(--step-0); }
.shot .phone { transition: transform 0.4s var(--ease); }
.shot:hover .phone { transform: translateY(-6px); }

/* Light | Dark switch for the gallery (CSS only: :has() reads the radio). With neither
   chosen the screens follow the system theme. A hidden <picture> is display:none, so its
   lazy image is never fetched. */
.theme-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-6); padding: 0; border: 0; min-inline-size: 0; }
.theme-switch legend { float: left; padding: 0; margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.theme-switch label { position: relative; display: inline-flex; align-items: center; padding: var(--s-2) var(--s-4); min-height: 2.75rem; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font-size: var(--step--1); font-weight: 650; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.theme-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.theme-switch label:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--hairline)); }
.theme-switch label:has(input:checked) { background: var(--key-tint); border-color: var(--accent); color: var(--accent-ink); }
.theme-switch label:has(input:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.gallery .phone picture { position: absolute; inset: 0.55rem; display: block; }
.gallery .phone .shot-dark { display: none; opacity: 0; }
@media (prefers-color-scheme: dark) {
  .gallery .phone .shot-light { display: none; opacity: 0; }
  .gallery .phone .shot-dark { display: block; opacity: 1; }
}
.gallery:has(#gallery-light:checked) .phone .shot-light { display: block; opacity: 1; }
.gallery:has(#gallery-light:checked) .phone .shot-dark { display: none; opacity: 0; }
.gallery:has(#gallery-dark:checked) .phone .shot-light { display: none; opacity: 0; }
.gallery:has(#gallery-dark:checked) .phone .shot-dark { display: block; opacity: 1; }
.plus-tag { display: inline-block; padding: 0 0.5rem; border-radius: var(--r-pill); background: var(--honey); color: #2c2925; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.1em; }
.gallery-note { margin-top: var(--s-6); text-align: center; color: var(--muted); font-size: var(--step--1); }

.plus-layout { display: grid; gap: var(--s-7); align-items: center; margin-bottom: var(--s-6); }
.plus-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.card { padding: var(--s-5); border-radius: var(--r-card); background: var(--canvas); border: 1px solid var(--hairline); }
/* No hover lift: the cards are not links (F124). */
.card p { margin: 0; color: var(--muted); }
/* A quiet qualifier under a card heading (small, muted, normal weight). */
.card .card-note { margin: calc(-1 * var(--s-2)) 0 var(--s-2); font-size: var(--step--1); font-weight: 400; color: var(--muted); }
/* Card icons: 20px line glyph in a 36px soft circle. Free row sage, Plus row honey. */
.card-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--s-3); border-radius: 50%; background: var(--key-tint); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.card-icon svg { width: 20px; height: 20px; }
.plus-grid .card-icon { background: color-mix(in srgb, var(--honey) 20%, transparent); color: var(--warm-ink); border-color: color-mix(in srgb, var(--honey) 45%, transparent); }
.fine-ink { font-size: var(--step--1); color: var(--muted); }

.disclaimer { padding: var(--s-6); border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--hairline)); max-width: 52rem; margin-inline: auto; }
.disclaimer h2 { font-size: var(--step-1); }
.disclaimer p:last-child { margin: 0; }

/* Footer */
.site-footer { padding-block: var(--s-7) var(--s-6); border-top: 1px solid var(--hairline); background: var(--surface); }
.footer-grid { display: grid; gap: var(--s-5); margin-bottom: var(--s-5); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.fine { font-size: var(--step--1); color: var(--muted); margin: var(--s-2) 0 0; }

/* Inner pages */
.page-head { padding-block: var(--s-7) var(--s-5); }
.page-head h1 { max-width: 20ch; }
.platform-note { margin: 0; font-weight: 650; color: var(--ink); }
.notfound { min-height: 50vh; }
.support-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-8); align-items: start; }
.faq-section { margin-bottom: var(--s-6); }
.faq-section > h2 { font-size: var(--step-2); }
.faq-section > p, .faq-section > ol, .faq-section > ul { color: var(--muted); }
.faq { border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface); margin-bottom: var(--s-3); transition: border-color 0.2s, box-shadow 0.2s; }
.faq[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.faq summary::-webkit-details-marker { display: none; }
/* A calm hover on the rows (they open): the edge warms to the accent, like the theme switch. */
.faq:not([open]):has(> summary:hover) { border-color: color-mix(in srgb, var(--accent) 50%, var(--hairline)); }
.faq summary:hover::after { border-color: var(--accent-ink); }
.faq summary { font-weight: 650; line-height: 1.4; }
.faq summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s var(--ease); }
.faq[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq-body { padding: 0 var(--s-5) var(--s-4); color: var(--muted); }
.faq-body > :last-child { margin-bottom: 0; }
.contact-card { position: sticky; top: 5rem; padding: var(--s-5); border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.contact-card h2 { font-size: var(--step-1); }
.contact-email { font-weight: 700; font-size: var(--step-1); word-break: break-all; }
.contact-card hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s-4) 0; }

/* Legal prose */
.legal-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); }
.toc { display: none; font-size: var(--step--1); }
.toc-title { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: var(--s-2); }
.toc ol { margin: 0; padding-left: 0; list-style: none; display: grid; gap: var(--s-1); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.toc-small { margin: 0 0 var(--s-5); font-size: var(--step--1); }
.toc-small details { border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface); }
.toc-small summary { cursor: pointer; padding: var(--s-3) var(--s-4); font-weight: 700; }
.toc-small ol { margin: 0; padding: 0 var(--s-4) var(--s-4); list-style: none; display: grid; gap: var(--s-1); }
.toc-small a { color: var(--ink); }
.prose { max-width: 70ch; min-width: 0; }
.legal-version { color: var(--muted); margin-bottom: var(--s-3); }
.legal-versions { margin-top: var(--s-5); }
.prose h1 { font-size: var(--step-3); margin-bottom: var(--s-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote { margin: 0 0 var(--s-4); padding: var(--s-4) var(--s-5); border-left: 4px solid var(--honey); background: var(--surface); border-radius: 0 var(--r-card) var(--r-card) 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code { font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--surface); border: 1px solid var(--hairline); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-4); border: 1px solid var(--hairline); border-radius: var(--r-card); }
caption { text-align: left; }
/* /delete-data: one column of legal prose; its two-column table fits a phone without scrolling. */
.delete-page { padding-block: var(--s-7) var(--s-8); }
.delete-page .lead-ink { margin-bottom: var(--s-5); }
.delete-page table { min-width: 0; }
.delete-page th[scope="row"] { background: transparent; font-weight: 700; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); min-width: 36rem; }
th, td { text-align: left; vertical-align: top; padding: var(--s-3); border-bottom: 1px solid var(--hairline); }
th { background: var(--surface); }
tr:last-child td { border-bottom: 0; }
mark.tbc { background: color-mix(in srgb, var(--honey) 35%, transparent); color: inherit; padding: 0 0.2em; border-radius: 4px; }

/* Wider screens */
@media (min-width: 48rem) {
  .hero { margin: var(--s-4) var(--s-4) 0; border-radius: 36px; }
  .reminder-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .reminder-car { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); align-items: center; }
  .reminder-car-text { max-width: 36rem; }
  .reminder-car-shot { margin-top: 0; width: 22rem; } /* a fixed width: the grid's auto column would collapse a % width */
  .plus-grid { grid-template-columns: repeat(2, 1fr); }
  .plus-grid > li:last-child { grid-column: 1 / -1; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); }
  .outfit-row { grid-template-columns: repeat(6, 1fr); }
  .chart-teaser { grid-template-columns: auto 1fr; padding: var(--s-7); gap: var(--s-7); }
  .chart-teaser-bag { height: 11.78rem; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .support-grid { grid-template-columns: minmax(0, 1fr) 20rem; }
}
@media (min-width: 64rem) {
  .hero { padding-block: var(--s-9) var(--s-8); }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .how-grid { grid-template-columns: 1.1fr 0.9fr; }
  .free-grid { grid-template-columns: 1fr 1fr; }
  /* The paywall phone beside the five Plus cards (2 + 2 + 1 wide) */
  .plus-layout { grid-template-columns: 0.75fr 1.25fr; }
  .gallery-row { grid-template-columns: repeat(4, 1fr); }
  .gallery-row .shot:nth-child(even) { transform: translateY(-1.5rem); }
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); }
  .toc-small { display: none; }
  .toc { display: block; position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; }
}

/* Motion — only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  /* The bars breathe three times, then rest. */
  .hero-bars .bar { animation: bar-in 1.4s var(--ease) both, bar-breathe 9s ease-in-out 1.6s 3; }
  .hero-bars .bar-2 { animation-delay: 0.15s, 2.2s; }
  .hero-bars .bar-3 { animation-delay: 0.3s, 2.8s; }
  .meter-track::before { animation: meter-in 1.2s var(--ease) 0.2s both; }
  .meter-dot { animation: dot-in 1.6s var(--ease) 0.5s both; }
  /* Hero entrance: transform only, so the text and the LCP image are visible from the first paint. */
  .hero-copy > * { animation: hero-rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.4s; }
  .hero-phone { animation: hero-rise 1.1s var(--ease) 0.2s both; }
  /* The outfit tiles arrive one after another as the strip scrolls in. */
  .garment:nth-child(2) { animation-range: entry 5% entry 85%; }
  .garment:nth-child(3) { animation-range: entry 10% entry 90%; }
  .garment:nth-child(4) { animation-range: entry 15% entry 95%; }
  .garment:nth-child(5) { animation-range: entry 20% entry 100%; }
  .garment:nth-child(6) { animation-range: entry 25% cover 30%; }
  /* Scroll reveal uses opacity + the individual `translate` property, never `transform`,
     so the raised middle gallery phone and the hover lifts keep working. */
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
  /* Gallery Light|Dark crossfade (instant under reduced motion: no transition there). */
  .gallery .phone picture { transition: opacity 0.2s var(--ease), display 0.2s allow-discrete; }
  @starting-style { .gallery .phone picture { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@keyframes hero-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes reveal { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes bar-in { from { transform: scaleX(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bar-breathe { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.94); } }
@keyframes meter-in { from { clip-path: inset(0 100% 0 0 round 999px); } to { clip-path: inset(0 0 0 0 round 999px); } }
/* transform + opacity only: animating `left` counted as layout shift (CLS) */
@keyframes dot-in { from { transform: translateX(-2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }

/* The bedtime chart page → the home page (vision §12 2026-11-15 11:29, change 5) */
.share-cap { margin: 0 0 var(--s-3); text-align: center; font-size: var(--step--1); color: var(--muted); }
.about-app { margin-block: var(--s-7) var(--s-8); padding: var(--s-6); border-radius: 28px; background: var(--surface); border: 1px solid var(--hairline); }
.about-app .lead-ink { max-width: 40rem; }
.about-app p:last-child { margin: 0; }
.about-app-go { font-weight: 700; text-decoration: none; }
.about-app-go span { display: inline-block; transition: transform 0.25s var(--ease); }
.about-app-go:hover span { transform: translateX(4px); }
@media print { .about-app { display: none; } }

/* Phones (touch, no hover): scrolling stuttered on a Samsung S26 Ultra (owner 2026-11-24).
   The sticky header's backdrop blur is redrawn on every scrolled frame, and the hero's three
   large blurred bars kept their own animated layers. Here the header is a near-solid fill with
   no blur, and the bars are drawn once and left still. Desktop is unchanged. */
/* 2026-11-25: matched by WIDTH as well. Samsung Internet on an S Pen phone (S26 Ultra) reports a
   hovering, fine pointer, so the touch-only query never applied there and four rounds of
   fixes changed nothing in that browser. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  /* The frosted header on phones: a smaller blur (8px, was 12px), no saturation pass. Confirmed
     smooth by the owner in Samsung Internet and Chrome on an S26 Ultra, 2026-11-25. The cause of
     the stutter was the upward slide in the scroll reveal, not the blur or the fade. */
  .site-header { background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero-bars .bar { will-change: auto; animation: none !important; }
  /* Second pass (still stuttering in Samsung Internet, owner 2026-11-25): nothing is tied to
     the scroll position on phones. The fade-in on scroll and the outfit tiles' staggered
     arrival run per scrolled frame there; content is simply shown. The phone frame's deep
     double shadow becomes one light shadow, which is cheaper to redraw. */
  /* 2026-11-25, effects back in a cheaper form: the fade on scroll returns as OPACITY ONLY (no
     movement), which a browser can run without redoing layout; `reveal-fade` below. */
  .reveal, .garment { animation-name: reveal-fade !important; translate: none !important; }
  .phone { box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5); }
  /* Third pass (Samsung Internet only: the hero "jumps" while scrolling, Chrome is fine). The
     three bars were still blurred by the browser (filter: blur), and Samsung's browser redraws
     that blur as the hero scrolls. On phones the glow is now three plain soft gradients: no
     filter at all, so there is nothing to redraw. The hero's entrance slide is off as well. */
  .hero-bars .bar { filter: none; opacity: 0.55; border-radius: 0; height: 30%; background-image: radial-gradient(closest-side, var(--bar-c), transparent); background-color: transparent; }
  .hero-bars .bar-1 { --bar-c: var(--w-cold); top: 13%; }
  .hero-bars .bar-2 { --bar-c: var(--w-cool); top: 35%; }
  .hero-bars .bar-3 { --bar-c: var(--w-warm); top: 57%; }
}
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
