/* ==========================================================================
   CM Family Mediation — site styles
   Colours, fonts and spacing follow the client brief. Edit the tokens in
   :root to change the look of the whole site in one place.
   ========================================================================== */

:root {
  /* Palette */
  --ivory: #FAF8F5;        /* main background */
  --sand: #EFEAE3;         /* alternate section background */
  --sage-tint: #E3ECE8;    /* cards / hero strip */
  --ink: #1F2A2E;          /* main text + headlines */
  --slate: #5B6670;        /* secondary text */
  --sage: #3F6B64;         /* the one accent: buttons, links, icons */
  --sage-dark: #345A54;    /* button hover */
  --line: #E2DDD5;         /* borders */
  --white: #FFFFFF;

  /* Type */
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --max: 1120px;
  --max-text: 680px;
  --gutter: 24px;
  --section-y: 64px;
  --radius-card: 12px;
  --radius-ctrl: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  --header-h: 72px;
}

@media (min-width: 900px) {
  :root {
    --gutter: 32px;
    --section-y: 96px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { font-size: 18px; line-height: 28px; }
}

img, svg { display: block; max-width: 100%; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: 34px; line-height: 42px; }
h2 { font-size: 28px; line-height: 36px; }

@media (min-width: 900px) {
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 34px; line-height: 42px; }
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  margin: 0 0 8px;
}

@media (min-width: 900px) {
  h3 { font-size: 20px; line-height: 28px; }
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--sage-dark); }

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

.small, small { font-size: 14px; line-height: 20px; color: var(--slate); }
.muted { color: var(--slate); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-ctrl);
  z-index: 100;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: var(--max-text); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--tight { padding-top: 0; }

.section-head { max-width: var(--max-text); margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--slate); }

.grid { display: grid; gap: 24px; }

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) and (max-width: 979px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column split used by hero, "just you" and Carrie sections */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 55fr 45fr; gap: 64px; }
  .split--media-left { grid-template-columns: 45fr 55fr; }
  .split--media-left .split__media { order: -1; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-ctrl);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--sage);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }

.btn--secondary { background: transparent; color: var(--sage); }
.btn--secondary:hover { background: var(--sage-tint); color: var(--sage-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 479px) {
  .btn-row .btn { width: 100%; }
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
}
.logo:hover { color: var(--ink); }

.logo__mark {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--sage);
}

.logo__name { font-size: 22px; line-height: 26px; }

@media (max-width: 380px) {
  .logo { gap: 10px; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 19px; line-height: 22px; }
}

/* On phones the sticky bottom bar does the booking job, so the header
   button is hidden to keep the top bar clean. */
@media (max-width: 699px) {
  .site-header .btn { display: none; }
}

/* ---------- Mobile sticky CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.sticky-cta .btn { width: 100%; }

@media (min-width: 700px) {
  .sticky-cta { display: none; }
}

@media (max-width: 699px) {
  body.has-sticky-cta { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Hero ---------- */

.hero { padding: 48px 0 var(--section-y); }

@media (min-width: 900px) {
  .hero { padding-top: 72px; }
}

.hero__sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--slate);
  max-width: 560px;
  margin-bottom: 32px;
}
@media (min-width: 900px) {
  .hero__sub { font-size: 20px; line-height: 30px; }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--sage-tint);
  border-radius: var(--radius-card);
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
  list-style: none;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .icon { width: 20px; height: 20px; }

/* ---------- Photo placeholders ---------- */

.photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--sage-tint);
  border: 1px solid var(--line);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

/* Hero photo: 4:3 on mobile, 4:5 on desktop (per brief) */
.hero .photo { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .hero .photo { aspect-ratio: 4 / 5; max-height: 560px; }
}

.photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--sage);
  font-size: 14px;
  line-height: 20px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(63, 107, 100, 0.05) 14px 15px),
    var(--sage-tint);
}
.photo__placeholder strong { font-weight: 600; }
.photo__placeholder span { color: var(--slate); max-width: 280px; }

/* "CM" monogram used until Carrie's headshot arrives */
.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--sage-tint);
}
.monogram__circle {
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 72px);
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px;
}
.card--tint { background: var(--sage-tint); }

.card p { color: var(--slate); }

/* Lucide icons: 1.5px line, rounded ends */
svg.icon,
svg.chev {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  width: 28px;
  height: 28px;
  color: var(--sage);
  flex: none;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-tint);
  margin-bottom: 20px;
}
.card--tint .icon-badge { background: var(--white); }

/* "Where are you right now?" cards */
.path-card {
  display: flex;
  flex-direction: column;
}
.path-card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
}
@media (min-width: 900px) {
  .path-card h3 { font-size: 24px; line-height: 32px; }
}
.path-card p { flex: 1; margin-bottom: 24px; }
.path-card .btn { align-self: flex-start; }
@media (max-width: 479px) {
  .path-card .btn { align-self: stretch; }
}

/* Note box */
.note {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-ctrl);
  font-size: 15px;
  line-height: 22px;
  color: var(--slate);
}
.note .icon { width: 22px; height: 22px; margin-top: 1px; }

/* ---------- Steps ---------- */

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }

.step { position: relative; }
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}
.step .icon { position: absolute; top: 28px; right: 28px; opacity: .9; }

/* ---------- Fees ---------- */

.fee {
  display: flex;
  flex-direction: column;
}
.fee__price {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 44px;
  line-height: 52px;
  color: var(--ink);
  margin: 8px 0 4px;
}
.fee__meta { color: var(--slate); font-size: 15px; line-height: 22px; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--sage);
  transition: transform .2s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); }

.faq .faq__answer { padding: 0 24px 22px; color: var(--slate); }

/* ---------- Final CTA band ---------- */

.cta-band .photo { margin-bottom: 48px; }

/* ---------- Form ---------- */

.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .form-wrap { padding: 40px; }
}

.form-wrap h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 34px;
  margin-bottom: 8px;
}

.form-grid { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label,
.field legend {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}
.field .optional { font-weight: 400; color: var(--slate); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into fields */
  line-height: 22px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid #CFC8BD;
  border-radius: var(--radius-ctrl);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }

.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233F6B64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(63, 107, 100, 0.2);
  background-color: var(--white);
}

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }

.choice { position: relative; }
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #CFC8BD;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 15px;
  line-height: 20px;
  cursor: pointer;
  user-select: none;
}
.choice input:checked + span {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--sage);
}

.form-actions { margin-top: 28px; }
.form-actions .btn { min-width: 220px; }
@media (max-width: 479px) {
  .form-actions .btn { width: 100%; }
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 22px;
}
.form-status.is-error { color: #9A3B2E; }

/* Honeypot spam trap — hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Booking page ---------- */

.booking-embed {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Starting height only: data-resize="true" lets Calendly set the real height
   for each step, so the calendar never scrolls inside its frame. */
.calendly-inline-widget { min-width: 280px; height: 1100px; }
@media (min-width: 700px) {
  .calendly-inline-widget { height: 760px; }
}
.calendly-inline-widget iframe { display: block; }

.booking-placeholder {
  padding: 56px 24px;
  text-align: center;
  color: var(--slate);
}
.booking-placeholder .icon-badge { margin: 0 auto 20px; }

.booking-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
  line-height: 22px;
}
.booking-points li { display: inline-flex; align-items: center; gap: 8px; }
.booking-points .icon { width: 20px; height: 20px; }

/* ---------- Simple pages (about, thank you, privacy) ---------- */

.page-hero { padding: 56px 0 24px; }
@media (min-width: 900px) {
  .page-hero { padding-top: 80px; }
}
.page-hero p { color: var(--slate); font-size: 18px; line-height: 28px; }

.prose { max-width: var(--max-text); }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.thanks {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.thanks .icon-badge { margin: 0 auto 24px; width: 64px; height: 64px; }
.thanks .icon { width: 32px; height: 32px; }
.thanks [hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C9D1D3;
  padding: 56px 0 40px;
  font-size: 15px;
  line-height: 24px;
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sage-tint); }

.site-footer .logo { color: var(--white); margin-bottom: 16px; }
.site-footer .logo__mark { color: var(--white); }

.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--sage-tint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 20px;
}

/* Carrie's portrait: smaller on phones so it doesn't fill the screen */
.portrait { max-width: 420px; }
@media (max-width: 899px) {
  .portrait { max-width: 260px; }
}

/* Tablets: wider hero photo so the buttons and photo fit on one screen */
@media (min-width: 600px) and (max-width: 899px) {
  .hero .photo { aspect-ratio: 16 / 9; }
}

/* ---------- Hero eyebrow ---------- */

.eyebrow {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
@media (min-width: 900px) {
  .eyebrow { font-size: 14px; line-height: 20px; }
}

/* ---------- Illustrations ---------- */

.photo--illustration { background: var(--sand); }
.photo--illustration img { position: absolute; inset: 0; }
.photo:has(img) .photo__placeholder { display: none; }

.photo--band { aspect-ratio: 16 / 9; margin-bottom: 48px; }
@media (min-width: 900px) {
  .photo--band { aspect-ratio: 21 / 8; }
}

/* Carrie's portrait */
.portrait img { object-position: center 20%; }

/* Gentle, slow "breathing" zoom on the hero illustration */
@keyframes drift {
  from { transform: scale(1.0); }
  to   { transform: scale(1.05); }
}
.hero .photo img { animation: drift 18s ease-in-out infinite alternate; }

/* Sections fade up softly as they come into view (only when JS is on) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Testimonials carousel ---------- */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review {
  flex: none;
  width: 300px;
  margin-right: 20px; /* spacing lives on each card so the loop is seamless */
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
@media (min-width: 700px) {
  .review { width: 340px; }
}

.review p {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: var(--ink);
  margin: 12px 0 20px;
}

.review__stars { display: flex; gap: 2px; color: var(--sage); }
.review__stars .icon { width: 16px; height: 16px; }

.review__who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--slate);
}
.review__who strong { color: var(--ink); font-weight: 600; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}
.avatar--2 { background: var(--sage-tint); color: var(--sage); }
.avatar--3 { background: var(--ink); color: var(--white); }

/* No motion wanted: show the reviews as a swipeable row instead */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; padding-left: var(--gutter); }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Comparison (Apple-style: three columns, read across rows) ---------- */

.cmp {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

/* Soft tinted band behind the mediation column, top to bottom */
.cmp__col-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% / 3);
  background: var(--sage-tint);
  border-radius: 20px;
}

.cmp__head,
.cmp__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cmp__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 44px 8px 20px;
  position: relative;
}
.cmp__name h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
}
.cmp__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
}
.cmp__icon .icon { width: 24px; height: 24px; color: var(--slate); }
.cmp__name.is-rec .cmp__icon { background: var(--sage); border-color: var(--sage); }
.cmp__name.is-rec .cmp__icon .icon { color: var(--white); }

.cmp__pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--white);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cmp__label {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 0 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.cmp__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px 20px;
}
.cmp__cell strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 19px;
  line-height: 24px;
  color: var(--ink);
}
.cmp__cell span {
  font-size: 13px;
  line-height: 18px;
  color: var(--slate);
}
.cmp__cell.is-rec strong { color: var(--sage); }
.cmp__cell.is-rec span { color: var(--ink); }

.cmp__cost { letter-spacing: 0.06em; }
.cmp__cost i { font-style: normal; opacity: .22; }

.cmp__yes,
.cmp__no { width: 24px; height: 24px; stroke-width: 2.25; }
.cmp__yes { color: var(--sage); }
.cmp__no { color: #A9B0B5; }

.cmp sup { font-size: 11px; line-height: 0; color: var(--sage); margin-left: 1px; }

@media (min-width: 700px) {
  .cmp__name { padding: 56px 16px 24px; }
  .cmp__pill { top: 18px; font-size: 12px; padding: 4px 12px; }
  .cmp__name h3 { font-size: 26px; line-height: 32px; }
  .cmp__icon { width: 56px; height: 56px; }
  .cmp__icon .icon { width: 28px; height: 28px; }
  .cmp__cell { padding: 0 16px 24px; }
  .cmp__cell strong { font-size: 24px; line-height: 30px; }
  .cmp__cell span { font-size: 15px; line-height: 22px; }
  .cmp__yes, .cmp__no { width: 28px; height: 28px; }
}

.center-row { justify-content: center; margin-top: 40px; }

/* ---------- Benefits ---------- */

.benefits .card h3 { margin-top: 0; }
.stat {
  text-align: center;
  padding: 28px 24px;
  background: var(--sage-tint);
  border-radius: var(--radius-card);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 48px;
  line-height: 56px;
  color: var(--sage);
}
.stat p { margin: 8px auto 0; max-width: 360px; color: var(--ink); }
.stat small { display: block; margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--slate); }

/* ---------- What mediation can help with ---------- */

.topics { list-style: none; padding: 0; margin: 0; }
.topic { text-align: center; padding: 0 0 28px; overflow: hidden; }
/* Illustration fills the top of the card, edge to edge */
.topic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 0 20px;
  background: var(--ivory);
}
.topic h3, .topic p { padding: 0 20px; }
.topic h3 { margin: 0 0 6px; font-size: 20px; line-height: 26px; }
.topic p { margin: 0; font-size: 15px; line-height: 22px; }
.topics { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .topics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) {
  .topics { gap: 12px; }
  .topic { padding-bottom: 20px; }
  .topic img { margin-bottom: 14px; }
  .topic h3, .topic p { padding: 0 12px; }
  .topic h3 { font-size: 17px; line-height: 22px; }
  .topic p { font-size: 13px; line-height: 19px; }
}

.sources {
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: var(--slate);
}
.sources sup { margin-left: 6px; }

/* ---------- Fees (with what's included) ---------- */

.fees { max-width: 920px; margin: 0 auto; }
.fee__list {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 28px;
  border-top: 1px solid var(--line);
  flex: 1;
}
.card--tint .fee__list { border-color: rgba(63, 107, 100, .22); }
.fee__list li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink);
}
.fee__list .icon { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; }
.fee .btn { align-self: flex-start; }
@media (max-width: 479px) {
  .fee .btn { align-self: stretch; }
}

/* ---------- Fees broken down ---------- */

.breakdown { max-width: 920px; margin: 0 auto; }
.breakdown .card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 30px;
}
.price-list { margin: 16px 0 0; }
.price-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.price-list dt { font-weight: 600; font-size: 16px; line-height: 22px; color: var(--ink); }
.price-list dt span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--slate);
}
.price-list dd {
  margin: 0;
  flex: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  color: var(--sage);
}
.price-list dd small { font-family: var(--font-body); font-size: 13px; color: var(--slate); }

/* ---------- Booking confirmed ---------- */

.booked__badge { margin: 0 auto 24px; width: 64px; height: 64px; }
.booked__badge .icon { width: 32px; height: 32px; }

/* ---------- Privacy & Terms ---------- */

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.toc a:hover { border-color: var(--sage); color: var(--sage); }

.legal { padding-bottom: 80px; }
.legal h2 { padding-top: 40px; border-top: 1px solid var(--line); }
.legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal p, .legal li { color: var(--slate); }
.legal strong { color: var(--ink); }

/* Placeholder text that must be replaced before launch */
mark.todo { background: #FCEFC7; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Book a MIAM ---------- */

.book .section-head { margin-bottom: 32px; }
.book .booking-points { justify-content: center; }
.book .booking-embed { max-width: 1000px; margin: 0 auto; }
.book__help { margin-top: 24px; }

/* ---------- Cookie banner ---------- */

.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 32px rgba(31, 42, 46, 0.14);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; margin: 0; font-size: 15px; line-height: 22px; color: var(--slate); }
.cookie-banner__actions { display: flex; gap: 12px; }
.cookie-banner__actions .btn { min-width: 112px; }

/* On phones the banner sits in place of the sticky booking bar until a choice is made. */
@media (max-width: 699px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; min-width: 0; }
  body.has-cookie-banner .sticky-cta { display: none; }
}
