/* PauseNotes design system. Warm clinical calm: linen, clay, deep plum. Light only. */

:root {
  --bg: #FBF7F4;
  --surface: #FFFFFF;
  --ink: #241E24;
  --primary: #7A3B62;
  --accent: #E0A899;
  --muted: #6B5F66;

  --primary-fill: rgba(122, 59, 98, 1);
  --primary-deep: rgba(94, 44, 75, 1);
  --primary-tint-04: rgba(122, 59, 98, 0.04);
  --primary-tint-07: rgba(122, 59, 98, 0.07);
  --primary-tint-12: rgba(122, 59, 98, 0.12);
  --primary-tint-22: rgba(122, 59, 98, 0.22);
  --accent-tint-14: rgba(224, 168, 153, 0.14);
  --accent-tint-30: rgba(224, 168, 153, 0.30);
  --accent-tint-55: rgba(224, 168, 153, 0.55);
  --linen: rgba(246, 239, 233, 1);
  --clay: rgba(240, 228, 220, 1);
  --line: rgba(36, 30, 36, 0.12);
  --line-soft: rgba(36, 30, 36, 0.07);

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.72rem, 1.48rem + 1.2vw, 2.3rem);
  --step-4: clamp(2.05rem, 1.65rem + 2vw, 3.05rem);
  --step-5: clamp(2.45rem, 1.8rem + 3.2vw, 4.1rem);

  --sp-1: 0.35rem;
  --sp-2: 0.7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.7rem;
  --sp-5: 2.6rem;
  --sp-6: 3.9rem;
  --sp-7: 5.8rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(36, 30, 36, 0.05), 0 8px 24px rgba(122, 59, 98, 0.06);
  --shadow-2: 0 2px 4px rgba(36, 30, 36, 0.05), 0 22px 48px rgba(122, 59, 98, 0.10);
  --wrap: 1180px;
  --stroke: 1.5;
}

*, *::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: "Mulish", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* The rising line motif: a faint repeating ascent drawn behind the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(115deg, rgba(224, 168, 153, 0.16) 0 1px, rgba(255, 255, 255, 0) 1px 92px),
    linear-gradient(115deg, rgba(122, 59, 98, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 184px);
  background-size: 260px 260px, 420px 420px;
  opacity: 0.9;
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: "Faustina", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-3);
  color: var(--ink);
}

h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--sp-3); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-1); }
strong { font-weight: 700; }

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

.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(--sp-3);
  top: -100px;
  z-index: 999;
  background-color: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary-tint-22);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: var(--sp-3); }

.wrap { width: min(100% - 2.2rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.2rem, 760px); margin-inline: auto; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(251, 247, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(36, 30, 36, 0.06); background-color: rgba(251, 247, 244, 0.96); }
.header-inner { display: flex; align-items: center; gap: var(--sp-4); padding: 0.75rem 0; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.wordmark span {
  font-family: "Faustina", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.wordmark em { font-style: normal; color: var(--primary); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--accent-tint-55); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background-color: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  padding: 0.92rem 1.5rem;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-primary { background-color: var(--primary-fill); color: #FFFFFF; box-shadow: 0 10px 24px rgba(122, 59, 98, 0.22); }
.btn-primary:hover { background-color: var(--primary-deep); color: #FFFFFF; transform: translateY(-2px); }
.btn-ghost { background-color: var(--surface); color: var(--primary); border-color: var(--primary-tint-22); }
.btn-ghost:hover { background-color: var(--primary-tint-07); transform: translateY(-2px); }
.btn-sm { padding: 0.68rem 1.15rem; font-size: 0.9rem; }
.btn-wide { width: 100%; }

/* ---------------- hero ---------------- */
.hero { padding: var(--sp-7) 0 var(--sp-6); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: var(--sp-6); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-tint-07);
  border: 1px solid var(--primary-tint-12);
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 8px;
  background-image: linear-gradient(60deg, rgba(255,255,255,0) 45%, rgba(122,59,98,0.85) 45% 60%, rgba(255,255,255,0) 60%);
  border-bottom: 1.5px solid var(--primary-tint-22);
}
.hero p.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }

.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); }
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--muted); font-weight: 600; margin: 0; }
.trust-strip svg { width: 18px; height: 18px; flex: none; }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.hero-figure::after {
  content: "";
  position: absolute;
  left: -18px; bottom: -18px;
  width: 62%; height: 62%;
  border-left: 1.5px solid var(--accent-tint-55);
  border-bottom: 1.5px solid var(--accent-tint-55);
  border-radius: 0 0 0 var(--r-xl);
  z-index: -1;
}
.hero-chart {
  position: absolute;
  right: -14px; bottom: -26px;
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 0.9rem 1rem 0.7rem;
  width: 232px;
}
.hero-chart p { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 0 0 0.4rem; }
.hero-chart svg { width: 100%; height: 62px; }
.draw-line { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2.6s ease-out 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- generic section ---------------- */
.section { padding: var(--sp-7) 0; }
.band { background-color: var(--linen); border-block: 1px solid var(--line-soft); }
.band-white { background-color: var(--surface); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-5); }
.section-head .kicker {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--sp-2); display: block;
}
.section-head p { color: var(--muted); font-size: var(--step-1); }

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

.card {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
}
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }
.card-cost {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--primary-tint-22);
  font-weight: 800;
  color: var(--primary);
  font-size: 0.93rem;
}

/* problem cards get the rising rule */
.problem-card { position: relative; overflow: hidden; }
.problem-card::before {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background-image: radial-gradient(circle at 30% 70%, rgba(224,168,153,0.30), rgba(255,255,255,0));
}

/* ---------------- steps ---------------- */
.steps-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--sp-6); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 3.6rem; padding-bottom: var(--sp-5); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: attr(data-step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--primary-tint-22);
  background-color: var(--surface);
  font-family: "Faustina", Georgia, serif;
  font-weight: 600; font-size: 1.05rem; color: var(--primary);
}
.steps li::after {
  content: "";
  position: absolute; left: 1.24rem; top: 2.8rem; bottom: 0.6rem;
  border-left: 1.5px dashed var(--primary-tint-22);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; }
.section-figure img { border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.section-figure figcaption { font-size: 0.88rem; color: var(--muted); margin-top: var(--sp-2); }

/* ---------------- features ---------------- */
.feature { background-color: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-1); }
.feature .ico {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background-color: var(--accent-tint-14);
  border: 1px solid var(--accent-tint-30);
  margin-bottom: var(--sp-3);
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.icon { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- outcomes ---------------- */
.outcome { border-left: 2px solid var(--primary-tint-22); padding-left: var(--sp-4); }
.outcome .num {
  font-family: "Faustina", Georgia, serif;
  font-size: var(--step-4);
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-2);
}
.outcome h3 { font-size: var(--step-1); }
.outcome p { color: var(--muted); margin: 0; }

/* ---------------- testimonials ---------------- */
.testimonial {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.testimonial::before {
  content: "";
  display: block;
  width: 54px; height: 14px;
  margin-bottom: var(--sp-3);
  background-image: linear-gradient(72deg, rgba(255,255,255,0) 46%, rgba(224,168,153,0.9) 46% 62%, rgba(255,255,255,0) 62%);
  border-bottom: 1.5px solid var(--accent-tint-55);
}
.testimonial p { font-family: "Faustina", Georgia, serif; font-size: var(--step-1); line-height: 1.45; }
.testimonial footer { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--muted); }
.testimonial footer strong { display: block; color: var(--ink); font-size: 0.98rem; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.results div { text-align: center; }
.results dt { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.results dd { margin: 0 0 0.25rem; font-family: "Faustina", Georgia, serif; font-size: var(--step-3); color: var(--primary); }

/* ---------------- pricing ---------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.tier {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
}
.tier.is-recommended { border: 1.5px solid var(--primary-tint-22); box-shadow: var(--shadow-2); position: relative; }
.tier-flag {
  position: absolute; top: -0.85rem; left: var(--sp-4);
  background-color: var(--primary-fill);
  color: #FFFFFF;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.34rem 0.8rem; border-radius: var(--r-pill);
}
.tier h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.tier .price { font-family: "Faustina", Georgia, serif; font-size: var(--step-4); color: var(--ink); line-height: 1; }
.tier .per { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.tier .who { color: var(--muted); font-size: 0.94rem; margin: var(--sp-2) 0 var(--sp-3); }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.tier li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; font-size: 0.95rem; }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 0.85rem; height: 0.45rem;
  border-left: 1.5px solid var(--primary-fill);
  border-bottom: 1.5px solid var(--primary-fill);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; color: var(--muted); font-size: 0.94rem; margin-top: var(--sp-4); }

/* ---------------- faq ---------------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background-color: transparent;
  border: 0;
  padding: var(--sp-4) 0;
  text-align: left;
  font-family: "Faustina", Georgia, serif;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q .chev { flex: none; width: 22px; height: 22px; transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 0 var(--sp-4); max-width: 78ch; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------------- form ---------------- */
.contact-shell { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-6); align-items: start; }
.form-card { background-color: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--shadow-2); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background-color: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.85rem;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-tint-22); background-color: var(--surface); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.error { color: var(--primary-deep); font-size: 0.86rem; font-weight: 700; margin-top: 0.3rem; display: block; }
.consent { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: var(--sp-4); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; flex: none; }
.consent label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.form-alt { font-size: 0.9rem; color: var(--muted); margin-top: var(--sp-3); }
[aria-invalid="true"] { border-color: var(--primary-fill) !important; }

.contact-points { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.contact-points li { display: flex; gap: 0.7rem; margin-bottom: var(--sp-3); color: var(--muted); font-size: 0.96rem; }
.contact-points svg { width: 20px; height: 20px; flex: none; margin-top: 0.15rem; }

/* ---------------- byline ---------------- */
.byline {
  display: flex; gap: var(--sp-3); align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-top: var(--sp-6);
}
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ---------------- footer ---------------- */
.site-footer { background-color: var(--linen); border-top: 1px solid var(--line-soft); padding: var(--sp-6) 0 var(--sp-4); margin-top: var(--sp-7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: var(--sp-5); }
.footer-col h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: "Mulish", Arial, sans-serif; font-weight: 800; color: var(--muted); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-pitch { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin-top: var(--sp-3); }
.socials { display: flex; gap: 0.5rem; margin-top: var(--sp-3); }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background-color: var(--surface);
  border: 1px solid var(--line);
}
.socials svg { width: 18px; height: 18px; }
.footer-base {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  font-size: 0.88rem; color: var(--muted);
}

/* ---------------- long form pages ---------------- */
.page-head { padding: var(--sp-6) 0 var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.prose { padding: var(--sp-5) 0 var(--sp-6); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-5); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-4); }
.prose ul { padding-left: 1.3rem; }
.prose dl { margin: 0 0 var(--sp-3); }
.prose dt { font-weight: 800; margin-top: var(--sp-2); }
.prose dd { margin: 0 0 0.4rem; color: var(--muted); }
.author-hero { display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-5); align-items: start; }
.author-hero img { border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.map-group { margin-bottom: var(--sp-5); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft); }
.map-group li span { display: block; color: var(--muted); font-size: 0.9rem; }
.mini-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

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

@media (max-width: 960px) {
  .hero-grid, .steps-layout, .contact-shell, .author-hero { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .tiers, .results { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-chart { position: static; width: auto; margin-top: var(--sp-3); }
  .hero-figure::after { display: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) 1.1rem var(--sp-4);
    box-shadow: var(--shadow-1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: var(--sp-2); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .tiers, .results, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
  .byline { flex-direction: column; align-items: flex-start; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .draw-line { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background-color: #FFFFFF; }
}

/* ---------------- magazine: The Midlife Clinic ---------------- */
.wrap-read { width: min(100% - 2.2rem, 720px); margin-inline: auto; }

.mag-crumb { padding: var(--sp-4) 0 0; }
.mag-crumb ol {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.86rem; color: var(--muted);
}
.mag-crumb li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.mag-crumb li + li::before { content: "/"; color: var(--accent); font-weight: 700; }
.mag-crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.mag-crumb a:hover { color: var(--primary); border-bottom-color: var(--accent-tint-55); }
.mag-crumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.mag-angle {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 800; color: var(--primary);
  background-color: var(--primary-tint-07);
  border: 1px solid var(--primary-tint-12);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  margin-bottom: var(--sp-3);
}

/* article header */
.mag-head { padding: var(--sp-4) 0 0; }
.mag-head h1 { font-size: var(--step-4); max-width: 20ch; max-width: min(100%, 24ch); }
.mag-standfirst {
  font-family: "Faustina", Georgia, "Times New Roman", serif;
  font-size: var(--step-1); line-height: 1.5; color: var(--muted);
  margin-bottom: var(--sp-4);
}
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem var(--sp-3);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: var(--sp-3) 0; margin-bottom: var(--sp-5);
}
.mag-author { margin: 0; font-weight: 700; font-size: 0.96rem; }
.mag-author a { text-decoration: none; border-bottom: 1.5px solid var(--accent-tint-55); }
.mag-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }
.mag-meta span { color: var(--accent); padding: 0 0.2rem; }

.mag-figure { margin: 0 auto var(--sp-5); }
.mag-figure img { border-radius: var(--r-xl); box-shadow: var(--shadow-2); width: 100%; }
.mag-figure figcaption {
  font-size: 0.86rem; color: var(--muted); margin-top: var(--sp-2);
  text-transform: lowercase; letter-spacing: 0.01em;
}

/* article body */
.mag-body { font-size: 1.06rem; line-height: 1.75; }
.mag-body > p, .mag-body > ul, .mag-body > ol, .mag-body > blockquote, .mag-body > table {
  max-width: 68ch;
}
.mag-body h2 {
  font-size: var(--step-2); margin-top: var(--sp-5); margin-bottom: var(--sp-2);
  max-width: 30ch; scroll-margin-top: 5rem;
}
.mag-body h2::after {
  content: ""; display: block; width: 46px; height: 2px;
  background-color: var(--accent); margin-top: var(--sp-2);
}
.mag-body h3 { font-size: var(--step-1); margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.mag-body p { margin-bottom: var(--sp-3); }
.mag-body ul, .mag-body ol { padding-left: 1.3rem; margin-bottom: var(--sp-4); }
.mag-body li { margin-bottom: 0.5rem; }
.mag-body blockquote {
  margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--primary-tint-22);
  background-color: var(--linen);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: "Faustina", Georgia, serif; font-size: var(--step-1); line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--sp-4) 0;
  font-size: 0.95rem; background-color: var(--surface);
  border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden;
}
.mag-body th, .mag-body td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line-soft); }
.mag-body th { background-color: var(--linen); font-weight: 800; font-size: 0.88rem; }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  max-width: 68ch;
  background-color: var(--accent-tint-14);
  border: 1px solid var(--accent-tint-30);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-4) 0;
  font-size: 0.96rem; font-weight: 600;
}
.inline-read a { text-decoration: none; border-bottom: 1.5px solid var(--primary-tint-22); }
.inline-read a:hover { border-bottom-color: var(--primary); }

/* call to action */
.mag-cta {
  background-color: var(--surface);
  border: 1px solid var(--primary-tint-12);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  padding: var(--sp-5);
  margin: var(--sp-6) 0 var(--sp-5);
  text-align: left;
}
.mag-cta h2 { font-size: var(--step-2); max-width: 24ch; }
.mag-cta p { color: var(--muted); max-width: 60ch; }

/* author box */
.mag-authorbox {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background-color: var(--linen);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.mag-authorbox img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.mag-authorbox h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.mag-authorbox p { font-size: 0.94rem; color: var(--muted); margin-bottom: var(--sp-2); }
.mag-authorbox p:last-child { margin-bottom: 0; }

/* read also */
.mag-related { background-color: var(--linen); border-top: 1px solid var(--line-soft); padding: var(--sp-6) 0; }
.mag-related-title { font-size: var(--step-3); margin-bottom: var(--sp-4); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mag-rel {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mag-rel-media { display: block; }
.mag-rel-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.mag-rel-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.mag-rel-body h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.mag-rel-body h3 a { text-decoration: none; color: var(--ink); }
.mag-rel-body h3 a:hover { color: var(--primary); }
.mag-rel-body p { font-size: 0.92rem; color: var(--muted); margin-bottom: var(--sp-2); }
.mag-rel-meta { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.mag-related-all { margin: var(--sp-5) 0 0; }

/* magazine index */
.mag-index-head { padding: var(--sp-5) 0 var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.mag-index-head h1 { font-size: var(--step-5); margin-bottom: var(--sp-3); }
.mag-index-head .mag-standfirst { max-width: 54ch; }
.mag-index-note { color: var(--muted); max-width: 62ch; font-size: 0.98rem; margin: 0; }
.mag-index { padding-top: var(--sp-5); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mag-card {
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.mag-card-media { display: block; }
.mag-card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.mag-card-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.mag-card-title { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.mag-card-title a { text-decoration: none; color: var(--ink); }
.mag-card-title a:hover { color: var(--primary); }
.mag-card-dek { font-size: 0.94rem; color: var(--muted); margin-bottom: var(--sp-3); }
.mag-card-meta {
  margin: auto 0 0; font-size: 0.82rem; color: var(--muted);
  border-top: 1px solid var(--line-soft); padding-top: var(--sp-2);
}
.mag-card-meta span { color: var(--accent); padding: 0 0.15rem; }
.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  border-color: var(--primary-tint-12);
  box-shadow: var(--shadow-2);
}
.mag-card.lead .mag-card-media { flex: 1 1 55%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 300px; }
.mag-card.lead .mag-card-body { flex: 1 1 45%; padding: var(--sp-5); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: 1.02rem; }
.mag-index-cta .mag-cta { margin: 0; }

/* home page magazine teaser */
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mag-teaser-more { margin-top: var(--sp-5); }

@media (max-width: 960px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--sp-4); }
}

@media (max-width: 620px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-head h1 { font-size: var(--step-3); }
  .mag-index-head h1 { font-size: var(--step-4); }
  .mag-body { font-size: 1.02rem; }
  .mag-authorbox { flex-direction: column; }
  .mag-cta { padding: var(--sp-4); }
  .mag-figure img { border-radius: var(--r-lg); }
  .mag-byline { gap: 0.25rem; }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
}


/* 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; }
