/* HOA Assurance — site stylesheet
   Palette, type, and the grid graphic follow the Brand Style Guide v1 (draft).
   Brass is reserved for the grand-total square and moments where something "ties out". */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* Harbor palette */
  --navy: #14294A;
  --teal: #2B6F77;
  --teal-light: #8FB7BC;   /* on navy only */
  --brass: #A8834A;        /* graphics and 18pt+ text only */
  --paper: #F6F4EF;
  --slate: #5B6573;
  --rule: #D9D5CC;
  --ink: #1F2A3A;
  /* Tints used by the kit's report cover and website mockup */
  --teal-tint: #E7EEEF;
  --navy-tint: #DCE1E9;
  --on-navy: #DCE3EC;
  --on-navy-muted: #A9B7CB;
  --on-navy-line: rgba(255, 255, 255, .14);
  --field-line: #7A838F;
  --error: #B4412F;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 80px);
  --max: 1280px;
  --section: clamp(64px, 9vw, 120px);
  --header-h: 80px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--teal-tint); color: var(--navy); }
main:focus { outline: none; }
address { font-style: normal; }
strong, b { font-weight: 700; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--teal);
}
.display { font-size: clamp(2.5rem, 1.5rem + 3.9vw, 4rem); font-weight: 560; line-height: 1.07; letter-spacing: -.012em; }
.h1 { font-size: clamp(2.25rem, 1.55rem + 2.7vw, 3.5rem); line-height: 1.08; letter-spacing: -.008em; }
.h2 { font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem); line-height: 1.12; }
.h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; }
.h4 { font-size: 1.25rem; line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.04rem + .4vw, 1.3125rem); line-height: 1.55; max-width: 40em; }
.muted { color: var(--slate); }
.fine { font-size: .875rem; line-height: 1.55; color: var(--slate); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.prose { max-width: 68ch; }
.prose h2, .prose h3 { margin: 1.8em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p + ul, .prose ul + p { margin-top: 16px; }

.link-arrow {
  display: inline-flex; align-items: baseline; gap: .4em;
  font-weight: 700; color: var(--navy); text-decoration: none;
  border-bottom: 1.5px solid var(--rule); padding-bottom: 2px;
  transition: border-color .15s;
}
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--navy); border-color: var(--navy); }
.link-arrow:hover::after { transform: translateX(3px); }
.on-navy .link-arrow { color: #fff; border-color: rgba(255, 255, 255, .3); }
.on-navy .link-arrow:hover { border-color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--rule { border-top: 1px solid var(--rule); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 48rem; margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section-foot { margin-top: clamp(32px, 4vw, 48px); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy .eyebrow { color: var(--teal-light); }
.on-navy a:not(.btn) { color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack > * + * { margin-top: 20px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font: 700 1rem/1.2 var(--sans);
  border: 1.5px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1F3A64; color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--paper); color: var(--navy); }
.btn--ghost { border-color: #8FA3BF; color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { flex: none; display: block; padding-block: 12px; }
.brand img { height: 56px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: block; padding: 8px 0;
  font-weight: 600; font-size: 1rem; color: var(--navy); text-decoration: none;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: none; }
.site-header__actions { display: flex; align-items: center; gap: 22px; }
.header-phone { font-weight: 600; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--teal); }
.site-header__actions .btn[aria-current="page"] { background: var(--teal); }

.nav-toggle {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  padding: 10px 4px 10px 12px; background: none; border: 0; cursor: pointer;
  font: 700 1rem var(--sans); color: var(--navy);
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--navy);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--rule); background: #fff; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0 20px; }
.mobile-nav li a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font: 600 1.375rem/1.25 var(--serif); color: var(--navy); text-decoration: none;
}
.mobile-nav li a[aria-current="page"] { color: var(--teal); }
.mobile-nav__call { margin: 20px 0 28px; color: var(--slate); }
.mobile-nav__call a { font-weight: 700; color: var(--navy); }

@media (max-width: 1220px) { .header-phone { display: none; } }
@media (max-width: 1040px) {
  .primary-nav, .site-header__actions { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
}
@media (min-width: 1041px) { .mobile-nav { display: none !important; } }

/* ---------- Cross-foot grid graphic ----------
   Detail cells (line items), merged totals column and row, one brass grand total.
   Never nine equal squares; the brass square always sits bottom right. */
.xfoot {
  --s: 400px;
  display: grid; flex: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: calc(var(--s) / 14);
  width: var(--s); height: var(--s);
}
.xfoot > span { display: block; position: relative; }
.xfoot__d--a { grid-area: 1 / 1; }
.xfoot__d--b { grid-area: 1 / 2; }
.xfoot__d--c { grid-area: 2 / 1; }
.xfoot__d--d { grid-area: 2 / 2; }
.xfoot__col { grid-area: 1 / 3 / 3 / 4; }
.xfoot__row { grid-area: 3 / 1 / 4 / 3; }
.xfoot__gt { grid-area: 3 / 3; background: var(--brass); }

.xfoot--navy .xfoot__d { background: rgba(143, 183, 188, .16); }
.xfoot--navy .xfoot__col, .xfoot--navy .xfoot__row { background: rgba(255, 255, 255, .13); }
.xfoot--tint .xfoot__d { background: var(--teal-tint); }
.xfoot--tint .xfoot__col, .xfoot--tint .xfoot__row { background: var(--navy-tint); }
.xfoot--color .xfoot__d { background: var(--teal); }
.xfoot--color .xfoot__col, .xfoot--color .xfoot__row { background: var(--navy); }

/* Assembles once: line items, then footing, cross-footing, and the grand total. */
@media (prefers-reduced-motion: no-preference) {
  .xfoot--animate .xfoot__d { animation: xf-cell .55s var(--ease) both; }
  .xfoot--animate .xfoot__d--a { animation-delay: .2s; }
  .xfoot--animate .xfoot__d--b { animation-delay: .32s; }
  .xfoot--animate .xfoot__d--c { animation-delay: .44s; }
  .xfoot--animate .xfoot__d--d { animation-delay: .56s; }
  .xfoot--animate .xfoot__col { transform-origin: top; animation: xf-col .6s var(--ease) .85s both; }
  .xfoot--animate .xfoot__row { transform-origin: left; animation: xf-row .6s var(--ease) 1.05s both; }
  .xfoot--animate .xfoot__gt { animation: xf-gt .6s var(--ease) 1.55s both; }
}
@keyframes xf-cell { from { opacity: 0; transform: scale(.82); } }
@keyframes xf-col { from { transform: scaleY(0); } }
@keyframes xf-row { from { transform: scaleX(0); } }
@keyframes xf-gt { from { opacity: 0; transform: translate(-22%, -22%) scale(.6); } }

/* Progress version (proposal form): each completed part fills a line item;
   when all four are complete the totals draw in and the grand total lands. */
.xfoot--progress .xfoot__d { background: var(--teal-tint); transition: background-color .45s var(--ease); }
.xfoot--progress .xfoot__d.is-on { background: var(--teal); }
.xfoot--progress .xfoot__col, .xfoot--progress .xfoot__row { background: var(--navy-tint); }
.xfoot--progress .xfoot__gt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule); }
.xfoot--progress .xfoot__col::after,
.xfoot--progress .xfoot__row::after,
.xfoot--progress .xfoot__gt::after { content: ""; position: absolute; inset: 0; }
.xfoot--progress .xfoot__col::after { background: var(--navy); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.xfoot--progress .xfoot__row::after { background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease) .15s; }
.xfoot--progress .xfoot__gt::after { background: var(--brass); opacity: 0; transform: translate(-22%, -22%) scale(.6); transition: opacity .3s .55s, transform .5s var(--ease) .55s; }
.xfoot--progress.is-tied .xfoot__col::after,
.xfoot--progress.is-tied .xfoot__row::after { transform: none; }
.xfoot--progress.is-tied .xfoot__gt::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .xfoot--progress *, .xfoot--progress *::after { transition: none !important; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
  padding-block: clamp(64px, 9vw, 128px) clamp(56px, 7.5vw, 104px);
}
.hero h1 { margin: 0 0 26px; }
.hero__sub { font-size: clamp(1.125rem, 1rem + .55vw, 1.3125rem); line-height: 1.55; color: var(--on-navy); max-width: 34em; }
.hero .actions { margin-top: 40px; }
.hero__art { justify-self: end; }
.hero__art .xfoot { --s: clamp(240px, 30vw, 420px); }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 12px 44px;
  list-style: none; margin: 0; padding: 22px 0 26px;
  border-top: 1px solid var(--on-navy-line);
  font-size: .9375rem; color: var(--on-navy-muted);
}
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts li::before { content: ""; width: 7px; height: 7px; background: var(--teal-light); flex: none; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { order: -1; justify-self: start; }
  .hero__art .xfoot { --s: 112px; }
}
@media (max-width: 520px) {
  .hero .actions .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 10px; }
}

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-hero__inner { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6.5vw, 96px); }
.page-hero__text { position: relative; z-index: 1; max-width: 44rem; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .xfoot { --s: clamp(220px, 27vw, 380px); position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.page-hero .actions { margin-top: 32px; }
@media (max-width: 1100px) { .page-hero .xfoot { right: calc(var(--s) * -.35); opacity: .7; } }
@media (max-width: 860px) { .page-hero .xfoot { display: none; } }

/* ---------- Service summaries ---------- */
.svc { display: flex; flex-direction: column; border-top: 3px solid var(--navy); padding-top: 22px; }
.svc .eyebrow { margin-bottom: 10px; }
.svc h3 { margin-bottom: 12px; }
.svc p { color: #3A4556; margin-bottom: 24px; }
.svc .link-arrow { margin-top: auto; align-self: flex-start; }
.also {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule);
  color: var(--slate);
}
.also p { max-width: 62ch; }

/* ---------- Service levels ---------- */
.level { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); padding: 40px 0 56px; border-top: 3px solid var(--navy); }
.level:last-child { padding-bottom: 0; }
.level__head .eyebrow { margin-bottom: 12px; }
.level__body .lead { margin-bottom: 18px; color: var(--navy); }
.level__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.level__facts dt { margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.level__facts dd { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.45; }
@media (max-width: 860px) {
  .level { grid-template-columns: 1fr; padding-bottom: 40px; }
  .level__facts { grid-template-columns: 1fr; }
}

/* ---------- Key figures ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.figure { border-top: 3px solid var(--navy); padding-top: 18px; }
.figure__n { display: block; font: 600 clamp(3rem, 2.2rem + 3vw, 4.5rem)/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.figure__n small { font-size: .35em; font-weight: 600; letter-spacing: .02em; margin-left: .2em; color: var(--teal); }
.figure h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.figure p { color: #3A4556; max-width: 46ch; }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillar { border-top: 1px solid var(--rule); padding-top: 24px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: #3A4556; }
.pillar__mark { width: 44px; height: 44px; margin-bottom: 24px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.table th {
  padding: 12px 20px 12px 0; vertical-align: bottom; text-align: left;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate);
  border-bottom: 1.5px solid var(--navy);
}
.table td { padding: 16px 20px 16px 0; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tbody th {
  padding: 16px 20px 16px 0; vertical-align: top;
  font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--navy);
  border-bottom: 1px solid var(--rule);
}
.table caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: .875rem; color: var(--slate); }
.table--compare td, .table--compare thead th:not(:first-child) { text-align: center; padding-inline: 8px; }
.table--compare thead th:not(:first-child) { color: var(--navy); }
.table--compare tbody tr:last-child th, .table--compare tbody tr:last-child td { border-bottom: 1.5px solid var(--navy); font-weight: 700; color: var(--navy); }
.mark-yes, .mark-no { display: inline-block; vertical-align: middle; }
.mark-yes { width: 18px; height: 18px; color: var(--teal); }
.mark-no { width: 12px; height: 1.5px; background: var(--field-line); }
.table--compare { min-width: 640px; }

/* Stacked table on small screens */
@media (max-width: 720px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack tbody th { display: block; width: 100%; }
  .table--stack tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .table--stack tbody th, .table--stack td { padding: 0; border: 0; }
  .table--stack td { margin-top: 10px; }
  .table--stack td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  }
}

/* ---------- Report finder ---------- */
.finder { border: 1px solid var(--rule); background: #fff; }
.finder__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.finder__controls { padding: clamp(24px, 3vw, 36px); background: var(--paper); border-right: 1px solid var(--rule); }
.finder__result { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.finder__table { padding: 8px clamp(24px, 3vw, 36px) clamp(24px, 3vw, 32px); border-top: 1px solid var(--rule); }
.finder .field { margin-bottom: 22px; }
.finder .field:last-child { margin-bottom: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--navy); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 12px 10px; text-align: center; font-weight: 600; color: var(--navy); cursor: pointer; line-height: 1.25; transition: background-color .15s, color .15s; }
.seg label + input + label { border-left: 1.5px solid var(--navy); }
.seg input:checked + label { background: var(--navy); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: -5px; }
.money { position: relative; }
.money__sign { position: absolute; left: 15px; top: 50%; transform: translateY(-52%); font-size: 1.25rem; color: var(--slate); pointer-events: none; }
.money .input { padding-left: 32px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; }
.finder__label { margin-bottom: 8px; }
.finder__answer { font: 600 clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem)/1.15 var(--serif); color: var(--navy); text-wrap: balance; }
.finder__answer.is-empty { color: var(--slate); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.finder__cite { margin-top: 10px; font-size: .9375rem; color: var(--slate); }
.finder__note { margin-top: 16px; max-width: 52ch; }
.finder__cta { margin-top: auto; padding-top: 24px; }

.scale { margin-top: 28px; }
.scale__labels, .scale__ticks { display: grid; grid-template-columns: repeat(4, 1fr); font-size: .8125rem; color: var(--slate); }
.scale__labels { margin-bottom: 8px; font-weight: 600; }
.scale__labels span { padding-right: 6px; line-height: 1.25; }
.scale__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 10px; }
.scale__track span { background: var(--navy-tint); transition: background-color .3s; }
.scale__track span.is-on { background: var(--teal); }
.scale__marker {
  position: absolute; top: -7px; left: calc(var(--pos, 0) * 100%); width: 3px; height: 24px; margin-left: -1.5px;
  background: var(--navy); opacity: 0; transition: left .45s var(--ease), opacity .2s;
}
.scale.has-value .scale__marker { opacity: 1; }
.scale__ticks { margin-top: 8px; font-variant-numeric: tabular-nums; }
.scale__ticks span { justify-self: start; transform: translateX(-50%); }
.scale__ticks span:first-child { transform: none; }
.tier-table tr { transition: background-color .25s; }
.tier-table tr.is-match { background: var(--teal-tint); }
.tier-table tr.is-match td:first-child { box-shadow: inset 4px 0 0 var(--teal); padding-left: 16px; }
.tier-table td:first-child { transition: padding-left .25s var(--ease); }
@media (max-width: 900px) {
  .finder__top { grid-template-columns: 1fr; }
  .finder__controls { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 480px) { .scale__labels { font-size: .75rem; } }

/* ---------- Schedule (engagement timeline) ---------- */
.schedule { --months: 7; display: grid; grid-template-columns: minmax(200px, 1.25fr) repeat(var(--months), minmax(0, 1fr)); }
.schedule__rows { display: contents; list-style: none; }
.schedule__head, .schedule__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.schedule__head span {
  padding: 0 0 12px 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.schedule__head span:first-child { padding-left: 0; }
.schedule__row { position: relative; align-items: center; min-height: 68px; border-top: 1px solid var(--rule); }
.schedule__row:last-child { border-bottom: 1.5px solid var(--navy); }
/* month gridlines and the three deadline lines (Dec 31, Mar 31, Apr 30) */
.schedule__row::before, .schedule__row::after { content: ""; grid-column: 2 / -1; grid-row: 1; align-self: stretch; }
.schedule__row::before { background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px calc(100% / var(--months))); }
.schedule__row::after {
  background:
    linear-gradient(to right, transparent calc(300% / 7 - 1px), var(--navy) calc(300% / 7 - 1px) calc(300% / 7 + 1px), transparent 0),
    linear-gradient(to right, transparent calc(600% / 7 - 1.5px), var(--brass) calc(600% / 7 - 1.5px) calc(600% / 7 + 1.5px), transparent 0),
    linear-gradient(to right, transparent calc(100% - 2px), var(--slate) calc(100% - 2px));
  pointer-events: none;
}
.schedule__label { grid-column: 1; grid-row: 1; padding: 14px 24px 14px 0; font-weight: 600; color: var(--navy); line-height: 1.3; }
.schedule__label small { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; color: var(--slate); }
.schedule__bar { grid-row: 1; z-index: 1; height: 16px; margin-inline: 4px; border-radius: 2px; background: var(--navy); }
.schedule__bar--assoc { background: var(--teal); }
.schedule__bar--window { background: repeating-linear-gradient(135deg, var(--teal) 0 2px, #fff 2px 6px); box-shadow: inset 0 0 0 1.5px var(--teal); }
.schedule__when { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 22px 0 0; padding: 0; font-size: .9375rem; color: var(--slate); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { flex: none; display: inline-block; }
.legend .k-assoc { width: 24px; height: 10px; background: var(--teal); }
.legend .k-cpa { width: 24px; height: 10px; background: var(--navy); }
.legend .k-window { width: 24px; height: 10px; background: repeating-linear-gradient(135deg, var(--teal) 0 2px, #fff 2px 6px); box-shadow: inset 0 0 0 1.5px var(--teal); }
.legend .k-line { width: 3px; height: 18px; background: var(--navy); }
.legend .k-line--brass { background: var(--brass); }
.legend .k-line--slate { background: var(--slate); width: 2px; }
@media (max-width: 760px) {
  .schedule { display: block; }
  .schedule__head { display: none; }
  .schedule__row { display: block; min-height: 0; padding: 14px 0 14px 16px; border-top: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--navy); margin-top: 8px; }
  .schedule__row--assoc { box-shadow: inset 3px 0 0 var(--teal); }
  .schedule__row::before, .schedule__row::after, .schedule__bar { display: none; }
  .schedule__label { padding: 0; }
  .schedule__when { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; margin-top: 4px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
}

/* ---------- Ordered stages, steps ---------- */
.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stages > li { counter-increment: stage; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.stages > li::before { content: counter(stage); font: 600 2rem/1 var(--serif); color: var(--teal); font-variant-numeric: lining-nums; }
.stages .eyebrow { margin-bottom: 6px; }
.stages h3 { margin-bottom: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 12px; font: 600 2.25rem/1 var(--serif); color: var(--teal); font-variant-numeric: lining-nums; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: #3A4556; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); }
.ticks li:first-child { border-top: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 16px; border: 1.5px solid var(--navy); }
.dash { list-style: none; padding: 0; margin: 0; }
.dash li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule); }
.dash li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1.5px; background: var(--teal); }
.part-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1.5px solid var(--navy); }
.part-head h3 { margin-top: 6px; }
.part-head p { margin-top: 8px; color: var(--slate); font-size: .9375rem; }

/* ---------- Two-chapter comparison ---------- */
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.chapter { padding: 32px clamp(0px, 3vw, 40px) 8px 0; }
.chapter + .chapter { padding: 32px 0 8px clamp(24px, 3vw, 40px); border-left: 1px solid var(--rule); }
.chapter h3 { margin-bottom: 4px; }
.chapter .eyebrow { margin-bottom: 18px; color: var(--slate); }
@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; }
  .chapter + .chapter { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ---------- Notes, FAQ ---------- */
.note { background: var(--paper); border-left: 3px solid var(--brass); padding: 18px 22px; }
.section--paper .note { background: #fff; }
.note p { max-width: 70ch; }
.faq { border-top: 1.5px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 52px 22px 0;
  font: 600 1.25rem/1.35 var(--serif); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--navy);
  transition: transform .25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--teal); }
.faq__body { padding: 0 0 26px; max-width: 68ch; color: #3A4556; }

/* ---------- People, memberships ---------- */
.signature { border-top: 3px solid var(--navy); padding-top: 24px; }
.signature__name { font: 600 clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem)/1.1 var(--serif); color: var(--navy); }
.signature__role { margin-top: 10px; color: var(--slate); }
.signature__portrait { margin-top: 28px; width: min(100%, 320px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.credentials { margin: 32px 0 0; border-top: 1px solid var(--rule); }
.credentials dt { padding-top: 16px; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.credentials dd { margin: 4px 0 16px; }
.credentials dd + dt { border-top: 1px solid var(--rule); }
.memberships { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.memberships li { border-top: 1px solid var(--rule); padding-top: 16px; }
.memberships b { display: block; font: 600 1.5rem/1.2 var(--serif); color: var(--navy); }
.memberships span { display: block; margin-top: 4px; font-size: .9375rem; color: var(--slate); }
@media (max-width: 640px) { .memberships { grid-template-columns: 1fr; } }

.anatomy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.anatomy .xfoot { --s: clamp(180px, 22vw, 260px); }
.anatomy dl { margin: 0; }
.anatomy dt { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.anatomy dt i { width: 14px; height: 14px; flex: none; }
.anatomy dd { margin: 4px 0 18px 26px; color: #3A4556; }
@media (max-width: 720px) { .anatomy { grid-template-columns: 1fr; } }

/* ---------- Closing band and footer ---------- */
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px 64px; align-items: end; padding-block: clamp(64px, 8vw, 112px); }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 38em; }
.cta-band__side { display: grid; gap: 14px; justify-items: start; }
.cta-band__call { font-size: .9375rem; color: var(--on-navy-muted); }
.cta-band__call a { font-weight: 700; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; align-items: start; } }

.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .9375rem; }
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 40px 48px; padding-block: 72px 56px; border-top: 1px solid var(--on-navy-line);
}
.site-footer__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 30em; margin-bottom: 24px; }
.site-footer h2 { margin-bottom: 16px; font: 700 .8125rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):hover { text-decoration: underline; }
.site-footer address { line-height: 1.7; color: var(--on-navy); }
.site-footer__hours { margin-top: 14px; }
.site-footer__legal { display: grid; gap: 8px; padding-block: 24px 40px; border-top: 1px solid var(--on-navy-line); font-size: .8125rem; color: #8FA3BF; }
.site-footer__legal p { max-width: 110ch; }
.brass-mark { display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--brass); }
.site-footer :focus-visible { outline-color: var(--teal-light); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 26px; }
.field__label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--navy); }
.field__opt { margin-left: 6px; font-weight: 400; color: var(--slate); }
.field__hint { margin: -2px 0 12px; max-width: 62ch; font-size: .9375rem; line-height: 1.5; color: var(--slate); }
.field__error { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; font-size: .9375rem; font-weight: 700; color: var(--error); }
.field__error::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--error); transform: translateY(-1px); }
.field.has-error { padding-left: 16px; box-shadow: inset 3px 0 0 var(--error); }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--field-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314294A' stroke-width='1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 111, 119, .22); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--error); }
.input--short { max-width: 14rem; }
.row { display: grid; gap: 16px; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--addr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.row--date { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr); max-width: 28rem; }
.row .field { margin-bottom: 0; }
.sublabel { display: block; margin-bottom: 6px; font-size: .9375rem; color: var(--slate); }
.stack-sm > * + * { margin-top: 16px; }
@media (max-width: 600px) {
  .row--2, .row--addr { grid-template-columns: 1fr; }
}

.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--inline { grid-template-columns: repeat(2, minmax(0, 9rem)); }
@media (max-width: 600px) { .choices--2, .choices--3 { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; cursor: pointer; line-height: 1.4;
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius);
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--field-line); }
.choice input {
  appearance: none; flex: none; display: grid; place-content: center;
  width: 20px; height: 20px; margin: 1px 0 0;
  background: #fff; border: 1.5px solid var(--field-line); border-radius: 50%;
}
.choice input[type="checkbox"] { border-radius: 2px; }
.choice input:checked { border-color: var(--navy); background: var(--navy); }
.choice input[type="radio"]:checked { box-shadow: inset 0 0 0 4px #fff; }
.choice input[type="checkbox"]:checked::before {
  content: ""; width: 10px; height: 6px; margin-top: -3px;
  border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.choice input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--navy); background: #F2F4F7; }
.choice__other { margin-top: 10px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.error-summary { margin-bottom: 40px; padding: 22px 24px; border: 2px solid var(--error); background: #fff; }
.error-summary h2 { margin-bottom: 10px; font-size: 1.25rem; }
.error-summary ul { margin: 0; padding-left: 1.1em; }
.error-summary li { margin: 4px 0; }
.error-summary a { color: var(--error); font-weight: 700; }
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 3px; }

/* ---------- Proposal page ---------- */
.proposal-section { padding-top: clamp(24px, 3vw, 40px); }
.proposal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.form-part { margin: 0 0 64px; padding: 24px 0 0; border: 0; border-top: 3px solid var(--navy); min-width: 0; }
/* float keeps the legend in normal flow instead of sitting on the fieldset border */
.form-part__legend { float: left; width: 100%; padding: 0; margin: 0 0 30px; }
.form-part__legend + * { clear: both; }
.form-part__legend .eyebrow { margin-bottom: 8px; color: var(--slate); }
.form-part__legend .h3 { display: block; font-family: var(--serif); font-weight: 600; color: var(--navy); }
.form-part__legend:has(+ .form-part__intro) { margin-bottom: 12px; }
.form-part__intro { margin: 0 0 30px; color: var(--slate); max-width: 60ch; }
.stack-sm > .field { margin-bottom: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { padding-top: 28px; border-top: 1.5px solid var(--navy); }
.form-submit p { margin-top: 16px; max-width: 62ch; }
.form-fail { margin-bottom: 20px; }

.tally { position: sticky; top: calc(var(--header-h) + 32px); padding: 28px; background: var(--paper); border: 1px solid var(--rule); }
.tally .eyebrow { margin-bottom: 18px; color: var(--slate); }
.tally .xfoot { --s: 128px; margin-bottom: 26px; }
.tally__rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--navy); }
.tally__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.tally__rows a { color: var(--navy); font-weight: 600; text-decoration: none; }
.tally__rows a:hover { text-decoration: underline; }
.tally__count { color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tally__rows li.is-done .tally__count { color: var(--teal); font-weight: 700; }
.tally__status { margin: 18px 0 20px; font-weight: 700; color: var(--navy); }
.tally__call { margin-top: 18px; font-size: .875rem; color: var(--slate); }
.tally__call a { color: var(--navy); font-weight: 700; }
@media (max-width: 1000px) {
  .proposal { grid-template-columns: 1fr; }
  .tally {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto;
    display: flex; align-items: center; gap: 14px;
    padding: 10px var(--gutter); border: 0; border-top: 1px solid var(--rule);
    background: rgba(246, 244, 239, .97);
  }
  .tally .eyebrow, .tally__rows, .tally__call { display: none; }
  .tally .xfoot { --s: 34px; margin: 0; }
  .tally__status { flex: 1; margin: 0; font-size: .9375rem; line-height: 1.3; }
  .tally .btn { padding: 10px 16px; }
  .page-proposal .site-footer { padding-bottom: 64px; }
}
@media (max-width: 400px) { .tally .btn { display: none; } }

.form-success { padding: clamp(28px, 4vw, 48px); background: var(--paper); border-top: 3px solid var(--navy); }
.form-success:focus { outline: none; }
.form-success .xfoot { --s: 72px; margin-bottom: 28px; }
.form-success h2 { margin-bottom: 16px; }
.form-success p { max-width: 60ch; }
.form-success .note { margin-top: 24px; background: #fff; }

/* ---------- 404 ---------- */
.notfound { min-height: 56vh; display: grid; align-content: center; }

/* ---------- Print (the preparation page doubles as a printable guide) ---------- */
@media print {
  @page { margin: .6in; }
  body { font-size: 10.5pt; color: #000; }
  .site-header, .site-footer, .skip-link, .cta-band, .no-print, .page-hero .xfoot, .tally { display: none !important; }
  .page-hero, .section--paper { background: none !important; }
  .section { padding-block: 18pt; }
  .page-hero__inner { padding-block: 0 12pt; }
  a { color: inherit; text-decoration: none; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) > .faq__body { display: block; }
  .schedule__row, .stages > li, .table tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
