/* NannyMatchDesk design system. Household trust: soft white, warm biscuit, deep navy.
   Rufina display over Nunito body. Card sets, ribbon rules, reassuring order.
   Light only. Contrast comes from type, rules, borders and tints. */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #1B1E26;
  --primary: #26426B;
  --accent: #E3C9A6;
  --muted: #616773;

  --primary-tint-04: color-mix(in srgb, var(--primary) 4%, var(--surface));
  --primary-tint-08: color-mix(in srgb, var(--primary) 8%, var(--surface));
  --primary-tint-14: color-mix(in srgb, var(--primary) 14%, var(--surface));
  --primary-tint-26: color-mix(in srgb, var(--primary) 26%, var(--surface));
  --primary-soft: color-mix(in srgb, var(--primary) 62%, var(--muted));
  --accent-tint-30: color-mix(in srgb, var(--accent) 30%, var(--surface));
  --accent-tint-55: color-mix(in srgb, var(--accent) 55%, var(--surface));
  --biscuit: color-mix(in srgb, var(--accent) 34%, var(--bg));
  --line: color-mix(in srgb, var(--primary) 18%, var(--bg));
  --line-strong: color-mix(in srgb, var(--primary) 34%, var(--bg));

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 38px;
  --space-7: 56px;
  --space-8: 84px;
  --space-9: 116px;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(27, 30, 38, 0.05), 0 12px 28px rgba(38, 66, 107, 0.07);
  --shadow-lift: 0 2px 6px rgba(27, 30, 38, 0.07), 0 22px 48px rgba(38, 66, 107, 0.12);
  --shadow-inset: inset 0 0 0 1px var(--line);

  --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.36rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.78rem);
  --step-3: clamp(1.72rem, 1.48rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.3rem);
  --step-5: clamp(2.5rem, 1.9rem + 3vw, 4.1rem);

  --display: "Rufina", "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Nunito", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ease-calm: cubic-bezier(0.22, 0.8, 0.28, 1);
  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  /* biscuit weave: two faint diagonal threads, the household texture of the brand */
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--accent) 15%, transparent) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--primary) 5%, transparent) 0 1px, transparent 1px 22px);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
section { padding-block: var(--space-8); }

.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;
}

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

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 200;
  background: var(--surface); color: var(--primary);
  padding: 10px 18px; border: 2px solid var(--primary); border-radius: var(--radius-pill);
  font-weight: 800; transition: top 180ms var(--ease-calm);
}
.skip-link:focus { top: var(--space-3); }

/* ---------- ribbon rule: the recurring motif ---------- */
.ribbon {
  position: relative; height: 14px; margin: var(--space-5) 0;
  background:
    linear-gradient(to right, transparent 0 6%, var(--line-strong) 6% calc(6% + 1px), transparent calc(6% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), var(--line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 0; width: 26px; height: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%, 22% 50%);
}
.ribbon::before { left: 0; }
.ribbon::after { right: 0; transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--step--1); font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 8px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 78% 50%, 100% 100%, 0 100%);
}

.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--body); font-weight: 800; font-size: var(--step-0);
  padding: 13px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform 220ms var(--ease-calm), box-shadow 220ms var(--ease-calm), background 220ms var(--ease-calm);
}
.btn-primary { background: var(--primary); color: var(--surface); box-shadow: 0 8px 20px rgba(38, 66, 107, 0.22); }
.btn-primary:hover { color: var(--surface); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(38, 66, 107, 0.3); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--accent-tint-30); color: var(--ink); transform: translateY(-2px); }
.btn-quiet { background: var(--accent-tint-55); color: var(--ink); }
.btn-quiet:hover { background: var(--accent); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 240ms var(--ease-calm), background 240ms var(--ease-calm);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(38, 66, 107, 0.1); background: var(--surface); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); padding-block: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.24rem; letter-spacing: -0.01em; }
.wordmark svg { flex: none; }
.wordmark span em { font-style: normal; color: var(--primary); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 6px 2px; position: relative; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right 240ms var(--ease-calm);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-cta { flex: none; }
.nav-toggle {
  display: none; background: var(--surface); border: 2px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 8px 10px; cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); margin: 4px 0; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-8) var(--space-8); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 320px;
  background: linear-gradient(to bottom, var(--accent-tint-30), transparent);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .underline { position: relative; white-space: nowrap; }
.hero h1 .underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.28em;
  background: var(--accent); opacity: 0.5; z-index: -1; border-radius: 3px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block: var(--space-5); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-l); box-shadow: var(--shadow-lift); }
.hero-figure::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--accent);
  border-radius: var(--radius-l); z-index: -1;
}
.hero-figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-4); }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  margin-top: var(--space-6); padding: var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.trust-strip div { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); font-weight: 700; }
.trust-strip svg { flex: none; margin-top: 2px; }
.trust-strip span { color: var(--muted); font-weight: 600; display: block; }

/* ---------- generic card set ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: var(--space-5); box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-calm), box-shadow 260ms var(--ease-calm), border-color 260ms var(--ease-calm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card h3 { font-size: var(--step-1); }
.card p:last-child { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-biscuit { background: var(--biscuit); }
.section-head { max-width: 66ch; margin-bottom: var(--space-6); }

/* ---------- problem ---------- */
.cost-tag {
  display: inline-block; margin-top: var(--space-3); padding: 5px 14px;
  background: var(--primary-tint-08); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 800; color: var(--primary);
}

/* ---------- steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-7); align-items: start; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: var(--space-4); padding-bottom: var(--space-5); position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 62px; bottom: 6px; width: 1px; background: var(--line-strong);
}
.step-number {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--primary);
  background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-card);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { margin-bottom: 0; color: var(--muted); }
.section-figure img { border-radius: var(--radius-l); box-shadow: var(--shadow-lift); }
.section-figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); border-left: 3px solid var(--accent); padding-left: var(--space-3); }

/* ---------- features ---------- */
.feature-card { position: relative; padding-top: var(--space-6); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-s); display: grid; place-items: center;
  background: var(--primary-tint-08); border: 1px solid var(--line); color: var(--primary);
  margin-bottom: var(--space-4);
}
.feature-card h3 { font-size: var(--step-1); }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: var(--space-5); right: var(--space-5); height: 3px;
  background: var(--accent); border-radius: 0 0 3px 3px;
}

/* ---------- outcomes ---------- */
.outcome { border-left: 3px solid var(--accent); padding-left: var(--space-5); }
.outcome .figure-number {
  font-family: var(--display); font-size: var(--step-4); line-height: 1; color: var(--primary);
  display: block; margin-bottom: var(--space-2);
}
.outcome h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------- testimonials ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: var(--space-6) var(--space-5) var(--space-5); box-shadow: var(--shadow-card);
  position: relative; margin: 0;
}
.testimonial::before {
  content: ""; position: absolute; top: -1px; left: var(--space-5); width: 46px; height: 22px;
  background: var(--accent); border-radius: 0 0 var(--radius-s) var(--radius-s);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 66%, 0 100%);
}
.testimonial blockquote { margin: 0 0 var(--space-4); font-size: var(--step-1); font-family: var(--display); line-height: 1.42; }
.testimonial figcaption { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.testimonial figcaption b { display: block; color: var(--ink); font-size: var(--step-0); }
.results-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  margin-top: var(--space-6); padding: var(--space-5); border: 1px solid var(--line-strong);
  border-radius: var(--radius-m); background: var(--primary-tint-04);
}
.results-strip div { text-align: center; }
.results-strip b { display: block; font-family: var(--display); font-size: var(--step-3); color: var(--primary); line-height: 1.1; }
.results-strip span { font-size: var(--step--1); color: var(--muted); font-weight: 700; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.tier-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lift); position: relative; }
.tier-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--ink); font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 18px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tier h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.tier .price { font-family: var(--display); font-size: var(--step-4); color: var(--primary); line-height: 1; }
.tier .per { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.tier .fit { font-size: var(--step--1); color: var(--muted); margin-block: var(--space-3) var(--space-4); }
.tier ul { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.tier li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 0.95rem; align-items: start; }
.tier li svg { margin-top: 5px; color: var(--primary); }
.tier .btn { margin-top: auto; }
.billing-note { text-align: center; margin-top: var(--space-5); font-weight: 700; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: var(--step-1); font-weight: 700; color: var(--ink);
  padding: var(--space-5) 44px var(--space-5) 0; position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 240ms var(--ease-calm);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 var(--space-5); max-width: 78ch; color: var(--muted); }
.faq-a[hidden] { display: none; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--space-7); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: var(--space-6); box-shadow: var(--shadow-lift); }
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 800; font-size: 0.94rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: var(--step-0); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 11px 13px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--primary); border-width: 2px; }
.field-error { display: block; font-size: var(--step--1); font-weight: 800; color: var(--primary); margin-top: 5px; }
.field-error[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.92rem; }
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.form-reassure { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-4); }
.contact-aside ul { list-style: none; padding: 0; }
.contact-aside li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-bottom: var(--space-3); }
.contact-aside li svg { margin-top: 4px; color: var(--primary); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-m); padding: var(--space-5); margin-top: var(--space-7);
}
.byline p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--biscuit); border-top: 2px solid var(--accent); padding-block: var(--space-7) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-6); }
.footer-col h2 { font-size: var(--step-0); font-family: var(--body); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-positioning { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.social-row { display: flex; gap: 10px; margin-top: var(--space-4); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--primary);
  transition: transform 200ms var(--ease-calm), background 200ms var(--ease-calm);
}
.social-row a:hover { transform: translateY(-3px); background: var(--accent-tint-55); }
.footer-base {
  margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line-strong);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--step--1); color: var(--muted);
}

/* ---------- legal and prose pages ---------- */
.page-hero { padding-block: var(--space-7) var(--space-5); border-bottom: 1px solid var(--line); background: var(--surface); }
.prose { max-width: 74ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-6); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-5); }
.prose ul { padding-left: 1.25em; }
.fact-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-5); background: var(--surface); }
.fact-table th, .fact-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.fact-table th { width: 34%; background: var(--primary-tint-04); font-weight: 800; }
.map-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-5); box-shadow: var(--shadow-card); }
.map-group ul { list-style: none; padding: 0; }
.map-group li { border-bottom: 1px dashed var(--line); padding-block: var(--space-3); }
.map-group li:last-child { border-bottom: 0; }
.map-group li span { display: block; color: var(--muted); font-size: 0.92rem; }
.author-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-7); align-items: start; }
.author-portrait img { border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.profile-links { list-style: none; padding: 0; }
.profile-links li { margin-bottom: 10px; }
.big-note { font-family: var(--display); font-size: var(--step-3); }

/* ---------- reveal motion: cards pair together ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 640ms var(--ease-calm), transform 640ms var(--ease-calm); }
.reveal.is-in { opacity: 1; transform: none; }
.pair > * { opacity: 0; transition: opacity 620ms var(--ease-calm), transform 620ms var(--ease-calm); }
.pair > *:nth-child(odd) { transform: translateX(-26px); }
.pair > *:nth-child(even) { transform: translateX(26px); }
.pair.is-in > * { opacity: 1; transform: none; }
.pair.is-in > *:nth-child(2) { transition-delay: 90ms; }
.pair.is-in > *:nth-child(3) { transition-delay: 180ms; }
.pair.is-in > *:nth-child(4) { transition-delay: 270ms; }
.pair.is-in > *:nth-child(5) { transition-delay: 360ms; }
.pair.is-in > *:nth-child(6) { transition-delay: 450ms; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .steps-layout, .contact-layout, .author-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .price-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: var(--space-5); }
}
@media (max-width: 760px) {
  .main-nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--surface);
    border-bottom: 1px solid var(--line-strong); padding: var(--space-4) 20px; display: none;
    box-shadow: var(--shadow-card);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--space-3); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  section { padding-block: var(--space-7); }
  .grid-3, .grid-4, .grid-2, .price-grid, .trust-strip, .results-strip, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-figure::after { display: none; }
}
@media (max-width: 380px) {
  .wrap, .wrap-narrow { width: min(100% - 24px, var(--wrap)); }
  .step { grid-template-columns: 48px 1fr; }
  .step-number { width: 48px; height: 48px; font-size: 1.2rem; }
  .step:not(:last-child)::after { left: 24px; top: 50px; }
}

@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, .pair > * { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   Placement Desk, the magazine. Same tokens, same typefaces, same
   ribbon and card vocabulary as the rest of the desk. Light only.
   ================================================================ */

/* ---------- breadcrumb ---------- */
.mag-crumb { border-bottom: 1px solid var(--line); background: var(--surface); }
.mag-crumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  list-style: none; margin: 0; padding: var(--space-3) 0;
  font-size: var(--step--1); color: var(--muted);
}
.mag-crumb li { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.mag-crumb li + li::before {
  content: ""; width: 12px; height: 7px; background: var(--accent); flex: none;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 40% 50%);
}
.mag-crumb a { color: var(--primary); text-decoration: none; font-weight: 700; }
.mag-crumb a:hover { text-decoration: underline; }
.mag-crumb li[aria-current] {
  color: var(--muted); font-weight: 600;
  max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- magazine masthead ---------- */
.mag-masthead { padding-block: var(--space-7) var(--space-5); background: var(--biscuit); border-bottom: 1px solid var(--line); }
.mag-masthead h1 { font-size: var(--step-5); max-width: 18ch; }
.mag-masthead-note { max-width: 68ch; color: var(--muted); font-size: var(--step-0); margin-bottom: 0; }
.mag-standfirst {
  font-family: var(--display); font-size: var(--step-2); line-height: 1.38;
  color: var(--primary); max-width: 40ch; margin-bottom: var(--space-4);
}

/* ---------- index grid and cards ---------- */
.mag-index { padding-block: var(--space-7) var(--space-8); }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-5); align-items: start; }
.mag-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform 260ms var(--ease-calm), box-shadow 260ms var(--ease-calm), border-color 260ms var(--ease-calm);
}
.mag-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.mag-card-media { display: block; border-bottom: 1px solid var(--line); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mag-kicker {
  font-size: var(--step--1); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin: 0;
}
.mag-card-title { font-size: var(--step-1); margin: 0; line-height: 1.24; }
.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.96rem; margin: 0; }
.mag-card-meta {
  margin: 0; margin-top: auto; padding-top: var(--space-3); border-top: 1px dashed var(--line);
  font-size: var(--step--1); color: var(--muted); font-weight: 700;
  display: flex; align-items: center; gap: var(--space-2);
}
.mag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* the lead card carries the first article across the full row */
.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: var(--line-strong); }
.mag-card.lead .mag-card-media { flex: 1 1 56%; border-bottom: 0; border-right: 1px solid var(--line); }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: 16 / 10; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; justify-content: center; padding: var(--space-6); background: var(--primary-tint-04); }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }
.mag-index-foot { margin-top: var(--space-7); color: var(--muted); max-width: 70ch; }

/* ---------- article page ---------- */
.mag-article { padding-block: var(--space-7) var(--space-8); }
.mag-head { max-width: 72ch; margin-inline: auto; }
.mag-head h1 { font-size: var(--step-4); margin-bottom: var(--space-4); }
.mag-head .mag-standfirst { max-width: 60ch; }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  font-size: var(--step--1); color: var(--muted); font-weight: 700;
}
.mag-byline-who a { color: var(--primary); font-weight: 800; }
.mag-byline-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }
.mag-figure { margin: var(--space-6) auto var(--space-7); max-width: 980px; position: relative; }
.mag-figure img { border-radius: var(--radius-l); box-shadow: var(--shadow-lift); width: 100%; }

/* body typography: measure of about 68 characters, calm vertical rhythm */
.mag-body { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.72; }
.mag-body > p { margin: 0 0 var(--space-5); }
.mag-body h2 {
  font-size: var(--step-2); line-height: 1.2; margin: var(--space-7) 0 var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--line);
}
.mag-body h3 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }
.mag-body ul, .mag-body ol { margin: 0 0 var(--space-5); padding-left: 1.3em; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body li::marker { color: var(--primary); font-weight: 800; }
.mag-body strong { font-weight: 800; color: var(--ink); }
.mag-body blockquote {
  margin: var(--space-6) 0; padding: var(--space-4) var(--space-5);
  background: var(--primary-tint-04); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-family: var(--display); font-size: var(--step-1); line-height: 1.46;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 var(--space-5);
  background: var(--surface); font-size: 0.95rem; display: block; overflow-x: auto;
}
.mag-body th, .mag-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.mag-body th { background: var(--primary-tint-08); font-weight: 800; }
.mag-body tbody tr:nth-child(even) td { background: var(--primary-tint-04); }

.inline-read {
  margin: var(--space-5) 0; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  background: var(--accent-tint-30); border-radius: var(--radius-m);
  border-left: 4px solid var(--accent); font-size: var(--step--1); font-weight: 700;
  color: var(--muted);
}
.inline-read a { color: var(--primary); font-weight: 800; }

/* ---------- call to action ---------- */
.mag-cta {
  max-width: 72ch; margin: var(--space-7) auto 0; padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  box-shadow: var(--shadow-card); position: relative;
}
.mag-cta::before {
  content: ""; position: absolute; top: -1px; left: var(--space-6); width: 64px; height: 8px;
  background: var(--accent); border-radius: 0 0 4px 4px;
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); }
.mag-cta-action { margin: 0; }

/* ---------- author box ---------- */
.mag-author {
  max-width: 72ch; margin: var(--space-6) auto 0; padding: var(--space-5);
  display: grid; grid-template-columns: 128px 1fr; gap: var(--space-5); align-items: start;
  background: var(--biscuit); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.mag-author img { border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-card); width: 128px; height: 128px; object-fit: cover; }
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.mag-author p { font-size: 0.96rem; color: var(--muted); margin-bottom: var(--space-3); }
.mag-author-link { margin-bottom: 0; }
.mag-author-link a { font-weight: 800; }

/* ---------- read also ---------- */
.mag-related { max-width: 1000px; margin: var(--space-8) auto 0; }
.mag-related > h2 { font-size: var(--step-3); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mag-rel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 0 0 var(--space-4); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-calm), box-shadow 260ms var(--ease-calm);
}
.mag-rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mag-rel-media { display: block; border-bottom: 1px solid var(--line); }
.mag-rel-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: var(--step-0); line-height: 1.3; margin: var(--space-4) var(--space-4) var(--space-2); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary); text-decoration: underline; }
.mag-rel-dek { font-size: 0.9rem; color: var(--muted); margin: 0 var(--space-4) var(--space-3); }
.mag-rel-meta { font-size: var(--step--1); color: var(--muted); margin: 0 var(--space-4); font-weight: 700; }

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

/* ---------- author page article list ---------- */
.mag-list { list-style: none; padding: 0; margin: 0; }
.mag-list li { border-bottom: 1px dashed var(--line); padding-block: var(--space-3); margin: 0; }
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 700; }
.mag-list time { display: block; font-size: var(--step--1); color: var(--muted); }

/* ---------- magazine responsive ---------- */
@media (max-width: 980px) {
  .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 { border-right: 0; border-bottom: 1px solid var(--line); }
  .mag-card.lead .mag-card-media img { aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--space-5); }
}
@media (max-width: 760px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-article { padding-block: var(--space-6) var(--space-7); }
  .mag-figure { margin-block: var(--space-5) var(--space-6); }
  .mag-body { font-size: 1.02rem; }
  .mag-author { grid-template-columns: 1fr; justify-items: start; }
  .mag-cta { padding: var(--space-5); }
  .mag-crumb li[aria-current] { max-width: 100%; white-space: normal; }
}
@media (max-width: 380px) {
  .mag-card-body, .mag-card.lead .mag-card-body { padding: var(--space-4); }
  .mag-author img { width: 92px; height: 92px; }
  .mag-body th, .mag-body td { padding: 8px 10px; }
  .mag-head h1 { font-size: var(--step-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; }
