/* ==========================================================================
   French Capital Management — Design System
   Blueprint Section 8: Deep Navy / Maritime Blue / Brass / Cool Paper / Ink
   Display: Fraunces  ·  Body: Hanken Grotesk
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — soft welcoming blues, matching the original FCM site.
     Slate navy carries authority/text; soft blue is the friendly accent;
     periwinkle & sky-cyan tints keep backgrounds light and airy. */
  --navy: #2d3e4e;        /* slate — headings, header/footer, anchor bar */
  --navy-800: #35485a;
  --navy-700: #3e556a;
  --blue: #2f74b0;        /* friendly primary blue — links, eyebrows, icons */
  --blue-600: #285f90;
  --blue-100: #e9f1fb;    /* soft periwinkle tint */
  --periwinkle: #7dadfb;  /* light-blue decorative accent (from live site) */
  --cyan-100: #e2f3f8;    /* soft sky-cyan tint (from live site) */
  --brass: #2f74b0;       /* warm nautical accent, used sparingly */
  --brass-600: #285f90;
  --brass-100: #e9f1fb;

  /* Popping call-to-action colour (warm nautical sunset coral) */
  --cta: #2f74b0;
  --cta-600: #285f90;
  --cta-100: #e9f1fb;

  /* Soft, airy backgrounds */
  --paper: #f4f8fc;
  --paper-200: #e6eef7;
  --sky: #e9f1fb;
  --sand: #eef6fa;

  --ink: #2b3d4d;
  --ink-600: #52657a;
  --ink-400: #7c8d9c;
  --white: #ffffff;
  --line: #e0e8f1;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.25rem, 0.9rem + 1vw, 1.5rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 3vw, 3.5rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Shape */
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 42, 69, 0.06), 0 2px 8px rgba(14, 42, 69, 0.05);
  --shadow: 0 4px 12px rgba(14, 42, 69, 0.07), 0 12px 32px rgba(14, 42, 69, 0.07);
  --shadow-lg: 0 12px 28px rgba(14, 42, 69, 0.1), 0 28px 64px rgba(14, 42, 69, 0.12);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 74px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-4);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

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

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

::selection { background: var(--brass-100); color: var(--navy); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section--tight { padding-block: clamp(2.25rem, 1.75rem + 3vw, 3.5rem); }
.section--paper { background: var(--paper); }
.section--sky { background: var(--sky); }
.section--sand { background: var(--sand); }
.section--navy { background: linear-gradient(160deg, var(--navy), #3a5a72); color: #dbe6ef; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-600); font-size: var(--fs-lg); }
.section--navy .section-head p { color: #b9cbdc; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}
.section--navy .eyebrow { color: var(--brass); }
.section-head .eyebrow { color: var(--blue); }
.section--navy .section-head .eyebrow { color: var(--brass); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.lead { font-size: var(--fs-lg); color: var(--ink-600); }
.muted { color: var(--ink-400); font-size: var(--fs-sm); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 650;
  line-height: 1.2;
  padding: 0.9em 1.6em;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 4px 14px rgba(47, 116, 176, 0.28); }
.btn-primary:hover { background: var(--cta-600); color: #fff; box-shadow: 0 6px 20px rgba(47, 116, 176, 0.34); }

.btn-brass { background: var(--brass); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-brass:hover { background: var(--brass-600); color: var(--navy); box-shadow: var(--shadow); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--paper); color: var(--navy); }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-sm { font-size: var(--fs-sm); padding: 0.7em 1.2em; }
.btn-lg { font-size: var(--fs-lg); padding: 1em 1.9em; }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 650;
  text-decoration: none;
  color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform 0.18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Top strip + header
   -------------------------------------------------------------------------- */
.topstrip {
  background: var(--navy);
  color: #b9cbdc;
  font-size: var(--fs-xs);
}
.topstrip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 38px;
}
.topstrip a { color: #dbe6f0; text-decoration: none; }
.topstrip a:hover { color: var(--brass); }
.topstrip-left { display: flex; align-items: center; gap: var(--sp-4); }
.topstrip-right { display: flex; align-items: center; gap: var(--sp-4); }
.topstrip strong { color: #fff; font-weight: 600; }

@media (max-width: 760px) {
  .topstrip { display: none; }
}

/* Header — like the live site: transparent and laid over the hero photo,
   script logo centred on top, hairline rule, centred menu underneath.
   Once scrolled past, it turns into a compact fixed slate bar (.is-stuck). */
.site-header {
  --overlay-h: 232px; /* height of the full overlay header; heroes pad by this */
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 31, 42, 0.55) 0%, rgba(20, 31, 42, 0.28) 60%, rgba(20, 31, 42, 0) 100%);
}
.header-brand {
  display: flex;
  justify-content: center;
  padding-top: 14px;
}
.header-brand .logo-img { height: 150px; width: auto; display: block; filter: drop-shadow(0 2px 10px rgba(10, 18, 26, 0.35)); }
.header-rule { height: 1px; background: rgba(255, 255, 255, 0.4); margin-top: 8px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  min-height: 56px;
  position: relative;
}
.site-header .navlink { color: #fff; text-shadow: 0 1px 8px rgba(10, 18, 26, 0.4); }
.site-header .navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.site-header .navlink.is-active { color: #fff; }
.site-header .navlink.is-active::after { background: var(--periwinkle, #9db8f5); }
.site-header .dropdown { text-shadow: none; }

/* Compact bar after scrolling */
.site-header.is-stuck {
  position: fixed;
  background: #2d3e4e;
  box-shadow: var(--shadow-sm);
}
.site-header.is-stuck .header-brand { position: absolute; left: 0; right: 0; top: 0; padding-top: 0; justify-content: flex-start; pointer-events: none; }
.site-header.is-stuck .header-brand .logo { pointer-events: auto; }
.site-header.is-stuck .header-brand .logo-img { height: 58px; filter: none; }
.site-header.is-stuck .header-rule { display: none; }
.site-header.is-stuck .header-inner { min-height: 64px; justify-content: flex-end; }

/* Heroes start under the overlay header */
.hero .wrap, .pagehero .wrap { padding-top: var(--overlay-h, 232px); }
body { --overlay-h: 232px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.footer-brand .logo-img { height: 110px; width: auto; display: block; margin-bottom: var(--sp-2); }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 600;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: var(--sp-1); }

.navlink {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--r-sm);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
.navlink:hover { color: var(--blue); background: var(--paper); }
.navlink.is-active { color: var(--blue); }
.navlink.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.25rem;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}
.navlink .caret { width: 9px; height: 9px; transition: transform 0.2s var(--ease); }

.has-dropdown { position: relative; }
.has-dropdown[data-open="true"] .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 288px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.has-dropdown[data-open="true"] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.dropdown a span {
  display: block;
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--ink-400);
  margin-top: 1px;
}
.dropdown a:hover { background: var(--paper); color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 1040px) {
  .nav, .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  body, .site-header { --overlay-h: 128px; }
  .header-brand { padding-top: 10px; }
  .header-brand .logo-img { height: 100px; }
  .header-rule { display: none; }
  .header-inner { min-height: 0; position: static; } /* lets the menu button anchor to the header corner */
  .header-cta { position: absolute; top: 14px; right: var(--sp-5); }
  .site-header .nav-toggle { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
  .site-header.is-stuck .header-inner { min-height: 60px; }
  .site-header.is-stuck .header-brand .logo-img { height: 52px; margin-top: 4px; }
  .site-header.is-stuck .header-cta { top: 8px; }
}
@media (max-width: 480px) {
  .header-brand .logo-img { height: 84px; }
  body, .site-header { --overlay-h: 112px; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.drawer[data-open="true"] { visibility: visible; pointer-events: auto; }

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 69, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.drawer[data-open="true"] .drawer-scrim { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 88vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.drawer-close {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
}
.drawer-body { padding: var(--sp-4) var(--sp-5) var(--sp-8); }

.drawer-link {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--paper-200);
}
.drawer-link.is-active { color: var(--blue); }

.drawer-group { border-bottom: 1px solid var(--paper-200); }
.drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: "+"; font-family: var(--font-body); font-size: 1.35rem; color: var(--ink-400); }
.drawer-group[open] summary::after { content: "–"; }
.drawer-group .sub { padding: 0 0 var(--sp-4) var(--sp-4); }
.drawer-group .sub a {
  display: block;
  padding: 0.5rem 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  text-decoration: none;
}
.drawer-group .sub a:hover { color: var(--blue); }

.drawer-actions { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.drawer-meta { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--ink-600); }

/* Frozen bottom bar — two buttons (Call + Schedule), stays put while scrolling. */
.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--navy);
  box-shadow: 0 -4px 20px rgba(12, 34, 54, 0.18);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-block: 0.55rem;
}
.bottombar .btn { min-width: 200px; }
.bottombar .btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.bottombar .btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.bottombar .btn-primary { color: #fff; }

body { padding-bottom: 68px; }

/* Mobile: two buttons fill the width, always in thumb's reach. */
@media (max-width: 760px) {
  .bottombar-inner { gap: 0.5rem; }
  .bottombar .btn { flex: 1; min-width: 0; padding: 0.8em 0.6em; font-size: var(--fs-sm); }
  body { padding-bottom: 72px; }
}

/* The Fact & Feeling Finder wizard has its own nav, so hide the bar there. */
body.ff-page .bottombar { display: none; }
body.ff-page { padding-bottom: 0; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* Hero — the original FCM sailboat photograph with a soft slate treatment.
   To use a different photo, change --hero-image (or set it on the .hero element). */
.hero {
  --hero-image: url("../img/hero-sailboat.jpg");
  position: relative;
  background: var(--hero-image) center 42% / cover no-repeat, #2d3e4e;
  color: #fff;
  overflow: hidden;
}
/* Soft scrim: darkens the left just enough for the headline to read, while the
   sunset, sails, and rigging stay clearly visible on the right. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(28, 42, 56, 0.82) 0%,
      rgba(28, 42, 56, 0.55) 38%,
      rgba(28, 42, 56, 0.18) 62%,
      rgba(28, 42, 56, 0) 82%),
    linear-gradient(0deg, rgba(28, 42, 56, 0.28) 0%, rgba(28, 42, 56, 0) 40%);
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(180deg, rgba(28,42,56,0.55) 0%, rgba(28,42,56,0.6) 55%, rgba(28,42,56,0.78) 100%); }
}
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  pointer-events: none;
  color: var(--white);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: block;
  max-width: 640px;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 6.5rem) clamp(5rem, 3.5rem + 6vw, 8rem);
}

.hero h1 { color: #fff; margin-bottom: var(--sp-4); text-shadow: 0 1px 18px rgba(14, 24, 34, 0.35); }
.hero-sub {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: #e4ecf3;
  max-width: 42ch;
  margin-bottom: var(--sp-6);
  text-shadow: 0 1px 12px rgba(14, 24, 34, 0.3);
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  color: #fff;
  border-left: 3px solid var(--periwinkle);
  padding-left: 0.9rem;
  margin-bottom: var(--sp-4);
  max-width: 34ch;
  text-shadow: 0 1px 14px rgba(14, 24, 34, 0.4);
}
.hero-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: #cdd9e4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Photo placeholders */
.photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(145deg, #17395b, #235e8d);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #cddcea;
  min-height: 260px;
}
.photo::after {
  content: attr(data-label);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.9rem;
  font-size: var(--fs-xs);
  background: rgba(14, 42, 69, 0.72);
  color: #cfdded;
  text-align: left;
}
.photo svg { width: 84px; height: 84px; opacity: 0.5; }
.photo--tall { min-height: 420px; }
.photo--wide { min-height: 320px; }
.photo--light { background: linear-gradient(145deg, #dfe9f1, #c6d7e5); color: var(--navy); }
.photo--light::after { background: rgba(255, 255, 255, 0.82); color: var(--ink-600); }

/* Portrait of Jason — upright photo in a narrower column, offset brand frame
   behind it and a name badge overlapping the bottom edge. */
.split.split--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split.split--portrait.split--media-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.portrait {
  position: relative;
  margin: 0 auto;
  max-width: 440px;
  padding: 0 22px 34px 0; /* room for the offset frame + badge */
}
.portrait::before { /* offset frame */
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: 0; bottom: 34px;
  border-radius: var(--r-lg, 18px);
  background: linear-gradient(150deg, var(--blue-100, #e6effa), #cfdef2);
  border: 1px solid rgba(47, 116, 176, 0.25);
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  background: #d9dcdf; /* studio grey while loading */
  box-shadow: 0 24px 48px -24px rgba(28, 42, 56, 0.45);
}
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait-badge {
  position: absolute;
  left: 24px; bottom: 6px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.8rem 1.1rem 0.8rem 1rem;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
  box-shadow: 0 14px 30px -14px rgba(28, 42, 56, 0.4);
}
.portrait-badge strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.portrait-badge span { font-size: var(--fs-xs); color: var(--ink-400); font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 880px) {
  .split.split--portrait, .split.split--portrait.split--media-right { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 380px; }
}

/* Page hero (interior pages) */
.pagehero {
  background:
    linear-gradient(150deg, rgba(45, 62, 78, 0.9), rgba(45, 62, 78, 0.62)),
    url("../img/hero-sailboat.jpg") center 42% / cover no-repeat,
    var(--navy);
  color: #d3e0ea;
  padding-block: clamp(2.75rem, 2rem + 4vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.pagehero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 0%, rgba(198, 164, 92, 0.2), transparent 45%);
}
.pagehero .wrap { position: relative; z-index: 1; }
.pagehero h1 { color: #fff; max-width: 20ch; }
.pagehero p { color: #b9cbdc; font-size: var(--fs-lg); max-width: 56ch; }
.pagehero .eyebrow { color: var(--brass); }

.crumbs {
  font-size: var(--fs-xs);
  color: #9db4c9;
  margin-bottom: var(--sp-3);
}
.crumbs a { color: #cddcea; text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
.crumbs span { margin-inline: 0.4rem; opacity: 0.6; }

/* --------------------------------------------------------------------------
   7. Trust bar
   -------------------------------------------------------------------------- */
/* Floating credential card that overlaps the bottom edge of the hero photo */
.trustbar { position: relative; z-index: 3; margin-top: -52px; background: transparent; }
.trustbar-list {
  display: grid;
  grid-template-columns: repeat(5, auto); /* auto tracks stretch to fill, labels stay on one line */
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px);
  box-shadow: 0 18px 44px -18px rgba(28, 42, 56, 0.35), 0 2px 6px rgba(28, 42, 56, 0.06);
}
.trustbar-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.95rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  color: var(--navy);
}
.trustbar-list li + li { border-left: 1px solid var(--line); }
.trustbar-list svg {
  width: 36px; height: 36px; padding: 8px;
  border-radius: 50%;
  background: var(--blue-100, #e6effa);
  color: var(--blue);
  flex-shrink: 0;
}
/* the hero needs a little extra room at the bottom for the overlap */
.hero .hero-grid { padding-bottom: clamp(6rem, 4.5rem + 6vw, 9rem); }
@media (max-width: 1040px) {
  .trustbar-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  .trustbar-list li { white-space: normal; }
  .trustbar-list li + li { border-left: 0; }
  .trustbar-list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .trustbar-list li:nth-child(3n+2), .trustbar-list li:nth-child(3n+3) { border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .trustbar { margin-top: -36px; }
  .trustbar-list { grid-template-columns: 1fr 1fr; }
  .trustbar-list li { justify-content: flex-start; padding: 0.8rem 0.7rem; font-size: var(--fs-xs); }
  .trustbar-list li:nth-child(n) { border-left: 0; border-top: 0; }
  .trustbar-list li:nth-child(even) { border-left: 1px solid var(--line); }
  .trustbar-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trustbar-list li:last-child { grid-column: 1 / -1; justify-content: center; border-left: 0; }
  .trustbar-list svg { width: 30px; height: 30px; padding: 6px; }
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.card p { color: var(--ink-600); font-size: var(--fs-sm); }

a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover, .card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--blue-100);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon--brass { background: var(--brass-100); color: var(--brass-600); }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--blue);
}
.card-more::after { content: "→"; transition: transform 0.18s var(--ease); }
a.card:hover .card-more::after { transform: translateX(3px); }

.card--paper { background: var(--paper); border-color: transparent; }
.card--navy { background: var(--navy-800); border-color: rgba(255,255,255,0.1); color: #c5d6e5; }
.card--navy h3 { color: #fff; }
.card--navy p { color: #b9cbdc; }

/* Worry cards ("Is this you?") */
.worry {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
}
.worry h3 {
  font-style: italic;
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   9. Steps (Nautical Planning Approach)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-4 { grid-template-columns: minmax(0, 1fr); } }

.step { position: relative; padding-top: var(--sp-6); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brass);
}
.step::after {
  content: "";
  position: absolute;
  top: 14px; left: 46px; right: -12px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
@media (max-width: 900px) { .step::after { display: none; } }

.step h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-600); }
.section--navy .step p { color: #b9cbdc; }
.section--navy .step::after { background: repeating-linear-gradient(to right, rgba(255,255,255,0.22) 0 6px, transparent 6px 12px); }

/* --------------------------------------------------------------------------
   10. Split / feature rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.split--media-right .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-right .split-media { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-3);
  color: var(--ink-600);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brass-100);
  border: 1px solid var(--brass);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 0.72em;
  width: 5px; height: 9px;
  border-right: 2px solid var(--brass-600);
  border-bottom: 2px solid var(--brass-600);
  transform: rotate(45deg);
}
.section--navy .checklist li { color: #c5d6e5; }

/* Stat blocks */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label { font-size: var(--fs-sm); color: #b9cbdc; }

/* Quote / pull-quote */
.pullquote {
  border-left: 3px solid var(--brass);
  padding-left: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
}
.pullquote cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--ink-400);
}

/* Testimonial placeholder */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-5);
}
.testimonial p { font-family: var(--font-display); font-style: italic; color: var(--navy); }
.testimonial footer { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-400); }

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #3d6082);
  color: #d3e0ea;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 100%, rgba(198, 164, 92, 0.24), transparent 50%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: #b9cbdc; max-width: 52ch; margin-inline: auto; margin-bottom: var(--sp-5); }
.cta-band .btn-group { justify-content: center; }
.cta-band .fineprint { margin-top: var(--sp-5); font-size: var(--fs-xs); color: #93aac0; }

/* --------------------------------------------------------------------------
   12. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: var(--sp-5); color: var(--ink-600); max-width: 68ch; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.field .hint { font-weight: 400; color: var(--ink-400); font-size: var(--fs-xs); }

.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7e8f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 111, 163, 0.16);
}
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: #c0392b; }

.error-msg {
  display: none;
  font-size: var(--fs-xs);
  color: #c0392b;
  margin-top: 0.3rem;
  font-weight: 600;
}
.field.is-invalid .error-msg { display: block; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 620px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  cursor: pointer;
}
.check input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }

.form-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-top: var(--sp-4);
}
.form-note svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.form-status {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f5ec; color: #1d6b39; border: 1px solid #b8e0c6; }
.form-status.is-error { background: #fdecea; color: #a8291c; border: 1px solid #f3c3bd; }
.form-status.is-working { background: var(--blue-100); color: var(--navy); border: 1px solid #c3daea; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Newsletter */
.newsletter-form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsletter-form .input { flex: 1 1 200px; }

/* --------------------------------------------------------------------------
   14. Contact details
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.contact-list .ico {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--blue-100);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list dt, .contact-list .lbl {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.contact-list a { font-weight: 650; text-decoration: none; }

.map-embed {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--r);
  display: block;
  background: var(--paper-200);
}

/* --------------------------------------------------------------------------
   15. Blog
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 940px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .photo { min-height: 170px; border-radius: var(--r-sm); margin-bottom: var(--sp-4); }
.post-card h3 { font-size: var(--fs-h4); }
.post-card .card-more { margin-top: auto; padding-top: var(--sp-4); }

.tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-100);
  border-radius: var(--r-pill);
  padding: 0.25rem 0.7rem;
  margin-bottom: var(--sp-3);
}
.tag--brass { color: var(--brass-600); background: var(--brass-100); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter-btn {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-meta { font-size: var(--fs-xs); color: var(--ink-400); margin-bottom: var(--sp-3); }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-6); }
.prose li { color: var(--ink-600); }
.prose blockquote {
  margin: var(--sp-6) 0;
  padding-left: var(--sp-5);
  border-left: 3px solid var(--brass);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   16. Tools
   -------------------------------------------------------------------------- */
.tool-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 960px) { .tool-shell { grid-template-columns: minmax(0, 1fr); } }

.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.tool-panel + .tool-panel { margin-top: var(--sp-5); }

.tool-result {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--navy);
  color: #cddcea;
  border-radius: var(--r);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.tool-result h3 { color: #fff; }
@media (max-width: 960px) { .tool-result { position: static; } }

.money-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: var(--sp-3);
  align-items: center;
  margin-bottom: var(--sp-3);
}
.money-row label { font-size: var(--fs-sm); color: var(--ink-600); font-weight: 600; margin: 0; }
.money-input { position: relative; }
.money-input::before {
  content: "$";
  position: absolute;
  left: 0.7rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: var(--fs-sm);
  pointer-events: none;
}
.money-input .input { padding-left: 1.6rem; text-align: right; padding-block: 0.55rem; }

.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  font-weight: 700;
  color: var(--navy);
}

.result-figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  font-weight: 600;
  color: var(--brass);
  line-height: 1.1;
}
.result-line {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: var(--fs-sm);
}
.result-line:last-of-type { border-bottom: 0; }
.result-line span:last-child { font-weight: 700; color: #fff; }

.bar {
  height: 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  margin: var(--sp-3) 0 var(--sp-2);
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--brass), #e0c489);
  transition: width 0.4s var(--ease);
}

.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.4rem; }

.donut { display: block; margin-inline: auto; }

/* Quiz */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-400);
  font-weight: 600;
}
.quiz-progress .track {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--paper-200);
  overflow: hidden;
}
.quiz-progress .track > i {
  display: block; height: 100%;
  background: var(--brass);
  border-radius: var(--r-pill);
  transition: width 0.3s var(--ease);
}

.quiz-q { display: none; }
.quiz-q.is-active { display: block; animation: fadeUp 0.3s var(--ease); }
.quiz-q h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-5); }

.opt { display: block; margin-bottom: var(--sp-3); cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  transition: all 0.15s var(--ease);
  color: var(--ink-600);
  font-size: var(--fs-sm);
}
.opt .opt-box::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s var(--ease);
}
.opt:hover .opt-box { border-color: var(--blue); background: var(--paper); }
.opt input:checked + .opt-box {
  border-color: var(--blue);
  background: var(--blue-100);
  color: var(--navy);
  font-weight: 600;
}
.opt input:checked + .opt-box::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.opt input:focus-visible + .opt-box { outline: 3px solid var(--brass); outline-offset: 2px; }

.quiz-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }

.gauge-wrap { text-align: center; }
.score-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--navy);
  background: var(--brass-100);
  border: 1px solid var(--brass);
  border-radius: var(--r-pill);
  padding: 0.35rem 1.4rem;
  margin-bottom: var(--sp-4);
}

.alloc-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.alloc-table th, .alloc-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.alloc-table th { font-weight: 700; color: var(--navy); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.alloc-table td:last-child, .alloc-table th:last-child { text-align: right; }

/* Quote lookup */
.quote-search { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.quote-search .input { flex: 1 1 220px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.chip {
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: var(--r-pill);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }

.quote-card { display: none; }
.quote-card.is-visible { display: block; }
.quote-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--navy); line-height: 1; }
.quote-change { font-weight: 700; font-size: var(--fs-lg); }
.up { color: #1d7a45; }
.down { color: #c0392b; }
.quote-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-5); }
.quote-stats div { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.quote-stats dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); font-weight: 700; }
.quote-stats dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }

/* Upload */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: var(--paper);
  padding: clamp(1.75rem, 1.5rem + 3vw, 3rem);
  text-align: center;
  transition: all 0.18s var(--ease);
  cursor: pointer;
}
.dropzone.is-over { border-color: var(--blue); background: var(--blue-100); }
.dropzone svg { width: 44px; height: 44px; color: var(--blue); margin-inline: auto; margin-bottom: var(--sp-3); }

.filelist { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.filelist li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
  font-size: var(--fs-sm);
}
.filelist .fname { font-weight: 650; color: var(--navy); flex: 1; word-break: break-all; }
.filelist .fsize { color: var(--ink-400); font-size: var(--fs-xs); white-space: nowrap; }
.filelist .frm {
  border: 0; background: none; cursor: pointer;
  color: var(--ink-400); font-size: 1.15rem; line-height: 1; padding: 0 0.25rem;
}
.filelist .frm:hover { color: #c0392b; }
.filelist li.is-bad { border-color: #f3c3bd; background: #fdecea; }

.callout {
  border: 1px solid var(--blue-100);
  background: var(--blue-100);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--navy);
}
.callout--brass { background: var(--brass-100); border-color: var(--brass); }
.callout strong { display: block; margin-bottom: 0.2rem; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #a8bed2; font-size: var(--fs-sm); }
.footer-top { padding-block: var(--sp-8) var(--sp-6); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.3fr;
  gap: var(--sp-6);
}
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: #7f97ad; }
.footer-about { margin-top: var(--sp-4); max-width: 34ch; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: #a8bed2; text-decoration: none; }
.footer-col a:hover { color: var(--brass); }

.socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #cddcea;
}
.socials a:hover { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.socials svg { width: 17px; height: 17px; }

.footer-newsletter .input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.footer-newsletter .input::placeholder { color: #7f97ad; }
.footer-newsletter .input:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(198, 164, 92, 0.2); }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-5) var(--sp-6);
  font-size: var(--fs-xs);
  color: #7f97ad;
  line-height: 1.65;
}
.footer-legal p { margin-bottom: var(--sp-3); }
.footer-legal a { color: #a8bed2; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topstrip, .actionbar, .site-footer, .cta-band, .drawer { display: none !important; }
  body { padding: 0; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   20. Fact & Feeling Finder — multi-step wizard
   ========================================================================== */
.ff-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  align-items: start;
}
@media (max-width: 940px) {
  .ff-shell { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Step rail (desktop) ---- */
.ff-rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 940px) { .ff-rail { display: none; } }
.ff-rail h2 { font-size: var(--fs-h4); margin-bottom: var(--sp-4); }
.ff-steplist { list-style: none; margin: 0; padding: 0; counter-reset: ffstep; }
.ff-steplist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-400);
  cursor: pointer;
  border-radius: var(--r-sm);
  line-height: 1.3;
}
.ff-steplist li::before {
  counter-increment: ffstep;
  content: counter(ffstep);
  position: absolute;
  left: 0; top: 0.4rem;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-400);
  background: #fff;
  transition: all 0.2s var(--ease);
}
.ff-steplist li::after {
  content: "";
  position: absolute;
  left: 11.5px; top: 2rem;
  width: 1.5px; height: calc(100% - 1rem);
  background: var(--line);
}
.ff-steplist li:last-child::after { display: none; }
.ff-steplist li[data-state="done"] { color: var(--ink-600); }
.ff-steplist li[data-state="done"]::before {
  background: var(--blue); border-color: var(--blue); color: #fff;
  content: "\2713";
}
.ff-steplist li[data-state="current"] { color: var(--navy); font-weight: 700; }
.ff-steplist li[data-state="current"]::before {
  border-color: var(--brass); background: var(--brass-100); color: var(--navy);
}
.ff-steplist li[data-hidden="true"] { display: none; }
.ff-steplist li:hover:not([data-state="current"]) { background: var(--paper); }

/* ---- Top progress (mobile + shared) ---- */
.ff-progress { margin-bottom: var(--sp-5); }
.ff-progress-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.5rem;
}
.ff-progress-step { font-weight: 700; color: var(--navy); font-size: var(--fs-sm); }
.ff-progress-pct { font-size: var(--fs-xs); color: var(--ink-400); font-weight: 600; }
.ff-progress-track {
  height: 8px; border-radius: var(--r-pill);
  background: var(--paper-200); overflow: hidden;
}
.ff-progress-track > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--brass));
  border-radius: var(--r-pill);
  transition: width 0.4s var(--ease);
}

/* ---- Panel ---- */
.ff-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.ff-step { display: none; animation: fadeUp 0.3s var(--ease); }
.ff-step.is-active { display: block; }
.ff-step-head { margin-bottom: var(--sp-6); }
.ff-step-head .eyebrow { margin-bottom: var(--sp-2); }
.ff-step-head h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.ff-step-head p { color: var(--ink-600); }
.ff-intro-note {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-bottom: var(--sp-5);
}

/* ---- Grid of fields ---- */
.ff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); }
.ff-grid .ff-col-2 { grid-column: span 2; }
@media (max-width: 560px) { .ff-grid { grid-template-columns: minmax(0, 1fr); } .ff-grid .ff-col-2 { grid-column: span 1; } }
.ff-subhead {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--navy);
  margin: var(--sp-4) 0 var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.ff-subhead:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.ff-help { grid-column: 1 / -1; }

/* ---- Radio / choice cards ---- */
.ff-choices { display: grid; gap: 0.6rem; margin-bottom: var(--sp-4); }
.ff-choices.ff-inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ff-choice { position: relative; display: block; cursor: pointer; }
.ff-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ff-choice-box {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: var(--fs-sm);
  color: var(--ink-600);
  transition: all 0.15s var(--ease);
  height: 100%;
}
.ff-choice-box::before {
  content: ""; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line);
  transition: all 0.15s var(--ease);
}
.ff-choice.is-check .ff-choice-box::before { border-radius: 5px; }
.ff-choice:hover .ff-choice-box { border-color: var(--blue); background: var(--paper); }
.ff-choice input:checked + .ff-choice-box {
  border-color: var(--blue); background: var(--blue-100); color: var(--navy); font-weight: 600;
}
.ff-choice input:checked + .ff-choice-box::before {
  border-color: var(--blue); background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}
.ff-choice.is-check input:checked + .ff-choice-box::before {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/13px no-repeat;
  box-shadow: none;
}
.ff-choice input:focus-visible + .ff-choice-box { outline: 3px solid var(--brass); outline-offset: 2px; }
.ff-q { margin-bottom: var(--sp-5); }
.ff-q > legend, .ff-q > .ff-q-label {
  font-weight: 650; color: var(--navy); margin-bottom: var(--sp-3); display: block;
  font-size: var(--fs-base); padding: 0;
}

/* ---- Repeater ---- */
.ff-repeater { grid-column: 1 / -1; margin-bottom: var(--sp-4); }
.ff-rep-row {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  background: var(--paper);
  position: relative;
}
.ff-rep-row-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-3);
}
.ff-rep-row-title { font-weight: 700; color: var(--navy); font-size: var(--fs-sm); }
.ff-rep-remove {
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-400); border-radius: var(--r-sm);
  padding: 0.25rem 0.6rem; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.ff-rep-remove:hover { color: #c0392b; border-color: #f3c3bd; background: #fdecea; }
.ff-rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
@media (max-width: 560px) { .ff-rep-grid { grid-template-columns: minmax(0, 1fr); } }
.ff-rep-add {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px dashed var(--blue); background: var(--blue-100);
  color: var(--navy); border-radius: var(--r-sm);
  padding: 0.7rem 1.1rem; font-weight: 650; font-size: var(--fs-sm); cursor: pointer;
  font-family: inherit;
}
.ff-rep-add:hover { background: #d6e6f2; }
.ff-rep-empty { color: var(--ink-400); font-size: var(--fs-sm); font-style: italic; margin-bottom: var(--sp-4); }
.ff-rep-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--navy);
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  font-weight: 700; color: var(--navy);
}
.ff-rep-subtotal b { font-family: var(--font-display); font-size: var(--fs-lg); }

/* ---- Live figures (net worth, COMRA) ---- */
.ff-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-2); }
@media (max-width: 560px) { .ff-figures { grid-template-columns: minmax(0, 1fr); } }
.ff-figure {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--sp-4); text-align: center;
}
.ff-figure dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); font-weight: 700; }
.ff-figure dd { margin: 0.3rem 0 0; font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 600; color: var(--navy); }
.ff-figure.is-networth { background: var(--navy); border-color: var(--navy); }
.ff-figure.is-networth dt { color: #93aac0; }
.ff-figure.is-networth dd { color: var(--brass); }

/* ---- COMRA gauge ---- */
.ff-comra {
  background: var(--navy); color: #cddcea;
  border-radius: var(--r); padding: var(--sp-5);
  text-align: center; margin-top: var(--sp-5);
}
.ff-comra h3 { color: #fff; margin-bottom: var(--sp-2); }
.ff-comra-score { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 3vw, 3.75rem); font-weight: 600; color: var(--brass); line-height: 1; }
.ff-comra-max { font-size: var(--fs-sm); color: #93aac0; }
.ff-comra-band { display: inline-block; margin-top: var(--sp-3); font-weight: 700; color: var(--navy); background: var(--brass); border-radius: var(--r-pill); padding: 0.3rem 1.2rem; }
.ff-comra-track { height: 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.15); overflow: hidden; margin-top: var(--sp-4); }
.ff-comra-track > i { display: block; height: 100%; background: linear-gradient(90deg, #6fbf95, #2f74b0, #d98b6b); border-radius: var(--r-pill); transition: width 0.5s var(--ease); }
.ff-comra-scale { display: flex; justify-content: space-between; font-size: 0.7rem; color: #7f97ad; margin-top: 0.4rem; }

/* ---- Navigation buttons ---- */
.ff-nav {
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.ff-nav .ff-nav-right { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.ff-save-note {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: var(--fs-xs); color: var(--ink-400); margin-top: var(--sp-4);
}
.ff-save-note svg { width: 14px; height: 14px; color: #1d7a45; }

/* ---- Review ---- */
.ff-review-group { margin-bottom: var(--sp-5); }
.ff-review-group h3 {
  font-size: var(--fs-h4); display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2); margin-bottom: var(--sp-3);
}
.ff-review-edit { font-size: var(--fs-xs); font-weight: 650; color: var(--blue); cursor: pointer; background: none; border: 0; }
.ff-review-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.2rem var(--sp-5); }
@media (max-width: 560px) { .ff-review-list { grid-template-columns: minmax(0,1fr); } }
.ff-review-item { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0.4rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.ff-review-item dt { color: var(--ink-600); }
.ff-review-item dd { margin: 0; font-weight: 650; color: var(--navy); text-align: right; }
.ff-review-empty { color: var(--ink-400); font-style: italic; font-size: var(--fs-sm); }

/* ---- Resume banner ---- */
.ff-resume {
  display: none;
  align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--brass-100); border: 1px solid var(--brass);
  border-radius: var(--r); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5);
}
.ff-resume.is-visible { display: flex; }
.ff-resume p { margin: 0; flex: 1 1 260px; font-size: var(--fs-sm); color: var(--navy); }
.ff-resume .btn-group { gap: 0.5rem; }

/* ---- Done screen ---- */
.ff-done { text-align: center; padding: var(--sp-6) 0; display: none; }
.ff-done.is-visible { display: block; }
.ff-done-check {
  width: 72px; height: 72px; margin: 0 auto var(--sp-5);
  border-radius: 50%; background: #e8f5ec; color: #1d7a45;
  display: flex; align-items: center; justify-content: center;
}
.ff-done-check svg { width: 38px; height: 38px; }

/* ==========================================================================
   21. Fact & Feeling Finder — signature, receipt, and wizard UX polish
   ========================================================================== */

/* ---- The wizard has its own sticky bottom nav on mobile ---- */
@media (max-width: 760px) {
  .ff-nav {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    margin-left: calc(-1 * clamp(1.25rem, 1rem + 2vw, 2.5rem));
    margin-right: calc(-1 * clamp(1.25rem, 1rem + 2vw, 2.5rem));
    padding: var(--sp-4) clamp(1.25rem, 1rem + 2vw, 2.5rem)
             calc(var(--sp-4) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(14, 42, 69, 0.08);
    z-index: 5;
  }
  .ff-nav .btn { flex: 1; }
  .ff-nav .ff-nav-right { flex: 2; }
}

/* ---- Inline tip marker ---- */
.ff-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 0.3rem;
  border-radius: 50%; background: var(--blue-100); color: var(--blue);
  font-size: 0.7rem; font-weight: 800; cursor: help; vertical-align: middle;
  font-family: var(--font-body);
}

/* ---- Signature block ---- */
.ff-sign { grid-column: 1 / -1; }
.ff-sign-intro {
  background: var(--paper); border-radius: var(--r-sm);
  padding: var(--sp-4); font-size: var(--fs-sm); color: var(--ink-600);
  margin-bottom: var(--sp-5);
}
.ff-sign-tabs { display: inline-flex; background: var(--paper); border-radius: var(--r-pill); padding: 4px; margin-bottom: var(--sp-4); }
.ff-sign-tab {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-600);
  padding: 0.45rem 1.1rem; border-radius: var(--r-pill);
}
.ff-sign-tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

.ff-sign-pane { display: none; }
.ff-sign-pane.is-active { display: block; }

.ff-sign-padwrap { position: relative; }
.ff-sign-pad {
  width: 100%; height: 180px;
  border: 2px dashed var(--line); border-radius: var(--r);
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(transparent, transparent 143px, var(--blue-100) 143px, var(--blue-100) 145px);
  touch-action: none; cursor: crosshair; display: block;
}
.ff-sign-pad.is-signed { border-style: solid; border-color: var(--blue); }
.ff-sign-x {
  position: absolute; left: 20px; bottom: 30px; right: 20px;
  border-top: 1.5px solid var(--ink-400); pointer-events: none;
}
.ff-sign-x::before { content: "\2717"; position: absolute; left: 0; top: -1.3rem; color: var(--ink-400); font-size: 1rem; }
.ff-sign-hint { font-size: var(--fs-xs); color: var(--ink-400); margin-top: 0.5rem; }

.ff-sign-typed-preview {
  height: 110px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-size: 3rem; color: var(--navy); margin-bottom: var(--sp-3);
  overflow: hidden; padding: 0 var(--sp-4);
}
.ff-sign-typed-preview:empty::before { content: "Your signature will appear here"; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--ink-400); }

.ff-sign-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap; }
.ff-sign-meta { display: grid; grid-template-columns: 1fr 200px; gap: var(--sp-4); margin-top: var(--sp-5); }
@media (max-width: 560px) { .ff-sign-meta { grid-template-columns: minmax(0,1fr); } }

/* ---- DocuSign panel ---- */
.ff-docusign {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.ff-docusign-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: var(--sp-4) var(--sp-5); background: var(--paper); border-bottom: 1px solid var(--line);
}
.ff-docusign-badge {
  font-weight: 800; color: #fff; background: #ffce00; color: #1a1a1a;
  border-radius: var(--r-sm); padding: 0.15rem 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.02em;
}
.ff-docusign-body { padding: var(--sp-5); }
.ff-docusign-frame { width: 100%; min-height: 620px; border: 0; display: block; }

/* ---- Signed receipt (print) ---- */
.ff-receipt { display: none; margin-top: var(--sp-6); text-align: left; }
.ff-receipt.is-visible { display: block; }
.ff-receipt-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--navy); padding-bottom: var(--sp-3); margin-bottom: var(--sp-4);
}
.ff-receipt-head h3 { margin: 0; }
.ff-receipt-sig {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); flex-wrap: wrap;
}
.ff-receipt-sig img { max-height: 90px; }
.ff-receipt-sig .typed { font-family: "Caveat", "Segoe Script", cursive; font-size: 2.5rem; color: var(--navy); }
.ff-receipt-sig-label { font-size: var(--fs-xs); color: var(--ink-400); border-top: 1px solid var(--ink-400); padding-top: 0.3rem; margin-top: 0.5rem; }

@media print {
  .ff-rail, .ff-progress, .site-header, .topstrip, .site-footer, .ff-nav, .ff-resume { display: none !important; }
  .ff-receipt { display: block !important; }
}

/* ==========================================================================
   22. Trusted Network — partner cards
   ========================================================================== */
.partner-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 620px) {
  .partner-card { grid-template-columns: minmax(0, 1fr); }
}
.partner-mark {
  width: 132px; height: 132px;
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--navy), #235e8d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 2.5rem;
  letter-spacing: 0.02em;
}
@media (max-width: 620px) { .partner-mark { width: 84px; height: 84px; font-size: 1.75rem; } }
.partner-body { min-width: 0; }
.partner-head h3 { margin: 0.5rem 0 0.25rem; font-size: var(--fs-h3); }
.partner-company { color: var(--ink-400); font-weight: 600; font-size: var(--fs-sm); margin: 0; }
.partner-tagline { font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: var(--fs-lg); margin: 1rem 0 0.75rem; }
.partner-body > p { color: var(--ink-600); }
.partner-services {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.partner-services li {
  margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--navy);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.3rem 0.8rem;
}
.partner-contact {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.partner-contact a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 650; font-size: var(--fs-sm); text-decoration: none; color: var(--blue);
}
.partner-contact a:hover { color: var(--navy); }

/* ==========================================================================
   23. Modern refresh — softer shapes, calmer surfaces, one motion system
   Brand unchanged (slate + blue, Fraunces + Hanken Grotesk). This layer only
   refines what is above it; delete this section to return to the old look.
   ========================================================================== */
:root {
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(28, 42, 56, 0.05), 0 4px 14px -6px rgba(28, 42, 56, 0.08);
  --shadow: 0 2px 6px rgba(28, 42, 56, 0.04), 0 18px 40px -18px rgba(28, 42, 56, 0.22);
  --shadow-lg: 0 4px 10px rgba(28, 42, 56, 0.05), 0 30px 60px -24px rgba(28, 42, 56, 0.3);
  --line: #e4ebf3;
  interpolate-size: allow-keywords; /* lets FAQ answers animate open where supported */
}

/* ---- Type ------------------------------------------------------------------ */
h1 { letter-spacing: -0.022em; }
h2 { letter-spacing: -0.016em; }
.section-head { margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.section-head p { line-height: 1.6; }

/* Eyebrow gets a short "wake" line — the one small device repeated site-wide */
.eyebrow { display: inline-flex; align-items: center; gap: 0.65em; }
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.section--navy .eyebrow,
.section--navy .section-head .eyebrow,
.pagehero .eyebrow { color: var(--periwinkle); }
.crumbs a:hover { color: #fff; }

/* ---- Surfaces -------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 2.25rem + 5.5vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.75rem + 3vw, 4rem); }
.section--paper { background: linear-gradient(180deg, #f6f9fd 0%, #f0f5fb 100%); }
.section--sky { background: linear-gradient(180deg, #eef4fc 0%, #f6f9fd 100%); }
.section--navy {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(125, 173, 251, 0.16), transparent 60%),
    var(--navy);
}
.pagehero::before { background: linear-gradient(180deg, transparent 55%, rgba(28, 42, 56, 0.28)); }

/* ---- Buttons: same pills, livelier response --------------------------------- */
.btn {
  border-width: 1.5px;
  transition: transform 0.35s var(--ease-out), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:hover { box-shadow: 0 12px 26px -10px rgba(47, 116, 176, 0.6); }
.btn-navy:hover { box-shadow: 0 12px 26px -12px rgba(28, 42, 56, 0.55); }
.btn-outline { border-color: rgba(45, 62, 78, 0.3); }
.btn-outline:hover { border-color: var(--navy); }

/* ---- Cards ------------------------------------------------------------------ */
.card {
  border-color: var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s var(--ease);
}
a.card:hover, .card--hover:hover, .card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #d3e2f3;
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.45s var(--ease-out);
}
a.card:hover .card-icon, .card-hover:hover .card-icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.04); }
.card--paper { background: #f5f8fc; box-shadow: none; }
.card--navy { border-radius: var(--r-lg); }
.post-card .photo { border-radius: var(--r); }
.testimonial { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.callout { border-radius: var(--r); }
.callout--brass { background: var(--blue-100); border-color: #cfe0f3; }

/* "Is this you?" — clean cards with a soft quotation mark instead of a heavy side bar */
.worry {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 3.4rem clamp(1.5rem, 1.2rem + 1vw, 2rem) clamp(1.5rem, 1.2rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.worry::before {
  content: "\201C";
  position: absolute;
  top: 0.75rem; left: 1.5rem;
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--periwinkle);
}
.worry:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---- Signature: the Nautical Planning "course line" ---------------------------
   Each step is a waypoint. When the row scrolls into view the route draws from
   one waypoint to the next and each marker fills in turn. */
.steps { --steps-gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); gap: var(--steps-gap); }
.step { padding-top: 4.25rem; }
.step::before {
  content: counter(step);
  top: 0; left: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--blue);
  background: #fff;
  border: 1.5px solid #c9dbf0;
  box-shadow: 0 0 0 6px rgba(47, 116, 176, 0.07);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 250ms);
}
.step::after {
  top: 22px; left: 58px;
  right: calc(10px - var(--steps-gap));
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--periwinkle));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 400ms);
}
.steps.is-in .step::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.steps.is-in .step::after { transform: scaleX(1); }
.reveal.reveal--course { opacity: 1; transform: none; } /* the row stays put; its steps animate */
.section--navy .step::before { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; box-shadow: none; }
.section--navy .step::after { background: linear-gradient(90deg, var(--periwinkle), rgba(255, 255, 255, 0.35)); }

/* Vertical variant (Trusted Network): the route runs down the left side */
.steps.steps--list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.75rem; }
.steps--list .step { padding-top: 0.4rem; padding-left: 4rem; min-height: 46px; }
.steps--list .step h3 { font-size: var(--fs-h4); }
.steps--list .step::after {
  display: block;
  top: 54px; left: 22px; right: auto; bottom: -1.1rem;
  width: 2px; height: auto;
  background: linear-gradient(180deg, var(--blue), var(--periwinkle));
  transform: scaleY(0);
  transform-origin: top center;
}
.steps--list.is-in .step::after { transform: scaleY(1); }
.steps--list .step:last-child::after { display: none; }
@media (max-width: 900px) { .steps--list .step::after { display: block; } }

/* ---- Lists, quotes, stats ---------------------------------------------------- */
.checklist li::before { background: var(--blue); border-color: var(--blue); }
.checklist li::after { border-color: #fff; }
.pullquote { border-left-color: var(--periwinkle); }
.stat-num { color: #fff; }
.stats > div { padding-left: 1.1rem; border-left: 2px solid rgba(125, 173, 251, 0.45); }
.result-figure { color: #fff; }
.ff-comra-score { color: var(--blue); }
.ff-comra-band { color: #fff; background: var(--blue); }
.bar > i { background: linear-gradient(90deg, var(--blue), var(--periwinkle)); }

/* ---- CTA band: slate with soft blue light (no more gold glow) ------------------ */
.cta-band {
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 12% 110%, rgba(125, 173, 251, 0.28), transparent 60%),
    radial-gradient(500px 260px at 95% -20%, rgba(47, 116, 176, 0.45), transparent 60%),
    var(--navy);
}
.cta-band::before { display: none; }

/* ---- FAQ: circular toggle that turns into a close mark; answers glide open ---- */
.faq-item summary { padding-block: 1.25rem; transition: color 0.2s var(--ease); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary::after {
  content: "+";
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 1.3rem;
  transition: transform 0.35s var(--ease-out), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ---- Forms and tools: match the softer shapes ---------------------------------- */
.input, .select, .textarea { border-radius: 12px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.form-card, .tool-shell, .tool-panel, .partner-card { border-radius: var(--r-lg); }
.contact-list .ico { border-radius: 12px; }

/* ---- Footer follows the blue brand ---------------------------------------------- */
.footer-col a { transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.socials a { transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.35s var(--ease-out); }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-newsletter .input:focus { border-color: var(--periwinkle); box-shadow: 0 0 0 3px rgba(125, 173, 251, 0.25); }

/* ---- Motion system -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Home hero plays a short entrance on load */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-grid > * { animation: rise 1s var(--ease-out) both; }
.hero-grid > :nth-child(1) { animation-delay: 0.15s; }
.hero-grid > :nth-child(2) { animation-delay: 0.28s; }
.hero-grid > :nth-child(3) { animation-delay: 0.42s; }
.hero-grid > :nth-child(4) { animation-delay: 0.56s; }
.hero-grid > :nth-child(5) { animation-delay: 0.7s; }
.trustbar { animation: rise 1s var(--ease-out) 0.8s both; }
.site-header:not(.is-stuck) .header-brand { animation: rise 0.9s var(--ease-out) both; }
.site-header:not(.is-stuck) .header-inner { animation: rise 0.9s var(--ease-out) 0.08s both; }

/* Portrait eases in slightly zoomed and settles */
.portrait-frame img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.split-media.is-in .portrait-frame img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hero-grid > *, .trustbar, .site-header .header-brand, .site-header .header-inner { animation: none !important; }
  .step::after, .steps--list .step::after { transform: none; transition: none; }
  .portrait-frame img { transform: none; }
}

@media print {
  .bottombar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   24. Nautical Planning Approach — chart route with a sailing boat
   Four waypoint markers sit on a dashed chart route; when the row scrolls
   into view a boat sails the route, leaving a blue wake, and each waypoint
   lights up as the boat reaches it. Each step is its own card below.
   ========================================================================== */
.section:has(.steps-4):not(.section--navy) {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(47, 116, 176, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(47, 116, 176, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(180deg, #eef4fc 0%, #f7fafd 100%);
}
/* compass rose watermark */
.section:has(.steps-4):not(.section--navy)::before {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 420px; height: 420px;
  opacity: 0.07;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%232f74b0' stroke-width='1.5'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Cpath d='M100 4v192M4 100h192M32 32l136 136M168 32 32 168'/%3E%3Cpath d='M100 10l12 78 78 12-78 12-12 78-12-78-78-12 78-12z' fill='%232f74b0' fill-opacity='.35'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section:has(.steps-4) > .wrap { position: relative; z-index: 1; }

.steps.steps-4 {
  --marker: 58px;
  --pad: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
  --gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
  --col: calc((100% - 3 * var(--gap)) / 4);
  position: relative;
  gap: var(--gap);
  padding-top: 48px; /* room for the boat, which sails just above the waypoints */
}

/* each step = waypoint marker on the route + a card below it */
.steps.steps-4 .step {
  position: relative;
  isolation: isolate;
  padding: calc(var(--marker) + 2.4rem) var(--pad) var(--pad);
}
.steps.steps-4 .step::after { /* the card */
  content: "";
  display: block;
  position: absolute;
  inset: calc(var(--marker) / 2 + 14px) 0 0 0;
  right: 0;
  z-index: -1;
  height: auto;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform: none;
  transition: box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.steps.steps-4 .step:last-child::after { display: block; }
.steps.steps-4 .step:hover::after { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* waypoint marker with an icon per stage */
.steps.steps-4 .step::before {
  content: "";
  top: 0; left: var(--pad);
  width: var(--marker); height: var(--marker);
  border: 0;
  background: var(--blue) var(--icon) center / 26px no-repeat;
  box-shadow: 0 0 0 7px #fff, 0 10px 24px -8px rgba(47, 116, 176, 0.6);
  transform: scale(0.55);
  opacity: 0.35;
  transition: transform 0.6s var(--ease-out), opacity 0.4s var(--ease);
  transition-delay: var(--arrive, 0ms);
}
.steps.steps-4.is-in .step::before { transform: none; opacity: 1; background-color: var(--blue); }
.steps.steps-4 .step:nth-child(2) { --arrive: 300ms; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m15.5 8.5-2 5-5 2 2-5z'/%3E%3C/svg%3E"); }
.steps.steps-4 .step:nth-child(3) { --arrive: 1150ms; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9c2.5-2 4.5-2 7 0s4.5 2 7 0 4.5-2 6 0M2 15c2.5-2 4.5-2 7 0s4.5 2 7 0 4.5-2 6 0'/%3E%3C/svg%3E"); }
.steps.steps-4 .step:nth-child(4) { --arrive: 2000ms; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v14M13 4.5c4 3 6 7 6.5 11H13zM11 7c-2.5 2.5-4 5-4.5 8.5H11'/%3E%3Cpath d='M3 18h18l-2.5 3h-13z'/%3E%3C/svg%3E"); }
.steps.steps-4 .step:nth-child(5) { --arrive: 2850ms; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M4.9 19.1l2.8-2.8M16.3 7.7l2.8-2.8'/%3E%3C/svg%3E"); }

/* "Step 01" label above each title */
.steps.steps-4 .step h3::before {
  content: "Step " counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.steps.steps-4 .step h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); margin-bottom: 0.6rem; }
.steps.steps-4 .step p { line-height: 1.65; }

/* the route: from the first waypoint centre to the last */
.steps-4 .course {
  position: absolute;
  top: calc(48px + var(--marker) / 2 - 1px);
  left: calc(var(--pad) + var(--marker) / 2);
  right: calc(var(--col) - var(--pad) - var(--marker) / 2);
  height: 2px;
  z-index: 0;
  pointer-events: none;
}
.course-route {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(47, 116, 176, 0.35) 0 8px, transparent 8px 16px);
}
.course-wake {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--periwinkle), var(--blue));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2.6s cubic-bezier(0.45, 0, 0.25, 1) 0.3s;
}
.course-boat {
  position: absolute;
  bottom: 36px; left: 0;
  width: 40px; height: 32px;
  margin-left: -20px;
  color: var(--navy);
  transition: left 2.6s cubic-bezier(0.45, 0, 0.25, 1) 0.3s;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
.steps-4.is-in .course-wake { transform: scaleX(1); }
.steps-4.is-in .course-boat { left: 100%; }

/* dark variant (Services page) */
.section--navy .steps.steps-4 .step::after { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.section--navy .steps.steps-4 .step::before { box-shadow: 0 0 0 7px var(--navy); }
.section--navy .steps.steps-4 .step h3::before { color: var(--periwinkle); }
.section--navy .course-route { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 8px, transparent 8px 16px); }
.section--navy .course-boat { color: #fff; }

/* tablet / phone: cards in a grid, no route */
@media (max-width: 900px) {
  .steps.steps-4 { padding-top: 0; }
  .steps-4 .course { display: none; }
  .steps.steps-4 .step { --arrive: 0ms; }
}

@media (prefers-reduced-motion: reduce) {
  .course-boat { animation: none; transition: none; }
  .course-wake { transition: none; }
  .steps.steps-4 .step::before { transform: none; opacity: 1; transition: none; }
}

/* ==========================================================================
   25. Section-by-section designs
   Each block below is one section's idea. Everything keys off the existing
   .reveal / .is-in motion system; all motion is switched off at the end for
   people who prefer reduced motion.
   ========================================================================== */

/* ---- 25.1 Banners: photo settles like a camera coming to rest --------------- */
.hero::before, .pagehero::before { z-index: 1; }
.hero .wrap, .pagehero .wrap { position: relative; z-index: 2; }
.banner-photo {
  position: absolute; inset: 0;
  z-index: 0;
  background: var(--hero-image, url("../img/hero-sailboat.jpg")) center 42% / cover no-repeat;
  animation: settle 12s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}
.pagehero .banner-photo {
  background:
    linear-gradient(150deg, rgba(45, 62, 78, 0.9), rgba(45, 62, 78, 0.62)),
    url("../img/hero-sailboat.jpg") center 42% / cover no-repeat;
}
@keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }

/* home tagline: the rule draws down before the quote appears */
.hero-tagline { border-left: 0; position: relative; }
.hero-tagline::before {
  content: "";
  position: absolute; left: 0; top: 0.2em; bottom: 0.2em;
  width: 3px; border-radius: 3px;
  background: var(--periwinkle);
  transform-origin: top;
  animation: draw-y 0.8s var(--ease-out) 0.1s both;
}
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* interior banners: content rises on load, a horizon line draws under the title */
.pagehero .wrap > * { animation: rise 0.9s var(--ease-out) both; }
.pagehero .wrap > :nth-child(1) { animation-delay: 0.1s; }
.pagehero .wrap > :nth-child(2) { animation-delay: 0.18s; }
.pagehero .wrap > :nth-child(3) { animation-delay: 0.26s; }
.pagehero .wrap > :nth-child(4) { animation-delay: 0.34s; }
.pagehero .wrap > :nth-child(5) { animation-delay: 0.42s; }
.pagehero .wrap > :nth-child(6) { animation-delay: 0.5s; }
.pagehero h1 { position: relative; padding-bottom: 0.9rem; }
.pagehero h1::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 72px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--periwinkle), rgba(125, 173, 251, 0));
  transform-origin: left;
  animation: draw-x 0.9s var(--ease-out) 0.6s both;
}
.pagehero .text-center h1::after, .pagehero .wrap.text-center h1::after { left: 50%; margin-left: -36px; }
.crumbs {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-xs);
}
.pagehero-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  margin: var(--sp-4) 0 var(--sp-3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pagehero-icon svg { width: 28px; height: 28px; }
.tag--light { background: rgba(255, 255, 255, 0.14); color: #fff; }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; color: #c5d6e5; font-size: var(--fs-sm); }
.post-byline span { opacity: 0.6; }
.post-avatar {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: #fff !important; opacity: 1 !important;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
}

/* ---- 25.2 Trust card: each credential "pings" like a position fix ------------ */
.trustbar-list li svg { transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.trustbar-list li.is-in svg { animation: ping 1s var(--ease-out) calc(var(--reveal-delay, 0ms) + 0.9s) 1 both; }
.trustbar-list li:hover svg { background: var(--blue); color: #fff; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(47, 116, 176, 0.45); }
  100% { box-shadow: 0 0 0 12px rgba(47, 116, 176, 0); }
}

/* ---- 25.3 "Is this you?": the question, then where we start ----------------- */
.worry { display: flex; flex-direction: column; overflow: hidden; }
.worry .link-arrow {
  margin: auto calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2rem)) calc(-1 * clamp(1.5rem, 1.2rem + 1vw, 2rem));
  padding: 1rem clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin-top: var(--sp-5);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--blue-100);
  border-top: 1px solid #d6e4f4;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.worry .link-arrow::before {
  content: "Where we start";
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-400);
  transition: color 0.3s var(--ease);
}
.worry .link-arrow::after { position: absolute; right: 1.6rem; bottom: 1.15rem; }
.worry { position: relative; }
.worry:hover .link-arrow { background: var(--blue); color: #fff; }
.worry:hover .link-arrow::before { color: rgba(255, 255, 255, 0.75); }
.worry:hover .link-arrow::after { transform: translateX(4px); }
.worry::before { transform: scale(0.6); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.4s var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 0.25s); }
.worry.is-in::before { transform: none; opacity: 1; }

/* ---- 25.4 Home "Six pieces. One plan.": one panel in six panes that assemble -- */
.grid.grid--plan {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.grid--plan > .card { border: 0; border-radius: 0; box-shadow: none; }
.grid--plan > a.card:hover { transform: none; box-shadow: none; background: #f4f8fe; }
.grid--plan > .reveal:nth-child(-n+3):not(.is-in) { transform: translateY(-16px); }
.grid--plan > .reveal:nth-child(n+4):not(.is-in) { transform: translateY(16px); }
.grid--plan > .reveal:nth-child(3n+1):not(.is-in) { transform: translate(-16px, 0); }
.grid--plan > .reveal:nth-child(3n):not(.is-in) { transform: translate(16px, 0); }

/* ---- 25.5 Portrait: frame slides out from behind, then the badge rises ------- */
.portrait::before { transform: translate(-22px, -34px); opacity: 0; transition: transform 1s var(--ease-out) 0.3s, opacity 0.6s var(--ease) 0.3s; }
.portrait-badge { opacity: 0; transform: translateY(12px); transition: transform 0.8s var(--ease-out) 0.8s, opacity 0.6s var(--ease) 0.8s; }
.split-media.is-in .portrait::before { transform: none; opacity: 1; }
.split-media.is-in .portrait-badge { opacity: 1; transform: none; }
.split.split--sticky { align-items: start; }
@media (min-width: 881px) {
  .split--sticky > .split-media, .split--sticky > div:first-child:not(.split-media) { position: sticky; top: 110px; }
}

/* ---- 25.6 Checklists: each promise is ticked as it arrives -------------------- */
.checklist li::before { transform: scale(0.4); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease); transition-delay: calc(var(--reveal-delay, 0ms) + 0.2s); }
.checklist li::after { clip-path: inset(100% 0 0 0); transition: clip-path 0.35s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + 0.45s); }
.checklist li.is-in::before { transform: none; opacity: 1; }
.checklist li.is-in::after { clip-path: inset(0 0 0 0); }
.checklist li.reveal { transform: translateX(-10px); }
.checklist li.reveal.is-in { transform: none; }

/* ---- 25.7 Verify card + risk gauge (home) -------------------------------------- */
.verify-card { position: relative; padding-top: 4.5rem; }
.verify-seal {
  position: absolute; top: 1.5rem; left: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; background: var(--blue-100); color: var(--blue);
}
.verify-seal svg { width: 28px; height: 28px; }
.verify-tick { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset 0.6s var(--ease-out) 0.5s; }
.verify-card.is-in .verify-tick { stroke-dashoffset: 0; }
.verify-card .btn-group { align-items: center; }
.card--navy { position: relative; overflow: hidden; }
.gauge { position: absolute; top: 1.25rem; right: 1.25rem; width: 96px; height: auto; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge-track { stroke: rgba(255, 255, 255, 0.12); }
.gauge-fill { stroke: var(--periwinkle); stroke-dasharray: 158; stroke-dashoffset: 158; transition: stroke-dashoffset 1.2s var(--ease-out) 0.3s; }
.gauge-needle { transform-origin: 60px 62px; transform: rotate(-80deg); transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s; }
.gauge-needle line { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.gauge-needle circle { fill: #fff; }
.card--navy.is-in .gauge-fill { stroke-dashoffset: 62; }
.card--navy.is-in .gauge-needle { transform: rotate(20deg); }
@media (max-width: 480px) { .gauge { width: 72px; } }

/* ---- 25.8 CTA band: copy left, actions right, calm water drifting below ------ */
.cta-band { padding-bottom: clamp(3rem, 2.5rem + 3vw, 4.5rem); }
.cta-band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px;
  opacity: 0.22;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20'%3E%3Cpath d='M0 10c20-8 40-8 60 0s40 8 60 0 40-8 60 0 40 8 60 0' fill='none' stroke='%237dadfb' stroke-width='1.5'/%3E%3C/svg%3E") 0 8px / 240px 20px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 20'%3E%3Cpath d='M0 10c15-6 30-6 45 0s30 6 45 0 30-6 45 0 30 6 45 0' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3C/svg%3E") 0 30px / 180px 20px repeat-x;
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 240px 8px, -180px 30px; } }
@media (min-width: 900px) {
  .cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    text-align: left;
    padding-inline: clamp(2.5rem, 2rem + 3vw, 4rem);
  }
  .cta-band > h2, .cta-band > p:not(.fineprint) { grid-column: 1; margin-inline: 0; }
  .cta-band > .btn-group { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
  .cta-band > .fineprint { grid-column: 1 / -1; max-width: none; margin-inline: 0; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, 0.12); }
}
.cta-band.is-in .btn-group { animation: rise 0.8s var(--ease-out) 0.15s both; }

/* ---- 25.9 About: career path, stats, veteran plaque, definitions, values ------ */
.path { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-5); display: flex; flex-wrap: wrap; gap: 0; position: relative; }
.path li {
  position: relative; margin: 0; padding: 1.6rem 1.25rem 0 0;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-600);
}
.path li::before { /* waypoint */
  content: ""; position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #b9cfea;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 0.3s);
}
.path li::after { /* leg to the next waypoint */
  content: ""; position: absolute; left: 18px; right: 4px; top: 6px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--periwinkle));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 0.45s);
}
.path li:last-child::after { display: none; }
.path li.is-in::before { background: var(--blue); border-color: var(--blue); }
.path li.is-in::after { transform: scaleX(1); }
.path li.is-now { color: var(--navy); }
.path li.is-now::before { box-shadow: 0 0 0 5px rgba(47, 116, 176, 0.15); }

.stat-num { overflow: hidden; }
.stat-num > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + 0.1s); }
.stats > .is-in .stat-num > span { transform: none; }
.stats > div { position: relative; border-left: 0; }
.stats > div::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: rgba(125, 173, 251, 0.5);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.8s var(--ease-out); transition-delay: var(--reveal-delay, 0ms);
}
.stats > .is-in::before { transform: scaleY(1); }
.stat-link { display: inline-block; margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight: 650; color: var(--periwinkle); text-decoration: none; }
.stat-link::after { content: " \2192"; }
.stat-link:hover { color: #fff; }

.vet-plaque {
  position: relative;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(125, 173, 251, 0.2), transparent 60%),
    var(--navy);
  color: #d3e0ea;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.vet-shield { width: 64px; height: 64px; margin-bottom: var(--sp-4); }
.vet-shield .shield, .vet-shield .tick { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vet-shield .shield { stroke: var(--periwinkle); stroke-width: 2.5; stroke-dasharray: 150; stroke-dashoffset: 150; transition: stroke-dashoffset 1.2s var(--ease-out) 0.2s; }
.vet-shield .tick { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 32; stroke-dashoffset: 32; transition: stroke-dashoffset 0.5s var(--ease-out) 1.2s; }
.vet-plaque.is-in .shield, .vet-plaque.is-in .tick { stroke-dashoffset: 0; }
.vet-title { font-family: var(--font-display); font-size: var(--fs-h3); color: #fff; line-height: 1.2; margin-bottom: var(--sp-2); }
.vet-sub { color: var(--periwinkle); font-weight: 650; margin-bottom: var(--sp-5); }
.vet-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #93aac0; margin-bottom: var(--sp-3); }
.vet-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vet-chips li { margin: 0; padding: 0.45rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #e6eef6; font-size: var(--fs-sm); }

.grid--define .card h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: 0.15rem; }
.define-label { font-family: var(--font-display); font-style: italic; color: var(--ink-400); font-size: var(--fs-sm) !important; margin-bottom: var(--sp-4); }
.grid--define .card { border-top: 3px solid var(--blue); }

.values { border-top: 1px solid var(--line); }
.value {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.value h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0; }
.value p { color: var(--ink-600); margin: 0; }
.value .keep { color: var(--blue); }
.value .over { text-decoration: none; position: relative; color: var(--navy); transition: color 0.5s var(--ease) 0.7s, opacity 0.5s var(--ease) 0.7s; }
.value .over::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out) 0.4s;
}
.value.is-in .over { opacity: 0.45; }
.value.is-in .over::after { transform: scaleX(1); }
.value .cost { background: linear-gradient(transparent 62%, rgba(125, 173, 251, 0.35) 62%) no-repeat 0 0 / 0% 100%; color: inherit; transition: background-size 0.8s var(--ease-out) 0.4s; }
.value.is-in .cost { background-size: 100% 100%; }
@media (max-width: 720px) { .value { grid-template-columns: minmax(0, 1fr); } }

/* ---- 25.10 Services: the domino chain, the six-service index, first meeting -- */
.chain { list-style: none; padding: 0; margin: var(--sp-6) 0; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; width: min(1040px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
.chain li { white-space: nowrap; }
.chain li {
  position: relative; margin: 0;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #cfe0f3;
  background: #fff;
  font-size: var(--fs-sm); font-weight: 650; color: var(--navy);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.chain li + li { margin-left: 2.1rem; }
.chain li + li::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 2.1rem; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, #cfe0f3, var(--blue));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + 0.1s);
}
.chain li.is-in { background: var(--blue); border-color: var(--blue); color: #fff; transition-delay: calc(var(--reveal-delay, 0ms) + 0.35s); }
.chain li.is-in::before { transform: scaleX(1); }
@media (max-width: 1000px) {
  .chain { flex-direction: column; align-items: center; width: auto; left: 0; transform: none; }
  .chain li + li { margin-left: 0; margin-top: 1.4rem; }
  .chain li + li::before { right: auto; left: 50%; top: -1.4rem; width: 2px; height: 1.4rem; margin: 0 0 0 -1px; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #cfe0f3, var(--blue)); }
  .chain li.is-in::before { transform: scaleY(1); }
}

.svc-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); border-top: 1px solid var(--line); }
.svc-index--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-row {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: center;
  padding: 1.4rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  border-radius: 14px 14px 0 0;
  transition: background-color 0.3s var(--ease);
}
.svc-row::after { /* underline that fills blue on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.svc-row:hover { background: #f4f8fe; }
.svc-row:hover::after { transform: scaleX(1); }
.svc-row .card-icon { margin: 0; width: 52px; height: 52px; }
.svc-row:hover .card-icon { background: var(--blue); color: #fff; }
.svc-text h3 { font-size: var(--fs-h4); margin: 0 0 0.2rem; }
.svc-text p { margin: 0; color: var(--ink-600); font-size: var(--fs-sm); line-height: 1.55; }
.svc-go {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid #d3e2f3; color: var(--blue);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.svc-go::before { content: "\2192"; font-weight: 700; }
.svc-row:hover .svc-go { transform: translateX(4px); background: var(--blue); color: #fff; border-color: var(--blue); }
.svc-index--compact .svc-row { grid-template-columns: auto minmax(0, 1fr); }
.svc-index--compact .svc-go { display: none; }
.svc-index--compact { border-top: 0; }
@media (max-width: 900px) { .svc-index, .svc-index--compact { grid-template-columns: minmax(0, 1fr); } }

.meeting-card { position: relative; padding-top: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.meeting-time {
  position: absolute; top: -18px; right: 1.5rem;
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--blue); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; line-height: 1;
  box-shadow: 0 12px 26px -10px rgba(47, 116, 176, 0.65);
}
.meeting-time strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 2px; }
.meeting-card.is-in .meeting-time { animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both; }
@keyframes pop { from { transform: scale(0.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- 25.11 Service pages ---------------------------------------------------------- */
.lead--opener {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.45;
  color: var(--navy);
  padding-left: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.lead--opener::before {
  content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--periwinkle));
  transform: scaleY(0); transform-origin: top; transition: transform 0.9s var(--ease-out) 0.2s;
}
.lead--opener.is-in::before { transform: scaleY(1); }

/* the actual work, as a work order with a progress rail */
.workorder { list-style: none; counter-reset: wo; padding: 0; margin: 0; position: relative; }
.wo-item { counter-increment: wo; position: relative; padding: 0 0 clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 4.25rem; margin: 0; }
.wo-item::before {
  content: counter(wo, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: #fff; color: var(--blue); border: 1.5px solid #c9dbf0;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
  z-index: 1;
}
.wo-item::after {
  content: ""; position: absolute; left: 23px; top: 44px; bottom: -4px; width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--periwinkle));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.wo-item:last-child::after { display: none; }
.wo-item.is-in::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.wo-item.is-in::after { transform: scaleY(1); }
.wo-item h3 { font-size: var(--fs-h4); margin-bottom: 0.35rem; padding-top: 0.55rem; }
.wo-item p { color: var(--ink-600); margin: 0; }

/* "how it fits your bigger plan": hub diagram */
.bigger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bigger .lead { color: #c5d6e5; }
.bigger .link-arrow { color: var(--periwinkle); }
.bigger .link-arrow:hover { color: #fff; }
.plan-ring { width: 100%; max-width: 440px; margin-inline: auto; overflow: visible; }
.ring-orbit { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ring-spoke { stroke: rgba(125, 173, 251, 0.35); stroke-width: 1.5; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 0.9s var(--ease-out); transition-delay: calc(var(--i) * 90ms + 0.2s); }
.ring-spoke.is-active { stroke: var(--periwinkle); stroke-width: 2.5; }
.ring-node circle { fill: #3e556a; stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; transition: transform 0.5s var(--ease-out); transform-box: fill-box; transform-origin: center; transform: scale(0); transition-delay: calc(var(--i) * 90ms); }
.ring-node.is-active circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.ring-node text { fill: #a8bed2; font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.ring-node.is-active text { fill: #fff; font-weight: 800; }
.ring-hub { fill: #fff; }
.ring-hub-text { fill: var(--navy); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bigger.is-in .ring-spoke { stroke-dashoffset: 0; }
.bigger.is-in .ring-node circle { transform: scale(1); }
.bigger.is-in .ring-node.is-active circle { animation: beacon 2.4s ease-out 1.4s infinite; }
@keyframes beacon { 0%, 100% { stroke-width: 2; } 50% { stroke-width: 6; stroke: rgba(255, 255, 255, 0.5); } }
@media (max-width: 880px) { .bigger { grid-template-columns: minmax(0, 1fr); } .plan-ring { max-width: 340px; } }

/* free tool strip */
.tool-strip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #f4f8fe, #e9f1fb);
  border: 1px solid #d6e4f4;
  text-decoration: none; color: inherit;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tool-strip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-strip-text { display: flex; flex-direction: column; gap: 0.25rem; }
.tool-strip-text strong { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; }
.tool-strip-text span:last-child { color: var(--ink-600); font-size: var(--fs-sm); }
.tool-strip .tag { align-self: flex-start; }
.tool-strip-visual { display: flex; align-items: flex-end; gap: 6px; height: 56px; padding: 0 6px; }
.tool-strip-visual i { display: block; width: 12px; border-radius: 4px; background: var(--blue); transform: scaleY(0.15); transform-origin: bottom; transition: transform 0.8s var(--ease-out); }
.tool-strip-visual i:nth-child(1) { height: 40%; transition-delay: 0.2s; opacity: 0.45; }
.tool-strip-visual i:nth-child(2) { height: 65%; transition-delay: 0.3s; opacity: 0.65; }
.tool-strip-visual i:nth-child(3) { height: 50%; transition-delay: 0.4s; opacity: 0.8; }
.tool-strip-visual i:nth-child(4) { height: 100%; transition-delay: 0.5s; }
.tool-strip.is-in .tool-strip-visual i { transform: none; }
@media (max-width: 640px) { .tool-strip { grid-template-columns: minmax(0, 1fr); } .tool-strip-visual { display: none; } }

/* FAQ reads as a numbered index; the open answer gets a blue rail */
.faq { counter-reset: faq; }
.faq-item { counter-increment: faq; position: relative; }
.faq-item summary::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-display); font-size: 0.95rem; color: var(--periwinkle);
  min-width: 2.2rem; padding-top: 0.2em;
}
.faq-item summary { justify-content: flex-start; }
.faq-item summary::after { margin-left: auto; }
.faq-answer { padding-left: 2.2rem; }
.faq-item::before {
  content: ""; position: absolute; left: -1rem; top: 1.1rem; bottom: 1.1rem; width: 3px; border-radius: 3px;
  background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease-out);
}
.faq-item[open]::before { transform: scaleY(1); }

/* ---- 25.12 Trusted Network: three standards, each stamped as met ------------- */
.grid--criteria > .card { position: relative; }
.grid--criteria > .card::after {
  content: "\2713";
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem;
  color: #fff; background: var(--blue);
  transform: scale(1.6); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0ms) + 0.5s);
}
.grid--criteria > .card.is-in::after { transform: none; opacity: 1; }
.partner-card { border-radius: var(--r-lg); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.partner-mark { border-radius: 20px; background: linear-gradient(150deg, var(--navy), var(--blue)); background-size: 150% 150%; transition: background-position 0.6s var(--ease); }
.partner-card:hover .partner-mark { background-position: 100% 100%; }
.partner-card--open { margin-top: var(--sp-5); grid-template-columns: 64px minmax(0, 1fr); align-items: center; background: transparent; border: 1.5px dashed #c9dbf0; box-shadow: none; }
.partner-card--open:hover { transform: none; box-shadow: none; }
.partner-card--open h3 { font-size: var(--fs-h4); margin-bottom: 0.25rem; }
.partner-card--open p { color: var(--ink-600); margin: 0; font-size: var(--fs-sm); }
.partner-open-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.75rem; color: var(--blue); background: var(--blue-100); }

/* ---- 25.13 Blog: front-page grid, sliding filter, category artwork ----------- */
.filter-bar { position: relative; display: inline-flex; padding: 5px; gap: 2px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { position: relative; z-index: 1; border-color: transparent !important; background: transparent !important; white-space: nowrap; transition: color 0.3s var(--ease); }
.filter-btn[aria-pressed="true"] { color: #fff; }
.filter-ink { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--navy); transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out); z-index: 0; }
.post-card.is-leaving { opacity: 0 !important; transform: scale(0.97) !important; transition: opacity 0.18s var(--ease), transform 0.18s var(--ease) !important; }
.post-art {
  position: relative; overflow: hidden;
  min-height: 180px !important;
  border-radius: var(--r) !important;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.post-art::after { display: none !important; }
.post-art svg { opacity: 0 !important; }
.post-art::before {
  content: ""; position: absolute; inset: 0;
  background: var(--art) center / 46% no-repeat;
  opacity: 0.9;
  transition: transform 0.8s var(--ease-out);
}
.post-card:hover .post-art::before { transform: scale(1.08) translateY(-4px); }
.post-art[data-cat="retirement"] { background: linear-gradient(135deg, #2d3e4e, #2f74b0); --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='32' cy='26' r='10'/%3E%3Cpath d='M4 26h56M10 32h44M18 37h28M32 8v4M16 14l3 3M48 14l-3 3'/%3E%3C/svg%3E"); }
.post-art[data-cat="taxes"], .post-art[data-cat="tax-planning"] { background: linear-gradient(135deg, #35485a, #3d6f9e); --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M8 14h12l-2 20H10zM26 10h12l-2 24h-8zM44 18h12l-2 16h-8z'/%3E%3C/svg%3E"); }
.post-art[data-cat="markets"], .post-art[data-cat="investing"] { background: linear-gradient(135deg, #2d3e4e, #4a86c0); --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 32l12-12 8 7 12-15 8 8 12-10'/%3E%3Cpath d='M6 36h52' opacity='.5'/%3E%3C/svg%3E"); }
.post-art[data-cat="veterans"], .post-art[data-cat="veterans-finances"] { background: linear-gradient(135deg, #2b3d4d, #285f90); --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M32 4l6 12 13 2-9.5 9 2.3 13L32 34l-11.8 6 2.3-13L13 18l13-2z'/%3E%3C/svg%3E"); }
.post-art:not([data-cat="retirement"]):not([data-cat="taxes"]):not([data-cat="tax-planning"]):not([data-cat="markets"]):not([data-cat="investing"]):not([data-cat="veterans"]):not([data-cat="veterans-finances"]) { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='20' r='14'/%3E%3Cpath d='m38 14-4 9-9 4 4-9z'/%3E%3C/svg%3E"); }

/* reading progress + article typography */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--blue), var(--periwinkle)); transform: scaleX(0); transform-origin: left; }
.prose { line-height: 1.8; }
.prose h2 { scroll-margin-top: 110px; position: relative; }
.prose ul { list-style: none; padding-left: 1.4rem; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.2rem; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prose blockquote { border-left-color: var(--periwinkle); font-family: var(--font-display); font-size: var(--fs-xl); color: var(--navy); }
.is-post .prose > p:first-of-type { font-size: var(--fs-lg); color: var(--navy); }

/* "On this page" (articles + legal pages) */
.page-toc { margin: 0 0 var(--sp-7); padding: var(--sp-5); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.page-toc-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); margin-bottom: var(--sp-3); }
.page-toc ol { list-style: none; padding: 0; margin: 0; }
.page-toc li { margin: 0; }
.page-toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; border-left: 2px solid var(--line); color: var(--ink-600); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.page-toc a:hover { color: var(--blue); }
.page-toc a.is-active { color: var(--navy); font-weight: 700; border-left-color: var(--blue); }
@media (min-width: 1180px) {
  .wrap-narrow.prose.has-toc { max-width: calc(var(--wrap-narrow) + 300px); display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 60px; }
  .prose.has-toc > * { grid-column: 2; }
  .prose.has-toc > .page-toc { grid-column: 1; grid-row: 1 / span 200; align-self: start; position: sticky; top: 110px; margin: 0; background: transparent; border: 0; padding: 0; }
}

/* ---- 25.14 Contact: details as tappable tiles; forms that respond ------------- */
.contact-list--tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.contact-list--tiles li {
  flex-direction: column; gap: var(--sp-3); margin: 0;
  padding: var(--sp-5); border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.contact-list--tiles li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-list--tiles li:hover .ico { background: var(--blue); color: #fff; }
.contact-list--tiles .ico { transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.contact-list--tiles a { word-break: break-word; }
@media (max-width: 480px) { .contact-list--tiles { grid-template-columns: minmax(0, 1fr); } }
.map-embed { border-radius: var(--r-lg); box-shadow: var(--shadow); }

.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(125, 173, 251, 0.25); }
.field:focus-within > label { color: var(--blue); }
.field > label { transition: color 0.2s var(--ease); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { animation: nudge 0.32s ease-in-out 2; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form-status.is-visible { animation: rise 0.5s var(--ease-out) both; border-radius: var(--r); }
.form-status.is-success::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 0.5rem; border-radius: 50%; background: #1d6b39; color: #fff; font-size: 0.8rem; font-weight: 800; }

/* ---- 25.15 Tools hub: the three main tools lead as feature cards ------------- */
@media (min-width: 900px) {
  .tools-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tools-bento > * { grid-column: span 2; }
  .tools-bento > .tool-card--feature { grid-column: span 2; background: linear-gradient(170deg, #fff 55%, #eef4fc); }
  .tools-bento > :nth-child(n+4) { grid-column: span 3; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); align-content: start; }
  .tools-bento > :nth-child(n+4) .card-icon { grid-row: 1 / span 4; margin: 0; }
}
.tool-card--feature { border-top: 3px solid var(--blue); }

/* ---- 25.16 Tool widgets: small, useful responses ------------------------------ */
.quote-card.is-visible { animation: rise 0.5s var(--ease-out) both; }
.opt .opt-box { border-radius: var(--r); min-height: 56px; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.25s var(--ease-out); }
.opt input:checked + .opt-box { animation: pick 0.3s var(--ease-out); }
@keyframes pick { 50% { transform: scale(0.98); } }
.quiz-q.is-active { animation: slide-in 0.4s var(--ease-out) both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.dropzone { border-radius: var(--r-lg); transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.dropzone.is-over { border-color: var(--blue); background: var(--blue-100); }
.dropzone.is-over svg { animation: bob 1.2s ease-in-out infinite; }

/* ---- 25.17 Steps on tablet/phone: the route runs down the left --------------- */
@media (max-width: 900px) {
  .steps.steps-4 { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .steps.steps-4 .step { padding: calc(var(--marker) / 2 + 0.25rem) var(--pad) var(--pad) calc(var(--marker) + 2rem); }
  .steps.steps-4 .step::before { left: 0; top: 0.75rem; }
  .steps.steps-4 .step::after { inset: 0 0 0 calc(var(--marker) + 0.75rem); }
  .steps.steps-4 .step:not(:last-child) { background: linear-gradient(180deg, var(--blue), var(--periwinkle)) calc(var(--marker) / 2 - 1px) calc(0.75rem + var(--marker)) / 2px calc(100% - var(--marker) + 0.5rem) no-repeat; }
}

/* ---- 25.18 Footer + bottom bar + drawer ----------------------------------------- */
.footer-top { position: relative; }
.footer-top::before { /* dashed route across the top of the footer */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(125, 173, 251, 0.45) 0 10px, transparent 10px 20px);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-out);
}
.site-footer.is-seen .footer-top::before { transform: scaleX(1); }
.footer-col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease-out), color 0.2s var(--ease); padding-bottom: 1px; }
.footer-col a:hover { background-size: 100% 1px; }
.footer-legal p { max-width: none; }

.bottombar {
  left: 50%; right: auto; bottom: 12px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  border-radius: 999px;
  background: rgba(45, 62, 78, 0.96);
  box-shadow: 0 16px 40px -12px rgba(20, 31, 42, 0.55);
  padding-bottom: 0;
  margin-bottom: env(safe-area-inset-bottom);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.bottombar-inner { padding: 0.45rem; gap: 0.45rem; }
.bottombar .btn { min-width: 0; flex: 1 1 0; }
.bottombar.is-hidden { transform: translate(-50%, calc(100% + 24px)); opacity: 0; pointer-events: none; }
body { padding-bottom: 84px; }

.drawer[data-open="true"] .drawer-link, .drawer[data-open="true"] .drawer-group { animation: rise 0.45s var(--ease-out) both; }
.drawer[data-open="true"] .drawer-body > :nth-child(2) { animation-delay: 0.04s; }
.drawer[data-open="true"] .drawer-body > :nth-child(3) { animation-delay: 0.08s; }
.drawer[data-open="true"] .drawer-body > :nth-child(4) { animation-delay: 0.12s; }
.drawer[data-open="true"] .drawer-body > :nth-child(5) { animation-delay: 0.16s; }
.drawer[data-open="true"] .drawer-body > :nth-child(6) { animation-delay: 0.2s; }
.drawer-link.is-active { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.75rem; }

/* ---- 25.19 Reduced motion: show every final state, no movement ---------------- */
@media (prefers-reduced-motion: reduce) {
  .banner-photo, .hero-tagline::before, .pagehero .wrap > *, .pagehero h1::after,
  .trustbar-list li.is-in svg, .cta-band::after, .cta-band.is-in .btn-group, .meeting-card.is-in .meeting-time,
  .bigger.is-in .ring-node.is-active circle, .quote-card.is-visible, .quiz-q.is-active, .dropzone.is-over svg,
  .field.is-invalid .input, .form-status.is-visible, .drawer[data-open="true"] .drawer-link, .drawer[data-open="true"] .drawer-group { animation: none !important; }
  .worry::before, .portrait::before, .portrait-badge, .checklist li::before, .checklist li::after, .verify-tick,
  .gauge-fill, .gauge-needle, .path li::before, .path li::after, .stat-num > span, .stats > div::before,
  .vet-shield .shield, .vet-shield .tick, .value .over, .value .over::after, .value .cost, .chain li, .chain li::before,
  .lead--opener::before, .wo-item::before, .wo-item::after, .ring-spoke, .ring-node circle, .tool-strip-visual i,
  .grid--criteria > .card::after, .footer-top::before, .bottombar { transition: none !important; }
  .worry::before, .portrait::before, .portrait-badge, .checklist li::before { transform: none; opacity: 1; }
  .checklist li::after { clip-path: none; }
  .verify-tick, .vet-shield .shield, .vet-shield .tick { stroke-dashoffset: 0; }
  .gauge-fill { stroke-dashoffset: 62; } .gauge-needle { transform: rotate(20deg); }
  .path li::after, .lead--opener::before, .wo-item::after, .footer-top::before { transform: none; }
  .stat-num > span, .stats > div::before, .tool-strip-visual i, .ring-node circle { transform: none; }
  .ring-spoke { stroke-dashoffset: 0; }
  .grid--criteria > .card::after { transform: none; opacity: 1; }
  .value .over::after { transform: scaleX(1); } .value .over { opacity: 0.45; } .value .cost { background-size: 100% 100%; }
}

/* long values (e.g. the email address) wrap instead of overflowing on phones */
.link-arrow { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }

/* "Is this you?" answer strip: full card width, pinned to the bottom so all three line up, arrow inside */
.worry > p { margin-bottom: var(--sp-5); }
.worry .link-arrow {
  position: relative;
  max-width: none;
  align-self: stretch;
  margin-top: auto;
  padding-right: 4rem;
}
.worry .link-arrow::after {
  position: absolute;
  right: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  top: 50%; bottom: auto;
  width: 34px; height: 34px;
  margin-top: -17px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 8px -2px rgba(28, 42, 56, 0.18);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.worry:hover .link-arrow::after { transform: translateX(4px); background: #fff; color: var(--blue); }

/* ---- 26. Floating call / schedule dock ----------------------------------------
   Hidden over the top banner; springs up once the visitor scrolls, steps aside
   at the footer. Two clear actions: a quiet call button and a bright booking one. */
body { padding-bottom: 0; }
.bottombar {
  left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(600px, calc(100% - 24px));
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgba(33, 47, 60, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 48px -16px rgba(15, 25, 35, 0.6), 0 2px 6px rgba(15, 25, 35, 0.2);
  transform: translateX(-50%);
  opacity: 1;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.3s var(--ease), visibility 0s linear 0s;
}
.bottombar.is-hidden {
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.35s;
}
.bottombar-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 6px; padding: 0; }

.dock-call, .dock-book {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 56px;
  padding: 0.4rem 0.6rem 0.4rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.dock-ico {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
}
.dock-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dock-text small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.75; white-space: nowrap; }
.dock-text strong { font-size: 0.98rem; font-weight: 700; color: inherit; white-space: nowrap; }

.dock-call { color: #fff; }
.dock-call .dock-ico { background: rgba(255, 255, 255, 0.1); color: var(--periwinkle); border: 1px solid rgba(255, 255, 255, 0.14); }
.dock-call:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.dock-book {
  color: #fff;
  background: linear-gradient(135deg, #3a86c8, var(--blue));
  box-shadow: 0 8px 22px -8px rgba(47, 116, 176, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative; overflow: hidden;
}
.dock-book .dock-ico { background: rgba(255, 255, 255, 0.18); color: #fff; }
.dock-book:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(47, 116, 176, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.dock-go {
  margin-left: auto; margin-right: 0.35rem;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--blue); font-weight: 800;
  transition: transform 0.35s var(--ease-out);
}
.dock-book:hover .dock-go { transform: translateX(3px); }
/* a single soft light sweep across the booking button each time the dock appears */
.dock-book::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.bottombar:not(.is-hidden) .dock-book::after { animation: sweep 1.1s var(--ease-out) 0.45s 1; }
@keyframes sweep { 0% { left: -40%; opacity: 1; } 100% { left: 120%; opacity: 1; } }
.dock-call:focus-visible, .dock-book:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; }

@media (max-width: 520px) {
  .bottombar { width: calc(100% - 16px); bottom: calc(8px + env(safe-area-inset-bottom)); }
  .bottombar-inner { grid-template-columns: auto minmax(0, 1fr); }
  .dock-call { padding-right: 0.45rem; }
  .dock-call .dock-text { display: none; } /* phone: just the round call button */
  .dock-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bottombar, .bottombar.is-hidden { transition: opacity 0.2s linear, visibility 0s linear 0.2s; }
  .bottombar.is-hidden { transform: translateX(-50%); }
  .bottombar:not(.is-hidden) .dock-book::after { animation: none; }
}
@media print { .bottombar { display: none !important; } }

/* ==========================================================================
   27. Every screen — phones, tablets, laptops, large desktops
   Findings from a measured sweep of all 31 pages at 320–1920px plus short
   laptop and landscape-phone heights.
   ========================================================================== */

/* Long words (email addresses, web links, "Comprehensive") never push past the edge */
h1, h2, h3, h4, p, li, dd, address, figcaption, .btn, .tag { overflow-wrap: break-word; }
a[href^="mailto:"], .partner-contact a, .prose a { overflow-wrap: anywhere; }
html { scroll-padding-bottom: 96px; } /* focused fields never land under the floating dock */

/* ---- Touch screens: every control at least ~44px tall ------------------------- */
@media (pointer: coarse), (max-width: 1040px) {
  .footer-col li { margin-bottom: 0.1rem; }
  .footer-col a, .footer-bottom nav a, .drawer-group .sub a { display: inline-block; padding-block: 0.6rem; }
  .footer-col p a { padding-block: 0.6rem; }
  .socials a { width: 44px; height: 44px; }
  .filter-btn { min-height: 44px; }
  .chip { min-height: 40px; padding: 0.55rem 0.95rem; }
  .crumbs a { display: inline-block; padding-block: 0.45rem; }
  .drawer-close { width: 44px; height: 44px; }
  .filelist .frm { min-width: 44px; min-height: 44px; }
  .link-arrow { padding-block: 0.45rem; }
  .worry .link-arrow { padding-block: 1rem; }
  .form-card input[type="checkbox"], .tool-panel input[type="checkbox"], #uConsent { width: 22px; height: 22px; }
}

/* Hover-only lifts don't "stick" after a tap on phones and tablets */
@media (hover: none) {
  a.card:hover, .card-hover:hover, .worry:hover, .tool-strip:hover, .partner-card:hover,
  .contact-list--tiles li:hover, .steps.steps-4 .step:hover::after, .dock-book:hover { transform: none; }
}

/* ---- Small phones (≤ 420px) ------------------------------------------------------ */
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; }
  .btn-lg { padding-inline: 1.3em; }
  .hero .btn-group > .btn, .cta-band .btn-group > .btn, .pagehero .btn-group > .btn { flex: 1 1 100%; }
  .svc-row { grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; padding-inline: 0.25rem; }
  .svc-row .card-icon { width: 44px; height: 44px; }
  .svc-go { display: none; }
  .money-row { grid-template-columns: minmax(0, 1fr) 112px; }
  .ring-node text { font-size: 21px; }
  .ring-hub-text { font-size: 19px; }
  .trustbar-list li { padding: 0.75rem 0.5rem; gap: 0.5rem; }
  .portrait { padding-right: 16px; }
  .meeting-time { width: 64px; height: 64px; right: 1rem; }
  .meeting-time strong { font-size: 1.35rem; }
}

/* ---- Tablets ---------------------------------------------------------------------- */
.contact-list--tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tool-shell { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 960px) { .tool-shell { grid-template-columns: minmax(0, 1fr); } }

/* ---- Short laptop screens (e.g. 1366×768, 1280×720): keep the hero, trust card
        and buttons above the fold ------------------------------------------------------ */
@media (min-width: 1041px) and (max-height: 820px) {
  body, .site-header { --overlay-h: 184px; }
  .header-brand { padding-top: 8px; }
  .header-brand .logo-img { height: 112px; }
  .header-rule { margin-top: 6px; }
  .hero-grid { padding-block: 2.25rem 6rem; }
  .hero-tagline { margin-bottom: var(--sp-3); }
  .pagehero { padding-block: 2rem; }
}

/* Sticky side columns only stick when the screen is tall enough to show them whole */
@media (max-height: 760px) {
  .split--sticky > .split-media, .split--sticky > div:first-child:not(.split-media) { position: static; }
  .tool-result { position: static; }
}
@media (min-width: 961px) and (min-height: 761px) {
  .tool-result { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (min-width: 941px) and (min-height: 761px) {
  .ff-rail { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; }
}

/* ---- Landscape phones: slimmer dock so it doesn't cover the content ---------------- */
@media (max-height: 480px) and (orientation: landscape) {
  .bottombar { bottom: 6px; padding: 4px; }
  .dock-call, .dock-book { min-height: 44px; }
  .dock-ico { width: 34px; height: 34px; }
  .dock-text small { display: none; }
  .header-brand .logo-img { height: 72px; }
  body, .site-header { --overlay-h: 96px; }
}

/* ---- Large desktops (≥ 1600px): use the extra width calmly ------------------------ */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; }
  .hero-grid { max-width: 700px; }
  .hero h1 { font-size: 3.75rem; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1360px; }
  html { font-size: 106.25%; }
}

/* Small decorative labels stay readable */
.post-avatar { font-size: 0.75rem; }
.ff-comra-scale span { font-size: 0.75rem; }

@media (pointer: coarse), (max-width: 1040px) {
  .footer-col a, .footer-bottom nav a, .drawer-group .sub a { padding-block: 0.7rem; }
}
@media (max-width: 360px) {
  .money-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; } /* label above its input on the smallest phones */
}

/* ---- 28. Schedule: live GoHighLevel calendars ---------------------------------- */
.book .lead { margin-bottom: var(--sp-6); }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.book-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  padding: 1.6rem 1.35rem 1.35rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-sm);
  font: inherit; color: inherit; cursor: pointer; overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s var(--ease);
}
.book-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--periwinkle));
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out);
}
.book-card:hover, .book-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d3e2f3; }
.book-card:hover::before, .book-card:focus-visible::before, .book-card.is-featured::before { transform: scaleX(1); }
.book-card:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 3px; }
.book-card.is-featured { border-color: #cfe0f3; background: linear-gradient(180deg, #f4f8fe, #fff 60%); }
.book-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.book-ico {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: var(--sp-4);
  border-radius: 14px; background: var(--blue-100); color: var(--blue);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.45s var(--ease-out);
}
.book-ico svg { width: 24px; height: 24px; }
.book-card:hover .book-ico { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.04); }
.book-dur { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.3rem; }
.book-name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 0.5rem; }
.book-desc { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.6; margin-bottom: var(--sp-5); }
.book-cta { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); }
.book-cta span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.book-card:hover .book-cta span { transform: translateX(4px); }
.book-note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-400); text-align: center; }
@media (max-width: 1180px) and (min-width: 961px) { .book-grid { grid-template-columns: minmax(0, 1fr); } .book-card { flex-direction: row; flex-wrap: wrap; column-gap: 1rem; } }
@media (max-width: 720px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }

.book-fallback { margin-top: var(--sp-5); }
.book-fallback > summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.book-fallback > summary::-webkit-details-marker { display: none; }
.book-fallback > summary::after { content: "+"; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue); font-size: 1.3rem; transition: transform 0.35s var(--ease-out); }
.book-fallback[open] > summary::after { transform: rotate(45deg); }
.book-fallback[open] > summary { margin-bottom: var(--sp-5); }
.tool-result hr { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 1.75rem 0; }
.tool-result .small { font-size: var(--fs-sm); }
.tool-result strong { color: #fff; }

/* the calendar popup */
html.book-open, html.book-open body { overflow: hidden; }
.book-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: clamp(0.5rem, 2vw, 1.5rem); }
.book-modal[hidden] { display: none; }
.book-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 31, 42, 0.62); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s var(--ease); }
.book-modal-panel {
  position: relative; width: min(920px, 100%); max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(10, 20, 30, 0.6);
  overflow: hidden;
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease-out);
}
.book-modal.is-open .book-modal-backdrop { opacity: 1; }
.book-modal.is-open .book-modal-panel { opacity: 1; transform: none; }
.book-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.book-modal-kicker { margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.book-modal-title { margin: 0; font-size: var(--fs-h4); }
.book-modal-close { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--blue-100); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.book-modal-close:hover { background: var(--navy); color: #fff; }
.book-modal-body { position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 420px; }
.book-frame { display: block; width: 100%; min-height: 720px; border: 0; }
.book-loading { display: none; position: absolute; inset: 0; place-content: center; justify-items: center; gap: 0.75rem; color: var(--ink-600); font-size: var(--fs-sm); background: #fff; }
.book-modal-body.is-loading .book-loading { display: grid; }
.book-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--blue-100); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .book-modal { padding: 0; place-items: end stretch; }
  .book-modal-panel { width: 100%; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .book-modal-panel, .book-modal-backdrop, .book-card, .book-card::before { transition: none; }
  .book-loading span { animation-duration: 2s; }
}

/* ---- 29. Imported blog posts: cover photos, figures, tables, section labels ---- */
.post-art.has-img::before { display: none; }
.post-art.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1 !important; transition: transform 0.8s var(--ease-out); }
.post-card:hover .post-art.has-img img { transform: scale(1.05); }
.post-cover { margin: 0 0 var(--sp-7); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--paper); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose.has-toc > .post-cover { grid-column: 2; }
.prose figure { margin: var(--sp-6) 0; }
.prose figure img { border-radius: var(--r); box-shadow: var(--shadow-sm); }
.prose figure + p { font-size: var(--fs-xs); color: var(--ink-400); text-align: center; margin-top: calc(-1 * var(--sp-4)); }
.post-part { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: var(--sp-7) 0 var(--sp-2) !important; }
.post-part + h2, .post-part + h3, .post-part + h4 { margin-top: 0; }
.post-intro { font-size: var(--fs-lg); color: var(--navy); }
.post-intro strong { font-weight: 600; }
.post-stats { list-style: none; padding: 0 !important; margin: var(--sp-5) 0 var(--sp-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }
.post-stats li { margin: 0; padding: var(--sp-5); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; }
.post-stats li::before { display: none; }
.post-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.post-stats span { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.45; }
.table-scroll { overflow-x: auto; margin: var(--sp-5) 0; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.table-scroll th, .table-scroll td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-scroll th { background: var(--paper); color: var(--navy); font-weight: 700; }
.table-scroll tr:last-child td { border-bottom: 0; }
.prose h4 { font-size: var(--fs-lg); margin-top: var(--sp-6); }

/* ---- 30. Blog grid: two featured posts, then even rows of three ----------------- */
.post-card .tag { align-self: flex-start; }
.post-card .post-art svg { display: none; }
.post-card .post-art { aspect-ratio: 16 / 9; min-height: 0 !important; margin-bottom: var(--sp-4); }
@media (min-width: 941px) {
  .post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .post-grid > .post-card { grid-column: span 2; }
  .post-grid:not(.is-filtered) > .post-card:nth-child(-n+2) { grid-column: span 3; }
  .post-grid:not(.is-filtered) > .post-card:nth-child(-n+2) .post-art { aspect-ratio: 16 / 8; }
  .post-grid:not(.is-filtered) > .post-card:nth-child(-n+2) h3 { font-size: var(--fs-h3); }
}

/* ---- 31. Schedule: choose a conversation --------------------------------------- */
.book-section .section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.book { margin: 0; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); align-items: stretch; }
.book-card {
  display: flex; flex-direction: column; align-items: stretch; text-align: left;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  border-radius: 24px;
}
.book-card::before { display: none; }
.book-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--sp-5); }
.book-top .book-ico { margin: 0; width: 48px; height: 48px; }
.book-mode { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); }
.book-len { display: flex; align-items: baseline; gap: 0.45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-400); margin-bottom: 0.35rem; }
.book-len strong { font-family: var(--font-display); font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.5rem); line-height: 1; color: var(--navy); font-weight: 600; letter-spacing: -0.02em; }
.book-name { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-3); }
.book-desc { font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-600); margin-bottom: var(--sp-5); }
.book-good { display: flex; flex-direction: column; gap: 0.55rem; padding-top: var(--sp-4); margin-bottom: var(--sp-6); border-top: 1px solid var(--line); }
.book-good > span { display: flex; align-items: flex-start; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink); line-height: 1.4; }
.book-good svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: 1px; }
.book-cta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; padding: 0 0.5rem 0 1.25rem;
  border-radius: 999px;
  background: var(--blue-100); color: var(--blue);
  font-size: var(--fs-base); font-weight: 700;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.book-cta-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); transition: transform 0.35s var(--ease-out); }
.book-card:hover .book-cta { background: var(--blue); color: #fff; }
.book-card:hover .book-cta span.book-cta-arrow { transform: translateX(3px); }

/* the recommended meeting */
.book-card.is-featured {
  background: radial-gradient(420px 240px at 100% 0%, rgba(125, 173, 251, 0.25), transparent 60%), var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 30px 60px -28px rgba(28, 42, 56, 0.6);
}
@media (min-width: 1041px) { .book-card.is-featured { transform: translateY(-12px); } .book-card.is-featured:hover { transform: translateY(-17px); } }
.book-card.is-featured .book-ico { background: rgba(255, 255, 255, 0.12); color: #fff; }
.book-card.is-featured .book-mode, .book-card.is-featured .book-len { color: #a8bed2; }
.book-card.is-featured .book-len strong, .book-card.is-featured .book-name { color: #fff; }
.book-card.is-featured .book-desc { color: #c5d6e5; }
.book-card.is-featured .book-good { border-top-color: rgba(255, 255, 255, 0.14); }
.book-card.is-featured .book-good > span { color: #e6eef6; }
.book-card.is-featured .book-good svg { color: var(--periwinkle); }
.book-card.is-featured .book-cta { background: var(--blue); color: #fff; }
.book-card.is-featured:hover .book-cta { background: #3a86c8; }
.book-badge { top: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); right: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); background: var(--periwinkle); color: var(--navy); }

.book-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: var(--sp-6) 0 0; }
.book-note svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* three promises */
.book-promises { list-style: none; padding: clamp(1.5rem, 1.2rem + 1vw, 2rem) 0; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-promises li { margin: 0; display: flex; gap: 0.9rem; align-items: flex-start; }
.book-promises li > span:last-child { font-size: var(--fs-sm); color: var(--ink-600); line-height: 1.55; }
.book-promises strong { display: block; font-size: var(--fs-base); color: var(--navy); margin-bottom: 0.15rem; }
.book-promise-ico { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--blue-100); color: var(--blue); }
.book-promise-ico svg { width: 20px; height: 20px; }

/* documents + call */
.book-extras { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); }
.book-bring, .book-call { border-radius: 24px; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
.book-bring { background: var(--paper); border: 1px solid var(--line); }
.book-bring h3, .book-call h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-4); }
.book-docs { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.book-docs li { margin: 0; display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0.95rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.book-docs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.book-call { background: radial-gradient(360px 200px at 100% 0%, rgba(125, 173, 251, 0.22), transparent 60%), var(--navy); color: #c5d6e5; display: flex; flex-direction: column; }
.book-call h3 { color: #fff; }
.book-call .eyebrow { color: var(--periwinkle); }
.book-call-btn { margin-top: auto; display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1.4rem 0.6rem 0.6rem; border-radius: 999px; background: #fff; color: var(--navy); text-decoration: none; transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); align-self: flex-start; }
.book-call-btn:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.book-call-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; }
.book-call-ico svg { width: 20px; height: 20px; }
.book-call-btn small { display: block; font-size: var(--fs-xs); color: var(--ink-400); font-weight: 600; }
.book-call-btn strong { font-size: 1.15rem; color: var(--navy); }
.book-hours { margin-top: var(--sp-4); font-size: var(--fs-xs); color: #93aac0; }

/* request form, folded */
.book-fallback { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2rem); border: 1px dashed #c9dbf0; border-radius: 20px; background: #fff; }
.book-fallback > summary { padding: 1.1rem 1.4rem; font-weight: 400; color: var(--ink-600); }
.book-fallback > summary strong { color: var(--navy); margin-right: 0.35rem; }
.book-fallback[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.book-fallback-body { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }

@media (max-width: 1040px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .book-card.is-featured { order: -1; }
  .book-promises { grid-template-columns: minmax(0, 1fr); }
  .book-extras { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .book-docs { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .book-card:hover, .book-card.is-featured:hover { transform: none; } }

/* blog cards are links: a.card{display:block} was overriding the column layout, so the
   "Read the article" link floated mid-card. Pin it to the bottom so every card lines up. */
a.post-card { display: flex; flex-direction: column; }
a.post-card .card-more { margin-top: auto; padding-top: var(--sp-4); }
a.post-card .post-meta { margin-bottom: var(--sp-3); }

/* ---- 32. Article pages: "More insights" -------------------------------------------- */
.more-reads { border-top: 1px solid var(--line); }
.more-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
.more-head h2 { margin: 0; }
.more-head .link-arrow { white-space: nowrap; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem); }
.more-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s var(--ease);
}
.more-card:hover { color: inherit; transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d3e2f3; }
.more-art { display: block; aspect-ratio: 16 / 9; min-height: 0 !important; margin: 0 !important; border-radius: 0 !important; }
.more-art::before { background-size: 38% !important; }
.more-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); }
.more-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-400); font-weight: 600; }
.more-cat { padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--blue-100); color: var(--blue); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.more-title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; color: var(--navy); margin-bottom: var(--sp-3); }
.more-card:hover .more-title { color: var(--blue); }
.more-excerpt {
  font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-600); margin-bottom: var(--sp-5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.more-go { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); }
.more-go span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.more-card:hover .more-go span { transform: translateX(4px); }
.more-card:hover .post-art.has-img img { transform: scale(1.05); }
@media (max-width: 940px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid > :nth-child(3) { display: none; } /* two side by side reads better on tablets */
}
@media (max-width: 620px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-grid > :nth-child(3) { display: flex; }
  .more-head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}
@media (hover: none) { .more-card:hover { transform: none; } }

/* legal pages */
.legal-updated { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--blue-100); color: var(--blue); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; margin-bottom: var(--sp-5); }
.prose.has-toc > .legal-updated { justify-self: start; }
.legal h2 { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.footer-disclosure strong { color: #fff; font-weight: 700; }
.footer-legal p { max-width: none; text-wrap: pretty; }

/* ---- 33. Fact & Feeling Finder: signing flow ------------------------------------ */
.ff-comra .ff-comra-score { color: #fff; }
.ff-comra-desc { margin: 1rem auto 0; max-width: 60ch; font-size: var(--fs-sm); line-height: 1.6; color: #c5d6e5; }
.ff-edit-banner { margin-bottom: var(--sp-5); padding: 1rem 1.25rem; border-radius: var(--r); background: var(--blue-100); border: 1px solid #cfe0f3; color: var(--navy); }
.ff-edit-banner p { margin: 0.25rem 0 0; color: var(--ink-600); }
.ff-edit-banner.is-error { background: #fdecea; border-color: #f3c3bd; }
.ff-done-actions { justify-content: center; margin-top: 1.5rem; }
.ff-done-actions [hidden] { display: none !important; }
.ff-staff .pagehero .eyebrow::after { content: " · staff mode"; }


/* ==========================================================================
   34. Fact & Feeling Finder — document review before signing
   ========================================================================== */
.ff-doc { grid-column: 1 / -1; margin-bottom: var(--sp-5); }
.ff-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; background: var(--navy); color: #fff; border-radius: var(--r) var(--r) 0 0; }
.ff-doc-bar strong { display: block; color: #fff; font-family: var(--font-display, Georgia, serif); font-size: 1.05rem; }
.ff-doc-bar span { font-size: 0.8125rem; color: #b9cadb; }
.ff-doc-bar .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.ff-doc-bar .btn:hover { background: rgba(255,255,255,.1); }
.ff-doc-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.75rem 1.1rem; background: var(--blue-100); border-left: 1px solid #cfe0f3; border-right: 1px solid #cfe0f3; }
.ff-doc-jump-label { font-size: 0.8125rem; font-weight: 700; color: var(--navy); margin-right: 0.25rem; }
.ff-doc-chip { font: inherit; font-size: 0.8125rem; line-height: 1; padding: 0.45rem 0.7rem; border-radius: 999px; border: 1px solid #b9d0ea; background: #fff; color: var(--blue-600); cursor: pointer; transition: background .15s, border-color .15s; }
.ff-doc-chip:hover, .ff-doc-chip:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.ff-doc-frame { display: block; width: 100%; height: 900px; border: 1px solid #cfe0f3; border-top: 0; border-radius: 0 0 var(--r) var(--r); background: #e9eef4; }
.ff-preflight { margin: var(--sp-4) 0 0; border-color: #f3c3bd; background: #fdf3f1; }
.ff-preflight p { margin: 0.25rem 0; }
.ff-preflight .ff-doc-chip { margin-left: 0.35rem; vertical-align: middle; }
.ff-preflight[hidden], #ffToReview[hidden] { display: none !important; }
@media (max-width: 640px) {
  .ff-doc { margin-left: calc(var(--ff-panel-pad, 1rem) * -1); margin-right: calc(var(--ff-panel-pad, 1rem) * -1); }
  .ff-doc-bar, .ff-doc-frame { border-radius: 0; }
  .ff-doc-jump { padding: 0.65rem 0.8rem; }
  .ff-nav-right { flex-wrap: wrap; justify-content: flex-end; }
}

/* ==========================================================================
   35. Fact & Feeling Finder — save link dialog + mobile experience
   ========================================================================== */
#ffForm { scroll-margin-top: calc(var(--header-h) + 16px); }
.ff-save-chip { display: none; }
.ff-progress-top { align-items: center; }

/* Save & finish later dialog: centered card on desktop, bottom sheet on phones */
.ff-modal[hidden] { display: none !important; }
.ff-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ff-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 32, 44, 0.55); animation: ffFade .2s ease; }
.ff-modal-panel { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 28px 26px 24px; box-shadow: 0 24px 60px rgba(14, 30, 45, 0.28); animation: ffRise .25s var(--ease); }
.ff-modal-panel h2 { font-size: 1.45rem; margin: 0 0 8px; padding-right: 28px; }
.ff-modal-lead { color: var(--ink-600); font-size: var(--fs-sm); margin: 0 0 18px; }
.ff-modal-lead strong { color: var(--navy); }
.ff-modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink-600); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ff-modal-x:hover { background: var(--blue-100); color: var(--navy); }
.ff-modal .field { margin-bottom: 14px; }
.ff-modal-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--navy); margin: 4px 0 12px; cursor: pointer; }
.ff-modal-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.ff-modal-check small { display: block; color: var(--ink-400); font-size: 0.75rem; line-height: 1.45; margin-top: 3px; }
.ff-modal-note { font-size: 0.8rem; color: var(--ink-400); margin: 0 0 16px; }
.ff-modal-error { background: #fdecea; border: 1px solid #f3c3bd; color: #8a2b20; border-radius: 10px; padding: 10px 12px; font-size: var(--fs-sm); margin: 0 0 14px; }
.ff-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ff-modal-actions .btn-primary { flex: 1 1 200px; }
.ff-modal-check-icon { width: 52px; height: 52px; border-radius: 50%; background: #e8f5ec; color: #1d7a45; display: grid; place-items: center; margin-bottom: 12px; }
.ff-modal-linklabel { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 6px; }
.ff-modal-link { display: flex; gap: 8px; margin-bottom: 10px; }
.ff-modal-link .input { font-size: 0.85rem; background: var(--paper); }
html.ff-modal-open, html.ff-modal-open body { overflow: hidden; }
@keyframes ffFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ffRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  /* The form has its own action bar; hide the site-wide call/book dock here. */
  body.ff-page .bottombar { display: none !important; }

  /* Progress sticks under the header, with a compact Save button. */
  .ff .ff-progress { position: sticky; top: var(--header-h); z-index: 6; margin: 0 -16px 14px; padding: 10px 16px 12px; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
  .ff-progress-top { gap: 10px; margin-bottom: 8px; }
  .ff-progress-step { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ff-progress-pct { white-space: nowrap; }
  .ff-save-chip { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--blue-600); background: var(--blue-100); border: 1px solid #cfe0f3; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
  #ffForm { scroll-margin-top: calc(var(--header-h) + 70px); }

  /* Roomier content, tighter chrome. */
  .ff-panel { padding: 20px 16px 0; border-radius: 14px; }
  .ff-step-head { margin-bottom: 18px; }
  .ff-step-head h2 { font-size: 1.5rem; }
  .ff-step-head p { font-size: var(--fs-sm); }
  .ff-intro-note { padding: 12px 14px; }
  .ff-q > legend, .ff-q > .ff-q-label { font-size: 0.98rem; line-height: 1.45; }
  .ff-choice-box { padding: 0.8rem 0.9rem; min-height: 48px; }
  .ff-choices.ff-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-rep-row { padding: 14px 12px; }
  .ff-rep-add { width: 100%; justify-content: center; min-height: 48px; }
  .input, .select, .textarea { font-size: 16px; min-height: 48px; } /* 16px stops iOS zooming into fields */
  .field input, .field select, .field textarea { scroll-margin-bottom: 110px; scroll-margin-top: calc(var(--header-h) + 80px); }
  .ff-figures { gap: 10px; }
  .ff-comra { padding: 20px 16px; }

  /* Bottom action bar: Back + Continue, thumb-sized. */
  .ff-nav { margin-left: -16px; margin-right: -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; flex-wrap: nowrap; align-items: stretch; }
  .ff-nav .btn { min-height: 50px; }
  .ff-nav #ffBack { flex: 0 0 auto; padding-inline: 1.15rem; }
  .ff-nav #ffBack:disabled { display: none; }
  .ff-nav .ff-nav-right { flex: 1 1 auto; flex-wrap: wrap; gap: 8px; }
  .ff-nav .ff-nav-right .btn { flex: 1 1 auto; }
  .ff-nav #ffSaveExit { display: none; }
  .ff-nav #ffToReview { order: -1; flex-basis: 100%; min-height: 44px; }
  .ff-save-note { justify-content: center; text-align: center; margin: 12px 0 16px; }

  /* Review step: the document runs edge to edge. */
  .ff-doc { margin-left: -16px; margin-right: -16px; }
  .ff-doc-jump { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .ff-doc-jump::-webkit-scrollbar { display: none; }
  .ff-doc-chip { white-space: nowrap; flex-shrink: 0; }
  .ff-preflight .ff-doc-chip { white-space: normal; }

  /* Dialog becomes a bottom sheet. */
  .ff-modal { align-items: flex-end; padding: 0; }
  .ff-modal-panel { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; padding: 24px 18px calc(20px + env(safe-area-inset-bottom)); animation: ffSheet .28s var(--ease); }
  .ff-modal-panel::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: #d3dde8; margin: -10px auto 14px; }
  .ff-modal-actions { flex-direction: column-reverse; }
  .ff-modal-actions .btn { width: 100%; min-height: 50px; flex: none; }
}
@keyframes ffSheet { from { transform: translateY(100%); } to { transform: none; } }
.ff-doc-jump-label { white-space: nowrap; }
/* Sticky bars on phones are solid (no backdrop blur): blur on sticky layers can
   leave "ghost" copies of the page behind while scrolling in mobile Chromium. */
@media (max-width: 760px) {
  .ff-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .ff .ff-progress { background: #fff; }
  .ff-step { animation: none; }
}

/* Booking popup: shown only if the GoHighLevel calendar is blocked or very slow */
.book-fallback { margin: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: center; font-size: var(--fs-sm); color: var(--ink-600); }
.book-fallback p { margin: 0 0 .6rem; }
.book-fallback p:last-child { margin-bottom: 0; }
.book-fallback[hidden] { display: none; }

/* ==========================================================================
   36. After signing: thank-you page + "preparing your signing page" popup
   ========================================================================== */
.ty-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); text-align: center; }
.ty-card .ff-done-check { margin: 0 auto 1rem; }
.ty-card h2 { margin: 0 0 1.25rem; }
.ty-steps { list-style: none; counter-reset: ty; margin: 0 auto 1.75rem; padding: 0; max-width: 34rem; text-align: left; display: grid; gap: 1rem; }
.ty-steps li { counter-increment: ty; position: relative; padding-left: 3rem; }
.ty-steps li::before { content: counter(ty); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--blue-100); color: var(--blue); font-weight: 700; display: grid; place-items: center; }
.ty-steps strong { display: block; color: var(--navy); }
.ty-steps span { display: block; color: var(--ink-600); font-size: var(--fs-sm); margin-top: .15rem; }
.ty-note { margin: 1.5rem 0 0; font-size: var(--fs-sm); }

.ff-loading { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(28, 42, 56, .55); opacity: 0; transition: opacity .2s ease; }
.ff-loading[hidden] { display: none; }
.ff-loading.is-open { opacity: 1; }
.ff-loading-panel { width: min(26rem, 100%); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 2rem 1.5rem 1.75rem; text-align: center; }
.ff-loading-spinner { width: 3.25rem; height: 3.25rem; margin: 0 auto 1.1rem; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--blue); animation: ff-spin .9s linear infinite; }
.ff-loading-title { margin: 0 0 .4rem; font-size: 1.3rem; color: var(--navy); }
.ff-loading-msg { margin: 0 0 1.1rem; color: var(--ink-600); min-height: 1.5em; }
.ff-loading-bar { height: 6px; border-radius: 99px; background: var(--paper-200); overflow: hidden; margin: 0 0 1rem; }
.ff-loading-bar i { display: block; height: 100%; width: 5%; background: var(--blue); border-radius: inherit; transition: width .6s ease; }
.ff-loading-note { margin: 0; font-size: var(--fs-sm); color: var(--ink-400); }
.ff-loading-note strong { color: var(--ink-600); }
html.ff-loading-open { overflow: hidden; }
@keyframes ff-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ff-loading-spinner { animation-duration: 2.4s; } .ff-loading, .ff-loading-bar i { transition: none; } }

/* ==========================================================================
   37. Cloudflare Turnstile slot (forms). Empty unless Cloudflare asks the
       visitor to click; then it takes its own full-width line.
   ========================================================================== */
.ts-slot { flex: 1 1 100%; width: 100%; }
.ts-slot:empty { display: none; }
.ts-slot iframe { max-width: 100%; }
.ts-slot > div:not(:empty) { margin-top: .75rem; }
