/* DoulaDay design system. Quiet strength: warm ivory, dusk rose, deep indigo anchor. */

:root {
  --bg: #FCF8F6;
  --surface: #FFFFFF;
  --ink: #1F1D2B;
  --primary: #3B3566;
  --accent: #D99BA5;
  --muted: #67637A;

  --primary-tint-06: #F2F1F6;
  --primary-tint-12: #E7E5EE;
  --primary-tint-20: #D6D3E2;
  --accent-tint-10: #FBF2F3;
  --accent-tint-22: #F6E5E8;
  --accent-line: #EBD2D7;
  --rule: #E4DEDB;
  --rule-strong: #CFC7C6;

  --space-1: 0.4rem;
  --space-2: 0.75rem;
  --space-3: 1.15rem;
  --space-4: 1.8rem;
  --space-5: 2.8rem;
  --space-6: 4.2rem;
  --space-7: 6.4rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-s: 0 1px 2px rgba(31, 29, 43, 0.05);
  --shadow-m: 0 10px 34px rgba(31, 29, 43, 0.07);
  --shadow-l: 0 24px 60px rgba(31, 29, 43, 0.10);

  --display: "Cormorant", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Assistant", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.36rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.8vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.7vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3vw, 4.4rem);

  --measure: 66ch;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* soft crescent wash behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(58vw 58vw at 88% -12%, rgba(217, 155, 165, 0.22), rgba(217, 155, 165, 0) 62%),
    radial-gradient(46vw 46vw at -8% 22%, rgba(59, 53, 102, 0.07), rgba(59, 53, 102, 0) 60%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 var(--space-3);
}

h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0 0 var(--space-3); max-width: var(--measure); }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--space-3); padding-left: 1.1rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }

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

.visually-hidden {
  position: absolute !important; 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: var(--space-3); top: -4rem; z-index: 60;
  background-color: var(--surface); color: var(--primary);
  padding: 0.7rem 1.1rem; border: 1px solid var(--primary); border-radius: var(--radius-s);
  font-weight: 600; transition: top 0.18s ease;
}
.skip-link:focus { top: var(--space-3); }

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

/* ---------- eyebrow, rules, crescent motif ---------- */

.eyebrow {
  font-family: var(--body);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--space-3); display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1px solid var(--accent);
  background-image: linear-gradient(105deg, var(--accent-tint-22) 0 52%, rgba(255, 255, 255, 0) 52%);
}

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

.vrule { border-left: 1px solid var(--rule); padding-left: var(--space-4); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 0.82rem 1.5rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background-color: var(--primary); color: #FFFFFF; }
.btn-primary:hover { opacity: 0.88; color: #FFFFFF; }
.btn-ghost { background-color: var(--surface); color: var(--primary); border-color: var(--primary-tint-20); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-quiet { background-color: var(--accent-tint-10); color: var(--primary); border-color: var(--accent-line); }
.btn-quiet:hover { background-color: var(--accent-tint-22); }
.btn-block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background-color: rgba(252, 248, 246, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: var(--shadow-s); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: 74px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 32px; height: 32px; flex: none; }
.wordmark span {
  font-family: var(--display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: var(--space-4); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-size: 0.94rem; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 0.35rem 0; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.header-cta { flex: none; }

.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius-s);
  width: 44px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--space-6); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-5); }

.trust {
  list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3);
}
.trust li { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.trust b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-l) var(--radius-l) 120px var(--radius-l); box-shadow: var(--shadow-l); }
.hero-figure::after {
  content: ""; position: absolute; right: -18px; top: -22px; width: 118px; height: 118px;
  border-radius: 50%; border: 1px solid var(--accent);
  background-image: linear-gradient(120deg, var(--accent-tint-22) 0 50%, rgba(255, 255, 255, 0) 50%);
}
.hero-caption {
  position: absolute; left: -14px; bottom: 26px;
  background-color: var(--surface); border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  padding: 0.7rem 1rem; border-radius: var(--radius-s); box-shadow: var(--shadow-m);
  font-size: 0.85rem; color: var(--muted); max-width: 15rem;
}
.hero-caption b { display: block; color: var(--ink); font-size: 0.95rem; }

/* ---------- generic sections ---------- */

section { padding: var(--space-7) 0; }
.section-head { max-width: 58ch; margin-bottom: var(--space-5); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

.grid { display: grid; gap: var(--space-3); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background-color: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-m); padding: var(--space-4);
  box-shadow: var(--shadow-s);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* problem cards, cost line */
.cost {
  display: block; margin-top: var(--space-3); padding-top: var(--space-2);
  border-top: 1px dashed var(--accent-line);
  font-family: var(--display); font-size: 1.25rem; color: var(--primary); font-weight: 600;
}

/* ---------- steps ---------- */

.steps-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.steps li { position: relative; margin: 0; padding: 0 0 var(--space-5) var(--space-4); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; border: 1px solid var(--primary); background-color: var(--bg);
  background-image: linear-gradient(110deg, var(--primary-tint-20) 0 50%, rgba(255, 255, 255, 0) 50%);
}
.steps .num {
  font-family: var(--display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.2rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin-bottom: 0; }

.figure-frame { position: relative; padding: 14px; }
.figure-frame img { border-radius: var(--radius-m); box-shadow: var(--shadow-m); }
.figure-frame::before {
  content: ""; position: absolute; inset: 0 0 0 0; border: 1px solid var(--accent-line);
  border-radius: var(--radius-m); transform: translate(14px, 14px);
}
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-3); padding-left: 2px; }

/* ---------- features ---------- */

.feature { display: grid; gap: 0.75rem; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent-line);
  background-color: var(--accent-tint-10);
  display: grid; place-items: center;
}
.feature .icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1; }

/* ---------- calendar motif ---------- */

.oncall-panel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: var(--space-4); box-shadow: var(--shadow-m);
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: var(--space-3); }
.cal span {
  aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; font-size: 0.72rem; color: var(--muted);
  background-color: var(--surface);
}
.cal span.window {
  border-color: var(--accent); color: var(--primary); font-weight: 700;
  background-color: var(--accent-tint-22);
  animation: fillwindow 3.4s ease-in-out infinite alternate;
}
.cal span.backup { border-color: var(--primary-tint-20); background-color: var(--primary-tint-06); color: var(--primary); }
@keyframes fillwindow { from { opacity: 0.55; } to { opacity: 1; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); font-size: 0.82rem; color: var(--muted); }
.cal-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.4rem; border: 1px solid var(--accent); background-color: var(--accent-tint-22); }
.cal-legend i.b { border-color: var(--primary-tint-20); background-color: var(--primary-tint-12); }

/* ---------- outcomes ---------- */

.outcome { border-top: 2px solid var(--primary-tint-20); padding-top: var(--space-3); }
.outcome .figure { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--primary); font-weight: 600; }
.outcome h3 { margin: 0.6rem 0 0.4rem; }
.outcome p { color: var(--muted); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- testimonials ---------- */

.testimonial {
  background-color: var(--surface); border: 1px solid var(--rule); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: var(--space-4); margin: 0;
  box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: var(--space-3);
}
.testimonial p { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: var(--ink); margin: 0; }
.testimonial footer { font-size: 0.86rem; color: var(--muted); margin-top: auto; }
.testimonial footer b { display: block; color: var(--ink); font-size: 0.95rem; font-family: var(--body); }

.results {
  margin-top: var(--space-5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: var(--space-4) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
.results div { text-align: center; border-left: 1px solid var(--rule); }
.results div:first-child { border-left: 0; }
.results b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary); font-weight: 600; line-height: 1; }
.results span { font-size: 0.86rem; color: var(--muted); }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: start; }
.tier {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3);
}
.tier.featured { border-color: var(--primary); box-shadow: var(--shadow-m); }
.tier .badge {
  align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); background-color: var(--primary-tint-12); border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}
.tier .price { font-family: var(--display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--ink); }
.tier .price small { font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; color: var(--muted); margin-bottom: 0.55rem; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 0.5rem; width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--accent);
  background-image: linear-gradient(110deg, var(--accent-tint-22) 0 50%, rgba(255, 255, 255, 0) 50%);
}
.tier .btn { margin-top: auto; }
.billing-note { margin-top: var(--space-4); font-size: 0.9rem; color: var(--muted); text-align: center; max-width: none; }

/* ---------- faq ---------- */

.faq-list { border-top: 1px solid var(--rule); max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0; cursor: pointer;
  font-family: var(--display); font-size: var(--step-2); font-weight: 500; color: var(--ink);
  padding: var(--space-3) 2.5rem var(--space-3) 0; position: relative; line-height: 1.2;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1px solid var(--primary); border-radius: 50%;
  background-image: linear-gradient(110deg, var(--primary-tint-20) 0 50%, rgba(255, 255, 255, 0) 50%);
  transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(180deg); }
.faq-a { padding: 0 0 var(--space-3); }
.faq-a p { color: var(--muted); margin: 0; }
.faq-a[hidden] { display: none; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-panel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-m);
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 0.98rem; color: var(--ink);
  background-color: var(--bg); border: 1px solid var(--rule-strong); border-radius: var(--radius-s);
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #A3324A; }
.err { display: block; color: #A3324A; font-size: 0.83rem; margin-top: 0.3rem; min-height: 1em; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; }
.consent label { font-weight: 400; }
.form-foot { font-size: 0.86rem; color: var(--muted); margin-top: var(--space-3); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.contact-side ul { list-style: none; padding: 0; }
.contact-side li { border-top: 1px solid var(--rule); padding: var(--space-2) 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- byline ---------- */

.byline {
  border-top: 1px solid var(--rule); padding-top: var(--space-3); margin-top: var(--space-6);
  font-size: 0.9rem; color: var(--muted); max-width: var(--measure);
}

/* ---------- footer ---------- */

.site-footer { background-color: var(--primary-tint-06); border-top: 1px solid var(--rule); padding: var(--space-6) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4); }
.footer-col h4 { font-family: var(--body); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-col p { font-size: 0.92rem; color: var(--muted); }
.socials { display: flex; gap: 0.5rem; margin-top: var(--space-3); }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule-strong);
  display: grid; place-items: center; background-color: var(--surface);
}
.socials svg { width: 17px; height: 17px; stroke: var(--primary); fill: none; stroke-width: 1.2; }
.footer-base {
  margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between;
  font-size: 0.86rem; color: var(--muted);
}

/* ---------- prose pages ---------- */

.page-head { padding: var(--space-6) 0 var(--space-4); border-bottom: 1px solid var(--rule); }
.page-head p { color: var(--muted); font-size: var(--step-1); }
.prose { padding: var(--space-5) 0 var(--space-7); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-5); }
.prose h3 { margin-top: var(--space-4); }
.prose p, .prose li { color: var(--muted); max-width: 72ch; }
.prose li { font-size: 0.98rem; }
.dl { border-top: 1px solid var(--rule); margin: var(--space-4) 0 0; }
.dl div { display: grid; grid-template-columns: 16rem 1fr; gap: var(--space-3); border-bottom: 1px solid var(--rule); padding: var(--space-2) 0; }
.dl dt { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.dl dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.author-portrait img { border-radius: var(--radius-m) var(--radius-m) 90px var(--radius-m); box-shadow: var(--shadow-m); }
.profile-links { list-style: none; padding: 0; }
.profile-links li { border-bottom: 1px solid var(--rule); padding: 0.55rem 0; }

.map-group { border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
.map-group li a { font-weight: 600; text-decoration: none; }
.map-group li span { display: block; color: var(--muted); font-size: 0.9rem; }

.centered { text-align: center; max-width: 640px; margin-inline: auto; }
.centered p { margin-inline: auto; }
.centered .hero-actions { justify-content: center; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid, .steps-layout, .contact-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-lead { max-width: 46ch; }
}

@media (max-width: 780px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    background-color: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-m);
    padding: var(--space-3) var(--gutter);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .g2, .g3, .tiers, .results { grid-template-columns: 1fr; }
  .results div { border-left: 0; border-top: 1px solid var(--rule); padding-top: var(--space-3); }
  .results div:first-child { border-top: 0; padding-top: 0; }
  .fields-2 { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .dl div { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero-caption { position: static; margin-top: var(--space-3); max-width: none; }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .hero-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ================================================================
   The Call Bag: the DoulaDay magazine
   Built from the tokens above. Light only, Cormorant over Assistant.
   ================================================================ */

/* ---------- breadcrumb ---------- */

.mag-crumb { padding-top: var(--space-4); }
.mag-crumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--muted);
}
.mag-crumb li { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.mag-crumb li + li::before {
  content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%;
  border: 1px solid var(--accent-line);
  background-image: linear-gradient(110deg, var(--accent-tint-22) 0 50%, rgba(255, 255, 255, 0) 50%);
}
.mag-crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.mag-crumb a:hover { color: var(--primary); border-bottom-color: var(--accent); }
.mag-crumb span { color: var(--ink); font-weight: 600; }

/* ---------- shared magazine furniture ---------- */

.mag-kicker {
  font-family: var(--body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 0.5rem;
}
.mag-dot {
  width: 4px; height: 4px; border-radius: 50%; background-color: var(--rule-strong);
  display: inline-block; margin: 0 0.55rem; vertical-align: middle;
}
.mag-standfirst {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.32;
  color: var(--muted); max-width: 34ch; margin-bottom: var(--space-4);
}

/* ---------- magazine index ---------- */

.mag-index-head { padding: var(--space-5) 0 var(--space-4); }
.mag-index-head h1 { max-width: 16ch; margin-bottom: var(--space-3); }
.mag-index-head .mag-standfirst { max-width: 42ch; }
.mag-index-note {
  border-top: 1px solid var(--rule); padding-top: var(--space-3);
  max-width: 62ch; color: var(--muted); font-size: 0.96rem; margin: 0;
}

.mag-index-grid-wrap { padding-top: var(--space-4); }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }

.mag-card {
  grid-column: span 1;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.mag-card:hover { box-shadow: var(--shadow-m); border-color: var(--rule-strong); }
.mag-card-media { display: block; overflow: hidden; background-color: var(--primary-tint-06); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity 0.3s ease; }
.mag-card:hover .mag-card-media img { opacity: 0.92; }
.mag-card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.mag-card-title { font-size: var(--step-1); font-family: var(--display); font-weight: 500; line-height: 1.16; margin: 0; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); }
.mag-card-dek { color: var(--muted); font-size: 0.93rem; line-height: 1.55; margin: 0; max-width: none; }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--space-3); border-top: 1px dashed var(--accent-line);
  font-size: 0.8rem; color: var(--muted); max-width: none;
}

/* the lead card runs the full width of the grid, image beside the copy */
.mag-card.lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  border-left: 2px solid var(--accent);
}
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: 16 / 10; }
.mag-card.lead .mag-card-body { padding: clamp(1.6rem, 3.4vw, 2.8rem); justify-content: center; gap: 0.75rem; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); line-height: 1.08; }
.mag-card.lead .mag-card-dek { font-size: 1.02rem; max-width: 46ch; }

/* ---------- article page ---------- */

.mag-article { padding: var(--space-4) 0 var(--space-6); }

.mag-head { max-width: 62rem; margin-bottom: var(--space-5); }
.mag-head h1 { font-size: var(--step-3); max-width: 22ch; margin-bottom: var(--space-3); }
.mag-head .mag-standfirst { max-width: 48ch; font-size: var(--step-1); line-height: 1.45; }

.mag-byline {
  border-top: 1px solid var(--rule); padding-top: var(--space-3);
  font-size: 0.86rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.1rem;
}
.mag-byline .mag-by { font-weight: 600; color: var(--ink); }
.mag-byline a { color: var(--primary); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.mag-byline a:hover { border-bottom-color: var(--accent); }

.mag-figure { margin: 0 0 var(--space-5); }
.mag-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-l) var(--radius-l) 110px var(--radius-l);
  box-shadow: var(--shadow-m);
}

/* ---------- article body typography ---------- */

.mag-body { max-width: 70ch; }
.mag-body > p, .mag-body > ul, .mag-body > ol, .mag-body > blockquote, .mag-body > table {
  max-width: 70ch;
}
.mag-body p { font-size: 1.06rem; line-height: 1.72; color: var(--ink); margin: 0 0 var(--space-3); max-width: 70ch; }
.mag-body h2 {
  font-size: var(--step-2); line-height: 1.14; margin: var(--space-6) 0 var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--rule); max-width: 26ch;
}
.mag-body h3 {
  font-family: var(--body); font-size: 1.06rem; font-weight: 700; letter-spacing: 0.01em;
  margin: var(--space-4) 0 var(--space-2); color: var(--ink);
}
.mag-body ul, .mag-body ol { margin: 0 0 var(--space-4); padding-left: 1.35rem; }
.mag-body li { margin-bottom: 0.55rem; line-height: 1.68; font-size: 1.02rem; }
.mag-body li::marker { color: var(--accent); }
.mag-body a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent-line); }
.mag-body a:hover { text-decoration-color: var(--accent); color: var(--ink); }
.mag-body strong { color: var(--ink); }

.mag-body blockquote {
  margin: var(--space-4) 0; padding: var(--space-3) 0 var(--space-3) var(--space-4);
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.35rem; line-height: 1.42; color: var(--ink);
}
.mag-body blockquote p { font-family: var(--display); font-size: 1.35rem; line-height: 1.42; margin: 0; }

.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--space-4) 0;
  font-size: 0.95rem; background-color: var(--surface);
}
.mag-body th, .mag-body td {
  text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.mag-body thead th {
  background-color: var(--primary-tint-06); color: var(--ink);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}

/* contextual link the assembler places between sections */
.mag-body .inline-read {
  background-color: var(--accent-tint-10);
  border: 1px solid var(--accent-line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-s);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) 0;
  font-size: 0.95rem; color: var(--muted); line-height: 1.5;
}
.mag-body .inline-read a { font-weight: 600; color: var(--primary); }

/* ---------- call to action ---------- */

.mag-cta {
  margin: var(--space-6) 0 0;
  background-color: var(--primary-tint-06);
  border: 1px solid var(--primary-tint-12);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.mag-cta h2 {
  font-size: var(--step-2); margin: 0 0 var(--space-3); border-top: 0; padding-top: 0;
  max-width: 22ch;
}
.mag-cta p { color: var(--muted); font-size: 1rem; max-width: 54ch; }
.mag-cta-actions { margin: var(--space-3) 0 0; }
.mag-cta-actions a { text-decoration: none; }

/* ---------- author box ---------- */

.mag-author {
  margin: var(--space-5) 0 0;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-4);
  display: grid; grid-template-columns: 128px 1fr; gap: var(--space-4); align-items: start;
}
.mag-author-photo {
  width: 128px; height: 128px; object-fit: cover;
  border-radius: var(--radius-m) var(--radius-m) 60px var(--radius-m);
  border: 1px solid var(--rule); box-shadow: var(--shadow-s);
}
.mag-author-copy h2 { font-size: var(--step-1); margin: 0 0 var(--space-2); border-top: 0; padding-top: 0; }
.mag-author-copy p { color: var(--muted); font-size: 0.97rem; line-height: 1.62; max-width: 60ch; }
.mag-author-copy p:last-child { margin-bottom: 0; }

/* ---------- read also ---------- */

.mag-related { padding: var(--space-6) 0 var(--space-7); border-top: 1px solid var(--rule); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.mag-rel {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  overflow: hidden; padding-bottom: var(--space-3);
  transition: box-shadow 0.25s ease;
}
.mag-rel:hover { box-shadow: var(--shadow-m); }
.mag-rel-media { display: block; background-color: var(--primary-tint-06); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title {
  font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.2;
  margin: var(--space-3) var(--space-3) 0.4rem; letter-spacing: 0;
}
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); }
.mag-rel-dek {
  margin: 0 var(--space-3) 0.6rem; color: var(--muted); font-size: 0.9rem; line-height: 1.5;
  max-width: none;
}
.mag-rel-meta { margin: 0 var(--space-3); font-size: 0.78rem; color: var(--muted); max-width: none; }
.mag-related-all { margin: var(--space-4) 0 0; font-weight: 600; }

/* ---------- home page magazine teaser ---------- */

.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.mag-teaser {
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s);
}
.mag-teaser img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-teaser-body { padding: var(--space-3) var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.mag-teaser h3 { font-family: var(--display); font-weight: 500; font-size: 1.28rem; line-height: 1.18; margin: 0; letter-spacing: 0; }
.mag-teaser h3 a { color: var(--ink); text-decoration: none; }
.mag-teaser h3 a:hover { color: var(--primary); }
.mag-teaser p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; max-width: none; }
.mag-teaser time { font-size: 0.79rem; color: var(--muted); margin-top: auto; padding-top: var(--space-3); border-top: 1px dashed var(--accent-line); }
.mag-teaser-more { margin-top: var(--space-4); font-weight: 600; }

/* ---------- published articles list, author page ---------- */

.pub-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; border-top: 1px solid var(--rule); }
.pub-list li { border-bottom: 1px solid var(--rule); padding: 0.7rem 0; margin: 0; }
.pub-list a { font-weight: 600; text-decoration: none; color: var(--ink); }
.pub-list a:hover { color: var(--primary); text-decoration: underline; }
.pub-list time { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

/* ---------- magazine responsive ---------- */

@media (max-width: 1000px) {
  .mag-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(3, 1fr); }
  .mag-card.lead { grid-template-columns: 1fr; }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; }
}

@media (max-width: 780px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-head h1 { max-width: none; }
  .mag-body h2 { max-width: none; }
  .mag-figure img { border-radius: var(--radius-m); }
  .mag-author { grid-template-columns: 1fr; }
  .mag-author-photo { width: 104px; height: 104px; }
  .mag-body table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .mag-standfirst { font-size: var(--step-1); max-width: none; }
  .mag-card-body { padding: var(--space-3); }
  .mag-card.lead .mag-card-body { padding: var(--space-3); }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
  .mag-body p, .mag-body li { font-size: 1rem; }
  .mag-byline { gap: 0.15rem 0; }
  .mag-cta, .mag-index-head { padding-left: 0; padding-right: 0; }
  .mag-cta { padding: var(--space-3); }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
