/* ==========================================================================
   IN CONFIDENCE — Independent HR advice for employees
   Stylesheet
   --------------------------------------------------------------------------
   01 Fonts            06 Hero               11 Pricing
   02 Tokens           07 Situations         12 FAQ
   03 Base             08 Differentiator     13 Boundaries
   04 Utilities        09 Services           14 Closing / contact
   05 Header & menu    10 Adviser & process  15 Footer, legal pages, motion
   ========================================================================== */

/* 01 — Fonts (self-hosted, latin subset; both SIL Open Font Licence) ----- */

/* Body and interface: Source Sans 3 (brand guide). */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* Headlines: Jost, the web stand-in for Moderna (see docs/BRAND.md). */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 02 — Tokens ------------------------------------------------------------- */

:root {
  /* Brand palette: exact values from the IN CONFIDENCE logo guide.
     Use the role tokens below in components, not these directly. */
  --brand-deep-taupe: #635349;      /* primary */
  --brand-warm-stone: #8c7f72;      /* primary, supporting */
  --brand-champagne: #e8e0d4;       /* primary, light neutral */
  --brand-deep-sage: #404740;       /* secondary */
  --brand-olive-charcoal: #464738;  /* secondary */
  --brand-ivory-mist: #f2efe8;      /* secondary, light neutral */

  /* Roles (contrast checked to WCAG AA; see docs/BRAND.md) */
  --color-bg: var(--brand-ivory-mist);
  --color-surface: #ffffff;                       /* raised panels and form fields */
  --color-surface-alt: var(--brand-champagne);
  --color-primary: var(--brand-deep-taupe);       /* buttons, links, selected states */
  --color-primary-hover: var(--brand-olive-charcoal);
  --color-heading: var(--brand-deep-taupe);
  --color-text: var(--brand-olive-charcoal);
  --color-text-soft: rgba(70, 71, 56, 0.86);      /* Olive Charcoal tint, 5:1 or more on light surfaces */
  --color-label: var(--brand-deep-taupe);         /* small labels and meta text */
  --color-accent: var(--brand-warm-stone);        /* rules, dots, large numerals: decorative, not on Champagne */
  --color-focus: var(--brand-deep-taupe);
  --color-field-border: var(--brand-warm-stone);  /* 3:1 or more against fields and page */
  --color-dark: var(--brand-deep-sage);           /* feature panels */
  --color-dark-alt: var(--brand-olive-charcoal);  /* footer, admin navigation */
  --color-brand-dark: var(--brand-deep-taupe);    /* brand statements: closing call to action, mobile menu */
  --color-on-dark: var(--brand-ivory-mist);
  --color-on-dark-soft: rgba(242, 239, 232, 0.8);
  --color-on-dark-faint: rgba(242, 239, 232, 0.72);
  --color-on-dark-accent: var(--brand-champagne);
  --color-line: rgba(99, 83, 73, 0.16);
  --color-line-strong: rgba(99, 83, 73, 0.32);
  --color-line-dark: rgba(242, 239, 232, 0.18);

  /* Status colours: functional, outside the brand palette by design */
  --status-critical: #9a3b2e;
  --status-critical-bg: rgba(154, 59, 46, 0.08);
  --status-positive: var(--brand-deep-sage);
  --status-positive-bg: rgba(64, 71, 64, 0.1);
  --status-pending: #7d5a26;
  --status-pending-bg: var(--brand-champagne);

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1320px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: 24px;
  --header-h: 84px;
  --section-y: clamp(88px, 10vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 03 — Base --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Programmatic focus targets (step headings) are not interactive */
[tabindex="-1"]:focus {
  outline: none;
}

/* The hidden attribute always wins over component display rules */
[hidden] {
  display: none !important;
}

/* Headings take the brand heading colour; dark brand surfaces switch
   headings and focus rings to light tones. */
:where(h1, h2, h3, h4) {
  color: var(--color-heading);
}

.difference,
.area,
.closing,
.site-footer,
.mobile-menu,
.bk-summary,
.price-feature,
.a-side,
.auth {
  --color-heading: var(--color-on-dark);
  --color-focus: var(--color-on-dark-accent);
}

.auth-card {
  --color-heading: var(--brand-deep-taupe);
  --color-focus: var(--brand-deep-taupe);
}

/* 04 — Utilities & shared components -------------------------------------- */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--color-on-dark);
  color: var(--color-primary);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.i {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--color-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.eyebrow-light {
  color: var(--color-on-dark-accent);
}

.eyebrow-light::before {
  background: var(--color-on-dark-accent);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.375rem + 2.08vw, 3.375rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1875rem + 0.72vw, 1.875rem);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}

.section-head.split > :first-child {
  grid-column: 1 / span 7;
}

.section-head.split > :last-child {
  grid-column: 9 / span 4;
}

.section-intro {
  max-width: 36ch;
  color: var(--color-text-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Visible flags for information the master document leaves blank */
.placeholder {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px dashed rgba(140, 127, 114, 0.9);
  border-radius: 3px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.9em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}

.closing .placeholder,
.site-footer .placeholder {
  background: rgba(232, 224, 212, 0.1);
  color: var(--color-on-dark-accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn .i {
  font-size: 1.15rem;
  transition: transform 0.35s var(--ease);
}

.btn:hover .i,
.text-link:hover .i,
.price-book:hover .i {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-light {
  background: var(--color-on-dark);
  color: var(--color-primary);
}

.btn-light:hover {
  background: #fff;
}

.btn-ghost-light {
  border-color: rgba(242, 239, 232, 0.55);
  color: var(--color-on-dark);
}

.btn-ghost-light:hover {
  border-color: var(--color-on-dark);
  background: var(--color-on-dark);
  color: var(--color-primary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-block: 6px;
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link small {
  display: block;
  margin-top: 4px;
  color: var(--color-label);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.text-link .i {
  font-size: 1.15rem;
  transition: transform 0.35s var(--ease);
}

/* 05 — Header & mobile menu ----------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  transition: box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 16px 36px -30px rgba(70, 71, 56, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Approved logo artwork, used exactly as supplied. Heights keep the guide's
   clear space: the logotype "I" height (about 36% of the logo) on every side. */
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: none;
  height: var(--logo-h, 46px);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
}

.primary-nav a {
  position: relative;
  display: block;
  padding-block: 8px;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--color-primary);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.75rem;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--color-field-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--color-primary);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-lines {
  top: calc(50% - 3px);
  transform: translateX(-50%);
}

.menu-lines::before {
  content: "";
  top: 6px;
  left: 0;
}

.menu-open .menu-lines {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.menu-open .menu-lines::before {
  top: 0;
  transform: rotate(-90deg);
}

.mobile-menu {
  display: none;
}

/* 06 — Hero --------------------------------------------------------------- */

/* One photographic band. The copy sits on calm space on the left; the photograph is
   anchored right at full height and fades in from the left, so the subject and her
   tablet stay clear of the text without a heavy overlay. */
.hero {
  --hero-h: clamp(620px, 30vw + 260px, 780px);
  --hero-image-w: calc(var(--hero-h) * 1.5); /* the photograph is 3:2 */
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2));
  /* The tablet starts about a fifth of the way into the photograph: the copy always ends before it. */
  --copy-max: clamp(21rem, calc(100vw - var(--hero-image-w) * 0.78 - var(--edge) - 40px), 38rem);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: var(--hero-h);
  overflow: hidden;
  background: var(--color-bg);
}

.hero-copy {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin-inline: auto;
  padding: clamp(48px, 6vh, 80px) var(--pad);
}

.hero-copy > * {
  max-width: var(--copy-max);
}

.hero-title {
  max-width: min(15ch, var(--copy-max));
  font-family: var(--font-display);
  font-size: clamp(2.3125rem, 1.1875rem + 2.8vw, 4.1875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 34px 0 26px;
  background: var(--color-accent);
}

.hero-lede {
  max-width: min(30ch, var(--copy-max));
  color: var(--color-text-soft);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

/* A little more room than the copy (the 40px clearance allows it), so the two actions
   share a row from common laptop widths up. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  max-width: calc(var(--copy-max) + 1rem);
  margin-top: 40px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
  color: var(--color-label);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-meta li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Full height, a fixed width, and the photograph anchored on its left edge: if the
   copy makes the hero taller, the photograph grows to the right, away from the copy,
   rather than towards it. The fade covers the photograph, its shading and the caption. */
.hero-media {
  --fade: 26%;
  position: absolute;
  inset-block: 0;
  right: 0;
  z-index: -1;
  width: min(var(--hero-image-w), 100%);
  margin: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 var(--fade));
  mask-image: linear-gradient(to right, transparent 4%, #000 var(--fade));
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left 40%;
  filter: saturate(0.85) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(70, 71, 56, 0.7), rgba(70, 71, 56, 0) 46%),
    rgba(70, 71, 56, 0.06);
  pointer-events: none;
}

.hero-media figcaption {
  position: absolute;
  bottom: clamp(24px, 3.2vw, 48px);
  left: calc(var(--fade) + clamp(24px, 3.2vw, 52px));
  z-index: 1;
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 0.9375rem + 0.64vw, 1.6875rem);
  font-style: normal;
  line-height: 1.1;
}

/* Tablet and phone: the copy first, then the photograph full width (no fade needed) */
@media (max-width: 1279px) {
  .hero {
    --copy-max: 36rem;
    display: grid;
    min-height: 0;
  }

  .hero-copy {
    padding: 56px var(--pad) 44px;
  }

  .hero-media {
    --fade: 0%;
    position: relative;
    inset-block: auto;
    z-index: auto;
    width: 100%;
    aspect-ratio: 2 / 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-media img {
    position: absolute;
    inset: 0;
    object-position: 78% 40%;
  }
}

@media (max-width: 640px) {
  .hero-copy {
    padding: 40px var(--pad) 32px;
  }

  .hero-media::after {
    background:
      linear-gradient(to top, rgba(70, 71, 56, 0.78), rgba(70, 71, 56, 0) 60%),
      rgba(70, 71, 56, 0.06);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .hero-actions .text-link {
    justify-content: space-between;
    padding: 14px 4px 4px;
    border-top: 1px solid var(--color-line);
  }

  .hero-meta {
    gap: 6px 14px;
    margin-top: 40px;
  }

  .hero-meta li {
    gap: 14px;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }
}

/* 07 — Situations --------------------------------------------------------- */

.situations-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  border-top: 1px solid var(--color-line-strong);
}

/* Icon, heading and text share the list's rows, so each lines up across the five */
.situation {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 36px clamp(16px, 2vw, 30px) 8px;
  border-left: 1px solid var(--color-line);
}

.situation:first-child {
  padding-left: 0;
  border-left: 0;
}

.situation:last-child {
  padding-right: 0;
}

.situation-num {
  position: absolute;
  top: 40px;
  right: clamp(16px, 2vw, 30px);
  color: var(--color-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.situation:last-child .situation-num {
  right: 0;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  font-size: 24px;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

.situation:hover .icon-badge {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

/* Headings stay within two lines and always take two lines' room,
   so every description starts on the same line across the row. */
.situation h3 {
  min-height: calc(2em * 1.12);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.situation p {
  max-width: 28ch;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 08 — Differentiator ----------------------------------------------------- */

.difference {
  padding-block: var(--section-y);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 88px) var(--gap);
}

.difference-head {
  grid-column: 1 / span 6;
  grid-row: 1;
}

.difference-title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.2rem + 2.9vw, 4.25rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.difference-media {
  position: relative;
  grid-column: 1 / span 5;
  grid-row: 2;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: var(--radius);
}

.difference-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(0.62) contrast(1.05) brightness(0.9);
}

.difference-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(64, 71, 64, 0.24);
  mix-blend-mode: multiply;
}

.difference-body {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  align-self: end;
}

.difference-lead {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 0.9375rem + 0.72vw, 1.6875rem);
  line-height: 1.25;
}

.difference-body > p:not(.difference-lead) {
  max-width: 48ch;
  color: var(--color-on-dark-soft);
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--color-line-dark);
}

.values li {
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--color-line-dark);
}

.values li:nth-child(even) {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid var(--color-line-dark);
}

.values li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.values .i {
  margin-bottom: 18px;
  color: var(--color-on-dark-accent);
  font-size: 26px;
}

.values h3 {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.values p {
  max-width: 26ch;
  color: var(--color-on-dark-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* 09 — Services ----------------------------------------------------------- */

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.area {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.area img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);
  transition: transform 1.6s var(--ease-out);
}

.area:nth-child(1) img { object-position: 64% 50%; }
.area:nth-child(2) img { object-position: 58% 50%; }
.area:nth-child(3) img { object-position: 30% 50%; }
.area:nth-child(4) img { object-position: 72% 50%; }

.area::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(70, 71, 56, 0.25), rgba(70, 71, 56, 0) 28%),
    linear-gradient(to top, rgba(70, 71, 56, 0.9), rgba(70, 71, 56, 0.35) 52%, rgba(70, 71, 56, 0) 78%);
}

.area:hover img {
  transform: scale(1.045);
}

.area-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--color-on-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.area-num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-on-dark-accent);
  transition: width 0.7s var(--ease-out);
}

.area:hover .area-num::after {
  width: 64px;
}

/* In the flow (not positioned), so the card link can cover the whole card */
.area-body {
  padding: 28px;
}

.area h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1875rem + 0.64vw, 1.875rem);
  font-weight: 500;
  line-height: 1.08;
}

.area p {
  min-height: 6em; /* four lines, so every title sits at the same height */
  max-width: 28ch;
  color: var(--color-on-dark-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The whole card is the link's target */
.area-link {
  color: inherit;
  text-decoration: none;
}

.area-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.area-link:focus-visible {
  outline: none;
}

.area:has(.area-link:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.area-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--color-on-dark-accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.area-more .i {
  font-size: 1rem;
  transition: transform 0.35s var(--ease);
}

.area:hover .area-more .i {
  transform: translateX(4px);
}

/* Ways to work together */

/* Each column shares five rows (label, title, description, fee, more),
   so matching elements start at the same height across the row. */
.formats {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  column-gap: var(--gap);
  margin-top: clamp(72px, 8vw, 120px);
  padding-top: 48px;
  border-top: 1px solid var(--color-line-strong);
}

.formats-intro {
  grid-column: 1 / span 3;
  grid-row: 1 / span 5;
  padding-right: 16px;
}

.formats-intro p {
  max-width: 28ch;
  margin-top: 16px;
  color: var(--color-text-soft);
  font-size: 1rem;
}

.format {
  display: grid;
  grid-column: span 3;
  grid-row: span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding-left: 28px;
  border-left: 1px solid var(--color-line);
}

.format-label {
  color: var(--color-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format h4 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.format > p:not(.format-label):not(.format-price) {
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.format-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.format-price span {
  color: var(--color-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format-price strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}

/* Sub-options start folded, to keep the overview clean */
.format-more {
  margin-top: 22px;
}

.format-more summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.format-more summary::-webkit-details-marker {
  display: none;
}

.format-more-icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.format-more-icon::before,
.format-more-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  margin: -0.5px 0 0 -5px;
  background: var(--color-primary);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.format-more-icon::after {
  transform: rotate(90deg);
}

.format-more summary:hover .format-more-icon,
.format-more[open] .format-more-icon {
  border-color: var(--color-primary);
}

.format-more[open] .format-more-icon {
  background: var(--color-primary);
}

.format-more[open] .format-more-icon::before,
.format-more[open] .format-more-icon::after {
  background: var(--color-on-dark);
}

.format-more[open] .format-more-icon::after {
  transform: rotate(0deg);
}

.format-more-open,
.format-more[open] .format-more-closed {
  display: none;
}

.format-more[open] .format-more-open {
  display: inline;
}

.format-more[open] .format-items {
  animation: format-reveal 0.35s var(--ease-out);
}

@keyframes format-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .format-more[open] .format-items { animation: none; }
}

.format-items {
  margin-top: 16px;
}

.format-items > div {
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}

.format-items dt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.format-items dt span {
  padding-top: 4px;
  color: var(--color-label);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.format-items dd {
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* 10 — Adviser & process -------------------------------------------------- */

.adviser {
  background: var(--color-surface-alt);
}

.adviser-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.adviser-portrait {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  grid-column: 1 / span 5;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}

.adviser-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adviser-portrait.is-placeholder {
  display: grid;
  place-items: center;
  background: rgba(140, 127, 114, 0.16);
  box-shadow: inset 0 0 0 1px rgba(70, 71, 56, 0.06);
}

.adviser-portrait .adviser-portrait-mark {
  width: 26%;
  height: auto;
  object-fit: contain;
}

.adviser-portrait figcaption {
  position: absolute;
  bottom: 24px;
  left: 28px;
  color: var(--color-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.adviser-copy {
  grid-column: 7 / span 6;
}

.adviser-name {
  margin-top: 28px;
  color: var(--color-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.adviser-bio {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--color-text-soft);
}

.adviser-quote {
  margin-top: 44px;
  padding-left: 28px;
  border-left: 1px solid var(--color-accent);
}

.adviser-quote p {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.625rem);
  font-style: normal;
  line-height: 1.3;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--color-line-strong);
}

.fact {
  padding: 26px 20px 26px 0;
  border-bottom: 1px solid var(--color-line);
}

.fact:nth-child(even) {
  padding-right: 0;
  padding-left: 26px;
  border-left: 1px solid var(--color-line);
}

.fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact dt {
  font-variant-numeric: lining-nums;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 1.9375rem + 1.28vw, 3.375rem);
  font-weight: 400;
  line-height: 1.08;
}

.fact dd {
  max-width: 26ch;
  margin-top: 12px;
  color: var(--color-text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.fact-text dt {
  color: var(--color-label);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fact-text dd {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.25;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}

.step {
  position: relative;
  padding: 40px 16px 0 0;
  border-top: 1px solid var(--color-line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.step-num {
  font-variant-numeric: lining-nums;
  display: block;
  margin-bottom: 30px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 1.9375rem + 1.12vw, 3.1875rem);
  font-style: normal;
  line-height: 1.08;
}

.step h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
}

.step p {
  max-width: 28ch;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 11 — Pricing ------------------------------------------------------------ */

.pricing {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px var(--gap);
}

.pricing-intro {
  grid-column: 1 / span 5;
}

.pricing-intro .section-intro {
  margin-top: 24px;
}

.price-feature {
  margin-top: 44px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.price-feature-label {
  color: var(--color-on-dark-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-feature-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-line-dark);
}

.price-feature h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1875rem + 0.8vw, 2rem);
  font-weight: 500;
  line-height: 1.05;
}

.price-feature-amount {
  font-variant-numeric: lining-nums;
  font-family: var(--font-display);
  font-size: clamp(2.1875rem, 1.75rem + 1.12vw, 2.8125rem);
  line-height: 1.08;
}

.price-feature-meta {
  margin-top: 20px;
  color: var(--color-on-dark-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-feature-desc {
  margin-top: 8px;
  color: var(--color-on-dark-soft);
}

.price-feature .btn {
  width: 100%;
  margin-top: 30px;
}

.price-lists {
  grid-column: 7 / span 6;
  padding-top: 6px;
}

.price-group + .price-group {
  margin-top: 52px;
}

.price-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line-strong);
}

.price-group-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.price-group-head p {
  color: var(--color-label);
  font-size: 0.8125rem;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}

.price-name h4 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.2;
}

.price-name p {
  margin-top: 4px;
  color: var(--color-text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

.price-amount {
  font-variant-numeric: lining-nums;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.08;
  text-align: right;
  white-space: nowrap;
}

.price-amount small {
  margin-right: 4px;
  color: var(--color-label);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 0.35em;
}

.price-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.price-book .i {
  font-size: 1rem;
  transition: transform 0.35s var(--ease);
}

.price-book:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.price-note {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--color-label);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* 12 — FAQ ---------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--gap);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  grid-column: 1 / span 4;
}

.faq-intro p:not(.eyebrow) {
  max-width: 32ch;
  margin-top: 24px;
  color: var(--color-text-soft);
}

.faq-intro a,
.boundaries-note a {
  color: var(--color-primary);
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.accordion {
  grid-column: 6 / span 7;
  border-top: 1px solid var(--color-line-strong);
}

.acc-item {
  border-bottom: 1px solid var(--color-line);
}

.acc-heading {
  font: inherit;
}

.acc-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.43vw, 1.375rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.acc-trigger:hover {
  color: var(--color-primary);
}

.acc-icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  margin: -0.5px 0 0 -6px;
  background: var(--color-primary);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}

.acc-icon::after {
  transform: rotate(90deg);
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  background: var(--color-on-dark);
}

.acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: rotate(0deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
}

.js .acc-panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease), visibility 0s linear 0.5s;
}

.js .acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.5s var(--ease), visibility 0s linear 0s;
}

.acc-panel > div {
  overflow: hidden;
}

.acc-panel p {
  max-width: 62ch;
  padding: 0 64px 28px 0;
  color: var(--color-text-soft);
}

/* 13 — Professional boundaries -------------------------------------------- */

.boundaries {
  padding-block: clamp(56px, 6vw, 96px);
  border-top: 1px solid var(--color-line);
}

.boundaries-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px var(--gap);
}

.boundaries-head {
  grid-column: 1 / span 4;
}

.boundaries-head .h3 {
  max-width: 16ch;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem);
}

.boundaries-body {
  grid-column: 6 / span 7;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
}

.boundaries-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 18px 0 24px;
}

.boundaries-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--color-line);
  color: var(--color-text);
  line-height: 1.5;
}

.boundaries-list li::before {
  content: "";
  position: absolute;
  top: calc(12px + 0.75em);
  left: 2px;
  width: 12px;
  height: 1px;
  background: var(--color-label);
}

.boundaries-note {
  max-width: 68ch;
  color: var(--color-label);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 14 — Closing / contact -------------------------------------------------- */

.closing {
  padding-block: var(--section-y);
  background: var(--color-brand-dark);
  color: var(--color-on-dark);
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 56px var(--gap);
  align-items: center;
}

.closing-copy {
  grid-column: 1 / span 6;
}

.closing-title {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.3125rem, 1.25rem + 2.72vw, 4.1875rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.closing-lede {
  max-width: 40ch;
  margin-top: 28px;
  color: var(--color-on-dark-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.closing-details {
  margin-top: 56px;
  border-top: 1px solid var(--color-line-dark);
}

.closing-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-dark);
  font-size: 0.875rem;
}

.closing-details dt {
  padding-top: 3px;
  color: var(--color-on-dark-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.closing-details dd {
  color: var(--color-on-dark-soft);
}

.closing-media {
  position: relative;
  grid-column: 8 / span 5;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}

.closing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
  filter: saturate(0.75) contrast(1.02);
}

/* 15 — Footer ------------------------------------------------------------- */

.site-footer {
  padding: 72px 0 36px;
  background: var(--color-dark-alt);
  color: var(--color-on-dark-soft);
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-line-dark);
}

.footer-brand {
  --logo-h: 48px;
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 22px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.footer-nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--color-on-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.footer-nav a:hover {
  color: var(--color-on-dark-accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  padding-top: 28px;
  color: var(--color-on-dark-faint);
  font-size: 0.78rem;
}

/* Legal pages */

.legal {
  max-width: 760px;
  padding-block: clamp(64px, 8vw, 120px);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1875rem, 1.625rem + 1.92vw, 3.1875rem);
  font-weight: 500;
  line-height: 1.08;
}

.legal-intro {
  margin-top: 22px;
  color: var(--color-text-soft);
  font-size: 1.125rem;
}

.legal h2 {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.legal p,
.legal ul {
  margin-top: 14px;
  color: var(--color-text-soft);
}

.legal ul {
  padding-left: 1.2em;
  list-style: disc;
}

.legal li + li {
  margin-top: 6px;
}

.legal-back {
  display: inline-flex;
  margin-top: 56px;
}

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js .hero-media img {
    animation: settle 2.4s var(--ease-out) both;
  }

  @keyframes settle {
    from { transform: scale(1.07); }
    to { transform: scale(1); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .primary-nav ul {
    gap: 20px;
  }

  .header-inner {
    gap: 24px;
  }
}

/* Tablet ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .primary-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    overflow-y: auto;
    background: var(--color-brand-dark);
    border-top: 1px solid var(--color-line-dark);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }

  .menu-open .mobile-menu {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
  }

  .menu-open {
    overflow: hidden;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .mobile-menu li {
    border-bottom: 1px solid var(--color-line-dark);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }

  .menu-open .mobile-menu li {
    opacity: 1;
    transform: none;
  }

  .menu-open .mobile-menu li:nth-child(2) { transition-delay: 40ms; }
  .menu-open .mobile-menu li:nth-child(3) { transition-delay: 80ms; }
  .menu-open .mobile-menu li:nth-child(4) { transition-delay: 120ms; }
  .menu-open .mobile-menu li:nth-child(5) { transition-delay: 160ms; }
  .menu-open .mobile-menu li:nth-child(6) { transition-delay: 200ms; }

  .mobile-menu li a {
    display: block;
    padding: 16px 0;
    color: var(--color-on-dark);
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.1875rem);
    line-height: 1.1;
    text-decoration: none;
  }

  .mobile-menu-foot {
    margin-top: auto;
    padding-top: 40px;
  }

  .mobile-menu-foot .btn {
    width: 100%;
  }

  .mobile-menu-foot p {
    max-width: 34ch;
    margin-top: 20px;
    color: var(--color-on-dark-soft);
    font-size: 0.875rem;
  }

  /* Situations become horizontal rows in two columns */
  .situations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    column-gap: 40px;
    border-top: 0;
  }

  .situation,
  .situation:first-child,
  .situation:last-child {
    display: grid;
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 22px;
    align-content: start;
    padding: 28px 40px 28px 0;
    border-top: 1px solid var(--color-line-strong);
    border-left: 0;
  }

  .situation:last-child {
    grid-column: 1 / -1;
  }

  .situation .icon-badge {
    grid-row: span 2;
    margin: 0;
  }

  .situation h3 {
    min-height: 0;
    margin-bottom: 6px;
    font-size: 1.3125rem;
  }

  .situation-num,
  .situation:last-child .situation-num {
    top: 32px;
    right: 0;
  }

  .difference-head {
    grid-column: 1 / -1;
  }

  .difference-media {
    grid-column: 1 / span 5;
    aspect-ratio: 4 / 5;
  }

  .difference-body {
    grid-column: 6 / span 7;
    grid-row: 2;
  }

  .areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area {
    aspect-ratio: 4 / 3.4;
  }

  .formats {
    grid-template-rows: auto repeat(5, auto);
  }

  .formats-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 40px;
  }

  .format {
    grid-column: span 4;
  }

  .format:first-of-type {
    padding-left: 0;
    border-left: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .pricing-intro,
  .price-lists {
    grid-column: 1 / -1;
  }

  .pricing-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    align-items: end;
  }

  .pricing-intro > :not(.price-feature) {
    grid-column: 1;
  }

  .price-feature {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0;
  }

  .faq-intro {
    position: static;
    grid-column: 1 / -1;
  }

  .accordion {
    grid-column: 1 / -1;
  }

  .boundaries-head,
  .boundaries-body {
    grid-column: 1 / -1;
  }
}

/* Small tablet / large phone ---------------------------------------------- */

@media (max-width: 860px) {
  .section-head.split {
    display: block;
  }

  .section-head.split > :last-child {
    margin-top: 20px;
  }

  .difference-media,
  .difference-body {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .difference-media {
    aspect-ratio: 16 / 10;
  }

  .adviser-grid {
    row-gap: 48px;
  }

  .adviser-portrait {
    position: relative;
    top: 0;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .adviser-portrait .adviser-portrait-mark {
    width: 14%;
  }

  .adviser-copy {
    grid-column: 1 / -1;
  }

  .pricing-intro {
    display: block;
  }

  .price-feature {
    margin-top: 40px;
  }

  .closing-copy,
  .closing-media {
    grid-column: 1 / -1;
  }

  .closing-media {
    aspect-ratio: 16 / 10;
  }
}

/* Phone ------------------------------------------------------------------- */

@media (max-width: 640px) {
  :root {
    --header-h: 70px;
    --gap: 16px;
  }

  body {
    font-size: 1rem;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .site-header,
  .footer-brand {
    --logo-h: 40px;
  }

  .btn {
    gap: 12px;
    padding-inline: 22px;
    letter-spacing: 0.12em;
  }

  .situations-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .situation,
  .situation:first-child,
  .situation:last-child {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 18px;
    padding: 24px 32px 24px 0;
  }

  .situation .icon-badge {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .situation h3 {
    font-size: 1.1875rem;
  }

  .situation-num,
  .situation:last-child .situation-num {
    top: 28px;
  }

  .values li,
  .values li:nth-child(even) {
    padding: 22px 12px 22px 0;
  }

  .values li:nth-child(even) {
    padding-left: 16px;
  }

  .values .i {
    margin-bottom: 14px;
  }

  .values h3 {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .values p {
    font-size: 0.875rem;
  }

  /* Service areas become a swipeable row */
  .areas {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .areas::-webkit-scrollbar {
    display: none;
  }

  .area {
    flex: 0 0 80%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .area-body {
    padding: 24px;
  }

  .formats {
    padding-top: 40px;
  }

  .formats {
    grid-template-rows: none;
  }

  .format,
  .format:first-of-type {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
    padding: 28px 0 0;
    border-top: 1px solid var(--color-line);
    border-left: 0;
  }

  .formats-intro + .format {
    padding-top: 0;
    border-top: 0;
  }

  .fact,
  .fact:nth-child(even) {
    padding: 22px 12px 22px 0;
  }

  .fact:nth-child(even) {
    padding-left: 16px;
  }

  .fact-text dd {
    font-size: 1rem;
  }

  .adviser-quote {
    padding-left: 20px;
  }

  /* Steps become a vertical sequence */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 28px 0;
    border-top: 1px solid var(--color-line);
  }

  .step::before {
    display: none;
  }

  .step:last-child {
    border-bottom: 1px solid var(--color-line);
  }

  .step-num {
    grid-row: span 2;
    margin: 0;
    font-size: 2rem;
  }

  .step h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 14px;
    padding: 20px 0;
  }

  .price-name {
    grid-column: 1 / -1;
  }

  .price-amount {
    text-align: left;
  }

  .price-group-head {
    display: block;
  }

  .price-group-head p {
    margin-top: 6px;
  }

  .acc-trigger {
    padding: 22px 0;
  }

  .acc-icon {
    width: 34px;
    height: 34px;
  }

  .acc-panel p {
    padding-right: 0;
  }

  .boundaries-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-actions .btn {
    width: 100%;
  }

  .closing-details > div {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-header {
    --logo-h: 36px;
  }
}

/* ==========================================================================
   16 — Multi-page site components
   ========================================================================== */

.page-hero {
  padding-block: clamp(64px, 8vw, 128px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--color-line);
}

/* Title and intro start on the same line (top-aligned) on every page */
.page-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gap);
  align-items: start;
}

.page-hero-grid > :first-child { grid-column: 1 / span 8; }
.page-hero-grid > :last-child:not(:first-child) { grid-column: 9 / span 4; }

.page-title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.3125rem, 1.25rem + 2.88vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.page-lede {
  max-width: 46ch;
  color: var(--color-text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.section-tight { padding-block: clamp(64px, 7vw, 112px); }
.section-paper { background: var(--color-surface); }
.section-sand { background: var(--color-surface-alt); }
.section-line { border-top: 1px solid var(--color-line); }

/* Prose: CMS content ------------------------------------------------------ */

.prose { max-width: 68ch; color: var(--color-text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; color: var(--color-heading); font-family: var(--font-display); font-size: clamp(1.3125rem, 1.0625rem + 0.72vw, 1.6875rem); font-weight: 500; line-height: 1.15; }
.prose h3 { margin-top: 1.6em; color: var(--color-heading); font-family: var(--font-display); font-size: 1.3125rem; font-weight: 500; line-height: 1.2; }
.prose h4 { margin-top: 1.4em; color: var(--color-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; top: 0.85em; left: 2px; width: 12px; height: 1px; background: var(--color-accent); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--color-primary); text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--color-text); font-weight: 500; }
.prose blockquote { padding-left: 24px; border-left: 1px solid var(--color-accent); color: var(--color-primary); font-family: var(--font-display); font-size: 1.1875rem; font-style: normal; line-height: 1.35; }
.prose img { border-radius: var(--radius); }
.prose figure figcaption { margin-top: 10px; color: var(--color-label); font-size: 0.8125rem; }
.prose hr { border: 0; border-top: 1px solid var(--color-line); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius); background: var(--color-surface-alt); font-size: 0.875rem; }

/* Editorial sections: heading left, text right */
.editorial-sections > section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px var(--gap);
  padding-block: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--color-line);
}
.editorial-sections > section:first-child { border-top: 0; padding-top: 0; }
.editorial-sections h2 { grid-column: 1 / span 4; font-family: var(--font-display); font-size: clamp(1.375rem, 1.125rem + 0.8vw, 1.875rem); font-weight: 500; line-height: 1.1; text-wrap: balance; }
.editorial-sections .prose { grid-column: 6 / span 7; }

/* Placeholder marker inside CMS pages */
.prose .placeholder, .page-content .placeholder { white-space: nowrap; }

/* Alerts ------------------------------------------------------------------ */

.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 0.9375rem;
}
.alert strong { color: var(--color-text); font-weight: 500; }
.alert-success { border-left-color: var(--status-positive); background: var(--status-positive-bg); }
.alert-error { border-left-color: var(--status-critical); background: var(--status-critical-bg); }
.alert + .alert { margin-top: 12px; }

/* Forms ------------------------------------------------------------------- */

.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { min-width: 0; }
.field > label:not(.check), .field-head label:not(.check), .field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.field-optional { margin-left: 6px; color: var(--color-label); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }

.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  appearance: none;
}
.select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-soft) 50%), linear-gradient(135deg, var(--color-text-soft) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.textarea { min-height: 132px; resize: vertical; }
.input[type="date"], .input[type="time"], .input[type="datetime-local"] { accent-color: var(--color-primary); color-scheme: light; }
.input::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  padding: 0;
  background: center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635349' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.75' y='5.25' width='16.5' height='15' rx='1.5'/%3E%3Cpath d='M3.75 9.75h16.5M8.25 3.25v4M15.75 3.25v4'/%3E%3C/svg%3E");
  cursor: pointer;
  opacity: 1;
}
.input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23635349' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.75'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(99, 83, 73, 0.18); outline: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--status-critical); }
.field-hint { margin-top: 7px; color: var(--color-label); font-size: 0.8125rem; line-height: 1.5; }
.field-error { margin-top: 7px; color: var(--status-critical); font-size: 0.8125rem; line-height: 1.5; }

.check { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-soft); font-size: 0.9375rem; line-height: 1.55; cursor: pointer; }
/* The box sits level with the middle of the first line, whatever the text size (1lh is the label's line height) */
.check input { flex-shrink: 0; width: 18px; height: 18px; margin: 3px 0 0; margin-top: max(0px, calc((1lh - 18px) / 2)); font: inherit; accent-color: var(--color-primary); }
.check a { color: var(--color-primary); text-underline-offset: 3px; }
.checks { display: grid; gap: 14px; }

.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.choice input { width: 18px; height: 18px; accent-color: var(--color-primary); }
.choice:has(input:checked) { border-color: var(--color-primary); background: rgba(99, 83, 73, 0.06); }

/* Honeypot: invisible to people, tempting to bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-outline { border-color: var(--color-field-border); color: var(--color-primary); }
.btn-outline:hover { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
.btn-small { min-height: 42px; padding: 10px 18px; font-size: 0.75rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--color-primary); font: inherit; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 3px; cursor: pointer; }

/* Status badges (manage page) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-positive { background: var(--status-positive-bg); color: var(--status-positive); }
.badge-pending { background: var(--status-pending-bg); color: var(--status-pending); }
.badge-critical { background: var(--status-critical-bg); color: var(--status-critical); }
.badge-muted { color: var(--color-label); }

/* Services page ---------------------------------------------------------- */

/* Every text block in the right-hand column shares one left edge and one measure */
.service-group { --service-measure: 38rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-group + .service-group { margin-top: clamp(56px, 6vw, 96px); }
.service-group-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--gap);
  align-items: baseline;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-line-strong);
}
.service-group-head h2 { grid-column: 1 / span 5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-family: var(--font-display); font-size: clamp(1.625rem, 1.25rem + 0.96vw, 2.1875rem); font-weight: 500; line-height: 1.05; }
.service-group-count { color: var(--color-label); font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; line-height: 1.4; text-transform: uppercase; }
.service-group-head p { grid-column: 7 / span 6; max-width: var(--service-measure); color: var(--color-text-soft); }

.service-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gap);
  align-items: start;
  padding-block: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--color-line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
/* Name, details, fee and action stay in view while the description is read */
.service-item-aside { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 26px; justify-items: start; }
.service-item-head { width: 100%; }
.service-item-head h3 { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1875rem + 0.72vw, 1.8125rem); font-weight: 500; line-height: 1.12; text-wrap: balance; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.service-meta li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--color-surface-alt); color: var(--color-label); font-size: 0.8125rem; line-height: 1.4; }
.service-meta .i { font-size: 1rem; stroke-width: 1.5; }
.service-price { display: flex; align-items: baseline; gap: 10px; max-width: 24rem; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-line); }
.service-price span { color: var(--color-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.service-price strong { color: var(--color-primary); font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; line-height: 1.08; font-variant-numeric: lining-nums; }
.service-actions { display: grid; justify-items: start; gap: 12px; }
.service-actions .note { display: flex; align-items: center; gap: 8px; color: var(--color-label); font-size: 0.8125rem; line-height: 1.5; }
.service-actions .note .i { flex: none; font-size: 0.95rem; stroke-width: 1.5; }
.service-actions .note a { color: var(--color-primary); text-underline-offset: 3px; }
.service-item-body { grid-column: 7 / span 6; max-width: var(--service-measure); }
.service-lead { color: var(--color-text); font-size: 1.125rem; line-height: 1.6; }
.service-item-body .prose { max-width: none; margin-top: 20px; font-size: 0.9375rem; }

/* What we help with: four topic cards; each pair shares rows so content lines up */
.topics-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--gap); align-items: baseline; margin-bottom: clamp(28px, 3vw, 40px); }
.topics-head h2 { grid-column: 1 / span 6; }
.topics-head p { grid-column: 7 / span 6; max-width: 38rem; color: var(--color-text-soft); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.topic { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; margin-bottom: var(--gap); overflow: hidden; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-surface); scroll-margin-top: calc(var(--header-h) + 24px); }
.topic:target { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.topic-media { aspect-ratio: 16 / 6; overflow: hidden; background: var(--color-dark); }
.topic-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78); }
.topic-head { padding: 24px 28px 0; }
.topic-num { display: block; margin-bottom: 8px; color: var(--color-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; }
.topic-head h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.25rem + 0.6vw, 1.875rem); font-weight: 500; line-height: 1.1; }
.topic-head p { max-width: 44ch; margin-top: 8px; color: var(--color-text-soft); font-size: 0.9375rem; line-height: 1.6; }
.topic-outcome { margin: 20px 28px 0; padding: 16px 18px; border-radius: 8px; background: var(--color-bg); }
.topic-outcome p:last-child { color: var(--color-text); font-size: 0.9375rem; line-height: 1.6; }
.topic-label { margin-bottom: 6px; color: var(--color-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.topic-ways { padding: 20px 28px 0; }
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.topic-links a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--color-line-strong); border-radius: 999px; color: var(--color-primary); font-size: 0.8125rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.topic-links a:hover { border-color: var(--color-primary); background: var(--color-bg); }
.topic-links .i { font-size: 0.95rem; transition: transform 0.3s var(--ease); }
.topic-links a:hover .i { transform: translateX(3px); }
.topic .topic-covers { margin: 20px 28px 0; padding: 16px 0 24px; border-top: 1px solid var(--color-line); }
.topic-list { display: grid; gap: 8px; margin-top: 14px; }
.topic-list li { position: relative; padding-left: 22px; color: var(--color-text-soft); font-size: 0.9rem; line-height: 1.55; }
.topic-list li::before { content: ""; position: absolute; top: 0.8em; left: 2px; width: 10px; height: 1px; background: var(--color-accent); }
.topic-boundary { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--color-surface-alt); color: var(--color-text-soft); font-size: 0.8125rem; line-height: 1.55; }
.topic-boundary .i { flex: none; margin-top: 2px; color: var(--color-label); font-size: 1rem; stroke-width: 1.5; }
.service-topics { margin-top: 12px; color: var(--color-label); font-size: 0.8125rem; }
.service-topics a { margin: 0 3px; color: var(--color-primary); text-underline-offset: 3px; }
.service-topics span { color: var(--color-line-strong); }

/* "Which service?" cards: eyebrow, question, answer and link share rows across the three */
.guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  gap: var(--gap);
}
.guide-item {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  position: relative;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.guide-item:hover { border-color: var(--color-field-border); box-shadow: 0 18px 36px -26px rgba(70, 71, 56, 0.55); }
.guide-item:has(.guide-link:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.guide-item .eyebrow { margin-bottom: 14px; }
.guide-item h3 { color: var(--color-heading); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.15; text-wrap: balance; }
.guide-item p:not(.eyebrow) { margin-top: 10px; color: var(--color-text-soft); font-size: 0.9375rem; }
.guide-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 20px; color: var(--color-primary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; }
.guide-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link's target */
.guide-link:focus-visible { outline: none; }
.guide-link .i { font-size: 1.05rem; transition: transform 0.3s var(--ease); }
.guide-item:hover .guide-link .i { transform: translateX(4px); }

/* Contact page ---------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--gap); align-items: start; }
.contact-form { grid-column: 1 / span 7; }
.contact-aside { grid-column: 9 / span 4; display: grid; gap: 28px; }
.aside-block { padding-top: 20px; border-top: 1px solid var(--color-line-strong); }
.aside-block h2 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.3125rem; font-weight: 500; }
.aside-block p { color: var(--color-text-soft); font-size: 0.9375rem; }
.aside-block .text-link { margin-top: 12px; }

/* Booking flow ---------------------------------------------------------- */

.bk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  min-height: 420px;
}
.bk-main { min-width: 0; }

/* Steps: completed ones are buttons back to that step */
.bk-steps { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--color-line); counter-reset: bkstep; }
.bk-steps li { display: flex; align-items: center; gap: 6px; }
.bk-steps li[hidden] { display: none; }
.bk-steps li + li::before { content: ""; width: 18px; height: 1px; margin-right: 2px; background: var(--color-line-strong); }
.bk-steps li.is-done + li::before, .bk-steps li.is-done + li.is-done::before { background: var(--color-accent); }
.bk-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-label);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bk-step::before {
  counter-increment: bkstep;
  content: counter(bkstep);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  font-size: 0.7rem;
  letter-spacing: 0;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.bk-step:disabled { cursor: default; }
.bk-steps li[aria-current="step"] .bk-step { color: var(--color-primary); }
.bk-steps li[aria-current="step"] .bk-step::before { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
.bk-steps li.is-done .bk-step { color: var(--color-text-soft); cursor: pointer; }
.bk-steps li.is-done .bk-step::before { content: "✓"; border-color: var(--color-accent); color: var(--color-primary); }
.bk-steps li.is-done .bk-step:not(:disabled):hover { background: var(--color-surface-alt); color: var(--color-primary); }

.bk-panel[hidden] { display: none; }
.bk-panel:not([hidden]) { animation: bk-in 0.35s var(--ease-out); }
@keyframes bk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-title { margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(1.375rem, 1.125rem + 0.8vw, 1.875rem); font-weight: 500; line-height: 1.1; }
.bk-title:focus { outline: none; }
.bk-sub { max-width: 62ch; margin-bottom: 28px; color: var(--color-text-soft); font-size: 0.9375rem; }
.bk-back { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 4px 0; border: 0; background: none; color: var(--color-text-soft); font: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.bk-back .i { font-size: 1rem; transform: rotate(180deg); transition: transform 0.25s var(--ease); }
.bk-back:hover { color: var(--color-primary); }
.bk-back:hover .i { transform: rotate(180deg) translateX(3px); }
.bk-error { margin-top: 18px; }

/* Service choice: real radio buttons, drawn as cards */
.bk-services { margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-service-group + .bk-service-group { margin-top: 28px; }
.bk-group-label { margin-bottom: 10px; color: var(--color-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.bk-service {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bk-service + .bk-service { margin-top: 10px; }
.bk-service:hover { border-color: var(--color-field-border); box-shadow: 0 10px 24px -18px rgba(70, 71, 56, 0.45); }
.bk-service input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bk-radio { position: relative; width: 22px; height: 22px; margin-top: 2px; border: 1.5px solid var(--color-field-border); border-radius: 50%; background: var(--color-surface); transition: border-color 0.2s var(--ease); }
.bk-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--color-primary); transform: scale(0); transition: transform 0.2s var(--ease-out); }
.bk-service:has(input:checked) { border-color: var(--color-primary); background: rgba(99, 83, 73, 0.05); box-shadow: inset 0 0 0 1px var(--color-primary); }
.bk-service:has(input:checked) .bk-radio { border-color: var(--color-primary); }
.bk-service:has(input:checked) .bk-radio::after { transform: scale(1); }
.bk-service:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.bk-service-body { display: grid; gap: 6px; min-width: 0; }
.bk-service-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.bk-service-name { color: var(--color-heading); font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; line-height: 1.2; }
.bk-service-price { color: var(--color-primary); font-family: var(--font-display); font-size: 1.1875rem; white-space: nowrap; font-variant-numeric: lining-nums; }
.bk-service-desc { max-width: 60ch; color: var(--color-text-soft); font-size: 0.9rem; line-height: 1.55; }
.bk-service-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--color-bg); color: var(--color-label); font-size: 0.75rem; line-height: 1.4; }
.bk-chip .i { font-size: 0.95rem; stroke-width: 1.5; }
.bk-service:has(input:checked) .bk-chip { background: var(--color-surface); }

/* Calendar */
.cal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 500; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cal-nav button:hover:not(:disabled) { border-color: var(--color-primary); background: var(--color-surface); }
.cal-nav button:disabled { opacity: 0.35; cursor: default; }
.cal-nav .i { font-size: 1rem; }
.cal-nav .prev .i { transform: rotate(180deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid[aria-busy="true"] { opacity: 0.5; transition: opacity 0.2s var(--ease); }
.cal-dow { padding-bottom: 6px; color: var(--color-label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-label);
  font: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: default;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cal-day:disabled { opacity: 0.55; }
.cal-day.is-available { border-color: var(--color-line); background: var(--color-surface); color: var(--color-text); font-weight: 500; cursor: pointer; }
.cal-day.is-available::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--color-accent); }
.cal-day.is-available:hover { border-color: var(--color-primary); }
.cal-day[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
.cal-day[aria-pressed="true"]::after { background: var(--color-on-dark); }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--color-accent); }
.cal-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--color-label); font-size: 0.78rem; }

.slots-head { margin-bottom: 14px; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; }
.slots-count { display: block; margin-top: 2px; color: var(--color-label); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 400; }
.slots { display: grid; gap: 16px; }
.slots-label { margin-bottom: 8px; color: var(--color-label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.slots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 10px 8px;
  white-space: nowrap;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.slot:hover { border-color: var(--color-primary); }
.slot[aria-pressed="true"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
/* With the visitor's own time underneath: two short lines in a softly rounded box, never wrapping */
.slot.has-local { gap: 1px; min-height: 54px; padding: 7px 6px; border-radius: 14px; line-height: 1.25; }
.slot small { display: block; color: inherit; font-size: 0.72rem; opacity: 0.75; }
.slots-local { display: block; margin-top: 4px; color: var(--color-label); font-family: var(--font-body); font-size: 0.8125rem; }
.slots-empty, .bk-loading { padding: 20px; border: 1px dashed var(--color-line-strong); border-radius: 8px; color: var(--color-label); font-size: 0.9375rem; text-align: center; }
.tz-note { margin-top: 14px; color: var(--color-label); font-size: 0.8125rem; }

/* Details form */
.bk-form { display: grid; gap: 18px; }
.bk-form-section { display: grid; gap: 22px; margin: 0; padding: 24px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); min-width: 0; }
.bk-form-section legend { float: left; width: 100%; margin-bottom: 2px; padding: 0; color: var(--color-heading); font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.bk-form-section legend + * { clear: both; }
.bk-form [data-form-error], .bk-panel > [data-form-error] { margin-bottom: 18px; }
.bk-panel > [data-form-error]:focus { outline: none; }
.field-foot { display: flex; justify-content: space-between; gap: 16px; }
.field-foot .field-hint { flex: 1; }
.field-count { flex: none; margin-top: 7px; margin-left: auto; color: var(--color-label); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.field-count.is-near { color: var(--status-pending); font-weight: 600; }
.bk-format .choice { gap: 10px; }
.bk-format .choice .i { font-size: 1.25rem; color: var(--color-primary); stroke-width: 1.5; }
.bk-form .input[aria-invalid="true"], .bk-form .textarea[aria-invalid="true"] { border-color: var(--status-critical); }
.bk-form .check:has(input[aria-invalid="true"]) { color: var(--color-text); }
.bk-form .check + .field-error { margin-top: -6px; padding-left: 30px; }

/* Review */
.bk-review { display: grid; gap: 12px; }
.bk-review-group { padding: 6px 22px 8px; border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-surface); }
.bk-review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 10px; border-bottom: 1px solid var(--color-line); }
.bk-review-head h3 { color: var(--color-heading); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; }
.bk-edit { padding: 4px 10px; border: 1px solid var(--color-line-strong); border-radius: 999px; background: none; color: var(--color-primary); font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.bk-edit:hover { border-color: var(--color-primary); background: var(--color-bg); }
.bk-review dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; font-size: 0.9375rem; }
.bk-review dl > div + div { border-top: 1px solid var(--color-line); }
.bk-review dt { padding-top: 2px; color: var(--color-label); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.bk-review dd { color: var(--color-text); overflow-wrap: anywhere; }
.bk-next { margin-top: 24px; padding: 20px 22px; border-radius: 8px; background: var(--color-surface-alt); }
.bk-next h3 { margin-bottom: 12px; color: var(--color-heading); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; }
.bk-next ol { display: grid; gap: 10px; counter-reset: bknext; }
.bk-next ol[hidden] { display: none; }
.bk-next li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--color-text); font-size: 0.9rem; line-height: 1.5; }
.bk-next li::before { counter-increment: bknext; content: counter(bknext); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-surface); color: var(--color-primary); font-size: 0.72rem; font-weight: 600; }

/* Summary and the main action, side by side with the steps */
.bk-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.bk-summary {
  padding: 28px;
  border-radius: 8px;
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.bk-summary .eyebrow { margin-bottom: 18px; }
.bk-summary-service { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; }
.bk-summary-empty { color: var(--color-on-dark-soft); font-size: 0.9375rem; }
.bk-summary dl { margin-top: 20px; border-top: 1px solid var(--color-line-dark); }
.bk-summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line-dark); font-size: 0.875rem; }
.bk-summary dl > div[hidden] { display: none; }
.bk-summary dt { flex: none; color: var(--color-on-dark-soft); }
.bk-summary dd { text-align: right; }
.bk-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.bk-summary-total span { color: var(--color-on-dark-soft); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.bk-summary-total strong { font-family: var(--font-display); font-size: 1.8125rem; font-weight: 500; line-height: 1.08; font-variant-numeric: lining-nums; }
.bk-hold { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--color-line-dark); border-radius: 8px; color: var(--color-on-dark-soft); font-size: 0.8125rem; }
.bk-hold p { display: flex; align-items: center; gap: 8px; }
.bk-hold strong { color: var(--color-on-dark-accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-hold-bar { display: block; height: 3px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--color-line-dark); }
.bk-hold-bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--color-on-dark-accent); transition: width 1s linear; }
.bk-hold.is-low { border-color: var(--color-on-dark-accent); }
.bk-hold.is-low strong { color: var(--color-on-dark); }
.bk-testmode { margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--color-on-dark-accent); border-radius: 8px; color: var(--color-on-dark); font-size: 0.78rem; line-height: 1.5; }
.bk-testmode strong { color: var(--color-on-dark-accent); }
.bk-summary-note { margin-top: 18px; color: var(--color-on-dark-faint); font-size: 0.78rem; line-height: 1.55; }

.bk-cta { display: grid; gap: 10px; }
.bk-cta[hidden] { display: none; }
.bk-cta-total, .bk-cta-hold { display: none; }
.bk-cta-btn { position: relative; width: 100%; }
.bk-cta-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.bk-cta-btn[aria-disabled="true"]:hover { background: var(--color-primary); }
.bk-cta-btn[aria-disabled="true"] .i { transform: none; }
.bk-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(242, 239, 232, 0.35); border-top-color: var(--color-on-dark); border-radius: 50%; animation: bk-spin 0.8s linear infinite; }
.bk-cta-btn.is-busy { opacity: 1; cursor: progress; }
.bk-cta-btn.is-busy .bk-spinner { display: inline-block; }
.bk-cta-btn.is-busy [data-primary-icon] { display: none; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-cta-hint { color: var(--color-text-soft); font-size: 0.8125rem; line-height: 1.5; text-align: center; }
.bk-cta-hint.is-attention { color: var(--color-primary); font-weight: 600; animation: bk-nudge 0.4s var(--ease); }
@keyframes bk-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  .bk-panel:not([hidden]), .bk-cta-hint.is-attention { animation: none; }
}

.bk-done { max-width: 620px; }
.bk-done .bk-title { margin-top: 18px; }
.bk-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface-alt); color: var(--color-primary); font-size: 26px; }

/* Booking modal */
.bk-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 40px 120px -40px rgba(70, 71, 56, 0.6);
}
.bk-dialog::backdrop { background: rgba(70, 71, 56, 0.55); backdrop-filter: blur(2px); }
.bk-dialog[open] { display: flex; flex-direction: column; }
.bk-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.bk-dialog-head .brand-mark { width: auto; height: 28px; }
.bk-dialog-title { display: flex; align-items: center; gap: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.bk-dialog-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--color-line-strong); border-radius: 50%; background: transparent; color: var(--color-primary); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.bk-dialog-body { flex: 1; overflow-y: auto; padding: clamp(24px, 3vw, 40px); overscroll-behavior: contain; }
.bk-dialog .bk-side { top: 0; }
body.dialog-open { overflow: hidden; }

/* Manage page ------------------------------------------------------------ */

.manage-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: start; }
.manage-main { grid-column: 1 / span 7; display: grid; gap: 40px; }
.manage-aside { grid-column: 9 / span 4; display: grid; gap: 24px; }
.manage-card { padding: 28px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); }
.manage-card h2 { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.1; }
.manage-card > p { color: var(--color-text-soft); font-size: 0.9375rem; }
.manage-card .btn { margin-top: 20px; }
.doc-list { margin-top: 16px; border-top: 1px solid var(--color-line); }
.doc-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-line); font-size: 0.9375rem; }
.doc-list a { color: var(--color-primary); }
.doc-list span { color: var(--color-label); font-size: 0.8125rem; white-space: nowrap; }
.upload-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.upload-row input[type="file"] { max-width: 100%; font-size: 0.875rem; }
details.manage-details > summary { cursor: pointer; color: var(--color-primary); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; list-style: none; }
details.manage-details > summary::-webkit-details-marker { display: none; }
details.manage-details[open] > summary { margin-bottom: 20px; }

/* Blog ------------------------------------------------------------------- */

.blog-tools { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-bottom: clamp(36px, 4vw, 56px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip[aria-current="page"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
.search { position: relative; width: min(100%, 320px); }
.search .input { min-height: 44px; padding-right: 44px; border-radius: 999px; }
.search button { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: transparent; color: var(--color-primary); cursor: pointer; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--gap); }
.post-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.post-card-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--color-surface-alt); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-media.is-empty { display: grid; place-items: center; }
.post-card-media.is-empty .post-card-mark { width: 34px; height: auto; object-fit: contain; }
.post-kicker { color: var(--color-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.post-card h2, .post-card h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.15; text-wrap: balance; }
.post-card:hover h2, .post-card:hover h3 { color: var(--color-primary); }
.post-card p { color: var(--color-text-soft); font-size: 0.9375rem; }
.post-meta { color: var(--color-label); font-size: 0.8125rem; }
.post-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--gap); align-items: center; }
.post-card.is-featured .post-card-media { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.post-card.is-featured .post-card-body { grid-column: 9 / span 4; display: grid; gap: 16px; }
.post-card.is-featured h2 { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1.05; }
.empty-state { padding: clamp(48px, 6vw, 80px); border: 1px dashed var(--color-line-strong); border-radius: var(--radius); text-align: center; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.empty-state p { max-width: 46ch; margin: 12px auto 0; color: var(--color-text-soft); }

.post-hero { padding-block: clamp(64px, 8vw, 120px) clamp(32px, 4vw, 48px); }
.post-hero .container { max-width: calc(880px + 2 * var(--pad)); }
.post-title { margin-top: 18px; font-family: var(--font-display); font-size: clamp(2rem, 1.1875rem + 2.4vw, 3.375rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
.post-standfirst { margin-top: 22px; color: var(--color-text-soft); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.55; }
.post-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--color-line); color: var(--color-label); font-size: 0.8125rem; }
.post-figure { max-width: calc(1120px + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.post-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.post-body { max-width: calc(720px + 2 * var(--pad)); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--pad) 0; }
.post-body .prose { max-width: none; font-size: 1.0625rem; line-height: 1.75; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-line); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: clamp(48px, 5vw, 72px); }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--color-line-strong); border-radius: 999px; color: var(--color-text-soft); font-size: 0.875rem; text-decoration: none; }
.pagination a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination [aria-current="page"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-dark); }
.pagination .is-disabled { opacity: 0.4; }

/* Home: compact fees and FAQ link */

/* Error pages */
.error-page { padding-block: clamp(96px, 14vw, 200px); text-align: left; }
.error-code { color: var(--color-label); font-family: var(--font-display); font-size: 1.3125rem; font-style: normal; }

@media (max-width: 1080px) {
  .bk { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* The summary leads; the main action floats at the bottom of the screen */
  .bk-side { display: contents; }
  /* The summary follows the content (the action bar carries the total), and waits for a choice */
  .bk-summary:has(> [data-summary-empty]:not([hidden])) { display: none; }
  .bk-cta {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px 16px;
    padding: 12px 12px 12px 18px;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 18px 40px -20px rgba(70, 71, 56, 0.5);
  }
  .bk-cta-total { display: grid; color: var(--color-label); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; line-height: 1.2; text-transform: uppercase; }
  .bk-cta-total strong { color: var(--color-heading); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: lining-nums; }
  .bk-cta-total[hidden] + .bk-cta-btn { grid-column: 1 / -1; }
  .bk-cta-hint { grid-column: 1 / -1; font-size: 0.75rem; }
  .bk-cta-hold:not([hidden]) { display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 6px; margin-top: -2px; color: var(--color-label); font-size: 0.75rem; }
  .bk-cta-hold strong { color: var(--color-primary); font-variant-numeric: tabular-nums; }
  .bk-cta-hold.is-low strong { color: var(--status-critical); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form { grid-column: 1 / span 12; }
  .contact-aside { grid-column: 1 / span 12; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-main, .manage-aside { grid-column: 1 / -1; }
  .guide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .page-hero-grid > :first-child, .page-hero-grid > :last-child:not(:first-child) { grid-column: 1 / -1; }
  .editorial-sections h2, .editorial-sections .prose { grid-column: 1 / -1; }
  /* Stacked: details, then the description, then the action */
  .service-item-aside { display: contents; }
  .service-item-head, .service-item-body, .service-actions { grid-column: 1 / -1; }
  .service-actions { order: 1; }
  .service-group-head h2, .service-group-head p { grid-column: 1 / -1; }
  .topics-head h2, .topics-head p { grid-column: 1 / -1; }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .cal { grid-template-columns: minmax(0, 1fr); }
  .post-card.is-featured .post-card-media, .post-card.is-featured .post-card-body { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .form-row, .choice-group { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { grid-template-columns: minmax(0, 1fr); }
  .bk-review dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bk-review-group, .bk-next { padding-inline: 16px; }
  .bk-service { gap: 12px; padding: 16px; }
  .bk-form-section { padding: 18px 16px; }
  .slots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Steps: numbers only, except the current step */
  .bk-steps li + li::before { width: 10px; }
  .bk-steps li:not([aria-current]) .bk-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .bk-steps li:not([aria-current]) .bk-step { gap: 0; padding-right: 4px; }
  .bk-cta-btn { min-height: 48px; padding-inline: 18px; letter-spacing: 0.08em; }
  .bk-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .bk-summary { padding: 22px; }
  .manage-card { padding: 22px; }
  .search { width: 100%; }
}

/* Spacing utilities */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 36px; }
.closing-details a { color: var(--color-on-dark); text-underline-offset: 3px; }
.adviser-copy > .text-link { display: inline-flex; }
