/* OmniSync HR — lander design system
   Contract aesthetic: flat, shadowless, hairline rules, tabular numerals.
   Single stylesheet. All colour/type/spacing from tokens. See website-presentation-plan.md §3–§4. */

/* ---------- Fonts (self-hosted woff2, OFL — present in lander/fonts/, see fonts/README.md).
   font-family stacks keep close system fallbacks (Georgia / system-ui / Consolas) as defence in depth. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Italic-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Variable.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* colour tokens (§3.1) */
  --ink: #0F2E4E;
  --body: #2B4A68;
  --blue: #1E5A96;
  --blue-hover: #17497C;
  --teal: #2E9C8F;
  --teal-text: #1F7A6F;
  --paper: #FFFFFF;
  --tint: #F2F7FB;
  --tint-teal: #EDF7F5;
  --hairline: #D8E2EB;
  --amber-text: #8A5E12; /* darkened from #A9731D for WCAG-AA (5.2:1 on --amber-bg; was 3.7:1) */
  --amber-bg: #FBF3E4;
  --navy-band-text: #E8F0F7;
  --navy-link: #9AD1C8;

  /* type faces (§3.2) */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* spacing scale (§3.3) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --prose: 720px;
  --prose-narrow: 680px; /* §10 About only */
  --wide: 920px;
  --container: 1200px;
  --band-pad: clamp(56px, 9vw, 104px);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 140ms ease; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
strong { font-weight: 600; color: var(--ink); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.priceline { font-size: 1.17rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0 0 var(--s4); font-weight: 600; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.15rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
h3 { font-family: var(--sans); font-size: 1.17rem; font-weight: 600; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
li { margin-bottom: var(--s3); }
table { border-collapse: collapse; width: 100%; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ---------- layout: container + widths + bands (§3.3–3.4) ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); }
.prose { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.prose-narrow { max-width: var(--prose-narrow); margin-left: auto; margin-right: auto; }
.wide { max-width: var(--wide); margin-left: auto; margin-right: auto; }

.band { padding: var(--band-pad) 0; }
.band--paper { background: var(--paper); }
.band--tint { background: var(--tint); }
.band--navy { background: var(--ink); color: var(--navy-band-text); }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--navy a { color: var(--navy-link); }
.band--navy strong { color: #fff; }
.band--hairline-top { border-top: 1px solid var(--hairline); }
.band--slim { padding: clamp(28px, 5vw, 44px) 0; }

/* scroll offset so anchored bands clear the sticky header (§4.1) */
[id] { scroll-margin-top: 72px; }

/* :target arrival fade — the only animation on the site (§3.7). Inset box-shadow overlay
   so the tint layers over the band's own background (works on paper AND tint bands) rather
   than replacing it. */
@keyframes target-fade { from { box-shadow: inset 0 0 0 2000px rgba(30,90,150,0.10); } to { box-shadow: inset 0 0 0 2000px rgba(30,90,150,0); } }
:target { animation: target-fade 1.5s ease-out; }

/* ---------- header / top bar (§4.1) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  height: 56px;
}
.topbar__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--s5); height: 56px; display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; align-items: center; gap: var(--s2); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__hr { color: var(--teal); font-weight: 700; } /* HR = 2nd ring teal, bolder than the 600 wordmark */
.topnav { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); margin-left: auto; }
.topnav a:not(.btn) { color: var(--body); font-weight: 500; font-size: 0.9375rem; white-space: nowrap; }
.topnav a:not(.btn):hover, .topnav a:not(.btn)[aria-current="page"] { color: var(--blue); text-decoration: none; }
.topnav a:not(.btn)[aria-current="page"] { font-weight: 600; }
.topnav .nav-home { display: none; } /* wordmark carries Home on desktop (§4.1); explicit in mobile menu below */

/* button grammar (§4.23) — one filled style, only "Book a scoping call" wears it */
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-family: var(--sans);
  font-weight: 600; font-size: 0.9375rem; padding: 14px 24px; border-radius: 6px;
  border: 0; cursor: pointer; line-height: 1.2; white-space: normal; transition: background 140ms ease;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; color: #fff; }
.btn--sm { padding: 9px 18px; }
.band--navy .btn { background: #fff; color: var(--ink); }
.band--navy .btn:hover { background: var(--tint); color: var(--ink); }

/* mobile nav — CSS-only disclosure (§4.1, §3.9) */
.navtoggle { display: none; }
.navtoggle__btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--hairline);
  border-radius: 6px; padding: 7px 12px; font-family: var(--sans); font-weight: 600; font-size: 0.9rem;
  color: var(--ink); cursor: pointer;
}

/* ---------- footer (§4.2) ---------- */
.footer { background: var(--tint); border-top: 1px solid var(--hairline); color: var(--ink); padding: var(--s8) 0 var(--s7); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); margin-bottom: var(--s7); }
.footer__col { display: flex; flex-direction: column; gap: var(--s3); font-size: 0.9375rem; }
.footer__col a { color: var(--body); }
.footer__col a:hover { color: var(--blue); }
.footer__col .footer__page { font-weight: 600; color: var(--ink); }
.footer__col .footer__sub { padding-left: var(--s4); font-size: 0.875rem; }
.footer__base { border-top: 1px solid var(--hairline); padding-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); font-size: 0.875rem; color: var(--body); }
.footer__base .brand { font-size: 1rem; }
.footer__meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--body); margin-left: auto; }
.footer__provenance { flex-basis: 100%; font-size: 0.875rem; color: var(--body); margin-top: var(--s2); }

/* ---------- hero (§4.3) ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 var(--band-pad); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: center; }
.hero h1 { margin-bottom: var(--s4); }
.hero__sub { font-size: 1.17rem; line-height: 1.6; color: var(--body); max-width: 34ch; margin-bottom: var(--s6); }
.hero__ctas { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }

/* interior hero (§4.4) */
.ihero { padding: clamp(44px, 6vw, 76px) 0 var(--s7); }
.ihero__sub { font-size: 1.17rem; line-height: 1.6; color: var(--body); max-width: 60ch; }

/* ---------- inset image plate (§3.5) ---------- */
figure { margin: 0; }
.plate { margin: var(--s6) auto; max-width: var(--prose); }
.plate--wide { max-width: var(--wide); }
.plate img { border: 1px solid var(--hairline); border-radius: 8px; max-height: 480px; width: 100%; object-fit: contain; background: var(--paper); }
/* hero figure is a grid item: .plate's auto side-margins would shrink it to the SVG's tiny
   default intrinsic size, so fill the column instead. */
.plate.hero__figure { margin: 0; max-width: 100%; }
.plate figcaption { margin-top: var(--s3); font-family: var(--mono); font-size: 0.875rem; color: var(--body); text-align: center; }

/* ---------- supported-systems strip (§5.§3 band 2) ---------- */
.chiprow { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin: var(--s3) 0; }
.chip {
  display: inline-block; border: 1px solid var(--hairline); border-radius: 6px;
  padding: 6px 14px; font-weight: 600; color: var(--ink); background: var(--paper);
}
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.strip__lead { font-weight: 600; color: var(--ink); margin-right: var(--s2); }
.muted { color: var(--body); }

/* ---------- stat / commitments band (§4.5) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--s5) var(--s5); border-left: 1px solid rgba(255,255,255,0.14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.05; color: #fff; margin-bottom: var(--s3); }
.stat__label { font-size: 0.875rem; color: var(--navy-band-text); line-height: 1.45; }
/* tint variant (§4.5 / credit table) */
.stats--tint { background: var(--tint); border: 1px solid var(--hairline); border-radius: 8px; }
.stats--tint .stat { border-color: var(--hairline); }
.stats--tint .stat__num { color: var(--ink); }
.stats--tint .stat__label { color: var(--body); }

/* ---------- pillar cards (§4.8) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.pillar { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s6); background: var(--paper); }
.pillar__idx { font-family: var(--mono); font-size: 2rem; color: var(--hairline); line-height: 1; margin-bottom: var(--s4); }
.pillar h3 { margin-bottom: var(--s3); }

/* ---------- persona split / two-column (§4.9) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); position: relative; }
.split::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--hairline); transform: translateX(-50%); }
.split__col h3 { margin-bottom: var(--s4); }
.split--top .split__col { align-self: start; }

/* ---------- argument rows / bold-lead lists (§4.10, §4.11) ---------- */
.leadlist { list-style: none; padding: 0; margin: var(--s5) 0 0; }
.leadlist > li { padding-left: 1.25em; text-indent: -1.25em; margin-bottom: var(--s4); }
.leadlist > li::before { content: "—"; color: var(--teal-text); margin-right: 0.5em; }
.leadlist--plain > li::before { content: none; }
.leadlist--plain > li { padding-left: 0; text-indent: 0; }
.leadlist strong:first-child { color: var(--ink); }

.argrows { margin: var(--s5) 0 0; }
.argrow { padding: var(--s5) 0; border-top: 1px solid var(--hairline); }
.argrow:first-child { border-top: 0; }
.argrow__lead { font-weight: 600; color: var(--ink); }
.argrows--numbered { counter-reset: arg; }
.argrows--numbered .argrow { position: relative; padding-left: var(--s7); counter-increment: arg; }
.argrows--numbered .argrow::before { content: counter(arg); position: absolute; left: 0; top: var(--s5); font-family: var(--mono); font-size: 1.1rem; color: var(--body); }
.clauseblock { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s5) var(--s6); background: var(--paper); }
.band--tint .clauseblock { background: var(--paper); }

/* ---------- editorial vignette (§4.13) ---------- */
.vignette { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; max-width: 62ch; color: var(--ink); border-left: 4px solid var(--blue); padding: var(--s2) 0 var(--s2) var(--s5); margin: var(--s5) 0; }
.vignette--light { font-size: 1.17rem; }

/* ---------- timeline / stepper (§4.14, §4.15) ---------- */
.timeline { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.tstep { position: relative; padding: 0 0 var(--s6) var(--s8); border-left: 2px solid var(--blue); margin-left: 4px; }
.tstep:last-child { border-left-color: transparent; padding-bottom: 0; }
.tstep__stamp { position: absolute; left: 0; top: 0; transform: translateX(calc(-100% - var(--s4))); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--body); text-align: right; white-space: nowrap; }
.tstep::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.tstep h3 { margin-bottom: var(--s2); }
.tstep__sublabel { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--teal-text); margin: var(--s3) 0 var(--s1); }
.stepper { counter-reset: step; }
.stepper .tstep__stamp { position: static; transform: none; display: inline-flex; align-items: center; justify-content: center; }
.stepper .tstep::before { counter-increment: step; content: counter(step); color: #fff; width: 22px; height: 22px; left: -12px; font-family: var(--mono); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* ---------- definition-row table (§4.16) ---------- */
.deflist { margin: var(--s5) 0 0; }
.defrow { display: grid; grid-template-columns: 200px 1fr; gap: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--hairline); }
.defrow:first-child { border-top: 0; }
.defrow dt { font-weight: 600; color: var(--ink); margin: 0; }
.defrow dd { margin: 0; }
.clausebox { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s4) var(--s5); background: var(--paper); margin: var(--s4) 0; }
.clausebox dt { font-weight: 600; color: var(--ink); }

/* ---------- forwardable box (§4.17) — flagship ---------- */
.forwardable { max-width: 880px; margin: var(--s6) auto; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--tint); padding: var(--s6) clamp(20px, 4vw, 40px); }
.forwardable__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.forwardable__head h2 { margin: 0; }
.forwardable__actions { display: flex; gap: var(--s4); }
.forwardable__actions button { background: none; border: 0; color: var(--blue); font-family: var(--sans); font-weight: 500; font-size: 0.875rem; cursor: pointer; padding: 4px; }
.forwardable__actions button:hover { color: var(--blue-hover); text-decoration: underline; }
.frow { display: grid; grid-template-columns: 190px 1fr; gap: var(--s5); padding: var(--s3) 0; border-top: 1px solid var(--hairline); }
.frow:first-of-type { border-top: 0; }
.frow dt { font-weight: 600; color: var(--ink); margin: 0; }
.frow dd { margin: 0; }
.forwardable .mono, .forwardable dd .num { font-family: var(--mono); }
.forwardable__foot { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 0.8125rem; color: var(--body); }
.forwardable__foot img { width: 16px; height: 16px; }

/* ---------- tier & comparison tables (§4.18) ---------- */
.ttable { border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; background: var(--paper); }
.ttable th, .ttable td { padding: var(--s4) var(--s5); text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.ttable thead th { position: sticky; top: 56px; background: var(--paper); z-index: 2; border-top: 0; }
.ttable thead .tier__name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.ttable thead .tier__price { font-family: var(--mono); font-size: 0.95rem; color: var(--body); font-weight: 400; display: block; margin-top: var(--s1); }
.ttable .rowlabel { font-weight: 500; color: var(--ink); }
.ttable .num { font-family: var(--mono); }
.ttable .sectionrow td { font-weight: 600; color: var(--ink); text-transform: none; }
.ttable .sectionrow--platform td { background: var(--tint-teal); }
.ttable .sectionrow--service td { background: var(--tint); }
.ttable .ck { color: var(--teal-text); font-weight: 600; } /* teal-text (5.2:1) not raw --teal (3.4:1) — the ✓ is the sole "included" signal */
.datatable th, .datatable td { padding: var(--s4) var(--s5); text-align: left; vertical-align: top; border-top: 1px solid var(--hairline); }
.datatable thead th { border-top: 0; font-weight: 600; color: var(--ink); background: transparent; }
.datatable .num { font-family: var(--mono); }
.datatable .claimcol { font-weight: 600; color: var(--ink); }
.datatable .stamp { font-family: var(--mono); font-size: 0.8125rem; color: var(--body); display: block; margin-top: var(--s1); }
.dircell .dirglyph { font-family: var(--mono); color: var(--teal-text); margin-right: 0.4em; }

/* totals table (§6 band 7) */
.totals .num { font-family: var(--mono); font-size: 1.15rem; color: var(--ink); }
.totals .paren { color: var(--body); font-family: var(--sans); font-size: 0.9rem; }

/* ---------- credit table (§4.19) ---------- */
.credits { display: grid; gap: var(--s3); max-width: 360px; }
.credit { display: flex; align-items: baseline; gap: var(--s3); font-family: var(--mono); font-size: 1.1rem; color: var(--ink); padding: var(--s3) var(--s4); background: var(--tint); border-radius: 6px; }
.credit .arrow { color: var(--body); }

/* ---------- sample plate / quarantine (§4.24) — the one sanctioned amber ---------- */
.errblock { font-family: var(--mono); font-size: 0.9rem; color: #fff; background: #1c2733; border-radius: 6px; padding: var(--s4) var(--s5); overflow-x: auto; margin: var(--s4) 0; }
.samplecards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin: var(--s5) 0; }
.samplecard { position: relative; border: 1px solid var(--hairline); border-left: 4px solid #D9A441; background: var(--amber-bg); border-radius: 4px; padding: var(--s5); }
.samplecard__tag { position: absolute; top: var(--s3); right: var(--s3); font-family: var(--mono); font-size: 0.72rem; color: var(--amber-text); }
.samplecard__field { font-family: var(--mono); font-size: 0.8rem; color: var(--amber-text); text-transform: uppercase; letter-spacing: 0.04em; }
.samplecard__body { color: var(--ink); margin-top: var(--s2); }

/* ---------- exhibit frame (§4.25) ---------- */
.exhibit { max-width: var(--wide); margin: var(--s5) auto; }
.exhibit__mat { border: 1px solid var(--ink); border-radius: 8px; background: #fff; padding: var(--s5); }
.exhibit__mat img { border-radius: 4px; width: 100%; height: auto; }
.exhibit figcaption { margin-top: var(--s3); font-family: var(--mono); font-size: 0.875rem; color: var(--body); text-align: center; }

/* ---------- FAQ rows — flat, never accordions (§4.20) ---------- */
.faq { margin: var(--s5) 0 0; }
.faqrow { padding: var(--s5) 0; border-top: 1px solid var(--hairline); }
.faqrow:first-child { border-top: 0; }
.faqrow h3 { margin-bottom: var(--s3); }
.faqrow .arrowlink { margin-top: var(--s3); }
.faqrow__copy { background: none; border: 0; color: var(--blue); font-family: var(--sans); font-size: 0.85rem; cursor: pointer; padding: 0; margin-left: var(--s4); }
.faqrow__copy:hover { text-decoration: underline; }
.faqgroup__label { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: var(--s6) 0 var(--s2); padding-top: var(--s5); border-top: 2px solid var(--hairline); }
.faqgroup:first-of-type .faqgroup__label { border-top: 0; padding-top: 0; margin-top: 0; }

/* ---------- generic bordered card + aside (pair cards, router card §11, disambiguation boxes §10) ---------- */
.card { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s5) var(--s6); background: var(--paper); }
.card + .card { margin-top: var(--s5); } /* stacked pair cards (integrations §5) — keep their borders from abutting into one box */
.card--sm { padding: var(--s4) var(--s5); }
.card h3 { margin-bottom: var(--s3); }
.aside { border: 1px solid var(--hairline); border-left: 4px solid var(--teal); border-radius: 6px; padding: var(--s4) var(--s5); background: var(--paper); margin: var(--s5) 0; }

/* ---------- closed lists (§8.2: numbered = closed) + terminal rule ---------- */
.closedlist { padding-left: 1.6em; }
.closedlist > li { margin-bottom: var(--s3); }
.closedlist .argrow__lead, .closedlist strong:first-child { color: var(--ink); }
.terminal-rule { font-weight: 600; color: var(--ink); border-top: 2px solid var(--ink); padding-top: var(--s4); margin-top: var(--s4); }

/* exclusions table (§7 #exclusions): numbered rows + terminal footer */
.datatable tfoot td { border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); }
.datatable .idxcol { font-family: var(--mono); color: var(--body); width: 2.5em; }

/* ---------- status line (§4.21) ---------- */
.statusline { font-family: var(--mono); font-size: 0.875rem; color: var(--body); border-top: 1px solid var(--hairline); padding-top: var(--s4); margin-top: var(--s5); line-height: 1.7; }
.statusline a { color: var(--blue); }

/* ---------- kicker (§4.22) ---------- */
.kicker { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.4; margin-top: var(--s5); }

/* ---------- arrow links (§4.23) ---------- */
.arrowlink { display: inline-block; color: var(--blue); font-weight: 500; margin-top: var(--s4); }
.arrowlink:hover { text-decoration: underline; }
.band--navy .arrowlink { color: var(--navy-link); }

/* ---------- CTA blocks (§4.23) ---------- */
.cta h2 { margin-bottom: var(--s4); }
.cta__caption { font-size: 0.9rem; color: var(--navy-band-text); margin-top: var(--s3); max-width: 52ch; }
.cta__card { border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; padding: var(--s5) var(--s6); background: rgba(255,255,255,0.04); }
.cta__card h3 { color: #fff; margin-bottom: var(--s3); }
.cta__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s7); align-items: center; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.midcta { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.midcta p { margin: 0; font-weight: 500; color: var(--ink); }

/* ---------- anchored heading copy-link (§4.6) ---------- */
.anchored { position: relative; }
.anchored .copylink { opacity: 0; margin-left: 0.4em; font-family: var(--sans); font-weight: 400; color: var(--blue); font-size: 0.8em; text-decoration: none; transition: opacity 120ms ease; }
.anchored:hover .copylink, .anchored:focus-within .copylink { opacity: 1; }

/* ---------- on-page nav (§4.7) ---------- */
.onthispage { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s4) var(--s5); margin: var(--s5) 0; background: var(--paper); }
.onthispage__title { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--body); margin-bottom: var(--s3); }
.onthispage__list { display: flex; flex-wrap: wrap; gap: var(--s2) 0; font-size: 0.9rem; margin: 0; padding: 0; list-style: none; }
.onthispage__list li { margin: 0; display: inline; }
.onthispage__list li:not(:last-child)::after { content: "·"; color: var(--hairline); margin: 0 var(--s3); }

/* sticky current-section strip + jump sheet — built by JS on authored-nav pages,
   revealed by CSS only below the rail threshold (<1560px). */
.sectionstrip { position: sticky; top: 56px; z-index: 90; background: var(--paper); border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.sectionstrip summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 11px var(--s5); font-weight: 600; color: var(--ink); cursor: pointer; max-width: var(--container); margin: 0 auto; }
.sectionstrip summary::-webkit-details-marker { display: none; }
.sectionstrip summary::after { content: "▾"; color: var(--blue); font-size: 0.85em; transition: transform 120ms ease; }
.sectionstrip details[open] summary::after { transform: rotate(180deg); }
.sectionstrip__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sectionstrip__sheet { padding: var(--s2) var(--s5) var(--s4); max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--hairline); }
.sectionstrip__sheet a { color: var(--body); padding: var(--s2) 0; }
.sectionstrip__sheet a:hover { color: var(--blue); text-decoration: none; }
@media (min-width: 1560px) { .sectionstrip { display: none; } }

/* scroll-spy rail (>= 1560px). It's a fixed widget in the LEFT GUTTER beside the content, so it
   must not start until the gutter is wide enough: the rail pages use full --container (1200px)
   content, and a 148px rail only clears that gutter at ~1560px+ (below that it overlapped and
   covered the left edge of content). Anchored to --container, not --wide. Mouse-only (aria-hidden
   in JS) — the in-content .onthispage nav is the accessible/keyboard path at every width. */
.railnav { display: none; }
@media (min-width: 1560px) {
  .railnav { display: block; position: fixed; top: 96px; left: calc((100vw - var(--container)) / 2 - 148px); width: 148px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 0.8125rem; line-height: 1.5; }
  .railnav ol { list-style: none; margin: 0; padding: 0; }
  .railnav li { margin-bottom: var(--s2); }
  .railnav a { color: var(--body); border-left: 2px solid var(--hairline); padding-left: var(--s3); display: block; }
  .railnav a:hover, .railnav a.is-active { color: var(--blue); border-left-color: var(--blue); text-decoration: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .topnav { display: none; }
  .navtoggle__btn { display: block; }
  /* keep the toggle checkbox keyboard-focusable (visually hidden, not display:none) so
     the menu opens with Tab+Space; the focus ring shows on the visible "Menu" button (§3.9). */
  .navtoggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
  .navtoggle:focus-visible ~ .topbar__inner .navtoggle__btn { outline: 2px solid var(--blue); outline-offset: 2px; }
  .navtoggle:checked ~ .topbar__inner .topnav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 56px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: var(--s4) var(--s5) var(--s6); margin: 0; max-height: calc(100vh - 56px); overflow-y: auto;
  }
  .navtoggle:checked ~ .topbar__inner .topnav a { padding: var(--s3) 0; border-bottom: 1px solid var(--hairline); font-size: 1.05rem; }
  .navtoggle:checked ~ .topbar__inner .topnav .nav-home { display: block; }
  .navtoggle:checked ~ .topbar__inner .topnav .btn { margin-top: var(--s4); text-align: center; border-bottom: 0; }
}
/* below the rail threshold the sticky section strip appears — clear it on anchor jumps */
@media (max-width: 1559px) { [id] { scroll-margin-top: 108px; } }
/* Timeline date stamps sit in the .prose (720px) left gutter via absolute + translateX.
   Below ~920px that gutter is narrower than the stamp, so the stamp lands at negative x and
   is clipped off the left edge (silent — doesn't grow scrollWidth). Pull the plain-timeline
   stamp in-flow before the gutter runs out. Scoped to :not(.stepper) — the stepper's stamp is
   already static and keeps its own ≤760 rules. */
@media (max-width: 920px) {
  .timeline:not(.stepper) .tstep__stamp { position: static; transform: none; display: block; margin-bottom: var(--s1); text-align: left; }
  .timeline:not(.stepper) .tstep { padding-left: var(--s5); }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding-left: 0; }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .stats--tint .stat { border-color: var(--hairline); }
  .pillars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split::before { display: none; }
  .split__col + .split__col { border-top: 1px solid var(--hairline); padding-top: var(--s5); }
  .samplecards { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .defrow, .frow { grid-template-columns: 1fr; gap: var(--s1); }
  .tstep__stamp { position: static; transform: none; display: block; margin-bottom: var(--s1); text-align: left; }
  .tstep { padding-left: var(--s5); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid rgba(255,255,255,0.14); }
  .stat:nth-child(2) { border-top: 1px solid rgba(255,255,255,0.14); }
  .footer__cols { grid-template-columns: 1fr; }
  /* Tier table re-grid (plan 4.18): row label full-width, Standard|Premium values paired
     beneath a sticky 2-col header. No horizontal scroll; tiers stay side-by-side. Acceptance width 360px. */
  .ttable { overflow: visible; border-radius: 0; }
  .ttable, .ttable thead, .ttable tbody, .ttable tr, .ttable td, .ttable th { display: block; }
  .ttable thead tr { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--hairline); }
  .ttable thead th { border-top: 0; padding: var(--s3); }
  .ttable thead th:first-child { display: none; }
  .ttable thead .tier__name { font-size: 1rem; }
  .ttable tbody tr:not(.sectionrow) { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); padding: var(--s3) var(--s4); border-top: 1px solid var(--hairline); }
  .ttable tbody tr:not(.sectionrow) > td { border-top: 0; padding: 0; }
  .ttable tbody tr:not(.sectionrow) > td:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--ink); margin-bottom: var(--s2); }
  .ttable tbody tr.sectionrow td { padding: var(--s3) var(--s4); }
  /* Data tables (domain, cert, exclusions, totals, roadmap, diligence) re-grid to
     labeled mini-cards — column headers become per-cell labels (plan 4.18). No horizontal scroll. */
  .datatable, .datatable tbody, .datatable tr, .datatable td, .datatable tfoot { display: block; }
  .datatable thead { display: none; }
  .datatable tbody tr { border: 1px solid var(--hairline); border-radius: 8px; padding: var(--s3) var(--s4); margin-bottom: var(--s4); }
  .datatable tbody td { border-top: 0; padding: var(--s1) 0; }
  /* row-header tables (SLA support comparison): the <th scope=row> label is only covered by the
     td rules above, so force it to a block card-title instead of a stranded 98px table-cell. */
  .datatable tbody th[scope="row"] { display: block; padding: 0 0 var(--s2); font-weight: 600; color: var(--ink); }
  .datatable tbody td[data-label]::before { content: attr(data-label); display: block; font-weight: 600; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.02em; }
  .datatable tbody td.idxcol { display: inline-block; font-family: var(--mono); color: var(--body); font-size: 0.8rem; padding: 0 0 var(--s1); }
  .datatable tfoot td { border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); padding-top: var(--s3); }
}

/* ---------- reduced motion (§3.7) ---------- */
@media (prefers-reduced-motion: reduce) {
  /* covers pseudo-elements too (the * selector alone misses ::before/::after, e.g. the strip caret) */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- print (§6.6) ---------- */
@media print {
  .topbar, .sectionstrip, .railnav, .footer__cols, .navtoggle__btn, .forwardable__actions, .printbtn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .band { padding: 12pt 0; background: #fff !important; color: #000 !important; }
  .band--navy, .band--navy * { color: #000 !important; background: #fff !important; }
  .forwardable, .ttable, .datatable, .exhibit, .samplecard, table { break-inside: avoid; }
  h2 { break-after: avoid; }
  a[data-print-url]::after { content: " (" attr(data-print-url) ")"; font-family: var(--mono); font-size: 9pt; color: #333; }
  .plate, .exhibit { max-width: 100%; }
}
