@charset "utf-8";
/* ============================================================================
   birthdate.baby — design system
   Palette sampled from the logo pixels. Light theme only, never dark.
   One idea: the 280-day arc. Everything on the site sits on it.
   ========================================================================== */

/* ---------- 1. tokens ---------------------------------------------------- */

:root {
  /* brand, straight from the logo */
  --coral:       #F08080;
  --coral-deep:  #D9615F;
  --coral-ink:   #A83E3C;
  --butter:      #FFF0A0;
  --butter-soft: #FFF9DC;
  --skin:        #F0D0B0;
  --tan:         #D0A080;
  --tan-deep:    #C09070;
  --brown:       #402010;

  /* surfaces — warm, light, never inverted */
  --paper:   #FFFFFF;
  --cream:   #FDF7F1;
  --cream-2: #FAEDE1;
  --cream-3: #F6E3D4;

  /* text */
  --ink:    #140A06;
  --ink-2:  #332016;
  --muted:  #6B4A38;
  --faint:  #8C6B58;

  /* lines */
  --rule:      #E7D2C0;
  --rule-soft: #F0DFD1;

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* rhythm */
  --gut: clamp(20px, 4vw, 56px);
  --shell: 1280px;
  --r-s: 8px;
  --r-m: 16px;
  --r-l: 28px;
  --r-pill: 999px;

  /* elevation — warm shadows only, no grey */
  --lift-1: 0 1px 2px rgba(64, 32, 16, .05), 0 4px 14px rgba(64, 32, 16, .05);
  --lift-2: 0 2px 6px rgba(64, 32, 16, .06), 0 18px 44px rgba(64, 32, 16, .09);
  --lift-3: 0 3px 10px rgba(64, 32, 16, .07), 0 34px 80px rgba(64, 32, 16, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.66, 0, .34, 1);
}

/* ---------- 2. reset ----------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* the arc rail hangs off the left edge; never let it create a scrollbar */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Author display rules beat the UA sheet's [hidden] { display:none }, and this
   file sets display on .field, .check and others that are toggled with the
   hidden attribute. Reassert it once, here, rather than per component. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--coral) 60%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--coral-deep); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--ink); line-height: 1.04; letter-spacing: -.018em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: .3em 0; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
  transition: top .2s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. shell ----------------------------------------------------- */

.shell {
  width: min(100% - (var(--gut) * 2), var(--shell));
  margin-inline: auto;
}
.shell-wide { width: min(100% - (var(--gut) * 2), 1560px); margin-inline: auto; }
.shell-tight { width: min(100% - (var(--gut) * 2), 760px); margin-inline: auto; }

section { position: relative; }
.band { padding-block: clamp(64px, 9vw, 148px); }
.band-sm { padding-block: clamp(44px, 6vw, 88px); }
.band-cream { background: var(--cream-2); }
.band-paper { background: var(--paper); }

/* ---------- 4. type scale ------------------------------------------------ */

.d1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: .96; letter-spacing: -.03em; }
.d2 { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.026em; }
.d3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.d4 { font-family: var(--display); font-weight: 600; font-size: clamp(1.28rem, 1.7vw, 1.6rem); line-height: 1.18; letter-spacing: -.012em; }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.38rem); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 1rem; color: var(--muted); }
.tiny { font-size: .9375rem; color: var(--faint); line-height: 1.5; }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--coral-ink);
  font-weight: 500;
  margin: 0 0 clamp(14px, 2vw, 22px);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: var(--coral); border-radius: 2px; flex: none;
}
.eyebrow-plain::before { display: none; }

/* the italic's exit stroke overhangs its advance width and collides with the
   next word at display sizes, so buy it a little room */
.serif-em { font-style: italic; color: var(--coral-deep); padding-right: .09em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 5. header ---------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-head[data-stuck="1"] { border-bottom-color: var(--rule); background: color-mix(in srgb, var(--cream) 96%, transparent); }

.head-in {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 9px 13px; border-radius: var(--r-pill); text-decoration: none;
  font-size: 1rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--cream-3); }
.nav a[aria-current="page"] { background: var(--butter-soft); color: var(--coral-ink); }

/* the personalisation chip — the whole site's memory, visible everywhere */
.week-chip {
  display: none; align-items: center; gap: 10px;
  padding: 7px 8px 7px 14px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--rule);
  box-shadow: var(--lift-1);
  font-size: .95rem; text-decoration: none; color: var(--ink);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.week-chip[data-on="1"] { display: inline-flex; }
.week-chip:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.week-chip b { font-weight: 600; }
.week-chip .chip-sub { color: var(--muted); font-size: .875rem; }
.chip-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--coral) var(--pct, 0%), var(--cream-3) 0);
  display: grid; place-items: center;
}
.chip-dot::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }

.burger {
  display: none; margin-left: auto; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r-s);
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.burger::before { top: 15px; }
.burger span { top: 21px; }
.burger::after { top: 27px; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 1.0625rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: #3A0F0E; box-shadow: 0 2px 0 var(--coral-deep), var(--lift-1); }
.btn-primary:hover { background: #F49191; box-shadow: 0 2px 0 var(--coral-deep), var(--lift-2); transform: translateY(-1px); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2C1710; transform: translateY(-1px); box-shadow: var(--lift-2); }

.btn-ghost { background: transparent; border-color: var(--tan-deep); color: var(--ink); }
.btn-ghost:hover { background: var(--cream-3); }

.btn-sm { padding: 10px 18px; font-size: .96rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 7. the arc --------------------------------------------------- */
/* A single continuous 280-day curve. It is the site's one idea, so it is
   never decorative: the marker is the visitor's real position. */

.arc-wrap { position: relative; }
.arc-svg { width: 100%; height: auto; overflow: visible; }
.arc-track { fill: none; stroke: var(--rule); stroke-width: 2; }
.arc-live {
  fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round;
  filter: drop-shadow(0 3px 8px rgba(240, 128, 128, .35));
}
.arc-tick { stroke: var(--tan-deep); stroke-width: 1.5; opacity: .5; }
.arc-tick-major { stroke: var(--brown); stroke-width: 2; opacity: .65; }
.arc-label { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: .06em; }
.arc-band-label { font-family: var(--mono); font-size: 11px; fill: var(--coral-ink); letter-spacing: .14em; text-transform: uppercase; }
.arc-marker circle { fill: var(--coral); stroke: var(--paper); stroke-width: 4; }
.arc-marker text { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); }
.arc-halo { fill: var(--coral); opacity: .18; }

/* ---------- 8. hero ------------------------------------------------------ */

.hero {
  position: relative;
  padding-top: clamp(38px, 5vw, 78px);
  padding-bottom: clamp(48px, 6vw, 100px);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: center;
}
.hero h1 { margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero h1 .line { display: block; }
.hero-lede { max-width: 30ch; margin-bottom: clamp(24px, 3vw, 36px); }

.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 340px;
  border-radius: var(--r-l);
  background:
    radial-gradient(60% 55% at 62% 34%, var(--butter-soft) 0%, transparent 62%),
    radial-gradient(70% 60% at 30% 78%, var(--cream-3) 0%, transparent 70%),
    var(--cream);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.hero-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-stage-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-stage[data-live="1"] .hero-stage-fallback { opacity: 0; transition: opacity .9s var(--ease); }

.hero-note {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px;
  font-size: .98rem; color: var(--muted);
}
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none;
}

/* ---------- 9. inline date capture (the hook) ---------------------------- */

.datebar {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l);
  padding: clamp(18px, 2.2vw, 26px); box-shadow: var(--lift-2);
}
.datebar-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.datebar .field { flex: 1 1 190px; min-width: 0; }
.datebar .btn { flex: 0 0 auto; }

/* Hints are lifted out of the flex line. Otherwise a hint that wraps to two
   lines makes its field taller than the others and flex-end drops the submit
   button below the inputs, which is what happened to "Cycle length". */
.datebar-row { padding-bottom: 34px; }
.datebar-row .field { position: relative; }
.datebar-row .field-hint {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; margin: 0;
  line-height: 1.35;
}

.field { display: block; }
.field > label, .label {
  display: block; font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.control, input[type="date"], input[type="number"], input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 13px 15px; font-size: 1.0625rem;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--rule); border-radius: var(--r-m);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
input[type="date"] { -webkit-appearance: none; min-height: 51px; }
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236B4A38' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.control:hover, input:hover, select:hover { border-color: var(--tan-deep); }
.control:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--coral-deep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 26%, transparent);
}
.field-hint { font-size: .9rem; color: var(--faint); margin-top: 6px; }
.field-err { font-size: .95rem; color: #9E2A22; margin-top: 7px; font-weight: 500; display: none; }
.field-err[data-on="1"] { display: block; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #C0392B; }

/* segmented mode switch */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--cream-2); border-radius: var(--r-pill); border: 1px solid var(--rule-soft);
}
.seg button {
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: 9px 17px; font-size: .96rem; font-weight: 500; color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--lift-1);
}

/* ---------- 10. the tool ledger (not a card grid) ------------------------ */

.ledger { border-top: 1px solid var(--rule); }
.ledger-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px) clamp(10px, 1.6vw, 22px);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: padding-left .35s var(--ease);
}
.ledger-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--butter-soft), var(--cream-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.ledger-row:hover::before, .ledger-row:focus-visible::before { transform: scaleX(1); }
.ledger-row:hover { padding-left: clamp(18px, 2.4vw, 34px); }
.ledger-idx {
  font-family: var(--mono); font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  color: var(--tan-deep); font-weight: 300; line-height: 1;
}
.ledger-row:hover .ledger-idx { color: var(--coral-deep); }
.ledger-body h3 { margin-bottom: 6px; }
.ledger-body p { color: var(--muted); font-size: 1.02rem; max-width: 56ch; }
.ledger-go {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--tan-deep); color: var(--ink);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.ledger-row:hover .ledger-go { background: var(--coral); border-color: var(--coral); transform: translateX(5px); }
.ledger-tag {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink); display: block; margin-bottom: 8px;
}

/* ---------- 11. panels, result blocks ------------------------------------ */

.panel {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l);
  padding: clamp(20px, 3vw, 40px); box-shadow: var(--lift-1);
}
.panel-flat { box-shadow: none; background: var(--cream-2); border-color: var(--rule-soft); }
.panel-hero { box-shadow: var(--lift-3); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px); align-items: start;
}
.split-4060 { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.split-6040 { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }

.stack-s > * + * { margin-top: 12px; }
.stack-m > * + * { margin-top: 22px; }
.stack-l > * + * { margin-top: clamp(28px, 3.4vw, 48px); }

/* the big answer */
.answer {
  background: linear-gradient(168deg, var(--butter-soft) 0%, var(--paper) 58%);
  border: 1px solid var(--rule); border-radius: var(--r-l);
  padding: clamp(22px, 3.2vw, 44px);
  box-shadow: var(--lift-2);
}
.answer-label {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--coral-ink); margin-bottom: 10px;
}
.answer-date {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.028em;
  color: var(--ink);
}
.answer-sub { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--r-m); overflow: hidden; margin-top: 22px;
}
.stat { background: var(--paper); padding: 16px 18px; }
.stat dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.stat dd {
  margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); line-height: 1.1; letter-spacing: -.015em;
}
.stat dd small { font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* trimester meter */
.meter { margin-top: 26px; }
.meter-bar {
  position: relative; height: 14px; border-radius: var(--r-pill);
  background: var(--cream-3); overflow: hidden;
}
.meter-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--butter) 0%, var(--skin) 42%, var(--coral) 100%);
  width: 0; transition: width 1.1s var(--ease);
}
.meter-scale {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-family: var(--mono); font-size: .78rem; color: var(--faint); letter-spacing: .06em;
}

/* milestone timeline — a rail, not cards */
.rail { position: relative; margin-top: 8px; padding-left: 34px; }
.rail::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--coral) 0%, var(--skin) 50%, var(--rule) 100%);
  border-radius: 2px;
}
.rail-item { position: relative; padding: 14px 0; border-bottom: 1px dashed var(--rule-soft); }
.rail-item:last-child { border-bottom: 0; }
.rail-item::before {
  content: ""; position: absolute; left: -30px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--tan-deep);
}
.rail-item[data-state="past"]::before { background: var(--tan-deep); }
.rail-item[data-state="now"]::before {
  background: var(--coral); border-color: var(--coral); transform: scale(1.35);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 22%, transparent);
}
.rail-item[data-state="past"] { opacity: .62; }
.rail-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; }
.rail-title { font-weight: 600; color: var(--ink); font-size: 1.06rem; }
.rail-when { font-family: var(--mono); font-size: .95rem; color: var(--coral-ink); white-space: nowrap; }
.rail-note { font-size: .98rem; color: var(--muted); margin-top: 3px; }
.rail-week { font-family: var(--mono); font-size: .8rem; color: var(--faint); letter-spacing: .08em; }

/* ---------- 12. checklist / registry ------------------------------------- */

.checkgroup { border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; background: var(--paper); }
.checkgroup + .checkgroup { margin-top: 18px; }
.checkgroup > header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 15px 20px; background: var(--cream-2); border-bottom: 1px solid var(--rule);
}
.checkgroup > header h3 { font-size: 1.2rem; }
.checkgroup-count { font-family: var(--mono); font-size: .88rem; color: var(--muted); white-space: nowrap; }

.check {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px;
  align-items: start; padding: 13px 20px; border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.check:last-child { border-bottom: 0; }
.check:hover { background: var(--cream); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--tan-deep);
  background: var(--paper); display: grid; place-items: center; margin-top: 2px;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.check-box svg { opacity: 0; transform: scale(.6); transition: opacity .18s var(--ease), transform .22s var(--ease); }
.check input:checked + .check-box { background: var(--coral); border-color: var(--coral); }
.check input:checked + .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { outline: 3px solid var(--coral-deep); outline-offset: 2px; }
.check-text b { display: block; font-weight: 600; color: var(--ink); }
.check input:checked ~ .check-text b { text-decoration: line-through; color: var(--faint); }
.check-text span { font-size: .96rem; color: var(--muted); }
.check-why { font-size: .93rem; color: var(--faint); font-style: italic; }
.check-link {
  font-size: .9rem; font-weight: 600; color: var(--coral-ink); white-space: nowrap;
  text-decoration: none; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--rule); background: var(--paper);
}
.check-link:hover { background: var(--butter-soft); border-color: var(--tan-deep); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill); font-size: .93rem; font-weight: 500;
  background: var(--cream-2); border: 1px solid var(--rule-soft); color: var(--ink-2);
}
.pill-coral { background: color-mix(in srgb, var(--coral) 20%, var(--paper)); border-color: color-mix(in srgb, var(--coral) 45%, transparent); color: var(--coral-ink); }
.pill-butter { background: var(--butter-soft); border-color: #EBD98C; color: #6A5410; }

/* ---------- 13. contraction timer ---------------------------------------- */

.timer-face {
  display: grid; place-items: center; gap: 4px;
  aspect-ratio: 1; max-width: 320px; margin-inline: auto;
  border-radius: 50%; position: relative;
  background: radial-gradient(circle at 50% 42%, var(--paper) 0%, var(--cream-2) 74%);
  box-shadow: var(--lift-2), inset 0 0 0 1px var(--rule);
}
.timer-face::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--coral); opacity: 0; transition: opacity .3s;
}
.timer-face[data-running="1"]::after { opacity: 1; animation: pulse-ring 2.4s var(--ease-io) infinite; }
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(1.09); opacity: 0; }
  100% { transform: scale(1.09); opacity: 0; }
}
.timer-elapsed {
  font-family: var(--mono); font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 500;
  color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.timer-state { font-family: var(--mono); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--coral-ink); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 460px; }
table.data th, table.data td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--rule-soft); }
table.data th {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--cream-2); font-weight: 600; position: sticky; top: 0;
}
table.data td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--cream); }

.verdict {
  border-radius: var(--r-m); padding: 18px 22px; border: 1px solid var(--rule);
  background: var(--cream-2); font-size: 1.06rem;
}
.verdict[data-level="go"] { background: color-mix(in srgb, var(--coral) 17%, var(--paper)); border-color: var(--coral); }
.verdict[data-level="soon"] { background: var(--butter-soft); border-color: #EBD98C; }
.verdict b { color: var(--ink); }

/* ---------- 14. week grid / week page ------------------------------------ */

.weekgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px;
}
.weekgrid a {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 15px;
  border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper);
  text-decoration: none; transition: transform .22s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.weekgrid a:hover { transform: translateY(-3px); box-shadow: var(--lift-2); border-color: var(--tan-deep); }
.weekgrid a[data-you="1"] { background: var(--butter-soft); border-color: var(--coral); box-shadow: var(--lift-1); }
.weekgrid .wk { font-family: var(--mono); font-size: 1.28rem; color: var(--ink); font-weight: 500; }
.weekgrid .sz { font-size: .87rem; color: var(--muted); line-height: 1.3; }
.weekgrid .tri { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); }

.sizecard {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(150deg, var(--butter-soft), var(--paper) 62%);
  border: 1px solid var(--rule); border-radius: var(--r-l);
}
.sizecard-blob {
  flex: none; width: clamp(88px, 13vw, 132px); aspect-ratio: 1; border-radius: 47% 53% 55% 45% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 34% 30%, var(--butter) 0%, var(--skin) 46%, var(--tan) 100%);
  box-shadow: inset -6px -8px 18px rgba(64,32,16,.18), var(--lift-1);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; color: var(--brown);
  animation: blob-breathe 9s var(--ease-io) infinite;
}
@keyframes blob-breathe {
  0%, 100% { border-radius: 47% 53% 55% 45% / 52% 46% 54% 48%; transform: rotate(0deg); }
  50%      { border-radius: 54% 46% 44% 56% / 45% 55% 45% 55%; transform: rotate(4deg); }
}

.weeknav { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- 15. gear / merchant rows ------------------------------------- */

.gearlist { border-top: 1px solid var(--rule); }
.gear {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--rule-soft);
}
.gear h4 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; margin-bottom: 3px; }
.gear p { font-size: .98rem; color: var(--muted); margin: 0; max-width: 62ch; }
.gear-meta { font-family: var(--mono); font-size: .82rem; color: var(--faint); letter-spacing: .05em; margin-top: 5px; }

/* ---------- 16. capture -------------------------------------------------- */

.capture {
  background: linear-gradient(155deg, var(--cream-3) 0%, var(--butter-soft) 100%);
  border: 1px solid var(--rule); border-radius: var(--r-l);
  padding: clamp(24px, 3.6vw, 52px);
}
.capture form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.capture .field { flex: 1 1 240px; }
.capture .btn { flex: none; align-self: flex-end; }
.capture-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.capture-msg { margin-top: 16px; font-weight: 600; display: none; }
.capture-msg[data-on="1"] { display: block; }
.capture-msg[data-kind="ok"] { color: #1F6B4A; }
.capture-msg[data-kind="err"] { color: #9E2A22; }

/* ---------- 17. footer --------------------------------------------------- */

.site-foot { background: var(--cream-2); border-top: 1px solid var(--rule); padding-block: clamp(44px, 5vw, 72px) 32px; }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}
.foot-grid h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0 0 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); font-size: 1rem; }
.foot-grid a:hover { color: var(--coral-ink); text-decoration: underline; }
.foot-brand img { height: 42px; margin-bottom: 14px; }
.foot-bottom {
  margin-top: clamp(30px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: .93rem; color: var(--faint);
}

.disclosure {
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--coral);
  border-radius: var(--r-s); padding: 15px 20px; font-size: .96rem; color: var(--muted);
}
.medical-note {
  background: var(--butter-soft); border: 1px solid #EBD98C; border-radius: var(--r-m);
  padding: 15px 20px; font-size: .98rem; color: #5B4A10;
}

/* ---------- 18. faq / prose ---------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 21px 44px 21px 0; position: relative;
  font-family: var(--display); font-size: clamp(1.14rem, 1.7vw, 1.42rem); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--coral-deep); border-bottom: 2px solid var(--coral-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding: 0 0 24px; color: var(--muted); max-width: 74ch; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 1.7em 0 .5em; }
.prose h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin: 1.5em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }

/* ---------- 19. reveal (scroll-tied, degrades to visible) ----------------- */

[data-rise] { opacity: 0; transform: translateY(26px); }
.motion-ready [data-rise] { will-change: opacity, transform; }
.no-motion [data-rise], [data-rise].is-in { opacity: 1; transform: none; }
[data-rise].is-in { transition: opacity .7s var(--ease), transform .8s var(--ease); }

/* ---------- 20. responsive ----------------------------------------------- */

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { order: -1; aspect-ratio: 16 / 11; min-height: 260px; }
  .hero-lede { max-width: 46ch; }
  .split, .split-4060, .split-6040 { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .burger { display: block; }
  .site-head .week-chip[data-on="1"] { display: inline-flex; margin-left: auto; }
  .site-head .week-chip + .burger { margin-left: 8px; }

  .nav[data-open="1"] {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: fixed; inset: 74px 0 auto; z-index: 55;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 14px var(--gut) 22px; box-shadow: var(--lift-2);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav[data-open="1"] a { padding: 14px 12px; font-size: 1.08rem; border-radius: var(--r-m); }
}

@media (max-width: 620px) {
  :root { --gut: 18px; }
  .ledger-row { grid-template-columns: 46px minmax(0, 1fr); padding: 20px 6px; row-gap: 4px; }
  .ledger-go { display: none; }
  .ledger-row:hover { padding-left: 6px; }
  /* stacked, so the hints go back in the flow where there is room for them */
  .datebar-row { flex-direction: column; align-items: stretch; padding-bottom: 0; gap: 16px; }
  .datebar-row .field-hint { position: static; margin-top: 6px; }
  .datebar .btn { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .sizecard { flex-direction: column; align-items: flex-start; }
  .check { grid-template-columns: 26px minmax(0, 1fr); }
  .check-link { grid-column: 2; justify-self: start; margin-top: 4px; }
  .gear { grid-template-columns: minmax(0, 1fr); }
  .weekgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .capture .btn { width: 100%; }
}

/* ---------- 21. reduced motion ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise] { opacity: 1 !important; transform: none !important; }
  .sizecard-blob { animation: none; }
  .timer-face[data-running="1"]::after { animation: none; opacity: .5; }
}

/* ---------- 22. print (the checklist is meant to be printed) ------------- */

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; font-size: 11.5pt; }
  .site-head, .site-foot, .no-print, .burger, .week-chip, .capture, .btn, .faq, video, canvas { display: none !important; }
  .panel, .checkgroup, .answer { box-shadow: none !important; border: 1px solid #999 !important; break-inside: avoid; }
  .checkgroup > header { background: #f2f2f2 !important; }
  .check { break-inside: avoid; padding: 6px 10px; }
  .check-box { border-color: #444 !important; background: #fff !important; }
  .check input:checked + .check-box { background: #fff !important; }
  .check input:checked + .check-box svg path { stroke: #000 !important; }
  .check-text b { text-decoration: none !important; color: #000 !important; }
  .band { padding-block: 10mm; }
  a[href]::after { content: ""; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
