/* ==========================================================================
   Micah Financial Services — Design System
   Derived from the Website & Digital Growth Strategy Report.
   Fraunces (display) + Public Sans (UI/body) · Navy authority + gold trust.
   No external JS/CSS libraries. Built for South African mobile-data reality.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — navy scale */
  --navy-950: #0a1530;
  --navy-900: #0e1c3d;
  --navy-800: #152a52;
  --navy-700: #1e3a6b;
  --blue-600: #2c4f95;
  --blue-500: #3d67b8;
  --blue-200: #b9cbe9;
  --blue-100: #dbe5f5;
  --blue-050: #eff4fc;

  /* Brand — gold scale.
     gold-700 is the only gold safe for text on light (4.7:1).
     gold-500 is for borders/rules, gold-300 for text on navy (8.8:1). */
  --gold-700: #8c6420;
  --gold-500: #b98f4a;
  --gold-300: #d9b876;
  --gold-100: #f3e7cf;

  /* Neutrals */
  --paper: #eef1f7;
  --card: #e7edf7;
  --card-alt: #f4f7fb;
  --white: #ffffff;
  --ink: #152038;
  --muted: #5a6478;
  --steel-600: #525a68;
  --steel-400: #8992a3;
  --line: #c9d4e6;
  --line-soft: #dbe2ef;

  /* Semantic */
  --color-bg: var(--paper);
  --color-surface: var(--white);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-primary: var(--blue-600);
  --color-accent: var(--gold-700);
  --color-border: var(--line);
  --color-focus: #1a4fd6;
  --color-danger: #b3261e;
  --color-success: #17614a;

  /* WhatsApp — darkened from brand green to reach 5.0:1 with white text */
  --wa: #0f7d6a;
  --wa-dark: #0b6153;

  /* Shape */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;

  /* Elevation — one consistent scale, no ad-hoc shadows */
  --shadow-1: 0 1px 2px rgba(14, 28, 61, .06), 0 2px 6px -2px rgba(14, 28, 61, .08);
  --shadow-2: 0 6px 16px -8px rgba(14, 28, 61, .22), 0 2px 6px -3px rgba(14, 28, 61, .12);
  --shadow-3: 0 18px 40px -20px rgba(14, 28, 61, .35), 0 4px 12px -6px rgba(14, 28, 61, .14);
  --shadow-4: 0 28px 60px -28px rgba(10, 21, 48, .45), 0 8px 20px -10px rgba(14, 28, 61, .18);

  /* Spacing scale (4/8 rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --maxw: 1160px;
  --maxw-narrow: 760px;
  --maxw-prose: 660px;
  --gutter: 20px;
  --header-h: 80px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .68, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .5, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 420ms;

  /* Z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 40;
  --z-drawer: 80;
  --z-fab: 90;
  --z-modal: 100;
  --z-toast: 120;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 94px; }
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The UA rule `[hidden] { display: none }` loses to any author rule that sets
   an explicit display — e.g. `.btn { display: inline-flex }`. Without this,
   JS that toggles `el.hidden = true` silently does nothing, which is exactly
   what made all three quote-form buttons show at once. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* `clip` (not `hidden`) so the closed off-screen drawer and any fixed
     overlay can never create a horizontal scrollbar, while position: sticky
     on the header keeps working — `overflow: hidden` here would break it. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--navy-900);
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5.6vw, 52px); }
h2 { font-size: clamp(25px, 3.8vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

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

strong, b { font-weight: 700; color: var(--navy-800); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: var(--space-7) auto;
  max-width: 240px;
}

/* Visible, generous focus ring on every interactive element */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.on-navy :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-300); }

::selection { background: var(--gold-300); color: var(--navy-950); }

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

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: var(--z-toast);
  background: var(--navy-900); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  font-weight: 700; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.wrap--prose { max-width: var(--maxw-prose); }

/* --------------------------------------------------------------------------
   Long-form article prose (guides). Generous vertical rhythm and a comfortable
   measure, because these pages are read rather than scanned.
   -------------------------------------------------------------------------- */
.wrap--prose p,
.wrap--prose li { font-size: 17px; line-height: 1.75; color: var(--ink); }
.wrap--prose > div > h2 {
  font-size: clamp(23px, 3vw, 28px);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-top: var(--space-2);
}
.wrap--prose > div > h2:first-child { margin-top: 0; }
.wrap--prose > div > h3 {
  font-size: 20px;
  color: var(--navy-800);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.wrap--prose ul.plain,
.wrap--prose ol.plain { margin-bottom: var(--space-5); }
.wrap--prose ul.plain li,
.wrap--prose ol.plain li { margin-bottom: .7em; }
.wrap--prose p + ul.plain,
.wrap--prose p + ol.plain { margin-top: calc(var(--space-4) * -0.5); }

ul.plain, ol.plain { padding-left: 1.3em; margin: 0 0 1em; }
ul.plain li, ol.plain li { margin-bottom: .5em; }
ul.plain li:last-child, ol.plain li:last-child { margin-bottom: 0; }

/* Article byline in the page hero */
.page-hero time { color: inherit; }

.section { padding-block: var(--space-8); position: relative; }
.section--tight { padding-block: var(--space-7); }
.section--loose { padding-block: var(--space-9); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--tint { background: linear-gradient(180deg, var(--blue-050), var(--paper)); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-9); }
  .section--tight { padding-block: var(--space-8); }
}

.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) {
  .grid { gap: var(--space-5); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--2-1 { grid-template-columns: 1.15fr .85fr; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.center { text-align: center; }
.stack > * + * { margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   4. SECTION HEADINGS
   -------------------------------------------------------------------------- */
.kicker {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--space-3);
}
.kicker--light { color: var(--gold-300); }

.section-head { max-width: 660px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  color: var(--color-text-muted);
  font-size: 16.5px;
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.rule-gold {
  width: 56px; height: 2px; border: 0; margin: var(--space-4) 0 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: 2px;
}
.section-head--center .rule-gold { margin-inline: auto; }

.section-number {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600));
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 17px;
  box-shadow: 0 8px 18px -6px rgba(30, 58, 107, .55);
  margin-bottom: var(--space-4);
}
.section-head--center .section-number { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  box-shadow: var(--shadow-2);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: var(--btn-fg); }
.btn:active { transform: translateY(0) scale(.985); box-shadow: var(--shadow-1); }

.btn--primary { --btn-bg: var(--blue-600); }
.btn--primary:hover { --btn-bg: var(--navy-800); }

.btn--gold {
  --btn-bg: var(--gold-500); --btn-fg: var(--navy-950);
}
.btn--gold:hover { --btn-bg: var(--gold-300); }

.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-dark); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--navy-800); --btn-bd: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--blue-600); --btn-fg: var(--navy-900); }

.btn--ghost-light {
  --btn-bg: rgba(255,255,255,.06); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34);
  box-shadow: none;
}
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.16); --btn-bd: var(--gold-300); --btn-fg: #fff; }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn .ico { width: 19px; height: 19px; flex: 0 0 auto; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.section-head--center + .btn-row, .btn-row--center { justify-content: center; }

/* Text link with animated underline */
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 15px;
  color: var(--blue-600); text-decoration: none;
  min-height: 44px;
}
.link-arrow .ico { width: 17px; height: 17px; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow span { box-shadow: inset 0 -1px 0 var(--blue-200); transition: box-shadow var(--dur) var(--ease-out); }
.link-arrow:hover span { box-shadow: inset 0 -2px 0 var(--blue-600); }

/* --------------------------------------------------------------------------
   6. LOGO PLATE — the logo always sits on white, never on navy
   -------------------------------------------------------------------------- */
.logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: var(--shadow-2);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.logo-plate img { width: auto; }
.logo-plate--hero { padding: 16px 26px; border-radius: var(--radius); box-shadow: var(--shadow-4); }
.logo-plate--hero img { height: 62px; }
.logo-plate--footer { padding: 14px 22px; }
.logo-plate--footer img { height: 50px; }

a.logo-plate:hover { transform: translateY(-1px); box-shadow: var(--shadow-3); }

/* Header and drawer sit on a white surface already, so the logo needs no plate
   behind it — it reads as part of the bar alongside the nav links. */
.logo-plate--header {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.logo-plate--header img { height: 64px; }
a.logo-plate--header:hover { transform: none; box-shadow: none; opacity: .78; }

@media (max-width: 1023px) {
  .logo-plate--header img { height: 58px; }
}
@media (max-width: 560px) {
  .logo-plate--header img { height: 50px; }
}
@media (max-width: 380px) {
  .logo-plate--header img { height: 44px; }
  .logo-plate--hero img { height: 46px; }
  .logo-plate--hero { padding: 12px 18px; }
}

/* --------------------------------------------------------------------------
   7. TOP BAR + HEADER
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: #b9c7e4;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #d6e0f4; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold-300); }
.topbar-items { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 40px; }
.topbar .ico { width: 15px; height: 15px; color: var(--gold-300); flex: 0 0 auto; }
.topbar-fsp {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--gold-300); font-weight: 700;
  letter-spacing: .04em; font-size: 11.5px; text-transform: uppercase;
}
@media (max-width: 860px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(14,28,61,.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: var(--header-h);
}

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  position: relative;
  display: flex; align-items: center;
  min-height: 44px; padding: 0 13px;
  font-size: 14.5px; font-weight: 600;
  color: var(--navy-800); text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 12px;
  height: 2px; border-radius: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover { background: var(--blue-050); color: var(--navy-900); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy-900); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn--call { display: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-actions .btn--call { display: inline-flex; }
}

/* Mobile menu trigger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-xs); cursor: pointer;
  touch-action: manipulation;
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.nav-toggle:hover { border-color: var(--blue-600); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy-800); position: relative;
  transition: background-color var(--dur) var(--ease-out);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--navy-800);
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: rgba(10, 21, 48, .55);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
.drawer-scrim.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  width: min(340px, 88vw);
  background: var(--white);
  box-shadow: -20px 0 50px -30px rgba(10,21,48,.7);
  padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.drawer-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--card-alt); border: 1px solid var(--line);
  border-radius: var(--radius-xs); cursor: pointer; color: var(--navy-800);
}
.drawer-close:hover { background: var(--blue-100); }
.drawer-close .ico { width: 20px; height: 20px; }
.drawer nav ul { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.drawer nav li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 8px 4px;
  font-size: 16.5px; font-weight: 600; color: var(--navy-800); text-decoration: none;
}
.drawer nav a[aria-current="page"] { color: var(--blue-600); font-weight: 700; }
.drawer nav a .ico { width: 16px; height: 16px; color: var(--steel-400); }
.drawer .btn { width: 100%; margin-bottom: var(--space-3); }
.drawer-meta { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.drawer-meta a { color: var(--navy-800); font-weight: 600; text-decoration: none; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,.09), transparent 55%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--blue-600) 135%);
  color: #eef2fb;
  overflow: hidden;
  padding-block: var(--space-8) calc(var(--space-9) + 30px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(217,184,118,.16), transparent 42%),
    radial-gradient(circle at 8% 85%, rgba(255,255,255,.07), transparent 45%);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .3;
  filter: saturate(.75);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,21,48,.35) 0%, rgba(10,21,48,.1) 40%, rgba(10,21,48,.75) 100%);
  pointer-events: none;
}
.hero h1 { color: #fff; }
.hero p { color: #c9d5ee; }

.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: var(--space-8); }
}

.hero-lede {
  font-size: clamp(16.5px, 1.9vw, 19px);
  max-width: 46ch;
  margin-top: var(--space-4);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(217,184,118,.4);
  border-radius: var(--radius-pill);
  padding: 7px 16px 7px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: var(--space-5);
}
.hero-eyebrow .ico { width: 15px; height: 15px; }

.hero-points { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15.5px; color: #d5deef; margin: 0;
}
.hero-points .ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--gold-300); margin-top: 1px; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0;
  line-height: 0; pointer-events: none;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* Slow, calm wave drift — echoes the logo's wave motif */
.wave-drift { animation: waveDrift 26s ease-in-out infinite alternate; transform-origin: center; }
.wave-drift--2 { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes waveDrift {
  from { transform: translate3d(-2.2%, 0, 0); }
  to   { transform: translate3d(2.2%, 0, 0); }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(110% 130% at 12% 0%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-700) 130%);
  color: #eef2fb;
  padding-block: var(--space-8) var(--space-8);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 88% 20%, rgba(217,184,118,.14), transparent 45%);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: #c1cee9; max-width: 56ch; font-size: 17px; margin-top: var(--space-4); }
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  object-fit: cover; width: 100%; height: 100%;
  opacity: .22; filter: saturate(.7);
}

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
  font-size: 13px; color: #9fb0d3;
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.crumbs a { color: #c7d3ec; text-decoration: none; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs [aria-current="page"] { color: var(--gold-300); font-weight: 600; }
.crumbs .sep { color: #5f7099; }

/* --------------------------------------------------------------------------
   9. TRUST BAR
   -------------------------------------------------------------------------- */
.trustbar {
  position: relative; z-index: var(--z-raised);
  margin-top: -46px;
}
.trustbar-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: var(--space-5);
  display: grid; gap: var(--space-4);
}
@media (min-width: 640px) { .trustbar-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .trustbar-inner { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }

.trust-item { display: flex; align-items: flex-start; gap: 13px; }
.trust-item .ico-badge {
  margin-top: 6px;   /* optically centres the badge against the label + value pair */
  flex: 0 0 auto; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(150deg, var(--blue-050), var(--blue-100));
  color: var(--blue-600); border: 1px solid var(--blue-100);
}
.trust-item .ico-badge .ico { width: 21px; height: 21px; }
.trust-item dt {
  font-size: 11.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold-700); margin-bottom: 3px;
}
.trust-item dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy-900); line-height: 1.4; }
.trust-item dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }

@media (min-width: 940px) {
  .trust-item + .trust-item { border-left: 1px solid var(--line-soft); padding-left: var(--space-5); }
}

/* --------------------------------------------------------------------------
   10. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card--tint { background: var(--card-alt); }
.card--muted { background: var(--card); border-color: #d7e0ef; }
.card--pad-lg { padding: var(--space-6); }
.card h3 { color: var(--navy-800); margin-bottom: .45em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card > :last-child { margin-bottom: 0; }

.card--link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--blue-200); }
.card--link:hover h3 { color: var(--blue-600); }
.card--link .link-arrow { margin-top: auto; padding-top: var(--space-4); }

.card-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: var(--space-4);
  background: linear-gradient(150deg, var(--navy-800), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(30,58,107,.75);
  transition: transform var(--dur) var(--ease-spring);
}
.card-ico .ico { width: 25px; height: 25px; }
.card--link:hover .card-ico { transform: scale(1.06) rotate(-3deg); }
.card-ico--gold { background: linear-gradient(150deg, var(--gold-500), var(--gold-300)); color: var(--navy-950); box-shadow: 0 10px 22px -12px rgba(185,143,74,.8); }
.card-ico--soft { background: var(--blue-050); color: var(--blue-600); border: 1px solid var(--blue-100); box-shadow: none; }

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--blue-600);
  padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.tag--gold { background: var(--gold-700); }
.tag--outline { background: transparent; color: var(--gold-700); border: 1px solid var(--gold-500); }

/* Covered-items list inside product cards */
.covers { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: 9px; }
.covers li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; color: var(--ink); }
.covers .ico { width: 19px; height: 19px; flex: 0 0 auto; color: var(--gold-700); margin-top: 2px; }

/* --------------------------------------------------------------------------
   11. STATS + COUNTERS
   -------------------------------------------------------------------------- */
.stat-grid { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }

.stat {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff; border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border: 1px solid rgba(255,255,255,.07);
}
.stat .num {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 5vw, 38px); font-weight: 600;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .cap { display: block; font-size: 13px; color: #c7d3ec; margin-top: 8px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   12. CHECKLIST / STEPS / TIMELINE
   -------------------------------------------------------------------------- */
ul.checklist { list-style: none; margin: 0; padding: 0; }
ul.checklist li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
  font-size: 15.5px; margin: 0;
}
ul.checklist li:first-child { padding-top: 0; }
ul.checklist li:last-child { border-bottom: none; padding-bottom: 0; }
ul.checklist .ico {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--gold-700);
}

.steps { counter-reset: step; display: grid; gap: var(--space-4); }
.step {
  position: relative;
  background: var(--white); border: 1px solid var(--line-soft);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  box-shadow: var(--shadow-1);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--space-5); left: -1px;
  transform: translateX(calc(-50% - 1px));
  display: none;
}
.step .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  font-family: 'Fraunces', Georgia, serif; font-size: 15px; font-weight: 600;
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 19px; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }

.phase {
  background: var(--white); border: 1px solid var(--line);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--space-5); margin-bottom: var(--space-4);
}
.phase .weeks {
  display: block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 6px;
}
.phase h4 { font-family: 'Fraunces', Georgia, serif; font-size: 19px; color: var(--navy-900); margin-bottom: .4em; }
.phase ul { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. PULL QUOTE / CTA BAND / SPLIT
   -------------------------------------------------------------------------- */
blockquote.pull {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-size: clamp(19px, 2.6vw, 25px);
  color: var(--navy-800); text-align: center;
  max-width: 620px; margin: 0 auto; padding: 0 var(--space-3);
  line-height: 1.5;
  border: 0;
}
blockquote.pull cite {
  display: block; margin-top: var(--space-4);
  font-style: normal; font-size: 12px; font-family: 'Public Sans', sans-serif;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); font-weight: 800;
}

.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-600) 130%);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 15%, rgba(217,184,118,.2), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 45%);
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #cfdaf1; max-width: 52ch; margin: var(--space-4) auto var(--space-5); font-size: 16.5px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .fineprint { margin-top: var(--space-5); font-size: 13px; color: #9fb0d3; }

.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .split--reverse .split-media { order: 2; }
}
.split-media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-3);
  position: relative;
  background: var(--card);
}
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10,21,48,.28));
  pointer-events: none;
}

/* Photo placeholder for real team/office photography */
.photo-slot {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(45deg, var(--card-alt) 0 12px, var(--card) 12px 24px);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted); padding: var(--space-5);
}
.photo-slot .ico { width: 34px; height: 34px; color: var(--steel-400); margin-bottom: 10px; }
.photo-slot strong { display: block; color: var(--navy-800); font-size: 15px; margin-bottom: 4px; }
.photo-slot span { font-size: 13px; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-4);
}

/* A form card is a light surface wherever it sits — including inside the dark
   hero. Without this, `.hero p` wins on specificity and paints the helper text
   and (critically) the validation errors pale blue on white. */
.hero .form-card,
.page-hero .form-card { color: var(--ink); }
.hero .form-card p,
.page-hero .form-card p { color: var(--muted); }
.hero .form-card h1, .hero .form-card h2, .hero .form-card h3,
.page-hero .form-card h1, .page-hero .form-card h2, .page-hero .form-card h3 { color: var(--navy-900); }
.hero .form-card .field-error,
.page-hero .form-card .field-error { color: var(--color-danger); }
.hero .form-card .form-note,
.page-hero .form-card .form-note { color: var(--navy-800); }
@media (min-width: 768px) { .form-card { padding: var(--space-6); } }
.form-card h2, .form-card h3 { margin-bottom: .3em; }
.form-card .form-intro { color: var(--muted); font-size: 15px; margin-bottom: var(--space-5); }

.field { margin-bottom: var(--space-4); }
.field label {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--navy-800); margin-bottom: 6px;
}
.field .req { color: var(--color-danger); margin-left: 2px; }
.field .hint { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 4px; }

.input, .select, .textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--card-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--steel-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--blue-200); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(44,79,149,.14);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 19px;
  padding-right: 44px;
}
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: var(--color-danger); background: #fdf5f4;
}
.field-error {
  display: none; align-items: center; gap: 7px;
  margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--color-danger);
}
.field-error .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.field.has-error .field-error { display: flex; }

.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* Choice cards (radio) */
.choices { display: grid; gap: var(--space-3); margin: 0; padding: 0; border: 0; }
@media (min-width: 560px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choices legend {
  padding: 0; font-size: 14px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px;
}
.choice { position: relative; }
.choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.choice label {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 60px; padding: 15px 16px;
  background: var(--card-alt); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--navy-800);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.choice label small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice label .ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--blue-600); margin-top: 1px; }
.choice label:hover { border-color: var(--blue-200); background: var(--white); }
.choice input:checked + label {
  border-color: var(--blue-600); background: var(--blue-050);
  box-shadow: 0 0 0 3px rgba(44,79,149,.12);
}
.choice input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.choice label:active { transform: scale(.99); }

/* Consent checkbox */
.consent { display: flex; align-items: flex-start; gap: 12px; margin: var(--space-4) 0; }
.consent input[type="checkbox"] {
  flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0;
  accent-color: var(--blue-600); cursor: pointer;
}
.consent label { font-size: 14px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.consent a { font-weight: 600; }

/* Multi-step */
.stepper { margin-bottom: var(--space-5); }
.stepper-bar {
  height: 6px; border-radius: 3px; background: var(--blue-100); overflow: hidden;
}
.stepper-fill {
  height: 100%; width: 25%; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-500));
  transition: width var(--dur-slow) var(--ease-out);
}
.stepper-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-2) var(--space-3); flex-wrap: wrap; margin-top: 10px;
  font-size: 13px; color: var(--muted);
}
.stepper-meta strong { color: var(--navy-800); font-size: 14px; }
.stepper-meta .stepper-count { white-space: nowrap; margin-left: auto; }

.fstep { display: none; }
.fstep.is-active { display: block; animation: stepIn var(--dur-slow) var(--ease-out) both; }
.fstep.is-active.is-back { animation-name: stepInBack; }
@keyframes stepIn {
  from { opacity: 0; transform: translate3d(22px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translate3d(-22px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
.fstep h3 { font-size: 21px; margin-bottom: .25em; }
.fstep .fstep-sub { color: var(--muted); font-size: 15px; margin-bottom: var(--space-5); }

/* Back sits left at a fixed width; whichever primary action is currently
   visible (Continue on steps 1-3, Send my request on step 4) takes the
   remaining width, so the primary button always lands in the same place. */
.form-nav { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.form-nav .btn { flex: 1 1 auto; }
.form-nav .btn--ghost { flex: 0 0 auto; min-width: 116px; }

@media (max-width: 559px) {
  /* Stack on phones: primary action on top at full width, Back beneath it.
     column-reverse keeps the DOM order (Back, Continue, Submit) accessible
     while putting the primary button first visually. */
  .form-nav {
    flex-direction: column-reverse;
    gap: var(--space-2);
    margin-top: var(--space-6);
  }
  .form-nav .btn,
  .form-nav .btn--ghost { width: 100%; min-width: 0; }
  .form-nav .btn--ghost { min-height: 48px; }

  /* ---- Multi-step form: phone ergonomics ---- */

  /* Reclaim horizontal room — the card sits inside .wrap's gutter already */
  .form-card { padding: var(--space-4); border-radius: var(--radius-sm); }

  /* Tighter heading rhythm so more of the actual question is above the fold */
  .fstep h3 { font-size: 19px; }
  .fstep .fstep-sub { font-size: 14.5px; margin-bottom: var(--space-4); }
  .form-card h2 { font-size: 21px; }
  .form-card .form-intro { font-size: 14.5px; margin-bottom: var(--space-4); }

  /* Bigger, easier choice cards — the primary interaction on steps 1 and 2 */
  .choice label { min-height: 68px; padding: 16px; font-size: 16px; }
  .choice label small { font-size: 13.5px; margin-top: 3px; }
  .choices { gap: var(--space-2); }

  /* Comfortable inputs; 16px keeps iOS from zooming the viewport on focus */
  .input, .select, .textarea { min-height: 54px; font-size: 16px; }
  .textarea { min-height: 108px; }
  .field { margin-bottom: var(--space-5); }
  .field-row { gap: var(--space-5); }

  /* Consent is a required control — give the whole row a real tap target */
  .consent { gap: 14px; align-items: flex-start; }
  .consent label { font-size: 14.5px; }

  .form-note { font-size: 13px; padding: 12px 14px; }

  /* Keep a focused field clear of the sticky header when the step scrolls */
  .field, .choices, .consent { scroll-margin-top: calc(var(--header-h) + 24px); }
}

.form-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--blue-050); border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13.5px; color: var(--navy-800); line-height: 1.55;
  margin-top: var(--space-4);
}
.form-note .ico { width: 19px; height: 19px; flex: 0 0 auto; color: var(--blue-600); margin-top: 1px; }

.form-success {
  display: none; text-align: center; padding: var(--space-6) var(--space-4);
}
.form-success.is-visible { display: block; animation: stepIn var(--dur-slow) var(--ease-out) both; }
.form-success .ok-ring {
  width: 68px; height: 68px; margin: 0 auto var(--space-4);
  display: grid; place-items: center; border-radius: 50%;
  background: #e6f4ef; color: var(--color-success); border: 2px solid #b6e0d1;
}
.form-success .ok-ring .ico { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   15. ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4);
  width: 100%; min-height: 62px; padding: 18px 4px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17.5px; font-weight: 600; color: var(--navy-900);
  transition: color var(--dur) var(--ease-out);
}
.acc-trigger:hover { color: var(--blue-600); }
.acc-trigger .acc-ico {
  flex: 0 0 auto; width: 30px; height: 30px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--blue-050); color: var(--blue-600);
  border: 1px solid var(--blue-100);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.acc-trigger .acc-ico .ico { width: 16px; height: 16px; }
.acc-trigger[aria-expanded="true"] .acc-ico { transform: rotate(180deg); background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { color: var(--muted); font-size: 15.5px; padding: 0 4px 20px; margin: 0; max-width: 68ch; }
.acc-panel p + p { padding-top: 12px; }

/* --------------------------------------------------------------------------
   16. TABLE
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  background: var(--white);
}
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
  background: var(--navy-900); color: #fff;
  font-family: 'Public Sans', sans-serif; font-weight: 700;
  font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  position: sticky; top: 0;
}
table.data tbody tr:nth-child(even) { background: #f6f8fc; }
table.data tbody tr:last-child td { border-bottom: 0; }
/* Row headers read as the scenario/label column, matching the old td>strong */
table.data tbody th[scope="row"] { font-weight: 700; color: var(--navy-800); }

/* --- Stacked tables on phones -------------------------------------------
   A 3-column comparison inside a 375px viewport is a horizontal-scroll trap:
   the reader has to swipe sideways to find out what the middle column even
   said. Below 640px each row becomes a self-contained card, the row header
   becomes the card title, and each cell carries its column name as a label.
   Opt in with `.table-wrap--stack` + `.data--stack` + `data-label` on cells. */
@media (max-width: 640px) {
  .table-wrap--stack {
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  table.data--stack {
    display: block;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
  }
  /* Column headings are redundant once every cell is labelled, but they must
     stay in the accessibility tree for screen readers. */
  table.data--stack thead {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  table.data--stack tbody { display: block; }

  table.data--stack tbody tr,
  table.data--stack tbody tr:nth-child(even) {
    display: block;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-1);
  }
  table.data--stack tbody tr:last-child { margin-bottom: 0; }

  table.data--stack th,
  table.data--stack td {
    display: block;
    padding: 0;
    border: 0;
  }

  /* Row header = card title */
  table.data--stack tbody th[scope="row"] {
    position: static;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px; font-weight: 600; letter-spacing: -.01em;
    color: var(--navy-900);
    text-transform: none;
    background: transparent;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--line-soft);
  }

  table.data--stack td + td,
  table.data--stack th + td { margin-top: var(--space-4); }
  table.data--stack tbody th[scope="row"] + td { margin-top: 0; }

  table.data--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold-700);
    margin-bottom: 5px;
  }

  /* The "with us" column is the point of the comparison — give it weight */
  table.data--stack td[data-emphasis] {
    background: var(--blue-050);
    border-left: 3px solid var(--blue-600);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
    padding: 12px 14px;
    color: var(--navy-800);
    font-weight: 500;
  }
  table.data--stack td[data-emphasis]::before { color: var(--blue-600); }
}
table.data td strong { color: var(--navy-800); }

/* --------------------------------------------------------------------------
   17. REVIEWS
   -------------------------------------------------------------------------- */
.review {
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--space-5);
  box-shadow: var(--shadow-1); height: 100%;
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: var(--space-3); color: var(--gold-500); }
.stars .ico { width: 18px; height: 18px; }
.review blockquote {
  margin: 0 0 var(--space-4); font-size: 15.5px; color: var(--ink); line-height: 1.65;
}
.review figcaption { margin-top: auto; font-size: 13.5px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--navy-800); font-size: 14.5px; }

.review-placeholder {
  border: 2px dashed var(--line); background: var(--card-alt);
  border-radius: var(--radius); padding: var(--space-5); text-align: center;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #b4c2de;
  padding-block: var(--space-8) var(--space-5);
  margin-top: var(--space-8);
  font-size: 14.5px;
}
.site-footer h4 {
  color: #fff; font-family: 'Public Sans', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--space-6); } }
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--space-6); }
}
/* The brand blurb spans the full width on the two-column tablet layout */
@media (min-width: 700px) and (max-width: 999px) {
  .footer-about { grid-column: 1 / -1; }
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer a { color: #cbd7ef; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: 9px; }
.site-footer a:hover { color: var(--gold-300); }
.site-footer .ico { width: 17px; height: 17px; flex: 0 0 auto; color: var(--gold-500); }
.footer-about p { color: #a9b8d6; font-size: 14.5px; max-width: 40ch; }
.footer-about .logo-plate { margin-bottom: var(--space-4); }

.fsp-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: rgba(217,184,118,.1);
  border: 1px solid rgba(217,184,118,.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-top: var(--space-4);
}
.fsp-badge .fsp-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-300);
}
.fsp-badge .fsp-num { font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.fsp-badge .fsp-sub { font-size: 12px; color: #a9b8d6; }

.footer-legal {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: #8fa0c4; line-height: 1.65;
}
.footer-legal p { max-width: 90ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  margin-top: var(--space-4); font-size: 12.5px; color: #7d90ba;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer-bottom a { font-size: 12.5px; min-height: 44px; }

/* --------------------------------------------------------------------------
   19. FLOATING WHATSAPP + COOKIE BANNER
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed; z-index: var(--z-fab);
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px;
  background: var(--wa); color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 34px -12px rgba(15,125,106,.7), var(--shadow-2);
  transform: translateY(90px); opacity: 0;
  transition: transform var(--dur-slow) var(--ease-spring), opacity var(--dur-slow) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.wa-fab.is-visible { transform: translateY(0); opacity: 1; }
.wa-fab:hover { background: var(--wa-dark); color: #fff; }
.wa-fab .ico { width: 26px; height: 26px; flex: 0 0 auto; }
@media (max-width: 480px) {
  .wa-fab { padding: 0; width: 58px; height: 58px; justify-content: center; }
  .wa-fab .wa-label { display: none; }
}

.cookie-bar {
  position: fixed; z-index: var(--z-modal);
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 720px; margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-4);
  padding: var(--space-5);
  transform: translateY(140%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar h4 { font-family: 'Public Sans', sans-serif; font-size: 15px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.cookie-bar p { font-size: 13.5px; color: var(--muted); margin-bottom: var(--space-4); }
.cookie-bar .btn-row { gap: var(--space-2); }
.cookie-bar .btn { flex: 1 1 auto; }
@media (min-width: 640px) {
  .cookie-bar { display: flex; align-items: center; gap: var(--space-5); }
  .cookie-bar > div:first-child { flex: 1; }
  .cookie-bar p { margin-bottom: 0; }
  .cookie-bar .btn-row { flex: 0 0 auto; flex-wrap: nowrap; }
  .cookie-bar .btn { flex: 0 0 auto; }
}

/* Give the FAB room above the cookie bar while it's showing */
body.cookie-open .wa-fab { transform: translateY(-92px); }
@media (min-width: 640px) { body.cookie-open .wa-fab { transform: translateY(-84px); } }

/* --------------------------------------------------------------------------
   20. SCROLL REVEAL
   -------------------------------------------------------------------------- */
/* Scoped to .has-js (set by site.js on first execution) so that a visitor with
   JavaScript blocked, or a script that fails to load, still sees every section
   at full opacity rather than a blank page. */
.has-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.has-js [data-reveal="left"]  { transform: translate3d(-26px, 0, 0); }
.has-js [data-reveal="right"] { transform: translate3d(26px, 0, 0); }
.has-js [data-reveal="scale"] { transform: scale(.955); }
.has-js [data-reveal="fade"]  { transform: none; }

.has-js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Hero entrance — plays on load, not on scroll */
.hero-anim > * {
  animation: heroIn 780ms var(--ease-out) both;
  animation-delay: var(--hero-delay, 0ms);
}
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. REDUCED MOTION — everything above degrades to instant + legible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-anim > * { animation: none !important; opacity: 1; transform: none; }
  .wave-drift { animation: none !important; }
  .wa-fab { transform: translateY(0); opacity: 1; }
  .btn:hover, .card--link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   22. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .wa-fab, .cookie-bar, .drawer, .drawer-scrim, .hero-wave { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .hero, .page-hero, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .cta-band h2 { color: #000 !important; }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
