/* ==========================================================================
   TruePositive — design system
   Palette: navy #152852 · teal #1F8A99 · coral #D9503C · mist #F3F5F9
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0C1830;
  --navy-800: #102040;
  --navy: #152852;
  --navy-600: #24406F;
  --teal: #1F8A99;
  --teal-600: #17707D;
  --teal-100: #E3F1F3;
  --coral: #D9503C;
  --mist: #F3F5F9;
  --mist-200: #E4E9F1;

  /* Neutrals */
  --ink: #14181F;
  --body: #3C4653;
  --muted: #66707E;
  --line: #DDE3EC;
  --white: #FFFFFF;

  /* Type */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --wrap: 1140px;
  --wrap-narrow: 780px;
  --r: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 64, .06), 0 2px 8px rgba(16, 32, 64, .05);
  --shadow-md: 0 4px 12px rgba(16, 32, 64, .08), 0 14px 32px rgba(16, 32, 64, .09);
}

/* --------------------------------------------------------- reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.03rem + .55vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #C9D4E6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--body); }
.center { text-align: center; }
.measure { max-width: 68ch; }
.mb0 { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
}
.section--navy .eyebrow { color: #63BFCC; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.32rem; font-weight: 600; color: var(--navy);
  letter-spacing: -.02em;
}
.brand__name em { font-style: normal; color: var(--teal); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  font-size: .95rem; font-weight: 500; color: var(--navy); padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav__list a:hover { text-decoration: none; border-bottom-color: var(--teal); }
.nav__list a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-600); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; cursor: pointer; color: var(--navy);
}

/* --------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .96rem; font-weight: 600;
  padding: .78rem 1.5rem; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-600); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-600); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-800);
  background-image:
    radial-gradient(900px 460px at 78% -8%, rgba(31, 138, 153, .42), transparent 62%),
    radial-gradient(620px 420px at 8% 108%, rgba(36, 64, 111, .8), transparent 60%);
  color: #C9D4E6;
  padding: clamp(3.75rem, 2rem + 7vw, 7rem) 0 clamp(3.25rem, 2rem + 5vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 72% 12%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 72% 12%, #000 0%, transparent 68%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero__lead { font-size: clamp(1.08rem, .98rem + .5vw, 1.3rem); color: #BFCCE1; max-width: 60ch; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .btn-row { margin-top: 2rem; }
.hero__note { margin-top: 1.75rem; font-size: .9rem; color: #8FA2BF; }

/* signal panel in hero */
.panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 1.6rem 1.7rem;
  backdrop-filter: blur(4px);
}
.panel h2 { font-size: 1.02rem; color: #fff; font-family: var(--font-body); font-weight: 600; letter-spacing: .01em; }
.panel ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.panel li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .62rem 0; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .95rem; color: #C9D4E6;
}
.panel li:first-child { border-top: 0; padding-top: 0; }
.panel li svg { flex: none; margin-top: .28rem; color: #63BFCC; }

/* ------------------------------------------------------------ trust bar */
.trustbar { border-bottom: 1px solid var(--line); background: var(--white); }
.trustbar__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  align-items: center; justify-content: center;
  padding: 1.15rem 0; font-size: .88rem; color: var(--muted);
}
.trustbar__inner span { display: inline-flex; align-items: center; gap: .5rem; }
.trustbar__inner span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex: none;
}

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.9rem 1.75rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
a.card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--mist-200); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 42px; height: 42px; border-radius: 9px; background: var(--teal-100);
  color: var(--teal-600); display: grid; place-items: center; margin-bottom: 1.15rem;
}
.card__more {
  margin-top: auto; padding-top: 1.1rem; font-size: .92rem; font-weight: 600; color: var(--teal-600);
}
.card__more::after { content: " \2192"; }
.card--flat { box-shadow: none; background: transparent; border: 0; padding: 0; }

/* numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; padding-left: 3.4rem; position: relative; margin: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .05rem;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
  color: var(--teal-600); background: var(--teal-100);
  width: 2.4rem; height: 2.4rem; border-radius: 8px; display: grid; place-items: center;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.steps p { margin-bottom: 0; font-size: .97rem; }

/* stat / figure blocks */
.stat { border-left: 3px solid var(--teal); padding-left: 1.15rem; }
.stat__num { font-family: var(--font-head); font-size: 2.15rem; color: var(--navy); line-height: 1.1; display: block; }
.section--navy .stat__num { color: #fff; }
.stat__label { font-size: .92rem; color: var(--muted); }
.section--navy .stat__label { color: #9FB0CB; }

/* ---------------------------------------------------------- service row */
.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 4vw, 3.75rem) 0; border-top: 1px solid var(--line);
  align-items: start;
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__body ul { padding-left: 1.1em; }
.service__body li { font-size: .97rem; }
.deliverables {
  background: var(--mist); border-radius: var(--r); padding: 1.5rem 1.6rem;
  border: 1px solid var(--mist-200);
}
.deliverables h4 {
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .85rem;
}
.deliverables ul { list-style: none; padding: 0; margin: 0; }
.deliverables li {
  padding: .5rem 0 .5rem 1.5rem; position: relative;
  border-top: 1px solid var(--mist-200); font-size: .95rem; margin: 0;
}
.deliverables li:first-child { border-top: 0; }
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: 1.02rem;
  width: 8px; height: 8px; border: 2px solid var(--teal); border-radius: 2px;
}

/* ------------------------------------------------------------------ faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--font-head); font-size: 1.14rem; font-weight: 600; color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 1.15rem;
  font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; color: var(--teal);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { padding-bottom: .5rem; }
.faq__answer { padding-bottom: 1.5rem; max-width: 74ch; }
.faq__answer p:last-child, .faq__answer ul:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- quotes */
.pull {
  font-family: var(--font-head); font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem);
  line-height: 1.4; color: var(--navy); border-left: 3px solid var(--teal);
  padding-left: 1.5rem; margin: 0;
}
.section--navy .pull { color: #fff; border-color: #63BFCC; }

/* ------------------------------------------------------------------ cta */
.cta {
  background: var(--navy); border-radius: 16px; color: #C9D4E6;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 2rem; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { margin-bottom: 0; }
.cta .btn-row { justify-content: flex-end; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-weight: 600; color: var(--navy); font-size: .87rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------- page intro */
.page-head {
  background: var(--mist); border-bottom: 1px solid var(--line);
  padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) 0 clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
}
.page-head p.lead { max-width: 62ch; margin-bottom: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-100); }
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .83rem; color: var(--muted); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #93A3BE; padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer h3 {
  color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer a { color: #C1CDDF; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: #8496B3; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .86rem; color: #7C8CA8;
}

/* --------------------------------------------------------- placeholders */
.tbc {
  background: #FFF3BF; color: #6B4E00; padding: 0 .25em; border-radius: 3px;
  box-shadow: inset 0 -1px 0 #E0C25E; font-style: normal;
}

/* ------------------------------------------------------------ utilities */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------- breakpoints */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 1.75rem; }
  .cta { grid-template-columns: 1fr; }
  .cta .btn-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__list a:hover { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .cta, .btn { display: none; }
  body { color: #000; font-size: 11pt; }
}
