/* ==========================================================================
   FoneFluent — site stylesheet
   Dark obsidian + brand gold. Poppins display / Inter body.
   Sections alternate dark (#191919) and light (#F7F7F7) per brand guidelines.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand */
  --gold:        #FFC400;
  --gold-600:    #E0AC00;
  --gold-700:    #8C6900;   /* accent text on light surfaces — WCAG AA (>=4.7:1 on white, #F7F7F7 and the gold tint) */
  --gold-tint:   #FFF7DB;
  --on-gold:     #191919;

  /* Ink & surfaces */
  --ink:         #191919;
  --ink-900:     #131313;
  --ink-800:     #1F1F1F;
  --ink-700:     #2B2B2B;
  --ink-600:     #3B3B3B;
  --body:        #191919;
  --body-dark:   #EDEDED;
  --muted:       #6B6B6B;
  --muted-dark:  #A2A2A2;
  --muted-faint: #868686;   /* smallest print on dark — AA against #191919 and #131313 */

  --white:       #FFFFFF;
  --light:       #F7F7F7;
  --light-2:     #EFEFEF;
  --line:        #E4E4E4;
  --line-dark:   rgba(255,255,255,.12);

  /* Type */
  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --shell:   1240px;
  --shell-narrow: 900px;
  --gutter:  clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 132px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(25,25,25,.06), 0 4px 14px rgba(25,25,25,.05);
  --shadow-md: 0 2px 6px rgba(25,25,25,.07), 0 18px 44px rgba(25,25,25,.09);
  --shadow-lg: 0 30px 80px rgba(25,25,25,.16);

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 84px;
}

/* --- Reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  color: inherit;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

::selection { background: var(--gold); color: var(--on-gold); }

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

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

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

/* --- Layout primitives -------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 84px); }

.section--light { background: var(--light); }
.section--white { background: var(--white); }
.section--dark  { background: var(--ink); color: var(--body-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }

/* Hairline separators between same-tone sections */
.section--white + .section--white { border-top: 1px solid var(--line); }

/* --- Type utilities ----------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--gold); flex: none;
}
.section--dark .eyebrow { color: var(--gold); }

.h-display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  letter-spacing: -.035em;
  font-weight: 600;
}
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.h4 { font-size: 1.125rem; letter-spacing: -.015em; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.section--dark .lede { color: var(--muted-dark); }

.measure { max-width: 68ch; }
.center { text-align: center; }
.center .eyebrow, .center .lede { margin-inline: auto; }
.center .lede { text-align: center; }

.ff-placeholder {
  font-style: normal;
  background: var(--gold-tint);
  border-bottom: 1px dashed var(--gold-600);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: .92em;
  color: #7A5D00;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform .22s var(--ease), background-color .22s var(--ease),
              border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ff-icon, .btn svg { width: 18px; height: 18px; flex: none; }

.btn--gold {
  background: var(--gold); color: var(--on-gold); border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(255,196,0,.28);
}
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); box-shadow: 0 10px 30px rgba(255,196,0,.36); }

.btn--ghost { border-color: rgba(255,255,255,.34); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-700); border-color: var(--ink-700); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 16px; }
.btn--block { width: 100%; }

/* Text link with sliding arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  color: var(--gold-700);
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }
.section--dark .link-arrow { color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(25,25,25,.92);
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* The glass effect lives on a pseudo-element, not on .site-header itself.
   `backdrop-filter` on an element makes it the containing block for any
   `position: fixed` descendant — which would collapse the mobile nav drawer
   into the 72px-tall header box and stop it receiving clicks. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { background: rgba(19,19,19,.97); }
.site-header.is-scrolled {
  border-bottom-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

/* The nav row carries 8 items plus a CTA, so it gets a wider shell than the
   body content (which stays at --shell for readable measure). */
.site-header .shell { max-width: 1400px; }

.header-inner {
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px);
  min-height: var(--header-h);
}

.brand { flex: none; }
.brand img { width: clamp(118px, 11vw, 150px); height: auto; }

.nav { margin-left: auto; }

.nav-list {
  display: flex; align-items: center; gap: clamp(0px, .3vw, 6px);
  list-style: none; margin: 0; padding: 0;
  position: relative;
}

/* Mega panels anchor to the nav list, not to their trigger. Centring an 880px
   panel on a trigger that sits near the left of the bar pushes it off-screen;
   anchored to the list it is always inside the shell at any desktop width. */
.nav-item { position: relative; }
.nav-item.has-mega { position: static; }

.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 9px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  color: rgba(255,255,255,.82);
  border-radius: var(--r-sm);
  transition: color .2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; left: 9px; right: 9px; bottom: 4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav-link:hover, .nav-link.is-current, .nav-item.is-open > .nav-link { color: var(--white); }
.nav-link:hover::after, .nav-link.is-current::after, .nav-item.is-open > .nav-link::after { transform: scaleX(1); }

.nav-caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .28s var(--ease); opacity: .6; }
.nav-item.is-open .nav-caret { transform: rotate(-90deg); opacity: 1; }
.nav-ext { width: 12px; height: 12px; opacity: .55; }

.header-cta { flex: none; }

/* Drawer-only CTA: invisible while the desktop header button is on screen. */
.nav-item--cta { display: none; }

/* Mega menu */
.mega {
  /* Anchored to the RIGHT edge of the nav list, and sized against the
     viewport rather than the list. `min(880px, 100%)` used to work only
     because the list happened to be wider than 880px; trimming the menu to
     six items shrank the list to ~515px and silently shrank the panel with
     it. The list is right-aligned in the header, so right-anchoring keeps an
     880px panel on-screen at every desktop width. */
  position: absolute; top: calc(100% + 14px); left: auto; right: 0;
  transform: translateY(-8px);
  width: min(880px, calc(100vw - 40px));
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  overflow: hidden;
}
.mega--narrow { width: min(420px, 100%); left: auto; right: 0; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

/* Hover bridge so the pointer can travel from the trigger into the panel */
.mega::before {
  content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}

.mega-inner { display: grid; grid-template-columns: 1fr 268px; }
.mega--narrow .mega-inner { grid-template-columns: 1fr; }

.mega-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 18px;
}
.mega-grid--single { grid-template-columns: 1fr; }

.mega-item {
  display: block; padding: 14px 16px; border-radius: var(--r-md);
  transition: background-color .18s var(--ease);
}
.mega-item:hover { background: var(--light); }

.mega-item-title {
  display: block; font-family: var(--display); font-weight: 600; font-size: 15.5px;
  color: var(--ink); letter-spacing: -.015em; margin-bottom: 3px;
  position: relative;
}
.mega-item:hover .mega-item-title { color: var(--gold-700); }

.mega-item-desc { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.mega-aside {
  background: var(--ink); color: var(--body-dark);
  padding: 26px 24px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.mega-aside::after {
  content: ''; position: absolute; inset: auto -30% -55% auto; width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(255,196,0,.24), transparent 68%);
}
.mega-aside-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.mega-aside-text { font-size: 14px; line-height: 1.55; color: var(--muted-dark); margin-bottom: 16px; }
.mega-aside-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--white); position: relative; }
.mega-aside-link svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.mega-aside-link:hover svg { transform: translateX(3px); }

.i-inline { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; }
.i-sm { width: 18px; height: 18px; flex: none; }
.i-xs { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; opacity: .6; }

/* Burger */
.burger {
  display: none; flex: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--body-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 8s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }

.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(19,19,19,.96) 0%, rgba(19,19,19,.88) 42%, rgba(19,19,19,.62) 100%),
    radial-gradient(1000px 620px at 12% 10%, rgba(255,196,0,.16), transparent 62%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(1100px 700px at 20% 25%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 700px at 20% 25%, #000 20%, transparent 78%);
}

.hero-inner {
  position: relative;
  padding-block: clamp(96px, 13vw, 172px);
  max-width: 1000px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.9vw, 4.4rem);
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 26px;
}
.hero h1 .accent {
  color: var(--gold);
  position: relative;
  /* Deliberately NOT `white-space: nowrap` — the phrase is wider than a phone
     viewport at the hero type size and would be clipped by the body's
     overflow-x guard rather than wrapping. */
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,.76);
  max-width: 62ch;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat-n {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -.03em;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.hero-stat-l { font-size: 13.5px; color: rgba(255,255,255,.62); letter-spacing: .02em; }

.hero-dots {
  position: absolute; left: var(--gutter); bottom: 34px;
  display: flex; gap: 8px; z-index: 2;
}
.hero-dot {
  width: 30px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.24);
  transition: background-color .3s var(--ease);
}
.hero-dot.is-active { background: var(--gold); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--ink);
  color: var(--body-dark);
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 8vw, 108px);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 8% 0%, rgba(255,196,0,.15), transparent 64%);
}
.page-hero::after {
  content: ''; position: absolute; right: -8%; top: -40%; width: 560px; height: 560px;
  border: 1px solid rgba(255,255,255,.07); border-radius: 50%;
}
.page-hero .shell { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.page-hero .lede { color: rgba(255,255,255,.74); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.5);
  margin-bottom: 22px;
}
.crumbs a { color: rgba(255,255,255,.72); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { opacity: .45; }

/* --- Grids -------------------------------------------------------------- */

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5.5vw, 84px);
  align-items: center;
}
.split--wide-text { grid-template-columns: 1.08fr 1fr; }
.split--rev > *:first-child { order: 2; }

.section-head { max-width: 760px; margin-bottom: clamp(38px, 4.5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; max-width: none;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 34px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #D8D8D8; }
.card:hover::before { transform: scaleX(1); }

.card h3 { font-size: 1.18rem; margin-bottom: 12px; color: var(--ink); }
.card p { font-size: 15.5px; line-height: 1.62; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 20px; }

.card-index {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: var(--gold-700); margin-bottom: 18px;
}

.card-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-700);
  margin-bottom: 22px; flex: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card-icon svg { width: 25px; height: 25px; }
.card:hover .card-icon { background: var(--gold); color: var(--on-gold); }

/* Dark card variant. A dark card can sit inside a light section, so it has to
   re-establish the whole dark text context itself — the `.section--dark`
   rules do not reach it. */
.card--dark {
  background: var(--ink-800); border-color: rgba(255,255,255,.1);
  color: var(--body-dark);
}
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--muted-dark); }
.card--dark .card-index { color: var(--gold); }
.card--dark .link-arrow { color: var(--gold); }
.card--dark .check-list li svg,
.card--dark .feature-list li svg { color: var(--gold); }
.card--dark .feature-list li { border-bottom-color: var(--line-dark); }
.card--dark:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.card--dark .card-icon { background: rgba(255,196,0,.12); color: var(--gold); }
.card--dark:hover .card-icon { background: var(--gold); color: var(--on-gold); }

/* --- Industry strip (dark, 6 columns) ----------------------------------- */

.ind-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden; }
.ind-cell {
  background: var(--ink);
  padding: 34px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  transition: background-color .3s var(--ease);
  position: relative;
}
.ind-cell:hover { background: var(--ink-700); }
.ind-cell svg { width: 30px; height: 30px; color: var(--gold); transition: transform .32s var(--ease); }
.ind-cell:hover svg { transform: translateY(-4px); }
.ind-cell span { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.86); line-height: 1.4; }

/* --- Toggles / accordion ------------------------------------------------ */

.toggles { border-top: 1px solid var(--line); }
.section--dark .toggles { border-top-color: var(--line-dark); }

.toggle { border-bottom: 1px solid var(--line); }
.section--dark .toggle { border-bottom-color: var(--line-dark); }

.toggle-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.section--dark .toggle-btn { color: var(--white); }
.toggle-btn:hover { color: var(--gold-700); }
.section--dark .toggle-btn:hover { color: var(--gold); }

.toggle-mark {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  position: relative; transition: all .28s var(--ease);
}
.section--dark .toggle-mark { border-color: rgba(255,255,255,.22); }
.toggle-mark::before, .toggle-mark::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
}
.toggle-mark::before { width: 12px; height: 1.8px; }
.toggle-mark::after  { width: 1.8px; height: 12px; transition: transform .28s var(--ease); }
.toggle[open] .toggle-mark, .toggle.is-open .toggle-mark { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.toggle[open] .toggle-mark::after, .toggle.is-open .toggle-mark::after { transform: scaleY(0); }

.toggle-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .42s var(--ease);
}
.toggle.is-open .toggle-panel { max-height: 640px; }
.toggle-panel-inner { padding: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.68; max-width: 68ch; }
.section--dark .toggle-panel-inner { color: var(--muted-dark); }
.toggle-panel-inner a { color: var(--gold-700); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.section--dark .toggle-panel-inner a { color: var(--gold); }

/* Role chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.section--light .chip { background: var(--white); }
.section--dark .chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.86); }

/* --- Gold band ---------------------------------------------------------- */

.band-gold {
  background: var(--gold);
  color: var(--on-gold);
  padding-block: clamp(44px, 5vw, 68px);
  position: relative; overflow: hidden;
}
.band-gold::after {
  content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border: 46px solid rgba(25,25,25,.05); border-radius: 50%;
}
.band-inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
}
.band-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; color: var(--on-gold); max-width: 22ch; }
.band-inner p { color: rgba(25,25,25,.72); font-size: 15.5px; margin: 8px 0 0; max-width: 46ch; }

/* --- CTA banner --------------------------------------------------------- */

.cta-banner {
  background: var(--ink);
  color: var(--body-dark);
  padding-block: clamp(64px, 8vw, 104px);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(680px 340px at 50% 108%, rgba(255,196,0,.22), transparent 66%);
}
.cta-banner .shell { position: relative; }
.cta-banner h2 { color: var(--white); font-size: clamp(1.85rem, 3.6vw, 2.9rem); max-width: 20ch; margin-inline: auto; }
.cta-banner p { color: rgba(255,255,255,.66); max-width: 54ch; margin: 0 auto 32px; }

/* --- Client logo bar ---------------------------------------------------- */

.logo-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 46px); align-items: center;
}
.logo-bar img, .logo-bar .logo-fallback {
  width: 100%; max-width: 158px; margin-inline: auto;
  filter: grayscale(1); opacity: .48;
  transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.logo-bar a:hover img, .logo-bar a:hover .logo-fallback { filter: grayscale(0); opacity: 1; transform: translateY(-2px); }

.logo-fallback {
  display: grid; place-items: center; height: 54px;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; color: var(--muted); text-align: center; padding: 8px;
}

/* --- Testimonials ------------------------------------------------------- */

.testi {
  position: relative;
  min-height: 260px;
}
.testi-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.testi-slide.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }

.testi-quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.95rem);
  line-height: 1.42; letter-spacing: -.025em;
  color: var(--white); font-weight: 500;
  margin: 0 0 30px; max-width: 24ch;
  text-wrap: balance;
}
.testi-who { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--gold); color: var(--on-gold);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.02em;
}
.testi-name { font-weight: 600; color: var(--white); font-size: 15.5px; line-height: 1.3; }
.testi-role { font-size: 14px; color: var(--muted-dark); }

.testi-mark {
  font-family: var(--display); font-size: 120px; line-height: .7; font-weight: 700;
  color: rgba(255,196,0,.16); margin-bottom: -10px; user-select: none;
}

.slider-nav { display: flex; gap: 10px; margin-top: 34px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; color: var(--white);
  transition: all .24s var(--ease);
}
.slider-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.slider-btn svg { width: 18px; height: 18px; }
.slider-btn--prev svg { transform: rotate(180deg); }

/* --- Audio cards -------------------------------------------------------- */

.audio-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.audio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D8D8D8; }

.audio-play {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
  transition: all .26s var(--ease);
  position: relative;
}
.audio-play::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0; transform: scale(.85);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.audio-card:hover .audio-play, .audio-play.is-playing { background: var(--gold); color: var(--on-gold); }
.audio-play.is-playing::after { opacity: 1; transform: scale(1); animation: pulse-ring 1.8s var(--ease) infinite; }
.audio-play svg { width: 22px; height: 22px; }
.audio-play svg:first-child { margin-left: 3px; }

@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.audio-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.audio-lang { font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.audio-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.audio-wave { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 22px; margin-top: 16px; }
.audio-wave i {
  width: 3px; border-radius: 2px; background: var(--line-2, #D8D8D8);
  height: 6px; transition: background-color .3s var(--ease);
}
.audio-play.is-playing ~ .audio-wave i { background: var(--gold); animation: wave 1s ease-in-out infinite; }
.audio-wave i:nth-child(2) { animation-delay: .1s; }
.audio-wave i:nth-child(3) { animation-delay: .2s; }
.audio-wave i:nth-child(4) { animation-delay: .3s; }
.audio-wave i:nth-child(5) { animation-delay: .4s; }
.audio-wave i:nth-child(6) { animation-delay: .5s; }
.audio-wave i:nth-child(7) { animation-delay: .6s; }
.audio-wave i:nth-child(8) { animation-delay: .7s; }
.audio-wave i:nth-child(9) { animation-delay: .8s; }

@keyframes wave {
  0%, 100% { height: 6px; }
  50%      { height: 20px; }
}

/* --- Steps timeline ----------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); position: relative; }
.steps::before {
  content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.section--dark .steps::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.16) 12%, rgba(255,255,255,.16) 88%, transparent); }

.step { position: relative; }
.step-n {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 24px;
  background: var(--white); border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink);
  position: relative; z-index: 1;
  transition: all .3s var(--ease);
}
.step:hover .step-n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); transform: scale(1.05); }
.section--dark .step-n { background: var(--ink); border-color: rgba(255,255,255,.2); color: var(--white); }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.section--dark .step p { color: var(--muted-dark); }

/* --- Stat counters ------------------------------------------------------ */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { text-align: center; padding: 26px 14px; }
.stat-n {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.035em; line-height: 1;
  color: var(--gold-700); margin-bottom: 12px;
}
/* Full brand gold only where it sits on dark — on white it is 1.6:1. */
.section--dark .stat-n { color: var(--gold); }
.stat-l { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.section--dark .stat-l { color: var(--muted-dark); }

/* --- Feature / check lists ---------------------------------------------- */

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.55; }
.check-list li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold-700); }
.section--dark .check-list li svg { color: var(--gold); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.feature-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li svg { width: 22px; height: 22px; flex: none; color: var(--gold-700); }
.section--dark .feature-list li { border-bottom-color: var(--line-dark); }
.section--dark .feature-list li svg { color: var(--gold); }

/* --- Media frame -------------------------------------------------------- */

.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--light-2);
  aspect-ratio: 4 / 3;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 16 / 10; }

/* Decorative gold corner accent on media */
.frame-wrap { position: relative; }
.frame-wrap::before {
  content: ''; position: absolute; left: -18px; bottom: -18px; width: 120px; height: 120px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  border-radius: 0 0 0 var(--r-lg);
  z-index: -1;
}

/* <picture> is an inline wrapper around the <img>; make it transparent to the
   frame's sizing so object-fit still resolves against the frame box. */
.frame picture,
.post-thumb picture,
.person-photo picture { display: block; width: 100%; height: 100%; }

.person-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Photo placeholder */
.photo-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 10px;
  background:
    linear-gradient(135deg, rgba(255,196,0,.10), transparent 60%),
    repeating-linear-gradient(45deg, #EDEDED 0 12px, #E7E7E7 12px 24px);
  color: var(--muted); text-align: center; padding: 24px;
}
.photo-ph svg { width: 34px; height: 34px; opacity: .5; }
.photo-ph span { font-size: 13px; letter-spacing: .04em; max-width: 26ch; line-height: 1.5; }

/* --- Blog cards --------------------------------------------------------- */

.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #D8D8D8; }
.post-thumb { aspect-ratio: 16 / 10; background: var(--light-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin-bottom: 14px; }
.post-cat {
  background: var(--gold-tint); color: var(--gold-700);
  padding: 4px 11px; border-radius: var(--r-pill); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; font-size: 11px;
}
.post-date { color: var(--muted); }
.post-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--ink); }
.post-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.post-card .link-arrow { margin-top: auto; padding-top: 20px; }

/* --- Forms -------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: var(--ink);
}
.field .req { color: var(--gold-700); }

/* Forms also appear on dark sections (the homepage contact strip), where the
   default near-black label colour would be invisible. */
.section--dark .field label { color: rgba(255,255,255,.92); }
.section--dark .field .req  { color: var(--gold); }
.section--dark .form-note   { color: var(--muted-dark); }

.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,196,0,.18);
}
.field .err { font-size: 13px; color: #C22B2B; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C22B2B; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

.alert {
  padding: 16px 20px; border-radius: var(--r-md); font-size: 15px;
  border: 1px solid transparent; margin-bottom: 24px;
}
.alert--ok  { background: #EAF7EE; border-color: #B7E2C4; color: #1B6B36; }
.alert--err { background: #FDEDED; border-color: #F3C2C2; color: #9B2222; }

/* Newsletter inline form */
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 15px 18px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: var(--white); font: inherit; font-size: 15px;
}
.news-form input::placeholder { color: rgba(255,255,255,.44); }
.news-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }

/* --- Calculator --------------------------------------------------------- */

.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.calc-controls { padding: clamp(28px, 3.2vw, 44px); }
.calc-result {
  background: var(--ink); color: var(--body-dark);
  padding: clamp(28px, 3.2vw, 44px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.calc-result::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(460px 300px at 82% 6%, rgba(255,196,0,.2), transparent 66%);
}
.calc-result > * { position: relative; }

.calc-row { margin-bottom: 26px; }
.calc-row:last-child { margin-bottom: 0; }

/* The calculator's select sits outside .field, so it needs the same treatment. */
.calc-row select {
  font: inherit; font-size: 15.5px;
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white); color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.calc-row select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,196,0,.18);
}

.calc-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px;
}
.calc-value { font-family: var(--display); font-size: 17px; color: var(--gold-700); letter-spacing: -.02em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--line-2, #E4E4E4);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(25,25,25,.22);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(25,25,25,.22);
  cursor: grab; border-color: var(--white);
}

.calc-result-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.calc-big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.04em; line-height: 1;
  color: var(--white); margin-bottom: 8px;
}
.calc-sub { font-size: 15px; color: var(--muted-dark); margin-bottom: 28px; }

.calc-breakdown { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: grid; gap: 13px; }
.calc-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 15px; }
.calc-line span:first-child { color: var(--muted-dark); }
.calc-line span:last-child { font-family: var(--display); font-weight: 500; color: var(--white); }
.calc-line--total { border-top: 1px solid rgba(255,255,255,.14); padding-top: 15px; margin-top: 4px; }
.calc-line--total span:last-child { color: var(--gold); font-size: 18px; }

.calc-disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 20px; line-height: 1.55; }

/* --- Leadership grid ---------------------------------------------------- */

.person { text-align: center; }
.person-photo {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--light-2); margin-bottom: 18px;
}
.person-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.person-role { font-size: 14px; color: var(--muted); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding-top: clamp(60px, 7vw, 92px);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(44px, 5vw, 68px);
}

.footer-logo { width: 164px; height: auto; margin-bottom: 22px; }
.footer-tagline { font-size: 14.5px; line-height: 1.65; color: var(--muted-dark); max-width: 40ch; margin-bottom: 24px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: rgba(255,255,255,.75);
  transition: all .24s var(--ease);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-h {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--white);
  margin: 0 0 22px;
}

.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { font-size: 14.5px; color: var(--muted-dark); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--gold); }

.footer-contact li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.5; }
.footer-contact svg { color: var(--gold); margin-top: 2px; }
.footer-contact a:hover { color: var(--gold); }

.trust-badges { display: grid; gap: 12px; }
.trust-badge {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 17px; border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.03);
  transition: all .24s var(--ease);
}
.trust-badge:hover { border-color: rgba(255,196,0,.5); background: rgba(255,196,0,.06); }
.trust-icon { width: 26px; height: 26px; color: var(--gold); flex: none; }
.trust-badge span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted-dark); line-height: 1.4; }
.trust-badge strong { font-family: var(--display); font-size: 14.5px; color: var(--white); font-weight: 600; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 26px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; color: var(--muted-faint);
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--gold); }

/* --- Scroll reveal ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .ind-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  :root { --header-h: 72px; }

  .header-cta { display: none; }
  .burger { display: flex; }

  /* The drawer is a full-viewport layer that clips its own overflow, and the
     panel slides inside it. Sliding a fixed-position panel off-canvas instead
     would widen the document — `overflow-x: hidden` on <body> does not clip
     fixed descendants, so the page would scroll sideways into dead space. */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    z-index: 101;
    margin-left: 0;
    display: block;
    background: rgba(0,0,0,.55);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s var(--ease);
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav-list {
    flex-direction: column; align-items: stretch; gap: 0;
    width: min(400px, 88vw);
    min-height: 100%;
    margin-left: auto;
    background: var(--ink-900);
    border-left: 1px solid rgba(255,255,255,.1);
    padding: 24px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform .36s var(--ease);
  }
  body.nav-open .nav-list { transform: none; }

  .nav-item--cta { display: block; border-bottom: 0; padding-top: 26px; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link {
    width: 100%; justify-content: space-between;
    padding: 17px 2px; font-size: 16px; border-radius: 0;
  }
  .nav-link::after { display: none; }
  .nav-caret { transform: rotate(90deg); }
  .nav-item.is-open .nav-caret { transform: rotate(-90deg); }

  .nav-item.has-mega { position: relative; }

  .mega, .mega--narrow {
    position: static; transform: none; width: auto; left: auto; right: auto;
    box-shadow: none; border: 0; border-radius: 0;
    background: transparent;
    max-height: 0; opacity: 1; visibility: visible; pointer-events: auto;
    overflow: hidden;
    transition: max-height .38s var(--ease);
  }
  .nav-item.is-open .mega { max-height: 900px; transform: none; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; padding: 0 0 14px; gap: 0; }
  .mega-item { padding: 12px 14px; border-radius: var(--r-sm); }
  .mega-item:hover { background: rgba(255,255,255,.05); }
  .mega-item-title { color: rgba(255,255,255,.9); font-size: 14.5px; }
  .mega-item:hover .mega-item-title { color: var(--gold); }
  .mega-item-desc { color: rgba(255,255,255,.45); font-size: 12.5px; }
  .mega-aside { display: none; }

  .mega::before { display: none; }

  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .logo-bar { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .ind-strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .logo-bar { grid-template-columns: repeat(2, 1fr); }

  .hero-stats { gap: 22px 32px; }
  .hero-dots { display: none; }

  .band-inner { flex-direction: column; align-items: flex-start; }
  .section-head--split { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }


  .testi-mark { font-size: 84px; }
  .testi { min-height: 320px; }
}

@media (max-width: 480px) {
  .grid-5, .ind-strip { grid-template-columns: 1fr; }
  .steps, .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* --- Motion & print ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none; }
}

@media print {
  .site-header, .site-footer, .btn, .hero-dots { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding-block: 18pt; }
  .section--dark, .hero, .cta-banner { background: #fff !important; color: #000 !important; }
  .section--dark h1, .section--dark h2, .hero h1 { color: #000 !important; }
}

/* ==========================================================================
   Fonzi — site assistant widget
   Replaces the old floating WhatsApp button. Gold launcher, obsidian panel.
   ========================================================================== */

/* --- Launcher ------------------------------------------------------------ */

.fonzi-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px;
  border-radius: var(--r-pill);
  background: var(--gold); color: var(--on-gold);
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  box-shadow: 0 8px 28px rgba(255,196,0,.38), 0 2px 8px rgba(25,25,25,.18);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease),
              background-color .26s var(--ease), padding .26s var(--ease);
}
.fonzi-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,196,0,.48), 0 4px 12px rgba(25,25,25,.2);
}
.fonzi-launcher:active { transform: translateY(-1px); }

.fonzi-launcher-icon,
.fonzi-launcher-close {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  transition: opacity .2s var(--ease), transform .28s var(--ease);
}
.fonzi-launcher-icon svg,
.fonzi-launcher-close svg { width: 24px; height: 24px; }

/* The close glyph occupies the same cell as the chat glyph and cross-fades. */
.fonzi-launcher-close { position: absolute; left: 18px; opacity: 0; transform: rotate(-90deg) scale(.6); }
.fonzi-launcher.is-open .fonzi-launcher-icon { opacity: 0; transform: rotate(90deg) scale(.6); }
.fonzi-launcher.is-open .fonzi-launcher-close { opacity: 1; transform: none; }

.fonzi-launcher-label { white-space: nowrap; }

/* One-shot attention nudge for visitors who never open it. */
.fonzi-ping {
  position: absolute; top: 10px; right: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); opacity: 0;
  transition: opacity .3s var(--ease);
}
.fonzi-launcher.has-ping .fonzi-ping { opacity: 1; animation: fonzi-ping 1.8s var(--ease) infinite; }
.fonzi-launcher.is-open .fonzi-ping { opacity: 0; animation: none; }

@keyframes fonzi-ping {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .55; }
}

/* --- Panel ---------------------------------------------------------------- */

.fonzi-panel {
  position: fixed; right: 24px; bottom: 94px; z-index: 96;
  width: min(392px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: var(--ink-900);
  color: var(--body-dark);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.3);
  overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.fonzi-panel[hidden] { display: none; }
body.fonzi-open .fonzi-panel { opacity: 1; transform: none; }

/* Header */
.fonzi-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--ink-800);
  flex: none;
}
.fonzi-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  font-family: var(--display); font-weight: 700; font-size: 17px;
}
.fonzi-head-text { flex: 1; min-width: 0; }
.fonzi-title {
  margin: 0; font-family: var(--display); font-weight: 600; font-size: 15.5px;
  color: var(--white); letter-spacing: -.015em; line-height: 1.2;
}
.fonzi-status {
  margin: 2px 0 0; font-size: 12.5px; color: var(--muted-dark);
  display: flex; align-items: center; gap: 6px;
}
.fonzi-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #33D17A; flex: none;
  box-shadow: 0 0 0 3px rgba(51,209,122,.18);
}
.fonzi-x {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: rgba(255,255,255,.6);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.fonzi-x:hover { background: rgba(255,255,255,.08); color: var(--white); }
.fonzi-x svg { width: 18px; height: 18px; }

/* Message log */
.fonzi-log {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 20px 18px 6px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.fonzi-log::-webkit-scrollbar { width: 8px; }
.fonzi-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 4px; }

.fonzi-msg { display: flex; gap: 9px; align-items: flex-end; }
.fonzi-msg--me { justify-content: flex-end; }

.fonzi-msg-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(255,196,0,.16); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 12px;
}

.fonzi-bubble {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 14.5px; line-height: 1.55;
  background: var(--ink-700);
  color: var(--body-dark);
  border-bottom-left-radius: 4px;
  overflow-wrap: anywhere;
}
.fonzi-bubble strong { color: var(--white); font-weight: 600; }

.fonzi-msg--me .fonzi-bubble {
  background: var(--gold); color: var(--on-gold);
  border-bottom-left-radius: 14px; border-bottom-right-radius: 4px;
  font-weight: 500;
}

/* Answer links */
.fonzi-links { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.fonzi-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: var(--r-md);
  background: rgba(255,196,0,.1);
  border: 1px solid rgba(255,196,0,.28);
  color: var(--gold); font-weight: 600; font-size: 13.5px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.fonzi-link::after { content: '→'; margin-left: auto; opacity: .7; }
.fonzi-link:hover { background: rgba(255,196,0,.2); border-color: var(--gold); }

/* Typing indicator */
.fonzi-bubble--typing { display: flex; gap: 5px; padding: 15px; }
.fonzi-bubble--typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted-dark);
  animation: fonzi-type 1.2s ease-in-out infinite;
}
.fonzi-bubble--typing i:nth-child(2) { animation-delay: .16s; }
.fonzi-bubble--typing i:nth-child(3) { animation-delay: .32s; }

@keyframes fonzi-type {
  0%, 60%, 100% { transform: translateY(0);    opacity: .4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Lead-capture card */
.fonzi-lead { max-width: 100%; width: 100%; }
.fonzi-lead-title { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.fonzi-lead-title a { color: var(--gold); text-decoration: underline; }
.fonzi-lead-form { display: flex; flex-direction: column; gap: 8px; }
.fonzi-lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fonzi-lead-form input,
.fonzi-lead-form textarea {
  font: inherit; font-size: 14px;
  padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: var(--white);
  width: 100%; resize: vertical;
}
.fonzi-lead-form input::placeholder,
.fonzi-lead-form textarea::placeholder { color: rgba(255,255,255,.4); }
.fonzi-lead-form input:focus,
.fonzi-lead-form textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255,255,255,.09);
}
.fonzi-lead-err { margin: 2px 0 0; font-size: 12.5px; color: #FF8A8A; }
.fonzi-lead-send {
  margin-top: 3px; padding: 11px 16px; border-radius: var(--r-pill);
  background: var(--gold); color: var(--on-gold);
  font-weight: 600; font-size: 14px;
  transition: background-color .2s var(--ease);
}
.fonzi-lead-send:hover:not(:disabled) { background: var(--gold-600); }
.fonzi-lead-send:disabled { opacity: .65; cursor: default; }

/* Quick-reply chips */
.fonzi-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 14px 18px 4px;
  flex: none;
}
.fonzi-chips[hidden] { display: none; }
.fonzi-chip {
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  font-size: 13px; font-weight: 500;
  transition: all .2s var(--ease);
}
.fonzi-chip:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,196,0,.1); }

/* Composer */
.fonzi-compose {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 16px 12px;
  flex: none;
}
.fonzi-input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 14.5px;
  padding: 12px 16px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: var(--white);
}
.fonzi-input::placeholder { color: rgba(255,255,255,.4); }
.fonzi-input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.09); }

.fonzi-send {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--gold); color: var(--on-gold);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.fonzi-send:hover { background: var(--gold-600); transform: scale(1.05); }
.fonzi-send svg { width: 20px; height: 20px; }

.fonzi-foot {
  margin: 0; padding: 0 18px 14px;
  font-size: 11.5px; color: var(--muted-faint); text-align: center; flex: none;
}
.fonzi-foot a { color: var(--muted-dark); text-decoration: underline; text-underline-offset: 2px; }
.fonzi-foot a:hover { color: var(--gold); }

/* --- Small screens: the panel takes the viewport ------------------------- */

@media (max-width: 640px) {
  .fonzi-launcher { right: 16px; bottom: 16px; height: 52px; padding: 0 18px 0 15px; }
  .fonzi-launcher-close { left: 15px; }

  .fonzi-panel {
    right: 0; left: 0; bottom: 0; top: 0;
    width: 100%; max-height: none;
    border-radius: 0; border: 0;
    transform: translateY(100%);
    transform-origin: center bottom;
    /* Full-screen here, so it must clear the sticky site header (z-index 100).
       Otherwise the header paints over the chat's own header and buries the
       close button — and the launcher is hidden too, trapping the visitor. */
    z-index: 110;
  }
  body.fonzi-open .fonzi-panel { transform: none; }
  body.fonzi-open { overflow: hidden; }
  /* The launcher would sit on top of the full-screen panel. */
  body.fonzi-open .fonzi-launcher { display: none; }

  .fonzi-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .fonzi-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .fonzi-bubble { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .fonzi-panel { transition: none; }
  .fonzi-launcher.has-ping .fonzi-ping { animation: none; }
  .fonzi-bubble--typing i { animation: none; }
}

@media print {
  .fonzi-launcher, .fonzi-panel { display: none !important; }
}

/* ==========================================================================
   Compliance marks — ISO 27001, PCI DSS, HIPAA, NIST SP 800-53
   White chips on purpose: the ISO and PCI marks knock their wording out of a
   solid shape, so tinting them onto a dark surface erases the text.
   ========================================================================== */

.compliance {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.compliance-item { display: flex; }

.compliance-chip {
  --mark-h: clamp(84px, 8vw, 112px);
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* No caption any more, so the tile is just padding around the mark. */
  padding: clamp(22px, 2.4vw, 30px) 20px;
  background: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* The gold top-edge and the lift were affordances for a clickable chip. The
   marks are plain images now, so nothing here should suggest a target. */

/* The mark box is a definite size and the image letterboxes inside it with
   object-fit. `max-height: 100%` on the image does NOT work here: the grid row
   is auto-sized, so the percentage resolves against an indefinite height, is
   dropped, and the mark overflows onto the caption below. */
.compliance-mark {
  display: block;
  width: 100%; height: var(--mark-h);
}
.compliance-mark picture { display: block; width: 100%; height: 100%; }
.compliance-mark img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transform: scale(var(--mark-scale, 1));
}

/* .compliance-meta / -name / -status / -ref were the caption block. The marks
   render as plain images now, so those rules are gone rather than left to rot.
   $FF_COMPLIANCE still holds the names, statuses, reference numbers and
   certificate URLs — Fonzi quotes them in chat and the README tracks the
   renewal date — they are simply no longer printed on the badges. */

@media (max-width: 900px) {
  .compliance { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  /* Two across even on the narrowest phone: without captions a single column
     of four tall tiles is a lot of scrolling for four small images. */
  .compliance { grid-template-columns: repeat(2, 1fr); }
  .compliance-chip { --mark-h: 64px; padding: 16px 12px; }
}

/* A single leadership card: centred and a little larger, so one person does not
   read as three missing colleagues in a four-up grid. */
.person-solo {
  display: grid; justify-items: center;
  max-width: 300px; margin-inline: auto;
}
.person-solo .person-photo { width: 240px; }
.person-solo .person-name { font-size: 1.2rem; margin-top: 4px; }
.person-solo .person-role { font-size: 15px; }

/* Footer compliance marks — same white-chip treatment as the page sections,
   scaled down to sit inside the footer's Trust column. */
.footer-marks {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.footer-mark {
  display: block;
  background: var(--white);
  border-radius: var(--r-md);
  /* 76px, not less: the ISO mark carries ring text that stops being legible
     below roughly 60px of rendered height. */
  padding: 8px 10px;
  height: 76px;
}
.footer-mark picture { display: block; width: 100%; height: 100%; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1100px) {
  .footer-marks { grid-template-columns: repeat(4, 1fr); max-width: 420px; }
}
@media (max-width: 760px) {
  .footer-marks { grid-template-columns: repeat(2, 1fr); max-width: 280px; }
}


/* ==========================================================================
   Blog post page
   ========================================================================== */

/* Cards link through one stretched anchor on the heading, so the whole card is
   clickable but a keyboard lands on it once, not three times. */
.post-card { position: relative; }
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.post-card:focus-within { outline: 2px solid var(--gold-700); outline-offset: 3px; }
.post-card h3 a:focus-visible { outline: none; }
.post-card .link-arrow { color: var(--gold-700); }

.page-hero--post h1 { max-width: 20ch; }
.page-hero--post .lede { max-width: 62ch; }
.post-meta--hero {
  margin-bottom: 18px;
  color: rgba(255,255,255,.72);
}
.post-meta--hero .post-cat {
  background: rgba(255,196,0,.16);
  color: var(--gold);
}
.post-meta--hero .post-date { color: rgba(255,255,255,.62); }

.article-lead { margin-bottom: 44px; }

.draft-flag {
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  margin: 0 0 32px;
  font-size: 15px;
}

/* --- Rendered markdown ---------------------------------------------------- */

.article { font-size: 1.0625rem; line-height: 1.78; color: var(--ink-700); }
.article > *:first-child { margin-top: 0; }
.article > *:last-child { margin-bottom: 0; }

.article p { margin: 0 0 1.4em; }

.article h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 2.4em 0 .7em;
}
.article h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2em 0 .6em;
}

.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--gold-700); }

.article a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--ink); }

.article blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--gold);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}
.article blockquote p:last-child { margin-bottom: 0; }

.article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 2em 0;
  display: block;
}

.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.8em 0; }

.article code {
  background: var(--light-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}
.article pre {
  background: var(--ink);
  color: #F2F2F2;
  padding: 20px 22px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 2em 0;
  font-size: .9rem;
  line-height: 1.6;
}
.article pre code { background: none; padding: 0; color: inherit; }

.article table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.article th { font-weight: 600; color: var(--ink); }

.article-back { margin: 52px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.link-arrow--back svg { transform: rotate(180deg); }
.link-arrow--back:hover svg { transform: rotate(180deg) translateX(2px); }

/* ==========================================================================
   Booking CTAs (brief v4 §4)
   ========================================================================== */

.btn-row--center { justify-content: center; }

.booking-block { padding-block: clamp(56px, 7vw, 88px); }
.booking-block .h2 { margin-bottom: 14px; }
.booking-block .lede { max-width: 56ch; }

/* Small, quiet, and never the thing the eye lands on first — but --muted-faint
   is the token for smallest print ON DARK (AA against #191919). On white it is
   3.6:1, so the light default is --muted and the faint tone is scoped to dark. */
.book-reassure {
  margin: 20px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.section--dark .book-reassure,
.booking-block .book-reassure { color: var(--muted-faint); }

/* The secondary never shouts — but "quiet" must never mean "invisible".
   Every surface a secondary CTA can land on is listed here explicitly.
   --gold-700 is the AA-safe accent on LIGHT surfaces only; on the ink
   surfaces below it drops to 3.46:1, and an outline button inheriting the
   ink text colour on an ink background is literally 1:1. Both of those
   shipped once and the contrast sweep caught them. */
.cta-secondary { white-space: nowrap; }

/* Light surfaces: the default accent and an ink outline button. */
.cta-secondary.link-arrow { color: var(--gold-700); }
.cta-secondary.btn--outline {
  border-color: rgba(25,25,25,.28);
  color: var(--ink);
  background: transparent;
}
.cta-secondary.btn--outline:hover { border-color: var(--ink); background: rgba(25,25,25,.05); }

/* Every dark surface a CTA pair can sit on: the page hero, any dark section,
   the booking block and the end-of-page banner. */
.page-hero .cta-secondary.link-arrow,
.hero .cta-secondary.link-arrow,
.section--dark .cta-secondary.link-arrow,
.booking-block .cta-secondary.link-arrow,
.cta-banner .cta-secondary.link-arrow { color: var(--gold); }

.page-hero .cta-secondary.btn--outline,
.hero .cta-secondary.btn--outline,
.section--dark .cta-secondary.btn--outline,
.booking-block .cta-secondary.btn--outline,
.cta-banner .cta-secondary.btn--outline {
  border-color: var(--line-dark);
  color: var(--white);
  background: transparent;
}
.page-hero .cta-secondary.btn--outline:hover,
.hero .cta-secondary.btn--outline:hover,
.section--dark .cta-secondary.btn--outline:hover,
.booking-block .cta-secondary.btn--outline:hover,
.cta-banner .cta-secondary.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* --- Sticky mobile booking bar ------------------------------------------- */

.sticky-book {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;              /* under Fonzi's panel (110), over page content */
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(25,25,25,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-dark);
}
.sticky-book .btn { flex: 1; justify-content: center; }
.sticky-book-close {
  flex: none;
  width: 38px; height: 38px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.sticky-book-close:hover { background: rgba(255,255,255,.2); }

@media (max-width: 760px) {
  .sticky-book:not([hidden]) { display: flex; }
  /* Keep the bar clear of the footer and of Fonzi's launcher. */
  body.has-sticky-book { padding-bottom: 66px; }
  body.has-sticky-book .fonzi-launcher { bottom: 78px; }
}

/* ==========================================================================
   Services mega menu — clickable parent (brief v4 §3)
   ========================================================================== */

/* The parent label navigates; the caret beside it opens the panel. Two
   controls, so neither has to do the other's job. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.82);
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-toggle:hover, .nav-item.is-open .nav-toggle { color: var(--white); }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.nav-link--parent { padding-right: 2px; }

/* The four Other Services, listed under their parent entry in the panel. */
.mega-sub {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.mega-sub span { white-space: nowrap; }
.mega-item:hover .mega-sub { color: var(--ink-600); }

@media (max-width: 1200px) {
  /* In the drawer the label and caret share one row, and the description
     lines come off to save vertical space (§3 responsive rule 2). */
  .nav-item.has-mega { display: flex; flex-wrap: wrap; align-items: center; }
  .nav-link--parent { flex: 1; }
  .nav-toggle { padding: 17px 8px; color: rgba(255,255,255,.82); }
  .nav-item.has-mega .mega { flex-basis: 100%; }
  .mega-item-desc { display: none; }
  .mega-sub { color: rgba(255,255,255,.45); margin-top: 4px; }
  .mega-item:hover .mega-sub { color: rgba(255,255,255,.7); }
}

/* Two centred stats, not four. The Outsourcing page uses exactly this pair
   (§6) and the brief is explicit that it must not be padded out to fill the
   width — the generous space around them is the intended look. */
.stats--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}
.stat-band { padding-block: clamp(48px, 6vw, 76px); }

/* A short hero for hub pages that lead straight into cards. */
.page-hero--short { padding-block: clamp(84px, 9vw, 128px) clamp(40px, 5vw, 64px); }

/* ==========================================================================
   Comparison tables ("Which one do I need?", EOR vs outsourcing)
   ========================================================================== */

/* The table is the most useful thing on the Services hub for a prospect who
   does not yet know what to ask for, so it gets its own scroll container
   rather than being allowed to widen the document on a phone. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare thead th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  padding: 16px 18px;
  white-space: nowrap;
}
.compare thead th:first-child { width: 26%; }
.compare tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--light);
}
.compare th, .compare td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td { color: var(--ink-700); }

/* The column a visitor is reading stays legible when the table scrolls. */
.compare tbody tr:hover td,
.compare tbody tr:hover th { background: var(--gold-tint); }

@media (max-width: 640px) {
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 13px; }
}

/* --- Trust row (replaces the client logo bar, §15) ----------------------- */

.trust-row {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 52px);
}
.trust-row li,
.trust-row li > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  text-decoration: none;
}
.trust-row li > a:hover { color: var(--gold-700); }
.trust-row svg { width: 20px; height: 20px; flex: none; color: var(--gold-700); }

/* On the dark compliance band the row sits under the four marks. */
.section--dark .trust-row li,
.section--dark .trust-row li > a { color: var(--body-dark); }
.section--dark .trust-row li > a:hover { color: var(--gold); }
.section--dark .trust-row svg { color: var(--gold); }

/* The testimonial card no longer carries a name or an avatar (§15), so the
   role line IS the attribution now — it cannot stay at the muted grey it used
   when it was the subordinate half of a name/role pair. */
.testi-role { font-size: 14.5px; color: var(--ink-600); }
.section--dark .testi-role,
.card--dark .testi-role { color: var(--body-dark); }


/* ==========================================================================
   Savings calculator — never let it render as a blank band (brief v4 §18)
   ========================================================================== */

/* The calculator section carries no entrance animation at all. An animated
   section that is waiting for JavaScript occupies its full height at zero
   opacity, which is indistinguishable from a broken page. Nothing about this
   section fades in. */
.calc-section .reveal,
.calc-section.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* An explicit minimum height, so the container cannot collapse to nothing
   before the controls are laid out. */
.calc { min-height: 420px; }

.calc-fallback {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--light);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
}
.calc-fallback p { margin: 0 0 20px; font-size: 16px; color: var(--ink-700); }

@media (max-width: 560px) { .calc { min-height: 520px; } }

/* ==========================================================================
   /book/ — the scheduler inside our own layout
   ========================================================================== */

.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.book-aside h2 { margin-bottom: 18px; }
.book-aside .check-list li { font-size: 15.5px; }
.book-aside .check-list strong { color: var(--ink); }

.book-alt {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--light);
  border: 1px solid var(--line);
}
.book-alt-h { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.book-alt p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.book-alt .link-arrow { display: flex; font-size: 14.5px; }
.book-alt .link-arrow + .link-arrow { margin-top: 8px; }

/* The panel is ours; only the calendar inside it is Calendly's. */
.book-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.book-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.book-panel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,196,0,.22);
  flex: none;
}

/* --- The picker: FoneFluent's own dates and times ------------------------ */

.book-picker { padding: clamp(22px, 3vw, 32px); }

.book-loading {
  display: grid; place-items: center; gap: 16px;
  min-height: 300px;
  color: var(--muted); font-size: 15px; text-align: center;
}
.book-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--gold);
  animation: book-spin .8s linear infinite;
}
@keyframes book-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .book-spinner { animation-duration: 2.4s; } }

.book-tz {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--muted);
  margin-bottom: 20px;
}
.book-tz svg { width: 16px; height: 16px; color: var(--gold-700); }
.book-tz strong { color: var(--ink-700); font-weight: 600; }

/* A scrollable day strip rather than a month grid: the visitor is booking a
   call this week, not browsing a calendar. */
.book-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 26px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.book-date {
  flex: none;
  width: 68px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.book-date:hover { border-color: var(--ink); transform: translateY(-2px); }
.book-date.is-on {
  background: var(--ink);
  border-color: var(--ink);
}
.book-date-dow,
.book-date-mon {
  display: block;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.book-date-num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink);
}
.book-date.is-on .book-date-dow,
.book-date.is-on .book-date-mon { color: var(--gold); }
.book-date.is-on .book-date-num { color: var(--white); }
.book-date:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 2px; }

.book-times-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 14px;
}
.book-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.book-time {
  padding: 13px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  font: 600 15px/1 var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.book-time:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  transform: translateY(-2px);
}
.book-time:focus-visible { outline: 2px solid var(--gold-700); outline-offset: 2px; }

.book-more { margin-top: 26px; text-align: center; }

.book-back {
  margin-left: auto;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font: 600 13px/1 var(--sans);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.book-back:hover { background: rgba(255,255,255,.22); }

/* The confirm step: Calendly, opened straight on the name and email form. */
.book-embed { min-height: 640px; }
.book-embed iframe { display: block; border: 0; width: 100%; height: 640px; }

.page-book .book-panel + .book-reassure { margin: 0; padding: 0 0 20px; }

@media (max-width: 960px) {
  .book-layout { grid-template-columns: 1fr; }
  /* Calendar first on a phone: someone who tapped "Get a Team Plan" came to
     pick a time, not to read about the call. */
  .book-panel { order: -1; }
  .book-embed, .book-embed iframe { height: 780px; }
}


/* The eyebrow sits on a dark hero on /book/, where --gold-700 is 3.46:1.
   Brand gold is the correct accent on ink; --gold-700 exists for light
   surfaces only. */
.page-hero .eyebrow,
.hero .eyebrow { color: var(--gold); }
