/* =============================================================================
   BeneBounce marketing site — shared stylesheet
   Self-contained, offline/CSP-clean (no external fonts, images, or imports).
   DARK BY DEFAULT (Jeff, 2026-09-09): the bare :root carries the dark palette,
   so an unconfigured visitor sees dark. prefers-color-scheme does not decide.
   Light is opt-in — the toggle stamps [data-theme="light"] on <html> and
   assets/js/site.js persists the choice in localStorage.
   Brand tokens sourced from docs/brand/tokens.json.
   ========================================================================== */

/* ---- Minimal reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(button) { cursor: pointer; }

/* ---- Brand tokens (fixed) + light semantic defaults ---------------------- */
:root {
  /* Brand palette (docs/brand/tokens.json) */
  --blue-700: #054078;
  --blue-600: #036AC0;
  --blue-500: #0080D8;
  --blue-400: #38A3F0;
  --blue-50:  #E9F4FC;
  --orange-600: #C85400;
  --orange-500: #F87000;
  --orange-300: #FF9A40;
  --orange-50:  #FFEEDD;
  --green-700: #0E7A5F;
  --green-500: #159876;
  --green-50:  #E4F7EF;
  --lime-500:  #7AD339;
  --ink:   #14243A;
  --slate: #475569;
  --mist:  #94A3B8;
  --cloud: #E2E8F0;
  --paper: #F7FAFC;
  --white: #FFFFFF;

  /* Signature gradient (hero rule / progress) */
  --grad-signature: linear-gradient(90deg, #0080D8 0%, #159876 55%, #7AD339 100%);
  --grad-warm: linear-gradient(90deg, #F87000, #FF9A40);

  /* Type (AB#1535): Inter when the visitor has it installed, otherwise the platform's own UI face.
     No web-font fetch: the CSP (staticwebapp.config.json) is font-src 'self' and we ship no font. */
  --font-display: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
                  BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Motion (AB#1535): one duration for every theme/hover change; prefers-reduced-motion below
     collapses it to nothing. */
  --t-theme: 0.3s ease;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-pill: 999px;

  /* Semantic — DARK is THE default (Jeff, 2026-09-09). An unconfigured visitor
     gets dark; prefers-color-scheme does NOT decide. Light is an opt-in that the
     theme toggle stamps as [data-theme="light"] and persists in localStorage.
     THE THEME TOKEN SET is everything between the @theme-tokens markers. The light block
     below must define exactly the same names (website/api/tests/test_site_theme_system.py),
     and every text/background pair drawn from them is measured for WCAG AA in both themes
     by scripts/website/theme_contrast.py — against the page gradient's darkest AND lightest
     stops and against the glass card's effective colour over each. */
  /* @theme-tokens:start */
  --bg: #0B1620;
  --bg-alt: rgba(15, 30, 43, 0.62);
  --surface: #12222F;
  --surface-2: #16293A;
  --text: #EAF2F8;
  --text-muted: #A9BED0;
  --border: #24384A;
  --link: var(--blue-400);
  --link-hover: #7FC0F6;
  --nav-bg: rgba(11, 22, 32, 0.86);
  --hero-bg: rgba(15, 34, 51, 0.62);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.55);
  --focus: var(--orange-300);

  /* Forms and status messages, shared by every form page (intake, book, meet,
     partner docs) so none of them needs a theme rule of its own (AB#1531).
     AA on the dark default: info text 7.63:1 and error text 7.04:1 on
     --surface-2, error text 7.68:1 on --surface; field border 3.5:1 against
     --surface and 3.94:1 against --bg (WCAG 1.4.11 needs 3:1). */
  --msg-info-bg: var(--surface-2);
  --msg-info-text: #7FC0F6;
  --msg-error-bg: var(--surface-2);
  --msg-error-text: var(--orange-300);
  --field-border: #5B7890;
  --field-bg: #0B1620;

  /* AB#1535 — page gradient, glass surfaces, the toggle. The gradient's first stop IS --bg, so
     the solid fallback (background-color) and the gradient agree where it starts. Its lightest
     stop is held dark enough that --link keeps 4.5:1 on it (the reference's #2c5364 does not). */
  --page-grad-from: #0B1620;
  --page-grad-mid: #0F2231;
  --page-grad-to: #152E42;
  --glass-bg: rgba(22, 41, 58, 0.72);
  --glass-border: rgba(169, 190, 208, 0.16);
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  --glass-shadow-hover: 0 16px 44px rgba(0, 0, 0, 0.5);
  --glass-solid: #16293A;
  --accent: var(--blue-400);
  --accent-hover: #7FC0F6;
  --eyebrow: var(--lime-500);
  /* @theme-tokens:end */

  color-scheme: dark;
}

/* ---- Light: opt-in only ------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-alt: rgba(247, 250, 252, 0.7);
  --surface: #FFFFFF;
  --surface-2: var(--paper);
  --text: var(--ink);
  --text-muted: var(--slate);
  --border: var(--cloud);
  --link: var(--blue-600);
  --link-hover: var(--blue-700);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --hero-bg: rgba(233, 244, 252, 0.7);
  --shadow-sm: 0 1px 2px rgba(20, 36, 58, 0.06), 0 1px 3px rgba(20, 36, 58, 0.08);
  --shadow-md: 0 6px 18px rgba(20, 36, 58, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 36, 58, 0.16);
  --focus: var(--orange-600);

  /* AA on light: info 9.35:1; error 5.08:1 on --orange-50 and 5.76:1 on white
     (--orange-600 was 3.92:1 on --orange-50); field border 3.28:1 on --paper. */
  --msg-info-bg: var(--blue-50);
  --msg-info-text: var(--blue-700);
  --msg-error-bg: var(--orange-50);
  --msg-error-text: #A84A00;
  --field-border: #7A8CA3;
  --field-bg: #FFFFFF;

  --page-grad-from: #F7FAFC;
  --page-grad-mid: #EEF5FB;
  --page-grad-to: #E7F1FA;   /* #E2EEF8 measured 4.49:1 for --eyebrow: held lighter */
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(20, 36, 58, 0.10);
  --glass-shadow: 0 10px 34px rgba(20, 36, 58, 0.10);
  --glass-shadow-hover: 0 16px 44px rgba(20, 36, 58, 0.16);
  --glass-solid: #FFFFFF;
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --eyebrow: var(--green-700);

  color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  /* AB#1535: the soft page gradient over a solid --bg fallback (also what a contrast checker
     reading background-color sees). It spans the whole document (not background-attachment:
     fixed, which iOS ignores and which ends in a hard band below the first screen). */
  background-color: var(--bg);
  background-image: linear-gradient(135deg, var(--page-grad-from) 0%, var(--page-grad-mid) 50%, var(--page-grad-to) 100%);
  color: var(--text);
  transition: background-color var(--t-theme), color var(--t-theme);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 2.875rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.375rem); }
p { color: var(--text); }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.25rem); color: var(--text-muted); }

a { color: var(--link); text-decoration: none; transition: color var(--t-theme); }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); }
.section { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); }
.section--alt { background: var(--bg-alt); }
main { flex: 1 0 auto; }
/* AA: --green-500 on light grounds is 3.25:1 at this size; --green-700 is 5.29:1. */
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 0.5rem;
}
.section__head { max-width: 62ch; margin-bottom: 2rem; }
.text-center { text-align: center; }
.center-head { margin-inline: auto; text-align: center; }

/* Signature gradient rule */
.grad-rule { height: 5px; border: 0; border-radius: var(--r-pill); background: var(--grad-signature); }
.grad-rule--wide { width: 100%; }

/* ---- Accessibility ------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--r-sm); transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; text-decoration: none; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Placeholders at the muted text colour in both themes (9.53:1 on the dark --bg),
   rather than each browser's own default grey. */
::placeholder { color: var(--text-muted); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.72rem 1.3rem; border-radius: var(--r-pill);
  border: 2px solid transparent; text-decoration: none; line-height: 1.1;
  transition: transform 0.2s ease, box-shadow var(--t-theme), background-color var(--t-theme),
              color var(--t-theme), border-color var(--t-theme);
}
/* Micro-interaction (AB#1535): an accent shift plus a small lift, never more than 1.05. */
.btn:hover { text-decoration: none; transform: translateY(-1px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.99); }
/* AA: white on --blue-500 is 4.13:1 (fails). --blue-600 is 5.49:1. */
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-md); }
/* AA: white on --orange-500 is only 2.87:1. Ink on the same orange is 5.44:1,
   and orange-300 on dark keeps the accent bright without losing the ratio. */
.btn--accent { background: var(--orange-500); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--accent:hover { background: var(--orange-300); color: var(--ink); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--border); }
.btn--ghost:hover { background: var(--glass-bg); color: var(--link-hover); border-color: var(--accent); }
.btn--lg { font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header, .site-head {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-theme), border-color var(--t-theme);
}
/* The fixed theme toggle owns the top-right corner. Below the width at which the 1140px
   container leaves room beside it, headers keep their right edge clear of it. */
@media (max-width: 1280px) {
  .site-header .nav, .site-head .container { padding-right: 56px; }
}
/* On a phone the form pages' header tag would wrap beside the brand; the card's eyebrow already
   says the same thing. */
@media (max-width: 520px) { .site-head .head-tag { display: none; } }
.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: 66px; padding-block: 0.5rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.55rem; flex: 0 0 auto; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand:hover { text-decoration: none; }
.nav__brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.nav__spacer { flex: 1 1 auto; }
.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.nav__links a:hover { background: var(--surface-2); color: var(--link); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--blue-600); font-weight: 600; }
:root:not([data-theme="light"]) .nav__links a[aria-current="page"] { color: var(--blue-400); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--blue-400); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---- Theme toggle: ONE component, every page (AB#1535) --------------------
   A fixed top-right round glass button. Its markup is identical on every page and ships
   `hidden`; assets/js/site.js reveals it, so a visitor without JavaScript never meets a
   button that cannot work. The icon shows the CURRENT theme (moon in the dark default, sun
   in light) and the aria-label names what a click does. The two icons
   cross-fade with a turn; prefers-reduced-motion (above) collapses that to an instant swap. */
.theme-toggle {
  position: fixed; top: 11px; right: clamp(0.75rem, 1.5vw, 1.25rem); z-index: 160;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg); color: var(--text);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: background-color var(--t-theme), color var(--t-theme), border-color var(--t-theme),
              box-shadow var(--t-theme), transform 0.2s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--glass-bg); color: var(--accent); border-color: var(--accent);
                      box-shadow: var(--glass-shadow-hover); transform: scale(1.05); }
.theme-toggle:active { transform: scale(0.97); }
/* The icons are CSS masks painted in currentColor, not inline SVG: the markup stays one short
   identical line on every page and no page pastes vector code (the booking page forbids it). */
.theme-toggle__icon {
  grid-area: 1 / 1; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle__sun {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}
.theme-toggle__moon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}
@media (forced-colors: active) {
  .theme-toggle__icon { forced-color-adjust: none; background-color: ButtonText; }
}
/* The icon shows the CURRENT theme, per Jeff's reference: moon while dark (the default), sun
   while light. The aria-label says what a click does ("Switch to light theme"). */
.theme-toggle .theme-toggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root[data-theme="light"] .theme-toggle .theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="light"] .theme-toggle .theme-toggle__sun { opacity: 1; transform: rotate(0deg) scale(1); }

.nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-sm);
    background: transparent; border: 1px solid var(--border); color: var(--text);
  }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__menu {
    position: fixed; inset: 66px 0 auto 0;
    display: none; flex-direction: column; gap: 0.75rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1rem, 5vw, 2rem) 1.5rem; box-shadow: var(--shadow-md);
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__links a { padding: 0.7rem 0.8rem; font-size: 1.05rem; }
  .nav__actions { justify-content: flex-start; gap: 0.6rem; margin-top: 0.5rem; }
  .nav__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (min-width: 901px) {
  .nav__menu { display: flex !important; align-items: center; gap: 1rem; flex: 1 1 auto; }
  .nav__actions { margin-left: auto; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: var(--grad-signature);
}
.hero__inner { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__aside { display: flex; justify-content: center; }
/* Heroes that carry no aside: one centred column, so removing the aside leaves a
   deliberate composition rather than a hole in the right half. */
.hero__grid--solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero__grid--solo .hero__copy { max-width: 62ch; }
.hero__grid--solo .grad-rule { margin-inline: auto; }
.hero__grid--solo .hero__cta { justify-content: center; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero__aside { order: -1; } }

/* Hero snapshot card — a labelled illustrative roll-up, NOT a chat.
   No mock conversation lives anywhere in this stylesheet, and no chat message
   is drawn by the page: every message in the concierge comes from the agent. */
.snapshot { width: 100%; max-width: 380px; overflow: hidden; }
.snapshot__bar {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1rem; color: #fff; background: var(--blue-700);
  border-bottom: 3px solid transparent;
  border-image: var(--grad-signature) 1;
}
.snapshot__bar strong { font-family: var(--font-display); font-weight: 600; }
.snapshot__list { list-style: none; margin: 0; padding: 1rem; display: grid; gap: 0.6rem; }
.snapshot__list li {
  padding: 0.6rem 0.85rem; border-radius: var(--r-sm); font-size: 0.92rem;
  background: var(--surface-2); color: var(--text);
}
.snapshot__foot { padding: 0 1rem 1rem; font-size: 0.78rem; color: var(--text-muted); }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---- Glass surfaces (AB#1535) ---------------------------------------------
   Translucent background + backdrop blur + 16px radius + soft shadow. Where backdrop-filter is
   unsupported the surface falls back to the SOLID --glass-solid, so text never sits on an
   unblurred ground busier than the one its contrast was measured on. A page opts a surface in
   with class="glass"; the shared card-like components are glass by default. */
.glass, .card, .step, .faq details, .snapshot {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background-color var(--t-theme), border-color var(--t-theme),
              box-shadow var(--t-theme), color var(--t-theme), transform 0.2s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .step, .faq details, .snapshot { background: var(--glass-solid); }
}
.card { padding: 1.5rem; }
/* A single glass panel holding a page's whole message (the confirmation pages). */
.glass-panel { max-width: 760px; padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); }
.card--link { display: flex; flex-direction: column; gap: 0.65rem; }
a.card:hover, .card--link:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--glass-shadow-hover); border-color: var(--accent); text-decoration: none; }
.card__more { margin-top: auto; font-weight: 600; color: var(--link); font-family: var(--font-display); }
a.card:hover .card__more { text-decoration: underline; }

.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue-600); margin-bottom: 0.9rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--green { background: var(--green-50); color: var(--green-700); }
.card__icon--orange { background: var(--orange-50); color: var(--orange-600); }
:root:not([data-theme="light"]) .card__icon { background: rgba(3, 106, 192, 0.18); color: var(--blue-400); }
:root:not([data-theme="light"]) .card__icon--green { background: rgba(21, 152, 118, 0.2); color: var(--lime-500); }
:root:not([data-theme="light"]) .card__icon--orange { background: rgba(248, 112, 0, 0.18); color: var(--orange-300); }

/* Path cards (home) get a top accent bar keyed to audience */
.path-card { position: relative; overflow: hidden; }
.path-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-signature); }

/* ---- Steps (how it works) ------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--grad-signature); color: #fff;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 0.85rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); }

/* ---- Feature list -------------------------------------------------------- */
.feature-list { display: grid; gap: 0.9rem; }
.feature-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.feature-list .tick {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.feature-list .tick svg { width: 14px; height: 14px; }
:root:not([data-theme="light"]) .feature-list .tick { background: rgba(21, 152, 118, 0.22); color: var(--lime-500); }
.feature-list strong { color: var(--text); }
.feature-list span.desc { color: var(--text-muted); }

/* ---- Split / two-column content ----------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---- Concierge teaser band ---------------------------------------------- */
.teaser {
  background: var(--blue-700);
  background-image: radial-gradient(1200px 400px at 15% -20%, rgba(122,211,57,0.25), transparent 60%),
                    radial-gradient(900px 380px at 100% 120%, rgba(21,152,118,0.35), transparent 60%);
  color: #fff; border-radius: var(--r-md); padding: clamp(1.75rem, 1.2rem + 3vw, 3rem);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center;
}
.teaser h2 { color: #fff; }
.teaser p { color: rgba(255,255,255,0.9); }
.teaser .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.teaser .btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.teaser--solo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.teaser--solo > * { max-width: 72ch; }
.teaser--solo .hero__cta { justify-content: center; }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; } }

/* ---- Badges / pills ------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600; font-family: var(--font-display);
  padding: 0.28rem 0.7rem; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green-700);
}
.badge--blue { background: var(--blue-50); color: var(--blue-600); }
.badge--lime { background: var(--lime-500); color: var(--ink); }
:root:not([data-theme="light"]) .badge { background: rgba(21,152,118,0.2); color: var(--lime-500); }
:root:not([data-theme="light"]) .badge--blue { background: rgba(3,106,192,0.2); color: var(--blue-400); }
:root:not([data-theme="light"]) .badge--lime { background: var(--lime-500); color: var(--ink); }

/* ---- FAQ (details/summary) ---------------------------------------------- */
.faq { display: grid; gap: 0.75rem; max-width: 820px; }
.faq details { padding: 0.25rem 1.1rem; }
.faq summary {
  list-style: none; cursor: pointer; padding: 0.95rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue-500); line-height: 1;
  flex: 0 0 auto; transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 0 1rem; color: var(--text-muted); }

/* ---- Notes / callouts ---------------------------------------------------- */
.note {
  border-left: 4px solid var(--blue-500);
  background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.25rem; color: var(--text-muted); font-size: 0.95rem;
}
.note strong { color: var(--text); }
.note--green { border-left-color: var(--green-500); }
.note--orange { border-left-color: var(--orange-500); }

/* ---- Stats --------------------------------------------------------------- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: var(--blue-600); }
:root:not([data-theme="light"]) .stat__num { color: var(--blue-400); }
.stat__label { color: var(--text-muted); font-size: 0.92rem; }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { padding-block: 1rem 0; }
/* The breadcrumb <ol> is intentionally class-less, so the ol[class] reset above
   does not reach it — reset the list markers/indent here so no "1. 2." shows. */
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb li::after { content: "/"; margin-left: 0.4rem; color: var(--mist); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 2rem;
               transition: background-color var(--t-theme), border-color var(--t-theme); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 30px; margin-bottom: 0.85rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 34ch; }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.85rem; font-family: var(--font-display); }
.footer__col ul { display: grid; gap: 0.5rem; }
.footer__col a { color: var(--text); font-size: 0.94rem; }
.footer__col a:hover { color: var(--link); }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.footer__bottom .disclaimer { max-width: 70ch; }

/* ---- Chat launcher (fixed, every page) ---------------------------------- */
.bb-chat { --bb-ms-header: 48px; position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 150; }
.bb-chat__fab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.25rem; border: 0; border-radius: var(--r-pill);
  background: var(--grad-signature); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-lg);
}
.bb-chat__fab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.bb-chat__fab svg { width: 22px; height: 22px; }
.bb-chat__fab .bb-chat__fab-label { white-space: nowrap; }
@media (max-width: 480px) { .bb-chat__fab .bb-chat__fab-label { display: none; } .bb-chat__fab { padding: 0.85rem; } }

.bb-chat__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.75rem);
  width: min(92vw, 360px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden;
}
.bb-chat__panel[hidden] { display: none; }
/* AA: white text on the signature gradient falls to 1.87:1 at the lime end.
   Solid --blue-700 is 10.4:1; the gradient stays as the rule beneath. */
.bb-chat__panel-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; color: #fff; background: var(--blue-700); border-bottom: 3px solid transparent; border-image: var(--grad-signature) 1; }
.bb-chat__panel-bar strong { font-family: var(--font-display); flex: 1 1 auto; }
.bb-chat__close { background: transparent; border: 0; color: #fff; width: 32px; height: 32px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; }
.bb-chat__close:hover { background: rgba(255,255,255,0.2); }
.bb-chat__close svg { width: 18px; height: 18px; }
/* ONE HEADER, ONE SCROLL AREA (owner, 2026-10-29, AB#2638). Our bar above (brand and close) is the
   only header. The hosted webchat in the iframe draws its own, which this page cannot style, so the
   wrapper CLIPS it: the iframe is moved up by --bb-ms-header and made that much taller, and the
   wrapper hides the overflow. The body does not scroll (a fixed height the wrapper fills), so the
   chat's own scrollbar is the only one. --bb-ms-header (defined on .bb-chat above) is the height of
   the hosted header; it is an estimate (48px, from the owner's screenshot) to be tuned from the
   deployed page. /m/ carries the same variable and rule in its own inline style;
   test_chat_window_2638.py pins that the two agree. */
.bb-chat__panel-body { padding: 0; display: flex; flex-direction: column; height: min(70vh, 520px); overflow: hidden; }
.bb-chat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 3px rgba(122, 211, 57, 0.35); }
.bb-chat__frame-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.bb-chat__frame { position: absolute; left: 0; top: calc(-1 * var(--bb-ms-header)); width: 100%; height: calc(100% + var(--bb-ms-header)); border: 0; background: var(--surface); }

/* ---- Form fields (AB#1535) --------------------------------------------------
   Shared field states for every form page (a container carries class="field-ui"): a SOLID
   field ground, never glass, so typed text keeps its measured contrast; an accent border on
   hover; a focus ring; the error colour when aria-invalid. Field sets and validation stay in
   each page. */
.field-ui input:not([type=radio]):not([type=checkbox]), .field-ui select, .field-ui textarea {
  background: var(--field-bg); color: var(--text); border: 1px solid var(--field-border);
  transition: border-color var(--t-theme), box-shadow var(--t-theme),
              background-color var(--t-theme), color var(--t-theme);
}
.field-ui input:not([type=radio]):not([type=checkbox]):hover,
.field-ui select:hover, .field-ui textarea:hover { border-color: var(--accent); }
.field-ui input:focus-visible, .field-ui select:focus-visible, .field-ui textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}
/* Same selector shape as the field rule above, so the error border wins on specificity. */
.field-ui input[aria-invalid=true]:not([type=radio]):not([type=checkbox]),
.field-ui select[aria-invalid=true], .field-ui textarea[aria-invalid=true] {
  border-color: var(--msg-error-text);
}
.field-ui [aria-invalid=true]:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--msg-error-text) 24%, transparent);
}
.field-ui input[type=radio], .field-ui input[type=checkbox] { accent-color: var(--accent); }

/* ---- Utility ------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--text-muted); }
.hero__aside .snapshot { margin: 0; }
