/* ==========================================================================
   Aquarius Infotech — Core Stylesheet
   --------------------------------------------------------------------------
   Hand-authored design system. No framework, no runtime CSS generation.
   Single cacheable file shared by every page.

   Contents
   01. Tokens
   02. Reset & base
   03. Typography
   04. Layout primitives
   05. Buttons
   06. Utility bar
   07. Header, primary nav, dropdown menus
   08. Mobile navigation
   09. Breadcrumb
   10. Hero
   11. Cards & grids
   12. Badges, pills, tech groups
   13. Process steps
   14. Callouts & declarations
   15. Relationship diagram
   16. Role cards (advertiser / agency / payer)
   17. FAQ accordion
   18. CTA band
   19. Forms
   20. Prose (legal & long-form pages)
   21. Footer
   22. Accessibility & motion
   ========================================================================== */

/* ==========================================================================
   01. Tokens
   ========================================================================== */

:root {
  /* Type */
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Ink */
  --ink: #0a1b2e;
  --ink-soft: #16324f;
  --body: #4c5c72;
  --muted: #61708a;
  --on-dark: #dbe6f4;
  --on-dark-muted: #9fb3cd;

  /* Surfaces & lines */
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eff4fa;
  --line: #e4e9f0;
  --line-soft: #eff3f8;

  /* Accents */
  --brand: #0f5fd1;
  --brand-dark: #0b47a0;
  --brand-soft: #eaf1fd;
  --brand-line: #cfe0fa;
  --cyan: #0a8fa8;
  --cyan-soft: #e6f5f8;
  --cyan-line: #c2e6ee;
  --violet: #5b4bd6;
  --violet-soft: #eeebfb;
  --violet-line: #dcd6f7;
  --amber: #8a5a00;
  --amber-soft: #fff7e8;
  --amber-line: #f0dfbe;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(10, 27, 46, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 27, 46, 0.06), 0 1px 2px rgba(10, 27, 46, 0.04);
  --shadow-md: 0 10px 28px -14px rgba(10, 27, 46, 0.22), 0 2px 6px -2px rgba(10, 27, 46, 0.06);
  --shadow-lg: 0 28px 64px -30px rgba(10, 27, 46, 0.3), 0 8px 20px -12px rgba(10, 27, 46, 0.12);

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 180ms;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 76px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 40px;
  }
}

/* ==========================================================================
   02. Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

button {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

address {
  font-style: normal;
}

/* Long unbroken strings (emails, URLs) must never force horizontal scroll. */
p,
li,
dd,
dt,
address,
figcaption {
  overflow-wrap: break-word;
}

/* ==========================================================================
   03. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.h-display {
  font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.h1 {
  font-size: clamp(1.95rem, 1.35rem + 2.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.026em;
}

.h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.55vw, 2.375rem);
  letter-spacing: -0.022em;
}

.h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  letter-spacing: -0.016em;
  line-height: 1.3;
}

.h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.32vw, 1.1875rem);
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.text-sm {
  font-size: 0.9375rem;
}

.text-xs {
  font-size: 0.8125rem;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.ink {
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 560;
  font-size: 0.9375rem;
  color: var(--brand);
}

.link-arrow svg {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   04. Layout primitives
   ========================================================================== */

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

.container--narrow {
  max-width: 920px;
}

.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 1.9rem + 2.4vw, 3.75rem);
}

.section--tint {
  background: var(--surface-2);
}

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

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* The eyebrow is the first child and carries its own spacing, so only
   paragraphs that follow something get a top margin. */
.section-head > * + p {
  margin-top: 1rem;
}

.section-head--wide {
  max-width: 860px;
}

.split-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem);
}

@media (min-width: 900px) {
  .split-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .grid {
    gap: 1.5rem;
  }
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3,
.grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stack > * + * {
  margin-top: 1rem;
}

.stack-sm > * + * {
  margin-top: 0.6rem;
}

.stack-lg > * + * {
  margin-top: 1.5rem;
}

/* ==========================================================================
   05. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 570;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 71, 160, 0.24);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(11, 71, 160, 0.55);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: #c9d4e2;
  background: var(--surface-2);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--surface-3);
  border-color: var(--surface-3);
  color: var(--ink);
}

.btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   06. Utility bar
   ========================================================================== */

.utility-bar {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.5rem;
}

.utility-bar__group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--on-dark-muted);
  min-width: 0;
}

a.utility-bar__item:hover {
  color: #fff;
}

.utility-bar__item svg {
  flex: none;
  opacity: 0.8;
}

.utility-bar__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .utility-bar__hide-sm {
    display: none;
  }

  .utility-bar__inner {
    justify-content: center;
  }
}

/* ==========================================================================
   07. Header, primary nav, dropdown menus
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px -18px rgba(10, 27, 46, 0.55);
}

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

/* The brand and the action block are fixed width; the nav takes what is left.
   It is only rendered at >=1024px, where the item set is measured to fit. */
.site-header__inner > .nav {
  flex: 0 1 auto;
}

/* Brand ------------------------------------------------------------------ */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  flex: none;
  width: 38px;
  height: 38px;
}

/* The logo asset carries its own dark ground and rounded corners, so it needs
   no plate behind it and sits unchanged on the white header and navy footer. */
.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 400px) {
  .brand__tag {
    display: none;
  }

  .brand__name {
    font-size: 1rem;
  }
}

/* Desktop nav ------------------------------------------------------------ */

.nav {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.site-header__cta {
  display: none;
}

/* On tablet and small-laptop widths the drawer is still in use, but there is
   room for the primary CTA beside it. */
@media (min-width: 620px) {
  .site-header__cta {
    display: inline-flex;
  }
}

/* Desktop nav appears at 1180px. Below that the seven-item nav plus the CTA
   cannot fit without shrinking the type to an uncomfortable size, so the
   drawer is used instead. Keep this value in sync with DESKTOP_QUERY in
   assets/js/main.js. */
@media (min-width: 1180px) {
  .nav {
    display: block;
    min-width: 0;
  }

  .site-header__cta {
    display: inline-flex;
  }

  /* Scoped so it beats the .nav-burger base rule defined further down,
     regardless of source order. */
  .site-header .nav-burger {
    display: none;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.55rem 0.6rem;
  border: 0;
  background: none;
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav__link[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav__chev {
  flex: none;
  transition: transform var(--dur) var(--ease);
  opacity: 0.65;
}

.nav__item.is-open > .nav__link {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav__item.is-open .nav__chev {
  transform: rotate(180deg);
}

/* Dropdown --------------------------------------------------------------- */

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  z-index: 5;
  width: max-content;
  min-width: 268px;
  max-width: 340px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.menu--right {
  left: auto;
  right: -8px;
}

.nav__item.is-open > .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__link {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-xs);
  color: var(--ink);
  transition: background-color var(--dur) var(--ease);
}

.menu__link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.menu__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 570;
  line-height: 1.35;
}

.menu__desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.menu__sep {
  margin: 0.4rem 0.7rem;
  border-top: 1px solid var(--line-soft);
}

/* Burger ----------------------------------------------------------------- */

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-burger:hover {
  background: var(--surface-2);
}

.nav-burger__box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-burger__box span:nth-child(1) {
  top: 0;
}

.nav-burger__box span:nth-child(2) {
  top: 5.1px;
}

.nav-burger__box span:nth-child(3) {
  top: 10.2px;
}

.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(1) {
  transform: translateY(5.1px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(2) {
  opacity: 0;
}

.nav-burger[aria-expanded="true"] .nav-burger__box span:nth-child(3) {
  transform: translateY(-5.1px) rotate(-45deg);
}

/* ==========================================================================
   08. Mobile navigation
   ========================================================================== */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 46, 0.45);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.mobile-nav.is-open .mobile-nav__scrim {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 260ms var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

.mobile-nav__close:hover {
  background: var(--surface-2);
}

.mobile-nav__body {
  padding: 0.75rem 1.15rem 1.5rem;
}

.mnav-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
  font-weight: 560;
  color: var(--ink);
}

.mnav-link:hover,
.mnav-link[aria-current="page"] {
  color: var(--brand);
}

.mnav-group {
  border-bottom: 1px solid var(--line-soft);
}

.mnav-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.6rem 0.25rem;
  font-size: 1rem;
  font-weight: 560;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.mnav-group__summary::-webkit-details-marker {
  display: none;
}

.mnav-group__summary svg {
  flex: none;
  opacity: 0.6;
  transition: transform var(--dur) var(--ease);
}

.mnav-group[open] > .mnav-group__summary svg {
  transform: rotate(180deg);
}

.mnav-group[open] > .mnav-group__summary {
  color: var(--brand);
}

.mnav-sub {
  padding: 0 0 0.75rem 0.25rem;
}

.mnav-sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-left: 2px solid var(--line);
  font-size: 0.9375rem;
  color: var(--body);
}

.mnav-sub a:hover,
.mnav-sub a[aria-current="page"] {
  border-left-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}

.mobile-nav__foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.mobile-nav__contact {
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.mobile-nav__contact a {
  font-weight: 550;
}

/* ==========================================================================
   09. Breadcrumb
   ========================================================================== */

.breadcrumb {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb__list li + li::before {
  content: "/";
  color: #b9c4d3;
}

.breadcrumb__list a {
  color: var(--body);
}

.breadcrumb__list a:hover {
  color: var(--brand);
}

.breadcrumb__list [aria-current="page"] {
  color: var(--ink);
  font-weight: 550;
}

/* ==========================================================================
   10. Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 4.5vw, 6rem);
  background:
    radial-gradient(60rem 32rem at 8% -12%, var(--brand-soft) 0%, rgba(234, 241, 253, 0) 62%),
    radial-gradient(48rem 28rem at 96% 4%, var(--cyan-soft) 0%, rgba(230, 245, 248, 0) 60%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line-soft);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero__copy {
  max-width: 640px;
}

.hero__copy .lead {
  margin-top: 1.25rem;
}

.hero__actions {
  margin-top: 2rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero__meta span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.hero__meta svg {
  flex: none;
  margin-top: 0.18em;
  color: var(--brand);
}

/* Narrow phones: full-width primary actions give a larger, more reliable
   touch target and a cleaner stacked rhythm. */
@media (max-width: 479px) {
  .hero__actions .btn,
  .cta .btn-row .btn {
    width: 100%;
  }
}

/* Hero pipeline panel ---------------------------------------------------- */

.pipeline {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.pipeline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.pipeline__head p {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pipeline__dots {
  display: flex;
  gap: 5px;
}

.pipeline__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.pipeline__dots i:first-child {
  background: var(--brand-line);
}

.pipeline__steps {
  display: grid;
  gap: 0.55rem;
}

.pstep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.pstep__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.pstep:nth-child(3) .pstep__icon {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.pstep:nth-child(5) .pstep__icon,
.pstep:nth-child(7) .pstep__icon {
  background: var(--violet-soft);
  color: var(--violet);
}

.pstep__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 570;
  color: var(--ink);
  line-height: 1.3;
}

.pstep__meta {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pconn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 16px;
  color: #c2ccd9;
}

.pconn::before {
  content: "";
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(var(--brand-line), var(--line));
  flex: none;
}

.pconn span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pipeline__loop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px dashed var(--brand-line);
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  font-size: 0.8125rem;
  color: var(--brand-dark);
}

.pipeline__loop svg {
  flex: none;
}

/* Hero side panel (interior pages) --------------------------------------- */

.fact-panel {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.fact-panel__title {
  padding-bottom: 0.85rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-list {
  display: grid;
}

.fact-list > div {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.fact-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-list dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.fact-list dd {
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ==========================================================================
   11. Cards & grids
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.card--tint {
  background: var(--surface-2);
}

.card--flat {
  border-radius: var(--r-md);
}

a.card:hover,
.card--hover:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}

.card__icon--cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.card__icon--violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.014em;
  line-height: 1.3;
}

.card__text {
  margin-top: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.62;
}

.card__foot {
  margin-top: auto;
  padding-top: 1.25rem;
}

.card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--brand);
}

/* Capability strip -------------------------------------------------------- */

.cap-strip {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .cap-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cap-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cap {
  padding: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  background: var(--surface);
}

.cap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.9rem;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--ink-soft);
}

.cap__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.cap__text {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Feature list ------------------------------------------------------------ */

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.check-list li + li {
  margin-top: 0.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--brand-line);
  background: var(--brand-soft);
}

.check-list--plain li::before {
  border-color: var(--line);
  background: var(--surface-3);
}

.dash-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.dash-list li + li {
  margin-top: 0.5rem;
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--brand-line);
}

/* Two-column responsibility panels ---------------------------------------- */

.duo {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.duo__panel {
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.duo__panel--tint {
  background: var(--surface-2);
}

.duo__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Related links ----------------------------------------------------------- */

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.link-card:hover {
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.link-card__title svg {
  flex: none;
  color: var(--brand);
  transition: transform var(--dur) var(--ease);
}

.link-card:hover .link-card__title svg {
  transform: translateX(3px);
}

.link-card__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   12. Badges, pills, tech groups
   ========================================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}




.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-group {
  padding: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.tech-group__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.tech-group__head svg {
  flex: none;
  color: var(--brand);
}

.tech-group__head h3 {
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   13. Process steps
   ========================================================================== */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .steps--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Five steps in a two-column grid would leave one empty cell showing the
   container's divider colour — the last step spans instead. */
@media (min-width: 768px) and (max-width: 1179px) {
  .steps--5 > .step:nth-child(5) {
    grid-column: 1 / -1;
  }
}

.step {
  position: relative;
  padding: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem);
  background: var(--surface);
}

.step__num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.step__title {
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.step__text {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ==========================================================================
   14. Callouts & declarations
   ========================================================================== */

.callout {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

@media (min-width: 720px) {
  .callout {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}

.callout__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-xs);
  background: var(--brand-soft);
  color: var(--brand);
}

.callout__title {
  font-size: 1rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.callout__text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.callout--neutral {
  border-left-color: #c2ccd9;
}

.callout--neutral .callout__icon {
  background: var(--surface-3);
  color: var(--ink-soft);
}

.callout--note {
  border-left-color: var(--amber);
  background: var(--amber-soft);
  border-color: var(--amber-line);
}

.callout--note .callout__icon {
  background: #fdefd4;
  color: var(--amber);
}

/* Declaration block ------------------------------------------------------- */

.declaration {
  position: relative;
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.75rem);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--brand-soft) 0%, #f7faff 55%, #ffffff 100%);
}

.declaration__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.declaration__badge svg {
  flex: none;
}

.declaration p + p {
  margin-top: 1rem;
}

.declaration__sig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.declaration__sig strong {
  color: var(--ink);
  font-weight: 600;
}

/* Inequality emphasis ----------------------------------------------------- */

.identity-rule {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}

@media (min-width: 760px) {
  .identity-rule {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    text-align: left;
  }
}

.identity-rule__item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.identity-rule__item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.identity-rule__item strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.identity-rule__op {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
}

/* ==========================================================================
   15. Relationship diagram
   ========================================================================== */

.diagram {
  margin: 0;
  padding: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, var(--surface-2) 0%, #ffffff 45%);
  box-shadow: var(--shadow-sm);
}

.diagram__grid {
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

@media (min-width: 960px) {
  .diagram__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.flow {
  min-width: 0;
}

.flow__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.fnode {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.fnode--muted {
  border-left-color: #b9c4d3;
}

.fnode--cyan {
  border-left-color: var(--cyan);
}

.fnode--violet {
  border-left-color: var(--violet);
}

.fnode--strong {
  border-color: var(--brand-line);
  background: var(--brand-soft);
}

.fnode__kicker {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.fnode__title {
  margin-top: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.fnode__text {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.fconn {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 0.9rem;
}

.fconn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--brand-line), var(--line));
}

.fconn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--line);
}

.fconn span {
  position: relative;
  z-index: 1;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}


.fsplit {
  display: grid;
  gap: 0.85rem;
}

.fsplit__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.fsplit__or::before,
.fsplit__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.diagram__note {
  margin-top: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.diagram__note strong {
  color: var(--ink);
  font-weight: 600;
}

figcaption.diagram__caption {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   16. Role cards
   ========================================================================== */

.role-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.role-card__head {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.role-card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

.role-card--agency .role-card__tag {
  color: var(--cyan);
}

.role-card--payer .role-card__tag {
  color: var(--violet);
}

.role-card__name {
  margin-top: 0.3rem;
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.role-card__body {
  display: grid;
  padding: 0 1.25rem;
}

.role-card__body > div {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}

.role-card__body > div:last-child {
  border-bottom: 0;
}

.role-card__body dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.role-card__body dd {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ==========================================================================
   17. FAQ accordion
   ========================================================================== */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 570;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--brand);
}

.faq__sign {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink-soft);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.faq__sign::before {
  width: 10px;
  height: 1.6px;
}

.faq__sign::after {
  width: 1.6px;
  height: 10px;
}

.faq__item[open] .faq__sign {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}

.faq__item[open] .faq__sign::before,
.faq__item[open] .faq__sign::after {
  background: var(--brand);
}

.faq__item[open] .faq__sign::after {
  opacity: 0;
}

.faq__a {
  padding: 0 2.75rem 1.5rem 0.25rem;
  max-width: 68ch;
}

.faq__a p + p {
  margin-top: 0.8rem;
}

.faq__a p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .faq__a {
    padding-right: 0.25rem;
  }
}

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

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(46rem 26rem at 10% -12%, var(--brand-soft) 0%, rgba(234, 241, 253, 0) 62%),
    radial-gradient(38rem 22rem at 94% 112%, var(--cyan-soft) 0%, rgba(230, 245, 248, 0) 60%),
    linear-gradient(180deg, #fbfcfe 0%, var(--surface-2) 100%);
  color: var(--body);
}

.cta__inner {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
  /* 56px on the smallest phone up to 96px on desktop, so the section reads as
     a distinct block and the dark footer starts well clear of it. */
  padding-block: clamp(3.5rem, 2.6rem + 3.6vw, 6rem);
}

@media (min-width: 960px) {
  .cta__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

.cta h2 {
  color: var(--ink);
}

.cta p {
  color: var(--body);
}

/* White information card on the tinted section, matching the card treatment
   used elsewhere on the site. */
.cta__card {
  padding: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.cta__card dl > div + div {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-soft);
}

.cta__card dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta__card dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.cta__card dd a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-line);
}

.cta__card dd a:hover {
  color: var(--brand-dark);
  text-decoration-color: var(--brand-dark);
}

/* ==========================================================================
   19. Forms
   ========================================================================== */

.field {
  display: block;
}

.field + .field {
  margin-top: 1.1rem;
}

.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink);
}

.field__req {
  color: var(--brand);
}

.field__hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 95, 209, 0.14);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.field__error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #b3271b;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--brand);
}

/* ==========================================================================
   20. Prose (legal & long-form pages)
   ========================================================================== */

.prose {
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.3rem, 1.15rem + 0.65vw, 1.6rem);
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.0625rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ul li {
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45rem;
}

/* ==========================================================================
   21. Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.site-footer__main {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(3rem, 2.2rem + 2.6vw, 4.5rem);
}

@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
}

@media (min-width: 1024px) {
  .site-footer__main {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
    gap: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__main {
    gap: 2.75rem;
  }
}

.site-footer__brand .brand__name {
  color: #fff;
}

.site-footer__brand .brand__tag {
  color: var(--on-dark-muted);
}

.site-footer__brand .brand:hover .brand__name {
  color: #fff;
}

.footer-about {
  margin-top: 1.15rem;
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--on-dark-muted);
}

.footer-address {
  margin-top: 1.35rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.footer-address strong {
  display: block;
  color: #fff;
  font-weight: 600;
}

.footer-address a {
  color: var(--on-dark);
}

.footer-address a:hover {
  color: #fff;
}

.footer-col__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7fb2f5;
}

.footer-col li + li {
  margin-top: 0.6rem;
}

.footer-col a {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.footer-col a:hover {
  color: #fff;
}

.site-footer__legal {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-note {
  max-width: 90ch;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #8ba1bd;
}

.legal-note + .legal-note {
  margin-top: 0.85rem;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #8ba1bd;
}

.site-footer__bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer__bar a {
  color: #8ba1bd;
}

.site-footer__bar a:hover {
  color: #fff;
}

/* ==========================================================================
   22. Accessibility & motion
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 560;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

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

.section--ink :focus-visible,
.site-footer :focus-visible,
.utility-bar :focus-visible {
  outline-color: #8ec1ff;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  a.card:hover,
  .card--hover:hover,
  .link-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   23. Phase 2 components
   --------------------------------------------------------------------------
   Added for the about, services, contact, transparency and policy pages.
   All of these reuse the tokens declared in section 01.
   ========================================================================== */

/* Compact interior hero (pages with no side panel) ----------------------- */

.hero--compact {
  padding-block: clamp(2.5rem, 1.9rem + 2.6vw, 4.25rem);
}

.hero--compact .hero__copy {
  max-width: 760px;
}

.hero--compact .hero__grid {
  display: block;
}

/* Anchor chip navigation -------------------------------------------------- */

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.chip-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--ink-soft);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.chip-nav a:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Document layout: sticky contents rail + prose -------------------------- */

.doc-layout {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.doc-toc {
  min-width: 0;
}

@media (min-width: 960px) {
  .doc-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.doc-toc__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-toc ol {
  counter-reset: toc;
  border-left: 1px solid var(--line);
}

.doc-toc li {
  counter-increment: toc;
}

.doc-toc a {
  display: block;
  padding: 0.4rem 0.85rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--body);
}

.doc-toc a::before {
  content: counter(toc, decimal-leading-zero) ".";
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.doc-toc a:hover {
  border-left-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}

/* Numbered document sections --------------------------------------------- */

.doc-body {
  min-width: 0;
}

.doc-section + .doc-section {
  margin-top: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  padding-top: clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.doc-section__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.doc-section h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.65vw, 1.6rem);
}

.doc-section h3 {
  margin-top: 1.75rem;
  font-size: 1.0625rem;
}

.doc-section > * + * {
  margin-top: 1.05rem;
}

.doc-section p,
.doc-section li {
  font-size: 0.9375rem;
  line-height: 1.75;
}

.doc-section ul.bullets {
  padding-left: 1.15rem;
}

.doc-section ul.bullets li {
  list-style: disc;
}

.doc-section ol.numbers {
  padding-left: 1.35rem;
}

.doc-section ol.numbers li {
  list-style: decimal;
}

.doc-section li + li {
  margin-top: 0.45rem;
}

.doc-meta {
  margin-bottom: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--muted);
}

.doc-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* Contact page ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  gap: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.form-card {
  padding: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .field--full {
    grid-column: 1 / -1;
  }
}

.form-grid .field + .field {
  margin-top: 0;
}

.form-foot {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.form-status:empty {
  margin-top: 0;
}

.map-embed {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px) {
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* Labelled information rows ------------------------------------------------ */

.info-rows {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.info-rows > div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 560px) {
  .info-rows > div {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: baseline;
  }
}

.info-rows > div:last-child {
  border-bottom: 0;
}

.info-rows dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-rows dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.info-rows dd strong {
  color: var(--ink);
  font-weight: 600;
}

/* Founder / accountability card -------------------------------------------- */

.person-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

@media (min-width: 720px) {
  .person-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.person-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--brand-soft), var(--surface-3));
  border: 1px solid var(--brand-line);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
}

.person-card__name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.person-card__role {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.person-card__body {
  margin-top: 1rem;
}

.person-card__body p + p {
  margin-top: 0.85rem;
}

.person-card__body p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ==========================================================================
   24. Business identity
   ========================================================================== */

/* Business identity column. Label/value pairs using the existing type scale —
   readable straight from the footer, without a badge or highlight that would
   make registration data shout louder than the brand. */
.footer-identity {
  display: grid;
  gap: 0.9rem;
}

.footer-identity dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fb2f5;
}

.footer-identity dd {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #dbe6f4;
  overflow-wrap: anywhere;
}

.footer-identity__code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #fff;
}

/* Second link group inside a footer column, separated rather than run together. */
.footer-col__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact key/value grid for verified registration details. */
.identity-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 620px) {
  .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .identity-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.identity-grid > div {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}

.identity-grid dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.identity-grid dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 550;
}

.identity-grid dd.is-plain {
  font-weight: 400;
  color: var(--ink-soft);
}

.identity-grid dd code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* External-link affordance for the verified Google Maps and LinkedIn links. */
.btn svg.ext {
  opacity: 0.85;
}

/* Single verified social link in the footer brand column. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 520;
  color: var(--on-dark-muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.footer-social a:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.footer-social svg {
  flex: none;
}

/* ==========================================================================
   25. Contact form runtime states
   ========================================================================== */


.form-status--success,
.form-status--error {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.form-status--success {
  border-color: #bfe3cb;
  background: #eef8f1;
  color: #14603a;
}

.form-status--error {
  border-color: #f0c9c4;
  background: #fdf1ef;
  color: #a12a1c;
}

.form-status:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.75;
}

.btn:disabled {
  cursor: not-allowed;
}

.text-xs {
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ==========================================================================
   26. Click-to-load map
   --------------------------------------------------------------------------
   The Google Maps iframe is not loaded until the visitor asks for it. That
   removes a third-party frame from the critical path of the contact page and
   means no Google cookie is set unless the map is actually requested.
   ========================================================================== */

.map-facade {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border: 0;
  border-radius: inherit;
  background:
    radial-gradient(28rem 18rem at 30% 20%, var(--brand-soft) 0%, rgba(234, 241, 253, 0) 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface-3));
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  font: inherit;
}

.map-facade:hover {
  background:
    radial-gradient(28rem 18rem at 30% 20%, var(--brand-soft) 0%, rgba(234, 241, 253, 0) 55%),
    linear-gradient(180deg, var(--surface-3), var(--surface-2));
}

.map-facade__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--brand-line);
  color: var(--brand);
}

.map-facade__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.map-facade__text {
  max-width: 46ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.map-facade__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 560;
}

.map-facade:hover .map-facade__cue {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Bot trap. Off-screen rather than display:none, because the strategy relies on
   an automated submitter finding and filling it. Never opacity alone. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
