/* ==========================================================================
   GlideQuest — site styles

   Structure:
     1. Brand constants      — fixed brand values, identical in both themes
     2. Semantic tokens      — what the page actually uses; remapped for dark
     3. Everything else      — components, built only on semantic tokens

   Rules that are deliberate, not incidental (see SITE-PLAN.md §2.4):
   - Cards are 8px radius with a soft shadow and NO borders.
   - Buttons are 6px radius.
   - No accent stripes, colour bars, or single-edge borders anywhere.
   - Orange is a graphic colour only: it never carries text, and never has
     white text on top of it. Numerals on orange are near-black.
   ========================================================================== */

/* 1. Brand constants
   ========================================================================== */

:root {
  --blue: #1B4B8F;
  --orange: #F5821F;
  --amber: #FDB927;
  --navy: #12325C;
  --ink: #1A1A1A;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 8px;
  --radius-btn: 6px;
  --container: 1140px;
  --gutter: 1.5rem;
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 76px;

  color-scheme: light;
}

/* 2. Semantic tokens
   ========================================================================== */

/* --- Light (default) --- */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --surface: #FFFFFF;

  --text: var(--ink);
  --text-muted: #545C69;
  --heading: var(--navy);

  --link: var(--blue);
  --link-hover: var(--navy);

  --btn-bg: var(--blue);
  --btn-fg: #FFFFFF;
  --btn-bg-hover: var(--navy);
  --btn-ghost-hover: rgba(27, 75, 143, .08);

  --badge-bg: var(--blue);
  --badge-fg: #FFFFFF;

  --band-bg: var(--navy);
  --band-fg: rgba(255, 255, 255, .88);
  --band-divider: rgba(255, 255, 255, .12);

  --line: #DDE3EC;
  --field-bg: #FFFFFF;

  --shadow-card: 0 4px 16px rgba(18, 50, 92, .08);
  --shadow-card-hover: 0 10px 28px rgba(18, 50, 92, .14);
  --shadow-nav: 0 2px 12px rgba(18, 50, 92, .09);

  --ph-bg: rgba(27, 75, 143, .07);
  --ph-fg: #545C69;

  --nav-active-bg: rgba(253, 185, 39, .20);

  --map-line-a: #1B4B8F;
  --map-line-b: #F5821F;

  --error: #B3261E;
  --error-bg: rgba(179, 38, 30, .08);
}

/* --- Dark --- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0E1A2B;
  --bg-alt: #13233A;
  --surface: #16283F;

  --text: #E9EEF5;
  --text-muted: #A7B6C9;
  --heading: #FFFFFF;

  --link: #7FB3EE;
  --link-hover: #A9CCF5;

  --btn-bg: #2E72D2;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #4A8AE0;
  --btn-ghost-hover: rgba(127, 179, 238, .14);

  --badge-bg: #2E72D2;
  --badge-fg: #FFFFFF;

  --band-bg: #08111D;
  --band-fg: rgba(255, 255, 255, .86);
  --band-divider: rgba(255, 255, 255, .14);

  --line: #2A3A52;
  --field-bg: #101E31;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, .38);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, .5);
  --shadow-nav: 0 2px 14px rgba(0, 0, 0, .45);

  --ph-bg: rgba(255, 255, 255, .10);
  --ph-fg: #A7B6C9;

  --nav-active-bg: rgba(253, 185, 39, .16);

  --map-line-a: #7FB3EE;
  --map-line-b: #F5821F;

  --error: #F2B8B5;
  --error-bg: rgba(242, 184, 181, .12);
}

/* Without JS there is no data-theme attribute, so honour the OS setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1A2B;
    --bg-alt: #13233A;
    --surface: #16283F;
    --text: #E9EEF5;
    --text-muted: #A7B6C9;
    --heading: #FFFFFF;
    --link: #7FB3EE;
    --link-hover: #A9CCF5;
    --btn-bg: #2E72D2;
    --btn-fg: #FFFFFF;
    --btn-bg-hover: #4A8AE0;
    --btn-ghost-hover: rgba(127, 179, 238, .14);
    --badge-bg: #2E72D2;
    --badge-fg: #FFFFFF;
    --band-bg: #08111D;
    --band-fg: rgba(255, 255, 255, .86);
    --band-divider: rgba(255, 255, 255, .14);
    --line: #2A3A52;
    --field-bg: #101E31;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, .38);
    --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, .5);
    --shadow-nav: 0 2px 14px rgba(0, 0, 0, .45);
    --ph-bg: rgba(255, 255, 255, .10);
    --ph-fg: #A7B6C9;
    --nav-active-bg: rgba(253, 185, 39, .16);
    --map-line-a: #7FB3EE;
    --map-line-b: #F5821F;
    --error: #F2B8B5;
    --error-bg: rgba(242, 184, 181, .12);
  }
}

/* 3. Base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .75rem;
  text-wrap: balance;
}

h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-weight: 700; font-size: 1.3rem; }
h4 { font-weight: 700; font-size: 1.0625rem; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

strong { font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #FFFFFF;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-btn) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #FFFFFF; }

/* 4. Layout
   ========================================================================== */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--gray { background: var(--bg-alt); }
.section--navy { background: var(--band-bg); color: var(--band-fg); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #FFFFFF; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 0; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.prose p { color: var(--text-muted); }
.prose p + h2,
.prose p + h3 { margin-top: 2.5rem; }

.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.section-note { margin-top: 2.5rem; color: var(--text-muted); }

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

/* 5. Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .875rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--link); padding-inline: 1rem; }
.btn-secondary:hover { background: var(--btn-ghost-hover); color: var(--link-hover); }

/* On a dark band the primary button inverts so it stays the loudest element */
.section--navy .btn-primary,
.cta-band .btn-primary { background: #FFFFFF; color: var(--navy); }
.section--navy .btn-primary:hover,
.cta-band .btn-primary:hover { background: #E7EDF5; color: var(--navy); }

.btn-sm { padding: .625rem 1.15rem; font-size: .9375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  margin-top: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

.link-back {
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  color: var(--text-muted);
}
.link-back:hover { color: var(--link); text-decoration: underline; }

/* 5b. Site-wide notice bar
   ========================================================================== */

.notice-bar {
  background: var(--bg-alt);
  color: var(--text);
  font-size: .9375rem;
  line-height: 1.45;
  padding-block: .75rem;
}
.notice-bar .container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .6rem;
  text-align: center;
}
.notice-bar svg {
  width: 18px;
  height: 18px;
  color: var(--link);
  flex-shrink: 0;
  margin-top: .15rem;
}
.notice-bar p { margin: 0; max-width: 70ch; }
.notice-bar strong { color: var(--heading); }

/* 6. Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-nav); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-mark { width: 170px; height: auto; }

/* Two lockups ship; the theme decides which one is shown. */
.brand-mark--dark { display: none; }
:root[data-theme="dark"] .brand-mark--light { display: none; }
:root[data-theme="dark"] .brand-mark--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark--light { display: none; }
  :root:not([data-theme="light"]) .brand-mark--dark { display: block; }
}

.nav-cluster { display: flex; align-items: center; gap: .25rem; }

/* Top-level list stretches to the full header height so the dropdown panels can
   hang off the bottom edge with no dead gap for the pointer to fall through. */
.site-nav > ul {
  display: flex;
  align-items: stretch;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav > ul > li { display: flex; align-items: center; }

.site-nav a:not(.btn) {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9875rem;
  color: var(--heading);
  text-decoration: none;
  padding: .625rem .8rem;
  border-radius: var(--radius-btn);
  transition: background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover { background: var(--btn-ghost-hover); color: var(--link); }
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--link);
  font-weight: 700;
  background: var(--nav-active-bg);
  box-shadow: inset 0 -3px 0 var(--amber);
}
:root[data-theme="dark"] .site-nav a[aria-current="page"]:not(.btn) { color: #FFFFFF; }

/* ---- Dropdowns (Services, Products) ------------------------------------
   A disclosure, not an ARIA menu: the label stays a real link to the overview
   page, and the chevron button beside it toggles the panel. Everything works
   without JS — the panel simply never opens, and the top-level links and the
   footer carry navigation. */

.nav-item--menu { position: relative; }

.nav-item-row { display: flex; align-items: center; }
.nav-item--menu > .nav-item-row > a { padding-right: .3rem; }

.nav-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: .5rem .45rem;
  margin-right: .2rem;
  cursor: pointer;
  color: var(--heading);
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}
.nav-chevron:hover { background: var(--btn-ghost-hover); color: var(--link); }
.nav-chevron svg { display: block; transition: transform .18s ease; }
.nav-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: none;
  min-width: 264px;
  padding: .5rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
}
.nav-item--menu.is-open > .nav-panel { display: block; }

.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .125rem; }
.nav-panel a { font-size: .9375rem; white-space: normal; }

.nav-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--heading);
  border-radius: var(--radius-btn);
  flex-shrink: 0;
}
.nav-toggle:hover,
.theme-toggle:hover { background: var(--btn-ghost-hover); color: var(--link); }
.nav-toggle svg,
.theme-toggle svg { display: block; }

.nav-toggle { display: none; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 7. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
}
.hero-copy { max-width: 720px; }

.hero-illustration { display: none; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
  .hero-illustration { display: flex; justify-content: center; }
  .hero-illustration img { width: 100%; max-width: 400px; height: auto; display: block; }
}
.hero h1 { margin-bottom: 1.25rem; }

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--heading);
  margin-top: 1.5rem;
}

/* 8. Stat bar
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pull-quote {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 0;
  border: none;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 2.5vw, 1.5rem);
  line-height: 1.45;
  color: var(--heading);
}
.pull-quote p { margin: 0; }

.stat {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  line-height: 1;
  color: var(--link);
  letter-spacing: -0.03em;
  margin-bottom: .6rem;
  /* Equal-width digits so the number does not jitter while counting up */
  font-variant-numeric: tabular-nums;
}

/* The final values are in the HTML, so without JS everything reads correctly.
   Only when the count-up can actually run does the suffix wait for it. */
.js .stat-suffix { opacity: 0; transition: opacity .2s ease; }
.js .stat-num.is-counted .stat-suffix { opacity: 1; }

.stat-label { font-size: .9375rem; line-height: 1.45; color: var(--text-muted); margin: 0; }

/* 9. Certification pills
   ========================================================================== */

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cert {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  padding: .625rem 1.15rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
}
.cert svg { width: 17px; height: 17px; color: var(--link); flex-shrink: 0; }

/* On the gray band the pills need the page background to stay distinct */
.section--gray .cert { background: var(--bg); }

.cert-groups { display: grid; gap: 1.75rem; margin-top: 1.75rem; }
.cert-group .chip { display: flex; width: fit-content; }

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .95rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* 10. Cards
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Fixed two-up, so an even number of cards never leaves an orphan row */
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .card-grid--two { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card h3 { margin-bottom: .625rem; }
.card p { color: var(--text-muted); font-size: 1rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }

a.card { text-decoration: none; color: inherit; }
.card:has(> .link-arrow):hover,
a.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

/* 11. Icon badges & lists
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--badge-bg);
  color: var(--badge-fg);
  margin-bottom: 1.25rem;
}
.badge svg { width: 24px; height: 24px; }
.badge--orange { background: var(--orange); color: #10202F; }
.badge--sm { width: 44px; height: 44px; }
.badge--sm svg { width: 20px; height: 20px; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.feature .badge { margin-bottom: 0; }
.feature h3 { font-size: 1.125rem; margin-bottom: .3rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: 1rem; }

.feature-list--split { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .875rem; }
.tick-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .875rem;
  align-items: start;
  color: var(--text-muted);
}
.tick-list svg {
  width: 22px;
  height: 22px;
  margin-top: .15rem;
  color: var(--link);
  flex-shrink: 0;
}

/* 12. Panels
   ========================================================================== */

.panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.panel--navy { background: var(--band-bg); color: var(--band-fg); box-shadow: none; }
.panel--navy h2, .panel--navy h3 { color: #FFFFFF; }

.panel-flex { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }

/* 13. Team
   ========================================================================== */

/* Two across, so the four bios sit as a 2x2 block and each has room to breathe */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.member {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.member-photo img { width: 62px; height: 62px; opacity: .6; }
.member-photo--empty {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: .5rem;
  line-height: 1.3;
}

.member-name { margin-bottom: .2rem; font-size: 1.25rem; }
.member-role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9375rem;
  color: var(--link);
  margin-bottom: 1rem;
}
.member p { color: var(--text-muted); font-size: 1rem; }

/* 14. Products
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .3rem .75rem;
  background: var(--ph-bg);
  color: var(--text-muted);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.product-list { display: grid; gap: 1.5rem; }

.product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: start;
  /* Anchor links land clear of the sticky header (html scroll-padding-top) */
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.product .badge { margin-bottom: 0; }
.product h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.product p { color: var(--text-muted); }

.product-meta { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .625rem; }
.product-meta li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .625rem;
  align-items: start;
  font-size: .9375rem;
  color: var(--text-muted);
}
.product-meta svg { width: 18px; height: 18px; margin-top: .2rem; color: var(--link); flex-shrink: 0; }

/* 15. Journey map
   ========================================================================== */

.journey-map { position: relative; }

/* Fixed height with preserveAspectRatio="none" keeps the path's centre line
   on the node centres at every width. */
.journey-path {
  display: block;
  width: 100%;
  height: 68px;
  margin-bottom: -68px;
  position: relative;
  z-index: 0;
}
.journey-path .stop-a { stop-color: var(--map-line-a); }
.journey-path .stop-b { stop-color: var(--map-line-b); }

.journey-step::before { content: none; }

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.journey-step { text-align: center; }

.journey-node {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--orange);
  color: #10202F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 8px var(--bg);
}

.journey-step h3 { margin-bottom: .5rem; }
.journey-step p { color: var(--text-muted); font-size: 1rem; }

/* 16. Forms
   ========================================================================== */

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: start; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }

.field label { font-family: var(--font-body); font-weight: 500; font-size: .9375rem; color: var(--heading); }
.field .optional { color: var(--text-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: .75rem .875rem;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px var(--btn-ghost-hover);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field-error { font-size: .875rem; color: var(--error); }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .9375rem; color: var(--text-muted); margin-top: 1rem; }

.form-status {
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .9375rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--btn-ghost-hover); color: var(--heading); }
.form-status--err { background: var(--error-bg); color: var(--error); }

.next-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.next-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.next-steps li::before {
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.next-steps p { margin: 0; font-size: 1rem; color: var(--text-muted); }
.next-steps strong { color: var(--heading); }

/* 17. Long-form legal pages
   ========================================================================== */

.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 3rem; }
.legal h3 { font-size: 1.1rem; margin-top: 2rem; }
.legal h2:first-of-type { margin-top: 2rem; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul, .legal ol { padding-left: 1.35rem; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.legal li::marker { color: var(--link); }
.legal dl { margin: 0 0 1.25rem; }
.legal dt { font-weight: 600; color: var(--heading); margin-top: 1rem; }
.legal dd { margin: .25rem 0 0; color: var(--text-muted); }

.legal-meta { font-size: .9375rem; color: var(--text-muted); margin-bottom: 2rem; }

/* 18. Closing CTA band
   ========================================================================== */

.cta-band {
  background: var(--band-bg);
  color: var(--band-fg);
  padding-block: clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: .75rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; }
.cta-band .btn-row { justify-content: center; margin-top: 0; }

/* 19. Footer
   ========================================================================== */

.site-footer {
  background: var(--band-bg);
  color: var(--band-fg);
  padding-block: clamp(3rem, 5vw, 4rem) 2rem;
  font-size: .9375rem;
}
.cta-band + .site-footer { border-top: 1px solid var(--band-divider); }

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-mark { width: 190px; margin-bottom: 1rem; display: block; }
.footer-tagline { color: var(--band-fg); max-width: 300px; }

.footer-col h4 {
  color: #FFFFFF;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer-col a { color: var(--band-fg); text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-contact { display: grid; gap: .5rem; margin-top: 1.5rem; }
.footer-contact a { color: var(--band-fg); }

.footer-bottom {
  border-top: 1px solid var(--band-divider);
  padding-top: 1.75rem;
  display: grid;
  gap: .875rem;
  font-size: .875rem;
  color: var(--band-fg);
}
.footer-bottom p { margin: 0; }
.disclaimer { max-width: 760px; }

/* 20. 404
   ========================================================================== */

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: var(--section-y);
}
.page-404 .badge { margin-inline: auto; }

/* 21. Scroll reveal — only armed when JS is running
   ========================================================================== */

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

/* 22. Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .footer-top { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    box-shadow: var(--shadow-nav);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav > ul > li { display: block; }
  .site-nav a:not(.btn) { padding: .875rem .75rem; font-size: 1.0625rem; }
  .site-nav .btn { margin-top: .75rem; width: 100%; }

  .header-inner { position: relative; }

  /* Mobile: nothing toggles. The top-level link doubles as the group heading —
     it still navigates to the overview page — with its children indented
     beneath, all visible at once. */
  .nav-chevron { display: none; }
  .nav-item--menu { position: static; }
  .nav-item--menu > .nav-item-row > a { font-weight: 700; }

  .nav-panel {
    position: static;
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-panel a { font-size: 1.0625rem; padding-left: 1.5rem; }

  /* Journey map turns vertical. The connector is drawn per step so it always
     starts and ends on a node centre however the copy wraps. */
  .journey-path { display: none; }
  .journey-steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .journey-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    text-align: left;
    align-items: start;
    position: relative;
  }
  .journey-node { margin: 0; }

  .journey-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 68px;
    height: calc(100% - 68px + 2.25rem);
    width: 4px;
    background: var(--map-line-a);
    -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 15px);
    mask-image: repeating-linear-gradient(to bottom, #000 0 4px, transparent 4px 15px);
  }
  .journey-step:nth-child(3)::before {
    background: linear-gradient(to bottom, var(--map-line-a), var(--map-line-b));
  }
}

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .card { padding: 1.75rem; }
  .btn-row .btn { width: 100%; }
  .panel-flex { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* 23. Motion & print
   ========================================================================== */

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

  /* No count-up: the numbers and their suffixes are simply there */
  .js .stat-suffix { opacity: 1; }
}

@media print {
  .site-header, .cta-band, .nav-toggle, .theme-toggle { display: none; }
  body { color: #000; background: #fff; }
}
