/* FertilityWindow design system
   Hopeful clinical: bright white, soft sky, warm coral.
   Nixie One headlines over Karla. Calendar grid motifs, gentle circular progress.
   Light mode only. Contrast comes from type, rules, borders and tints. */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #1A1E26;
  --primary: #2B6394;
  --accent: #F5A896;
  --muted: #5C636D;

  --sky-050: #F3F8FD;
  --sky-100: #E6F0F9;
  --sky-200: #D2E3F2;
  --sky-300: #B6D0E8;
  --primary-deep: #1F4C74;
  --coral-050: #FEF5F2;
  --coral-100: #FCE7E0;
  --coral-200: #F9D2C7;
  --line: #DCE4EC;
  --line-soft: #EDF1F6;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(26, 30, 38, 0.05);
  --shadow-2: 0 10px 30px rgba(31, 76, 116, 0.08);
  --shadow-3: 0 22px 60px rgba(31, 76, 116, 0.12);

  --font-display: "Nixie One", "Iowan Old Style", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --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.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.66rem + 1.2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.94rem + 2.2vw, 3.9rem);

  --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(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}

/* the whole page sits on a faint calendar grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.75;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 60%, rgba(0,0,0,0));
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-4); }
a { color: var(--primary-deep); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0 0 var(--space-4); padding-left: 1.15rem; }
li { margin-bottom: var(--space-2); }
strong { font-weight: 700; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  background: var(--surface);
  color: var(--primary-deep);
  padding: 12px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 999;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-2); border-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark svg { flex: none; }
.wordmark b { font-weight: 400; color: var(--primary-deep); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--accent); color: var(--primary-deep); }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--primary-deep);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { background: var(--primary-deep); color: var(--surface); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--primary-deep);
  border-color: var(--sky-300);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--sky-050); }
.btn-coral {
  background: var(--coral-100);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-coral:hover { background: var(--coral-200); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- sections */
main { display: block; }
section { padding: var(--space-9) 0; }
.band-tint { background: var(--sky-050); border-block: 1px solid var(--line-soft); }
.band-surface { background: var(--surface); border-block: 1px solid var(--line-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 26px;
  border: 1.5px solid var(--sky-300);
  border-radius: 6px;
  background:
    linear-gradient(to right, var(--sky-200) 1px, transparent 1px) 0 0 / 8.6px 8.6px,
    linear-gradient(to bottom, var(--sky-200) 1px, transparent 1px) 0 0 / 8.6px 8.6px;
}

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

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

/* ---------------------------------------------------------------- hero */
.hero { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 em {
  font-style: normal;
  color: var(--primary-deep);
  box-shadow: inset 0 -0.28em 0 var(--coral-100);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.trust-strip div {
  padding: var(--space-4) var(--space-4);
  border-right: 1px solid var(--line-soft);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-deep);
  line-height: 1.1;
}
.trust-strip span { font-size: var(--step--1); color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: -18px; bottom: -18px;
  width: 118px; height: 118px;
  border-radius: var(--radius);
  border: 1.5px solid var(--sky-300);
  background:
    linear-gradient(to right, var(--sky-200) 1px, transparent 1px) 0 0 / 19.6px 19.6px,
    linear-gradient(to bottom, var(--sky-200) 1px, transparent 1px) 0 0 / 19.6px 19.6px,
    var(--surface);
}

.hero-chip {
  position: absolute;
  top: 20px; right: -14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step--1);
  font-weight: 700;
}

/* gentle circular progress */
.ring { display: block; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: var(--sky-200); stroke-width: 4; }
.ring .arc {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: close-ring 2.4s cubic-bezier(0.22, 0.75, 0.3, 1) forwards;
}
@keyframes close-ring { to { stroke-dashoffset: 22; } }

/* calendar cells that light in sequence */
.cell-run { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: var(--space-5); }
.cell-run i {
  display: block;
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid var(--sky-200);
  background: var(--surface);
  animation: cell-light 5.6s ease-in-out infinite;
}
.cell-run i:nth-child(1) { animation-delay: 0s; }
.cell-run i:nth-child(2) { animation-delay: 0.22s; }
.cell-run i:nth-child(3) { animation-delay: 0.44s; }
.cell-run i:nth-child(4) { animation-delay: 0.66s; }
.cell-run i:nth-child(5) { animation-delay: 0.88s; }
.cell-run i:nth-child(6) { animation-delay: 1.1s; }
.cell-run i:nth-child(7) { animation-delay: 1.32s; }
@keyframes cell-light {
  0%, 60%, 100% { background: var(--surface); border-color: var(--sky-200); }
  12%, 34% { background: var(--coral-100); border-color: var(--accent); }
}

/* ---------------------------------------------------------------- cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.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); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--sky-300); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--muted); margin-bottom: 0; }

.cost {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-deep);
  background: var(--coral-050);
  border: 1px solid var(--coral-200);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}

.icon-tile {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--sky-200);
  border-radius: 10px;
  background: var(--sky-050);
  margin-bottom: var(--space-4);
}
.icon-tile svg { stroke: var(--primary); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); align-items: start; }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0 0 var(--space-6) var(--space-8);
  border-left: 1px solid var(--line);
  margin: 0;
}
.step-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: -20px; top: -4px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-deep);
  background: var(--surface);
  border: 1.5px solid var(--sky-300);
  border-radius: 50%;
}
.step-list h3 { margin-bottom: 6px; }
.step-list p { color: var(--muted); margin-bottom: 0; }

.section-figure img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.figcap { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); }

/* ---------------------------------------------------------------- outcomes */
.outcome {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.outcome .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  line-height: 1;
  color: var(--primary-deep);
  display: block;
  margin-bottom: var(--space-3);
}
.outcome p { color: var(--muted); margin-bottom: 0; }

/* ---------------------------------------------------------------- proof */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin: 0;
  position: relative;
}
.testimonial::before {
  content: "";
  position: absolute; top: 0; left: var(--space-6); right: var(--space-6);
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--sky-300));
  border-radius: 0 0 3px 3px;
}
.testimonial p { font-size: 1.05rem; }
.testimonial footer { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: var(--space-3); }
.testimonial footer b { display: block; color: var(--ink); font-size: 1rem; }

.metrics {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky-050);
  overflow: hidden;
}
.metrics div { padding: var(--space-5); border-right: 1px solid var(--line-soft); text-align: center; }
.metrics div:last-child { border-right: 0; }
.metrics strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--primary-deep); }
.metrics span { font-size: var(--step--1); color: var(--muted); }

/* ---------------------------------------------------------------- pricing */
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.tier.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-3); }
.tier .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--coral-100);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
  margin-bottom: var(--space-3);
}
.price { font-family: var(--font-display); font-size: 2.9rem; line-height: 1; color: var(--ink); }
.price span { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: var(--space-5) 0; }
.tier li { position: relative; padding-left: 28px; font-size: 0.97rem; }
.tier li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--coral-050);
}
.tier .btn { margin-top: auto; }
.billing-note {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ---------------------------------------------------------------- faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: none;
  border: 0;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q .plus {
  flex: none;
  width: 30px; height: 30px;
  border: 1.5px solid var(--sky-300);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-weight: 700;
  transition: transform 0.24s ease, background 0.24s ease;
}
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--coral-100); }
.faq-a { padding: 0 0 var(--space-5); color: var(--muted); max-width: 78ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- form */
.contact-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-2);
}
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--sky-200); }
.field [aria-invalid="true"] { border-color: #B02A1E; }
.err { display: none; color: #8E2118; font-size: 0.86rem; margin-top: 5px; font-weight: 600; }
.err.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.consent input { width: auto; margin-top: 4px; }
.form-alt { margin-top: var(--space-4); font-size: var(--step--1); color: var(--muted); }

/* ---------------------------------------------------------------- author byline */
.byline {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-5);
  margin-top: var(--space-7);
}
.byline img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); }
.byline p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--sky-050);
  border-top: 1px solid var(--line);
  padding: var(--space-9) 0 var(--space-5);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-7); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  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-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: var(--space-4); }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.social svg { stroke: var(--primary-deep); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover { border-color: var(--accent); background: var(--coral-050); }
.footer-base {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- prose pages */
.page-head { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--line); background: var(--surface); }
.prose { padding: var(--space-8) 0 var(--space-9); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose dl { margin: 0 0 var(--space-5); }
.prose dt { font-weight: 700; margin-top: var(--space-3); }
.prose dd { margin: 0 0 var(--space-2); color: var(--muted); }
.map-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-6); margin-bottom: var(--space-5); }
.map-group li { margin-bottom: var(--space-3); }
.map-group li span { display: block; color: var(--muted); font-size: 0.92rem; }

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

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid, .steps, .contact-shell { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-chip { right: 8px; }
}

@media (max-width: 760px) {
  section { padding: var(--space-8) 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--space-5);
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-strip, .metrics { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .metrics div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--space-5); }
  .hero-figure::after { 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; }
  .ring .arc { stroke-dashoffset: 22; }
}

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

/* ================================================================ magazine
   Cycle Desk. Built from the same tokens as the rest of the site: bright
   surfaces, sky tints, coral accents, Nixie One over Karla, calendar rules.
   Light only, like every other surface here. */

.mag-shell { width: min(100% - 40px, var(--wrap)); margin-inline: auto; padding: var(--space-7) 0 var(--space-9); }

.mag-crumb { margin-bottom: var(--space-6); }
.mag-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0; padding: 0;
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-crumb li + li::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: var(--space-2);
  border-radius: 2px;
  background: var(--sky-300);
  vertical-align: middle;
}
.mag-crumb a { color: var(--primary-deep); text-decoration: none; border-bottom: 1px solid var(--sky-200); }
.mag-crumb a:hover { border-bottom-color: var(--accent); }
.mag-crumb [aria-current="page"] { color: var(--ink); }

.mag-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.mag-angle {
  background: var(--coral-050);
  border: 1px solid var(--coral-200);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}
.mag-mag { color: var(--primary-deep); }

/* ---------------------------------------------------------------- masthead */
.mag-masthead {
  max-width: 44rem;
  padding-bottom: var(--space-7);
  margin-bottom: var(--space-7);
  border-bottom: 2px solid var(--sky-200);
}
.mag-masthead h1 { font-size: var(--step-4); margin-bottom: var(--space-4); }
.mag-standfirst {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: var(--space-4);
}
.mag-masthead-note { color: var(--muted); max-width: 38rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- index grid */
.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.mag-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--sky-300); }
.mag-card-img { display: block; background: var(--sky-050); }
.mag-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-text { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mag-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.mag-card-title { font-size: var(--step-1); margin: 0; line-height: 1.2; }
.mag-card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--coral-200), var(--coral-200)); background-repeat: no-repeat; background-size: 0 2px; background-position: 0 100%; transition: background-size 0.25s ease; }
.mag-card-title a:hover { color: var(--primary-deep); background-size: 100% 2px; }
.mag-card-dek { color: var(--muted); margin: 0; }

.mag-card.lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  border-color: var(--sky-300);
  box-shadow: var(--shadow-2);
}
.mag-card.lead .mag-card-img { flex: 1 1 58%; }
.mag-card.lead .mag-card-img img { height: 100%; aspect-ratio: auto; min-height: 340px; }
.mag-card.lead .mag-card-text { flex: 1 1 42%; justify-content: center; padding: var(--space-7); }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }

/* ---------------------------------------------------------------- article */
.mag-article-head { max-width: 46rem; margin-bottom: var(--space-6); }
.mag-article-head h1 { font-size: var(--step-3); margin-bottom: var(--space-5); }
.mag-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.mag-byline .mag-by { font-weight: 700; color: var(--ink); }
.mag-byline a { color: var(--primary-deep); }
.mag-dot { width: 4px; height: 4px; border-radius: 2px; background: var(--sky-300); }

.mag-figure { margin: 0 0 var(--space-7); }
.mag-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--sky-050);
}
.mag-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 42rem;
}

.mag-body {
  max-width: 68ch;
  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.16;
  margin: var(--space-8) 0 var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}
.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.3rem; }
.mag-body li { margin-bottom: var(--space-3); }
.mag-body a { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 3px; }
.mag-body a:hover { color: var(--primary); text-decoration-color: var(--accent); }
.mag-body strong { font-weight: 700; color: var(--ink); }
.mag-body blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  background: var(--sky-050);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-6);
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mag-body th, .mag-body td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.mag-body thead th { background: var(--sky-100); font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.mag-body tbody tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--coral-050);
  border: 1px solid var(--coral-200);
  border-radius: var(--radius);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--muted);
}
.inline-read a { color: var(--primary-deep); font-weight: 700; }

/* ---------------------------------------------------------------- call to action */
.mag-cta {
  max-width: 68ch;
  margin: var(--space-8) 0 var(--space-8);
  padding: var(--space-7);
  background: var(--sky-050);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(to right, var(--sky-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--sky-100) 1px, transparent 1px);
  background-size: 56px 56px;
}
.mag-cta h2 { font-size: var(--step-2); margin-bottom: var(--space-3); }
.mag-cta p { color: var(--muted); max-width: 46ch; }
.mag-cta .btn { margin-top: var(--space-3); }

/* ---------------------------------------------------------------- author box */
.mag-author {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  max-width: 68ch;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.mag-author img {
  flex: none;
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--coral-100);
  background: var(--sky-050);
}
.mag-author h2 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.mag-author p { color: var(--muted); }
.mag-author p:last-child { margin-bottom: 0; }
.mag-author a { color: var(--primary-deep); font-weight: 700; }

/* ---------------------------------------------------------------- read also */
.mag-related { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 2px solid var(--sky-200); }
.mag-related > h2 { font-size: var(--step-2); margin-bottom: var(--space-6); }
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.mag-rel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: var(--space-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mag-rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--sky-300); }
.mag-rel-img { display: block; background: var(--sky-050); }
.mag-rel-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-rel-title { font-size: 1.06rem; line-height: 1.25; margin: var(--space-5) var(--space-5) var(--space-3); }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-deep); }
.mag-rel-dek { margin: 0 var(--space-5) var(--space-3); color: var(--muted); font-size: var(--step--1); }
.mag-rel-date { margin: 0 var(--space-5); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.mag-related-all { margin-top: var(--space-6); font-weight: 700; }
.mag-related-all a { color: var(--primary-deep); }

/* ---------------------------------------------------------------- home page teaser */
.mag-teaser-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); }
.mag-teaser-head .section-head { margin-bottom: 0; }
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .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-img img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-text { padding: var(--space-6); }
}

@media (max-width: 760px) {
  .mag-shell { width: min(100% - 32px, var(--wrap)); padding-top: var(--space-6); }
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-body { font-size: 1.02rem; }
  .mag-body h2 { margin-top: var(--space-7); }
  .mag-cta { padding: var(--space-5); }
  .mag-author { flex-direction: column; padding: var(--space-5); }
  .mag-author img { width: 88px; height: 88px; }
  .mag-figure img { border-radius: var(--radius); }
  .mag-card.lead .mag-card-title { font-size: var(--step-2); }
}

.mag-list { list-style: none; padding-left: 0; }
.mag-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  align-items: baseline;
}
.mag-list li:last-child { border-bottom: 0; }
.mag-list a { font-weight: 600; }
.mag-list-date { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); white-space: nowrap; }


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