/* ==========================================================================
   Feonix website design system — "fx" (Phase 1 of the website redesign)
   --------------------------------------------------------------------------
   Same brand as the My Feonix app: purple #2E1A47 and white, Outfit for
   display, Manrope for everything else. Tokens are the app's own values
   (Feonix App src/constants/colors.ts, radius.ts) — see
   docs/website-design-system.md for the mapping and the contrast checks.

   SCOPE — READ BEFORE EDITING
   Every rule below is scoped to `.fx` (a class on <body>). Tokens are declared
   on `.fx`, not :root. A legacy page that never opts in is untouched even if
   this file is loaded on it, and nothing here can reach /app (a separate
   bundle). Opt a page in by loading this file AFTER <!-- FEONIX_HEAD_SHARED -->
   and adding class="fx" to <body>.

   Global legacy rules this file deliberately neutralises inside .fx:
     components.css  body { background: bone; overflow-x: hidden }  → sticky-safe
                     nav  { position: fixed; padding … }            → static
                     footer { padding; background: obsidian }        → reset
   ========================================================================== */

/* ── Fonts: self-hosted Latin subsets (SIL OFL 1.1, see fonts/OFL-*.txt) ── */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/manrope-400.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/manrope-500.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/manrope-600.woff2") format("woff2"); }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
.fx {
  /* Brand (fixed) */
  --fx-purple: #2E1A47;
  --fx-white: #FFFFFF;
  /* Derived from the brand purple — identical to the app's palette */
  --fx-purple-pressed: #1F1130;     /* app purplePressed */
  --fx-purple-raised: #3F2C56;      /* app purpleRaised  */
  --fx-ground: #F4F1F7;             /* app lavender "ground" */
  --fx-ground-muted: #EFEDF1;       /* app lavenderMuted */
  --fx-hairline: #EFEBF2;           /* app hairline */
  --fx-border: #E4DEEA;             /* app lavenderBorder */
  --fx-field-border: #D9D2E0;       /* app fieldBorder — decorative outlines (secondary buttons, chips) */
  --fx-input-border: #857A95;       /* web-only: text inputs need 3:1 boundary contrast (4.0:1 on white, 3.6:1 on ground) */
  --fx-text: #2E1A47;
  --fx-text-muted: #645677;         /* 6.69:1 on white, 5.9:1 on ground */
  --fx-text-subtle: #6D5F7E;        /* 5.85:1 on white */
  --fx-on-dark: #FFFFFF;
  --fx-on-dark-muted: rgba(255, 255, 255, .80);
  --fx-on-dark-line: rgba(255, 255, 255, .18);
  --fx-on-dark-lavender: #CFC5DC;   /* pale lavender secondary text on purple (≈9.6:1) */
  --fx-wash: rgba(46, 26, 71, .06);
  --fx-scrim: rgba(46, 26, 71, .55);
  /* Feedback — functional only, always paired with text */
  --fx-error: #9E3B31;  --fx-error-wash: #F6E3DF;
  --fx-success: #3F6B47; --fx-success-wash: #E3EDE2;

  /* Type */
  --fx-font-display: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fx-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fx-step-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);      /* 40 → 74px */
  --fx-step-h2: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);          /* 28 → 48px */
  --fx-step-h3: clamp(1.2rem, 1.1rem + .45vw, 1.5rem);         /* 19 → 24px */
  --fx-step-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);      /* 17 → 20px */
  --fx-step-body: clamp(1rem, .97rem + .12vw, 1.0625rem);      /* 16 → 17px */
  --fx-step-small: .9375rem;                                   /* 15px */
  --fx-step-meta: .875rem;                                     /* 14px */
  --fx-measure: 64ch;

  /* Space & layout */
  --fx-container: 1280px;
  --fx-gutter: clamp(20px, 4.2vw, 56px);
  --fx-section: clamp(56px, 4rem + 4vw, 112px);
  --fx-gap: clamp(16px, 1rem + 1vw, 32px);
  --fx-space-cta: clamp(20px, 1.1rem + .6vw, 28px);   /* copy → its call to action: 20px at 390, 26px at 1440 */
  --fx-header-h: 72px;

  /* Shape — app radius scale */
  --fx-r-control: 14px;   /* inputs, chips, small buttons */
  --fx-r-button: 14px;
  --fx-r-card: 20px;
  --fx-r-panel: 28px;     /* a few large image/feature panels */

  /* Motion */
  --fx-ease: cubic-bezier(.2, .7, .2, 1);
  --fx-fast: 160ms;
  --fx-base: 220ms;
}

/* ── Base (neutralises the legacy globals inside .fx) ──────────────────── */
/* Element-level resets are wrapped in :where() so they carry ZERO specificity:
   any class rule — including the shared overlays' own (.lhrc-checkout,
   .ai-btn-primary, .feonix-op-cta …) — must win over them. A one-class reset
   here once out-ranked .lhrc-checkout{color:#fff} by load order and blanked
   the basket's checkout label. */
html:has(body.fx) { overflow-x: clip; scroll-padding-top: calc(var(--fx-header-h, 72px) + 16px); }
body.fx {
  margin: 0;
  background: var(--fx-white);
  color: var(--fx-text);
  font-family: var(--fx-font-body);
  font-size: var(--fx-step-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: clip;                 /* clip, not hidden: keeps position:sticky alive */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:where(.fx) *, :where(.fx) *::before, :where(.fx) *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Phase 4: fx pages no longer load colors_and_type.css / components.css. These zero-specificity
   rules carry the only parts of them the pages used (the global reset, the button reset and
   smooth in-page scrolling), so nothing renders differently. */
:where(.fx) :where(button) { border: 0; cursor: pointer; font-family: inherit; }
html:has(body.fx) { scroll-behavior: smooth; }
:where(.fx) :where(img) { max-width: 100%; height: auto; display: block; }
:where(.fx) :where(h1, h2, h3, h4) { font-family: var(--fx-font-display); font-weight: 600; color: var(--fx-text);
  margin: 0; letter-spacing: -.015em; line-height: 1.12; text-wrap: balance; }
:where(.fx) :where(p) { margin: 0; }
:where(.fx) :where(a) { color: inherit; }
:where(.fx) :where(ul, ol) { margin: 0; padding: 0; }
:where(.fx) :where(button) { font: inherit; color: inherit; }
.fx ::selection { background: var(--fx-purple); color: var(--fx-white); }
.fx :focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 3px; border-radius: 4px; }
.fx .fx-on-dark :focus-visible, .fx .fx-on-dark:focus-visible { outline-color: var(--fx-white); }

.fx .fx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fx .fx-skip { position: absolute; left: 16px; top: -80px; z-index: 10001; padding: 12px 18px;
  background: var(--fx-purple); color: var(--fx-white); border-radius: var(--fx-r-control);
  font-weight: 600; text-decoration: none; transition: top var(--fx-fast) var(--fx-ease); }
.fx .fx-skip:focus { top: 12px; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.fx .fx-container { width: 100%; max-width: calc(var(--fx-container) + 2 * var(--fx-gutter));
  margin-inline: auto; padding-inline: var(--fx-gutter); }
.fx .fx-section { padding-block: var(--fx-section); }
.fx .fx-section--ground { background: var(--fx-ground); }
/* Two white sections in a row share one gap; a white section after a lavender band keeps its own. */
.fx .fx-section:not(.fx-section--ground):not(.fx-reviews) + .fx-section:not(.fx-section--ground) { padding-top: 0; }
.fx [id] { scroll-margin-top: calc(var(--fx-header-h) + 16px); }

/* Section heading: eyebrow + title + intro, optional action on the right */
.fx .fx-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 40px; margin-bottom: clamp(28px, 2rem + 1.5vw, 56px); }
.fx .fx-heading__text { max-width: 720px; }
.fx .fx-eyebrow { display: block; font-family: var(--fx-font-body); font-size: var(--fx-step-meta);
  font-weight: 600; letter-spacing: .02em; color: var(--fx-text-muted); margin-bottom: 12px; }
.fx .fx-title { font-size: var(--fx-step-h2); }
.fx .fx-intro { margin-top: 16px; font-size: var(--fx-step-lead); line-height: 1.6;
  color: var(--fx-text-muted); max-width: var(--fx-measure); }
.fx .fx-prose p { max-width: var(--fx-measure); color: var(--fx-text-muted); }
.fx .fx-prose p + p { margin-top: 1em; }
.fx .fx-meta { font-size: var(--fx-step-meta); color: var(--fx-text-muted); line-height: 1.55; }

/* ── Buttons & links ────────────────────────────────────────────────────── */
.fx .fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--fx-r-button);
  font-family: var(--fx-font-body); font-size: 1rem; font-weight: 600; line-height: 1.2;
  letter-spacing: .005em; text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid transparent; background: none;
  transition: background-color var(--fx-fast) var(--fx-ease), color var(--fx-fast) var(--fx-ease),
              border-color var(--fx-fast) var(--fx-ease), transform var(--fx-fast) var(--fx-ease); }
.fx .fx-btn:active { transform: translateY(1px); }
.fx .fx-btn--primary { background: var(--fx-purple); color: var(--fx-white); border-color: var(--fx-purple); }
.fx .fx-btn--primary:hover { background: var(--fx-purple-raised); border-color: var(--fx-purple-raised); }
.fx .fx-btn--primary:active { background: var(--fx-purple-pressed); border-color: var(--fx-purple-pressed); }
.fx .fx-btn--secondary { background: var(--fx-white); color: var(--fx-purple); border-color: var(--fx-field-border); }
.fx .fx-btn--secondary:hover { border-color: var(--fx-purple); background: var(--fx-ground); }
.fx .fx-btn--on-dark { background: var(--fx-white); color: var(--fx-purple); border-color: var(--fx-white); }
.fx .fx-btn--on-dark:hover { background: var(--fx-ground); border-color: var(--fx-ground); }
.fx .fx-btn--ghost-dark { background: transparent; color: var(--fx-white); border-color: var(--fx-on-dark-line); }
.fx .fx-btn--ghost-dark:hover { border-color: var(--fx-white); }
.fx .fx-btn--block { width: 100%; }
.fx .fx-btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.fx .fx-btn[disabled], .fx .fx-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.fx .fx-btn[aria-busy="true"] { cursor: progress; }
.fx .fx-btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: fx-spin .8s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx .fx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fx .fx-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--fx-purple); text-decoration: underline;
  text-decoration-color: var(--fx-border); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  transition: text-decoration-color var(--fx-fast) var(--fx-ease); }
.fx .fx-link:hover { text-decoration-color: currentColor; }
.fx .fx-link svg, .fx .fx-arrow { width: 18px; height: 18px; flex: none; transition: transform var(--fx-fast) var(--fx-ease); }
.fx .fx-link:hover svg { transform: translateX(3px); }
.fx .fx-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.fx .fx-header { position: sticky; top: 0; z-index: 900; background: var(--fx-white);
  border-bottom: 1px solid transparent; transition: border-color var(--fx-base) var(--fx-ease); }
.fx .fx-header.is-scrolled, .fx .fx-header.is-open { border-bottom-color: var(--fx-border); }
.fx .fx-header__bar { display: flex; align-items: center; gap: 24px; height: var(--fx-header-h); }
/* My Feonix announcement bar (data/app_announcement.json → server.py → {{ app_banner }}). Sits ABOVE the
   sticky header and scrolls away with the page; flat purple, no gradient or shadow. The CTA slot keeps a
   fixed width sized for "Download the app", so enabling the download link later moves nothing. */
.fx .fx-appbar { background: var(--fx-purple); color: var(--fx-on-dark); }
.fx .fx-appbar__inner { display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 40px; padding-block: 6px; }
.fx .fx-appbar__msg { margin: 0; font-size: var(--fx-step-meta); line-height: 1.35; color: var(--fx-on-dark); }
.fx .fx-appbar__short { display: none; }
.fx .fx-appbar__cta { flex: none; display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 9.5rem; min-height: 28px; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--fx-on-dark-line); font-size: .8125rem; font-weight: 600; line-height: 1.2;
  white-space: nowrap; text-decoration: none; color: var(--fx-on-dark); }
.fx .fx-appbar__cta.is-soon { color: var(--fx-on-dark-lavender); cursor: default; }
.fx a.fx-appbar__cta { border-color: var(--fx-on-dark); }
.fx a.fx-appbar__cta:hover { background: var(--fx-on-dark); color: var(--fx-purple); }
.fx a.fx-appbar__cta:focus-visible { outline: 2px solid var(--fx-on-dark); outline-offset: 2px; }
@media (max-width: 640px) {
  .fx .fx-appbar__inner { justify-content: space-between; gap: 12px; min-height: 36px; padding-block: 4px; }
  .fx .fx-appbar__long { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }        /* still read by screen readers */
  .fx .fx-appbar__short { display: inline; font-weight: 600; }
  .fx .fx-appbar__cta { width: 8.75rem; min-height: 26px; }
}
@media print { .fx .fx-appbar { display: none; } }
.fx .fx-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--fx-purple); flex: none; min-height: 44px; }
.fx .fx-logo img { width: auto; height: 36px; }
.fx .fx-logo__text { font-family: var(--fx-font-body); font-weight: 600; font-size: 1rem; letter-spacing: .01em; }
/* legacy `nav { position: fixed; … }` is a bare-element rule: reset it here (header, footer and any
   in-page nav such as the Phase 2 breadcrumb) */
.fx .fx-header nav, .fx .fx-footer nav, .fx main nav { position: static; inset: auto; z-index: auto; display: block;
  padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.fx .fx-nav { flex: 1; display: flex; justify-content: center; }
.fx .fx-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.fx .fx-nav__item { position: relative; }
.fx .fx-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: 12px; border: 0; background: none; cursor: pointer; color: var(--fx-purple);
  font-family: var(--fx-font-body); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--fx-fast) var(--fx-ease); }
.fx .fx-nav__link:hover, .fx .fx-nav__link[aria-expanded="true"] { background: var(--fx-ground); }
.fx .fx-nav__link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.fx .fx-nav__item.is-current > .fx-nav__link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.fx .fx-nav__panel a[aria-current="page"], .fx .fx-mobile__sub a[aria-current="page"] { background: var(--fx-ground); }
.fx .fx-chevron { width: 14px; height: 14px; transition: transform var(--fx-fast) var(--fx-ease); }
.fx [aria-expanded="true"] > .fx-chevron { transform: rotate(180deg); }
.fx .fx-nav__panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 300px; padding: 10px; background: var(--fx-white); border: 1px solid var(--fx-border);
  border-radius: var(--fx-r-card); box-shadow: 0 18px 40px -18px rgba(46, 26, 71, .28); }
.fx .fx-nav__panel[hidden] { display: none; }
.fx .fx-nav__panel ul { list-style: none; }
.fx .fx-nav__panel a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px;
  text-decoration: none; color: var(--fx-purple); font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.fx .fx-nav__panel a small { font-weight: 400; font-size: .8125rem; color: var(--fx-text-muted); }
.fx .fx-nav__panel a:hover { background: var(--fx-ground); }
.fx .fx-nav__panel .fx-nav__all { border-top: 1px solid var(--fx-hairline); margin-top: 6px; padding-top: 6px; }
.fx .fx-header__actions { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.fx .fx-nav + .fx-header__actions { margin-left: 0; }
/* account + basket: same ids/hooks the shared head script would inject */
.fx .fx-header .nav-account, .fx .fx-header .lhrc-nav-btn { display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 12px; color: var(--fx-purple); background: none;
  line-height: 0; opacity: 1; transition: background-color var(--fx-fast) var(--fx-ease); }
.fx .fx-header .nav-account:hover, .fx .fx-header .lhrc-nav-btn:hover { background: var(--fx-ground); opacity: 1; }
.fx .fx-header .nav-account svg, .fx .fx-header .lhrc-nav-btn svg { width: 21px; height: 21px; }
.fx .fx-header .lhrc-nav-count { top: 4px; right: 3px; background: var(--fx-purple); color: var(--fx-white); }
.fx .fx-header__book { margin-left: 6px; }
.fx .fx-header__book-short { display: none; }
.fx .fx-menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--fx-border); border-radius: 12px; background: var(--fx-white); color: var(--fx-purple); cursor: pointer; }
.fx .fx-menu-toggle svg { width: 22px; height: 22px; }
.fx .fx-menu-toggle .fx-icon-close { display: none; }
.fx .fx-menu-toggle[aria-expanded="true"] .fx-icon-open { display: none; }
.fx .fx-menu-toggle[aria-expanded="true"] .fx-icon-close { display: block; }

/* Mobile menu: a sheet under the compact header (not the app's tab bar) */
.fx .fx-mobile { position: fixed; inset: var(--fx-header-h) 0 0 0; z-index: 899; background: var(--fx-white);
  overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--fx-gutter) 32px; }
.fx .fx-mobile[hidden] { display: none; }
.fx .fx-mobile__list { list-style: none; border-top: 1px solid var(--fx-hairline); }
.fx .fx-mobile__list > li { border-bottom: 1px solid var(--fx-hairline); }
.fx .fx-mobile__link { display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 12px 2px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--fx-font-display); font-weight: 500; font-size: 1.25rem; color: var(--fx-purple); text-decoration: none; }
.fx .fx-mobile__sub { list-style: none; padding: 0 0 12px; }
.fx .fx-mobile__sub[hidden] { display: none; }
.fx .fx-mobile__sub a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 10px;
  color: var(--fx-purple); text-decoration: none; font-weight: 500; }
.fx .fx-mobile__sub a:hover { background: var(--fx-ground); }
.fx .fx-mobile__foot { margin-top: 24px; display: grid; gap: 12px; }
.fx .fx-mobile__contact { display: grid; gap: 4px; margin-top: 8px; }
.fx .fx-mobile__contact a { color: var(--fx-text-muted); font-size: var(--fx-step-small); min-height: 44px; display: inline-flex; align-items: center; }
/* Lock the page behind the open menu on the ROOT scroller. On <body> it made body its own scroll box
   (html has overflow-x: clip), which broke the sticky header and made the page jump on close. */
html:has(body.fx):has(body.fx-menu-open) { overflow: hidden; }

@media (max-width: 1180px) {
  .fx .fx-nav__link { padding: 8px 10px; }
  .fx .fx-logo__text { display: none; }
}
@media (max-width: 1023px) {
  .fx { --fx-header-h: 64px; }
  .fx .fx-header nav.fx-nav, .fx .fx-header .nav-account, .fx .fx-header .lhrc-nav-btn { display: none; }
  .fx .fx-logo__text { display: inline; }
  .fx .fx-menu-toggle { display: inline-flex; }
  .fx .fx-header .fx-header__actions { margin-left: auto; }
  .fx .fx-header__bar { gap: 12px; }
  .fx .fx-logo img { height: 32px; }
  /* compact shortcut: the hero carries the full "Book a consultation" CTA */
  .fx .fx-header__book { min-width: 72px; min-height: 44px; padding: 8px 16px; font-size: .875rem; margin-left: 0; }
  .fx .fx-header__book-full { display: none; }
  .fx .fx-header__book-short { display: inline; }
}
@media (max-width: 400px) {
  .fx .fx-logo__text { display: none; }
}
@media (min-width: 1024px) { .fx .fx-mobile { display: none !important; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.fx .fx-hero { padding-block: clamp(24px, 1rem + 3vw, 72px) calc(var(--fx-section) * .5); }
/* Phones: a compact top. The bar was 64px around 44px controls (10px above and below them) and the
   hero added ~28px more before its first line; together they read as an empty band under the status
   bar. 56px keeps the 44px tap targets centred (6px above and below). The mobile menu sheet, sticky
   offsets and scroll-padding all follow --fx-header-h, so they move with it (no menu jump). */
@media (max-width: 640px) {
  .fx { --fx-header-h: 56px; }
  .fx .fx-hero { padding-top: 16px; }
  body.fx.lp main section.page-top { padding-top: 20px; }   /* AI Skin Assessment: its own inline top padding */
}
.fx .fx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 2rem + 3vw, 96px); align-items: center; }
.fx .fx-hero__title { font-size: var(--fx-step-hero); line-height: 1.02; letter-spacing: -.03em; }
.fx .fx-hero__title span { display: block; }
.fx .fx-hero__lead { margin-top: 24px; font-size: var(--fx-step-lead); line-height: 1.6;
  color: var(--fx-text-muted); max-width: 34em; }
.fx .fx-hero .fx-actions { margin-top: 32px; }
/* Trust row: verified review figures + one certificate-checked award. Text only. */
/* Each separator sits just left of its item, inside the previous item's right margin;
   the one that would start a wrapped line falls outside the list and is clipped. */
.fx .fx-hero__trust { list-style: none; margin: 20px 0 0; padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; align-items: baseline;
  row-gap: 4px; font-family: var(--fx-font-body); font-size: var(--fx-step-meta); line-height: 1.5; color: var(--fx-purple); }
.fx .fx-hero__trust li { position: relative; margin: 0 25px 0 0; }
.fx .fx-hero__trust li::before { content: ""; position: absolute; left: -13px; top: .35em; width: 1px; height: .9em; background: var(--fx-field-border); }
.fx .fx-hero__trust strong { font-weight: 600; }
.fx .fx-hero__media { position: relative; }
.fx .fx-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--fx-r-panel); background: var(--fx-ground); }
@media (max-width: 899px) {
  .fx .fx-hero__grid { grid-template-columns: 1fr; }
  .fx .fx-hero__media img { aspect-ratio: 4 / 3.6; object-position: 50% 26%; border-radius: var(--fx-r-card); }
  }
@media (max-width: 520px) {
  .fx .fx-hero .fx-actions .fx-btn { flex: 1 1 100%; }
  .fx .fx-hero__trust { display: block; }
  .fx .fx-hero__trust li { margin: 0; }
  .fx .fx-hero__trust li::before { display: none; }
  .fx .fx-hero__trust li + li { margin-top: 4px; }
}

/* ── Category cards (image-led) ─────────────────────────────────────────── */
.fx .fx-cats { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--fx-gap); }
.fx .fx-cat { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--fx-purple); }
.fx .fx-cat__media { overflow: hidden; border-radius: var(--fx-r-card); background: var(--fx-ground); }
.fx .fx-cat__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 400ms var(--fx-ease); }
.fx .fx-cat:hover .fx-cat__media img { transform: scale(1.03); }
.fx .fx-cat__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 2px 0; }
.fx .fx-cat__name { font-family: var(--fx-font-display); font-weight: 600; font-size: var(--fx-step-h3); line-height: 1.2; }
.fx .fx-cat__desc { margin-top: 4px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); line-height: 1.5; }
.fx .fx-cat .fx-arrow { margin-top: 4px; }
.fx .fx-cat:hover .fx-arrow { transform: translateX(3px); }
.fx .fx-cat:focus-visible { outline-offset: 6px; border-radius: var(--fx-r-card); }
/* Tablet and phone: one calm swipeable row instead of a tall stack of cards */
@media (max-width: 1023px) {
  .fx .fx-cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--fx-gutter) * -1); padding: 2px var(--fx-gutter) 12px; scroll-padding-inline: var(--fx-gutter);
    scrollbar-width: none; }
  .fx .fx-cats::-webkit-scrollbar { display: none; }
  .fx .fx-cats > li { flex: 0 0 min(40%, 240px); scroll-snap-align: start; }
}
@media (max-width: 640px) { .fx .fx-cats > li { flex-basis: 62%; } }

/* A single quiet line under a section's content */
.fx .fx-aside { margin-top: clamp(28px, 2rem + 1vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  font-size: var(--fx-step-small); color: var(--fx-text-muted); }
.fx .fx-link--inline { min-height: 44px; }
.fx .fx-heading--center { justify-content: center; text-align: center; }
.fx .fx-lead { margin-top: 18px; font-size: var(--fx-step-lead); line-height: 1.6; color: var(--fx-text-muted); max-width: 46ch; }

/* ── Not sure where to start? — two choices ─────────────────────────────── */
.fx .fx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fx-gap); max-width: 1040px; margin-inline: auto; align-items: start; }
.fx .fx-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%;
  padding: clamp(28px, 1.5rem + 1.5vw, 44px); background: var(--fx-white); border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); }
.fx .fx-choice__title { font-size: var(--fx-step-h3); }
.fx .fx-choice__text { color: var(--fx-text-muted); max-width: 40ch; }
.fx .fx-choice__note { font-size: var(--fx-step-meta); color: var(--fx-text-muted); margin-bottom: 8px; }
.fx .fx-choice__note a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-choice .fx-btn { margin-top: auto; }
.fx .fx-ai-panel { width: 100%; margin-top: 4px; }
.fx .fx-ai-panel[hidden] { display: none; }
@media (max-width: 799px) { .fx .fx-choices { grid-template-columns: 1fr; } }

/* AI Skin Assessment widget, re-themed through its own custom properties.
   The widget (static/ai-skin-analysis.js) reads var(--ink), var(--fg-1) … with
   fallbacks; redefining them on the host wrapper restyles it without touching
   its markup, logic, consent or copy. */
.fx .fx-ai {
  --ink: #FFFFFF; --obsidian: #F4F1F7; --smoke: #F4F1F7; --graphite: #E4DEEA;
  --fg-1: #2E1A47; --fg-2: #645677; --fg-3: #6D5F7E;
  --stroke-dark: #E4DEEA; --stroke-darker: #EFEBF2;
  --ember: #2E1A47; --ember-deep: #1F1130; --ember-soft: #2E1A47; --gold: #2E1A47;
  --danger: #9E3B31; --success: #3F6B47; --warning: #6D5F7E;
  --font-sans: var(--fx-font-body); --font-display: var(--fx-font-display);
}
.fx .fx-ai .ai-inline-card { background: var(--fx-white); border: 1px solid var(--fx-border); border-radius: 20px;
  box-shadow: none; font-family: var(--fx-font-body); color: var(--fx-purple); }
.fx .fx-ai .ai-inline-body { max-height: none; }
.fx .fx-ai .ai-btn { min-height: 48px; border-radius: var(--fx-r-button); font-weight: 600; }
.fx .fx-ai .ai-btn-primary { color: var(--fx-white); }
.fx .fx-ai .ai-h { font-weight: 600; }
.fx .fx-ai .ai-h em { font-style: normal; }
.fx .fx-ai .ai-eyebrow { letter-spacing: .02em; text-transform: none; font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); }
.fx .fx-ai .ai-chip[aria-pressed="true"] { color: var(--fx-white); }
.fx .fx-ai .ai-stage-hint { background: rgba(46, 26, 71, .7); color: #fff; }
.fx .fx-ai .ai-sev.notable { color: var(--fx-purple); font-weight: 600; }
/* the widget's small labels in the fx idiom: sentence case, no tracking (Phase 3) */
.fx .fx-ai .ai-tx-programme, .fx .fx-ai .ai-sev, .fx .fx-ai .ai-req { text-transform: none; letter-spacing: 0; }

/* ── Why Feonix — three points ──────────────────────────────────────────── */
.fx .fx-points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fx-gap) clamp(32px, 4vw, 64px);
  border-top: 1px solid var(--fx-border); padding-top: clamp(24px, 1.5rem + 1vw, 36px); }
.fx .fx-points h3 { font-size: var(--fx-step-h3); }
.fx .fx-points p { margin-top: 10px; color: var(--fx-text-muted); max-width: 34ch; }
@media (max-width: 799px) { .fx .fx-points { grid-template-columns: 1fr; gap: 24px; } }

/* ── Offers ─────────────────────────────────────────────────────────────── */
.fx .fx-offers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fx-gap); }
.fx .fx-offer { display: flex; flex-direction: column; height: 100%; background: var(--fx-white);
  border: 1px solid var(--fx-border); border-radius: var(--fx-r-card); overflow: hidden; }
.fx .fx-offer__media { position: relative; background: var(--fx-ground); }
.fx .fx-offer__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fx .fx-offer__badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--fx-white); color: var(--fx-purple); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.fx .fx-offer__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.fx .fx-offer__cat { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); }
.fx .fx-offer .offer-card-name { margin-top: 6px; font-size: var(--fx-step-h3); line-height: 1.25; }
.fx .fx-offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fx .fx-offer__price .ocp-amount { font-family: var(--fx-font-display); font-weight: 500; font-size: 2rem; line-height: 1; letter-spacing: -.02em; }
.fx .fx-offer__price .ocp-from, .fx .fx-offer__price .ocp-unit { font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-offer__price .ocp-unit { font-weight: 600; color: var(--fx-purple); }
.fx .fx-offer__per { margin-top: 4px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .fx-offer__status { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fx-ground);
  font-size: var(--fx-step-meta); line-height: 1.5; color: var(--fx-purple); }
.fx .fx-offer__status a { color: var(--fx-purple); font-weight: 600; }
.fx .fx-offer__status { display: flex; flex-direction: column; gap: 10px; }
.fx .fx-offer__status[hidden] { display: none; }
.fx .fx-offer__status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.fx .fx-offer__price.is-unavailable .ocp-amount { font-family: var(--fx-font-body); font-size: 1rem; font-weight: 600; color: var(--fx-text-muted); letter-spacing: 0; }
.fx .fx-offer__sub { margin-top: 14px; font-size: var(--fx-step-small); color: var(--fx-text-muted); line-height: 1.6; flex: 1; }
.fx .fx-offer .fx-btn { margin-top: 22px; }

@media (max-width: 899px) {
  .fx .fx-offers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(var(--fx-gutter) * -1); padding: 2px var(--fx-gutter) 12px; scroll-padding-inline: var(--fx-gutter); }
  .fx .fx-offers > li { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
}

/* Dialog (LHR course picker) — preserved ids, light theme */
.fx .lhr-offer-overlay { position: fixed; inset: 0; z-index: 9500; display: none; align-items: center; justify-content: center;
  padding: 16px; background: var(--fx-scrim); }
.fx .lhr-offer-overlay.open { display: flex; }
.fx .lhr-offer-modal { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--fx-white); color: var(--fx-purple); border-radius: var(--fx-r-card); padding: 32px 28px 26px; }
.fx .lhr-offer-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: none; color: var(--fx-purple); font-size: 26px; line-height: 1; cursor: pointer; }
.fx .lhr-offer-close:hover { background: var(--fx-ground); }
.fx .lhr-offer-cat { font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); }
.fx .lhr-offer-title { margin: 6px 0 22px; font-size: 1.5rem; }
.fx .lhr-offer-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.fx .lhr-offer-pill { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 12px 6px;
  border: 1px solid var(--fx-field-border); border-radius: var(--fx-r-control); background: var(--fx-white); color: var(--fx-purple); cursor: pointer; }
.fx .lhr-offer-pill:hover { border-color: var(--fx-purple); }
.fx .lhr-offer-pill.active { border: 2px solid var(--fx-purple); background: var(--fx-ground); padding: 11px 5px; }
.fx .lop-n { font-family: var(--fx-font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.1; }
.fx .lop-l { font-size: .8125rem; color: var(--fx-text-muted); }
.fx .lop-save { position: absolute; top: -9px; right: -6px; padding: 2px 7px; border-radius: 999px; background: var(--fx-purple); color: var(--fx-white); font-size: .75rem; font-weight: 600; }
.fx .lhr-offer-calc { border-top: 1px solid var(--fx-border); padding-top: 14px; margin-bottom: 20px; }
.fx .loc-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: var(--fx-step-small); color: var(--fx-text-muted); }
.fx .loc-row.loc-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--fx-border); font-size: 1.0625rem; font-weight: 600; color: var(--fx-purple); }
.fx .loc-was { margin-left: 6px; font-size: .8125rem; color: var(--fx-text-subtle); text-decoration: line-through; }
.fx .loc-row.loc-per { font-size: var(--fx-step-meta); }
.fx .loc-note { margin-top: 10px; font-size: var(--fx-step-meta); color: var(--fx-text-muted); }
.fx .loc-note a { color: var(--fx-purple); font-weight: 600; }
.fx .lhr-offer-pill:disabled { opacity: .45; cursor: not-allowed; }
.fx .loc-save { margin-top: 8px; text-align: right; font-size: var(--fx-step-meta); color: var(--fx-purple); font-weight: 600; }
.fx .lhr-offer-cta { width: 100%; }
.fx .lhr-offer-note { margin-top: 14px; font-size: .8125rem; line-height: 1.55; color: var(--fx-text-muted); text-align: center; }

/* ── The clinic ─────────────────────────────────────────────────────────── */
.fx .fx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.fx .fx-panel img { width: 100%; object-fit: cover; border-radius: var(--fx-r-panel); background: var(--fx-ground); }
.fx .fx-panel--clinic img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.fx .fx-panel--range img { aspect-ratio: 2 / 1; object-fit: cover; background: #EEEEF1; }
.fx .fx-founder { margin-top: 14px; color: var(--fx-purple); }
.fx .fx-founder a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-recognition { margin-top: 18px; max-width: 52ch; }
.fx .fx-recognition a { color: var(--fx-purple); font-weight: 600; text-underline-offset: 3px; }
.fx .fx-recognition + .fx-recognition { margin-top: 8px; }
@media (max-width: 899px) {
  .fx .fx-split { grid-template-columns: 1fr; }
  .fx .fx-split--media-first .fx-panel { order: -1; }
  .fx .fx-panel--clinic img { aspect-ratio: 4 / 3; border-radius: var(--fx-r-card); }
}

/* ── Final action + visit ───────────────────────────────────────────────── */
.fx .fx-final { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.fx .fx-final .fx-actions { margin-top: 28px; }
.fx .fx-final__visit { display: grid; gap: 24px; padding-top: 6px; }
.fx .fx-final__visit h3 { font-family: var(--fx-font-body); font-size: var(--fx-step-meta); font-weight: 600; color: var(--fx-text-muted); letter-spacing: .01em; margin-bottom: 6px; }
.fx .fx-final__visit address { font-style: normal; }
.fx .fx-final__visit > div { display: flex; flex-direction: column; align-items: flex-start; }
.fx .fx-hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; }
.fx .fx-hours dt { color: var(--fx-text-muted); }
.fx .fx-hours dd { margin: 0; }
@media (max-width: 899px) { .fx .fx-final { grid-template-columns: 1fr; } }

/* ── Newsletter (shared include, restyled in place — markup/JS unchanged) ── */
/* Compact: text left, form right — an ending, not another section. */
.fx .fxnl { background: var(--fx-white); color: var(--fx-purple); border: 0; border-top: 1px solid var(--fx-border); padding: clamp(32px, 1.5rem + 1.5vw, 48px) var(--fx-gutter); }
.fx .fxnl__inner { max-width: var(--fx-container); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: clamp(24px, 4vw, 72px); align-items: center; }
.fx .fxnl__eyebrow { display: none; }
.fx .fxnl__heading { grid-column: 1; font-family: var(--fx-font-display); font-weight: 600; font-size: var(--fx-step-h3); line-height: 1.2; letter-spacing: -.01em; color: var(--fx-purple); margin: 0; }
.fx .fxnl__sub { grid-column: 1; font-family: var(--fx-font-body); font-weight: 400; font-size: var(--fx-step-small); color: var(--fx-text-muted); margin: 8px 0 0; max-width: 40ch; }
.fx .fxnl__form, .fx .fxnl__success { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
/* heading hugs the bottom of row 1 and the sentence the top of row 2, so the pair reads as one block */
.fx .fxnl__heading { align-self: end; }
.fx .fxnl__sub { align-self: start; }
.fx .fxnl__form { gap: 10px; }
/* Join sits on its own row, centred beneath the combined width of the two fields */
.fx .fxnl__row:has(> .fxnl__btn) { justify-content: center; align-items: center; }
.fx .fxnl__field { font-family: var(--fx-font-body); font-size: 1rem; min-height: 48px; border: 1px solid var(--fx-input-border); border-radius: var(--fx-r-control);
  background: var(--fx-white); color: var(--fx-purple); }
.fx .fxnl__field::placeholder { color: var(--fx-text-subtle); }
.fx .fxnl__field:focus { outline: 2px solid var(--fx-purple); outline-offset: 1px; border-color: var(--fx-purple); box-shadow: none; }
.fx .fxnl__btn { font-family: var(--fx-font-body); font-weight: 600; font-size: 1rem; letter-spacing: .005em; text-transform: none;
  flex: 0 0 auto; width: auto; min-width: 180px; padding-inline: 32px; min-height: 48px; border-radius: var(--fx-r-button); background: var(--fx-purple); color: var(--fx-white); box-shadow: none; }
.fx .fxnl__btn:hover { filter: none; background: var(--fx-purple-raised); }
.fx .fxnl__btn:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 3px; }
.fx .fxnl__micro { font-family: var(--fx-font-body); font-size: .875rem; color: var(--fx-text-muted); text-align: left; }
.fx .fxnl__micro a { color: var(--fx-purple); }
.fx .fxnl__msg { font-family: var(--fx-font-body); }
.fx .fxnl__msg--err { color: var(--fx-error); font-weight: 600; }
.fx .fxnl__success { font-family: var(--fx-font-body); color: var(--fx-purple); }
.fx .fxnl__success strong { color: var(--fx-purple); }
@media (max-width: 799px) {
  .fx .fxnl__inner { grid-template-columns: 1fr; }
  .fx .fxnl__form, .fx .fxnl__success, .fx .fxnl__heading, .fx .fxnl__sub { grid-column: 1; grid-row: auto; }
  .fx .fxnl__form { margin-top: 16px; }
}

/* ── Footer — four short groups, then the essentials ────────────────────── */
.fx .fx-footer { padding: clamp(48px, 2.5rem + 2vw, 80px) 0 0; background: var(--fx-purple); color: var(--fx-white); text-align: left; display: block; }
.fx .fx-footer a { color: var(--fx-white); }
.fx .fx-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 48px); }
.fx .fx-footer__brand img { height: 40px; width: auto; }
.fx .fx-footer__brand address { margin-top: 16px; font-style: normal; color: var(--fx-on-dark-muted); font-size: var(--fx-step-small); line-height: 1.7; }
.fx .fx-footer__brand address a { color: var(--fx-white); text-underline-offset: 3px; }
.fx .fx-footer__title { font-family: var(--fx-font-body); font-size: var(--fx-step-meta); font-weight: 600; letter-spacing: .01em; color: var(--fx-on-dark-muted); margin-bottom: 8px; }
.fx .fx-footer__list { list-style: none; display: grid; gap: 0; }
.fx .fx-footer__list a, .fx .fx-footer__list button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--fx-white); font-family: var(--fx-font-body); font-size: var(--fx-step-small); font-weight: 500; text-decoration: none; text-align: left; }
.fx .fx-footer__list a:hover, .fx .fx-footer__list button:hover { text-decoration: underline; text-underline-offset: 4px; }
.fx .fx-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: flex-start; }
.fx .fx-footer .footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--fx-on-dark-line); color: var(--fx-white); transition: border-color var(--fx-fast) var(--fx-ease), background-color var(--fx-fast) var(--fx-ease); }
.fx .fx-footer .footer-social-link:hover { border-color: var(--fx-white); background: var(--fx-purple-raised); }
.fx .fx-footer .footer-social-link svg { width: 20px; height: 20px; fill: currentColor; }
.fx .fx-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 24px; margin-top: clamp(32px, 3vw, 56px);
  padding: 20px 80px 24px 0; border-top: 1px solid var(--fx-on-dark-line); font-size: var(--fx-step-meta); color: var(--fx-on-dark-muted); }
.fx .fx-footer .footer-copy { font-size: var(--fx-step-meta); color: var(--fx-on-dark-muted); text-transform: none; letter-spacing: 0; }
@media (max-width: 1023px) { .fx .fx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fx .fx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 380px) { .fx .fx-footer__grid { grid-template-columns: 1fr; } }

/* ── Shared overlays on fx pages: cookie banner, floating buttons, booking ── */
/* Cookie banner (analytics.js) — restyle only; consent logic untouched */
/* z-index deliberately NOT changed: analytics.js gives the banner 9000, the same
   as the booking modal, which is inserted later and so stacks above it. Raising
   it (as a first draft of this file did) put the banner over the mobile booking
   sheet and blocked the required consent checkbox. */
.fx #feonix-cookie-banner { font-family: var(--fx-font-body); border-top: 1px solid var(--fx-border); box-shadow: 0 -8px 24px -12px rgba(46, 26, 71, .18); }
.fx #feonix-cookie-banner .fcb-copy { font-size: .9375rem; color: var(--fx-purple); }
.fx #feonix-cookie-banner .fcb-copy a { color: var(--fx-purple); }
.fx #feonix-cookie-banner .fcb-accept { font-family: var(--fx-font-body); background: var(--fx-purple); color: var(--fx-white);
  border-radius: var(--fx-r-button); text-transform: none; letter-spacing: .005em; font-size: .9375rem; font-weight: 600; }
.fx #feonix-cookie-banner .fcb-accept:hover, .fx #feonix-cookie-banner .fcb-accept:focus { background: var(--fx-purple-raised); }
.fx #feonix-cookie-banner .fcb-accept:focus-visible { outline: 2px solid var(--fx-purple); outline-offset: 3px; }
.fx #feonix-cookie-banner .fcb-decline { font-family: var(--fx-font-body); color: var(--fx-purple); font-size: .9375rem; }
.fx #feonix-cookie-banner .fcb-decline:focus { outline-color: var(--fx-purple); }
/* Floating buttons (head_shared). The header already carries "Book a
   consultation" on every width, so the mobile book FAB is redundant here and
   would sit over content; WhatsApp stays. */
.fx .feonix-fab-book { display: none !important; }
.fx .feonix-fab-wa { box-shadow: 0 6px 18px rgba(46, 26, 71, .22); }
.fx.fx-menu-open .feonix-fab { opacity: 0; visibility: hidden; pointer-events: none; }

/* ── Motion preferences ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html:has(body.fx) { scroll-behavior: auto; }
}

/* AI widget form fields (lead gate): 3:1 boundary like every other input */
.fx .fx-ai .ai-input { border-color: var(--fx-input-border); background: var(--fx-white); }
.fx .fx-ai .ai-input:focus { border-color: var(--fx-purple); outline: 2px solid var(--fx-purple); outline-offset: 1px; }
.fx .fx-ai .ai-optin { border-color: var(--fx-border); }
.fx .loc-row.loc-total span:last-child { font-family: var(--fx-font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
/* left-align the footer lines the shared footer CSS centres on small screens */
.fx .fx-footer .footer-bottom, .fx .fx-footer .footer-copy { text-align: left; }
/* [hidden] must win over component display rules (buttons, status lines) */
.fx .fx-btn[hidden], .fx [data-fx-ai-toggle][hidden] { display: none; }
/* once the assessment is open, each choice sizes to its own content */
.fx .fx-choices:has(.fx-ai-panel:not([hidden])) .fx-choice { height: auto; }

/* ── Patient reviews: full-width brand-purple editorial band (the separator itself) ── */
.fx .fx-reviews { background: var(--fx-purple); color: var(--fx-on-dark); padding-block: clamp(48px, 2.5rem + 1.5vw, 64px); }
.fx .fx-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.fx .fx-reviews .fx-title { color: var(--fx-on-dark); font-size: clamp(1.625rem, 1.25rem + 1.2vw, 2.25rem); }  /* 26 → 36px: below the 48px section H2s */
.fx .fx-reviews .fx-link { color: var(--fx-on-dark); text-decoration-color: var(--fx-on-dark-line); font-size: var(--fx-step-small); }
.fx .fx-reviews .fx-link:hover { text-decoration-color: currentColor; }
.fx .fx-reviews__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx .fx-reviews__list > li { padding-right: clamp(24px, 4vw, 64px); }
.fx .fx-reviews__list > li + li { padding: 0 0 0 clamp(24px, 4vw, 64px); border-left: 1px solid var(--fx-on-dark-line); }
.fx .fx-quote { margin: 0; }
.fx .fx-quote blockquote { margin: 0; }
.fx .fx-quote blockquote p { margin: 0; max-width: 52ch; font-family: var(--fx-font-body); font-size: 1.125rem; line-height: 1.6; color: var(--fx-ground); }
.fx .fx-quote figcaption { margin-top: 16px; font-family: var(--fx-font-body); font-size: var(--fx-step-meta); }
.fx .fx-quote__name { font-weight: 600; color: var(--fx-on-dark); }
.fx .fx-quote__meta { color: var(--fx-on-dark-lavender); }
@media (max-width: 799px) {
  .fx .fx-reviews { padding-block: 40px; }
  .fx .fx-reviews__head { flex-direction: column; align-items: flex-start; }
  .fx .fx-reviews .fx-link { margin: -6px 0 -10px; }   /* keeps the 44px target, tightens the visible gap */
  .fx .fx-reviews__list { grid-template-columns: 1fr; margin-top: 20px; }
  .fx .fx-reviews__list > li { padding: 0; }
  .fx .fx-reviews__list > li + li { padding: 20px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--fx-on-dark-line); }
  .fx .fx-quote blockquote p { font-size: 1rem; }
}
/* SkinLab: the CTA sits a deliberate step below its paragraph */
.fx #skinlab .fx-lead + .fx-actions { margin-top: var(--fx-space-cta); }
