/* Mia kit v1.0: Mia Design Standard Part A tokens and Part B components. Tokens only below :root. */

:root {
  /* A2 brand palette */
  --c-white: #FFFFFF; --c-black: #000001;
  --c-gold: #F6B02F; --c-orange: #EF882E; --c-orange-deep: #E95722; --c-coral: #E94740; --c-red: #C03636;
  --c-whatsapp: #25D366;
  --gradient-brand: linear-gradient(100deg, #F6B02F 0%, #EF882E 38%, #E95722 68%, #C03636 100%);
  --gradient-cta: linear-gradient(100deg, #C8402F 0%, #C03636 52%, #A82E2E 100%);

  /* A3 semantic (light) */
  --color-canvas: #F7F7F8;
  --color-surface: #FFFFFF;
  --color-surface-sunk: #F1F1F3;
  --color-hover: rgba(0, 0, 1, .05);
  --color-text: #000001;
  --color-text-muted: #5C5C5D;
  --color-line: #E6E6E6;
  --color-line-subtle: #EFEFEF;
  --color-control: #858585;
  --color-accent-brand: #C03636;
  --color-selected: var(--gradient-cta);
  --color-on-selected: #FFFFFF;
  --ink: #000001;
  --on-ink: rgba(255, 255, 255, .94);
  --on-ink-muted: rgba(255, 255, 255, .74);
  --line-on-ink: rgba(255, 255, 255, .26);
  --fill-on-ink: rgba(255, 255, 255, .12);
  --fill-on-ink-hover: rgba(255, 255, 255, .2);
  --wash-brand: linear-gradient(100deg, rgba(246, 176, 47, .12) 0%, rgba(239, 136, 46, .08) 40%, rgba(233, 87, 34, .06) 70%, rgba(192, 54, 54, .05) 100%);
  --color-overlay: rgba(0, 0, 1, .32);
  --scrim-hero: linear-gradient(90deg, rgba(0, 0, 1, .78) 0%, rgba(0, 0, 1, .55) 55%, rgba(0, 0, 1, .25) 100%);
  --scrim-hero-mobile: rgba(0, 0, 1, .7);
  --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--c-red);
  --shadow-hover: 0 12px 32px rgba(0, 0, 1, .10);
  --shadow-overlay: 0 16px 48px rgba(0, 0, 1, .18);
  color-scheme: light;

  /* A5 type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.06; --lh-snug: 1.18; --lh-normal: 1.5; --lh-relaxed: 1.6;
  --ls-display: -0.03em; --ls-heading: -0.02em; --ls-label: 0.08em;
  --measure: 65ch;
  --fs-display: clamp(2.5rem, 5.2vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 3.2vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem; --fs-card: 0.9375rem;
  --fs-label: 0.8125rem;
  --fs-micro: 0.75rem;
  --fs-stat: clamp(2rem, 3vw, 2.75rem);

  /* A6 spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 8vw, 112px);
  --section-y-compact: clamp(40px, 5vw, 64px);
  --gutter: clamp(20px, 5vw, 88px);
  --container: 1200px;
  --container-wide: 1600px;
  --container-narrow: 760px;
  --header-h: 72px;
  --card-min: 260px;
  --float-gap: 80px;

  /* A7 shape, controls, motion, layers */
  --radius: 14px; --radius-card: 20px; --radius-lg: 28px; --radius-md: 12px; --radius-sm: 8px; --radius-pill: 999px;
  --control-xs: 32px; --control-sm: 40px; --control-md: 48px; --control-lg: 56px;
  --hit-min: 44px;
  --tag-h: 28px; --tag-h-sm: 22px;
  --dot-size: 12px;
  --step-size: 44px;
  --icon-lg: 28px;
  --dur-fast: 120ms; --dur-base: 200ms; --ease: cubic-bezier(.2, .8, .2, 1);
  --z-header: 50; --z-float: 60; --z-menu: 70; --z-modal: 75; --z-popover: 80; --z-toast: 90; --z-tooltip: 95;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-canvas: #0B0B0D;
    --color-surface: #16171B;
    --color-surface-sunk: #1E2026;
    --color-hover: rgba(255, 255, 255, .06);
    --color-text: rgba(255, 255, 255, .94);
    --color-text-muted: rgba(255, 255, 255, .74);
    --color-line: rgba(255, 255, 255, .26);
    --color-line-subtle: rgba(255, 255, 255, .12);
    --color-control: #77787C;
    --color-accent-brand: #E06060;
    --wash-brand: linear-gradient(100deg, rgba(246, 176, 47, .16) 0%, rgba(239, 136, 46, .12) 40%, rgba(233, 87, 34, .10) 70%, rgba(192, 54, 54, .08) 100%);
    --color-overlay: rgba(0, 0, 0, .6);
    --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--c-gold);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, .5);
    --shadow-overlay: 0 16px 48px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --color-canvas: #0B0B0D;
  --color-surface: #16171B;
  --color-surface-sunk: #1E2026;
  --color-hover: rgba(255, 255, 255, .06);
  --color-text: rgba(255, 255, 255, .94);
  --color-text-muted: rgba(255, 255, 255, .74);
  --color-line: rgba(255, 255, 255, .26);
  --color-line-subtle: rgba(255, 255, 255, .12);
  --color-control: #77787C;
  --color-accent-brand: #E06060;
  --wash-brand: linear-gradient(100deg, rgba(246, 176, 47, .16) 0%, rgba(239, 136, 46, .12) 40%, rgba(233, 87, 34, .10) 70%, rgba(192, 54, 54, .08) 100%);
  --color-overlay: rgba(0, 0, 0, .6);
  --focus-ring: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--c-gold);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, .5);
  --shadow-overlay: 0 16px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body {
  position: relative; isolation: isolate; margin: 0; overflow-x: clip;
  background: var(--color-canvas); color: var(--color-text);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-normal);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
/* Page backdrop: fixed brand mesh, tokens defined in B17 */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--mesh-bg); background-size: 140% 140%; background-repeat: no-repeat; background-position: 0% 0%; animation: mesh-drift 40s ease-in-out infinite alternate; }
@keyframes mesh-drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: var(--fw-semibold); }
img, svg, video { max-width: 100%; }
img { display: block; }
button, input, textarea, select { font-family: inherit; }
a { color: var(--color-accent-brand); }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: calc(-1 * var(--s-9)); z-index: var(--z-toast); }
.skip-link:focus { top: var(--s-4); }
.btn.skip-link { position: absolute; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.muted { color: var(--color-text-muted); }
.lede { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--color-text-muted); max-width: var(--measure); }
.text-center { text-align: center; }
.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--s-4); line-height: var(--lh-relaxed); }
.list { padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s-2); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: var(--fw-semibold); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: var(--fw-semibold); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: var(--fw-semibold); }

/* B1 Button (rail__arrow, icon-btn, theme-toggle and header__burger share the 40px round secondary) */
.btn, .icon-btn, .rail__arrow, .theme-toggle, .header__burger {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-md); padding-inline: var(--s-6); max-width: 100%;
  position: relative; isolation: isolate; border-radius: var(--radius-pill); border: 1px solid transparent;
  font: var(--fw-semibold) var(--fs-body)/1 var(--font-sans);
  text-align: center; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-base) var(--ease), filter var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.btn--lg { height: var(--control-lg); font-size: var(--fs-body-lg); padding-inline: var(--s-7); }
.btn--sm { height: var(--control-sm); font-size: var(--fs-small); padding-inline: var(--s-5); }
.btn--xs { height: var(--control-xs); font-size: var(--fs-small); padding-inline: var(--s-4); }
/* Murano glass fills for primary, secondary and whatsapp live in B17 */
.btn--whatsapp .icon { width: 1.125em; height: 1.125em; flex: none; }
.btn--full { width: 100%; }
.btn:focus-visible, .icon-btn:focus-visible, .rail__arrow:focus-visible, .theme-toggle:focus-visible, .header__burger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .icon { width: 1em; height: 1em; flex: none; }
.icon-btn, .rail__arrow, .theme-toggle, .header__burger { width: var(--control-sm); height: var(--control-sm); padding: 0; border-radius: 50%; flex: none; }
.icon-btn .icon, .rail__arrow .icon, .theme-toggle .icon, .header__burger .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
@media (pointer: coarse) {
  .btn--sm, .btn--xs, .pill-btn { min-height: var(--hit-min); }
  .icon-btn, .rail__arrow, .theme-toggle, .header__burger { min-width: var(--hit-min); min-height: var(--hit-min); }
}

/* B2 Card (step, person, fallback, form__fallback apply the card rules too) */
.card, .step, .person, .fallback, .form__fallback {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--color-surface); border: 1px solid var(--color-line); color: var(--color-text);
  border-radius: var(--radius-card); padding: var(--s-5); min-width: 0;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.card:hover, .step:hover, .person:hover, .fallback:hover, .form__fallback:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
/* .card (clear glass) and .card--tint (coloured glass) are defined in B17 */
.card__media, .person__photo { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-sm); object-fit: cover; display: block; }
.card__media--square, .person__photo { aspect-ratio: 1/1; }
.card__title, .person__name { margin: 0; font-size: var(--fs-h4); font-weight: var(--fw-semibold); line-height: var(--lh-snug); }
.card__body, .person__role { margin: 0; font-size: var(--fs-card); color: var(--color-text); line-height: var(--lh-normal); }
.card__stat { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: var(--lh-normal); }
.card__footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-3); padding-top: var(--s-2); }
.card__footer .btn { max-width: 100%; }
.person { align-items: center; text-align: center; }
.fallback { flex-direction: row; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.fallback p { margin: 0; font-size: var(--fs-body); color: var(--color-text); }
.form__fallback { align-items: flex-start; }

/* Grid helpers: auto-fit, capped column count, stretch for equal heights */
.grid-2, .grid-3, .grid-4 {
  --cols: 3; display: grid; gap: var(--s-5); align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--card-min), calc((100% - (var(--cols) - 1) * var(--s-5)) / var(--cols)))), 1fr));
}
.grid-2 { --cols: 2; }
.grid-4 { --cols: 4; }

/* B3 Eyebrow and Tag */
.eyebrow { margin: 0; font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.2; color: var(--color-accent-brand); }
[data-surface="ink"] .eyebrow, .hero .eyebrow, .cta-band .eyebrow, .section--ink .eyebrow, .footer .eyebrow { color: var(--c-gold); }
.tag {
  display: inline-flex; align-items: center; align-self: flex-start; height: var(--tag-h); padding-inline: var(--s-3); border-radius: var(--radius-pill);
  background: var(--color-surface-sunk); border: 1px solid var(--color-line); font-size: var(--fs-label); font-weight: var(--fw-medium);
  color: var(--color-text); letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.tag--sm { height: var(--tag-h-sm); font-size: var(--fs-micro); padding-inline: var(--s-2); }

/* B4 Pills: the segmented glass control (styled in B17) */
.pills-row { display: flex; justify-content: flex-start; margin-bottom: var(--s-6); }

/* B5 Hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(78vh, 720px); padding-block: var(--section-y); margin: 0; background: var(--ink); color: var(--on-ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: var(--scrim-hero); }
.hero__inner { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.hero__copy { max-width: 640px; display: flex; flex-direction: column; gap: 0; }
.hero__copy .eyebrow { color: var(--c-gold); margin-bottom: var(--s-3); }
.hero__title { margin: 0; font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-display); font-weight: var(--fw-semibold); text-wrap: balance; }
.hero__lede { margin: var(--s-4) 0 0; font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--on-ink-muted); max-width: var(--measure); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* B6 Banner */
.banner { color: var(--on-ink); padding-block: var(--s-5); overflow: hidden; margin: 0; }
.banner__eyebrow { margin: 0 0 var(--s-3); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; line-height: 1.2; color: var(--on-ink-muted); }
.banner__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, var(--c-black) 4%, var(--c-black) 96%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--c-black) 4%, var(--c-black) 96%, transparent 100%); }
.banner__track { display: flex; width: max-content; gap: 0; animation: banner-scroll 90s linear infinite; }
.banner__group { display: flex; align-items: center; gap: var(--s-8); padding-right: var(--s-8); flex: none; }
.banner__viewport:hover .banner__track, .banner__viewport:focus-within .banner__track { animation-play-state: paused; }
.banner__item { display: flex; align-items: center; gap: var(--s-3); flex: none; color: var(--on-ink); text-decoration: none; border-radius: var(--radius-sm); }
.banner__item:focus-visible { box-shadow: var(--focus-ring); }
.banner__logo { box-sizing: content-box; height: var(--control-lg); width: auto; max-width: none; object-fit: contain; padding: var(--s-2); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); filter: grayscale(1); }
.banner__logo[src$=".png"] { filter: grayscale(1) brightness(1.4); }
.banner__logo--colour, .banner__logo--colour[src$=".png"] { background: var(--c-white); padding: var(--s-2); border-radius: var(--radius-sm); filter: none; }
.banner__name { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-heading); line-height: var(--control-lg); white-space: nowrap; color: var(--on-ink-muted); }
.banner__stat { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); min-width: 160px; }
.banner__stat b { font-size: var(--fs-h3); font-weight: var(--fw-semibold); letter-spacing: var(--ls-heading); font-variant-numeric: tabular-nums; }
.banner__stat span { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-ink-muted); }
.banner__static { display: none; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3) var(--s-6); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2)); }
@keyframes banner-scroll { to { transform: translateX(-50%); } }

/* B7 Section */
.section { padding-block: var(--section-y); background: transparent; color: var(--color-text); }
.section--sunk { background: transparent; }
.section--ink { color: var(--on-ink); }
.section--compact { padding-block: var(--section-y-compact); }
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.container--narrow { width: min(var(--container-narrow), calc(100% - 2 * var(--gutter))); }
.section-header { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); max-width: var(--measure); }
.section-header h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: var(--fw-semibold); text-wrap: balance; }
.section-header p:not(.eyebrow) { margin: var(--s-2) 0 0; font-size: var(--fs-body-lg); color: var(--color-text-muted); line-height: var(--lh-relaxed); }
.section--ink .section-header p:not(.eyebrow) { color: var(--on-ink-muted); }
.section-header--center { align-items: center; text-align: center; margin-inline: auto; }
.section__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.section__actions--center { justify-content: center; }

/* B8 Accordion (person__more is an accordion too) */
.acc, .person__more { display: flex; flex-direction: column; border-top: 1px solid var(--color-line); }
.person__more { width: 100%; border-top: 0; text-align: start; }
.acc__item { border-bottom: 1px solid var(--color-line); }
.acc__trigger {
  width: 100%; min-height: var(--hit-min); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-4); padding-inline: 0; background: transparent; border: 0; color: inherit;
  font: var(--fw-semibold) var(--fs-h4)/var(--lh-snug) var(--font-sans); text-align: start; cursor: pointer;
}
.acc__trigger::after { content: ""; width: var(--dot-size); height: var(--dot-size); flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur-base) var(--ease); }
.acc__trigger[aria-expanded="true"]::after { transform: rotate(225deg); }
.acc__trigger:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.acc__panel { padding-bottom: var(--s-5); color: var(--color-text-muted); font-size: var(--fs-body); line-height: var(--lh-relaxed); }
.acc__panel p { margin: 0 0 var(--s-3); }
.acc__panel ul { margin: 0 0 var(--s-3); padding-left: 1.2em; }
.acc__panel[hidden] { display: none; }

/* B9 CTA band */
.cta-band { position: relative; color: var(--on-ink); padding-block: var(--s-8); }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--s-1); background-image: var(--gradient-brand); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.cta-band .eyebrow { color: var(--c-gold); margin-bottom: var(--s-2); }
.cta-band h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-heading); font-weight: var(--fw-semibold); text-wrap: balance; }
.cta-band p { margin: var(--s-4) 0 0; max-width: var(--measure); font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--on-ink-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }

/* B10 Steps and stats */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.step__num { width: var(--step-size); height: var(--step-size); flex: none; border-radius: 50%; background-image: var(--gradient-brand); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-semibold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-5); text-align: center; }
.stat { position: relative; padding: var(--s-3); }
.stat b { display: block; font-size: var(--fs-stat); font-weight: var(--fw-semibold); letter-spacing: var(--ls-heading); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--s-2); font-size: var(--fs-small); color: var(--color-text-muted); }
.stat[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); width: max-content; max-width: min(260px, 90vw); z-index: var(--z-tooltip);
  padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); font-size: var(--fs-micro); line-height: var(--lh-normal); text-align: center;
  box-shadow: var(--shadow-overlay); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease);
}
.stat[data-tip]:hover::after, .stat[data-tip]:focus-visible::after { opacity: 1; }

/* B11 Forms */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--color-text); }
.field input, .field textarea, .field select {
  width: 100%; height: var(--control-md); padding-inline: var(--s-4); border: 1px solid var(--color-control); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); font: var(--fw-regular) var(--fs-body)/1 var(--font-sans);
}
.field textarea { height: auto; min-height: 120px; padding-block: var(--s-3); line-height: var(--lh-normal); resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: transparent; }
.field__hint { font-size: var(--fs-small); color: var(--color-text-muted); }
.field__error { display: none; font-size: var(--fs-small); color: var(--color-accent-brand); }
.field:has([aria-invalid="true"]) .field__error, .field__error[data-show] { display: block; }
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form__actions { display: flex; flex-direction: column; gap: var(--s-3); margin-top: var(--s-2); }

.nowrap { white-space: nowrap; }

/* B12 Placeholder */
.placeholder {
  aspect-ratio: 1/1; width: 100%; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-4); text-align: center; background: var(--color-surface-sunk); border: 1px dashed var(--color-line); color: var(--color-text-muted);
}
.placeholder b { font-size: var(--fs-h4); font-weight: var(--fw-semibold); color: var(--color-text); }
.placeholder span { font-size: var(--fs-small); }

/* B14 Header */
.header { position: sticky; top: 0; z-index: var(--z-header); height: var(--header-h); border-bottom: 1px solid transparent; color: var(--color-text); }
.header__inner { height: 100%; width: min(var(--container-wide), calc(100% - 2 * var(--gutter))); margin-inline: auto; display: flex; align-items: center; gap: var(--s-5); }
.wordmark { font-size: var(--fs-h3); font-weight: var(--fw-bold); letter-spacing: var(--ls-display); line-height: 1; text-decoration: none; background-image: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; flex: none; }
.header__nav { flex: 1 1 auto; min-width: 0; }
.nav { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; gap: var(--s-1); list-style: none; margin: 0; padding: 0; min-width: 0; }
.nav__link {
  display: inline-flex; align-items: center; height: var(--control-sm); padding-inline: var(--s-3); border-radius: var(--radius-pill); white-space: nowrap;
  font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--color-text); text-decoration: none; transition: background-color var(--dur-base) var(--ease);
}
.nav__link:hover { background: var(--color-hover); }
.nav__link[aria-current="page"] { background-image: var(--color-selected); color: var(--color-on-selected); font-weight: var(--fw-semibold); }
.nav__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.header__actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; flex: none; }
.header__burger { display: none; }
.header__burger .icon, .icon-btn .icon, .rail__arrow .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: var(--z-menu); }
.drawer__overlay { position: absolute; inset: 0; background: var(--color-overlay); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5);
  color: var(--color-text); box-shadow: var(--shadow-overlay); overflow-y: auto;
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.drawer__link { display: flex; align-items: center; min-height: var(--control-md); padding-inline: var(--s-3); border-radius: var(--radius-sm); font-weight: var(--fw-medium); color: var(--color-text); text-decoration: none; }
.drawer__link:hover { background: var(--color-hover); }
.drawer__link[aria-current="page"] { background-image: var(--color-selected); color: var(--color-on-selected); font-weight: var(--fw-semibold); }
.drawer__cta { margin-top: auto; padding-top: var(--s-5); }

/* Footer */
.footer { color: var(--on-ink); padding-block: var(--s-8) var(--s-5); border-top: 1px solid var(--line-on-ink); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-7) var(--s-6); }
.footer__col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; font-size: var(--fs-small); color: var(--on-ink-muted); font-style: normal; }
.footer__col h3 { margin: 0 0 var(--s-1); font-size: var(--fs-label); font-weight: var(--fw-semibold); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-gold); }
.footer__col p { margin: 0; line-height: var(--lh-normal); }
.footer a { color: var(--on-ink-muted); text-decoration: none; font-size: var(--fs-small); }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }
.footer a:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.footer .wordmark { font-size: var(--fs-h3); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-on-ink); font-size: var(--fs-small); color: var(--on-ink-muted); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }

/* Floating WhatsApp and cookie bar */
.whatsapp-float { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: var(--z-float); box-shadow: var(--shadow-overlay); }
.cookie-bar {
  position: fixed; left: var(--s-5); right: calc(var(--s-5) + var(--float-gap)); bottom: var(--s-5); z-index: calc(var(--z-float) - 1);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-4) var(--s-5);
  color: var(--color-text); border: 1px solid transparent; border-radius: var(--radius-card); box-shadow: var(--shadow-overlay);
  max-width: var(--container-narrow);
}
.cookie-bar p { margin: 0; flex: 1 1 280px; font-size: var(--fs-card); line-height: var(--lh-normal); color: var(--color-text); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* B16 Rail, range, media split, before/after */
.rail {
  display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(50% - 50vw);
  padding-inline: max(var(--gutter), calc(50vw - var(--container) / 2)); scroll-padding-inline: max(var(--gutter), calc(50vw - var(--container) / 2));
  padding-block: var(--s-2) var(--s-4);
}
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 320px; scroll-snap-align: start; }
.rail:focus-visible { box-shadow: none; outline: none; }
.rail__controls { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.range { appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--color-line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--color-surface); cursor: pointer; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--color-surface); cursor: pointer; }
.range:focus-visible { box-shadow: var(--focus-ring); }
.media-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); align-items: center; }
.media-split__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); min-width: 0; }
.media-split__copy > .form, .media-split__copy > .card, .media-split__copy > .acc, .media-split__copy > .fallback { align-self: stretch; }
.media-split__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-card); }
.media-split--reverse .media-split__img { order: 2; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); align-items: stretch; }

/* Responsive */
@media (max-width: 1279px) {
  .header__nav, .header__actions .btn { display: none; }
  .header__burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-split { grid-template-columns: 1fr; }
  .media-split__img { aspect-ratio: 16/10; }
  .media-split--reverse .media-split__img { order: 0; }
}
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ba { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero { min-height: 0; padding-block: var(--s-8) var(--s-7); }
  .hero__scrim { background: var(--scrim-hero-mobile); }
  .hero__actions .btn { height: var(--control-md); font-size: var(--fs-body); padding-inline: var(--s-5); }
  .btn--lg { padding-inline: var(--s-5); }
  .card__footer .btn { padding-inline: var(--s-4); }
  .banner__logo { height: var(--control-sm); padding: var(--s-2); }
  .banner__name { line-height: var(--control-sm); }
  .cta-band { padding-block: var(--s-7); }
  .rail > .card { flex-basis: 280px; }
  .footer__grid { grid-template-columns: 1fr; }
  .pills-row { justify-content: flex-start; }
  .whatsapp-float { width: var(--control-lg); height: var(--control-lg); padding: 0; border-radius: 50%; }
  .whatsapp-float .whatsapp-float__label { display: none; }
  .whatsapp-float .icon { width: var(--icon-lg); height: var(--icon-lg); }
  body.has-cookie-bar .whatsapp-float { bottom: calc(var(--s-5) + var(--s-10)); }
  .cookie-bar { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
  .form__actions .btn { width: 100%; }
  .hero__actions, .section__actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions, .media-split__copy > .section__actions { align-self: stretch; }
  .hero__actions .btn, .section__actions .btn, .cta-band__actions .btn { width: 100%; }
}

/* B17 Murano glass layer (Mia UI standard). Fixed mesh, transparent sections, dark-glass ink, translucent cards, glass buttons and controls. */
:root {
  --mesh-1: .34; --mesh-2: .30; --mesh-3: .28; --mesh-4: .26;
  --mesh-bg: radial-gradient(62% 54% at 16% 12%, rgba(246, 176, 47, var(--mesh-1)), transparent 78%), radial-gradient(58% 56% at 88% 46%, rgba(239, 136, 46, var(--mesh-2)), transparent 78%), radial-gradient(64% 58% at 10% 90%, rgba(233, 87, 34, var(--mesh-3)), transparent 78%), radial-gradient(52% 52% at 84% 98%, rgba(192, 54, 54, var(--mesh-4)), transparent 78%), var(--color-canvas);
  --glass-card: 58%;
  --glass-card-fill: color-mix(in srgb, var(--color-surface) var(--glass-card), transparent);
  --glass-card-line: rgba(255, 255, 255, .55);
  --glass-card-hl: rgba(255, 255, 255, .7);
  --glass-card-shadow: 0 10px 36px rgba(0, 0, 1, .08);
  --glass-card-blur: blur(24px) saturate(1.4);
  --glass-tint: linear-gradient(135deg, rgba(246, 176, 47, .28), rgba(192, 54, 54, .22));
  --glass-surface: color-mix(in srgb, var(--color-surface) 55%, transparent);
  --glass-edge: rgba(255, 255, 255, .55);
  --glass-btn-fill: rgba(255, 255, 255, .16);
  --glass-btn-line: rgba(255, 255, 255, .55);
  --glass-btn-hl: rgba(255, 255, 255, .6);
  --glass-hover-fill: rgba(255, 255, 255, .3);
  --glass-ink: rgba(0, 0, 1, .55);
  --glass-ink-line: rgba(255, 255, 255, .18);
  --glass-ink-blur: blur(24px) saturate(1.8) brightness(.62);
  --glass-tile: rgba(255, 255, 255, .14);
  --glass-tile-line: rgba(255, 255, 255, .28);
  --glass-tile-colour: rgba(255, 255, 255, .85);
  --scrim-hero-glass: rgba(0, 0, 1, .35);
  --eyebrow-glass: color-mix(in srgb, var(--c-red) 78%, var(--c-black));
  --murano-red: linear-gradient(180deg, rgba(212, 74, 60, .95), rgba(180, 44, 44, .94) 55%, rgba(156, 40, 40, .95));
  --murano-green: linear-gradient(180deg, rgba(37, 211, 102, .92), rgba(28, 170, 82, .92));
  --murano-cap: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent);
  --murano-red-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(0, 0, 1, .18), 0 10px 28px rgba(192, 54, 54, .35);
  --murano-green-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(0, 0, 1, .16), 0 10px 28px rgba(37, 211, 102, .30);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --mesh-1: .48; --mesh-2: .44; --mesh-3: .40; --mesh-4: .36;
  --glass-ink-blur: blur(24px) saturate(1.4); --glass-card: 42%; --glass-card-line: rgba(255, 255, 255, .18); --glass-card-hl: rgba(255, 255, 255, .22); --glass-card-shadow: 0 10px 36px rgba(0, 0, 0, .35);
  --eyebrow-glass: color-mix(in srgb, var(--color-accent-brand) 25%, var(--c-white)); --glass-edge: rgba(255, 255, 255, .18); --glass-btn-fill: rgba(255, 255, 255, .10); --glass-btn-line: rgba(255, 255, 255, .25); --glass-btn-hl: rgba(255, 255, 255, .28); --glass-hover-fill: rgba(255, 255, 255, .16);
} }
:root[data-theme="dark"] {
  --mesh-1: .48; --mesh-2: .44; --mesh-3: .40; --mesh-4: .36;
  --glass-ink-blur: blur(24px) saturate(1.4); --glass-card: 42%; --glass-card-line: rgba(255, 255, 255, .18); --glass-card-hl: rgba(255, 255, 255, .22); --glass-card-shadow: 0 10px 36px rgba(0, 0, 0, .35);
  --eyebrow-glass: color-mix(in srgb, var(--color-accent-brand) 25%, var(--c-white)); --glass-edge: rgba(255, 255, 255, .18); --glass-btn-fill: rgba(255, 255, 255, .10); --glass-btn-line: rgba(255, 255, 255, .25); --glass-btn-hl: rgba(255, 255, 255, .28); --glass-hover-fill: rgba(255, 255, 255, .16);
}
:root:has(.header--light) { --header-h: 64px; }

/* 1. Backdrop: one fixed mesh that slowly morphs; nothing else paints a band in the flow */
body::before { background-size: 140% 140%; animation: mesh-drift 60s ease-in-out infinite alternate; }
@keyframes mesh-drift {
  0% { background-position: 0% 0%; background-size: 140% 140%; }
  50% { background-position: 70% 35%; background-size: 175% 165%; }
  100% { background-position: 100% 100%; background-size: 150% 155%; }
}
.section, .section--sunk, .section--compact { background: transparent; }

/* 1. Dark glass for ink surfaces (banner, CTA band, footer, ink section) */
.banner, .cta-band, .footer, .section--ink {
  background: var(--glass-ink); -webkit-backdrop-filter: var(--glass-ink-blur); backdrop-filter: var(--glass-ink-blur);
  border-top: 1px solid var(--glass-ink-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
}
.cta-band { border-top: 0; }
.cta-band::before { box-shadow: none; }

/* 2. Cards: .card is clear glass, .card--tint is coloured glass. .card--ink, .card--featured and .card--hero are tint. */
.card, .step, .person, .fallback, .form__fallback, .card--sunk {
  background: var(--glass-card-fill); border: 1px solid var(--glass-card-line); border-radius: var(--radius-card);
  -webkit-backdrop-filter: var(--glass-card-blur); backdrop-filter: var(--glass-card-blur);
  box-shadow: inset 0 1px 0 var(--glass-card-hl), var(--glass-card-shadow); color: var(--color-text);
}
.card--tint, .card--ink, .card--featured, .card--hero { background: var(--glass-tint), var(--glass-card-fill); }
.card--featured, .card--hero { border-color: transparent; }
.card--featured::before, .card--hero::before {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; background: var(--gradient-brand); pointer-events: none;
  -webkit-mask: linear-gradient(var(--c-black) 0 0) content-box, linear-gradient(var(--c-black) 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(var(--c-black) 0 0) content-box, linear-gradient(var(--c-black) 0 0); mask-composite: exclude;
}
.card:hover, .step:hover, .person:hover, .fallback:hover, .form__fallback:hover { box-shadow: inset 0 1px 0 var(--glass-card-hl), var(--shadow-hover); }
.card .muted, .card .card__body, .step .card__body, .person__role { color: var(--color-text); }
.card--glass { background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25); color: var(--on-ink); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.card--glass .card__body { color: var(--on-ink-muted); }
.card__media, .person__photo { border-radius: var(--radius-md); }
.fallback { background: var(--glass-tint), var(--glass-card-fill); }
.eyebrow { color: var(--eyebrow-glass); }
:is(.hero, .banner, .cta-band, .section--ink, .footer, [data-surface="ink"]) .eyebrow { color: var(--c-gold); }
.fallback__note { margin: 0; flex-basis: 100%; font-size: var(--fs-small); color: var(--color-text); }
.fallback strong { font-weight: var(--fw-semibold); }
.placeholder { background: color-mix(in srgb, var(--color-surface-sunk) 45%, transparent); border-color: var(--glass-card-line); }
.tag { background: var(--glass-tile); border-color: var(--glass-card-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.field input, .field textarea, .field select { background: color-mix(in srgb, var(--color-surface) 62%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lede, .section-header p:not(.eyebrow) { color: var(--color-text-muted); }

/* 3. Buttons: Murano glass. Secondary (and the round icon buttons) are clear glass. */
.btn--secondary, .icon-btn, .rail__arrow, .theme-toggle, .header__burger, .header__back {
  color: var(--color-text); background: var(--glass-btn-fill); border: 1px solid var(--glass-btn-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--glass-btn-hl), inset 0 -1px 0 rgba(0, 0, 1, .08), 0 8px 24px rgba(0, 0, 1, .10);
}
.btn--secondary:hover, .icon-btn:hover, .rail__arrow:hover, .theme-toggle:hover, .header__burger:hover, .header__back:hover { background: var(--glass-hover-fill); transform: translateY(-2px); filter: brightness(1.06); }
.btn--primary { color: var(--c-white); text-shadow: 0 1px 1px rgba(0, 0, 1, .28); background: var(--murano-red); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--murano-red-shadow); }
.btn--whatsapp { color: var(--c-black); background: var(--murano-green); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--murano-green-shadow); }
.btn--primary:hover, .btn--whatsapp:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--primary::before, .btn--whatsapp::before, .pill-btn[aria-selected="true"]::before, .pill-btn.is-selected::before, .nav__link[aria-current="page"]::before {
  content: ""; position: absolute; z-index: -1; top: 1px; left: 6%; right: 6%; height: 42%; border-radius: var(--radius-pill); background: var(--murano-cap); pointer-events: none;
}
.btn { transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), filter var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease); }
.btn:active:not([disabled]), .icon-btn:active, .rail__arrow:active, .theme-toggle:active, .header__burger:active, .header__back:active {
  transform: translateY(1px) scale(.98); filter: none; transition-duration: var(--dur-fast);
  box-shadow: inset 0 3px 8px rgba(0, 0, 1, .30), inset 0 1px 0 rgba(255, 255, 255, .18);
}
/* secondary and round buttons on ink surfaces keep the same recipe with the dark-glass values */
[data-surface="ink"] :is(.btn--secondary, .icon-btn, .rail__arrow, .theme-toggle, .header__burger), :is(.hero, .banner, .cta-band, .section--ink, .footer, .card--glass) :is(.btn--secondary, .icon-btn, .rail__arrow) {
  color: var(--on-ink); background: rgba(0, 0, 1, .30); border-color: rgba(255, 255, 255, .40); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 1, .12), 0 8px 24px rgba(0, 0, 1, .22);
}
[data-surface="ink"] :is(.btn--secondary, .icon-btn, .rail__arrow):hover, :is(.hero, .banner, .cta-band, .section--ink, .footer) :is(.btn--secondary, .icon-btn, .rail__arrow):hover { background: rgba(0, 0, 1, .42); }
.header__back { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--control-sm); padding-inline: var(--s-4); border-radius: var(--radius-pill); font: var(--fw-semibold) var(--fs-small)/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-base) var(--ease), filter var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease); }
.header__back .icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible, .icon-btn:focus-visible, .rail__arrow:focus-visible, .theme-toggle:focus-visible, .header__burger:focus-visible, .header__back:focus-visible, .btn--primary:focus-visible, .btn--whatsapp:focus-visible, .btn--secondary:focus-visible { box-shadow: var(--focus-ring); }
@keyframes theme-spin { from { transform: rotate(-180deg); } to { transform: rotate(0); } }
.theme-toggle.is-rotating .icon { animation: theme-spin 300ms var(--ease); }

/* 3. Segmented control (.pills): clear glass capsule, selected segment is red Murano glass. 2 to 6 segments. */
.pills { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); max-width: 100%; padding: var(--s-1); border-radius: var(--radius-lg); border: 1px solid var(--glass-btn-line); background: var(--glass-btn-fill); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 1px 0 var(--glass-btn-hl), inset 0 -1px 0 rgba(0, 0, 1, .08), 0 8px 24px rgba(0, 0, 1, .10); }
.pill-btn {
  position: relative; isolation: isolate; height: 44px; padding-inline: var(--s-5); border-radius: var(--radius-pill); border: 1px solid transparent; background: transparent; color: var(--color-text);
  font: var(--fw-medium) var(--fs-card)/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: transform var(--dur-fast) var(--ease), background-color var(--dur-base) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pill-btn:hover { background: var(--glass-hover-fill); }
.pill-btn:active { transform: scale(.98); }
.pill-btn[aria-selected="true"], .pill-btn.is-selected, .pill-btn[aria-selected="true"]:hover, .pill-btn.is-selected:hover {
  color: var(--c-white); font-weight: var(--fw-semibold); text-shadow: 0 1px 1px rgba(0, 0, 1, .28); background: var(--murano-red); border-color: rgba(255, 255, 255, .35); box-shadow: var(--murano-red-shadow); transform: none;
}
.pill-btn:focus-visible, .pill-btn[aria-selected="true"]:focus-visible { box-shadow: var(--focus-ring); }
[data-panels] { margin-top: var(--s-5); }

/* 4. Logo tiles (banner) */
.banner__logo, .banner__name {
  box-sizing: content-box; height: var(--control-lg); padding: 10px 14px; border-radius: var(--radius-md); background: var(--glass-tile); border: 1px solid var(--glass-tile-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30);
}
.banner__logo { width: auto; max-width: none; object-fit: contain; filter: grayscale(1); }
.banner__logo[src$=".png"] { filter: grayscale(1) brightness(1.4); }
.banner__logo--colour, .banner__logo--colour[src$=".png"] { background: var(--glass-tile-colour); border-color: rgba(255, 255, 255, .6); filter: none; padding: 10px 14px; border-radius: var(--radius-md); }
.banner__name { display: inline-flex; align-items: center; line-height: 1; font-size: var(--fs-h3); color: var(--on-ink); }
.banner__stat { padding: var(--s-3) var(--s-5); border-radius: var(--radius-md); background: var(--glass-tile); border: 1px solid var(--glass-tile-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* 5. Hero plate: the most translucent glass in the kit */
.hero__scrim { background: var(--scrim-hero-glass); }
.hero__title, .hero__lede, .hero__copy .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 1, .55), 0 0 18px rgba(0, 0, 1, .35); }
.hero__lede { color: var(--on-ink); }
@media (min-width: 641px) {
  .hero__copy { padding: var(--s-6); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .025); -webkit-backdrop-filter: blur(1.5px) saturate(1.1); backdrop-filter: blur(1.5px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 60px rgba(0, 0, 1, .18); }
}

/* 6. Header, drawer, dropdown: clear glass */
.header { background: var(--glass-surface); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-bottom-color: var(--glass-edge); box-shadow: inset 0 -1px 0 rgba(0, 0, 1, .04), 0 8px 32px rgba(0, 0, 1, .06); }
.nav__link:hover { background: var(--glass-hover-fill); }
.nav__link { position: relative; isolation: isolate; }
.nav__link[aria-current="page"], .drawer__link[aria-current="page"] { color: var(--c-white); text-shadow: 0 1px 1px rgba(0, 0, 1, .28); background: var(--murano-red); border: 1px solid rgba(255, 255, 255, .35); box-shadow: var(--murano-red-shadow); }
.nav__link[aria-current="page"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(0, 0, 1, .18), 0 6px 18px rgba(192, 54, 54, .30); }
.drawer__overlay { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer__panel, .dropdown, .nav__dropdown { background: var(--glass-surface); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border: 1px solid var(--glass-edge); border-radius: var(--radius-card); box-shadow: inset 0 1px 0 var(--glass-card-hl), var(--shadow-overlay); }
.drawer__panel { top: var(--s-2); right: var(--s-2); bottom: var(--s-2); width: min(360px, calc(100% - 2 * var(--s-2))); }
.dropdown, .nav__dropdown { position: absolute; top: calc(100% + var(--s-2)); padding: var(--s-2); min-width: 220px; z-index: var(--z-popover); }
.cookie-bar { background: var(--glass-surface); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-card-hl), var(--shadow-overlay); }
.header--light { height: 64px; }
.header--light .header__nav, .header--light .header__burger, .header--light .header__actions .btn { display: none; }
.header--light .header__actions { margin-left: auto; }

/* Cookie bar title */
.cookie-bar__title { display: block; margin-bottom: var(--s-1); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--color-text); }

/* 7. Step numbers: glass marbles */
.step__num { position: relative; isolation: isolate; width: var(--step-size); height: var(--step-size); border-radius: 50%; background: var(--murano-red); border: 1px solid rgba(255, 255, 255, .35); box-shadow: var(--murano-red-shadow); color: var(--c-white); text-shadow: 0 1px 1px rgba(0, 0, 1, .28); font-size: 1.25rem; font-weight: var(--fw-bold); }
.step__num::before { content: ""; position: absolute; z-index: -1; top: 2px; left: 15%; right: 15%; height: 46%; border-radius: 50%; background: var(--murano-cap); pointer-events: none; }

/* 8. Footer: dark glass, four columns */
.footer__col h3 { color: var(--c-gold); }
.footer__brand { gap: var(--s-4); }
.footer__line { display: flex; flex-direction: column; gap: 2px; }
.footer__line small { font-size: var(--fs-micro); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--on-ink-muted); }
.footer__social { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.footer__social .icon-btn { color: var(--on-ink); }
.footer__social .icon-btn .icon { width: 1.125rem; height: 1.125rem; fill: currentColor; stroke: none; }
.footer__info { margin: 0; font-size: var(--fs-small); color: var(--on-ink-muted); }
.footer__legal { border-top-color: var(--glass-ink-line); }

/* Responsive glass */
@media (max-width: 640px) {
  .hero__scrim { background: var(--scrim-hero-mobile); }
  .drawer__panel { width: calc(100% - 2 * var(--s-2)); }
  .banner__logo, .banner__name { height: var(--control-sm); padding: var(--s-2) var(--s-3); }
  .banner__name { font-size: var(--fs-h4); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .step, .person, .fallback, .form__fallback, .header, .drawer__panel, .cookie-bar { background-color: var(--color-surface); }
  .banner, .cta-band, .footer, .section--ink { background: var(--ink); }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle.is-rotating .icon { animation: none; }
  body::before { animation: none !important; }
  .btn:active, .icon-btn:active, .rail__arrow:active, .theme-toggle:active, .header__burger:active, .header__back:active, .pill-btn:active { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .step:hover, .person:hover, .fallback:hover, .form__fallback:hover, .icon-btn:hover, .rail__arrow:hover, .theme-toggle:hover { transform: none; }
  .banner__viewport { display: none; }
  .banner__static { display: flex; }
}

/* B17b Swipe segmented control (phones, 760px and narrower). One rule for every .pills on the site.
   The glass capsule stays fully on the page with both round ends visible; the segments sit on one line inside it.
   If they fit, they share the width. If they do not fit, the capsule becomes a swipe selector (.is-swipe, set by mia-kit.js):
   segments scroll inside the capsule, the one in the centre is selected, a short slide shows it moves, and a hint sits underneath. */
.pills__track { display: contents; }
.pills-swipe-hint { display: none; }
@media (max-width: 760px) {
  .pills-row { display: block; }
  .pills, .pills--stack { display: block; position: relative; width: 100%; max-width: 100%; padding: 0; overflow: hidden; }
  .pills__track { display: flex; flex-wrap: nowrap; gap: var(--s-1); padding: var(--s-1); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pills__track::-webkit-scrollbar { display: none; }
  .pills .pill-btn { flex: 1 0 auto; padding-inline: var(--s-4); }
  .pills.is-swipe .pills__track { scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); }
  .pills.is-swipe .pills__track.is-nudging { scroll-snap-type: none; }
  .pills.is-swipe .pill-btn { flex: 0 0 auto; scroll-snap-align: center; padding-inline: var(--s-5); }
  .pills-swipe-hint { display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: var(--fs-micro); color: var(--color-text-muted); letter-spacing: var(--ls-label); text-transform: uppercase; transition: opacity .4s; }
  [data-surface="ink"] .pills-swipe-hint { color: var(--on-ink-muted); }
  .pills-swipe-hint.is-off { display: none; }
  .pills-swipe-hint.is-done { opacity: 0; }
  .pills-swipe-hint svg { width: 14px; height: 14px; animation: pills-swipe 1.6s ease-in-out infinite; }
  .pills-swipe-hint svg:first-child { animation-direction: reverse; }
}
@keyframes pills-swipe { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .pills-swipe-hint svg { animation: none; } }
/* Segments on a dark (ink) surface, e.g. the mobile clinics hero: unselected labels in light text */
[data-surface="ink"] .pill-btn:not([aria-selected="true"]):not(.is-selected) { color: var(--on-ink); }

/* ===== B18 Liquid glass v2 (Oct 2026, marketing feedback) =====
   Matte translucent coloured glass, no painted sheen. The light lives on the rounded rim instead:
   a bright edge where the curve catches light (top left), a softer one opposite (bottom right), and a faint inner lensing glow.
   Works in Safari and Chrome with plain CSS (backdrop-filter, inset shadows, a masked gradient ring). */
:root {
  --mesh-1: .58; --mesh-2: .52; --mesh-3: .48; --mesh-4: .46;
  --lg-red: rgba(168, 34, 34, .78);
  --lg-red-hover: rgba(176, 38, 38, .86);
  --lg-green: rgba(37, 211, 102, .62);
  --lg-clear: rgba(255, 255, 255, .18);
  --lg-blur: blur(14px) saturate(1.8);
  --lg-ring: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .35) 18%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .28) 80%, rgba(255, 255, 255, .75) 100%);
  --lg-lens: inset 2px 3px 6px -3px rgba(255, 255, 255, .70), inset -2px -3px 6px -3px rgba(255, 255, 255, .38), inset 0 0 10px rgba(255, 255, 255, .10);
  --lg-drop: 0 8px 24px rgba(0, 0, 1, .14);
  --glass-surface: color-mix(in srgb, var(--color-surface) 30%, transparent);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --mesh-1: .66; --mesh-2: .60; --mesh-3: .56; --mesh-4: .52;
  --lg-clear: rgba(255, 255, 255, .08);
  --lg-ring: linear-gradient(135deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .22) 18%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .16) 80%, rgba(255, 255, 255, .5) 100%);
  --glass-surface: color-mix(in srgb, var(--color-surface) 34%, transparent);
} }
:root[data-theme="dark"] {
  --mesh-1: .66; --mesh-2: .60; --mesh-3: .56; --mesh-4: .52;
  --lg-clear: rgba(255, 255, 255, .08);
  --lg-ring: linear-gradient(135deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .22) 18%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .16) 80%, rgba(255, 255, 255, .5) 100%);
  --glass-surface: color-mix(in srgb, var(--color-surface) 34%, transparent);
}
/* No fake reflections */
.btn--primary::before, .btn--whatsapp::before, .pill-btn[aria-selected="true"]::before, .pill-btn.is-selected::before, .nav__link[aria-current="page"]::before, .step__num::before { display: none; }
/* Header: more see-through */
.header { -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
/* Coloured glass */
.btn--primary, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .pill-btn[aria-selected="true"]:hover, .pill-btn.is-selected:hover, .nav__link[aria-current="page"], .drawer__link[aria-current="page"], .step__num {
  background: var(--lg-red); color: var(--c-white); text-shadow: 0 1px 1px rgba(0, 0, 1, .25);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  border-color: transparent; box-shadow: var(--lg-lens), 0 8px 22px rgba(168, 34, 34, .28);
}
.btn--primary:hover { background: var(--lg-red-hover); }
.btn--whatsapp { background: var(--lg-green); color: var(--c-black); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); border-color: transparent; box-shadow: var(--lg-lens), 0 8px 22px rgba(37, 211, 102, .26); }
/* Clear glass */
.btn--secondary, .icon-btn, .rail__arrow, .theme-toggle, .header__burger, .header__back, .pills, .dock__glass {
  background: var(--lg-clear); border-color: transparent; -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-lens), var(--lg-drop);
}
[data-surface="ink"] :is(.btn--secondary, .icon-btn, .rail__arrow, .theme-toggle, .header__burger), :is(.hero, .banner, .cta-band, .section--ink, .footer, .card--glass) :is(.btn--secondary, .icon-btn, .rail__arrow), [data-surface="ink"] .pills {
  background: rgba(255, 255, 255, .10); border-color: transparent; box-shadow: var(--lg-lens), 0 8px 24px rgba(0, 0, 1, .25);
}
/* The rim: a masked gradient ring that follows the rounded edge */
.btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .dock__glass, .pill-btn, .nav__link[aria-current="page"], .step__num { position: relative; }
:is(.btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .dock__glass, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .nav__link[aria-current="page"], .step__num)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.25px; background: var(--lg-ring); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
/* Segmented control: pill-shaped capsule so the red segment sits evenly inside the rim */
.pills { border-radius: var(--radius-pill); padding: 4px; }
.pill-btn { border-radius: var(--radius-pill); }
.hero__copy > .pills-row:last-child { margin: var(--s-2) 0 0; }

/* Phones: long labels wrap inside the button instead of spilling out */
@media (max-width: 640px) {
  .btn { white-space: normal; height: auto; min-height: var(--control-md); padding-block: 10px; line-height: 1.2; }
  .btn--sm { min-height: var(--control-sm); padding-block: 8px; }
  .btn--xs { min-height: var(--control-xs); padding-block: 6px; }
}

/* ===== B19 Glass dock ===== */
.dock { position: fixed; top: calc(var(--header-h) + 10px); left: 0; right: 0; z-index: calc(var(--z-header) - 1); display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transition: opacity .24s var(--ease), transform .28s var(--ease), visibility 0s linear .28s; }
.dock.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .24s var(--ease), transform .28s var(--ease), visibility 0s; }
.dock__glass { position: relative; border-radius: var(--radius-pill); padding: 4px; max-width: 100%; }
.dock.is-on .dock__glass { pointer-events: auto; }
.dock__row { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--radius-pill); }
.dock__row::-webkit-scrollbar { display: none; }
.dock .pill-btn { flex: none; height: 44px; padding-inline: 18px; }
@media (max-width: 640px) { .dock .pill-btn { height: 40px; padding-inline: 14px; font-size: var(--fs-small); } }
.dock-ghost { position: fixed; z-index: calc(var(--z-header) - 1); pointer-events: none; background: var(--lg-clear); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur); box-shadow: var(--lg-lens), var(--lg-drop); border: 1px solid rgba(255, 255, 255, .45); }
/* Dock: frosted enough that labels stay readable over any content scrolling behind it */
.dock__glass { background: color-mix(in srgb, var(--color-surface) 58%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8); }

/* ===== B20 Marketing meeting 6 Oct 2026 ===== */
/* Glass, refined: the rim light wraps the curved corners (conic), the lens glow sits just inside the edge, and the edge itself is soft */
:root {
  --lg-ring: conic-gradient(from 200deg at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .30) 12%, rgba(255, 255, 255, .05) 28%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 52%, rgba(255, 255, 255, .75) 62%, rgba(255, 255, 255, .18) 76%, rgba(255, 255, 255, .04) 88%, rgba(255, 255, 255, .95));
  --lg-lens: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(255, 255, 255, .18), inset 0 0 0 .5px rgba(255, 255, 255, .14), inset 0 0 6px 1px rgba(255, 255, 255, .16), inset 2px 4px 10px -6px rgba(255, 255, 255, .55), inset -2px -4px 10px -6px rgba(255, 255, 255, .30);
  --lg-drop: 0 1px 2px rgba(0, 0, 1, .08), 0 8px 24px rgba(0, 0, 1, .12);
  --lg-blur: blur(16px) saturate(1.9) brightness(1.04);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --lg-ring: conic-gradient(from 200deg at 50% 50%, rgba(255, 255, 255, .70), rgba(255, 255, 255, .18) 12%, rgba(255, 255, 255, .03) 28%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .14) 52%, rgba(255, 255, 255, .5) 62%, rgba(255, 255, 255, .1) 76%, rgba(255, 255, 255, .02) 88%, rgba(255, 255, 255, .70));
} }
:root[data-theme="dark"] {
  --lg-ring: conic-gradient(from 200deg at 50% 50%, rgba(255, 255, 255, .70), rgba(255, 255, 255, .18) 12%, rgba(255, 255, 255, .03) 28%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .14) 52%, rgba(255, 255, 255, .5) 62%, rgba(255, 255, 255, .1) 76%, rgba(255, 255, 255, .02) 88%, rgba(255, 255, 255, .70));
}
/* Cards get the same tempered rim (decision: all cards and page buttons are see-through matte glass) */
.card, .step, .person { border-color: transparent; box-shadow: var(--lg-lens), var(--glass-card-shadow); }
.card:not(.card--featured):not(.card--hero)::after, .step::after, .person::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--lg-ring); pointer-events: none; opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.card, .step, .person { position: relative; }

/* Header buttons stay solid (decision); page buttons are glass */
.header .btn--primary, .drawer__cta .btn--primary, .nav__link[aria-current="page"], .drawer__link[aria-current="page"] {
  background: var(--c-red); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 6px 16px rgba(192, 54, 54, .28);
}
.header .btn--whatsapp, .drawer__cta .btn--whatsapp { background: var(--c-whatsapp); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header .btn::after, .drawer__cta .btn::after, .nav__link[aria-current="page"]::after { display: none; }
.header .btn--primary:hover, .drawer__cta .btn--primary:hover { background: #A82E2E; }

/* Red text was hard to read on clear glass: small accent text moves to gold (deep amber in light mode for contrast) */
:root { --eyebrow-glass: #8A5300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eyebrow-glass: var(--c-gold); } }
:root[data-theme="dark"] { --eyebrow-glass: var(--c-gold); }

/* Button labels never change colour on hover */
.btn--primary:hover, .btn--primary:focus-visible { color: var(--c-white); }
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { color: var(--c-black); }

/* Lists always show real bullets */
.list { list-style: disc; }
.list > li { display: list-item; }
.list > li::marker { color: currentColor; }
ol.list { list-style: decimal; }

/* Logo and stat carousels: one speed everywhere (set in mia-kit.js), more room under the carousel heading */
.banner__eyebrow { margin-bottom: var(--s-5); }

/* Back to top: a small glass button above the WhatsApp button */
.to-top { position: fixed; right: var(--s-5); bottom: calc(var(--s-5) + var(--control-lg) + var(--s-3)); z-index: var(--z-float); width: var(--control-md); height: var(--control-md); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 641px) { .to-top { right: calc(var(--s-5) + 6px); } }
body.has-cookie-bar .to-top { bottom: calc(var(--s-5) + var(--s-10) + var(--control-lg) + var(--s-3)); }
.dock__glass { background: color-mix(in srgb, var(--color-surface) 74%, transparent); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); }

/* ===== B21 Live glass (v3, 7 Oct 2026) =====================================================
   Built like Apple's glass. Each glass element paints nothing itself; two pseudo-elements do the work:
   ::before  the body of the glass: a light tint plus a blur of whatever is behind it.
   ::after   the live rim: a thin ring that samples the page behind it and boosts it (saturate, brighten, sharpen),
             so the edge picks up and bends the colours under it and changes as you scroll. A faint specular sweep sits on top.
   Depth rule: back layers (cards) are the most see-through, controls sit in the middle, floating layers
   (header, dock, menu) are the most frosted, so they hide the words behind them but still show the shapes.
   Plain CSS: backdrop-filter, masks and gradients. Works in Safari and Chrome. */
:root {
  /* backdrop: the Mia box pattern on the brand gradient */
  --page-bg: url("mia-pattern.svg") 0 0 / 1200px auto repeat, linear-gradient(135deg, #F6B02F 0%, #EF882E 38%, #E95722 68%, #C03636 100%);
  --g-back-fill: rgba(255, 255, 255, .26);  --g-back-blur: blur(16px) saturate(1.8);
  --g-mid-fill: rgba(255, 255, 255, .22);   --g-mid-blur: blur(12px) saturate(1.9);
  --g-front-fill: rgba(255, 255, 255, .30); --g-front-blur: blur(28px) saturate(1.9);
  --g-red: rgba(168, 30, 30, .74);  --g-red-hover: rgba(178, 36, 36, .84);
  --g-green: rgba(37, 211, 102, .66);
  --g-rim-filter: blur(.6px) saturate(3) brightness(1.45) contrast(1.15);
  --g-spec: linear-gradient(125deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .12) 22%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .10) 80%, rgba(255, 255, 255, .55) 100%);
  --g-lens: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 12px rgba(255, 255, 255, .14), inset 0 -8px 16px -12px rgba(255, 255, 255, .35);
  --g-drop: 0 1px 1px rgba(0, 0, 1, .06), 0 10px 30px rgba(0, 0, 1, .14);
  --g-rim: 1.5px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page-bg: linear-gradient(rgba(14, 6, 6, .62), rgba(14, 6, 6, .62)), url("mia-pattern.svg") 0 0 / 1200px auto repeat, linear-gradient(135deg, #F6B02F 0%, #EF882E 38%, #E95722 68%, #C03636 100%);
  --g-back-fill: rgba(22, 12, 12, .30); --g-mid-fill: rgba(255, 255, 255, .08); --g-front-fill: rgba(22, 12, 12, .40);
  --g-spec: linear-gradient(125deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 22%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .06) 80%, rgba(255, 255, 255, .35) 100%);
  --g-lens: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 12px rgba(255, 255, 255, .06), inset 0 -8px 16px -12px rgba(255, 255, 255, .18);
} }
:root[data-theme="dark"] {
  --page-bg: linear-gradient(rgba(14, 6, 6, .62), rgba(14, 6, 6, .62)), url("mia-pattern.svg") 0 0 / 1200px auto repeat, linear-gradient(135deg, #F6B02F 0%, #EF882E 38%, #E95722 68%, #C03636 100%);
  --g-back-fill: rgba(22, 12, 12, .30); --g-mid-fill: rgba(255, 255, 255, .08); --g-front-fill: rgba(22, 12, 12, .40);
  --g-spec: linear-gradient(125deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 22%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .06) 80%, rgba(255, 255, 255, .35) 100%);
  --g-lens: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 12px rgba(255, 255, 255, .06), inset 0 -8px 16px -12px rgba(255, 255, 255, .18);
}
body::before { background: var(--page-bg); animation: bg-drift 120s linear infinite; }
@keyframes bg-drift { to { background-position: -1200px 0, -1200px 0, 0 0; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { animation-name: bg-drift-dark; } }
:root[data-theme="dark"] body::before { animation-name: bg-drift-dark; }
@keyframes bg-drift-dark { to { background-position: 0 0, -1200px 0, 0 0; } }

/* Which elements are glass, and at which depth */
.card, .step, .person, .fallback, .form__fallback { --g-fill: var(--g-back-fill); --g-blur: var(--g-back-blur); }
.card--tint, .card--featured, .card--hero, .card--ink { --g-fill: linear-gradient(135deg, rgba(246, 176, 47, .22), rgba(192, 54, 54, .16)), var(--g-back-fill); }
.btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .to-top, .drawer__link { --g-fill: var(--g-mid-fill); --g-blur: var(--g-mid-blur); }
.dock__glass, .drawer__panel, .cookie-bar, .header { --g-fill: var(--g-front-fill); --g-blur: var(--g-front-blur); }
.btn--primary, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .step__num { --g-fill: var(--g-red); --g-blur: var(--g-mid-blur); }
.btn--primary:hover { --g-fill: var(--g-red-hover); }
.btn--whatsapp { --g-fill: var(--g-green); --g-blur: var(--g-mid-blur); }
.btn--secondary:hover, .icon-btn:hover, .theme-toggle:hover, .header__burger:hover, .rail__arrow:hover, .drawer__link:hover { --g-fill: rgba(255, 255, 255, .34); }
[data-surface="ink"] :is(.btn--secondary, .icon-btn, .rail__arrow, .pills), :is(.hero, .banner, .cta-band, .footer) :is(.btn--secondary, .icon-btn, .rail__arrow, .pills) { --g-fill: rgba(255, 255, 255, .10); }

:is(.card, .step, .person, .fallback, .form__fallback, .btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .to-top, .drawer__link, .dock__glass, .drawer__panel, .cookie-bar, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .step__num),
:is(.btn--primary, .btn--whatsapp, .btn--secondary, .pill-btn[aria-selected="true"], .pill-btn.is-selected):hover {
  background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate; box-shadow: var(--g-drop);
}
.header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-bottom-color: transparent; isolation: isolate; }
:is(.card, .step, .person, .fallback, .form__fallback, .btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .to-top, .drawer__link, .dock__glass, .drawer__panel, .cookie-bar, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .step__num) { position: relative; }
.drawer__panel, .cookie-bar { position: fixed; }
.to-top { position: fixed; }

/* the body of the glass */
:is(.card, .step, .person, .fallback, .form__fallback, .btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .to-top, .drawer__link, .dock__glass, .drawer__panel, .cookie-bar, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .step__num, .header)::before {
  content: ""; display: block; position: absolute; inset: var(--g-rim); z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--g-fill); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); box-shadow: var(--g-lens);
  top: var(--g-rim); left: var(--g-rim); right: var(--g-rim); bottom: var(--g-rim); height: auto; width: auto; opacity: 1;
}
.header::before { inset: 0; top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: none; }

/* the live rim */
:is(.card, .step, .person, .fallback, .form__fallback, .btn--primary, .btn--whatsapp, .btn--secondary, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pills, .to-top, .drawer__link, .dock__glass, .drawer__panel, .cookie-bar, .pill-btn[aria-selected="true"], .pill-btn.is-selected, .step__num)::after {
  content: ""; display: block; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 1;
  padding: var(--g-rim); background: var(--g-spec);
  -webkit-backdrop-filter: var(--g-rim-filter); backdrop-filter: var(--g-rim-filter);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.card, .step, .person { --g-rim: 1.5px; }
.btn, .pills, .dock__glass, .pill-btn { --g-rim: 1.75px; }
/* header: a live lens along its bottom edge */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; pointer-events: none;
  -webkit-backdrop-filter: blur(1px) saturate(3) brightness(1.5); backdrop-filter: blur(1px) saturate(3) brightness(1.5);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%); mask: linear-gradient(to bottom, #000 0%, #000 30%, transparent 100%);
}

/* Header buttons stay solid (meeting decision) */
.header .btn--primary, .drawer__cta .btn--primary, .nav__link[aria-current="page"] { --g-fill: var(--c-red); }
.header .btn--whatsapp, .drawer__cta .btn--whatsapp { --g-fill: var(--c-whatsapp); }
.header .btn::before, .drawer__cta .btn::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
.header .btn::after, .drawer__cta .btn::after { display: none; }
.nav__link[aria-current="page"] { background: var(--c-red); }

/* Phone menu: rounded glass pills instead of square rows */
.drawer__panel { padding: var(--s-4); }
.drawer__link { border-radius: var(--radius-pill); padding-inline: var(--s-5); margin-block: 3px; min-height: 48px; }
.drawer__link[aria-current="page"] { --g-fill: var(--g-red); background: transparent; color: var(--c-white); }
.drawer__link[aria-current="page"]::before { background: var(--g-red); }

/* Cards: keep the brand gradient edge on featured cards as a soft tint only */
.card--featured::before, .card--hero::before { padding: 0; -webkit-mask: none; mask: none; }
.dock__row { transition: opacity .14s var(--ease), transform .14s var(--ease); }
.dock__row.is-swapping { opacity: 0; transform: translateY(-4px); }
.dock__row--cta .btn { flex: none; white-space: nowrap; min-height: 0; height: 40px; padding: 0 16px; }
/* Blur radii kept at 14px or less: larger radii are dropped by some browsers on small elements */
:root { --g-back-blur: blur(12px) saturate(1.8); --g-mid-blur: blur(10px) saturate(1.9); --g-front-blur: blur(14px) saturate(1.9); --g-front-fill: rgba(255, 255, 255, .38); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-front-fill: rgba(22, 12, 12, .46); } }
:root[data-theme="dark"] { --g-front-fill: rgba(22, 12, 12, .46); }
.skip-link { position: absolute; }
:root { --g-front-blur: blur(12px) saturate(1.9); --g-front-fill: rgba(255, 255, 255, .42); }
.skip-link.btn { position: absolute; }

/* ===== B22 Glass v4 (7 Oct 2026, after iPhone comparison) ==================================
   Background: back to the brand colour field, with fewer soft gradients and more defined colour shapes
   (like the iOS wallpaper), so the glass has clear edges to bend.
   Rim: the light lives INSIDE the glass. A soft highlight comes in from the top edge (light from above),
   a fainter one from the bottom, and the thin live edge only gently lifts the colour behind it. */
:root {
  --page-bg:
    radial-gradient(120% 70% at 110% 8%, rgba(192, 54, 54, .90) 0 38%, transparent 38.4%),
    radial-gradient(90% 60% at -10% 42%, rgba(246, 176, 47, .92) 0 44%, transparent 44.4%),
    radial-gradient(110% 55% at 105% 72%, rgba(233, 87, 34, .80) 0 40%, transparent 40.4%),
    radial-gradient(80% 50% at 0% 100%, rgba(156, 40, 40, .85) 0 46%, transparent 46.4%),
    linear-gradient(160deg, #F7C66B 0%, #EF882E 55%, #E95722 100%);
  --g-back-fill: rgba(255, 255, 255, .30);   --g-back-blur: blur(12px) saturate(1.5);
  --g-mid-fill: rgba(255, 255, 255, .40);    --g-mid-blur: blur(10px) saturate(1.5);
  --g-front-fill: rgba(255, 255, 255, .52);  --g-front-blur: blur(12px) saturate(1.5);
  --g-red: rgba(160, 30, 30, .88);  --g-red-hover: rgba(172, 34, 34, .92);
  --g-green: rgba(37, 211, 102, .86);
  --g-rim-filter: blur(.8px) saturate(1.35) brightness(1.12);
  --g-spec: linear-gradient(180deg, rgba(255, 255, 255, .70) 0%, rgba(255, 255, 255, .18) 18%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .22) 100%);
  --g-lens: inset 0 2px 3px -1px rgba(255, 255, 255, .75), inset 0 6px 12px -8px rgba(255, 255, 255, .55), inset 0 -2px 3px -1px rgba(255, 255, 255, .30), inset 0 -6px 12px -9px rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .25);
  --g-drop: 0 1px 1px rgba(0, 0, 1, .05), 0 8px 24px rgba(0, 0, 1, .12);
  --g-rim: 1.25px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page-bg:
    radial-gradient(120% 70% at 110% 8%, rgba(120, 24, 24, .95) 0 38%, transparent 38.4%),
    radial-gradient(90% 60% at -10% 42%, rgba(120, 70, 10, .90) 0 44%, transparent 44.4%),
    radial-gradient(110% 55% at 105% 72%, rgba(110, 36, 14, .90) 0 40%, transparent 40.4%),
    radial-gradient(80% 50% at 0% 100%, rgba(70, 14, 20, .95) 0 46%, transparent 46.4%),
    linear-gradient(160deg, #1E0B0B 0%, #2A0E0C 55%, #160606 100%);
  --g-back-fill: rgba(30, 14, 14, .34); --g-mid-fill: rgba(255, 255, 255, .10); --g-front-fill: rgba(24, 10, 10, .58);
  --g-rim-filter: blur(.8px) saturate(1.25) brightness(1.08);
  --g-spec: linear-gradient(180deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .10) 18%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .12) 100%);
  --g-lens: inset 0 2px 3px -1px rgba(255, 255, 255, .35), inset 0 6px 12px -8px rgba(255, 255, 255, .22), inset 0 -2px 3px -1px rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .12);
} }
:root[data-theme="dark"] {
  --page-bg:
    radial-gradient(120% 70% at 110% 8%, rgba(120, 24, 24, .95) 0 38%, transparent 38.4%),
    radial-gradient(90% 60% at -10% 42%, rgba(120, 70, 10, .90) 0 44%, transparent 44.4%),
    radial-gradient(110% 55% at 105% 72%, rgba(110, 36, 14, .90) 0 40%, transparent 40.4%),
    radial-gradient(80% 50% at 0% 100%, rgba(70, 14, 20, .95) 0 46%, transparent 46.4%),
    linear-gradient(160deg, #1E0B0B 0%, #2A0E0C 55%, #160606 100%);
  --g-back-fill: rgba(30, 14, 14, .34); --g-mid-fill: rgba(255, 255, 255, .10); --g-front-fill: rgba(24, 10, 10, .58);
  --g-rim-filter: blur(.8px) saturate(1.25) brightness(1.08);
  --g-spec: linear-gradient(180deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .10) 18%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .12) 100%);
  --g-lens: inset 0 2px 3px -1px rgba(255, 255, 255, .35), inset 0 6px 12px -8px rgba(255, 255, 255, .22), inset 0 -2px 3px -1px rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
body::before { background: var(--page-bg); background-size: 100% 100%; animation: none; }
/* coloured buttons sit in front of cards, so they are the most solid glass on a card */
.card .btn--secondary, .card .pills { --g-fill: rgba(255, 255, 255, .50); }
/* Header: the curved edge light is inside the bottom of the header, not spilling below it */
.header::after {
  top: auto; bottom: 0; height: 10px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(to top, rgba(255, 255, 255, .45) 0, rgba(255, 255, 255, .12) 2px, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: none; mask: none;
}
.header::before { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .35), inset 0 -8px 12px -10px rgba(255, 255, 255, .45); }
/* Audience swap: both variants share one cell, so nothing moves; the switch is a crossfade */
.aud-swap { display: grid; min-width: 0; }
.aud-swap--inline { display: inline-grid; vertical-align: top; }
.aud-swap > .aud-item { grid-area: 1 / 1; min-width: 0; transition: opacity .28s var(--ease), visibility 0s linear 0s; }
.aud-swap > .aud-item.aud-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s var(--ease), visibility 0s linear .28s; }
.aud-fade { transition: opacity .35s var(--ease); }
.aud-fade.aud-off { opacity: 0; }
.hero__actions > .aud-swap, .section__actions > .aud-swap, .cta-band__actions > .aud-swap { justify-items: start; }
/* Hero toggles hug their buttons, like the aligners one, and never run off the screen */
.hero .pills, .hero .pills--stack { width: fit-content; max-width: 100%; }
@media (max-width: 760px) { .hero .pills { display: block; width: fit-content; } .hero .pills .pill-btn { flex: 0 0 auto; } }
/* Logos sit straight on the dark runner: no white tiles */
.banner__logo, .banner__logo--colour, .banner__logo--colour[src$=".png"] { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 6px 10px; }
.banner__logo.logo--knockout { filter: grayscale(1) invert(1) contrast(1.15); mix-blend-mode: screen; }
.banner__logo.logo--whiten { filter: grayscale(1) brightness(0) invert(1); opacity: .9; }
.banner__logo.logo--light { filter: grayscale(1) brightness(1.1); opacity: .95; }
/* the header is the front-most glass while scrolling: frosted enough to hide the words behind it */
.header { --g-fill: rgba(255, 255, 255, .64); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header { --g-fill: rgba(24, 10, 10, .70); } }
:root[data-theme="dark"] .header { --g-fill: rgba(24, 10, 10, .70); }

/* ===== B23 Background, middle ground (7 Oct 2026) =====
   Between the original very soft mesh and the bold shapes: large, calm colour fields on a light base.
   Edges are soft but still defined enough for the glass to have something to bend. */
:root {
  --page-bg:
    radial-gradient(75% 55% at 100% 0%, rgba(233, 87, 34, .42) 0 28%, rgba(233, 87, 34, 0) 62%),
    radial-gradient(70% 60% at 0% 38%, rgba(246, 176, 47, .48) 0 30%, rgba(246, 176, 47, 0) 64%),
    radial-gradient(70% 55% at 100% 72%, rgba(239, 136, 46, .38) 0 26%, rgba(239, 136, 46, 0) 60%),
    radial-gradient(65% 50% at 0% 100%, rgba(192, 54, 54, .34) 0 26%, rgba(192, 54, 54, 0) 60%),
    linear-gradient(180deg, #FBF6F1 0%, #F8EFE7 100%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page-bg:
    radial-gradient(75% 55% at 100% 0%, rgba(192, 54, 54, .38) 0 28%, rgba(192, 54, 54, 0) 62%),
    radial-gradient(70% 60% at 0% 38%, rgba(246, 176, 47, .22) 0 30%, rgba(246, 176, 47, 0) 64%),
    radial-gradient(70% 55% at 100% 72%, rgba(233, 87, 34, .26) 0 26%, rgba(233, 87, 34, 0) 60%),
    radial-gradient(65% 50% at 0% 100%, rgba(150, 36, 36, .34) 0 26%, rgba(150, 36, 36, 0) 60%),
    linear-gradient(180deg, #140A0A 0%, #1B0C0B 100%);
} }
:root[data-theme="dark"] {
  --page-bg:
    radial-gradient(75% 55% at 100% 0%, rgba(192, 54, 54, .38) 0 28%, rgba(192, 54, 54, 0) 62%),
    radial-gradient(70% 60% at 0% 38%, rgba(246, 176, 47, .22) 0 30%, rgba(246, 176, 47, 0) 64%),
    radial-gradient(70% 55% at 100% 72%, rgba(233, 87, 34, .26) 0 26%, rgba(233, 87, 34, 0) 60%),
    radial-gradient(65% 50% at 0% 100%, rgba(150, 36, 36, .34) 0 26%, rgba(150, 36, 36, 0) 60%),
    linear-gradient(180deg, #140A0A 0%, #1B0C0B 100%);
}
body::before { background: var(--page-bg); background-size: 140% 140%; animation: mesh-drift 60s ease-in-out infinite alternate; }

/* ===== B24 Segmented controls: always one row, at every screen size =====
   If all the options fit, the capsule hugs them. If they do not fit (any width, phone to desktop),
   it becomes the swipe slider. It never wraps onto a second line. */
.pills-row { display: block; }
.pills, .pills--stack { display: block; position: relative; width: fit-content; max-width: 100%; padding: 0; overflow: hidden; }
.pills__track { display: flex; flex-wrap: nowrap; gap: var(--s-1); padding: var(--s-1); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pills__track::-webkit-scrollbar { display: none; }
.pills .pill-btn, .pills .pill-btn:last-child:nth-child(odd) { flex: 0 0 auto; width: auto; grid-column: auto; white-space: nowrap; }
.pills.is-swipe { width: 100%; }
.pills.is-swipe .pills__track { scroll-snap-type: x mandatory;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 40px), transparent 100%); }
.pills.is-swipe .pill-btn { scroll-snap-align: start; }
.pills-swipe-hint { display: flex; align-items: center; justify-content: flex-start; gap: var(--s-2); margin: var(--s-3) 0 0; padding-left: var(--s-4); font-size: var(--fs-micro); color: var(--color-text-muted); letter-spacing: var(--ls-label); text-transform: uppercase; transition: opacity .4s; }
[data-surface="ink"] .pills-swipe-hint { color: var(--on-ink-muted); }
.pills-swipe-hint.is-off { display: none; }
.pills-swipe-hint.is-done { opacity: 0; }
.pills-swipe-hint svg { width: 14px; height: 14px; animation: pills-swipe 1.6s ease-in-out infinite; }
.pills-swipe-hint svg:first-child { animation-direction: reverse; }
/* Selected segment keeps a clear gap inside the glass on every side, including when it rests against the left wall */
.pills__track { padding: 6px; }
.pills.is-swipe .pills__track { scroll-padding-inline: 6px; }
.dock__glass { padding: 5px; }
.dock__row { padding: 1px; }
.pill-btn { transition: transform var(--dur-fast) var(--ease), background-color var(--dur-base) var(--ease); }
/* Floating layers keep their fixed position (the glass rule sets position: relative on glass elements) */
.drawer .drawer__panel.drawer__panel { position: fixed; top: var(--s-2); right: var(--s-2); bottom: var(--s-2); left: auto; }
.cookie-bar.cookie-bar[data-cookie-bar] { position: fixed; }
.to-top.to-top.icon-btn { position: fixed; }
/* Menu open: the page stays sharp behind it; only a light tint shows the menu is on top */
.drawer__overlay { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 1, .18); }

/* B25 logo clean: tile removed in canvas, ink drawn white. No surround on any logo. */
.banner__logo.logo--clean { filter: none; mix-blend-mode: normal; opacity: .92; background: none; border: 0; box-shadow: none; }
.banner__logo.banner__logo--colour { background: none; border: 0; box-shadow: none; }
.banner__name { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.banner__name::before, .banner__name::after { content: none; }

/* B26 dock drum: fixed-size glass, the buttons roll with the scroll */
.dock__row.dock__row--drum { display: block; position: relative; height: 42px; padding: 0; overflow: hidden; perspective: 360px; border-radius: var(--radius-pill); transition: none; max-width: none; }
.drum-face { position: absolute; inset: 0; display: flex; gap: 6px; align-items: stretch; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; }
.drum-face .btn { flex: 1 1 0; min-width: 0; height: 42px; min-height: 0; padding: 0 12px; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .drum-face { transition: none; } }
.drum-face .btn { font-size: var(--fs-small); padding: 0 10px; gap: 6px; }
.drum-face { gap: 4px; }
.drum-face .btn { padding: 0 6px; letter-spacing: -0.01em; }
.drum-face .btn .icon { width: 16px; height: 16px; flex: none; }

/* B27 review fixes (8 Oct 2026)
   1. The WhatsApp float must stay fixed: the B21 glass rule sets position: relative with higher specificity.
   2. Phones: the float is a round 56px icon button (B18 .btn height:auto made it an oval).
   3. Keyboard focus ring must show on glass controls (the B21 drop shadow was hiding it). */
.btn.whatsapp-float.whatsapp-float { position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: var(--z-float); }
body.has-cookie-bar .btn.whatsapp-float.whatsapp-float { bottom: calc(var(--s-5) + var(--s-10)); }
@media (max-width: 640px) { .btn.whatsapp-float.whatsapp-float { width: var(--control-lg); height: var(--control-lg); min-height: 0; padding: 0; border-radius: 50%; } }
:is(.btn, .icon-btn, .theme-toggle, .header__burger, .rail__arrow, .pill-btn, .nav__link, .drawer__link):focus-visible:focus-visible { box-shadow: var(--focus-ring), var(--g-drop); }

/* B28 dock drum labels: a label never spills out of its button or the glass */
.drum-face .btn { overflow: hidden; }
.drum-face .btn__label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drum-face.is-tight { gap: 3px; }
.drum-face.is-tight .btn { font-size: 12px; padding: 0 4px; gap: 4px; letter-spacing: -0.015em; }
.drum-face.is-tight .btn .icon { width: 14px; height: 14px; }

/* B29 audience-aware menu CTA and float: the header button sits flush right, the drawer button stays full width */
.header__actions > .aud-swap { justify-items: end; align-items: center; }
.drawer__cta > .aud-swap { display: grid; justify-items: stretch; }

/* B30 uniform toggles, swipe rows, dock jump row, cookie switches, layout helpers */
/* Two-option toggles look the same on every page; a row that still does not fit becomes a swipe row that bounces (no text hint) */
.pills-swipe-hint, .pills-swipe-hint.is-off { display: none !important; }
@media (max-width: 640px) { .hero .pills .pill-btn { padding-inline: 14px; font-size: var(--fs-small); } }
.pills.is-compact .pill-btn { padding-inline: 12px; font-size: var(--fs-small); }
/* Dock tabs: smaller first, then a swipe row with soft edges so a cut label reads as "more this way" */
.dock__row.is-compact .pill-btn { padding-inline: 12px; font-size: var(--fs-small); }
.dock__row.is-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
/* Drum face that lists the cards of a [data-dock-nav] block: swipe it, tap a pill to jump to that card */
.drum-face.drum-face--nav { display: block; }
.drum-nav { display: flex; gap: 4px; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: var(--radius-pill); }
.drum-nav::-webkit-scrollbar { display: none; }
.drum-nav .pill-btn { flex: 0 0 auto; height: 42px; min-height: 0; padding: 0 14px; font-size: var(--fs-small); white-space: nowrap; }
/* Cookie choices: Essential is always on, Analytics is a switch */
.cookie-bar__choices { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); flex: 1 1 100%; }
.switch-row { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--color-text); cursor: pointer; }
.switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-line); cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28); transition: transform .2s var(--ease); }
.switch:checked { background: var(--c-red); border-color: var(--c-red); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .55; cursor: not-allowed; }
.switch:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* While the cookie bar is open on smaller screens, the float and back-to-top sit above it */
@media (max-width: 900px) {
  body.has-cookie-bar .btn.whatsapp-float.whatsapp-float { bottom: calc(var(--cookie-h, 0px) + var(--s-4) + var(--s-3)); }
  body.has-cookie-bar .to-top.to-top.icon-btn { bottom: calc(var(--cookie-h, 0px) + var(--s-4) + var(--s-3) + var(--control-lg) + var(--s-3)); }
}
/* Four hero buttons sit in an even two by two grid */
.hero__actions.hero__actions--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: fit-content; max-width: 100%; }
.hero__actions--grid .btn { width: 100%; }
@media (max-width: 640px) { .hero__actions.hero__actions--grid { grid-template-columns: 1fr; width: 100%; } }
/* A lone last card in a three-column grid spans the row */
@media (min-width: 761px) { .grid-3 > .card--span { grid-column: 1 / -1; } .card--span .card__media { aspect-ratio: 21 / 7; } }
/* Long-form text (articles, legal) sits in one glass card */
.card--prose { padding: var(--s-7); }
.card--prose .prose { max-width: var(--measure); margin-inline: auto; }
@media (max-width: 640px) { .card--prose { padding: var(--s-5); } }
/* A form that is not already inside a card gets its own glass card */
.form-card { align-self: stretch; }
/* B31 phones: the header hides on scroll down and returns on scroll up; the dock takes its place at the top */
@media (max-width: 760px) {
  .header { transition: transform .3s var(--ease); will-change: transform; }
  body.header-hidden .header { transform: translateY(calc(-100% - 2px)); }
  .dock { transition: opacity .24s var(--ease), transform .28s var(--ease), top .3s var(--ease), visibility 0s linear .28s; }
  .dock.is-on { transition: opacity .24s var(--ease), transform .28s var(--ease), top .3s var(--ease), visibility 0s; }
  body.header-hidden .dock { top: calc(env(safe-area-inset-top, 0px) + 10px); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .header, .dock { transition: none; } }
