/* ==========================================================================
   Vyrloop — global.css
   Design system + components shared by every page.
   Page-type layouts (home, service template, contact, legal) live in pages.css.

   Breakpoints (max-width, mobile adjustments layered on a desktop-first base):
     1100px  wide grids drop from 4/5 columns to 2
      960px  header switches to the mobile menu; split layouts stack
      760px  tablet portrait: secondary grids go to 1 column
      560px  phones: paired form fields stack, compact spacing
      400px  small phones (320–399px): tightest gutters and type
   ========================================================================== */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Preloaded in the page <head>; OFL licence alongside the file. */
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

/* ---------- 2. Tokens ---------- */
:root {
  /* colour */
  --ink: #05080f;         /* page background (logo background) */
  --ink-2: #0a101b;       /* raised band / card */
  --ink-3: #111a29;       /* inner surface */
  --line: #1c2738;        /* hairlines and borders */
  --paper: #f2f4f1;       /* primary text (logo white) */
  --muted: #9aa7b9;       /* secondary text (AA on all surfaces) */
  --lime: #b6f25e;        /* brand green */
  --lime-hi: #d4fc86;
  --lime-lo: #8cbf48;
  --on-lime: #071006;     /* text on lime */
  --bad: #ff9d90;         /* warning / red flags */
  --warn: #ffd08a;        /* placeholder highlight */

  /* type */
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-lede: clamp(16px, 1.1vw + 11px, 19px);
  --fs-h1: clamp(32px, 4.4vw + 14px, 72px);
  --fs-h2: clamp(27px, 2.6vw + 16px, 50px);
  --fs-h3: clamp(18px, 0.6vw + 14px, 22px);

  /* layout */
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section-y: clamp(56px, 7vw + 16px, 120px);

  /* shape */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --shadow: 0 40px 80px -40px #000;

  color-scheme: dark;
}

/* ---------- 3. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main { display: block; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- 4. Layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: var(--section-y); }
.band--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.band--flush-top { padding-top: 0; }
.split {               /* two-column editorial layout that stacks under 960px */
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split > * { min-width: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack--lg { gap: 24px; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 90px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--on-lime); font-weight: 800;
  padding: 12px 18px; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 5. Typography components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; flex: none; }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.07; }
.h2 em, .h1 em { font-style: normal; color: var(--lime); }
.hl { color: var(--lime); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px var(--stroke, var(--paper)); }
.outline-text.muted { --stroke: var(--muted); color: transparent; }
.lede { color: var(--muted); font-size: var(--fs-lede); max-width: 62ch; }
.muted { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); }
.ph {                   /* content placeholder the owner still has to fill in */
  background: color-mix(in srgb, #ffb84d 16%, transparent);
  color: var(--warn); padding: 0 6px; border-radius: 6px; font-weight: 700;
}

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head > div { display: grid; gap: 16px; max-width: 680px; min-width: 0; }
.section-head > .lede { max-width: 44ch; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center > div { justify-items: center; }

/* ---------- 6. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; max-width: 100%;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font); font-weight: 700; font-size: 15px; line-height: 1.25; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s ease; }
.btn:hover svg { transform: translate(3px, -3px); }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.btn--lime:hover { background: var(--lime-hi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--dark { background: var(--on-lime); color: var(--lime); }
.btn--dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; width: fit-content; justify-self: start; align-self: flex-start;
  font-weight: 700; color: var(--lime); text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--lime) 40%, transparent); padding-bottom: 4px;
}
.link-arrow:hover { border-color: var(--lime); }
.link-arrow svg { width: 16px; height: 16px; flex: none; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tick-list { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 14px; font-weight: 600; }
.tick-list li { display: flex; align-items: center; gap: 8px; }
.tick-list svg, .check-list svg { width: 18px; height: 18px; color: var(--lime); flex: none; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; }
.check-list li svg { margin-top: 3px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.tag-new {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.4;
  padding: 3px 8px; border-radius: 6px; background: var(--lime); color: var(--on-lime); white-space: nowrap;
}

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--ink);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.site-header.is-scrolled, .site-header.is-open { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-size: 14px; font-weight: 600; }
.nav__link, .nav__toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0; background: none; border: 0;
  color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px;
  transition: color 0.2s;
}
.nav__link:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { color: var(--paper); }
.nav__link[aria-current="page"], .nav__toggle.is-current { color: var(--paper); }
.nav__link[aria-current="page"]::after, .nav__toggle.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--lime); border-radius: 2px;
}
.nav__toggle svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 320px; padding: 10px; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: grid; gap: 2px;
}
.dropdown a {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none;
}
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--ink-3); }
.dropdown b { font-size: 14px; font-weight: 700; color: var(--paper); }
.dropdown small { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.dropdown a[aria-current="page"] b { color: var(--lime); }
.dropdown .dropdown__all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.dropdown .dropdown__all b { color: var(--lime); }
/* Services menu: two columns so it fits short laptop screens; "All services" spans both. */
.dropdown { width: min(640px, calc(100vw - 32px)); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.dropdown .dropdown__all { grid-column: 1 / -1; }
/* A service with sub-pages (e.g. SEO > On-Page SEO): arrow on the item, fly-out on hover or keyboard focus. */
.dropdown__group { position: relative; min-width: 0; }
.dropdown .dropdown__parent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.dropdown__parent > span { display: grid; gap: 2px; min-width: 0; }
.dropdown__parent svg { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform 0.2s, color 0.2s; }
.dropdown__group:hover > .dropdown__parent, .dropdown__group:focus-within > .dropdown__parent { background: var(--ink-3); }
.dropdown__group:hover > .dropdown__parent svg, .dropdown__group:focus-within > .dropdown__parent svg { color: var(--lime); transform: rotate(-90deg) translateY(3px); }
.dropdown__flyout {
  position: absolute; top: 0; left: calc(100% - 8px); z-index: 2; width: 270px; padding: 8px; display: grid; gap: 2px;
  border-radius: var(--r); background: var(--ink-2); border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--line)); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.dropdown__group:hover > .dropdown__flyout, .dropdown__group:focus-within > .dropdown__flyout { opacity: 1; visibility: visible; transform: none; }
.dropdown .dropdown__sub[aria-current="page"] b, .dropdown .dropdown__sub:hover b { color: var(--lime); }
/* Touch screens can't hover: show the sub-pages inline under their parent instead. */
@media (hover: none) {
  .dropdown__flyout { position: static; width: auto; margin: 0 0 2px 14px; padding: 0 0 0 4px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .dropdown__parent svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dropdown__flyout, .dropdown__parent svg { transition: none; } }

.menu-btn {
  display: none; place-items: center; width: 46px; height: 46px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--paper); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.mobile-menu { border-top: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu .wrap { display: grid; padding-block: 8px 24px; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--lime); }
.mobile-menu__label { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mobile-menu .sub { padding-left: 14px; font-weight: 500; color: var(--muted); }
.mobile-menu .sub--child { gap: 10px; padding-left: 30px; font-size: 14.5px; }
.mobile-menu .sub--child::before { content: ""; width: 10px; height: 1px; background: currentColor; opacity: 0.6; }
.mobile-menu .btn { margin-top: 18px; border-bottom: 0; }

@media (max-width: 960px) {
  .nav, .site-header__cta { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

/* ---------- 8. Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: clamp(24px, 3vw, 36px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: color-mix(in srgb, var(--muted) 50%, transparent); }
.crumbs [aria-current] { color: var(--paper); }

/* ---------- 9. Forms ---------- */
.form-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; min-width: 0;
}
.form-card h2, .form-card h3 { font-size: clamp(20px, 1vw + 15px, 24px); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field-label { font-size: 13px; font-weight: 700; }
.field label small, .field-label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px;
  font-size: 16px; /* 16px stops iOS zoom on focus */
  color: var(--paper); background: var(--ink); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 25%, transparent); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { font-size: 13px; font-weight: 600; color: var(--bad); }
.form-fine { font-size: 13px; color: var(--muted); text-align: center; }
.form-fine a { color: var(--paper); }
fieldset.field-group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
fieldset.field-group legend small { color: var(--muted); font-weight: 500; }

/* Form status (shared by every form; see global.js) */
.form-status { display: grid; gap: 14px; justify-items: start; }
.form-status__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.form-status__icon svg { width: 26px; height: 26px; }
.form-status--pending .form-status__icon { background: color-mix(in srgb, #ffb84d 22%, transparent); color: var(--warn); }
.form-status h3 { font-size: 22px; font-weight: 900; }
.form-status p { color: var(--muted); }
.form-status p b { color: var(--paper); }

/* Choice chips (multi-select) */
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  font-size: 14px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.choice span::before { content: "+"; font-weight: 900; color: var(--muted); }
.choice:hover span { border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.choice input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.choice input:checked + span::before { content: "✓"; color: var(--on-lime); }
.choice input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Segmented control (single-select) */
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.segmented label { position: relative; min-width: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: grid; place-items: center; min-height: 42px; padding: 6px; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-align: center; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.segmented input:checked + span { background: var(--ink-3); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--lime); }
.segmented input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---------- 10. FAQ accordion (native <details>) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 34px; gap: 14px; align-items: center;
  padding: 22px 4px; font-weight: 700; font-size: clamp(16px, 0.4vw + 14.5px, 18px); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__n { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.faq__pm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.faq__pm svg { width: 14px; height: 14px; transition: transform 0.3s; }
.faq details[open] .faq__n { color: var(--lime); }
.faq details[open] .faq__pm { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.faq details[open] .faq__pm svg { transform: rotate(45deg); }
.faq__a { padding: 0 52px 24px 58px; color: var(--muted); max-width: 72ch; }
.faq-wrap { max-width: 880px; margin-inline: auto; }

/* ---------- 11. Closing CTA panel with inline form ---------- */
.cta-panel {
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--lime) 14%, var(--ink-2)), var(--ink-2) 55%);
  padding: clamp(24px, 5vw, 64px); display: grid; gap: 28px;
}
.cta-panel h2 { font-size: clamp(28px, 3vw + 14px, 56px); font-weight: 900; line-height: 1.03; letter-spacing: -0.03em; max-width: 18ch; }
.cta-panel h2 em { font-style: normal; color: var(--lime); }
.inline-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; padding: 10px; border-radius: 22px; background: var(--ink); border: 1px solid var(--line); }
.inline-form .field { gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--ink-2); border: 1.5px solid transparent; transition: border-color 0.2s; }
.inline-form .field:focus-within { border-color: var(--lime); }
.inline-form .field.is-invalid { border-color: var(--bad); }
.inline-form label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.inline-form input { min-height: 0; padding: 2px 0; border: 0; background: transparent; border-radius: 0; font-weight: 600; box-shadow: none !important; }
.inline-form .btn { border-radius: 14px; }
.cta-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cta-panel .form-message { font-size: 14px; font-weight: 600; color: var(--muted); }
.cta-panel .form-message.is-error { color: var(--bad); }
.cta-panel .form-message.is-ok { color: var(--lime); }
.cta-panel .form-message.is-pending { color: var(--warn); }

/* ---------- 12. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: clamp(48px, 6vw, 72px) 28px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand img { width: 220px; }
.site-footer__brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 36ch; }
.site-footer h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.site-footer ul a, .site-footer ul span { display: inline-flex; align-items: center; min-height: 34px; text-decoration: none; }
.site-footer ul span { color: var(--muted); }
.site-footer .site-footer__sub a { gap: 8px; padding-left: 14px; font-size: 13.5px; }
.site-footer .site-footer__sub a::before { content: ""; width: 8px; height: 1px; background: currentColor; opacity: 0.6; }
.site-footer a:hover { color: var(--lime); }
.site-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__legal a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer__legal a[aria-current="page"] { color: var(--lime); }
.site-footer__social-link { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.site-footer__social-link:hover { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 55%, var(--line)); background: color-mix(in srgb, var(--lime) 8%, transparent); }
.site-footer__social-icon { display: block; width: 19px; height: 19px; object-fit: contain; filter: brightness(0) invert(.72); }
.site-footer__social-link:hover .site-footer__social-icon { filter: brightness(0) saturate(100%) invert(84%) sepia(64%) saturate(624%) hue-rotate(32deg) brightness(105%); }
.site-footer__social-link svg.site-footer__social-icon { filter: none; }

/* ---------- 13. Responsive adjustments for shared components ---------- */
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .inline-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctas { flex-direction: column; align-items: stretch; }
  .ctas .btn { width: 100%; }
  .faq summary { grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 10px; }
  .faq__a { padding: 0 4px 22px 44px; }
  .brand img { width: 124px; }
}
@media (max-width: 400px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .btn { padding-inline: 20px; }
  .tick-list { gap: 10px 18px; }
}

/* small heading used inside content blocks */
.h3-plain { font-size: 16px; font-weight: 800; letter-spacing: 0; line-height: 1.4; }

/* placeholders stay readable on lime surfaces */
.svc-card--featured .ph, .founding .ph, .verdict .ph { background: var(--on-lime); color: var(--warn); }

/* ---------- 14. Server-connected forms and settings-driven extras ---------- */
/* Honeypot field: off-screen for people, still present for naive bots. */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Server errors on card forms that have no inline message slot (see global.js). */
.form-card .form-message { font-size: 14px; font-weight: 600; text-align: center; }
.form-card .form-message.is-error { color: var(--bad); }

/* Result banner for forms submitted without JavaScript. */
.site-flash { border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.site-flash .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; padding-block: 12px; }
.site-flash svg { width: 20px; height: 20px; flex: none; }
.site-flash--ok { background: color-mix(in srgb, var(--lime) 12%, var(--ink)); color: var(--lime); }
.site-flash--error { background: color-mix(in srgb, var(--bad) 12%, var(--ink)); color: var(--bad); }

/* Social profile links (only rendered when set in Admin > Settings). */
.site-footer ul.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.site-footer__social a { color: var(--muted); }

/* Submit buttons while a form is sending (see global.js). */
.btn:disabled { cursor: not-allowed; transform: none; }
.btn.is-loading { cursor: progress; opacity: 0.85; }
.btn-spinner { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: btn-spin 0.7s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Google reCAPTCHA v2 checkbox (only when enabled in the admin). */
.recaptcha-slot { min-height: 78px; }
.cta-panel .recaptcha-slot { margin-top: -12px; }

/* ---------- 15. Free audit popup (<dialog>, see global.js initAuditPopup) ---------- */
html.has-modal { overflow: hidden; }
.audit-modal {
  width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible;
}
.audit-modal::backdrop { background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.audit-modal[open] { animation: audit-in 0.28s cubic-bezier(.2, .8, .2, 1); }
.audit-modal[open]::backdrop { animation: audit-fade 0.28s ease; }
@keyframes audit-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes audit-fade { from { opacity: 0; } }
.audit-modal__panel {
  position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--lime) 10%, transparent), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--lime) 8%, transparent);
}
.audit-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--ink-3); color: var(--paper); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.audit-modal__close:hover { border-color: var(--lime); color: var(--lime); transform: rotate(90deg); }
.audit-modal__close:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.audit-modal__close svg { width: 18px; height: 18px; }
.audit-modal__form { display: grid; }
.audit-modal__head { display: grid; gap: 10px; padding-right: 40px; }
.audit-modal__head h2 { font-size: clamp(24px, 1.6vw + 16px, 32px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
.audit-modal__head h2 em { font-style: normal; color: var(--lime); }
.audit-modal__head p { color: var(--muted); font-size: 15px; }
.audit-modal .form-message { font-size: 14px; font-weight: 600; text-align: center; }
.audit-modal .form-message.is-error { color: var(--bad); }
.audit-modal .form-status { justify-items: center; text-align: center; padding-block: 12px; }
.audit-modal .recaptcha-slot { justify-self: center; }
@media (max-width: 520px) {
  .audit-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .audit-modal__panel { max-height: calc(100dvh - 24px); border-radius: var(--r-lg); padding: 22px 18px; }
  .audit-modal__close { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .audit-modal[open], .audit-modal[open]::backdrop { animation: none; }
}

/* Select showing its "Select your ..." placeholder option. */
.field select:has(option[value=""]:checked) { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field select option { color: var(--paper); background: var(--ink); }
