/* KeyDate Advisory — site styles
   One stylesheet for every page. Mobile first.
   Fonts: IBM Plex Serif (headings, prices) + IBM Plex Sans (everything else), self-hosted in /fonts. */

@font-face { font-family: "Plex Serif"; src: url("/fonts/IBMPlexSerif-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Serif"; src: url("/fonts/IBMPlexSerif-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --navy: #14273F;
  --navy-deep: #0F1D31;
  --navy-line: #2B4160;
  --gold: #C9A227;
  --gold-on-navy: #E3C15A;
  --paper: #FFFFFF;
  --band: #F2F4F7;
  --ink: #14273F;
  --body: #33415A;
  --muted: #66748A;
  --rule: #D6DBE3;
  --focus: #1D6FE0;

  --serif: "Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --container: 1080px;
  --measure: 62ch;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 9vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.15; max-width: 22ch; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: 0 0 .4em; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: var(--measure); }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section--band { background: var(--band); }
.section + .section:not(.section--band):not(.hero):not(.close) { border-top: 1px solid var(--rule); }

/* eyebrow: short gold rule + small text. Encodes "a section starts here". */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); flex: none; }
.on-navy .eyebrow { color: #B9C3D3; }
.hero .eyebrow { font-size: .76rem; letter-spacing: .05em; }
.section-head { margin-bottom: 32px; }
.section-head p { max-width: var(--measure); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn--gold { background: var(--gold-on-navy); color: var(--navy-deep); border-color: var(--gold-on-navy); }
.btn--gold:hover { background: #EDCD6E; border-color: #EDCD6E; color: var(--navy-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--block { width: 100%; }
@media (min-width: 480px) { .btn--block { width: auto; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.nav__brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav__brand img { display: block; height: 32px; width: auto; }
@media (min-width: 560px) { .nav__brand img { height: 36px; } }
.nav .btn { min-height: 42px; padding: 8px 16px; font-size: .95rem; }
.nav .btn .long { display: none; }
@media (min-width: 560px) { .nav .btn .long { display: inline; } .nav .btn .short { display: none; } }
.nav--sub .container { justify-content: space-between; }
.nav__back { font-size: .95rem; color: var(--muted); text-decoration: none; }
.nav__back:hover { color: var(--ink); }
.nav__back { white-space: nowrap; }
.nav__back .long { display: none; }
@media (min-width: 560px) { .nav__back .long { display: inline; } .nav__back .short { display: none; } }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #DCE3EE; padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 96px 0 104px; } }
.hero h1 { color: #fff; }
.hero__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px; } }
.hero__sub { font-size: 1.1rem; line-height: 1.6; margin: 24px 0 0; max-width: 56ch; }
@media (min-width: 768px) { .hero__sub { font-size: 1.2rem; } }
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 16px; font-size: .95rem; color: #B9C3D3; max-width: 46ch; }
.hero__tag { margin-top: 36px; font-family: var(--serif); font-weight: 500; color: var(--gold-on-navy); font-size: 1.05rem; }

/* The seams diagram — three vendor scopes, gold gaps between them. */
.seams { max-width: 460px; }
@media (min-width: 900px) { .seams { max-width: 540px; } .seams__block { min-height: 132px; } }
.seams__row { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; align-items: stretch; }
.seams__block {
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04);
  padding: 18px 10px 16px; text-align: center; min-height: 112px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.seams__what { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.15rem; line-height: 1.1; }
.seams__who { font-size: .8rem; color: #B9C3D3; line-height: 1.3; }
.seams__gap { position: relative; }
.seams__gap::before { content: ""; position: absolute; left: 50%; top: -10px; bottom: -10px; width: 3px; margin-left: -1.5px; background: var(--gold-on-navy); }
.seams__caption { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.seams__caption-label { font-family: var(--serif); font-weight: 600; color: var(--gold-on-navy); font-size: 1.1rem; }
.seams__caption-text { font-size: .95rem; color: #B9C3D3; }
@media (min-width: 400px) { .seams__block { padding: 22px 14px 20px; } .seams__who { font-size: .85rem; } }

/* ---------- for / not for ---------- */
.fit { display: grid; gap: 24px; }
@media (min-width: 720px) { .fit { grid-template-columns: 1fr 1fr; gap: 48px; } }
.fit__item { border-top: 3px solid var(--navy); padding-top: 16px; }
.fit__item--not { border-top-color: var(--rule); }
.fit__label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.fit__item--not .fit__label { color: var(--muted); }

/* ---------- proof bars ---------- */
.proof { display: grid; gap: 22px; }
@media (min-width: 720px) { .proof > div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: baseline; } .proof__label { margin: 0; } }
.proof__label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.proof__names { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.proof__line { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--body); }

/* ---------- receipts (a ledger, not tiles) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.ledger__num { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 6vw, 2.5rem); color: var(--ink); line-height: 1; white-space: nowrap; }
.ledger__what { color: var(--body); }
@media (min-width: 900px) {
  .ledger { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .ledger li { grid-template-columns: 160px 1fr; border-top: 1px solid var(--rule); border-bottom: 0; padding: 20px 0; }
  .ledger li:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.business-case { margin-top: 32px; padding: 22px 24px; border-left: 4px solid var(--gold); background: var(--band); max-width: var(--measure); }
.business-case p { margin: 0; }

/* ---------- the nine lines ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: line; }
@media (min-width: 720px) { .lines { gap: 12px; } }
.lines li { counter-increment: line; margin: 0; border: 1px solid var(--rule); padding: 12px 10px 12px; min-height: 84px; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; background: var(--paper); }
.lines li::before { content: counter(line); font-family: var(--serif); font-weight: 600; font-size: .9rem; color: var(--gold); line-height: 1; }
.lines__name { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.25; }
@media (min-width: 720px) { .lines li { padding: 16px 16px 14px; min-height: 100px; } .lines__name { font-size: 1.05rem; } }

/* ---------- offers ---------- */
.walk { display: grid; gap: 20px; padding: 28px 0 36px; border-top: 3px solid var(--gold); margin-bottom: 40px; }
@media (min-width: 900px) { .walk { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; align-items: center; gap: 40px; padding: 32px 0 40px; } }
.walk h3 { font-size: 1.6rem; }
.price { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 1.1rem; margin: 6px 0 0; }
.price strong { font-weight: 600; }

.ladder { display: grid; gap: 0; }
.ladder__tier { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.ladder__tier--first { border-top: 3px solid var(--navy); }
.ladder__flag { position: absolute; top: -13px; left: 0; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; }
.ladder__tier--first .ladder__flag { top: -14px; }
.ladder__tier h3 { font-size: 1.45rem; }
.ladder__tier .price { margin-bottom: 14px; }
.ladder__tier p { font-size: 1rem; }
.ladder__month { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: .95rem; color: var(--body); }
@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ladder__tier { border-top: 1px solid var(--rule); }
  .ladder__tier--first { border-top: 3px solid var(--navy); }
}

.which { margin-top: 40px; padding: 26px 26px 28px; border: 1px solid var(--rule); background: var(--paper); max-width: 760px; }
.which__label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.which__pair { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 640px) { .which__pair { grid-template-columns: 1fr 1fr; gap: 24px; } }
.which__pair li { margin: 0; font-size: 1.02rem; }
.which__pair strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.which p { font-size: 1rem; }

/* ---------- audit scope ---------- */
.scope { display: grid; gap: 32px; }
@media (min-width: 900px) { .scope { grid-template-columns: 1fr 1fr; gap: 56px; } }
.scope h3 { margin-bottom: 12px; }
.list-label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.list-label:first-child { margin-top: 0; }
.check { list-style: none; margin: 0; padding: 0; }
.check li { position: relative; padding-left: 26px; margin: 0 0 8px; }
.check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 2px solid var(--gold); border-radius: 2px; }
.bonus { list-style: none; margin: 0; padding: 0; }
.bonus li { margin: 0 0 14px; padding-left: 0; }
.bonus strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.overage { list-style: none; margin: 0; padding: 0; }
.overage li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.overage li span:last-child { font-family: var(--serif); font-weight: 600; color: var(--ink); white-space: nowrap; }
.note { font-size: .95rem; color: var(--muted); margin-top: 16px; }

/* ---------- guarantee ---------- */
.guarantee { display: grid; gap: 32px; }
@media (min-width: 900px) { .guarantee { grid-template-columns: 1fr 1fr; gap: 56px; } }
.guarantee__promise { font-family: var(--serif); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.3; color: var(--ink); margin: 0 0 18px; }
.seats { list-style: none; margin: 0 0 18px; padding: 0; }
.seats li { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.seats li:last-child { border-bottom: 1px solid var(--rule); }
.seats strong { display: block; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.steps strong { font-family: var(--serif); font-size: 1.2rem; display: block; margin-bottom: 6px; }

/* ---------- founder ---------- */
.founder { display: grid; gap: 24px; grid-template-areas: "photo" "story" "facts"; }
.founder__photo { grid-area: photo; }
.founder__story { grid-area: story; }
.founder__facts { grid-area: facts; }
@media (min-width: 900px) { .founder { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "story photo" "story facts"; column-gap: 64px; row-gap: 28px; align-items: start; } }
.founder__photo { margin: 0; max-width: 260px; }
@media (min-width: 900px) { .founder__photo { max-width: 300px; } }
.founder__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 4px solid var(--gold); }
.founder__facts { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.founder__facts li { padding: 10px 0; border-top: 1px solid var(--rule); margin: 0; }
.founder__facts li:last-child { border-bottom: 1px solid var(--rule); }
.founder__facts strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.founder__story { font-size: 1.05rem; }
@media (min-width: 768px) { .founder__story { font-size: 1.15rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--gold); line-height: 1; width: 24px; text-align: center; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 20px; max-width: var(--measure); }

/* ---------- closing ---------- */
.close { background: var(--navy); color: #DCE3EE; padding: 64px 0 72px; }
@media (min-width: 768px) { .close { padding: 96px 0 104px; } }
.close h2 { color: #fff; max-width: none; font-size: clamp(2rem, 6vw, 3.25rem); }
.close p { max-width: 54ch; margin-top: 18px; font-size: 1.1rem; }
.close .hero__cta { margin-top: 28px; }
.close__alt { margin-top: 18px; font-size: .95rem; color: #B9C3D3; }
.close__alt a { color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #B9C3D3; padding: 28px 0 36px; font-size: .9rem; border-top: 1px solid var(--navy-line); }
.footer a { color: #fff; }
.footer__row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.footer__referral { color: #B9C3D3; margin-bottom: 14px; }
.footer__logo { height: 30px; width: auto; margin-bottom: 18px; }

/* ---------- subpages ---------- */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .page-hero { padding: 72px 0 56px; } }
.page-hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); max-width: 18ch; }
.page-hero .kicker { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.page-hero .lede { font-size: 1.15rem; margin-top: 18px; max-width: 56ch; }
.page-hero .hero__cta { margin-top: 26px; }
.btn--doc { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 10px 18px; }
.btn--doc small { font-weight: 400; font-size: .8rem; opacity: .85; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.timeline__t { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: 1.15rem; line-height: 1.3; }
.timeline strong { font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.timeline p { font-size: 1rem; }
@media (min-width: 720px) { .timeline li { grid-template-columns: 110px 1fr; gap: 24px; } }

.missed { list-style: none; margin: 0; padding: 0; counter-reset: missed; max-width: 760px; }
.missed li { counter-increment: missed; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); margin: 0; }
.missed li:last-child { border-bottom: 1px solid var(--rule); }
.missed li::before { content: counter(missed); font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.missed strong { font-family: var(--serif); font-size: 1.12rem; display: block; margin-bottom: 4px; }
.missed p { font-size: 1rem; }
@media (min-width: 720px) { .missed li { grid-template-columns: 56px 1fr; gap: 16px; } }

.rules { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.rules li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--rule); margin: 0; }
.rules li:last-child { border-bottom: 1px solid var(--rule); }
.rules li::before { content: ""; position: absolute; left: 0; top: 1.1em; width: 12px; height: 3px; background: var(--gold); }

.two-up { display: grid; gap: 28px; }
@media (min-width: 800px) { .two-up { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two-up h3 { margin-bottom: 8px; }
.two-up p { font-size: 1rem; }

.copybox { border: 1px solid var(--rule); background: var(--band); padding: 20px 20px 16px; max-width: 760px; margin-top: 12px; }
.copybox pre { margin: 0 0 14px; white-space: pre-wrap; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.copybox__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copybox__status { font-size: .9rem; color: var(--muted); }

.audience { columns: 1; column-gap: 40px; list-style: none; margin: 0; padding: 0; max-width: 760px; }
@media (min-width: 640px) { .audience { columns: 2; } }
.audience li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--rule); margin: 0; }

.credit { font-size: .95rem; color: var(--muted); max-width: 760px; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 48px; }

/* 404 */
.oops { min-height: 60vh; display: flex; align-items: center; }
