/* ==========================================================
   CertusTrack marketing site
   ========================================================== */
:root {
  /* Brand colors, sampled from the CertusTrack logo (assets/logo.png) */
  --navy: #021a37;      /* "Certus" wordmark */
  --navy-900: #011126;
  --navy-700: #0a3463;
  --blue: #0273da;      /* "Track" wordmark; primary buttons and accents (4.7:1 with white) */
  --blue-700: #0260b8;  /* hover, link text */
  --blue-300: #4fa3f2;  /* accents on dark surfaces */
  --blue-100: #a8d0f8;  /* eyebrow text on dark */
  --blue-50: #e6f1fd;   /* icon tiles, callouts */
  --ink: #0e1b2c;
  --text: #4a5a6e;
  --muted: #6b7a8c;
  --line: #e3eaf2;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-tint: #e8f2fa;
  --ok: #1aa37a;
  --ok-bg: #d8f3e8;
  --warn: #e9a23b;
  --warn-bg: #fdf0d5;
  --bad: #e2603f;
  --ok-text: #13775a;
  --warn-text: #9a6410;
  --expiring-bg: #fde8c4;
  --expiring-text: #9a5a00;
  --bad-text: #b8401f;

  --line-strong: #c8d6e5;
  --bg-faint: #fbfdff;
  --sky-100: #eaf3fb;
  --sky-200: #dce9f5;
  --sky-300: #d6e7f9;
  --skyline: #c6d8ea;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d6e6;
  --on-dark-subtle: #9fb0c4;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(2, 26, 55, .06), 0 2px 8px rgba(2, 26, 55, .05);
  --shadow: 0 10px 30px rgba(2, 26, 55, .10);
  --shadow-lg: 0 30px 70px rgba(2, 26, 55, .22);

  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Extra 24px covers the 18px .reveal offset that is still applied when an anchor target is measured */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--on-dark); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  border: 1px solid transparent; border-radius: 8px;
  padding: .75em 1.4em; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { font-size: 17px; padding: .95em 1.9em; }
.btn-block { width: 100%; }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: var(--navy-700); }
.btn-blue { background: var(--blue); color: var(--on-dark); box-shadow: 0 6px 18px rgba(2, 115, 218, .28); }
.btn-blue:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-white { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-white:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn-white .play { fill: var(--ink); stroke: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex-shrink: 0; }
/* Full logo (mark + wordmark + tagline) as one image: assets/logo.png */
.brand img { height: 48px; width: auto; }

.main-nav { margin-left: auto; margin-right: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.has-menu { position: relative; }
.nav-trigger {
  display: flex; align-items: center; gap: 6px; background: none; border: 0;
  padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: 15.5px; border-radius: 8px;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--bg-soft); }
.nav-trigger .chev { font-size: 14px; transition: transform .2s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 290px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}
/* Invisible bridge over the gap so hover doesn't drop between trigger and menu */
.menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.menu a:hover { background: var(--bg-soft); }
.menu a[aria-current="page"] strong { color: var(--blue-700); }
.menu strong { display: block; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.menu span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.signin { font-weight: 500; color: var(--ink); font-size: 15px; }
.signin:hover { color: var(--blue); }
.nav-mobile-actions { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-200) 100%);
  padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 80px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .skyline { position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; color: var(--skyline); opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(234, 243, 251, .97) 0%, rgba(234, 243, 251, .85) 38%, rgba(234, 243, 251, 0) 70%);
}
.hero-inner { position: relative; max-width: 1440px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 56px); align-items: center; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--navy-700);
  display: inline-block; padding-bottom: 14px; position: relative; margin-bottom: 28px;
}
.eyebrow::after { content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 2px; background: var(--blue); }
.eyebrow.light { color: var(--blue-100); }
.eyebrow.light::after { background: var(--blue-300); }

.hero h1 { font-size: clamp(44px, 5.2vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: var(--navy-900); }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--text); margin-top: 24px; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Dashboard preview ---------- */
.dash-wrap { perspective: 1800px; }
.dash {
  display: grid; grid-template-columns: 132px 1fr;
  background: var(--bg); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, .55);
  font-size: 12px; color: var(--ink);
  transform: rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.dash-wrap:hover .dash { transform: rotateY(0) rotateX(0); }
.dash-side { background: var(--navy); color: var(--on-dark-muted); padding: 16px 0; }
.dash-logo { display: flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 700; font-family: var(--font-head); padding: 0 16px 18px; font-size: 13px; }
.dash-side ul { list-style: none; margin: 0; padding: 0; }
.dash-side li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 11.5px; }
.dash-side li svg { font-size: 14px; opacity: .85; }
.dash-side li.active { background: rgba(255, 255, 255, .08); color: var(--on-dark); box-shadow: inset 3px 0 0 var(--blue-300); }

.dash-main { padding: 18px 20px; min-width: 0; background: var(--bg-faint); }
.dash-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dash-head h3 { font-size: 16px; font-weight: 700; margin-right: auto; letter-spacing: -0.01em; }
.dash-note { font-size: 10px; color: var(--muted); }
.dash-select { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 5px 9px; }

.dash-stats { display: grid; grid-template-columns: 0.85fr 1fr 1fr 1fr; gap: 10px; align-items: stretch; }
.donut { position: relative; display: grid; place-items: center; }
.donut svg { width: 100%; max-width: 116px; height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 11; }
.donut-track { stroke: var(--line); }
.donut-fill { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
.donut-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-label strong { font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1; }
.donut-label span { font-size: 10px; color: var(--muted); margin-top: 3px; }

.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.stat-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 10.5px; white-space: nowrap; }
.stat-title svg { font-size: 16px; color: var(--blue); }
.stat-num { font-family: var(--font-head); font-size: 22px; font-weight: 800; margin: 4px 0 6px; }
.stat ul { list-style: none; margin: 0; padding: 0; font-size: 9px; white-space: nowrap; color: var(--text); line-height: 1.75; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

.dash-table { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 6px; }
.dash-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dash-table-head h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.dash-table-head span { font-size: 10px; color: var(--blue); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.dash-table table { width: 100%; border-collapse: collapse; font-size: 10.5px; white-space: nowrap; }
.dash-table th { text-align: left; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--bg-soft); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table td:last-child { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 9.5px; }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.pill.expiring { background: var(--expiring-bg); color: var(--expiring-text); }

/* ---------- Process ---------- */
.process { background: var(--bg); padding: 36px 0; border-bottom: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { display: flex; gap: 20px; align-items: center; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 52px; border-top: 2px dotted var(--line-strong); transform: translateX(50%);
  display: none;
}
.step-icon {
  width: 76px; height: 76px; border-radius: 50%; background: var(--bg-tint);
  display: grid; place-items: center; flex-shrink: 0; color: var(--navy);
}
.step-icon svg { font-size: 34px; stroke-width: 1.6; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Features ---------- */
.features { background: var(--bg-soft); padding: clamp(56px, 7vw, 96px) 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.features-intro { grid-column: 1 / -1; margin-bottom: 12px; }
.features-intro h2 { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
.features-intro p { margin-top: 16px; max-width: 68ch; font-size: 17px; }
.rule { display: block; width: 52px; height: 2px; background: var(--blue); margin-top: 28px; }
.card {
  position: relative; background: var(--bg); border-radius: var(--radius); padding: 26px 22px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.card-icon svg { font-size: 28px; stroke-width: 1.6; }
.card .card-icon { margin-bottom: 18px; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card-link { margin-top: auto; padding-top: 22px; color: var(--navy); font-size: 22px; display: inline-flex; width: fit-content; }
.card-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:hover .card-link svg { transform: translateX(4px); }
.card-link svg { transition: transform .2s; }

/* ---------- Section heads ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Who we serve ---------- */
.serve { padding: clamp(64px, 8vw, 112px) 0; }
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.serve-grid.two { grid-template-columns: repeat(2, 1fr); }
.serve-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: linear-gradient(180deg, var(--bg), var(--bg-faint)); }
.serve-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.serve-card p { color: var(--muted); }
.serve-card .text-link { margin-top: 24px; }
/* Check-mark list: serve cards and .check-list on content pages */
.serve-card ul, .check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.serve-card li, .check-list li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--ink); font-size: 15px; }
.check-list li { align-items: flex-start; font-weight: 400; color: var(--text); font-size: 16px; }
.check-list li::before { margin-top: 3px; }
.check-list strong { color: var(--ink); font-weight: 600; }
.serve-card li::before, .check-list li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Dark band (focus questions, mission, closing statements) ---------- */
.band-dark { background: var(--navy); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 104px) 0; }
.band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.band-inner.single { grid-template-columns: 1fr; max-width: 880px; }
.band-dark h2 { color: var(--on-dark); font-size: clamp(30px, 3.2vw, 44px); font-weight: 800; margin-bottom: 18px; }
.band-dark p { font-size: 17px; max-width: 60ch; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.band-list li {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark); font-weight: 500;
}
.band-list svg { font-size: 24px; color: var(--blue-300); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(64px, 8vw, 112px) 0; background: var(--bg-soft); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-page { max-width: 880px; }
.faq .section-head .text-link { margin-top: 20px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; }

/* ---------- CTA ---------- */
.cta { padding: clamp(64px, 8vw, 104px) 0; background: linear-gradient(135deg, var(--sky-100), var(--sky-300)); text-align: center; }
.cta h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { font-size: 18px; margin: 14px auto 32px; max-width: 60ch; }

/* ---------- Content pages ---------- */
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-700); }
.text-link:hover { color: var(--navy); }
.text-link .arrow { transition: transform .2s; }
.text-link:hover .arrow { transform: translateX(3px); }

.page-hero { background: linear-gradient(180deg, var(--sky-100) 0%, var(--sky-200) 100%); padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--navy-900); max-width: 22ch; }
.page-hero .lede { max-width: 64ch; font-size: clamp(17px, 1.5vw, 20px); }
.page-hero .lede + .lede { margin-top: 14px; }
.tagline { margin-top: 24px; font-family: var(--font-head); font-weight: 700; color: var(--navy-700); font-size: 18px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.soft { background: var(--bg-soft); }
.section-sub { margin-top: 16px; font-size: 17px; }
.section-head:has(.section-sub) { max-width: 760px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.split-title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; letter-spacing: -0.03em; }

.prose { max-width: 72ch; }
.section-head + .prose { margin-bottom: 40px; }
.prose > * + * { margin-top: 16px; }
.prose h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-top: 48px; }
.prose h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.prose .pull { font-family: var(--font-head); font-size: clamp(19px, 1.7vw, 22px); font-weight: 700; line-height: 1.4; color: var(--navy-700); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.info-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.info-card .card-icon { margin-bottom: 18px; }
.info-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.info-card p { font-size: 15px; color: var(--muted); }
.info-card p + p, .info-card p + .text-link { margin-top: 12px; }
.kicker { color: var(--blue-700); font-weight: 600; }
.info-card .kicker { color: var(--blue-700); font-size: 15px; margin-bottom: 10px; }
.info-card .benefit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text); }
.info-card .benefit strong { color: var(--ink); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--bg-tint); color: var(--navy-700); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

.callout { border-left: 3px solid var(--blue); background: var(--blue-50); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.info-card .callout { margin-top: 16px; color: var(--ink); font-size: 14.5px; }
.callout.note { border-color: var(--warn); background: var(--warn-bg); margin-bottom: 40px; max-width: 72ch; }

.numbered { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 22px; }
.numbered > li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.numbered > li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--bg-tint); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; display: grid; place-items: center;
}
.numbered h4 { margin: 8px 0 4px; }

.flow { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flow li { display: flex; align-items: center; gap: 10px; }
.flow li:not(:last-child)::after { content: "→" / ""; color: var(--blue); font-weight: 700; }
.flow span { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); font-size: 15px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.data-table tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }

.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leader { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: linear-gradient(180deg, var(--bg), var(--bg-faint)); }
.leader .avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--on-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 22px; display: grid; place-items: center; margin-bottom: 20px;
}
.leader h3 { font-size: 21px; font-weight: 700; }
.leader .kicker { margin: 4px 0 14px; }
.leader p:not(.kicker) { color: var(--muted); font-size: 15px; }
.leader p + p:not(.kicker) { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-subtle); padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-brand { display: flex; align-items: center; }
.footer-brand img { height: 40px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--on-dark); }
.copyright { margin-left: auto; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1, 17, 38, .55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px;
  animation: pop .25s cubic-bezier(.2, .7, .2, 1);
}
.modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; color: var(--muted); border-radius: 8px; line-height: 1; }
.modal-close:hover { background: var(--bg-soft); }
.modal h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.modal-body > p { margin-bottom: 24px; }
#demo-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#demo-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
#demo-form input, #demo-form select {
  font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); width: 100%;
}
#demo-form input:focus, #demo-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2, 115, 218, .18); }
#demo-form input.invalid { border-color: var(--bad); }
.form-error { color: var(--bad-text); font-size: 14px; }
#demo-form .btn { margin-top: 8px; }
.success { text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 8px auto 20px; }
.success-icon svg { font-size: 32px; stroke-width: 2.5; }
.success .btn { margin-top: 8px; }

/* ---------- 404 ---------- */
.not-found-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.nf-report { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, .55); padding: 24px 26px; color: var(--ink); max-width: 440px; width: 100%; justify-self: end; }
.nf-report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.nf-report-label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.nf-code { font-family: var(--font-head); font-size: clamp(48px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.nf-rows { list-style: none; margin: 0; padding: 8px 0; }
.nf-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; font-weight: 500; }
.nf-rows li + li { border-top: 1px dashed var(--line); }
.nf-rows .pill { font-size: 12px; padding: 3px 10px; white-space: nowrap; }
.nf-next { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--blue-50); color: var(--navy-700); font-size: 14.5px; font-weight: 600; }
.nf-next svg { color: var(--blue); stroke-width: 2.5; flex: none; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (min-width: 1181px) {
  .step:not(:last-child)::after { display: block; }
}
@media (max-width: 1180px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
}
@media (max-width: 1080px) {
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); margin: 0; border-top: 1px solid var(--line);
    background: var(--bg); padding: 16px clamp(16px, 4vw, 40px) 32px; overflow-y: auto;
    /* Slide in with clip-path rather than translateX(100%): an off-canvas transform adds
       horizontal overflow, which lets the whole page pan sideways on mobile. */
    clip-path: inset(0 0 0 100%); transition: clip-path .25s ease, visibility .25s; visibility: hidden;
  }
  .main-nav.open { clip-path: inset(0); visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .nav-trigger { width: 100%; justify-content: space-between; font-size: 17px; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: none; }
  .menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 0 8px; display: none; min-width: 0; }
  .has-menu.open .menu { display: block; transform: none; }
  .nav-mobile-actions { display: grid; gap: 12px; margin-top: 24px; }
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  body.nav-open { overflow: hidden; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(234, 243, 251, .95) 0%, rgba(234, 243, 251, .6) 60%, rgba(234, 243, 251, .3) 100%); }
  .dash { transform: none; }
  .lede { max-width: 46ch; }
  .band-inner, .faq-inner, .split { grid-template-columns: 1fr; gap: 32px 40px; }
  .faq .section-head { margin-bottom: 0; }
  .serve-grid, .serve-grid.two, .info-grid.two { grid-template-columns: 1fr; }
  .not-found-inner { grid-template-columns: 1fr; }
  .nf-report { justify-self: start; }
}
@media (max-width: 760px) {
  .features-grid, .leader-grid { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-head { flex-wrap: wrap; row-gap: 4px; }
  .dash-note { order: 3; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .btn-lg { white-space: normal; text-align: center; max-width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 28px 20px; }
  .copyright { margin-left: 0; width: 100%; }
}
