/* Marketing site styles. Every colour, family, radius and size comes from tokens.css (generated from brand/tokens.css);
   the only literal font names live in the @font-face rules below. */

@font-face {
  font-family: "Sofia Sans";
  src: url("/fonts/SofiaSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("/fonts/SofiaSansExtraCondensed-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--type-sans);
  font-size: var(--size-site-body);
  line-height: var(--leading-site-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 2px; }

h1, h2 { font-family: var(--type-display); text-transform: uppercase; text-wrap: balance; }
h1 { font-size: var(--size-display-h1); line-height: var(--leading-display-h1); letter-spacing: var(--tracking-display-h1); font-weight: 800; }
h2 { font-size: var(--size-display-h2); line-height: var(--leading-display-h2); letter-spacing: var(--tracking-display-h2); font-weight: 700; }
h3 { font-family: var(--type-sans); font-size: var(--size-site-h3); line-height: var(--leading-site-h3); font-weight: 700; }
a, button, input, select, textarea, label { touch-action: manipulation; }
p { color: var(--ink-muted); text-wrap: pretty; }
main:focus { outline: none; }
#plan, #programs, #industries, #contact { scroll-margin-top: 3.5rem; }
.form-group input, .form-group select, .form-group textarea { scroll-margin-top: 5rem; }

.skip { position: absolute; left: 0.75rem; top: 0; z-index: 100; translate: 0 -200%; padding: 0.5rem 0.75rem; background: var(--bronze); color: var(--on-bronze); border-radius: var(--r-control); font-size: 0.875rem; font-weight: 600; }
.skip:focus-visible { translate: 0 0.5rem; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 var(--site-gutter); }
section { padding: var(--site-section) 0; border-bottom: 1px solid var(--line); }

/* Mono labels */
.eyebrow, .card-label, .level-type, .book-tag, .book-concept, .ind-tag, .contact-label, .tier-badge, .col-label, .what-we-teach span, .rn-icon, .form-group label {
  font-family: var(--type-mono);
  font-size: var(--size-label);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--bronze-deep); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; display: block; width: 1.5rem; height: 1px; background: var(--bronze-deep); }
.eyebrow.center { justify-content: center; }
.card-label, .level-type, .book-tag, .book-concept, .ind-tag, .contact-label, .tier-badge, .rn-icon { color: var(--bronze-deep); display: block; }

/* Mark */
.mark { display: block; width: 1.25rem; height: 1.25rem; flex: none; fill: var(--bronze); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--site-control-h); padding: 0 1.125rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  background: transparent; color: var(--ink);
  font-family: var(--type-sans); font-size: 0.875rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: var(--tracking-button);
  cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--easing-standard), border-color 150ms var(--easing-standard), color 150ms var(--easing-standard);
}
.btn:hover { background: var(--surface-sunk); }
.btn.solid { background: var(--bronze); border-color: var(--bronze); color: var(--on-bronze); }
.btn.solid:hover { background: color-mix(in oklab, var(--bronze) 88%, var(--ink)); border-color: transparent; }
/* The sticky header sits beside every section, so its call to action is the navy secondary: bronze stays one per view. */
header .btn.solid { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
header .btn.solid:hover { background: color-mix(in oklab, var(--navy) 88%, var(--ink)); }
.contact-book.btn.solid { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }   /* beside the form, whose submit is the primary */
.contact-book.btn.solid:hover { background: color-mix(in oklab, var(--navy) 88%, var(--ink)); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Header: one nav; below 640px the links and the call button collapse into a push-down panel. */
header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 3rem; column-gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; font-family: var(--type-display); font-weight: 800; font-size: 1.125rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--site-control-h); height: var(--site-control-h);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn:hover { background: var(--surface-sunk); }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.site-nav { flex-basis: calc(100% + 2 * var(--site-gutter)); margin: 0.5rem calc(-1 * var(--site-gutter)) 0; padding: 0.5rem var(--site-gutter) 1rem; border-top: 1px solid var(--line); }
.site-nav .links a { display: flex; align-items: center; min-height: 2.75rem; font-size: var(--size-site-body); color: var(--ink-muted); }
.site-nav .links a:hover { color: var(--ink); }
.site-nav .btn { width: 100%; margin-top: 0.5rem; }
@media (min-width: 640px) {
  .menu-btn { display: none; }
  .site-nav { display: flex; flex: 1 1 0; align-items: center; justify-content: flex-end; gap: 1.5rem; margin: 0; padding: 0; border-top: 0; }
  .site-nav .links { display: flex; gap: 1.5rem; margin-right: 0.5rem; }
  .site-nav .links a { min-height: 0; font-size: 0.8125rem; }
  .site-nav .btn { width: auto; margin-top: 0; }
}

/* Hero */
.hero { padding: 3rem 0 var(--site-section); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; text-wrap: balance; }
/* Hero headline: the largest display size that keeps it to three lines in its column (measured 2026-11-12). display-xl
   and display need the full row once the hero is two columns (900px+), a layout change still to be drawn. */
@media (min-width: 640px) and (max-width: 899px) { .hero h1 { font-size: var(--size-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); } }
.hero h1 em { font-style: normal; color: var(--bronze-deep); }
.hero .sub { font-size: 1.0625rem; max-width: 32rem; margin-bottom: 1.75rem; text-wrap: pretty; }
.hero-cta { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.hero-card { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 32rem; }
.hero-card .card-label { margin-bottom: 0.5rem; }
.hero-card h2 { margin-bottom: 0.375rem; font-size: var(--size-site-h3); line-height: 1.35; letter-spacing: -0.01em; }
.hero-card p { font-size: 0.875rem; margin-bottom: 1rem; }

/* Graded-calls figure: static and illustrative */
.graded { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.graded figcaption { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); font-family: var(--type-mono); font-size: var(--size-label); line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.graded li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.75rem; align-items: baseline; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.graded li:last-child { border-bottom: 0; }
.g-when, .g-len { display: none; }
.g-score { grid-column: 2; grid-row: 1; font-family: var(--type-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.g-score.good { color: var(--good); }
.g-score.ok { color: var(--ok); }
.g-score.bad { color: var(--bad); }
.g-note { grid-column: 1 / -1; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-len { font-family: var(--type-mono); font-size: 0.75rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.g-when { font-family: var(--type-mono); font-size: 0.75rem; color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) {
  .graded li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) 2.5rem 2rem minmax(0, 1.9fr); column-gap: 0.625rem; align-items: center; min-height: 2.5rem; padding-block: 0; }
  .g-when, .g-len { display: block; }
  .g-len { text-align: right; }
  .g-score { grid-column: auto; grid-row: auto; text-align: right; }
  .g-note { grid-column: auto; }
}
@media (max-width: 1099px) and (min-width: 900px) {
  .g-when { display: none; }
  .graded li { grid-template-columns: minmax(0, 1.2fr) 3rem 2.5rem minmax(0, 1.4fr); }
}

/* Grids of hairline cells */
.problem-levels, .framework-grid, .tiers, .industry-grid, .stakes-inner, .steps, .authority-list {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.level, .framework-card, .tier, .industry-cell, .authority-item, .step { background: var(--surface); padding: 1.5rem; }

.problem-head, .research-head, .plan-head, .programs-head, .industries-head, .stakes-head { margin-bottom: 2.5rem; max-width: 40rem; }
.problem-head h2, .research-head h2, .plan-head h2, .programs-head h2, .industries-head h2, .stakes-head h2, .guide-copy h2, .contact-copy h2, .cta-direct h2 { margin-bottom: 0.75rem; text-wrap: balance; }
.problem-levels { grid-template-columns: repeat(3, 1fr); }
.level h3 { margin-bottom: 0.5rem; }
.level .level-type { margin-bottom: 0.75rem; }

/* Guide */
.guide-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.guide-copy { max-width: 44rem; }
.guide-copy p { margin-bottom: 1rem; text-wrap: pretty; }
.guide-copy p strong { color: var(--ink); }
.authority-list { grid-template-columns: repeat(4, 1fr); }
.authority-item { display: flex; flex-direction: column; gap: 0.5rem; }
.a-num { font-family: var(--type-mono); font-size: var(--size-label); letter-spacing: 0.08em; color: var(--bronze-deep); font-variant-numeric: tabular-nums; }
.authority-item h3 { margin-bottom: 0.25rem; }

/* Research */
.framework-grid { grid-template-columns: repeat(3, 1fr); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.framework-grid.bottom-row { grid-template-columns: repeat(2, 1fr); border-top: 0; border-radius: 0; }
.framework-card .book-tag { margin-bottom: 0.75rem; }
.framework-card .book-title { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.framework-card .book-concept { color: var(--ink-muted); margin-bottom: 0.625rem; }
.framework-card p { font-size: 0.875rem; }
.what-we-teach { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.what-we-teach span { display: block; color: var(--ink-muted); margin-bottom: 0.375rem; }
.framework-card .what-we-teach p { color: var(--ink); }
.research-note { display: flex; gap: 1rem; align-items: center; background: var(--surface-sunk); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); padding: 1rem 1.5rem; }
.research-note p strong { color: var(--ink); }

/* Plan */
.plan-head { max-width: none; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step-num { font-family: var(--type-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--bronze-deep); margin-bottom: 0.625rem; }
.step h3 { margin-bottom: 0.5rem; }

/* Direct CTA */
.cta-direct { text-align: center; }
.cta-direct h2 { max-width: 34rem; margin: 0 auto 0.75rem; }
.cta-direct p { max-width: 30rem; margin: 0 auto 1.75rem; }
.cta-row { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }

/* Stakes */
.stakes-inner { grid-template-columns: 1fr 1fr; }
.stakes-col { padding: 1.5rem; }
.stakes-col.bad { background: var(--surface); box-shadow: inset 0 var(--rule-2) 0 var(--bad); }
.stakes-col.good { background: var(--surface); box-shadow: inset 0 var(--rule-2) 0 var(--good); }
.col-label { margin-bottom: 1rem; }
.stakes-col.bad .col-label { color: var(--bad); }
.stakes-col.good .col-label { color: var(--good); }
.stakes-col li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.625rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.stakes-col li:first-child { border-top: 0; }
.stakes-col li::before { flex-shrink: 0; font-size: 0.8125rem; margin-top: 0.15rem; }
.stakes-col.bad li::before { content: "✕"; color: var(--bad); }
.stakes-col.good li::before { content: "✓"; color: var(--good); }

/* Programs */
.tiers { grid-template-columns: repeat(3, 1fr); }
.tier { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.75rem 1.5rem; }
.tier.featured { box-shadow: inset 0 2px 0 var(--bronze-deep); }
.tier-price { font-family: var(--type-mono); font-size: var(--size-site-price); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier-price span { font-size: 0.75rem; letter-spacing: 0; color: var(--ink-muted); font-weight: 400; }
.tier-desc { color: var(--ink-muted); font-size: 0.875rem; }
.tier ul { flex: 1; }
.tier li { display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.5rem; background: var(--bronze-deep); }

/* Industries */
.industry-grid { grid-template-columns: repeat(4, 1fr); }
.industry-cell .ind-tag { margin-bottom: 0.75rem; }
.industry-cell h3 { margin-bottom: 0.375rem; }
.industry-cell p { font-size: 0.875rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-copy p { margin-bottom: 0; }
.contact-book { margin-top: 1.5rem; }
.contact-details { margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.875rem 0; border-bottom: 1px solid var(--line); }
.contact-item a, .contact-item span:not(.contact-label) { font-size: 0.875rem; color: var(--ink-muted); }
.contact-item a:hover { color: var(--ink); }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.125rem; }
.form-group label { color: var(--ink-muted); }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
  display: block; width: 100%; min-height: var(--site-control-h);
  padding: 0.5rem 0.75rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  font-family: var(--type-sans); font-size: var(--size-control); line-height: var(--leading-control);
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-muted); opacity: 0.8; }
.form-group textarea { resize: vertical; min-height: 6.5rem; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 1px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { padding-right: 2.25rem; cursor: pointer; }
.select-chevron { position: absolute; right: 0.75rem; top: 50%; translate: 0 -50%; color: var(--ink-muted); pointer-events: none; }
.checkbox-group { flex-direction: row; }
.form-group .checkbox-label { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; font-family: var(--type-sans); font-size: 0.875rem; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.checkbox-label input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.15rem; accent-color: var(--bronze-deep); cursor: pointer; }
.submit-btn { width: 100%; margin-top: 0.5rem; }
.form-note { margin-top: 0.75rem; font-size: 0.8125rem; text-align: center; }
.hp { display: none; }

/* Validation: native :user-invalid, plus aria-invalid set by site.js on submit. Separate rules so one unsupported selector cannot drop the rest. */
.field-error { display: none; font-size: 0.8125rem; line-height: 1.35; color: var(--bad); }
.form-group:has(:user-invalid) .field-error { display: block; }
.form-group:has([aria-invalid="true"]) .field-error { display: block; }
.form-group input:user-invalid, .form-group select:user-invalid, .form-group textarea:user-invalid { border-color: var(--bad); }
.form-group [aria-invalid="true"] { border-color: var(--bad); }
.form-error { margin-top: 0.5rem; padding: 0.625rem 0.75rem; border-left: 2px solid var(--bad); background: var(--surface); color: var(--ink); font-size: 0.875rem; }
.form-error[hidden] { display: none; }

.form-success { text-align: center; padding: 3rem 1rem; }
.form-success[hidden] { display: none; }
.success-icon { font-size: 2rem; color: var(--good); margin-bottom: 0.75rem; }
.form-success h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success h3:focus { outline: none; }

/* Footer */
footer { padding: 3rem 0; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.foot-left .logo { margin-bottom: 0.75rem; }
.foot-left p { max-width: 22rem; font-size: 0.875rem; }
.foot-right { font-family: var(--type-mono); font-size: 0.8125rem; text-align: right; color: var(--ink-muted); }
.foot-right a { color: var(--bronze-deep); }
.foot-right .copy { margin-top: 0.5rem; font-size: 0.75rem; }

@media (max-width: 899px) {
  .hero-inner, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .authority-list { grid-template-columns: repeat(2, 1fr); }
  .problem-levels, .steps, .tiers, .stakes-inner, .framework-grid, .framework-grid.bottom-row { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 639px) {
  .authority-list { grid-template-columns: 1fr; }
}

/* Motion: only the transitions above (color, background-color, border-color); nothing moves for people who ask for less. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
