/* =========================================================================
   Platinum Medical Solutions — Design System
   WCAG 2.1 AA — colours verified for 4.5:1 (text) / 3:1 (large/UI)
   ========================================================================= */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Brand + neutrals */
  --ink:        #0a2233;  /* primary text (15:1 on white)               */
  --ink-2:      #34485a;  /* secondary text (7.4:1 on white)            */
  --muted:      #4c6070;  /* tertiary text (5.6:1 on white)             */
  --navy:       #0b2540;  /* dark section background                    */
  --navy-2:     #123457;  /* dark gradient stop                         */
  --brand:      #0b5e93;  /* primary action (white text = 5.9:1)        */
  --brand-ink:  #0a5385;  /* link text on white (6.3:1)                 */
  --brand-dark: #084a75;  /* hover                                      */
  --teal:       #0e8f8a;  /* secondary accent                           */
  --teal-ink:   #0b7570;  /* teal text on white (4.7:1)                 */
  --gold:       #b7854b;  /* "platinum" warm accent (used sparingly)    */

  --cyan:       #5cd3d0;  /* bright accent on dark backgrounds          */
  --sky:        #7db9e6;  /* light accent on dark                       */

  --platinum:   #eef2f6;  /* light section background                   */
  --platinum-2: #f6f9fb;  /* subtle background                          */
  --surface:    #ffffff;
  --line:       #d3dde5;  /* decorative borders / dividers              */
  --line-soft:  #e6edf2;
  --field-border: #7c8996; /* form-control boundary (3.6:1 — WCAG 1.4.11) */

  --ok:         #197a4b;  /* success text (4.9:1 on white)              */
  --warn-bg:    #fbeceb;
  --error:      #b3261e;  /* error text (5.9:1 on white)                */
  --error-ink:  #8f1d17;

  /* Typography */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --fs-base: 1.0625rem;         /* 17px */
  --lh-base: 1.65;

  /* Spacing / rhythm */
  --sp-1: .25rem;  --sp-2: .5rem;  --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;   --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --container: 1180px;
  --radius:   14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11,37,64,.06), 0 1px 3px rgba(11,37,64,.08);
  --shadow:    0 6px 20px rgba(11,37,64,.08), 0 2px 6px rgba(11,37,64,.06);
  --shadow-lg: 0 24px 60px rgba(11,37,64,.16);

  --focus: 3px solid #0a5385;
}

/* --------------------------------------------------------------- Reset/base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* offset sticky header for in-page anchors */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  line-height: 1.18;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.012em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4 { font-size: 1.075rem; }

p  { color: var(--ink-2); }
a  { color: var(--brand-ink); text-underline-offset: .16em; }
a:hover { color: var(--brand-dark); }

strong { color: var(--ink); }
ul, ol { padding-left: 1.2em; }

/* ---------------------------------------------------------------- A11y bits */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; outline: var(--focus); outline-offset: 2px; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Keep focus visible on dark surfaces */
.is-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--cyan); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 1.6rem + 3vw, 3.5rem); }
.bg-platinum { background: var(--platinum); }
.bg-soft { background: var(--platinum-2); }

.is-dark {
  background: var(--navy);
  background-image:
    radial-gradient(1100px 520px at 78% -8%, rgba(92,211,208,.16), transparent 60%),
    radial-gradient(760px 460px at 8% 108%, rgba(125,185,230,.14), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #eaf1f7;
}
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: #fff; }
.is-dark p { color: #cad9e6; }
.is-dark a { color: var(--cyan); }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-ink);
  margin-bottom: var(--sp-3);
}
.is-dark .eyebrow { color: var(--cyan); }
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow.center-mark { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin-top: var(--sp-4); }
.is-dark .lead { color: #d3e0eb; }

/* ---------------------------------------------------------------- Grid */
.grid { display: grid; gap: var(--sp-5); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 650; line-height: 1.1;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .btn-ico { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }

.btn-secondary { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); background: #fff; color: var(--brand-dark); }

.is-dark .btn-secondary,
.btn-secondary.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.is-dark .btn-secondary:hover,
.btn-secondary.on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.btn-ghost { background: transparent; color: var(--brand-ink); padding-inline: .4rem; }
.btn-ghost:hover { color: var(--brand-dark); text-decoration: underline; }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row.center { justify-content: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 650; text-decoration: none; color: var(--brand-ink);
}
.arrow-link .a { transition: transform .15s ease; }
.arrow-link:hover { color: var(--brand-dark); }
.arrow-link:hover .a { transform: translateX(4px); }
.is-dark .arrow-link { color: var(--cyan); }

/* ---------------------------------------------------------------- Header */
.topbar {
  background: var(--navy);
  color: #d7e4f0;
  font-size: .875rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 42px; flex-wrap: wrap;
}
.topbar a { color: #e7f0f8; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .topbar-group { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.topbar .tag { color: #9fc0da; }
.topbar svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 640px) { .topbar .tag { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); min-height: 74px;
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand .brand-mark { width: 42px; height: 42px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name {
  font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.01em;
}
.brand .brand-sub {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-ink); font-weight: 700;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: var(--sp-2); }
.primary-nav > ul {
  display: flex; align-items: center; gap: var(--sp-1);
  list-style: none; margin: 0; padding: 0;
}
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .8rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem;
  /* reset native <button> chrome so the Services trigger matches the links */
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; line-height: 1.2;
}
.nav-link:hover { background: var(--platinum); color: var(--brand-dark); }
.nav-item.has-dd > .nav-link .chev { margin-left: .1rem; opacity: .7; }
.nav-item.has-dd > .nav-link:hover .chev,
.nav-item.has-dd > .nav-link[aria-expanded="true"] .chev { opacity: 1; }
.nav-link[aria-current="page"] { color: var(--brand-ink); }
.nav-link[aria-current="page"] .nav-underline { }
.nav-item { position: relative; }
.nav-item.has-dd > .nav-link .chev { transition: transform .15s ease; }
.nav-item.has-dd > .nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* current page indicator (not colour-only: underline bar) */
.nav-link[aria-current="page"],
.nav-link.is-section-active {
  position: relative; color: var(--brand-ink);
}
.nav-link[aria-current="page"]::after,
.nav-link.is-section-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem;
  height: 2px; background: var(--brand); border-radius: 2px;
}

/* CTA block shown only inside the mobile drawer */
.nav-cta-mobile { display: none; }

/* Dropdown */
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 320px;
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none; margin: 0;
  display: none;
}
.dd-panel.open { display: block; }
/* Invisible hover bridge across the gap between the Services button and its
   panel, so the pointer never lands in a dead zone (desktop only, and only
   while hovering/focused so it can't intercept other clicks). */
@media (min-width: 981px) {
  .nav-item.has-dd:hover::after,
  .nav-item.has-dd:focus-within::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
  }
}
.dd-panel li { margin: 0; }
.dd-link {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .7rem .8rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.dd-link:hover, .dd-link:focus-visible { background: var(--platinum); }
.dd-link .dd-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center; background: var(--platinum);
  color: var(--brand-ink);
}
.dd-link .dd-ico svg { width: 20px; height: 20px; }
.dd-link .dd-t { font-weight: 700; font-size: .96rem; display: block; }
.dd-link .dd-d { font-size: .85rem; color: var(--muted); display: block; }

.header-cta { display: flex; align-items: center; gap: var(--sp-3); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--ink); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  /* Drop backdrop-filter on mobile: a filter on the header would make it the
     containing block for the fixed drawer and clip it to the header height. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: calc(74px + var(--sp-4)) var(--sp-4) var(--sp-5);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .2s ease;
    overflow-y: auto; gap: 0;
    border-left: 1px solid var(--line-soft);
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav-link { padding: .85rem .6rem; font-size: 1.05rem; }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] { background: var(--platinum); }
  .nav-item { border-bottom: 1px solid var(--line-soft); }
  .dd-panel {
    position: static; min-width: 0; box-shadow: none;
    border: 0; padding: 0 0 .4rem .3rem; margin: 0 0 .3rem .6rem;
    border-left: 2px solid var(--line-soft); border-radius: 0;
  }
  .dd-panel .dd-d { display: none; }
  /* mobile: hide the desktop hover bridge entirely */
  .nav-item.has-dd::after { content: none; }
  .header-cta .btn-secondary { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav-cta-mobile {
    display: grid; gap: .6rem; margin-top: var(--sp-5);
    padding-top: var(--sp-5); border-top: 1px solid var(--line-soft);
  }
  .nav-cta-mobile .btn { width: 100%; }
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(10,34,51,.42);
  opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 90;
}
.nav-scrim.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
}
.hero h1 { max-width: 15ch; }
.hero .hero-copy p { max-width: 52ch; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-5); }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 650;
  padding: .38rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.09); color: #eaf1f7;
  border: 1px solid rgba(255,255,255,.18);
}
.pill svg { width: 14px; height: 14px; color: var(--cyan); }
.hero .btn-row { margin-top: var(--sp-6); }
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.28)); }
.hero-metrics {
  display: flex; gap: var(--sp-5); margin-top: var(--sp-7); flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: var(--sp-5);
}
.hero-metrics .m-num { font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-metrics .m-lbl { font-size: .85rem; color: #b7cadb; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-figure { order: -1; max-width: 460px; }
}

/* ---------------------------------------------------------------- Cards */
.card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card.is-link:hover, a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
a.card { text-decoration: none; color: inherit; }

.card-ico {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: linear-gradient(150deg, #e9f4f3, #dcefff);
  color: var(--brand-ink); border: 1px solid #d7e9ef;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--sp-2); }
.card .card-tag { font-size: .82rem; font-weight: 700; color: var(--teal-ink); margin-bottom: var(--sp-2); }
.card p { font-size: .98rem; }
.card .card-foot { margin-top: auto; padding-top: var(--sp-4); }

.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature .feature-ico {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--platinum); color: var(--brand-ink); border: 1px solid var(--line-soft);
}
.is-dark .feature .feature-ico { background: rgba(255,255,255,.08); color: var(--cyan); border-color: rgba(255,255,255,.16); }
.feature .feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }

/* Checklist / bullets */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-2); }
.ticks li svg { width: 22px; height: 22px; flex: none; color: var(--teal-ink); margin-top: .05rem; }
.is-dark .ticks li { color: #cddcea; }
.is-dark .ticks li svg { color: var(--cyan); }

/* ---------------------------------------------------------------- Process */
.process { counter-reset: step; display: grid; gap: var(--sp-5); }
.process.flow { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .process.flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process.flow { grid-template-columns: 1fr; } }
.step {
  position: relative; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.step .step-n {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; font-weight: 800;
  background: var(--navy); color: #fff; margin-bottom: var(--sp-4);
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.step p { font-size: .93rem; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .s-num { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat .s-lbl { color: #bcd0e2; font-size: .95rem; margin-top: .2rem; }
.stat .s-num .u { color: var(--cyan); }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3.6rem); overflow: hidden; }
.cta-band .cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: var(--sp-6); align-items: center; }
@media (max-width: 800px) { .cta-band .cta-inner { grid-template-columns: 1fr; } }

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split.reverse .split-media { order: 0; } }
.split-media svg { width: 100%; height: auto; }
.media-frame {
  background: linear-gradient(160deg, var(--platinum-2), #eaf3f6);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
}

/* Breadcrumb + page hero */
.page-hero { padding-block: clamp(2.4rem, 1.8rem + 3vw, 4rem); }
.breadcrumb { font-size: .85rem; margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb a { color: #bcd3e6; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: #6f8aa3; }
.breadcrumb [aria-current="page"] { color: #eaf1f7; }
.page-hero .lead { max-width: 60ch; }

/* Prose */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose ul { display: grid; gap: .5rem; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-size: .88em; background: var(--platinum); color: var(--ink);
  padding: .12em .4em; border-radius: 5px; border: 1px solid var(--line-soft);
}

/* Data table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.table-wrap:focus-visible { outline: var(--focus); outline-offset: 2px; }
.a11y-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.a11y-table th, .a11y-table td {
  text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft);
  font-size: .96rem; vertical-align: top;
}
.a11y-table thead th { background: var(--navy); color: #fff; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.a11y-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.a11y-table td { color: var(--ink-2); }
.a11y-table tbody tr:nth-child(even) { background: var(--platinum-2); }
.a11y-table tbody tr:last-child th, .a11y-table tbody tr:last-child td { border-bottom: 0; }

/* Callout */
.callout {
  border-left: 4px solid var(--teal); background: var(--platinum-2);
  padding: var(--sp-5); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Forms */
.form-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow);
}
.field { margin-bottom: var(--sp-5); }
.field > label, .fieldset > legend {
  display: block; font-weight: 650; color: var(--ink); margin-bottom: .4rem;
}
.field .req { color: var(--error-ink); font-weight: 700; }
.field .req-text, .fieldset .req-text { font-weight: 600; color: var(--muted); font-size: .82rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .1rem; margin-bottom: .45rem; }
.input, .textarea, .select {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm); padding: .75rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 130px; resize: vertical; }
.input:hover, .textarea:hover, .select:hover { border-color: #5c6b78; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,94,147,.18);
}
.field.has-error .input, .field.has-error .textarea, .field.has-error .select {
  border-color: var(--error); box-shadow: 0 0 0 3px rgba(179,38,30,.14);
}
.error-msg {
  display: none; align-items: center; gap: .4rem;
  color: var(--error-ink); font-size: .88rem; font-weight: 600; margin-top: .4rem;
}
.error-msg svg { width: 16px; height: 16px; flex: none; }
.field.has-error .error-msg,
.fieldset.has-error .error-msg { display: flex; }
.fieldset.has-error legend { color: var(--error-ink); }
.fieldset.has-error .check input[type="checkbox"] { outline: 2px solid var(--error); outline-offset: 2px; }

.fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.check {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .5rem 0;
}
.check input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; margin-top: .12rem; flex: none;
  accent-color: var(--brand);
}
.check label { color: var(--ink-2); font-size: .95rem; }
.check .req { color: var(--error-ink); font-weight: 700; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: var(--sp-4); }
.form-status {
  border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5);
  display: none; gap: .6rem; align-items: flex-start;
}
.form-status.show { display: flex; }
.form-status.success { background: #e7f4ec; border: 1px solid #b6dcc4; color: #14532d; }
.form-status.error   { background: var(--warn-bg); border: 1px solid #f0c3c0; color: var(--error-ink); }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.form-status a { color: inherit; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--sp-8); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--platinum); color: var(--brand-ink); border: 1px solid var(--line-soft);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list .cl { font-weight: 700; color: var(--ink); display: block; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: var(--sp-3); max-width: 800px; }
.faq details {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 0; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: var(--sp-5); font-weight: 700; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fq-ico { width: 22px; height: 22px; flex: none; transition: transform .2s ease; color: var(--brand-ink); }
.faq details[open] summary .fq-ico { transform: rotate(45deg); }
.faq .faq-body { padding: 0 var(--sp-5) var(--sp-5); }
.faq .faq-body p { margin: 0; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy); color: #c7d7e6; padding-block: var(--sp-8) var(--sp-6); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--sp-6);
  padding-bottom: var(--sp-7); border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand .brand-name { color: #fff; }
.site-footer .brand .brand-sub { color: var(--cyan); }
.footer-about p { color: #a9c0d4; margin-top: var(--sp-4); max-width: 34ch; font-size: .95rem; }
.footer-col .footer-h { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: #bccfe0; text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .7rem; color: #bccfe0; font-size: .95rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: .18rem; color: var(--cyan); }
.footer-contact a { color: #bccfe0; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  flex-wrap: wrap; padding-top: var(--sp-5); font-size: .87rem; color: #93acc2;
}
.footer-bottom a { color: #a9c0d4; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-bottom .legal-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }

/* ---------------------------------------------------------------- Misc */
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.maxw { max-width: 760px; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 650;
  padding: .3rem .7rem; border-radius: 999px; background: var(--platinum); color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.logo-row { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); align-items: center; }
.value-strip { display:flex; flex-wrap:wrap; gap: var(--sp-5); justify-content: space-between; }
.value-strip .vs { display:flex; align-items:center; gap:.6rem; color: var(--ink-2); font-weight:600; }
.value-strip .vs svg { width: 22px; height: 22px; color: var(--teal-ink); flex:none; }

/* =========================================================================
   Mobile hardening — guarantee no horizontal overflow at any width
   ========================================================================= */

/* Never let the page scroll sideways. `clip` (not hidden) so position:sticky
   on the header keeps working. */
html, body { max-width: 100%; overflow-x: clip; }

/* Let grid/flex children shrink below their content's min-content size,
   so long words/buttons wrap instead of forcing the track (and page) wider. */
.hero .container > *, .cta-inner > *, .split > *, .split-body, .split-media,
.contact-grid > *, .grid > *, .footer-grid > *, .process > *,
.section-head, .prose, .card, .feature, .step { min-width: 0; }

/* Long unbreakable strings (emails, URLs) may wrap. */
.topbar a, .contact-list a, .footer-contact a, .prose a { overflow-wrap: anywhere; }
.card p, .feature p, .lead, .step p { overflow-wrap: break-word; }

/* SVG figures never exceed their column. */
.hero-figure, .media-frame, .media-frame svg, .hero-figure svg { max-width: 100%; }

@media (max-width: 560px) {
  /* Stack CTA/hero button rows full-width so long labels never clip. */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; white-space: normal; }
  .btn-lg { padding: .9rem 1.25rem; font-size: 1rem; }
  /* CTA band: single column already; tighten the gap. */
  .cta-band .cta-inner { gap: var(--sp-5); }
  .hero-metrics { gap: var(--sp-4) var(--sp-6); }
}

@media (max-width: 380px) {
  .container { padding-inline: 1.05rem; }
  h1 { font-size: 1.95rem; }
  .topbar { font-size: .8rem; }
}

@media print {
  .site-header, .topbar, .nav-scrim, .site-footer .footer-bottom { }
}
