/* ===================================================================
   Akabir Health — design system
   Hand-authored. No build step, no CDN, no external font service.

   Voice: steady · plainspoken · accompanied.
   The site is shaped like a well-kept travel document: a patient is
   given a reference, a sequence, and someone beside them at each stage.

   Colour strategy: Committed. Deep navy carries the large surfaces,
   brand cyan is the single wayfinding colour, the logo green means
   "confirmed". Every pairing below is verified at >= 4.5:1.
   =================================================================== */

/* -------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------- */

:root {
  /* Brand, taken from the logo artwork */
  --brand-deep:    oklch(0.5193 0.1376 250.5);   /* #176BB4 */
  --brand-deep-dk: oklch(0.4450 0.1330 250.5);   /* pressed / link on paper */
  --brand-cyan:    oklch(0.6916 0.1341 234.4);   /* #2AA8E2 */
  --brand-green:   oklch(0.8045 0.1526 125.4);   /* #A8D05A */

  /* Surfaces — cool paper tinted toward the brand hue, never cream */
  --paper:      oklch(0.9740 0.0045 245);
  --surface:    oklch(1 0 0);
  --surface-2:  oklch(0.9520 0.0070 245);
  --navy:       oklch(0.2190 0.0330 245);
  --navy-2:     oklch(0.2750 0.0360 245);
  --navy-deep:  oklch(0.1750 0.0300 245);

  /* Ink */
  --ink:        oklch(0.2300 0.0250 250);
  --ink-muted:  oklch(0.4900 0.0270 250);
  --ink-soft:   oklch(0.6100 0.0230 250);
  --on-navy:    oklch(1 0 0);
  --on-navy-mut:oklch(0.7850 0.0270 245);

  /* Lines */
  --line:        oklch(0.8950 0.0090 245);
  --line-strong: oklch(0.8100 0.0130 245);
  --line-navy:   oklch(0.3350 0.0330 245);

  /* Signals */
  --ok:      oklch(0.5450 0.1250 150);
  --ok-bg:   oklch(0.9500 0.0400 150);
  --warn:    oklch(0.5600 0.1350 70);
  --warn-bg: oklch(0.9550 0.0480 80);
  --danger:  oklch(0.5200 0.1750 25);
  --danger-bg:oklch(0.9500 0.0400 25);
  --info:    var(--brand-deep-dk);
  --info-bg: oklch(0.9450 0.0320 245);

  /* Type — system stack, deliberately ordered.
     To self-host a face later: drop WOFF2 files into assets/fonts/,
     uncomment the @font-face block below, and prepend the family here. */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* Modular scale, ratio 1.25, fluid where it matters */
  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   clamp(1.06rem, 0.99rem + 0.30vw, 1.20rem);
  --t-lg:   clamp(1.30rem, 1.17rem + 0.60vw, 1.62rem);
  --t-xl:   clamp(1.62rem, 1.38rem + 1.10vw, 2.20rem);
  --t-2xl:  clamp(2.00rem, 1.60rem + 1.90vw, 3.10rem);
  --t-3xl:  clamp(2.45rem, 1.80rem + 3.00vw, 4.20rem);

  --lh-tight: 1.08;
  --lh-snug:  1.28;
  --lh-body:  1.65;

  /* Space */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;
  --section:  clamp(3.5rem, 2.2rem + 5.2vw, 7rem);
  --gutter:   clamp(1.15rem, 0.7rem + 2.1vw, 2.5rem);
  --measure:  68ch;

  /* Shape */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 22px;  --r-pill: 999px;

  /* Depth — restrained, tinted to the brand hue rather than pure black */
  --sh-1: 0 1px 2px oklch(0.23 0.025 250 / 0.07);
  --sh-2: 0 2px 6px oklch(0.23 0.025 250 / 0.08), 0 1px 2px oklch(0.23 0.025 250 / 0.05);
  --sh-3: 0 12px 28px oklch(0.23 0.025 250 / 0.12), 0 3px 8px oklch(0.23 0.025 250 / 0.07);
  --sh-lift: 0 18px 44px oklch(0.23 0.025 250 / 0.16);

  /* Motion — exponential ease-out only. No bounce. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-1: 120ms;  --dur-2: 220ms;  --dur-3: 380ms;  --dur-4: 620ms;

  /* Semantic stacking order — never arbitrary numbers */
  --z-base: 1;
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-skip: 600;

  color-scheme: light;
}

/* Dark: the default when the visitor's system says so … */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      oklch(0.2050 0.0225 250);
    --surface:    oklch(0.2450 0.0245 250);
    --surface-2:  oklch(0.2850 0.0255 250);
    --navy:       oklch(0.1700 0.0270 245);
    --navy-2:     oklch(0.2300 0.0300 245);
    --navy-deep:  oklch(0.1350 0.0240 245);

    --ink:        oklch(0.9350 0.0110 245);
    --ink-muted:  oklch(0.7550 0.0210 245);
    --ink-soft:   oklch(0.6350 0.0220 245);

    --line:        oklch(0.3250 0.0230 250);
    --line-strong: oklch(0.4000 0.0260 250);
    --line-navy:   oklch(0.3000 0.0300 245);

    --brand-deep-dk: oklch(0.7600 0.1150 240);

    --ok-bg:    oklch(0.3000 0.0520 150);
    --warn-bg:  oklch(0.3150 0.0560 80);
    --danger-bg:oklch(0.3100 0.0640 25);
    --info-bg:  oklch(0.2950 0.0440 245);

    --sh-1: 0 1px 2px oklch(0 0 0 / 0.36);
    --sh-2: 0 2px 6px oklch(0 0 0 / 0.42), 0 1px 2px oklch(0 0 0 / 0.30);
    --sh-3: 0 12px 28px oklch(0 0 0 / 0.50), 0 3px 8px oklch(0 0 0 / 0.34);
    --sh-lift: 0 18px 44px oklch(0 0 0 / 0.56);

    color-scheme: dark;
  }
}

/* … and when the visitor chooses it explicitly, which must win both ways. */
:root[data-theme="dark"] {
  --paper:      oklch(0.2050 0.0225 250);
  --surface:    oklch(0.2450 0.0245 250);
  --surface-2:  oklch(0.2850 0.0255 250);
  --navy:       oklch(0.1700 0.0270 245);
  --navy-2:     oklch(0.2300 0.0300 245);
  --navy-deep:  oklch(0.1350 0.0240 245);

  --ink:        oklch(0.9350 0.0110 245);
  --ink-muted:  oklch(0.7550 0.0210 245);
  --ink-soft:   oklch(0.6350 0.0220 245);

  --line:        oklch(0.3250 0.0230 250);
  --line-strong: oklch(0.4000 0.0260 250);
  --line-navy:   oklch(0.3000 0.0300 245);

  --brand-deep-dk: oklch(0.7600 0.1150 240);

  --ok-bg:    oklch(0.3000 0.0520 150);
  --warn-bg:  oklch(0.3150 0.0560 80);
  --danger-bg:oklch(0.3100 0.0640 25);
  --info-bg:  oklch(0.2950 0.0440 245);

  --sh-1: 0 1px 2px oklch(0 0 0 / 0.36);
  --sh-2: 0 2px 6px oklch(0 0 0 / 0.42), 0 1px 2px oklch(0 0 0 / 0.30);
  --sh-3: 0 12px 28px oklch(0 0 0 / 0.50), 0 3px 8px oklch(0 0 0 / 0.34);
  --sh-lift: 0 18px 44px oklch(0 0 0 / 0.56);

  color-scheme: dark;
}

/* Self-hosting a webfont later — files go in assets/fonts/, nothing remote.
@font-face {
  font-family: "Akabir Sans";
  src: url("../fonts/akabir-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
*/

/* -------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: var(--lh-snug); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep-dk); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--brand-cyan);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--brand-cyan); color: oklch(0.17 0.027 245); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100%;
  z-index: var(--z-skip);
  background: var(--navy); color: var(--on-navy);
  padding: var(--s-3) var(--s-5); border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 600; text-decoration: none;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: 0; }

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

/* -------------------------------------------------------------------
   3. Layout primitives
   ------------------------------------------------------------------- */

.wrap {
  width: min(1200px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.wrap--narrow { width: min(820px, 100% - (var(--gutter) * 2)); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }

.section--navy {
  background: var(--navy);
  color: var(--on-navy);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy p  { color: var(--on-navy-mut); }
/* Prose links inside a navy band are cyan — but a button carries its own
   colour pair. Without :not(.btn) this rule (0,2,0) outranks `.btn` (0,1,0)
   and paints a .btn--cyan label cyan on a cyan fill, making it invisible. */
.section--navy a:not(.btn)  { color: var(--brand-cyan); }

.section--surface { background: var(--surface); }

.stack-lg > * + * { margin-top: var(--s-6); }

.lede {
  font-size: var(--t-md);
  color: var(--ink-muted);
  max-width: var(--measure);
}
.section--navy .lede { color: var(--on-navy-mut); }

.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--t-xl); margin: var(--s-7) 0 var(--s-3); letter-spacing: -0.02em; }
.prose h3 { font-size: var(--t-lg); margin: var(--s-6) 0 var(--s-2); letter-spacing: -0.01em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: var(--s-4); }
.prose li + li { margin-top: var(--s-2); }
.prose strong { font-weight: 650; color: var(--ink); }

/* Section heading: no repeated uppercase eyebrow anywhere in this system. */
.section-head { margin-bottom: var(--s-7); max-width: 58ch; }
.section-head h1,
.section-head h2 {
  font-size: var(--t-2xl);
  letter-spacing: -0.028em;
  margin-bottom: var(--s-3);
}
.section-head p { font-size: var(--t-md); color: var(--ink-muted); margin: 0; }
.section--navy .section-head p { color: var(--on-navy-mut); }

.split {
  display: grid;
  gap: clamp(var(--s-6), 4vw, var(--s-8));
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left  { grid-template-columns: 1.25fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.25fr; }
}

/* Reference numbers, phone numbers, counts — aligned figures everywhere. */
.tnum { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.ref {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
  letter-spacing: 0.03em;
}

/* -------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: blur(12px) saturate(1.4); }
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-1);
  background: color-mix(in oklch, var(--paper) 94%, transparent);
}

.header-bar {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 2.35rem; width: auto; }
@media (min-width: 640px) { .brand img { height: 2.7rem; } }

/* The logo artwork is dark-on-transparent; lift it in dark mode. */
:root[data-theme="dark"] .brand img { filter: brightness(1.85) saturate(1.1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: brightness(1.85) saturate(1.1); }
}

.nav { display: none; margin-left: auto; }
@media (min-width: 1140px) { .nav { display: flex; align-items: center; gap: var(--s-1); } }

.nav a {
  position: relative;
  white-space: nowrap;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--ink-muted);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
/* Wayfinding: the active route is marked with the brand cyan, nothing else is. */
.nav a[aria-current="page"]::after {
  content: ""; position: absolute;
  left: var(--s-3); right: var(--s-3); bottom: 2px; height: 2px;
  background: var(--brand-cyan); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
@media (min-width: 1140px) { .header-actions { margin-left: var(--s-4); } }

/* Below 640px the bar cannot hold logo + theme + two buttons + the menu
   trigger without clipping. Both buttons already appear inside the mobile
   navigation panel, so hiding them here loses nothing. */
@media (max-width: 639px) {
  .header-actions .btn { display: none; }
}

.theme-toggle, .nav-toggle {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: transparent; color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover {
  color: var(--ink); border-color: var(--line-strong); background: var(--surface-2);
}
@media (min-width: 1140px) { .nav-toggle { display: none; } }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Mobile navigation */
.mobile-nav {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-3) var(--ease);
}
.mobile-nav[data-open="true"] { max-height: 32rem; }
@media (min-width: 1140px) { .mobile-nav { display: none; } }

.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-3) 0 var(--s-5); }
.mobile-nav a {
  display: block;
  padding: var(--s-3) 0;
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a[aria-current="page"] { color: var(--brand-deep-dk); }
.mobile-nav .btn { margin-top: var(--s-4); width: 100%; }

/* -------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand-deep);
  --btn-fg: oklch(1 0 0);
  --btn-bd: var(--brand-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 0.78rem 1.4rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--t-sm); font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn--lg { padding: 0.95rem 1.7rem; font-size: var(--t-base); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: var(--t-xs); }
.btn--block { width: 100%; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); --btn-bd: var(--ink-soft); }

.btn--cyan {
  --btn-bg: var(--brand-cyan);
  --btn-fg: oklch(0.17 0.027 245);
  --btn-bd: var(--brand-cyan);
}

.btn--on-navy {
  --btn-bg: transparent;
  --btn-fg: var(--on-navy);
  --btn-bd: var(--line-navy);
}
.btn--on-navy:hover { background: oklch(1 0 0 / 0.08); --btn-bd: var(--on-navy-mut); }

.btn--danger { --btn-bg: var(--danger); --btn-fg: oklch(1 0 0); --btn-bd: var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* -------------------------------------------------------------------
   6. Forms
   ------------------------------------------------------------------- */

.field { margin-bottom: var(--s-5); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--ink);
}
.label .opt { font-weight: 400; color: var(--ink-soft); }

.input, .select, .textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--t-base);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-soft); opacity: 1; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-cyan) 32%, transparent);
}
.textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  /* Local inline chevron — no icon font, no remote asset. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7f92' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.field-error {
  display: block; margin-top: var(--s-2);
  font-size: var(--t-sm); font-weight: 550; color: var(--danger);
}
.field-hint { display: block; margin-top: var(--s-2); font-size: var(--t-sm); color: var(--ink-muted); }

.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.check input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin: 0.18rem 0 0;
  accent-color: var(--brand-deep); flex-shrink: 0; cursor: pointer;
}
.check span { font-size: var(--t-sm); color: var(--ink-muted); }

.form-grid { display: grid; gap: 0 var(--s-5); }
@media (min-width: 620px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* -------------------------------------------------------------------
   7. Notices
   ------------------------------------------------------------------- */

.notice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--t-sm);
  margin-bottom: var(--s-5);
}
.notice svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: 0.12rem; }
.notice p { margin: 0; }
.notice--success { background: var(--ok-bg);     border-color: color-mix(in oklch, var(--ok) 35%, transparent);     color: var(--ok); }
.notice--error   { background: var(--danger-bg); border-color: color-mix(in oklch, var(--danger) 35%, transparent); color: var(--danger); }
.notice--warning { background: var(--warn-bg);   border-color: color-mix(in oklch, var(--warn) 35%, transparent);   color: var(--warn); }
.notice--info    { background: var(--info-bg);   border-color: color-mix(in oklch, var(--info) 30%, transparent);   color: var(--info); }
.notice strong { font-weight: 650; }

/* -------------------------------------------------------------------
   8. Badges
   ------------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.24rem 0.62rem;
  border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600; line-height: 1.5;
  white-space: nowrap;
  background: var(--surface-2); color: var(--ink-muted);
  border: 1px solid var(--line);
}
.badge--new       { background: var(--info-bg);   color: var(--info);   border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.badge--progress  { background: var(--warn-bg);   color: var(--warn);   border-color: color-mix(in oklch, var(--warn) 30%, transparent); }
.badge--done      { background: var(--ok-bg);     color: var(--ok);     border-color: color-mix(in oklch, var(--ok) 30%, transparent); }
.badge--danger    { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in oklch, var(--danger) 30%, transparent); }
.badge--dot::before {
  content: ""; width: 0.45em; height: 0.45em; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}

/* -------------------------------------------------------------------
   9. Hero — one photograph, one idea, one entry point
   ------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Deep navy wash so white type sits at 12:1+ over any part of the photo. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg,
      oklch(0.175 0.030 245 / 0.96) 0%,
      oklch(0.175 0.030 245 / 0.88) 42%,
      oklch(0.175 0.030 245 / 0.62) 100%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(4rem, 2.5rem + 8vw, 8.5rem);
  max-width: 44rem;
}

.hero h1 {
  font-size: var(--t-3xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-cyan);
}
.hero__lede {
  font-size: var(--t-md);
  color: var(--on-navy-mut);
  line-height: 1.6;
  max-width: 38rem;
  margin-bottom: var(--s-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Trust strip: the four facts a worried family actually wants. */
.hero__facts {
  display: grid;
  gap: var(--s-4) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-navy);
  max-width: 46rem;
}
.hero__fact strong {
  display: block;
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--on-navy);
}
.hero__fact span { font-size: var(--t-sm); color: var(--on-navy-mut); }

/* -------------------------------------------------------------------
   10. The journey — a genuine ordered sequence, so it earns its numbers
   ------------------------------------------------------------------- */

.journey { counter-reset: stage; }

.stage {
  position: relative;
  display: grid;
  gap: var(--s-3) var(--s-5);
  grid-template-columns: auto 1fr;
  padding-bottom: var(--s-7);
}
.stage:last-child { padding-bottom: 0; }

.stage__marker {
  position: relative;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-navy);
  background: var(--navy-2);
  color: var(--brand-cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: var(--t-sm);
  flex-shrink: 0;
}
.stage__marker::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); }

/* The connecting rail — the wayfinding idea made literal. Only drawn in the
   single-column layout, where the sequence really does run top to bottom.
   In two columns the numbering reads across, so a vertical rail would
   wrongly imply 01 > 03 > 05. */
.stage:not(:last-child) .stage__marker::after {
  content: "";
  position: absolute; top: 3rem; left: 50%;
  width: 1px; height: calc(100% + var(--s-7) - 3rem);
  background: linear-gradient(to bottom, var(--line-navy), transparent);
  transform: translateX(-50%);
}

.stage__body { padding-top: 0.4rem; }
.stage h2,
.stage h3 {
  font-size: var(--t-lg);
  letter-spacing: -0.018em;
  margin-bottom: var(--s-2);
  color: var(--on-navy);
}
.stage p { color: var(--on-navy-mut); margin: 0; max-width: 56ch; }

@media (min-width: 860px) {
  .journey { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s-8); }
  .stage { padding-bottom: var(--s-8); }
  .stage .stage__marker::after { display: none; }
}

/* -------------------------------------------------------------------
   11. Treatments — a varied composition, not a uniform card grid
   ------------------------------------------------------------------- */

.treatments {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  /* Column count changes with the viewport, so a wide tile can leave a hole
     at some widths. Dense packing backfills it automatically instead of us
     hard-coding a tile pattern per breakpoint. */
  grid-auto-flow: dense;
}

.treatment {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 15rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.treatment:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); text-decoration: none; }

.treatment__media { position: absolute; inset: 0; z-index: -2; }
.treatment__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-4) var(--ease-soft);
}
.treatment:hover .treatment__media img { transform: scale(1.055); }
.treatment__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    oklch(0.17 0.030 245 / 0.94) 0%,
    oklch(0.17 0.030 245 / 0.72) 45%,
    oklch(0.17 0.030 245 / 0.34) 100%);
  transition: background var(--dur-3) var(--ease);
}
.treatment:hover .treatment__media::after {
  background: linear-gradient(to top,
    oklch(0.17 0.030 245 / 0.96) 0%,
    oklch(0.17 0.030 245 / 0.80) 50%,
    oklch(0.17 0.030 245 / 0.46) 100%);
}

.treatment__body { margin-top: auto; padding: var(--s-5); }
.treatment h2,
.treatment h3 {
  font-size: var(--t-lg);
  letter-spacing: -0.018em;
  color: var(--on-navy);
  margin-bottom: var(--s-2);
}
.treatment p {
  font-size: var(--t-sm);
  color: var(--on-navy-mut);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.treatment__go {
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: var(--s-3);
  font-size: var(--t-sm); font-weight: 600;
  color: var(--brand-cyan);
}
.treatment__go svg { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease); }
.treatment:hover .treatment__go svg { transform: translateX(3px); }

/* Featured entries take two columns and more height — breaks the uniform grid. */
@media (min-width: 720px) {
  .treatment--wide { grid-column: span 2; min-height: 19rem; }
  /* Six tiles with two wide ones fill two complete rows of four. */
  .treatment--wide h2,
  .treatment--wide h3 { font-size: var(--t-xl); }
  .treatment--wide p { -webkit-line-clamp: 3; max-width: 46ch; }
}

/* Compact index used on the treatments page footer and contact page */
.treatment-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s-6); }
@media (min-width: 760px) { .treatment-list { columns: 3; } }
.treatment-list li { break-inside: avoid; margin-bottom: var(--s-2); }
.treatment-list a {
  display: block; padding: var(--s-2) 0;
  color: var(--ink-muted); font-size: var(--t-sm); text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-1) var(--ease), padding-left var(--dur-2) var(--ease);
}
.treatment-list a:hover { color: var(--brand-deep-dk); padding-left: var(--s-2); }

/* -------------------------------------------------------------------
   12. Procedures
   ------------------------------------------------------------------- */

.procedures {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}
.procedures li {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--t-sm);
}
.procedures li svg {
  width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.22rem;
  color: var(--brand-cyan);
}

/* -------------------------------------------------------------------
   13. Testimonials — real patients, four countries
   ------------------------------------------------------------------- */

.quotes {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.quote {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  border: 1px solid var(--line-navy);
  border-radius: var(--r-lg);
  background: var(--navy-2);
}
.quote blockquote {
  margin: 0 0 var(--s-5);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--on-navy);
}
.quote figcaption { margin-top: auto; }
.quote cite { display: block; font-style: normal; font-weight: 650; color: var(--on-navy); }
.quote small { color: var(--on-navy-mut); font-size: var(--t-sm); }

/* -------------------------------------------------------------------
   14. Contact panel
   ------------------------------------------------------------------- */

.contact-rows { list-style: none; margin: 0; padding: 0; }
.contact-rows li {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
}
.contact-rows li:last-child { border-bottom: 0; }
.contact-rows svg {
  width: 1.3rem; height: 1.3rem; flex-shrink: 0; margin-top: 0.15rem;
  color: var(--brand-deep-dk);
}
.contact-rows dt {
  font-size: var(--t-xs); font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.contact-rows dd { margin: 0; font-size: var(--t-md); color: var(--ink); }
.contact-rows dd a { color: var(--ink); text-decoration: none; }
.contact-rows dd a:hover { color: var(--brand-deep-dk); text-decoration: underline; }

.form-card {
  padding: clamp(var(--s-5), 3vw, var(--s-7));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}
.form-card h2 { font-size: var(--t-xl); letter-spacing: -0.022em; margin-bottom: var(--s-2); }
.form-card > p { color: var(--ink-muted); margin-bottom: var(--s-6); }

/* -------------------------------------------------------------------
   15. FAQ
   ------------------------------------------------------------------- */

.faq { max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0;
  font-size: var(--t-md); font-weight: 600;
  cursor: pointer; list-style: none;
  transition: color var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-deep-dk); }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 0.7rem; height: 0.7rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-2) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details > div { padding-bottom: var(--s-5); color: var(--ink-muted); max-width: 62ch; }

/* -------------------------------------------------------------------
   16. Footer
   ------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-mut);
  padding-block: var(--s-8) var(--s-6);
}
.footer-grid {
  display: grid; gap: var(--s-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--line-navy);
}
.footer-brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 900px) { .footer-brand { grid-column: span 2; } }
.footer-brand img { height: 2.6rem; width: auto; margin-bottom: var(--s-4); filter: brightness(1.9) saturate(1.05); }
.footer-brand p { font-size: var(--t-sm); line-height: 1.6; }

.site-footer h2 {
  font-size: var(--t-sm); font-weight: 650;
  color: var(--on-navy); margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s-3); }
.site-footer a {
  color: var(--on-navy-mut); font-size: var(--t-sm); text-decoration: none;
  transition: color var(--dur-1) var(--ease);
}
.site-footer a:hover { color: var(--brand-cyan); text-decoration: underline; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  padding-top: var(--s-5);
  font-size: var(--t-xs);
}
.footer-bottom p { margin: 0; }

/* Floating WhatsApp — their existing click-to-chat, rebuilt without the plugin */
.whatsapp-fab {
  position: fixed; right: var(--s-5); bottom: var(--s-5);
  z-index: var(--z-sticky);
  display: inline-grid; place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: oklch(0.64 0.17 150);
  color: oklch(1 0 0);
  box-shadow: var(--sh-3);
  transition: transform var(--dur-2) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.07); }
.whatsapp-fab svg { width: 1.7rem; height: 1.7rem; }

/* -------------------------------------------------------------------
   17. Auth pages
   ------------------------------------------------------------------- */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
}
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1.05fr; } }

.auth__aside {
  display: none;
  position: relative;
  padding: var(--s-8) var(--s-7);
  background: var(--navy-deep);
  color: var(--on-navy);
  isolation: isolate;
}
@media (min-width: 900px) { .auth__aside { display: flex; flex-direction: column; } }
.auth__aside::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 70% at 15% 10%,
              oklch(0.32 0.075 240 / 0.85), transparent 70%);
}
.auth__aside h2 {
  font-size: var(--t-2xl); letter-spacing: -0.03em;
  margin: auto 0 var(--s-4); max-width: 18ch;
}
.auth__aside p { color: var(--on-navy-mut); max-width: 38ch; margin-bottom: auto; }
.auth__aside .brand img { height: 2.6rem; filter: brightness(1.9) saturate(1.05); }

.auth__main {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-7) var(--gutter);
}
.auth__form { width: min(26rem, 100%); margin-inline: auto; }
.auth__form h1 { font-size: var(--t-xl); letter-spacing: -0.025em; margin-bottom: var(--s-2); }
.auth__form > p { color: var(--ink-muted); margin-bottom: var(--s-6); }
.auth__alt {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-muted); text-align: center;
}

/* -------------------------------------------------------------------
   18. App shell — portal and admin
   ------------------------------------------------------------------- */

.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 1000px) { .shell { flex-direction: row; } }

.shell__side {
  background: var(--navy-deep);
  color: var(--on-navy-mut);
  flex-shrink: 0;
}
@media (min-width: 1000px) {
  .shell__side {
    width: 16.5rem;
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
}

.shell__brand {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-5);
  border-bottom: 1px solid var(--line-navy);
}
.shell__brand img { height: 2.1rem; width: auto; filter: brightness(1.9) saturate(1.05); }

.shell__nav { padding: var(--s-4) var(--s-3); flex: 1; }
@media (max-width: 999px) {
  .shell__nav { display: none; }
  .shell__nav[data-open="true"] { display: block; }
}
.shell__navlabel {
  padding: var(--s-4) var(--s-3) var(--s-2);
  font-size: var(--t-xs); font-weight: 650;
  color: var(--ink-soft);
  margin: 0;
}
.shell__nav ul { list-style: none; margin: 0 0 var(--s-2); padding: 0; }
.shell__nav a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  color: var(--on-navy-mut);
  font-size: var(--t-sm); font-weight: 550;
  text-decoration: none;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.shell__nav a:hover { background: oklch(1 0 0 / 0.07); color: var(--on-navy); }
.shell__nav a[aria-current="page"] {
  background: oklch(1 0 0 / 0.11);
  color: var(--on-navy);
  box-shadow: inset 2px 0 0 var(--brand-cyan);
}
.shell__nav svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.shell__nav .count {
  margin-left: auto;
  font-size: var(--t-xs); font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: var(--brand-cyan); color: oklch(0.17 0.027 245);
  padding: 0.1rem 0.45rem; border-radius: var(--r-pill);
}

.shell__foot { padding: var(--s-4); border-top: 1px solid var(--line-navy); }
.shell__user { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.avatar {
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--brand-deep); color: oklch(1 0 0);
  font-size: var(--t-sm); font-weight: 650; flex-shrink: 0;
}
.shell__user div { min-width: 0; }
.shell__user strong { display: block; font-size: var(--t-sm); color: var(--on-navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell__user span { font-size: var(--t-xs); color: var(--ink-soft); }

.shell__main { flex: 1; min-width: 0; background: var(--paper); }
.shell__head {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5) var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.shell__head h1 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.shell__head .spacer { margin-left: auto; }
.shell__body { padding: var(--s-6) var(--gutter) var(--s-8); }

.shell__toggle {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--line-navy); border-radius: var(--r-sm);
  background: transparent; color: var(--on-navy-mut); cursor: pointer;
}
@media (min-width: 1000px) { .shell__toggle { display: none; } }

/* -------------------------------------------------------------------
   19. Data display
   ------------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.panel__head h2, .panel__head h3 { font-size: var(--t-base); font-weight: 650; }
.panel__head .spacer { margin-left: auto; }
.panel__body { padding: var(--s-5); }
.panel__body--flush { padding: 0; }

.metrics {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin-bottom: var(--s-6);
}
.metric {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.metric dt { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: var(--s-2); }
.metric dd {
  margin: 0;
  font-size: var(--t-xl); font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric small { display: block; margin-top: var(--s-2); font-size: var(--t-xs); color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }
.table { font-size: var(--t-sm); }
.table th, .table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th {
  font-size: var(--t-xs); font-weight: 650;
  color: var(--ink-muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.table tbody tr { transition: background var(--dur-1) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a { color: var(--ink); font-weight: 550; text-decoration: none; }
.table a:hover { color: var(--brand-deep-dk); text-decoration: underline; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }

.filters {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: flex-end;
  margin-bottom: var(--s-5);
}
.filters .field { margin: 0; flex: 1 1 11rem; min-width: 0; }
.filters .input, .filters .select { padding: 0.55rem 0.8rem; font-size: var(--t-sm); }
.filters .select { padding-right: 2.3rem; }

.pagination {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  align-items: center; justify-content: space-between;
  margin-top: var(--s-5);
  font-size: var(--t-sm); color: var(--ink-muted);
}
.pagination nav { display: flex; gap: var(--s-2); }
.pagination a, .pagination span {
  display: inline-grid; place-items: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 var(--s-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--brand-deep); color: var(--brand-deep-dk); }
.pagination [aria-current="page"] {
  background: var(--brand-deep); border-color: var(--brand-deep); color: oklch(1 0 0);
  font-weight: 650;
}
.pagination .disabled { opacity: 0.4; }

.empty {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--ink-muted);
}
.empty svg { width: 2.2rem; height: 2.2rem; margin: 0 auto var(--s-4); color: var(--ink-soft); }
.empty h3 { font-size: var(--t-md); color: var(--ink); margin-bottom: var(--s-2); }
.empty p { max-width: 38ch; margin-inline: auto; font-size: var(--t-sm); }

/* Enquiry conversation */
.thread { list-style: none; margin: 0; padding: 0; }
.thread li {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: var(--s-3);
}
.thread li.is-internal {
  background: var(--warn-bg);
  border-color: color-mix(in oklch, var(--warn) 30%, transparent);
}
.thread header {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3);
  align-items: baseline;
  margin-bottom: var(--s-2);
  font-size: var(--t-xs); color: var(--ink-muted);
}
.thread header strong { font-size: var(--t-sm); color: var(--ink); }
.thread p { margin: 0; font-size: var(--t-sm); white-space: pre-wrap; }

/* Uploaded documents */
.files { list-style: none; margin: 0; padding: 0; }
.files li {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.files li:last-child { border-bottom: 0; }
.files svg { width: 1.15rem; height: 1.15rem; color: var(--ink-soft); flex-shrink: 0; }
.files .meta { margin-left: auto; color: var(--ink-soft); font-size: var(--t-xs); white-space: nowrap; }

/* Progress rail used in the patient portal */
.progress { display: flex; align-items: center; gap: 0; margin: var(--s-5) 0; }
.progress__step { flex: 1; text-align: center; position: relative; }
.progress__dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--line-strong);
  margin: 0 auto var(--s-2);
  position: relative; z-index: var(--z-base);
}
.progress__step::before {
  content: ""; position: absolute; top: 0.45rem; left: 0; right: 50%;
  height: 2px; background: var(--line-strong);
}
.progress__step::after {
  content: ""; position: absolute; top: 0.45rem; left: 50%; right: 0;
  height: 2px; background: var(--line-strong);
}
.progress__step:first-child::before, .progress__step:last-child::after { display: none; }
.progress__step.is-done .progress__dot,
.progress__step.is-done::before,
.progress__step.is-done::after { background: var(--brand-green); }
.progress__step.is-current .progress__dot {
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand-cyan) 28%, transparent);
}
.progress__step.is-current::before { background: var(--brand-green); }
.progress__step span { font-size: var(--t-xs); color: var(--ink-muted); }
.progress__step.is-current span { color: var(--ink); font-weight: 650; }

/* Bar chart for the admin dashboard — plain divs, no chart library */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 5rem; }
.bars div {
  flex: 1;
  min-height: 2px;
  background: var(--brand-cyan);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
  transition: opacity var(--dur-1) var(--ease);
}
.bars div:hover { opacity: 1; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
}
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-top: 0.1rem; }
.checklist .ok-i   { color: var(--ok); }
.checklist .bad-i  { color: var(--danger); }
.checklist strong { display: block; color: var(--ink); }
.checklist small { color: var(--ink-muted); }
.checklist .value { margin-left: auto; font-family: var(--font-mono); font-size: var(--t-xs);
  color: var(--ink-muted); white-space: nowrap; }

/* -------------------------------------------------------------------
   20. Error / maintenance
   ------------------------------------------------------------------- */

.state-page {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: var(--s-7) var(--gutter);
  text-align: center;
  background: var(--navy-deep); color: var(--on-navy);
}
.state-page__inner { max-width: 32rem; }
.state-page .code {
  font-size: clamp(3.5rem, 2rem + 7vw, 6rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  color: var(--brand-cyan);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.state-page h1 { font-size: var(--t-xl); letter-spacing: -0.025em; margin-bottom: var(--s-3); }
.state-page p { color: var(--on-navy-mut); margin-bottom: var(--s-6); }
.state-page .brand img { height: 2.4rem; margin: 0 auto var(--s-7); filter: brightness(1.9) saturate(1.05); }

/* -------------------------------------------------------------------
   21. Motion
   ------------------------------------------------------------------- */

/* Entrance enhances an already-visible default: if the animation never
   runs (hidden tab, headless renderer, reduced motion) the content is
   still fully rendered. Nothing is gated behind a class. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.rise { animation: rise var(--dur-4) var(--ease) both; }
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 130ms; }
.rise-3 { animation-delay: 200ms; }

/* Staggered treatment tiles — a list entrance, not a per-section reflex. */
.treatments > * { animation: rise var(--dur-4) var(--ease) both; }
.treatments > :nth-child(1) { animation-delay: 40ms; }
.treatments > :nth-child(2) { animation-delay: 90ms; }
.treatments > :nth-child(3) { animation-delay: 140ms; }
.treatments > :nth-child(4) { animation-delay: 190ms; }
.treatments > :nth-child(5) { animation-delay: 240ms; }
.treatments > :nth-child(6) { animation-delay: 290ms; }
.treatments > :nth-child(n+7) { animation-delay: 330ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .treatment:hover { transform: none; }
}

/* -------------------------------------------------------------------
   22. Print — a patient may well print a quote or enquiry
   ------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .shell__side, .whatsapp-fab,
  .nav-toggle, .theme-toggle, .btn, form { display: none !important; }
  body { background: #fff; color: #000; }
  .panel, .form-card { border: 1px solid #ccc; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}

/* -------------------------------------------------------------------
   23. Utilities
   ------------------------------------------------------------------- */

.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--t-sm); }
.xsmall{ font-size: var(--t-xs); }
.strong{ font-weight: 650; }
.center{ text-align: center; }
.row   { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row--tight { gap: var(--s-2); }
.grow  { flex: 1; }
.inline-form { display: inline; }

/* Rating stars on testimonials */
.stars {
  display: flex; gap: 2px;
  margin-bottom: var(--s-4);
  font-size: var(--t-sm);
  line-height: 1;
  color: var(--line-navy);
}
.stars .on { color: var(--brand-green); }

/* Build credit */
.footer-credit { width: 100%; color: var(--ink-soft); }
@media (min-width: 720px) { .footer-credit { width: auto; margin-left: auto; } }
.footer-credit a { color: var(--on-navy-mut); }
.footer-credit a:hover { color: var(--brand-cyan); }

/* Callout blocks inside editable page bodies */
.callout {
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  border: 1px solid color-mix(in oklch, var(--info) 28%, transparent);
  border-radius: var(--r-md);
  background: var(--info-bg);
  color: var(--ink);
  font-size: var(--t-sm);
}
.prose a { color: var(--brand-deep-dk); font-weight: 550; }
.prose h2:target, .prose h3:target { scroll-margin-top: 6rem; }

/* Destination cards on the homepage */
.destination {
  display: block;
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.destination:hover {
  border-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  text-decoration: none;
}
.destination h3 { font-size: var(--t-lg); letter-spacing: -0.018em; margin-bottom: var(--s-3); }
.destination p { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: var(--s-3); }

/* Buttons always own their own foreground colour, whatever container they
   sit in. Guards against the specificity trap above recurring. */
a.btn { color: var(--btn-fg); }
