/* ==========================================================================
   Brown Compass Group — site.css
   Paper First, brand specification v1. Light only; no dark theme by design.
   Order: fonts → tokens → reset → layout → type → components → motion → print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted WOFF2, latin subset, same origin. No CDN request.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900; /* variable wght axis; site uses 400 / 500 / 600 */
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens — palette, type, shape, motion. Taken from brand spec v1.
   -------------------------------------------------------------------------- */

:root {
  /* Palette */
  --paper: #f7f5f1;
  --card: #ffffff;
  --rule: #e2ded6;
  --ink: #1a1d23;
  --body: #3a3e46;
  --muted: #6b7280;
  --muted-dim: #9aa0ab;
  --navy: #1f3a5f;
  --navy-deep: #16243b;
  --navy-hover: #16243b;
  --bronze: #b5793a;
  --bronze-light: #c9903f;
  --flag: #a8443c;
  --sage: #4f7a6a;

  /* Reverse-ground text (footer only) */
  --reverse-body: #93a2ba;
  --reverse-link: #c3cede;

  /* Tints — derived, never hand-picked */
  --navy-07: rgba(31, 58, 95, 0.07);
  --navy-06: rgba(31, 58, 95, 0.06);
  --navy-20: rgba(31, 58, 95, 0.2);
  --navy-ring: rgba(31, 58, 95, 0.14);
  --flag-10: rgba(168, 68, 60, 0.1);
  --bronze-12: rgba(181, 121, 58, 0.12);
  --sage-12: rgba(79, 122, 106, 0.12);

  /* Type */
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Shape — 8px base grid */
  --r-card: 10px;
  --r-control: 6px;
  --r-pill: 999px;
  --page-max: 1060px;
  --prose-max: 720px;
  --gutter: 28px;
  --header-h: 66px;

  /* Motion */
  --ease-enter: cubic-bezier(0.2, 0.7, 0.3, 1);
  --t-enter: 320ms;
  --t-expand: 240ms;
  --t-hover: 120ms;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--navy-hover);
}

/* One focus treatment, everywhere. Keyboard only. */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-control) 0;
}

.skip-link:focus {
  left: 0;
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  border-top: 1px solid var(--rule);
}

.section__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px var(--gutter);
}

.section__inner--tight {
  padding: 56px var(--gutter);
}

.section__inner--audit {
  padding: 64px var(--gutter);
}

.section__inner--last {
  padding-bottom: 88px;
}

.prose {
  max-width: var(--prose-max);
}

/* Auto-fit card grids. `min()` keeps the track from overflowing at 320px. */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid--wide {
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid--narrow {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.grid--proof {
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.grid--strip {
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.grid--split {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: start;
}

/* Prose laid out in columns rather than one long measure. */
.duo {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  max-width: 900px;
}

.duo--tight {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Section heading paired with a link to the fuller page. */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head .kicker {
  margin: 0;
}

.section-head__more {
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
}

/* Closing call to action. */
.cta-band {
  text-align: center;
  padding-top: 76px;
}

.cta-band__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 auto 16px;
  max-width: 20ch;
}

.cta-band__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 16px;
}

.kicker--muted {
  color: var(--muted);
}

.kicker--card {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Kicker standing in for a section heading, with the grid directly beneath. */
.kicker--section-lead {
  margin-bottom: 24px;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 17ch;
  text-wrap: balance;
}

.h1--interior {
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.14;
  margin-bottom: 18px;
  max-width: 19ch;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 22ch;
}

.h2--roomy {
  max-width: 24ch;
}

.h2--gap {
  margin-bottom: 26px;
}

/* Heading followed immediately by its own intro paragraph. */
.h2--flush {
  margin-bottom: 12px;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
}

.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 52ch;
  text-wrap: pretty;
}

/* Extra air before the stat row that follows it on The Audit. */
.lede--stats {
  margin-bottom: 34px;
}

.lede--last {
  margin-bottom: 0;
}

.body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
  text-wrap: pretty;
}

/* Paragraph that introduces a section, ahead of that section's grid. */
.intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 28px;
  max-width: 62ch;
  text-wrap: pretty;
}

.intro--short {
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 56ch;
}

.small {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

.small--loose {
  line-height: 1.65;
}

/* Body copy inside a card, followed by pills or a second block. */
.small--gap {
  margin-bottom: 12px;
}

.small--stack {
  margin-bottom: 10px;
}

.small--muted {
  color: var(--muted);
}

.note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

/* Qualifier that trails the block it qualifies. */
.note--after {
  margin-top: 24px;
}

.note--tight {
  margin-top: 20px;
}

.fineprint {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted-dim);
  margin: 0;
  max-width: 62ch;
}

/* Modifiers must follow the base rule — both set `margin`, and the later
   declaration wins at equal specificity. */
.fineprint--after {
  margin-top: 18px;
}

.fineprint--loose {
  margin-top: 22px;
}

.meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.meta--dim {
  color: var(--muted-dim);
}

b,
strong {
  color: var(--ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border-radius: var(--r-control);
  cursor: pointer;
  transition: background var(--t-hover) linear, color var(--t-hover) linear,
    border-color var(--t-hover) linear, transform var(--t-hover) linear;
}

.btn--primary {
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
  padding: 12px 22px;
}

.btn--primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 12px 21px;
}

.btn--ghost:hover {
  background: var(--navy-06);
  color: var(--navy);
}

.btn--sm {
  padding: 10px 18px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.site-header__bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-hover) linear;
}

.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 14px var(--gutter) 20px;
  flex-direction: column;
  gap: 14px;
  animation: bcgFade 200ms var(--ease-enter);
}

.nav-mobile[data-open='true'] {
  display: flex;
}

.nav-mobile__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-header__bar .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 88px var(--gutter) 72px;
}

.hero--interior {
  padding: 64px var(--gutter) 56px;
}

.hero--last {
  padding-bottom: 88px;
}

.hero__mark {
  margin-bottom: 30px;
}

/* --- Contact page ------------------------------------------------------- */

.h1--narrow {
  max-width: 17ch;
}

.lede--roomy {
  margin-bottom: 40px;
}

.contact-grid {
  gap: 18px;
  margin-bottom: 40px;
}

.contact-card__line {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
}

.contact-outro {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  max-width: 62ch;
}

.contact-outro__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

.contact-outro__body {
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   9. Cards, chips, pills
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 22px;
  transition: border-color var(--t-hover) linear;
}

.card:hover {
  border-color: var(--navy-20);
}

.card--pad-lg {
  padding: 24px;
}

.card--pad-sm {
  padding: 20px 22px;
}

/* A whole card that is a link. Type colour comes from the card's own elements. */
.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-row--section {
  margin-bottom: 26px;
}

.chip {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
}

.chip--active {
  background: var(--navy-07);
  color: var(--navy);
  border-color: transparent;
  font-weight: 500;
}

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.pill--high {
  background: var(--flag-10);
  color: var(--flag);
}

.pill--medium {
  background: var(--bronze-12);
  color: var(--bronze);
}

.pill--low {
  background: var(--sage-12);
  color: var(--sage);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* --------------------------------------------------------------------------
   10. Stat counters
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}

/* Three stats in a two-column grid leaves an empty cell, and the Rule shows
   through it as a grey block. Below the width where three fit, stack them. */
@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  background: var(--card);
  padding: 24px 22px;
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 0;
}

/* --------------------------------------------------------------------------
   11. Timeline
   -------------------------------------------------------------------------- */

.timeline {
  max-width: var(--prose-max);
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 18px;
}

.step__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 9px;
}

.step__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: 5px;
  flex: 0 0 auto;
}

.step__line {
  width: 1px;
  flex: 1;
  background: var(--rule);
  margin: 6px 0;
}

.step:last-child .step__line {
  display: none;
}

.step__body {
  padding-bottom: 26px;
}

.step:last-child .step__body {
  padding-bottom: 0;
}

.step__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 5px;
}

.step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}

.step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Rule-separated rows ("what this is not")
   -------------------------------------------------------------------------- */

.rows {
  display: grid;
  max-width: 760px;
}

.row {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}

.row:last-child {
  border-bottom: 1px solid var(--rule);
}

.row__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 5px;
}

.row__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  align-items: start;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 26px 24px;
}

.price-card--featured {
  border: 2px solid var(--navy);
}

/* The featured card gets the view's one bronze accent. */
.price-card--featured .kicker--card {
  color: var(--bronze);
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 8px;
}

.price-card__amount .per {
  font-size: 19px;
  color: var(--muted);
}

.price-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}

.price-card__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.price-card__features li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}

.price-card--plain .price-card__features {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   14. FAQ disclosures
   -------------------------------------------------------------------------- */

.faq {
  max-width: 760px;
}

.faq__item {
  border-top: 1px solid var(--rule);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 20px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.faq__q span {
  flex: 1;
}

.faq__chevron {
  flex: 0 0 auto;
  color: var(--muted-dim);
  transition: transform var(--t-expand) var(--ease-enter);
}

.faq__q[aria-expanded='true'] .faq__chevron {
  transform: rotate(180deg);
}

/* Height animation without measuring: 0fr → 1fr on a grid track. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-expand) var(--ease-enter);
}

.faq__a[data-open='true'] {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   15. Form
   -------------------------------------------------------------------------- */

/* Copy column beside the request form. */
.form-intro__title {
  max-width: 18ch;
  margin-bottom: 16px;
}

.form-intro__body {
  max-width: 48ch;
  margin-bottom: 14px;
}

.form-intro__note {
  max-width: 48ch;
}

.form-panel {
  position: relative;
}

.form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field__optional {
  color: var(--muted-dim);
  font-weight: 400;
}

.field-pair {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
}

input[type='text'],
input[type='email'],
select,
textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-control);
  padding: 11px 12px;
  width: 100%;
  transition: border-color var(--t-hover) linear, box-shadow var(--t-hover) linear;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-ring);
}

::placeholder {
  color: var(--muted-dim);
}

input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: var(--flag);
}

/* Honeypot — off-screen rather than display:none, which bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--flag);
  margin: 0;
}

.form__submit {
  margin-top: 4px;
}

.form__consent {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-dim);
  margin: 0;
}

.form-success {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  padding: 44px 26px;
  text-align: center;
  animation: bcgFade 300ms var(--ease-enter);
}

/* Focus moves here when the form is replaced, so a keyboard visitor is not
   left on a button that no longer exists. The panel is a status region, not a
   control — the ring would read as a heavy border on a card that has none. */
.form-success:focus,
.form-success:focus-visible {
  outline: none;
}

.form-success__mark {
  margin: 0 auto 20px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

.form-success__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto;
  max-width: 38ch;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   16. Proof page
   -------------------------------------------------------------------------- */

/* Facade: a poster + play triangle. The iframe is injected only on click. */
.facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--navy-deep);
  border-radius: var(--r-card);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}

.facade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 20px solid var(--bronze);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  transition: transform var(--t-hover) linear;
}

.facade:hover .facade__play {
  transform: translateX(2px) scale(1.06);
}

/* Placeholder poster — no video ID wired up yet. */
.facade[disabled] {
  cursor: default;
}

.facade[disabled] .facade__play {
  opacity: 0.4;
  transform: none;
}

.facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.proof-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.22;
  color: var(--ink);
  margin: 14px 0 6px;
}

.article-card {
  border-top: 2px solid var(--bronze);
  padding-top: 16px;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 8px;
}

.case-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.case-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   17. Footer — the only dark surface on the site
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--reverse-body);
}

.site-footer__cols {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper);
}

.site-footer__blurb {
  font-size: 14px;
  line-height: 1.65;
  color: var(--reverse-body);
  margin: 0;
  max-width: 34ch;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Muted is certified against Paper only (4.9:1). On the Navy Deep ground it
   falls to 3.2:1, so the reverse palette's own colour carries these — 6.0:1. */
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--reverse-body);
  margin: 0 0 2px;
}

.site-footer a {
  font-size: 14px;
  color: var(--reverse-link);
  transition: color var(--t-hover) linear;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer--slim {
  padding-top: 40px;
}

.site-footer__fine {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

.site-footer__fine p {
  font-size: 13px;
  color: var(--reverse-body);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.site-footer :focus-visible {
  outline-color: var(--paper);
}

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */

@keyframes bcgDash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bcgRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bcgFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll reveal. JS adds .is-armed only when it can observe; without JS the
   section stays at its final state and nothing is ever hidden. */
.reveal.is-armed {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--t-enter) var(--ease-enter),
    transform var(--t-enter) var(--ease-enter);
}

/* Hero mark draw-in. Armed by JS once per session. */
.mark-draw.is-armed .mark-draw__ring {
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  animation: bcgDash 600ms var(--ease-enter) forwards;
}

.mark-draw.is-armed .mark-draw__chev-1 {
  opacity: 0;
  animation: bcgRise 320ms var(--ease-enter) 600ms forwards;
}

.mark-draw.is-armed .mark-draw__chev-2 {
  opacity: 0;
  animation: bcgRise 320ms var(--ease-enter) 680ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal.is-armed {
    opacity: 1;
    transform: none;
  }

  .mark-draw.is-armed .mark-draw__ring,
  .mark-draw.is-armed .mark-draw__chev-1,
  .mark-draw.is-armed .mark-draw__chev-2 {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .nav-mobile,
  .form-success {
    animation: none;
  }

  .faq__a,
  .faq__chevron {
    transition-duration: 1ms;
  }
}

/* --------------------------------------------------------------------------
   19. Print — the report is the deliverable; the site should print clean too.
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .faq__a {
    grid-template-rows: 1fr;
  }
}
