/* ==========================================================================
   Raga Wellness — Design System
   Potts Point, Sydney · Muscle Release & Trigger Point Therapy
   --------------------------------------------------------------------------
   Layers: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Components
           6 Sections · 7 Motion · 8 Responsive
   ========================================================================== */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root {
  /* Brand — sage + cream, carried over from the existing Raga identity */
  --forest:        #262B23;
  --forest-2:      #333A2F;
  --sage:          #6F8069;
  --sage-deep:     #56634F;
  --sage-tint:     #DDE3D9;
  --cream:         #F4EFE7;
  --cream-2:       #EBE4D8;
  --cream-3:       #E0D7C7;
  --clay:          #B08968;

  /* Semantic */
  --bg:            var(--cream);
  --bg-alt:        var(--cream-2);
  --surface:       #FBF8F3;
  --ink:           #1B1E19;
  --ink-2:         #4A4F46;
  --ink-3:         #757A6E;
  --on-dark:       #F4EFE7;
  --on-dark-2:     #BFC5B8;
  --line:          #D8D0C2;
  --line-dark:     rgba(244, 239, 231, 0.16);
  --accent:        var(--sage-deep);
  --focus:         #2F5D3A;

  /* Type */
  --font-display:  'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mark:     'Oswald', 'Inter', sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.4vw, 2.75rem);
  --step-4:  clamp(2.2rem, 1.6rem + 2.7vw, 4rem);
  --step-5:  clamp(2.8rem, 1.7rem + 4.6vw, 6rem);

  /* Space — spacious scale (density 3/10) */
  --sp-1: 0.5rem;  --sp-2: 0.75rem; --sp-3: 1rem;   --sp-4: 1.5rem;
  --sp-5: 2rem;    --sp-6: 3rem;    --sp-7: 4rem;   --sp-8: 6rem;
  --sp-9: clamp(4.5rem, 3rem + 7vw, 9rem);

  --wrap:    76rem;
  --wrap-nr: 60rem;
  --gutter:  clamp(1.25rem, 0.6rem + 3vw, 3rem);

  --r-sm: 4px; --r-md: 10px; --r-lg: 18px; --r-pill: 999px;

  /* Soft-UI evolution: softer than flat, clearer than neumorphism */
  --sh-1: 0 1px 2px rgba(38, 43, 35, 0.05), 0 2px 8px rgba(38, 43, 35, 0.04);
  --sh-2: 0 2px 4px rgba(38, 43, 35, 0.05), 0 10px 26px rgba(38, 43, 35, 0.07);
  --sh-3: 0 4px 10px rgba(38, 43, 35, 0.07), 0 24px 60px rgba(38, 43, 35, 0.13);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  240ms;

  --z-header: 40;
  --z-bar:    50;
  --z-modal:  100;
}

/* ── 2. RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: var(--sp-3); top: -100px;
  background: var(--forest); color: var(--on-dark);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  z-index: 200; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

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

/* ── 3. TYPOGRAPHY ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0 0 var(--sp-3); max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: currentColor; flex: none; opacity: 0.6;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow, .sect--dark .eyebrow { color: var(--sage-tint); }

.serif-quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 40;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ── 4. LAYOUT ───────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-nr); }

.sect { padding-block: var(--sp-9); position: relative; }
.sect--tight { padding-block: var(--sp-7); }
.sect--alt  { background: var(--bg-alt); }
.sect--dark { background: var(--forest); color: var(--on-dark); }
.sect--dark h1, .sect--dark h2, .sect--dark h3 { color: var(--on-dark); }
.sect--dark p { color: var(--on-dark-2); }
.sect--dark .lede { color: var(--on-dark-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.sect--dark .rule { background: var(--line-dark); }

.sect-head { max-width: 46rem; margin-bottom: var(--sp-7); }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head--center .eyebrow { justify-content: center; }
.sect-head--center .lede { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--sp-5), 5vw, var(--sp-8));
  align-items: center;
}

/* ── 5. COMPONENTS ───────────────────────────────────────────────────────── */

/* 5.1 Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--forest); color: var(--on-dark); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--forest-2); box-shadow: var(--sh-2); }

.btn--sage { background: var(--sage-deep); color: #fff; box-shadow: var(--sh-1); }
.btn--sage:hover { background: var(--sage); box-shadow: var(--sh-2); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(38, 43, 35, 0.04); }

.sect--dark .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.sect--dark .btn--ghost:hover { border-color: var(--on-dark); background: rgba(244, 239, 231, 0.08); }

.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: #fff; }

.btn--sm { min-height: 44px; padding: 0.55rem 1.1rem; font-size: var(--step--1); }

/* Reachable by keyboard so screen readers can explain why, but clearly inert. */
.btn.is-disabled {
  background: var(--cream-3);
  color: var(--ink-3);
  box-shadow: none;
  cursor: not-allowed;
}
.btn.is-disabled:hover { background: var(--cream-3); transform: none; box-shadow: none; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* 5.2 Header */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(244, 239, 231, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  background: var(--sage);
  color: #fff;
  font-family: var(--font-mark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
  line-height: 1;
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.5rem 0;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--sage-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(0.4); }
.nav__link[aria-current='page'] { color: var(--ink); font-weight: 600; }
.nav__link[aria-current='page']::after { transform: scaleX(1); }

.header__cta { display: none; }

/* Mobile menu button */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px;
  border-radius: var(--r-md);
  color: var(--ink);
}
.burger:hover { background: rgba(38, 43, 35, 0.06); }
.burger__box { display: block; width: 22px; height: 14px; position: relative; }
.burger__box span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease), opacity 160ms var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded='true'] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--cream);
  display: flex; flex-direction: column;
  padding: var(--sp-4) var(--gutter) calc(var(--sp-5) + env(safe-area-inset-bottom));
  padding-top: calc(var(--sp-4) + env(safe-area-inset-top));
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  /* visibility flips instantly on open (so focus can land inside) and only
     waits for the fade on close. */
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
  overflow-y: auto;
}
.drawer.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s;
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.drawer__nav { display: flex; flex-direction: column; margin-top: var(--sp-5); }
.drawer__link {
  font-family: var(--font-display);
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
}
.drawer__link[aria-current='page'] { color: var(--sage-deep); }
.drawer__foot { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.drawer__meta { font-size: var(--step--1); color: var(--ink-3); }

/* 5.3 Sticky mobile booking bar */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: none;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom));
  background: rgba(244, 239, 231, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bookbar .btn { flex: 1; min-height: 50px; }
.bookbar .btn--icon { flex: 0 0 50px; }

/* 5.4 Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--cream-3); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--sage-tint); color: var(--sage-deep);
  display: grid; place-items: center;
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--sp-2); }
.card__meta {
  margin-top: auto; padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap;
}
.card__price { font-family: var(--font-display); font-size: var(--step-1); }
.card__price small { font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-3); font-weight: 500; }
.card__link {
  font-size: var(--step--1); font-weight: 600; color: var(--sage-deep);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__link svg { transition: transform var(--dur) var(--ease); }
.card__link:hover svg { transform: translateX(3px); }

.card--feature { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.card--feature h3 { color: var(--on-dark); }
.card--feature p { color: var(--on-dark-2); }
.card--feature .card__meta { border-top-color: var(--line-dark); }
.card--feature .card__icon { background: rgba(244, 239, 231, 0.12); color: var(--sage-tint); }
.card--feature .card__link { color: var(--sage-tint); }

.tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill);
  background: var(--clay); color: #fff;
  margin-bottom: var(--sp-3); align-self: flex-start;
}
.tag--quiet { background: var(--sage-tint); color: var(--sage-deep); }

/* 5.5 Stats / trust strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  border-block: 1px solid var(--line);
  padding-block: var(--sp-5);
}
.strip__item { text-align: center; }
.strip__k {
  font-family: var(--font-display); font-size: var(--step-2);
  display: block; line-height: 1.1; margin-bottom: 0.25rem;
}
.strip__v { font-size: var(--step--1); color: var(--ink-3); letter-spacing: 0.04em; }

/* 5.6 Steps */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.step__n {
  counter-increment: step;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--sage-deep); background: var(--surface);
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.sect--dark .step__n { border-color: var(--line-dark); background: transparent; color: var(--sage-tint); }
.step h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }

/* 5.7 Price table */
.ptable {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.ptable__head {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: var(--sp-3);
}
.ptable__head h3 { margin-bottom: 0.25rem; }
.ptable__head p { font-size: var(--step--1); color: var(--ink-3); margin: 0; max-width: 46ch; }
.ptable__rows { display: flex; flex-direction: column; }
.prow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
  min-height: 68px;
}
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--cream-2); }
.prow__dur { font-weight: 500; }
.prow__note { display: block; font-size: var(--step--1); color: var(--ink-3); font-weight: 400; }
.prow__price { font-family: var(--font-display); font-size: var(--step-1); white-space: nowrap; }
.prow__price s { color: var(--ink-3); font-size: 0.75em; margin-right: 0.4rem; }
.prow__price em {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 600;
}
.prow .btn { white-space: nowrap; }
.ptable--feature { border-color: var(--sage); box-shadow: var(--sh-2); }
.ptable--feature .ptable__head { background: var(--sage-tint); border-bottom-color: var(--sage); }

/* 5.8 Accordion (FAQ / policies) */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.acc__btn:hover { color: var(--sage-deep); }
.acc__ico { flex: none; width: 22px; height: 22px; position: relative; }
.acc__ico::before, .acc__ico::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 260ms var(--ease);
}
.acc__ico::after { transform: rotate(90deg); }
.acc__btn[aria-expanded='true'] .acc__ico::after { transform: rotate(0deg); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: var(--sp-4); color: var(--ink-2); max-width: 62ch; }

/* 5.9 Booking modal */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: end center;
  visibility: hidden;
}
.modal.is-open { visibility: visible; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(27, 30, 25, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(38rem, 100%);
  max-height: min(88vh, 46rem);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--sp-5) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  box-shadow: var(--sh-3);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 220ms var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0); opacity: 1; }
.modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.modal__top h2 { font-size: var(--step-2); margin: 0 0 0.25rem; }
.modal__top p { font-size: var(--step--1); color: var(--ink-3); margin: 0; }
.modal__close {
  flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink-2);
}
.modal__close:hover { background: rgba(38, 43, 35, 0.07); color: var(--ink); }

.field { margin-bottom: var(--sp-4); }
.field__label { display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: var(--sp-2); }
.field__hint { font-size: 0.8rem; color: var(--ink-3); font-weight: 400; display: block; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  position: relative;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-md);
  padding: 0.7rem 1rem; min-height: 48px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem; font-weight: 500;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed='true'] {
  background: var(--forest); border-color: var(--forest); color: var(--on-dark);
  box-shadow: var(--sh-1);
}
.chip__price { font-size: 0.82rem; opacity: 0.72; font-variant-numeric: tabular-nums; }
.chip.is-disabled, .chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}
.chip.is-disabled:hover, .chip:disabled:hover { border-color: var(--line); }

.summary {
  background: var(--sage-tint);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: 0.94rem;
}
.summary strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 400; white-space: nowrap; }
/* "Ask about pricing" is a sentence, not a figure — don't set it like one. */
.summary strong.is-text {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  color: var(--sage-deep); white-space: normal; text-align: right;
}
.summary__empty { color: var(--sage-deep); }

.textarea {
  width: 100%; min-height: 88px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: var(--sp-3);
  font-size: var(--step-0); line-height: 1.5;
}
.textarea:focus { border-color: var(--sage); }

/* 5.10 Contact form */
.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.input {
  width: 100%; min-height: 52px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 0.8rem var(--sp-3);
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus { border-color: var(--sage); }
.input[aria-invalid='true'] { border-color: #B3261E; }
.error { color: #8C1D18; font-size: 0.82rem; margin-top: 0.35rem; display: none; }
.error.is-shown { display: block; }

/* 5.11 Info list */
.info { display: grid; gap: var(--sp-4); }
.info__item { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; }
.info__ico { width: 24px; height: 24px; color: var(--sage-deep); flex: none; margin-top: 2px; }
.sect--dark .info__ico { color: var(--sage-tint); }
.info__k { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 0.15rem; }
.sect--dark .info__k { color: var(--on-dark-2); }
.info__v { font-size: var(--step-0); }
.info__v a { text-decoration-color: var(--line); text-underline-offset: 3px; }

/* 5.11b Portrait — real photography, cropped consistently */
.portrait {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--sh-2);
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
}
.portrait--wide img { aspect-ratio: 3 / 2; object-position: center 30%; }

/* 5.11c Availability strip */
.avail__days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--sp-3);
}
.avail__day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.avail__day--today { border-color: var(--sage); box-shadow: var(--sh-1); }
.avail__dayname {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
}
.avail__date {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  color: var(--ink-3);
  margin-top: 0.15rem;
}
.avail__slots { display: flex; flex-direction: column; gap: var(--sp-2); }

.slot {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--r-md);
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: left;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.slot:hover { background: var(--forest); border-color: var(--forest); color: var(--on-dark); }
.slot--taken {
  color: var(--ink-3);
  background: transparent;
  border-style: dashed;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--line);
}
.slot--taken:hover { background: transparent; border-color: var(--line); color: var(--ink-3); }
.avail__none { font-size: var(--step--1); color: var(--ink-3); }

.avail__msg {
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.avail__foot {
  margin-top: var(--sp-4);
  font-size: 0.82rem;
  color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4);
  align-items: center; justify-content: space-between;
}

/* Skeleton while the sheet loads — reserves height so nothing jumps (CLS) */
.avail__skeleton { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--sp-3); }
.avail__skeleton span {
  display: block; height: 13rem;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--cream-2) 30%, var(--surface) 50%, var(--cream-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s var(--ease) infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .avail__skeleton span { animation: none; } }

/* 5.11d Photo placeholder — stands in until real product shots exist */
.ph {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-2);
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px,
      rgba(111, 128, 105, 0.05) 12px, rgba(111, 128, 105, 0.05) 24px),
    var(--sage-tint);
  color: var(--sage-deep);
}
.ph svg { width: 40%; max-width: 76px; height: auto; opacity: 0.85; }
.ph span {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7;
}
/* On a dark card the cream .portrait backing would wash the placeholder out. */
.card--feature .portrait { background: transparent; box-shadow: none; }
.card--feature .ph {
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px,
      rgba(244, 239, 231, 0.05) 12px, rgba(244, 239, 231, 0.05) 24px),
    rgba(244, 239, 231, 0.1);
  color: var(--sage-tint);
}
.card--feature .ph span { opacity: 0.85; }

/* 5.11e Tick list */
.ticks { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-2); }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 0.42em;
  width: 0.85rem; height: 0.5rem;
  border-left: 1.75px solid var(--sage-deep);
  border-bottom: 1.75px solid var(--sage-deep);
  transform: rotate(-45deg);
}
.card--feature .ticks li { color: var(--on-dark-2); }
.card--feature .ticks li::before { border-color: var(--sage-tint); }

/* 5.12 Pull quote / testimonial */
.quote {
  border-left: 2px solid var(--sage);
  padding-left: var(--sp-4);
}
.quote cite { display: block; margin-top: var(--sp-3); font-style: normal; font-size: var(--step--1); color: var(--ink-3); letter-spacing: 0.04em; }

/* 5.13 Footer */
.footer { background: var(--forest); color: var(--on-dark-2); padding-block: var(--sp-7) var(--sp-5); }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-6); }
.footer h4 { color: var(--on-dark); font-size: 0.8rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.footer li a { display: inline-block; padding: 0.3rem 0; min-height: 32px; }
.footer__bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; align-items: center;
  font-size: 0.82rem;
}
.social { display: flex; gap: var(--sp-2); }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social a:hover { background: rgba(244, 239, 231, 0.1); border-color: var(--on-dark-2); }
.social svg { width: 19px; height: 19px; }

/* ── 6. SECTIONS ─────────────────────────────────────────────────────────── */

/* 6.1 Hero — typographic, photo-light */
.hero {
  position: relative;
  padding-block: clamp(2rem, 0.75rem + 6vw, 7rem) var(--sp-9);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(58rem 34rem at 82% -8%, rgba(111, 128, 105, 0.18), transparent 62%),
    radial-gradient(44rem 30rem at -6% 104%, rgba(176, 137, 104, 0.13), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: var(--sp-4); }
.hero h1 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 90;
  color: var(--sage-deep);
}
.hero .lede { margin-bottom: var(--sp-5); }
.hero__cta { margin-bottom: var(--sp-6); }
.hero__note { font-size: var(--step--1); color: var(--ink-3); display: flex; align-items: center; gap: 0.5rem; }
.hero__note svg { width: 16px; height: 16px; color: var(--sage-deep); flex: none; }

.hero__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: var(--sp-5); align-content: center;
}
.hero__stat .k { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; display: block; }
.hero__stat .v { font-size: var(--step--1); color: var(--ink-3); margin-top: 0.4rem; display: block; max-width: 24ch; }

/* 6.1a Hero — video variant
   Dark, cinematic, full-bleed. Deliberately the only dark thing above the
   footer: the page returns to cream immediately after, so the hero reads as
   a title card rather than a theme change. */
.hero--video {
  --ink: var(--on-dark);
  --ink-2: var(--on-dark-2);
  --ink-3: rgba(191, 197, 184, 0.85);
  --line: rgba(244, 239, 231, 0.22);
  --surface: rgba(244, 239, 231, 0.08);
  /* NB: don't remap --cream here — .btn--light is built on it and would
     dissolve into the footage. */

  position: relative;
  isolation: isolate;
  background: var(--forest);
  color: var(--on-dark);
  min-height: min(46rem, 92svh);
  display: grid;
  align-items: end;
  padding-block: var(--sp-8) var(--sp-7);
  overflow: hidden;
}
.hero--video::before { content: none; }

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media video,
.hero__media { background: var(--forest); }
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Two scrims: a vertical one so the copy always has ground to sit on, and a
   horizontal one so the left column stays legible over the brightest frames. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23, 26, 21, 0.94) 0%, rgba(23, 26, 21, 0.72) 34%,
      rgba(23, 26, 21, 0.28) 66%, rgba(23, 26, 21, 0.4) 100%),
    linear-gradient(to right, rgba(23, 26, 21, 0.8) 0%, rgba(23, 26, 21, 0.25) 55%,
      transparent 100%);
}

.hero--video .hero__inner { display: block; }
.hero--video .hero__copy { max-width: 44rem; }
.hero--video h1 { color: var(--on-dark); text-shadow: 0 1px 24px rgba(23, 26, 21, 0.35); }
.hero--video h1 em { color: var(--sage-tint); }
.hero--video .lede { color: var(--on-dark-2); }
.hero--video .eyebrow { color: var(--sage-tint); }
.hero--video .hero__note { color: var(--on-dark-2); }
.hero--video .hero__note svg { color: var(--sage-tint); }
.hero--video .hero__rec {
  background: rgba(244, 239, 231, 0.1);
  border-left-color: var(--sage-tint);
  color: var(--on-dark);
}
.hero--video .btn--ghost {
  border-color: var(--line);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero--video .btn--ghost:hover { border-color: var(--on-dark); background: rgba(244, 239, 231, 0.14); }
.hero--video .btn--light { background: #F7F3EC; color: var(--forest); box-shadow: var(--sh-2); }
.hero--video .btn--light:hover { background: #fff; }
.hero--video .hero__cta { margin-bottom: 0; }
.hero--video .hero__note { margin-top: var(--sp-5); }

/* Chip bar sitting on the footage */
/* .bodymap is declared later in the sheet, so match its specificity to win. */
.bodymap.bodymap--bar {
  justify-items: start;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  width: 100%;
}
.bodymap--bar .bodymap__label { color: var(--sage-tint); }
.bodymap--bar .bodymap__chips { justify-content: flex-start; max-width: none; }
.bodymap--bar .bm-chip {
  background: rgba(244, 239, 231, 0.1);
  border-color: var(--line);
  color: var(--on-dark);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bodymap--bar .bm-chip:hover { background: rgba(244, 239, 231, 0.2); border-color: var(--on-dark-2); color: #fff; }
.bodymap--bar .bm-chip[aria-pressed='true'] { background: var(--cream-2); border-color: var(--cream-2); color: var(--forest); }
.bodymap--bar .bodymap__reset { color: var(--on-dark-2); }
.bodymap--bar .bodymap__reset:hover { color: var(--on-dark); }

/* Header sits over a dark hero on the homepage — keep it readable but let the
   footage breathe until the user scrolls. */
.hero--video + * { position: relative; }

/* 6.1b Body map — "where does it hurt?" */
.bodymap {
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  align-content: center;
}
.bodymap[hidden] { display: none; }

.bodymap__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0;
}

.bodymap__figure { width: min(100%, 15rem); }
.bodymap__figure svg { width: 100%; height: auto; overflow: visible; }

.bm-region { cursor: pointer; }
.bm-region > * {
  fill: var(--cream-2);
  stroke: var(--line);
  stroke-width: 1.25;
  transition: fill 220ms var(--ease), stroke 220ms var(--ease);
}
.bm-region:hover > * { fill: var(--sage-tint); stroke: var(--sage); }
.bm-region.is-active > * { fill: var(--sage); stroke: var(--sage-deep); }

/* Everything dims when one region is chosen, so the choice reads instantly. */
.bodymap.has-selection .bm-region:not(.is-active) > * { fill: var(--cream-2); opacity: 0.55; }

.bodymap__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  max-width: 26rem;
}
.bm-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.bm-chip:hover { border-color: var(--sage); color: var(--ink); }
.bm-chip[aria-pressed='true'] {
  background: var(--forest); border-color: var(--forest); color: var(--on-dark);
}

.bodymap__reset {
  font-size: var(--step--1);
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding-inline: var(--sp-2);
}
.bodymap__reset:hover { color: var(--ink); }
.bodymap__reset[hidden] { display: none; }

/* Recommendation line that appears under the hero lede */
.hero__rec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  border-left: 2px solid var(--sage);
  background: rgba(221, 227, 217, 0.5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.95rem;
}
.hero__rec[hidden] { display: none; }
.hero__rec b { font-weight: 600; }
.hero__rec .num { font-family: var(--font-display); font-size: var(--step-1); }

/* Copy swap: brief crossfade so the change registers without feeling twitchy */
.hero__copy.is-swapping #hero-panel { opacity: 0; transform: translateY(6px); }
#hero-panel { transition: opacity 180ms var(--ease), transform 180ms var(--ease); }

/* 6.2 Page header (interior pages) */
.phead { padding-block: clamp(3rem, 2.5rem + 5vw, 5.5rem) var(--sp-6); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.phead h1 { font-size: var(--step-4); max-width: 18ch; }
.phead .lede { margin-top: var(--sp-3); }

.crumbs { display: flex; gap: 0.5rem; align-items: center; font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 6.3 CTA band */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-bottom: var(--sp-5); }
.cta-band .btn-row { justify-content: center; }

/* ── 7. MOTION ───────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ── 8. RESPONSIVE ───────────────────────────────────────────────────────── */
@media (min-width: 62rem) {
  .hero__inner { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

@media (max-width: 61.99rem) {
  .nav { display: none; }
  .hero__aside {
    border-left: 0; border-top: 1px solid var(--line);
    padding-left: 0; padding-top: var(--sp-5);
    grid-template-columns: repeat(2, 1fr);
  }
  /* On a phone the hero copy alone fills the fold, so the map would never be
     seen. Move it above the headline and drop the figure — at this size the
     regions are too small to tap accurately, and the chips do the same job. */
  .hero__inner { display: flex; flex-direction: column; }
  .bodymap {
    order: -1;
    width: 100%;
    justify-items: start;
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--line);
    gap: var(--sp-3);
  }
  .bodymap__figure { display: none; }
  .bodymap__chips { justify-content: flex-start; max-width: none; }
  /* The video hero already places the chip bar after the CTAs — it must not
     be reordered above the headline like the anatomy hero's map is. */
  .bodymap--bar {
    order: 0;
    margin-bottom: 0; padding-bottom: 0; border-bottom: 0;
    margin-top: var(--sp-5); padding-top: var(--sp-4);
  }
  .hero--video { min-height: 0; padding-block: var(--sp-6) var(--sp-7); }
  .hero--video .hero__copy { max-width: none; }
  .bm-chip { font-size: 0.82rem; padding-inline: 0.8rem; }
  .bookbar { display: flex; }
  body { padding-bottom: 74px; }
  .footer { padding-bottom: calc(var(--sp-5) + 74px); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 46rem) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-3); }
  .form__row { grid-template-columns: 1fr; }
  .hero__aside { grid-template-columns: 1fr; gap: var(--sp-4); }
  .prow {
    grid-template-columns: 1fr auto;
    row-gap: var(--sp-2);
    padding-block: var(--sp-4);
  }
  .prow .btn { grid-column: 1 / -1; justify-self: start; }
  .modal__panel { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; }
}

@media print {
  .header, .bookbar, .drawer, .modal, .footer .social, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
}
