:root {
  --navy: #0a1628;
  --navy-mid: #13233f;
  --blue: #1f6feb;
  --teal: #1aa6a6;
  --teal-soft: #d8f3f1;
  --emerald: #1f9d63;
  --paper: #f5f3ef;
  --white: #ffffff;
  --ink: #182033;
  --muted: #5c6b7e;
  --line: #d9e0ea;
  --shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
  --radius: 14px;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1rem; color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; min-width: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.disclaimer { font-size: .92rem; color: var(--muted); max-width: 70ch; }

/* Utility bar */
.utility-bar {
  background: var(--navy);
  color: #c9d4e5;
  font-size: .82rem;
  font-weight: 600;
}
.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: .45rem 0;
  flex-wrap: wrap;
}
.utility-left, .utility-right { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.utility-bar a { color: #e8eef7; }
.utility-bar a:hover { color: #fff; }
.utility-cta {
  background: var(--teal);
  color: #062428 !important;
  padding: .35rem .7rem;
  border-radius: 8px;
  font-weight: 750;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f5f3ef;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand img { width: 124px; height: auto; }
.site-nav { display: flex; align-items: center; gap: .15rem .7rem; flex-wrap: nowrap; }
.site-nav > a, .dropdown-trigger {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .45rem 0;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.site-nav > a.is-active, .site-nav > a:hover, .dropdown-trigger:hover, .has-dropdown.is-open > .dropdown-trigger { color: var(--blue); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.has-dropdown { position: relative; }
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .45rem;
  display: none;
  z-index: 200;
}
.dropdown-wide { min-width: 280px; max-height: 360px; overflow: auto; }
.has-dropdown.is-open .dropdown { display: grid; }
.dropdown a {
  display: block;
  padding: .65rem .85rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink);
}
.dropdown a:hover { background: var(--teal-soft); color: var(--navy); }
.site-nav > a.btn-primary, .site-nav > a.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: .65rem .95rem !important;
  border-radius: 10px;
  white-space: nowrap;
}
.header-actions-mobile, .nav-sheet-head, .app-tabbar, .nav-backdrop { display: none; }
.site-header, .nav-wrap, .site-nav { overflow: visible; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .9rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  text-align: center;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .dropdown-trigger:focus-visible, .audience-card:focus-visible, .nav-toggle:focus-visible, .icon-btn:focus-visible {
  outline: 3px solid rgba(26,166,166,.45);
  outline-offset: 2px;
}
.btn-primary { background: var(--navy); color: #fff !important; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-accent { background: var(--teal); color: #062428 !important; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff !important;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy) !important;
}
.btn-ghost-dark:hover { background: rgba(10, 22, 40, .04); }
.btn-outline { border-color: var(--navy); color: var(--navy) !important; background: transparent; }
.btn-wide { width: 100%; }

/* Sections */
.section { padding: 5rem 0; }
.section-tint { background: #fff; }
.eyebrow {
  display: inline-block;
  margin: 0 0 .7rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-family: var(--font-display);
}
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }

/* Hero 2027 */
.hero-2027 {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(26, 166, 166, 0.14), transparent 55%),
    linear-gradient(180deg, #0a1628 0%, #13233f 55%, #0f1c33 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-2027 .eyebrow { color: #7fd9d4; }
.hero-2027 h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}
.hero-2027 .lede {
  color: rgba(226, 234, 245, .92);
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.trust-line {
  color: #a9b7cb;
  font-size: .92rem;
  font-weight: 600;
  margin: 0;
}

.leak-map {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.25rem;
  color: #dce6f4;
}
.leak-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.leak-head strong { color: #fff; font-family: var(--font-display); }
.leak-head span { font-size: .8rem; color: #9aabc0; }
.leak-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.leak-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .65rem;
  align-items: center;
  padding: .55rem .65rem;
  border-radius: 10px;
  opacity: .55;
  transition: .25s ease;
}
.leak-steps li.is-active {
  opacity: 1;
  background: rgba(26, 166, 166, .18);
}
.leak-steps span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.leak-steps em { font-style: normal; font-weight: 650; color: #fff; }
.leak-chart { color: var(--teal); }
.leak-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawLine 2.8s ease forwards;
}
.leak-note { margin: .35rem 0 0; font-size: .82rem; color: #9aabc0; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.audience-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  cursor: pointer;
  font: inherit;
  transition: .2s ease;
  min-height: 96px;
}
.audience-card strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: .35rem;
}
.audience-card span { color: var(--muted); font-size: .92rem; }
.audience-card.is-active, .audience-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.audience-card.is-active {
  background: var(--teal-soft);
}
.audience-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.audience-panel h3 {
  font-size: .95rem;
  margin-bottom: .35rem;
}

/* Problem table */
.problem-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.problem-head, .problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
}
.problem-head {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.problem-row { border-top: 1px solid var(--line); }
.problem-row strong { color: var(--navy); }
.problem-row span { color: var(--muted); }

/* Proof */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.proof-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.proof-item span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* Solutions */
.solution-list { display: grid; border-top: 1px solid var(--line); }
.solution-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem .2rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: #fff;
}
.solution-row:hover { background: #fafafa; color: inherit; }
.solution-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.solution-copy { display: grid; gap: .25rem; }
.solution-copy strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.solution-copy span { color: var(--muted); font-size: .95rem; }
.solution-go { color: var(--navy); font-size: 1.2rem; }

.assess-band {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
}
.assess-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.assess-band p { color: #b7c5d8; margin: 0; max-width: 48ch; }

/* Specialty rail */
.specialty-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  padding: .15rem .15rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,166,166,.55) transparent;
}
.specialty-rail::-webkit-scrollbar { height: 6px; }
.specialty-rail::-webkit-scrollbar-thumb {
  background: rgba(26,166,166,.45);
  border-radius: 99px;
}
.specialty-deep {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
}
.specialty-deep h3 { font-size: 1.25rem; }
.specialty-deep p { font-size: .95rem; margin-bottom: .55rem; }
.specialty-deep a { font-weight: 750; color: var(--navy); }
.specialty-rail-hint {
  margin: .35rem 0 0;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.howto-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
}
.howto-card span {
  display: block;
  font-family: var(--font-display);
  color: var(--teal);
  font-weight: 800;
  margin-bottom: .45rem;
}
.howto-notes { margin: 1.5rem 0 0; color: var(--muted); }

.logo-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}
.logo-rail img {
  width: 100%;
  max-height: 42px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
}

.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.review-item {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.review-theme {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: .5rem;
}
.review-item p { color: var(--ink); }
.review-item footer { color: var(--muted); font-size: .88rem; font-weight: 650; }

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.location-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
  color: inherit;
}
.location-card:hover { border-color: var(--teal); color: inherit; }
.location-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: .4rem;
}

.final-cta { background: var(--navy); }
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.final-grid article {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
}
.final-grid h2 { color: #fff; font-size: 1.6rem; }
.final-grid p { color: #b7c5d8; }

/* Inner page bridges */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-mid));
  color: #fff;
  padding: 4.5rem 0 3.25rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.page-hero p { color: rgba(226,234,245,.9); max-width: 52ch; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.media-frame, .split-media {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background: #fff;
  border: 1px solid var(--line);
}
.media-frame img, .split-media img { width: 100%; min-height: 360px; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature-list li {
  position: relative;
  padding: .75rem 0 .75rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .service-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); }
.cta-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.4rem;
}
.specialty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.specialty-card, .specialty-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; display: flex; gap: .65rem; align-items: center; color: var(--navy); font-weight: 700;
}
.area-list, .area-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.area-list a, .area-chips a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .85rem; font-size: .88rem; font-weight: 700; color: var(--navy);
}
.prose { max-width: 760px; }
.section-alt { background: #fff; }
.section-tight { padding: 2.5rem 0; }
.section-action { margin-top: 1.5rem; }

/* Forms */
#assessment { scroll-margin-top: 110px; }
.form-section { padding: 4.5rem 0; }
.form-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: .85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
label { display: grid; gap: .35rem; }
label span { font-size: .8rem; font-weight: 750; color: var(--navy); font-family: var(--font-display); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .85rem .95rem; font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,166,166,.15); }
.form-note { font-size: .82rem; margin: 0; }
.form-bullets { list-style: none; padding: 0; }
.form-bullets li { padding: .35rem 0 .35rem 1.2rem; position: relative; color: var(--ink); font-weight: 650; }
.form-bullets li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; }
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 650; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Assessment wizard */
.assess-wrap { max-width: 760px; margin: 0 auto; }
.assess-progress {
  height: 8px; background: #e6ebe8; border-radius: 99px; overflow: hidden; margin-bottom: 1.25rem;
}
.assess-progress > span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s ease; }
.assess-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow);
}
.assess-card h2 { font-size: 1.55rem; }
.assess-options { display: grid; gap: .65rem; margin: 1rem 0 1.25rem; }
.assess-options label {
  display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.assess-options label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.assess-nav { display: flex; gap: .75rem; flex-wrap: wrap; }
.assess-result { display: none; }
.assess-result.is-visible { display: block; }
.risk-score {
  font-family: var(--font-display); font-size: 3rem; color: var(--navy); font-variant-numeric: tabular-nums; margin: .5rem 0;
}
.phi-notice {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; margin-bottom: 1rem;
}

/* Footer */
.site-footer { background: var(--navy); color: #b7c3d6; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 1.75rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 110px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #8fa0b8; }
.site-footer h3 {
  color: #fff; font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b7c3d6; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-contact { margin-top: 1rem; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.2); padding: 1rem 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; color: #8fa0b8; }

.reveal { opacity: 0; transform: translateY(16px); transition: .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Tablet: comfortable 2-column cards while phone stays single-column */
@media (min-width: 640px) and (max-width: 1120px) {
  .card-grid,
  .proof-grid,
  .howto-grid,
  .review-grid,
  .location-grid,
  .stats,
  .audience-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-rail { grid-template-columns: repeat(3, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  :root { --app-header: 64px; --app-tabbar: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body { font-size: 16px; }
  body.has-app-shell { padding-bottom: calc(var(--app-tabbar) + 8px); }
  .utility-bar { display: none; }
  .header-actions-mobile { display: flex; align-items: center; gap: .45rem; }
  .brand img { width: 108px; }
  .nav-wrap { min-height: 60px; }
  .icon-btn {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    color: var(--navy); background: #fff; border: 1px solid var(--line);
  }
  .nav-toggle {
    display: flex; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  }
  .nav-toggle span { display: block; width: 17px; height: 2px; background: var(--navy); }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(10,22,40,.5); z-index: 1200;
    opacity: 0; pointer-events: none; transition: .25s ease;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .site-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: min(88vw, 360px);
    height: 100dvh;
    max-height: none;
    margin: 0;
    background: #fff;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: calc(.85rem + env(safe-area-inset-top, 0px)) 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: -16px 0 40px rgba(10,22,40,.18);
    flex-wrap: nowrap;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-sheet-head {
    display: flex; align-items: center; justify-content: space-between; padding-bottom: .85rem;
    border-bottom: 1px solid var(--line); margin-bottom: .55rem;
  }
  .nav-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--paper); font-size: 1.1rem; cursor: pointer; }
  .site-nav > a, .dropdown-trigger {
    min-height: 48px; padding: .85rem .65rem; border-radius: 12px; width: 100%; justify-content: space-between;
    font-size: .95rem; white-space: normal;
  }
  .has-dropdown { width: 100%; }
  .has-dropdown::after { display: none; }
  .has-dropdown .dropdown {
    position: static; display: none; box-shadow: none; border: 0; min-width: 0;
    max-height: none; padding: 0 0 .35rem .5rem; background: transparent;
  }
  .has-dropdown.is-open .dropdown { display: grid; }
  .dropdown a { padding: .7rem .75rem; font-size: .9rem; min-height: 44px; display: flex; align-items: center; }
  .nav-cta { width: 100%; text-align: center; margin-top: .5rem; justify-content: center; }
  .app-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    height: var(--app-tabbar); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .app-tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .12rem;
    color: #7b8aa3; font-size: .68rem; font-weight: 750; min-height: 48px;
  }
  .app-tabbar a svg { width: 22px; height: 22px; }
  .app-tabbar a.is-active { color: var(--navy); }
  .app-tabbar .tab-call { transform: translateY(-10px); }
  .tab-call-btn {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(26,166,166,.4);
  }

  /* Universal single-column layouts */
  .hero-grid,
  .audience-grid,
  .proof-grid,
  .howto-grid,
  .location-grid,
  .final-grid,
  .form-layout,
  .footer-grid,
  .split,
  .card-grid,
  .stats,
  .review-grid,
  .problem-head,
  .problem-row,
  .logo-rail,
  .specialty-grid,
  .calc-grid,
  .sample-kpi-row,
  .sample-panels { grid-template-columns: 1fr; }

  .hero-2027 { padding: 2.75rem 0 2.25rem; border-radius: 0 0 24px 24px; }
  .hero-2027 h1 { font-size: clamp(1.85rem, 7.5vw, 2.45rem); max-width: none; }
  .hero-2027 .lede { font-size: 1.05rem; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; min-height: 52px; }

  .page-hero { padding: 2.75rem 0 2.15rem; }
  .page-hero h1 { max-width: none; font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .page-hero p { max-width: none; }

  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .section-head h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); }
  .form-section { padding: 2.75rem 0 calc(2.75rem + 8px); }

  .assess-band { flex-direction: column; align-items: stretch; padding: 1.35rem; gap: 1rem; }
  .assess-band .btn { width: 100%; }

  .audience-card { min-height: 88px; }
  .audience-panel { grid-template-columns: 1fr; gap: 1rem; }
  .audience-panel .btn { width: 100%; justify-self: stretch; }

  .solution-row {
    grid-template-columns: 48px 1fr;
    gap: .75rem;
    padding: 1rem .1rem;
  }
  .solution-go { grid-column: 2; justify-self: start; }

  .media-frame, .split-media { min-height: 0; }
  .media-frame img, .split-media img { min-height: 200px; max-height: 260px; object-fit: cover; }

  .cta-strip { flex-direction: column; align-items: stretch; gap: .85rem; }
  .cta-strip .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  input, select, textarea, .calc-card input, .ehr-filters select {
    font-size: 16px; /* prevent iOS zoom */
    min-height: 48px;
  }
  textarea { min-height: 120px; }
  .btn { min-height: 52px; }
  .form-panel .btn-wide,
  .assess-nav .btn,
  .assess-result .btn,
  .cta-strip .btn,
  .assess-band .btn { width: 100%; }
  .assess-nav { flex-direction: column; }
  .assess-card { padding: 1.15rem; }
  .assess-card h2 { font-size: 1.3rem; }
  .risk-score { font-size: 2.4rem; }

  .specialty-rail-hint { display: block; }
  .specialty-deep { flex: 0 0 min(260px, 78vw); }
  .area-list a, .area-chips a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .sample-dash { padding: 1rem; border-radius: 14px; }
  .sample-kpi-row strong { font-size: 1.35rem; }
  .sample-dash-head { flex-wrap: wrap; }

  .calc-card { padding: 1.1rem; }
  .card, .service-tile, .howto-card, .location-card, .proof-item, .review-item { padding: 1rem; }

  .site-footer { padding-top: 2.5rem; padding-bottom: .5rem; }
  .footer-grid { gap: 1.5rem; }
  .footer-brand p { font-size: .95rem; }

  .prose { max-width: none; }

  #assessment, #solutions, #audience, #problems, #proof, #how, #specialties, #main {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.75rem, var(--container)); }
  .utility-inner { justify-content: center; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .problem-head, .problem-row { padding: .9rem 1rem; gap: .45rem; }
  .problem-row strong, .problem-row span { font-size: .95rem; }
  .logo-rail { grid-template-columns: repeat(2, 1fr); gap: .75rem; padding: 1rem; }
  .logo-rail img { max-height: 36px; }
  .final-grid article { padding: 1.15rem; }
  .final-grid h2 { font-size: 1.35rem; }
  .final-grid .btn { width: 100%; }
  .trust-line { font-size: .88rem; line-height: 1.45; }
  .leak-map { padding: 1rem; }
  .leak-head { flex-direction: column; gap: .25rem; }
  .notice-banner { font-size: .92rem; padding: .85rem 1rem; }
  .card-num { margin-bottom: .35rem; }
  .ehr-filters { width: 100%; }
  .ehr-filters label { width: 100%; display: grid; gap: .35rem; }
  .actions-stack {
    display: flex;
    flex-direction: column;
    gap: .65rem;
  }
  .actions-stack .btn { width: 100%; }
  .page-hero { padding: 2.35rem 0 1.85rem; }
  .nav-wrap { gap: .65rem; }
}

/* 2027 feature surfaces */
.notice-banner {
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  border-left: 4px solid #c9852a;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  color: #4a3a1f;
  line-height: 1.55;
}
.sample-dash {
  margin-top: 1.5rem;
  background: linear-gradient(160deg, #0a1628 0%, #13253f 55%, #0f2a36 100%);
  color: #e8eef7;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(10, 22, 40, .28);
}
.sample-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.sample-dash-head span { display: block; opacity: .7; font-size: .9rem; margin-top: .2rem; }
.sample-badge {
  background: #1aa6a6;
  color: #041018;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .35rem .65rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.sample-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
.sample-kpi-row article {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1rem;
}
.sample-kpi-row span { display: block; font-size: .78rem; opacity: .75; }
.sample-kpi-row strong { display: block; font-size: 1.55rem; margin: .35rem 0; font-family: Manrope, sans-serif; }
.sample-kpi-row small { opacity: .6; font-size: .75rem; }
.sample-panels {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  margin-top: 1rem;
}
.sample-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.sample-panel h3 { margin: 0 0 .85rem; font-size: 1.05rem; color: #fff; }
.sample-panel ul { list-style: none; margin: 0; padding: 0; }
.sample-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
}
.sample-queue li { display: block; }
.sample-note { margin: .85rem 0 0; font-size: .8rem; opacity: .65; }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
}
.calc-card h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.calc-card label {
  display: grid;
  gap: .35rem;
  margin: .75rem 0;
  font-size: .88rem;
  font-weight: 600;
  color: #3a4a63;
}
.calc-card input, .ehr-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .7rem;
  font: inherit;
}
.calc-result {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
.specialty-rail-hint { display: none; margin: .35rem 0 0; font-size: .82rem; color: var(--muted); font-weight: 600; }
.card img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: .75rem;
  background: var(--paper);
  border-radius: 10px;
  padding: .5rem;
}
.more { font-weight: 750; color: var(--navy); }
.more:hover { color: var(--teal); }
.cta-strip .btn { flex-shrink: 0; }
.actions-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* Mobile overrides must stay last so feature-surface grids don't win */
@media (max-width: 1120px) {
  .sample-kpi-row,
  .sample-panels,
  .calc-grid { grid-template-columns: 1fr !important; }
  .specialty-rail-hint { display: block; }
  .sample-dash { padding: 1rem; border-radius: 14px; }
  .calc-card { padding: 1.1rem; }
  .cta-strip { flex-direction: column; align-items: stretch; }
  .cta-strip .btn,
  .actions-stack .btn,
  .actions-stack { width: 100%; }
  .actions-stack { flex-direction: column; }
  .media-frame img, .split-media img { min-height: 200px; max-height: 260px; }
}

@media (max-width: 560px) {
  .sample-kpi-row strong { font-size: 1.3rem; }
  .sample-panel li { flex-direction: column; gap: .2rem; }
}
