/* =============================================================
   Funding Globe — Design System
   Brand: Navy #00416B  |  Blue #045199  (per brand guide v3)
   ============================================================= */

:root {
  /* ---- Brand (locked to brand guide v3) ---- */
  --navy:        #00416B;
  --navy-deep:   #002F4D;
  --blue:        #045199;
  --blue-light:  #1D6BC0;

  /* ---- Refined supporting palette ---- */
  --accent:      #D4A24C;        /* refined gold — less yellow, more refined */
  --accent-soft: #F4E6C5;        /* gold tinted highlight */
  --ink:         #16223A;        /* deeper text — better contrast */
  --body:        #2D3645;        /* primary paragraph color */
  --muted:       #5F6877;        /* secondary text */
  --line:        #DDE3EB;        /* hairlines */
  --soft:        #ECF1F7;        /* cooler section background */
  --bg:          #F6F8FB;        /* page-level wash */
  --white:       #FFFFFF;
  --sand:        #FBF4E6;        /* sell-us-your-debt cream */
  --red:         #B7322B;
  --green:       #1F7A4D;

  --maxw:        1180px;
  --radius:      10px;
  --shadow-sm:   0 1px 2px rgba(11,39,66,.04);
  --shadow:      0 6px 20px rgba(11,39,66,.07);
  --shadow-lg:   0 24px 56px rgba(11,39,66,.12);

  /* ---- Typography ---- */
  --sans:        "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --display:     "Plus Jakarta Sans", "Inter", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --serif:       "Plus Jakarta Sans", "Georgia", serif;  /* legacy fallback */
}

/* =================== Reset & base =================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";    /* Inter stylistic alts: single-storey a, cleaner figures */
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
svg:not([width]) { width: 1em; height: 1em; vertical-align: -.15em; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.018em;        /* Plus Jakarta is slightly wider; tighten */
  font-weight: 700;
  font-feature-settings: "ss01", "cv11";
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.028em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.022em; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: -.012em; }

/* Tabular numerals for figures (stats, criteria, prices) */
.stat, .criteria, .case-amount, [data-counter], .num {
  font-variant-numeric: tabular-nums;
}
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: .8em;
}
.eyebrow::before { content: "— "; color: var(--accent); }

/* =================== Layout =================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

section { padding: 80px 0; }
section.section-sm { padding: 48px 0; }
section.section-lg { padding: 110px 0; }
.bg-soft    { background: var(--soft); }
.bg-bg      { background: var(--bg); }
.bg-sand    { background: var(--sand); }
.bg-navy    { background: var(--navy); color: #DCE6EE; }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4 { color: #fff; }
.bg-navy .eyebrow { color: var(--accent); }
.bg-navy a { color: #B4D2E8; }

/* =================== Header =================== */
.topbar {
  background: var(--navy-deep);
  color: #C9D5E0;
  font-size: .85rem;
  padding: 8px 0;
  line-height: 1.4;
}
.topbar .container { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar a { color: #C9D5E0; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar .topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar svg { width: 14px; height: 14px; flex: none; display: inline-block; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,65,107,.02);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 24px;
}

.footer-brand picture { display: block; margin-bottom: 18px; }
.footer-brand .footer-logo { width: auto; height: auto; max-width: 280px; display: block; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand picture { display: block; }
.brand-logo { height: 56px; width: auto; max-width: 200px; display: block; }
.mobile-nav-head .brand-logo { height: 44px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--navy); background: var(--soft); }

.nav-group { position: relative; }
.nav-group > .nav-link::after {
  content: ""; display: inline-block; margin-left: 6px;
  width: 6px; height: 6px; border: 2px solid currentColor;
  border-top: 0; border-left: 0; transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
}
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 12px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .15s ease;
}
.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 12px; color: var(--ink); border-radius: 6px;
  font-size: .92rem; line-height: 1.3;
}
.dropdown a small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; font-weight: 400; }
.dropdown a:hover { background: var(--soft); color: var(--navy); }

/* Mega-menu — multi-column */
.dropdown--mega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 600px; padding: 16px; }
.dropdown-col h5 {
  font-family: var(--display); font-size: .72rem; letter-spacing: .14em;
  color: var(--blue); text-transform: uppercase; font-weight: 700;
  margin: 0 0 6px; padding: 6px 12px;
}
.dropdown-col a { padding: 8px 12px; }
.nav-group--mega .dropdown { left: auto; }
.nav-group--mega:nth-last-child(-n+2) .dropdown { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { white-space: nowrap; }
/* "Pay" lives alongside Apply now but in a subdued outline so it doesn't
   visually compete with the primary CTA. */
.nav-pay { background: transparent; color: var(--navy); border-color: var(--line); }
.nav-pay:hover { background: var(--soft); border-color: var(--navy); color: var(--navy); }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 6px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* =================== Mobile full-screen drawer =================== */
.mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  overscroll-behavior: contain;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.mobile-nav-close {
  background: var(--soft); border: 0; color: var(--navy);
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 1.8rem; font-weight: 400; line-height: 1; cursor: pointer;
}
.mobile-nav-close:hover { background: var(--navy); color: #fff; }
.mobile-nav-body {
  flex: 1; padding: 20px; overflow-y: auto;
}
.m-link {
  display: block; padding: 18px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; color: var(--navy);
  font-size: 1.15rem; text-decoration: none;
}
.m-section { border-bottom: 1px solid var(--line); }
.m-section > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 14px; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; color: var(--navy);
  font-size: 1.15rem;
}
.m-section > summary::-webkit-details-marker { display: none; }
.m-section > summary::after {
  content: ""; width: 10px; height: 10px;
  border: 2px solid var(--blue); border-top: 0; border-left: 0;
  transform: rotate(45deg); transition: transform .2s ease;
}
.m-section[open] > summary::after { transform: rotate(-135deg); }
.m-section-body { padding: 4px 14px 14px; }
.m-col h5 {
  font-family: var(--display); font-size: .68rem; letter-spacing: .14em;
  color: var(--blue); text-transform: uppercase; font-weight: 700;
  margin: 12px 0 6px;
}
.m-col a {
  display: block; padding: 10px 14px;
  color: var(--ink); text-decoration: none;
  font-size: 1rem; border-radius: 6px;
}
.m-col a:hover { background: var(--soft); color: var(--navy); }
.mobile-nav-foot {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav-foot a { color: var(--navy); padding: 8px 0; text-decoration: none; font-weight: 500; }

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display);
  font-weight: 600; font-size: .95rem;
  padding: 13px 22px; border-radius: 6px;
  border: 2px solid var(--navy);
  background: var(--navy); color: #fff;
  cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--gold { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.btn--gold:hover { background: #BE8E3A; border-color: #BE8E3A; color: var(--navy); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--navy); padding: 13px 6px; }
.btn--ghost:hover { background: var(--soft); border-color: transparent; color: var(--navy); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* =================== Hero =================== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(4,81,153,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero h1 { color: var(--navy); }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p.lead { font-size: 1.18rem; color: var(--body); margin-bottom: 28px; }
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: var(--navy); margin-bottom: 4px; }
.hero-card p.muted { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }

/* Hero with full-bleed background photo */
.hero--photo {
  padding: 120px 0 100px;
  background: var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.hero--photo .hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero--photo .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.hero--photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,30,55,.92) 0%, rgba(0,47,77,.78) 50%, rgba(0,65,107,.55) 100%),
    linear-gradient(180deg, rgba(0,30,55,.25) 0%, rgba(0,30,55,0) 40%);
}
.hero--photo .container { position: relative; z-index: 1; }
.hero--photo .hero-text { color: #fff; }
.hero--photo h1 { color: #fff; }
.hero--photo h1 em { color: var(--accent); }
.hero--photo p.lead { color: rgba(255,255,255,.95); }
.eyebrow--light { color: var(--accent) !important; }
.eyebrow--light::before { color: rgba(255,255,255,.5); }
.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero--photo .hero-card { background: #fff; color: var(--ink); }

/* =================== Trust strip =================== */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.trust-item svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* =================== Cards =================== */
.cards { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 28px; transition: all .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { color: var(--navy); }
.card p:last-of-type { margin-bottom: 16px; }
.card a.more {
  margin-top: auto; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.card a.more::after { content: "→"; transition: transform .15s ease; }
.card a.more:hover::after { transform: translateX(3px); }

.card--icon { padding: 32px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card--audience { padding: 36px; border-top: 4px solid var(--blue); }
.card--audience.alt { border-top-color: var(--accent); }
.card--audience.alt2 { border-top-color: var(--green); }

.card--feature {
  background: var(--white);
  padding: 32px;
}
.card--feature .label {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 8px; display: block;
}

/* =================== Process / steps =================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--display); font-weight: 700; font-size: 2.4rem;
  color: var(--soft); position: absolute; top: 10px; right: 18px;
  line-height: 1;
}
.step .step-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; display: block; }
.step .step-time { color: var(--blue); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; display: block; }
.step p { color: var(--body); font-size: .95rem; margin: 0; }

/* =================== Criteria block =================== */
.criteria {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.criteria > div { padding: 0 4px; }
.criteria .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.criteria .value { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.25rem; line-height: 1.3; }

/* =================== Page title strip =================== */
.page-title {
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%, #001E37 100%);
  color: #fff; padding: 60px 0 76px;
  position: relative; overflow: hidden;
}
.page-title::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .5;
}
.page-title .container { position: relative; }
.page-title h1 { color: #fff; margin: 0; }
.page-title p { color: #B4D2E8; font-size: 1.1rem; margin: 12px 0 0; max-width: 660px; }
.breadcrumb { color: #8FB1CB; font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: #B4D2E8; }
.breadcrumb a:hover { color: #fff; }

/* =================== FAQ accordion =================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 50px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; color: var(--navy);
  font-size: 1.05rem; line-height: 1.4;
}
.faq-q::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--soft);
  color: var(--blue); font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.faq-item[open] .faq-q::after { content: "−"; background: var(--navy); color: #fff; }
.faq-a { padding: 0 0 22px; color: var(--body); }
.faq-a p { margin: 0 0 .8em; }

/* =================== Forms =================== */
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px; letter-spacing: .02em;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 1rem;
  transition: all .15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(4,81,153,.12);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-help { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-submit { margin-top: 12px; }

/* =================== Testimonials =================== */
.testimonial {
  background: #fff; border-left: 4px solid var(--blue);
  padding: 28px 32px; border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
}
.testimonial blockquote {
  margin: 0 0 16px; font-family: var(--serif); font-size: 1.15rem;
  color: var(--ink); line-height: 1.55; font-style: italic;
}
.testimonial cite { color: var(--muted); font-size: .9rem; font-style: normal; }
.testimonial cite strong { color: var(--navy); display: block; font-style: normal; }

/* =================== Case study cards =================== */
.case-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: all .2s ease;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.case-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; min-height: 2.6em; }
.case-card .case-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.case-card .case-body .meta { color: var(--muted); font-size: .82rem; margin-bottom: 12px; }
.case-card .case-body p { color: var(--body); flex: 1; margin-bottom: 14px; font-size: .95rem; line-height: 1.5; }
.case-card .case-body .more { margin-top: auto; }
.case-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  position: relative; color: #fff;
  display: flex; align-items: flex-end; padding: 22px;
  overflow: hidden;
}
.case-thumb.alt { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--ink) 100%); }
.case-thumb.alt2 { background: linear-gradient(135deg, var(--blue) 0%, #1D6BC0 100%); }
.case-thumb.has-img { background: var(--soft); padding: 0; }
.case-thumb.has-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.case-thumb.has-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,47,77,0) 50%, rgba(0,47,77,.55) 100%);
  pointer-events: none;
}
.case-card:hover .case-thumb.has-img img { transform: scale(1.04); }
/* Both labels need to render above the picture + gradient overlay.
   Keep case-tag's absolute positioning (set on .case-tag itself); only bump z-index.
   Give case-amount position:relative so z-index applies. */
.case-thumb.has-img .case-tag    { z-index: 2; }
.case-thumb.has-img .case-amount { position: relative; z-index: 2; }
.case-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent);                   /* solid gold — readable on any photo */
  color: var(--navy);
  padding: 6px 12px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.case-amount { font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: #fff; }
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { color: var(--navy); margin-bottom: 8px; }
.case-body .meta { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.case-body p { color: var(--body); flex: 1; margin-bottom: 14px; }

/* =================== CTA banner =================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: 16px; padding: 56px 48px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(4,81,153,.5) 0%, transparent 70%);
}
.cta-banner .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #B4D2E8; font-size: 1.05rem; margin: 0; }
.cta-banner .btn-row { justify-content: flex-end; }
.cta-banner .btn { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.cta-banner .btn:hover { background: #D9A235; border-color: #D9A235; }
.cta-banner .btn--outline { background: transparent; border-color: #fff; color: #fff; }
.cta-banner .btn--outline:hover { background: #fff; color: var(--navy); }

/* =================== Footer =================== */
.site-footer {
  background: var(--navy-deep); color: #B4D2E8; padding: 64px 0 24px;
  font-size: .92rem;
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #B4D2E8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand img { height: 56px; margin-bottom: 16px; }
.footer-brand p { color: #8FB1CB; font-size: .88rem; line-height: 1.55; max-width: 280px; }
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  padding-top: 24px; color: #8FB1CB; font-size: .82rem;
}
.footer-meta a { color: #8FB1CB; }
.footer-meta a:hover { color: #fff; }
.footer-disclaimer {
  color: #8FB1CB; font-size: .82rem; line-height: 1.5;
  padding: 24px 0 0; max-width: 880px;
}

/* =================== Onboarding-style flow form =================== */
.ms-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 28px 24px; position: relative;
  box-shadow: var(--shadow-sm);
}

/* Header: back button + progress dots */
.ms-head {
  display: flex; align-items: center; gap: 16px; min-height: 28px; margin-bottom: 18px;
}
.ms-back {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s ease; padding: 0;
}
.ms-back:hover { background: var(--soft); border-color: var(--blue); color: var(--blue); }
.ms-back[hidden] { display: none; }
.ms-dots { display: flex; gap: 6px; flex: 1; }
.ms-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--line);
  transition: all .25s ease;
}
.ms-dot.done    { background: var(--accent); }
.ms-dot.current { background: var(--navy); width: 18px; }

/* Step container — fade/slide in when active */
.ms-step {
  display: none; padding: 6px 0;
  animation: msIn .35s cubic-bezier(.2,.7,.2,1) both;
}
.ms-step.active { display: block; }
@keyframes msIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Question heading + helper text */
.ms-q {
  font-family: var(--display); color: var(--navy); font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem); letter-spacing: -.022em;
  line-height: 1.2; margin: 4px 0 8px;
}
.ms-q .ms-skip {
  display: inline-block; margin-left: 6px; font-size: .72em; font-weight: 500;
  color: var(--muted); letter-spacing: 0; vertical-align: middle;
}
.ms-help { font-size: .95rem; color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.ms-help a { color: var(--blue); }

/* Choice cards — one stacked column by default, grid on wider screens */
.ms-choices { display: flex; flex-direction: column; gap: 10px; }
.ms-choices--grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) {
  .ms-choices--grid { grid-template-columns: 1fr 1fr; }
}
.ms-choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 16px 18px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.ms-choice:hover {
  border-color: var(--blue); background: #FAFBFD;
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.ms-choice:active { transform: translateY(0); }
.ms-choice.selected {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(212, 162, 76, .14);
}
.ms-choice-icon {
  width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--navy); border-radius: 10px;
}
.ms-choice.selected .ms-choice-icon { background: var(--white); color: var(--navy); }
.ms-choice-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-choice-body strong {
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--navy);
  letter-spacing: -.005em;
}
.ms-choice-body span { font-size: .87rem; color: var(--muted); line-height: 1.4; }
.ms-choice-arrow {
  color: var(--muted); font-size: 1.1rem; flex: none; opacity: .6;
  transition: transform .15s ease, opacity .15s ease, color .15s ease;
}
.ms-choice:hover .ms-choice-arrow { color: var(--blue); opacity: 1; transform: translateX(3px); }
.ms-choice.selected .ms-choice-arrow { color: var(--accent); opacity: 1; }

/* Big focused inputs */
.ms-input-big {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 18px 18px; background: #fff; color: var(--ink);
  font: 500 1.15rem var(--sans); line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ms-input-big::placeholder { color: #9099A8; font-weight: 400; }
.ms-input-big:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(4, 81, 153, .12);
}
.ms-textarea { font-size: 1.02rem; line-height: 1.55; min-height: 120px; resize: vertical; }

/* Currency input with £ prefix */
.ms-input-currency {
  position: relative; display: flex; align-items: stretch;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ms-input-currency:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(4, 81, 153, .12);
}
.ms-input-currency > span {
  display: inline-flex; align-items: center; padding: 0 4px 0 18px;
  color: var(--muted); font: 600 1.2rem var(--display);
}
.ms-input-currency .ms-input-big {
  border: 0; box-shadow: none; padding-left: 6px; background: transparent;
}
.ms-input-currency .ms-input-big:focus { box-shadow: none; }

/* Action row */
.ms-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.ms-actions .btn { min-width: 150px; }
.btn--ghost {
  background: transparent; border-color: transparent; color: var(--muted);
}
.btn--ghost:hover { background: var(--soft); color: var(--navy); }

/* Consent checkbox + review summary on the final step */
.ms-check {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--soft); border-radius: 10px; cursor: pointer;
  font-size: .92rem; color: var(--body); line-height: 1.5;
}
.ms-check input { margin-top: 3px; flex: none; accent-color: var(--blue); transform: scale(1.1); }
.ms-summary {
  list-style: none; padding: 14px 16px; margin: 0 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  font-size: .9rem; color: var(--ink);
}
.ms-summary li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ms-summary li:last-child { border-bottom: 0; }
.ms-summary:empty { display: none; }

/* Thank-you success state */
.ms-thanks {
  background: var(--soft); border-radius: 14px; padding: 40px 32px; text-align: center;
}
.ms-thanks h3 { color: var(--navy); margin: 0 0 12px; }

/* =================== Stat counters =================== */
.stats { background: var(--white); padding: 60px 0; border-bottom: 1px solid var(--line); }
.stat { text-align: center; padding: 0 16px; }
.stat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--navy);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 8px;
}
.stat-label { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1rem; }
.stat-sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.stats-footnote { color: var(--muted); font-size: .75rem; text-align: center; margin: 24px 0 0; font-style: italic; }

/* =================== Testimonial rail =================== */
.testimonial-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(380px, 1fr);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; scrollbar-width: thin;
}
.testimonial-rail .testimonial {
  scroll-snap-align: start; min-width: 380px; background: #fff;
}
.testimonial-rail::-webkit-scrollbar { height: 8px; }
.testimonial-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.testimonial-rail::-webkit-scrollbar-thumb:hover { background: var(--blue); }

@media (max-width: 780px) {
  .testimonial-rail { grid-auto-columns: minmax(85%, 1fr); }
  .testimonial-rail .testimonial { min-width: 85%; }
  .stats .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* =================== Team cards =================== */
.team-card {
  padding: 0 0 28px;
  text-align: center;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(4,81,153,.18), transparent 60%),
    linear-gradient(180deg, var(--soft) 0%, #E1E8F2 100%);
  overflow: hidden;
  margin: 0;
}
.team-photo picture { display: block; width: 100%; height: 100%; }
.team-photo img {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: center bottom;
  display: block;
}
.team-photo--hire {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--soft) 0%, var(--bg) 100%);
  color: var(--blue); font-family: var(--display); font-weight: 700; font-size: 3rem;
}
.team-card h3 { font-size: 1.2rem; padding: 0 28px; }
.team-card > p { padding: 0 28px; text-align: left; }
.team-card .more { padding: 0 28px; align-self: flex-start; margin-top: auto; }
.team-card p:nth-of-type(1) { text-align: center; padding-top: 4px; }
.team-card--hire { padding: 0 0 28px; }
.team-card--hire .team-photo--hire { aspect-ratio: 3 / 4; }

/* =================== Bio grid (team profile photo + text) =================== */
.bio-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start;
}

/* =================== Split grid (two-column comparison / feature blocks) =================== */
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}

/* =================== Team gallery (group photos) =================== */
.team-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin: 40px 0;
}
.team-gallery figure {
  margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--soft);
}
.team-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .team-gallery { grid-template-columns: 1fr; }
}

/* =================== Page hero image (top of a page below the title strip) =================== */
.page-image {
  margin: -36px auto 0; padding: 0 24px; max-width: var(--maxw);
  position: relative; z-index: 2;
}
.page-image figure {
  margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 21 / 9; background: var(--soft);
}
.page-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =================== Post hero (blog & case studies) =================== */
.post-hero {
  margin: 0 0 40px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* =================== Prose (migrated blog/case-study content) =================== */
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--body); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h2 {
  font-family: var(--display); color: var(--navy); font-size: 1.6rem;
  margin: 2.2em 0 .5em; letter-spacing: -.01em; font-weight: 700;
}
.prose h3 {
  font-family: var(--display); color: var(--navy); font-size: 1.25rem;
  margin: 1.8em 0 .4em; font-weight: 700;
}
.prose h4 {
  font-family: var(--display); color: var(--navy); font-size: 1.05rem;
  margin: 1.5em 0 .3em; font-weight: 700;
}
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy); }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 26px;
  border-left: 4px solid var(--blue);
  background: var(--soft); border-radius: 0 8px 8px 0;
  font-family: var(--serif); font-style: italic; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); color: var(--navy); font-family: var(--display); font-weight: 700; }
.prose code {
  background: var(--soft); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
}

/* =================== Glossary A-Z =================== */
.glossary-az {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px;
  padding: 14px; background: var(--soft); border-radius: 10px;
  position: sticky; top: 90px; z-index: 5;
}
.glossary-az a, .glossary-az span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  text-decoration: none;
}
.glossary-az a { color: var(--navy); background: #fff; border: 1px solid var(--line); transition: all .15s ease; }
.glossary-az a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.glossary-az span { color: var(--muted); opacity: .35; cursor: default; }
.glossary-letter {
  color: var(--blue); font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  margin: 36px 0 16px; padding-top: 12px; border-top: 2px solid var(--soft);
  scroll-margin-top: 140px;
}
.glossary-entry {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.glossary-entry h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--navy); }
.glossary-entry p { margin: 0; }

/* =================== Misc =================== */
.muted { color: var(--muted); }
.lead  { font-size: 1.15rem; color: var(--body); }
.center { text-align: center; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--blue); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.divider { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--soft); color: var(--blue); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.cross-list { list-style: none; padding: 0; }
.cross-list li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.cross-list li::before {
  content: "✕"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: #FDECEA; color: var(--red); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .82rem;
}

/* =================== Responsive =================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .cta-banner .container { grid-template-columns: 1fr; }
  .cta-banner .btn-row { justify-content: flex-start; }
  .criteria { grid-template-columns: repeat(2, 1fr); }
}

/* Switch to mobile nav at 1024px (covers iPads landscape & small laptops) */
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; }
  .nav-cta { padding: 9px 16px; font-size: .85rem; }
}

@media (max-width: 780px) {
  section { padding: 56px 0; }
  section.section-lg { padding: 72px 0; }
  .hero { padding: 56px 0; }
  .hero--photo { padding: 64px 0 56px; }
  .topbar { font-size: .78rem; padding: 6px 0; }
  .topbar .topbar-right { display: none; }
  .topbar .topbar-left { gap: 14px; }
  .topbar svg { width: 12px; height: 12px; }
  .header-actions .nav-cta { display: none; }
  .site-header .container { padding-top: 14px; padding-bottom: 14px; }
  .brand-logo { height: 44px; }

  .page-title { padding: 44px 0 56px; }
  .page-title h1 { font-size: 1.8rem; line-height: 1.2; }
  .page-title p { font-size: .98rem; }

  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .criteria { grid-template-columns: 1fr 1fr; padding: 22px; gap: 18px; }
  .criteria .value { font-size: 1.05rem; }
  .cta-banner { padding: 32px 22px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: .95rem; }

  .ms-form { padding: 22px 20px; border-radius: 12px; }
  .ms-q { font-size: 1.3rem; }
  .ms-help { font-size: .9rem; margin-bottom: 18px; }
  .ms-input-big { padding: 16px; font-size: 16px; }
  .ms-input-currency > span { font-size: 1.1rem; padding-left: 16px; }
  .ms-choices--grid { grid-template-columns: 1fr; }
  .ms-actions { flex-wrap: wrap; }
  .ms-actions .btn { flex: 1 1 auto; min-width: 0; }
  .form-input, .form-select, .form-textarea { font-size: 16px; }

  .post-hero { aspect-ratio: 4 / 3; margin-bottom: 28px; }
  .page-image figure { aspect-ratio: 16 / 9; }
  .page-image { margin-top: -28px; padding: 0 16px; }

  .testimonial { padding: 22px 24px; }
  .testimonial blockquote { font-size: 1.02rem; }

  .stat-num { font-size: 2.4rem !important; }
  .stat-label { font-size: .9rem; }
  .stat-sub { font-size: .76rem; }

  .glossary-az { position: static; padding: 10px; gap: 3px; }
  .glossary-az a, .glossary-az span { width: 28px; height: 28px; font-size: .8rem; }

  .container { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .hero--photo .lead { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar .container { justify-content: center; }
  .case-thumb { aspect-ratio: 4 / 3; }
}

@media (max-width: 420px) {
  .criteria { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Skip-to-content for a11y */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 18px;
  z-index: 999;
}
.skip:focus { left: 0; }

/* Print */
@media print {
  .site-header, .site-footer, .topbar, .cta-banner { display: none; }
}
