/*
 * learn.growthexitpartners.com: one stylesheet for every page.
 * Palette and type: docs/brand.md. DOM hooks used by flow.js: docs/api.md.
 */

/* ---------- Fonts (self-hosted, OFL; see assets/fonts/) ---------- */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* Metric-matched local fallbacks, so the swap to the web fonts does not move the layout. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 113%;
  ascent-override: 85.7%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 107.1%;
  ascent-override: 90.4%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --navy: #011f3b;
  --navy-deep: #00172c;
  --logo-blue: #0f4c81;
  --action: #00549a;
  --action-hover: #003f75;
  --accent-on-navy: #7db9ee;   /* 8.2:1 on navy */
  --ink: #14202e;
  --muted: #4a5565;            /* 7.4:1 on white */
  --muted-2: #66727f;          /* 4.6:1 on --tint: the "before" figures */
  --muted-on-navy: #b9c7d6;    /* 10.4:1 on navy */
  --rule: #d9dfe7;
  --rule-on-navy: rgb(255 255 255 / 0.14);
  --tint: #f3f5f8;
  --field-border: #7a8494;     /* 3.9:1 on white */
  --error: #b3261e;

  /*
   * Pop-up answers (Form 2): the ONE place for their colours. Both answers look the same
   * (no red/green, no default; .scratch research 2026-12-03): white with a 2px action-blue
   * border and navy text (16.7:1); hover / pressed fill action blue with white text (7.7:1).
   * Their order is ANSWER_ORDER in build.py.
   */
  --answer-yes: #fff;
  --answer-yes-hover: #00549a;
  --answer-yes-text: #011f3b;
  --answer-yes-text-hover: #fff;
  --answer-yes-border: #00549a;
  --answer-no: #fff;
  --answer-no-hover: #00549a;
  --answer-no-text: #011f3b;
  --answer-no-text-hover: #fff;
  --answer-no-border: #00549a;

  --font-head: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, sans-serif;

  --page-max: 75rem;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --measure: 38rem;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: inherit;
  text-wrap: balance;
}

p,
ol,
ul,
blockquote,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--action-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

.on-navy :focus-visible {
  outline-color: #fff;
}

.on-navy .request-card :focus-visible {
  outline-color: var(--action);
}

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

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

/* ---------- Type styles ---------- */

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--logo-blue);
}

.on-navy .eyebrow {
  color: var(--accent-on-navy);
}

.display {
  font-size: clamp(2.125rem, 1.45rem + 2.9vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
}

.prose > * + * {
  margin-block-start: 1.25em;
}

.small {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- Bands ---------- */

.on-navy {
  background: var(--navy);
  color: #fff;
}

.on-navy .lede,
.on-navy .muted {
  color: var(--muted-on-navy);
}

.band {
  padding-block: var(--section-y);
}

.band--tint {
  background: var(--tint);
}

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

/* ---------- Header ---------- */

.site-header {
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.site-header .logo {
  width: clamp(11rem, 9rem + 6vw, 14.5rem);
  height: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 3.5rem;
  padding: 1rem 2rem;
  border: 0;
  border-radius: 2px;
  background: var(--action);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.3s ease;

  @media (prefers-reduced-motion: no-preference) {
    transition: background-color 0.2s ease, box-shadow 0.3s ease, translate 0.3s ease;
  }
}

.btn:hover {
  background: var(--action-hover);
  color: #fff;
  box-shadow: 0 7px 14px rgb(1 31 59 / 0.12), 0 3px 6px rgb(0 0 0 / 0.08);

  @media (prefers-reduced-motion: no-preference) {
    translate: 0 -1px;
  }
}

.btn:active {
  translate: 0 0;
  box-shadow: none;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
  translate: 0 0;
  box-shadow: none;
}

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

.closing .btn {
  background: #fff;
  color: var(--navy);
}

.closing .btn:hover {
  background: #e3ecf5;
  color: var(--navy);
}

/* Button label swap while a form is sending (flow.js sets data-state / data-pending). */
.when-busy {
  display: none;
}

[data-state="submitting"] .btn .when-idle,
[data-pending] .when-idle {
  display: none;
}

[data-state="submitting"] .btn .when-busy,
[data-pending] .when-busy {
  display: inline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--muted-on-navy);
  padding-block: 3rem;
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.site-footer .logo {
  width: 11rem;
  height: auto;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}

.footer-meta ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.35);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* =====================================================================
   Landing page
   ===================================================================== */

.hero {
  padding-block-end: clamp(3.5rem, 2rem + 5vw, 7rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  padding-block-start: clamp(1.5rem, 0.5rem + 3vw, 4rem);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.hero-copy .lede {
  max-width: 34rem;
}

.hero-rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--accent-on-navy);
  border: 0;
  margin: 0.5rem 0 0;
}

/* Founder credentials in the hero: photo, name, title, one bio line, two logos. */

.founder {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
  margin-block-start: 0.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule-on-navy);
}

.founder-id {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.125rem;
}

.founder .headshot {
  width: 4.5rem;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22);
}

.founder-text {
  display: grid;
  gap: 0.35rem;
}

.founder-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.35;
}

.founder-name strong {
  font-weight: 700;
  color: #fff;
}

.founder-title {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted-on-navy);
}

.founder-bio {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted-on-navy);
}

/* Credential row: a small-caps label that runs into a hairline, then the two logos on one
   centre line, split by a short vertical hairline. */
.founder-logos {
  display: grid;
  gap: 1rem;
}

.founder-logos-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
}

.founder-logos-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-on-navy);
}

.logo-row {
  display: flex;
  align-items: center;
  padding: 0;
  list-style: none;
}

.logo-row li {
  display: flex;
  align-items: center;
}

.logo-row li + li {
  margin-inline-start: 1.75rem;
  padding-inline-start: 1.75rem;
  border-inline-start: 1px solid var(--rule-on-navy);
}

/*
 * Matched optical size: both lockups are two lines, but McKinsey's mixed case and
 * descenders make it read smaller at the same box height, so its box is ~12% taller.
 */
.logo-row img {
  width: auto;
  opacity: 0.82;
}

.logo-stanford {
  height: 2rem;
}

.logo-mckinsey {
  height: 2.25rem;
}

/* Small screens: a compact block, so Form 1 stays close below it. */
@media (max-width: 63.99rem) {
  .hero-copy {
    gap: 1.25rem;
  }

  /* The founder block's own rule takes this one's place. */
  .hero-rule {
    display: none;
  }

  .founder {
    gap: 0.875rem;
    margin-block-start: 0;
    padding-block-start: 1.125rem;
  }

  .founder-id {
    align-items: start;
    gap: 0.875rem;
  }

  .founder .headshot {
    width: 3.5rem;
  }

  .founder-text {
    gap: 0.2rem;
  }

  .founder-name {
    font-size: 0.9375rem;
  }

  .founder-title,
  .founder-bio {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .founder-logos {
    gap: 0.875rem;
    margin-block-start: 0.375rem;
  }

  .logo-row li + li {
    margin-inline-start: 1.5rem;
    padding-inline-start: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }

  .hero-grid {
    padding-block-start: clamp(1rem, 2vw, 2.5rem);
  }

  .hero-copy {
    padding-block-start: 0.75rem;
    gap: 1.5rem;
  }

  .hero .display {
    font-size: clamp(2.5rem, 1.4rem + 2.3vw, 3.25rem);
  }

  .founder {
    max-width: 36rem;
  }
}

/* The request card: guide cover + Form 1 */

.request-card {
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.06);
  overflow: clip;
  scroll-margin-block: 2rem;
}

.request-card .cover {
  background: var(--navy);
  border-block-end: 1px solid var(--rule);
}

.request-card .cover img {
  width: 100%;
  aspect-ratio: 1200 / 928;
  object-fit: cover;
  object-position: 50% 0;
}

/* Small screens: show the top of the cover (title, author) so Form 1 sits higher. */
@media (max-width: 40rem) {
  .request-card .cover img {
    aspect-ratio: 1200 / 540;
  }
}

.lead-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.field input {
  inline-size: 100%;
  min-block-size: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 1em);
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:hover {
  border-color: var(--ink);
}

.field input:focus-visible {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 1px var(--action), 0 0 0 4px rgb(0 84 154 / 0.18);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  color: var(--error);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-error {
  padding: 0.75rem 0.9rem;
  background: #fdf1f0;
  border: 1px solid rgb(179 38 30 / 0.28);
  border-radius: 2px;
}

.form-error[hidden],
.field-error[hidden] {
  display: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form .fine-print {
  color: var(--muted);
}

/* Editorial split: heading left, text right (desktop) */

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 7rem);
  }

  .split > :first-child {
    position: sticky;
    inset-block-start: 2.5rem;
    align-self: start;
  }
}

.split-head {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.split-body {
  max-width: var(--measure);
}

/* Numbered lists: the seven mistakes, the agenda */

.numbered {
  counter-reset: item;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--rule);
}

.numbered > li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.5rem;
  border-block-end: 1px solid var(--rule);
}

.numbered > li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--logo-blue);
  font-variant-numeric: tabular-nums;
}

.numbered strong {
  display: block;
  margin-block-end: 0.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.numbered p {
  color: var(--muted);
}

@media (min-width: 40rem) {
  .numbered > li {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding-block: 1.75rem;
  }
}

/* Section label: small capitals that run into a hairline (same device as the hero's
   credential row). */
.section-label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--logo-blue);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Proof: two matched stat cards */

.stats {
  display: grid;
  gap: 1.25rem;
}

.stat-card {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  background: var(--tint);
  border-radius: 2px;
}

@media (min-width: 52rem) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
  }

  /* Figure and text rows line up across the two cards. */
  .stat-card {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

/* The figure scales with its card (cqi), not the viewport. The container is the heading,
   not the card: layout containment on the card would switch its subgrid off. */
.stat {
  container-type: inline-size;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  color: var(--navy);
  text-wrap: wrap;
}

.stat-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
}

.stat-from,
.stat-to {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.stat .num {
  font-size: clamp(2.5rem, 12.5cqi, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums tabular-nums;
}

.stat .unit {
  font-size: clamp(1rem, 4.2cqi, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.stat-from {
  color: var(--muted-2);
}

.stat-word {
  font-size: clamp(1rem, 4.2cqi, 1.375rem);
  font-weight: 500;
  color: var(--muted-2);
}

.stat-label {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--logo-blue);
}

.stat-card > p {
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}

/* The 50% statement: a full-width navy band, the figure as its anchor. */

.premium {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}

.premium-grid {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.premium-figure {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5.5rem, 3.5rem + 9vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: #fff;
  font-variant-numeric: lining-nums tabular-nums;
}

.premium-figure .pct {
  margin-inline-start: 0.06em;
  font-size: 0.46em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-on-navy);
}

.premium-text {
  max-width: 36rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
}

.premium-text strong {
  font-weight: 700;
  color: var(--accent-on-navy);
}

@media (min-width: 48rem) {
  .premium-grid {
    grid-template-columns: auto minmax(0, 36rem);
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }
}

/* Quotes */

.quote {
  display: grid;
  gap: 1.75rem;
  max-width: 52rem;
}

.quote::before {
  content: "";
  width: 3.5rem;
  height: 2px;
  background: var(--logo-blue);
}

.quote blockquote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1.25vw, 2.125rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: pretty;
}

.quote figcaption {
  font-size: 0.9375rem;
  color: var(--muted);
}

.quote figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

/* The founder's quote on the landing page: centred, the flag above it as the emblem
   (as on the Investment Banker Checklist, p. 7), photo with the attribution. */

.quote-wrap {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  text-align: center;
}

/* The flag between two hairlines, like an engraved emblem. */
.quote-flag {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.quote-flag::before,
.quote-flag::after {
  content: "";
  width: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  height: 1px;
  background: var(--rule);
}

.quote-flag img {
  width: 3.75rem;
  height: auto;
  box-shadow: 0 0 0 1px rgb(1 31 59 / 0.08);
}

.founder-quote .quote {
  justify-items: center;
  gap: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  max-width: 52rem;
}

.founder-quote .quote::before {
  content: none;
}

.founder-quote .quote blockquote p {
  font-size: clamp(1.3125rem, 1rem + 1.25vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.quote-by {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: start;
}

.quote-by .headshot {
  width: 3.5rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rule);
}

.quote-by-text {
  display: grid;
  gap: 0.15rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.quote figcaption .quote-by-text strong {
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}

/* Closing call to action */

.closing {
  padding-block: var(--section-y);
  text-align: center;
  border-block-end: 1px solid var(--rule-on-navy);
}

.closing .wrap {
  display: grid;
  justify-items: center;
  gap: 2.25rem;
}

.closing .h2 {
  max-width: 40rem;
}

/* ---------- The pop-up (Form 2) ---------- */

/* Required by the flow (docs/api.md): blurred backdrop, no page scroll behind the pop-up. */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgb(1 31 59 / 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.qualify {
  width: min(100% - 2.5rem, 33rem);
  max-height: calc(100dvh - 2.5rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / 0.5);
}

.qualify:focus-visible,
.qualify h1:focus {
  outline: none;
}

.qualify[open] {
  opacity: 1;

  @starting-style {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    translate: 0 0;
    scale: 1;

    @starting-style {
      translate: 0 0.75rem;
      scale: 0.98;
    }
  }
}

.qualify {
  transition-property: opacity, translate, scale, display, overlay;
  transition-duration: 0.35s;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-behavior: allow-discrete;

  @media (prefers-reduced-motion: reduce) {
    transition-duration: 0.15s;
  }
}

.qualify[open]::backdrop {
  @starting-style {
    opacity: 0;
  }
}

.qualify::backdrop {
  transition: opacity 0.35s ease;
}

.qualify form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

.qualify-head {
  display: grid;
  gap: 0.875rem;
}

.qualify-head .eyebrow {
  font-size: 0.75rem;
}

/* The statement is the dialog's heading and accessible name. */
.qualify h1 {
  font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

/* Equal width side by side; stacked full width (Yes on top) on narrow screens. */
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-block-start: 0.5rem;
}

@media (max-width: 30rem) {
  .answers {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

/* Colours: --answer-* in :root. Both buttons are the same size. */
.answer {
  --answer-bg: #fff;
  --answer-bg-hover: var(--action);
  --answer-fg: var(--navy);
  --answer-fg-hover: #fff;
  --answer-border: var(--action);
  min-block-size: 3.5rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--answer-border);
  border-radius: 2px;
  background: var(--answer-bg);
  color: var(--answer-fg);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease;

  @media (prefers-reduced-motion: no-preference) {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, translate 0.2s ease;
  }
}

.answer--yes {
  --answer-bg: var(--answer-yes);
  --answer-bg-hover: var(--answer-yes-hover);
  --answer-fg: var(--answer-yes-text);
  --answer-fg-hover: var(--answer-yes-text-hover);
  --answer-border: var(--answer-yes-border);
}

.answer--no {
  --answer-bg: var(--answer-no);
  --answer-bg-hover: var(--answer-no-hover);
  --answer-fg: var(--answer-no-text);
  --answer-fg-hover: var(--answer-no-text-hover);
  --answer-border: var(--answer-no-border);
}

.answer:hover,
.answer:active {
  background: var(--answer-bg-hover);
  border-color: var(--answer-bg-hover);
  color: var(--answer-fg-hover);
}

.answer:hover {
  box-shadow: 0 7px 14px rgb(1 31 59 / 0.14), 0 3px 6px rgb(0 0 0 / 0.08);

  @media (prefers-reduced-motion: no-preference) {
    translate: 0 -1px;
  }
}

.answer:active {
  translate: 0 0;
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.2);
}

/* Two-line label: the answer word large, the revenue range small under it. */
.answer {
  min-block-size: 4.75rem;
  padding-block: 0.75rem;
}

.answer__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

[data-pending] .answer__label {
  display: none;
}

.answer__word {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer__detail {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  opacity: 0.8;
}

/* Navy ring, 3px off the button: 16.7:1 on the white dialog, distinct from hover. */
.answer:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.answer[disabled] {
  cursor: progress;
  translate: 0 0;
}

.answer[disabled]:not([data-pending]) {
  opacity: 0.55;
}

.answer[data-pending] {
  background: var(--answer-bg-hover);
  border-color: var(--answer-bg-hover);
  color: var(--answer-fg-hover);
}

@media (forced-colors: active) {
  .answer {
    border: 2px solid ButtonText;
  }
}

/* =====================================================================
   Assessment page
   ===================================================================== */

.assess-main {
  overflow-x: clip;
}

.assess {
  --booking-w: clamp(26rem, 32vw, 34rem);
  --assess-gap: clamp(3rem, 5vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block-end: var(--section-y);
}

.assess-intro {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 0.5rem + 3vw, 4rem) clamp(3.5rem, 2rem + 4vw, 6rem);
  color: #fff;
}

/* Full-bleed navy behind the intro row, whatever its column. */
.assess-intro::before {
  content: "";
  position: absolute;
  inset: 0 -100vmax;
  z-index: -1;
  background: var(--navy);
}

.assess-intro .lede {
  max-width: 34rem;
  color: var(--muted-on-navy);
}

.assess-agenda,
.assess-bio,
.assess-quote {
  padding-block-start: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.assess-agenda .h3 {
  margin-block-end: 1.5rem;
  color: var(--navy);
}

.booking {
  margin-block-start: clamp(3rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 64rem) {
  .assess {
    grid-template-columns: minmax(0, 1fr) var(--booking-w);
    grid-template-rows: auto auto auto 1fr;
    column-gap: var(--assess-gap);
  }

  .assess-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-block-end: 5rem;
  }

  .assess-intro > * {
    max-width: calc(100% - var(--booking-w) - var(--assess-gap));
  }

  .assess-agenda { grid-column: 1; grid-row: 2; }
  .assess-bio    { grid-column: 1; grid-row: 3; }
  .assess-quote  { grid-column: 1; grid-row: 4; }

  .booking {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: start;
    margin-block-start: clamp(2.5rem, 1rem + 3vw, 4.5rem);
    z-index: 1;
  }
}

.booking-card {
  background: var(--tint);
  border-radius: 4px;
  box-shadow: 0 30px 60px -24px rgb(1 31 59 / 0.35), 0 0 0 1px var(--rule);
  overflow: clip;
  scroll-margin-block-start: 1.5rem;
}

.booking-head {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem) clamp(1.25rem, 1rem + 1vw, 1.75rem) 0;
}

.booking-head .h3 {
  color: var(--navy);
}

.booking-frame {
  position: relative;
  /* Reserve the widget's height before it loads (form_embed.js sets 628px for the
     month view at these widths): no layout shift. */
  min-block-size: 39.25rem;
  margin-block-start: 1rem;
  padding-inline: clamp(0.5rem, 0.25rem + 1vw, 0.875rem);
}

.booking-frame iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 39.25rem;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.booking-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start center;
  padding-block-start: 9rem;
  padding-inline: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.booking-loading {
  display: grid;
  justify-items: center;
}

.booking-status .loading-bar {
  display: block;
  width: 8rem;
  height: 2px;
  margin-block-start: 1rem;
  background: linear-gradient(90deg, transparent, var(--logo-blue), transparent) 0 0 / 50% 100% no-repeat, var(--rule);

  @media (prefers-reduced-motion: no-preference) {
    animation: loading-slide 1.4s ease-in-out infinite;
  }
}

@keyframes loading-slide {
  from { background-position: -100% 0, 0 0; }
  to   { background-position: 200% 0, 0 0; }
}

.booking-error {
  display: none;
  color: var(--ink);
}

.booking[data-state="error"] .booking-loading {
  display: none;
}

.booking[data-state="error"] .booking-error {
  display: block;
}

.booking[data-state="error"] .booking-status {
  z-index: 2;
  background: var(--tint);
}

.booking-foot {
  padding: 1rem clamp(1.25rem, 1rem + 1vw, 1.75rem) 1.5rem;
  color: var(--muted);
}

.booking-noscript {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
}

/* Bio */

.bio {
  display: grid;
  gap: 1.75rem;
}

.bio-id {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bio-id .h3 {
  color: var(--navy);
}

.bio-id .headshot {
  box-shadow: 0 0 0 1px rgb(1 31 59 / 0.12);
}

/*
 * Headshot slots (landing hero, assessment bio). build.py swaps the "KM" monogram for the photo
 * (<picture class="headshot">) when its files exist (see README, "Kevin Murdock headshot").
 */
.headshot {
  display: block;
  flex: none;
  width: 5rem;               /* the 240px files stay sharp at 3x */
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: clip;
  background: var(--navy);
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headshot--monogram {
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 0 0 4px #fff, 0 0 0 5px var(--rule);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
}

/* The short rule used above quotes, then the lines; no side borders. */
.credentials {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.credentials::before {
  content: "";
  width: 3.5rem;
  height: 2px;
  margin-block-end: 0.65rem;
  background: var(--logo-blue);
}

.credentials li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--navy);
}

.bio .prose {
  color: var(--muted);
}

.assess-quote .quote blockquote p {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
}

/* =====================================================================
   Thank-you page
   ===================================================================== */

.site-header--light {
  border-block-end: 1px solid var(--rule);
}

.thanks {
  padding-block: clamp(3rem, 2rem + 4vw, 6.5rem) var(--section-y);
}

.thanks-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin-inline: auto;
}

.thanks-cover img {
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 1200 / 928;
  border-radius: 2px;
  box-shadow: 0 30px 60px -24px rgb(1 31 59 / 0.4), 0 0 0 1px var(--rule);
}

.thanks-copy {
  display: grid;
  gap: 1.5rem;
  align-content: center;
}

.thanks-copy .display {
  color: var(--navy);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
}

.thanks-copy .prose {
  max-width: 34rem;
  color: var(--muted);
}

.thanks-copy .prose strong {
  color: var(--ink);
  font-weight: 600;
}

.quiet-link {
  margin-block-start: 1rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule);
  font-size: 0.9375rem;
}

@media (min-width: 56rem) {
  .thanks-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}

/* Form 1: first and last name side by side when the card is wide enough, stacked otherwise. */
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 1.25rem 0.875rem; /* row gap matches .lead-form */
}
