/* Pacific MedicoLegal — public site design system.
   Brand: Deep Pacific Blue #0A1F44 / Ocean Blue #123A6D / Wave Blue #3D6FAF /
   Mist Blue #A9C4E2 / White. Type: Montserrat.
   Class names are a contract: every page uses these and adds nothing global. */

:root {
  /* one spacing scale; stop hand-picking margins per block */
  --s-1: 8px;  --s-2: 14px; --s-3: 20px; --s-4: 28px;
  --s-5: 40px; --s-6: 56px; --s-7: 80px;
  --deep: #0a1f44;
  --ocean: #123a6d;
  --wave: #3d6faf;
  --mist: #a9c4e2;
  --white: #ffffff;

  --ink: #0e1b2e;
  --body: #46536a;
  --quiet: #6d7b92;
  --line: #dde4ee;
  --line-2: #c8d4e6;
  --paper: #ffffff;
  --shell: #f5f8fc;
  --shell-2: #eaf0f9;

  --gold: #9a7b2e;
  --gold-soft: #fbf6e9;
  --sea: #14705e;
  --sea-soft: #e8f4f1;

  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .05), 0 2px 8px rgba(10, 31, 68, .04);
  --shadow: 0 2px 4px rgba(10, 31, 68, .05), 0 12px 32px rgba(10, 31, 68, .08);
  --shadow-lg: 0 4px 8px rgba(10, 31, 68, .06), 0 28px 64px rgba(10, 31, 68, .14);
  --r: 12px;
  --r-sm: 8px;
  --gutter: 28px;
}

:root { color-scheme: light; }
/* This is a brand identity with a fixed palette (deep navy on white), so the
   page commits to one visual world rather than inverting for a dark viewer.
   Declaring color-scheme keeps form controls and scrollbars in the same world. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.85rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.028em; }
h3 { font-size: 1.22rem; letter-spacing: -.018em; }
h4 { font-size: 1.02rem; letter-spacing: -.012em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .42em; }
li:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
:focus-visible { outline: 3px solid var(--wave); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.band { padding: clamp(36px, 4.5vw, 58px) 0; }
.band-tight { padding: clamp(24px, 3vw, 38px) 0; }
.band-shell { background: var(--shell); }
.band-deep { background: var(--deep); color: #cddcef; }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4 { color: #fff; }
.band-deep strong { color: #fff; }
.band-deep a { color: var(--mist); }
.band-deep a:hover { color: #fff; }
.band-line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .735rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--wave); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.band-deep .eyebrow { color: var(--mist); }
.lede { font-size: clamp(1.05rem, 1.65vw, 1.2rem); line-height: 1.62; color: var(--body); }
.band-deep .lede { color: #c2d3e8; }
/* A lede followed by a body paragraph dropped from 1.2rem to 1rem, which read as
   a mistake rather than a hierarchy. Meet in the middle and give it air. */
.lede + p { font-size: 1.06rem; line-height: 1.62; margin-top: var(--s-3); }
.lede + p + p { font-size: 1.06rem; line-height: 1.62; }
.section-head { max-width: 760px; margin-bottom: clamp(22px, 2.5vw, 32px); }
.section-head h2 + p { margin-top: 16px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.small { font-size: .86rem; line-height: 1.6; color: var(--quiet); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; letter-spacing: -.005em; text-align: center;
  cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease),
    color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { background: var(--deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ocean); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wave); color: var(--deep); background: var(--shell); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--mist); color: var(--deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .85rem; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .93rem; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 20px rgba(10,31,68,.09); }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-name { font-size: 1.24rem; font-weight: 700; color: var(--deep); letter-spacing: -.015em; line-height: 1.1; }
.brand-name span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .175em; text-transform: uppercase; color: var(--wave); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 9px 10px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; color: var(--body);
  white-space: nowrap; transition: background .16s, color .16s;
}
.site-nav a:hover { background: var(--shell); color: var(--deep); }
.site-nav a[aria-current="page"] { color: var(--deep); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 21px; height: 21px; stroke: var(--deep); stroke-width: 2; fill: none; }
@media (max-width: 1340px) {
  .site-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-cta { order: 3; }
  .site-header.is-open .site-nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px var(--gutter) 20px; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav a { padding: 13px 12px; font-size: 1rem; }
}
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
  .brand-name { font-size: 1.08rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--deep); color: #c8d9ee; padding: clamp(56px, 7vw, 92px) 0 clamp(48px, 6vw, 78px); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 88% 8%, rgba(61,111,175,.42), transparent 62%),
    radial-gradient(700px 480px at 4% 96%, rgba(18,58,109,.75), transparent 60%);
  pointer-events: none;
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; opacity: .17; pointer-events: none; }
.hero-waves svg { width: 100%; height: auto; display: block; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--mist); }
.hero-lede { font-size: clamp(1.06rem, 1.75vw, 1.24rem); line-height: 1.6; color: #bfd2e8; max-width: 34em; margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(36px, 5vw, 68px); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 11px;
  border: 1px solid rgba(169,196,226,.28); border-radius: 999px; background: rgba(169,196,226,.09);
  font-size: .8rem; font-weight: 600; color: var(--mist); margin-bottom: 24px;
}
.hero-badge b { color: #fff; font-weight: 700; }
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: #4ecfa8; box-shadow: 0 0 0 4px rgba(78,207,168,.18); }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 24px;
  margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(169,196,226,.2);
}
@media (max-width: 520px) { .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-proof div strong { display: block; font-size: 1.85rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.1; }
.hero-proof div span { display: block; font-size: .81rem; color: #9cb4d1; margin-top: 5px; }

/* ---------- split figure (share panel) ---------- */
.share-panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--body); }
.share-panel-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.share-panel-head strong { display: block; font-size: 1.02rem; color: var(--ink); }
.share-panel-head span { font-size: .79rem; color: var(--quiet); }
.share-panel-body { padding: 26px; }
.share-row { margin-bottom: 22px; }
.share-row:last-child { margin-bottom: 0; }
.share-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.share-row-top span { font-size: .875rem; font-weight: 600; color: var(--ink); }
.share-row-top b { font-size: .875rem; font-weight: 700; color: var(--quiet); font-variant-numeric: tabular-nums; }
.share-bar { position: relative; height: 34px; border-radius: 6px; background: var(--shell-2); overflow: hidden; }
.share-bar i {
  position: absolute; inset: 0 auto 0 0; display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--wave), var(--ocean)); width: 0;
  transition: width 1.1s var(--ease);
}
.share-row.is-ours .share-bar i { background: linear-gradient(90deg, var(--ocean), var(--deep)); }
.share-row.is-ours .share-row-top b { color: var(--deep); }
.share-note { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: .84rem; color: var(--quiet); }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card-hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .945rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; background: var(--shell-2); color: var(--ocean);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.band-deep .card { background: rgba(255,255,255,.045); border-color: rgba(169,196,226,.16); }
.band-deep .card-icon { background: rgba(169,196,226,.13); color: var(--mist); }
.band-deep .card p { color: #b6c8de; }
.card-num {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--deep); color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.stat-card strong { display: block; font-size: 2.15rem; font-weight: 700; color: var(--deep); letter-spacing: -.035em; line-height: 1.05; }
.stat-card span { display: block; font-size: .875rem; color: var(--body); margin-top: 9px; }
.stat-card small { display: block; font-size: .75rem; color: var(--quiet); margin-top: 10px; }

/* ---------- feature list ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checks li { position: relative; padding-left: 32px; margin: 0; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--shell-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123a6d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.band-deep .checks li::before { background-color: rgba(169,196,226,.16); }
.checks-tight li { font-size: .9rem; display: flex; align-items: center; gap: 11px; padding-left: 0; }
.checks-tight li::before { position: static; top: auto; flex-shrink: 0; }

/* billable-item tiles (QME revenue capture) */
.billables { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 720px) { .billables { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .billables { grid-template-columns: minmax(0,1fr); } }
.billable { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; box-shadow: var(--shadow-sm); }
.billable .bi { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--mist-1, #eaf1fa); color: var(--ocean); display: flex; align-items: center; justify-content: center; }
.billable .bi svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.85; }
.billable span { font-size: .95rem; font-weight: 600; color: var(--deep); line-height: 1.3; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 66px); align-items: center; }
.split-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 940px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.data { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); background: var(--shell); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
table.data .col-ours { background: var(--shell); }
table.data thead .col-ours { background: var(--shell-2); color: var(--deep); }
table.data td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.yes, .no { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; font-size: .72rem; font-weight: 700; }
.yes { background: var(--sea-soft); color: var(--sea); }
.no { background: #f3f5f8; color: var(--quiet); }

/* ---------- calculator ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-controls { padding: 30px; border-right: 1px solid var(--line); background: var(--shell); }
@media (max-width: 900px) { .calc-controls { border-right: 0; border-bottom: 1px solid var(--line); } }
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 11px; }
.calc-field label b { font-size: 1.05rem; font-weight: 700; color: var(--deep); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px; background: var(--line-2); outline-offset: 6px; }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--deep); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(10,31,68,.32); cursor: pointer; }
.calc-field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--deep); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(10,31,68,.32); cursor: pointer; border-color: #fff; }
.calc-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--quiet); margin-top: 7px; }
.seg { display: flex; gap: 5px; padding: 4px; background: var(--shell-2); border-radius: 9px; }
.seg button { flex: 1; min-height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: .855rem; font-weight: 600; color: var(--body); cursor: pointer; transition: background .16s, color .16s, box-shadow .16s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--deep); box-shadow: var(--shadow-sm); }
.calc-out { padding: 30px; display: flex; flex-direction: column; }
.calc-headline { margin-bottom: 24px; }
.calc-headline span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); margin-bottom: 8px; }
.calc-headline strong { display: block; font-size: clamp(2.3rem, 5vw, 3.1rem); font-weight: 700; color: var(--deep); letter-spacing: -.038em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-headline em { display: block; font-style: normal; font-size: .93rem; color: var(--body); margin-top: 11px; }
.calc-bars { display: grid; gap: 16px; margin-top: auto; }
.calc-bar span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .855rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.calc-bar span b { font-variant-numeric: tabular-nums; color: var(--quiet); font-weight: 700; }
.calc-bar span b.hi { color: var(--deep); }
.calc-track { height: 28px; border-radius: 6px; background: var(--shell-2); overflow: hidden; }
.calc-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--mist), var(--wave)); width: 0; transition: width .55s var(--ease); }
.calc-bar.is-ours .calc-track i { background: linear-gradient(90deg, var(--ocean), var(--deep)); }
.calc-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--quiet); }

/* ---------- timeline / steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: step; }
.steps li { position: relative; margin: 0; padding: 22px 0 22px 62px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--shell-2); color: var(--ocean); display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps li strong { display: block; font-size: 1.02rem; color: var(--ink); margin-bottom: 5px; }
.steps li p { font-size: .93rem; margin: 0; }
.band-deep .steps li { border-color: rgba(169,196,226,.16); }
.band-deep .steps li::before { background: rgba(169,196,226,.14); color: var(--mist); }
.band-deep .steps li p { color: #c3d4e8; }
/* --ink is near-black; on a navy band it has to be overridden or the text
   disappears. Every element that hard-codes --ink needs a pair here. */
.band-deep .steps li strong { color: #fff; }
.band-deep .quote p { color: #fff; }
.band-deep .quote cite { color: var(--mist); }
.band-deep .faq summary { color: #fff; }
.band-deep .faq details, .band-deep .faq { border-color: rgba(169,196,226,.18); }

/* ---------- quote ---------- */
.quote { border-left: 3px solid var(--wave); padding: 4px 0 4px 26px; }
.quote p { font-size: 1.16rem; line-height: 1.55; color: var(--ink); font-weight: 500; letter-spacing: -.012em; }
.quote cite { display: block; font-style: normal; font-size: .86rem; color: var(--quiet); margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.03rem; font-weight: 600; color: var(--ink); letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--shell-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123a6d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/11px no-repeat;
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 74ch; font-size: .95rem; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(26px, 3.4vw, 40px); }
.form-section { margin-bottom: 34px; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section > h3 { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; margin-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 1.03rem; }
.form-section > h3 i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--deep); color: #fff; font-size: .76rem; font-weight: 700; font-style: normal; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .855rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: #b4472f; margin-left: 2px; }
.field .hint { font-size: .78rem; color: var(--quiet); margin-top: 6px; line-height: 1.5; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font: inherit; font-size: .94rem; color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7b92' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 15px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--wave); box-shadow: 0 0 0 3px rgba(61,111,175,.16);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7bb; }
.check-row { display: flex; align-items: flex-start; gap: 11px; font-size: .89rem; line-height: 1.55; }
.check-row input { width: 19px; height: 19px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--deep); cursor: pointer; }
.radio-cards { display: flex; flex-wrap: wrap; gap: 11px; }
.radio-cards label {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-size: .89rem; font-weight: 500; color: var(--ink); cursor: pointer; margin: 0;
  flex: 1 1 auto; white-space: nowrap; transition: border-color .16s, background .16s;
}
.radio-cards label:hover { border-color: var(--wave); background: var(--shell); }
.radio-cards input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--deep); cursor: pointer; }
.radio-cards input:checked + span { font-weight: 600; color: var(--deep); }
.form-note { margin-top: 26px; padding: 17px 19px; border-radius: var(--r-sm); background: var(--shell); border: 1px solid var(--line); font-size: .855rem; line-height: 1.6; color: var(--body); }
.form-note strong { display: block; margin-bottom: 4px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-status { flex: 1 1 240px; font-size: .855rem; color: var(--quiet); }
.form-status.is-error { color: #b4472f; font-weight: 500; }

/* ---------- trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; align-items: center; }
@media (max-width: 1000px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-strip { grid-template-columns: minmax(0, 1fr); } }
.trust-strip div { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .87rem; font-weight: 500; color: var(--body); line-height: 1.45; white-space: nowrap; }
@media (max-width: 560px) { .trust-strip div { justify-content: flex-start; } }
.trust-strip svg { width: 19px; height: 19px; margin-top: 1px; stroke: var(--wave); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.band-deep .trust-strip div { color: #b6c8de; }
.band-deep .trust-strip svg { stroke: var(--mist); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--deep); color: #c6d7ec; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 420px at 78% 12%, rgba(61,111,175,.42), transparent 62%);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: minmax(0, 1fr); } }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: #bacee6; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: #06162f; color: #92a8c6; padding: clamp(52px, 6vw, 76px) 0 34px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--mist); }
.footer-about { max-width: 34ch; margin-top: 18px; line-height: 1.65; color: #8fa5c3; }
.footer-col h3 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #92a8c6; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: grid; gap: 9px; font-style: normal; line-height: 1.5; }
/* the two address lines belong together, tighter than the gap between fields */
.footer-address { line-height: 1.55; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(169,196,226,.18); font-size: .875rem; color: #9db3d0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a { color: #c4d5ea; font-weight: 500; }
.footer-legal a:hover { color: #fff; }

/* ---------- legal / long-form pages ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.42rem; margin: 44px 0 14px; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.06rem; margin: 28px 0 10px; }
.legal p, .legal li { font-size: .96rem; }
.legal .meta { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 16px 20px; border-radius: var(--r-sm); background: var(--shell); border: 1px solid var(--line); font-size: .85rem; color: var(--body); margin-bottom: 8px; }
.legal .meta b { color: var(--ink); }
.toc { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--shell); margin: 30px 0 8px; }
.toc-head { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--quiet); margin-bottom: 14px; }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 1.2em; font-size: .89rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc li { margin-bottom: 8px; break-inside: avoid; }

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--deep); color: #c2d4ea; padding: clamp(44px, 5vw, 66px) 0 clamp(40px, 4.5vw, 58px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(720px 400px at 85% 0%, rgba(61,111,175,.38), transparent 62%); }
/* the brand wave, reused from the homepage hero so interior pages read as
   designed rather than as a heading floating on a dark rectangle */
.page-hero::after {
  content: ""; position: absolute; right: -1%; top: 50%; transform: translateY(-50%);
  width: min(520px, 42%); aspect-ratio: 1.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 460' fill='none'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M30 150c130-78 260-78 290 0s160 78 290 0' stroke='%235b8ac8' stroke-width='2.5' opacity='.85'/%3E%3Cpath d='M30 200c130-78 260-78 290 0s160 78 290 0' stroke='%23a9c4e2' stroke-width='2.5' opacity='.62'/%3E%3Cpath d='M30 250c130-78 260-78 290 0s160 78 290 0' stroke='%235b8ac8' stroke-width='2.5' opacity='.45'/%3E%3Cpath d='M30 300c130-78 260-78 290 0s160 78 290 0' stroke='%23a9c4e2' stroke-width='2.5' opacity='.3'/%3E%3Cpath d='M30 350c130-78 260-78 290 0s160 78 290 0' stroke='%235b8ac8' stroke-width='2.5' opacity='.18'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 760px) { .page-hero::after { display: none; } }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
.page-hero p { color: #bacee6; max-width: 52ch; margin-top: 18px; font-size: clamp(1.02rem, 1.5vw, 1.14rem); line-height: 1.6; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: #93aacb; margin-bottom: 18px; }
.crumb a { color: #93aacb; }
.crumb a:hover { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-2 { transition-delay: .07s; }
.reveal-3 { transition-delay: .14s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .band { padding: 12pt 0; }
}

/* ---------- metric strip: real numbers as a visual, no chart library ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 820px) { .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.metric { background: #fff; padding: 28px 24px; }
.metric b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--deep); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-top: 10px; }
.metric small { display: block; font-size: .78rem; color: var(--quiet); margin-top: 5px; line-height: 1.5; }
.band-deep .metrics { background: rgba(169,196,226,.16); border-color: rgba(169,196,226,.16); }
.metrics-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) { .metrics-3 { grid-template-columns: minmax(0,1fr); } }
.band-deep .metric { background: #0d2450; }
.band-deep .metric b { color: #fff; }
.band-deep .metric span { color: var(--mist); }
.band-deep .metric small { color: #9db3d0; }

/* ---------- growth curve: what compounding a bigger share looks like ---------- */
.curve { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.curve-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.curve-head strong { font-size: 1.02rem; color: var(--ink); }
.curve-head span { font-size: .8rem; color: var(--quiet); }
.curve-plot { position: relative; }
.curve-plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.curve-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.5s var(--ease); }
.curve.is-in .curve-line { stroke-dashoffset: 0; }
.curve-line-ours { stroke: var(--deep); }
.curve-line-them { stroke: var(--line-2); }
.curve-fill { fill: url(#curveFill); opacity: 0; transition: opacity 1s var(--ease) .5s; }
.curve.is-in .curve-fill { opacity: 1; }
.curve-axis { font-size: 11px; fill: var(--quiet); font-weight: 600; }
.curve-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .82rem; color: var(--body); }
.curve-key div { display: flex; align-items: center; gap: 8px; }
.curve-key i { width: 16px; height: 3px; border-radius: 2px; background: var(--deep); }
.curve-key .k-them { background: var(--line-2); }
.curve-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .8rem; color: var(--quiet); }

/* ---------- flow: the lifecycle as a visual rail ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; margin-top: 8px; }
@media (max-width: 860px) { .flow { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 0; } }
@media (max-width: 480px) { .flow { grid-template-columns: minmax(0,1fr); gap: 18px 0; } }
.flow-step { position: relative; padding: 0 14px; text-align: center; }
.flow-step::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0; }
.flow-step:first-child::before { left: 50%; }
.flow-step:last-child::before { right: 50%; }
@media (max-width: 860px) { .flow-step::before { display: none; } }
.flow-dot { position: relative; z-index: 1; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line-2); color: var(--ocean);
  display: flex; align-items: center; justify-content: center; font-size: .84rem; font-weight: 700;
  transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease); }
.flow-step.is-in .flow-dot { border-color: var(--deep); background: var(--deep); color: #fff; }
.flow-step strong { display: block; font-size: .93rem; color: var(--ink); }
.flow-step small { display: block; font-size: .8rem; color: var(--quiet); margin-top: 5px; line-height: 1.5; }

/* ---------- coast scene: warm custom illustration, no photography ---------- */
.scene { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.scene svg { display: block; width: 100%; height: auto; }

/* ---------- curve chips + dots: numbers live above the plot, never on it ---------- */
.curve-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.curve-chip {
  flex: 1 1 180px; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--shell);
}
.curve-chip span { font-size: .76rem; font-weight: 600; color: var(--quiet); letter-spacing: .02em; }
.curve-chip b { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.curve-chip.is-ours { background: var(--deep); border-color: var(--deep); }
.curve-chip.is-ours span { color: var(--mist); }
.curve-chip.is-ours b { color: #fff; }
.curve-chip.is-gap { background: #fff; border-color: var(--line-2); }
.curve-chip.is-gap b { color: var(--deep); }
.curve-line-them { stroke: #b9c7dc; stroke-width: 2.5; }
.curve-line-ours { stroke-width: 4; }
.curve-dot { opacity: 0; transition: opacity .5s var(--ease) 1.2s; }
.curve.is-in .curve-dot { opacity: 1; }
.curve-dot-ours { fill: var(--deep); stroke: #fff; stroke-width: 2.5; }
.curve-dot-them { fill: #b9c7dc; stroke: #fff; stroke-width: 2; }

/* ---------- california map: where we work ---------- */
.camap { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 26px; }
.camap svg { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; }
.camap-shape { fill: var(--deep); }
.camap-dot { fill: var(--mist); stroke: #fff; stroke-width: 1.6; }
.camap-hq { fill: #fff; stroke: var(--mist); stroke-width: 2.4; }
.camap-hq-ring { fill: none; stroke: rgba(255,255,255,.65); stroke-width: 1.6; }
.camap-city { fill: #fff; stroke: rgba(169,196,226,.55); stroke-width: 1.1; }
.checks-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.checks-cols li { white-space: nowrap; font-size: .84rem; }
@media (max-width: 640px) { .checks-cols { grid-template-columns: 1fr; white-space: normal; } }

/* request-type chooser (QME vs Expert Witness) */
.type-choice { margin-bottom: 26px; }
.type-choice-q { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--deep); margin-bottom: 12px; }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .type-cards { grid-template-columns: 1fr; } }
.type-card { text-align: left; background: var(--card, #fff); border: 1.5px solid var(--line); border-radius: 12px; padding: 17px 18px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .1s; display: flex; flex-direction: column; gap: 5px; }
.type-card:hover { border-color: var(--wave); box-shadow: var(--shadow); transform: translateY(-1px); }
.type-card.is-active { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(61,111,175,.16); }
.type-card strong { font-size: 1.04rem; color: var(--deep); }
.type-card span { font-size: .89rem; color: var(--muted); line-height: 1.45; }
.form-card.mode-ew .qme-only { display: none; }
.form-card.mode-qme .ew-only { display: none; }

.founder-card { display: flex; align-items: center; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 26px 30px; margin-bottom: clamp(26px, 3vw, 38px); }
.founder-card h2 { margin: 2px 0 7px; }
.founder-line { font-size: 1.02rem; line-height: 1.55; color: var(--body); }
.founder-line-one { white-space: nowrap; }
@media (max-width: 980px) { .founder-line-one { white-space: normal; } }
@media (max-width: 640px) { .founder-card { flex-direction: column; align-items: flex-start; gap: 16px; } }
.headshot { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
