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

:root {
  --ink: #1E293B;
  --paper: #FAF9F7;
  --muted: #5B677A;
  --accent: #FBBF24;
  --alert: #B91C1C;

  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --line-on-ink: color-mix(in srgb, var(--paper) 22%, var(--ink));

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  --step--1: 0.9375rem;
  --step-0: clamp(1rem, 0.9768rem + 0.0952vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.1036rem + 0.1905vw, 1.275rem);
  --step-2: clamp(1.325rem, 1.2484rem + 0.3143vw, 1.53125rem);
  --step-3: clamp(1.51875rem, 1.4004rem + 0.4857vw, 1.8375rem);
  --step-4: clamp(2rem, 1.7214rem + 1.1429vw, 2.75rem);

  --font-display: 'Quicksand', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1080px;
  --gutter: var(--sp-6);
  --measure: 824px;

  --r-sm: 8px;
  --r-md: 12px;

  --logo-h: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

.bars { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
video:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.signup a:focus-visible,
.enroll-band a:focus-visible,
.signup h3:focus-visible,
.signup button:focus-visible,
.signup input:focus-visible,
footer a:focus-visible {
  outline-color: var(--accent);
}
.signup .form-success a:focus-visible,
.signup .form-success h3:focus-visible {
  outline-color: var(--ink);
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: var(--sp-3);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
.nav-brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.nav-brand { padding-block: var(--sp-2); margin-block: calc(-1 * var(--sp-2)); }
.nav-brand img { max-height: var(--logo-h); width: auto; max-width: 100%; display: block; }
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a { text-decoration: none; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.nav-menu { display: none; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-weight: 800;
  font-size: var(--step--1);
  color: var(--ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}
.nav-menu[open] summary { border-color: var(--ink); }
.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-1) var(--gutter) var(--sp-3);
  display: grid;
}
.nav-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav-menu-panel a:last-child { border-bottom: none; }
.nav-menu-panel a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

section[id], [id].section, .anchor-alias { scroll-margin-top: var(--sp-8); }
.faq-item[id] { scroll-margin-top: var(--sp-9); }
.anchor-alias { display: block; }

.section { padding: var(--sp-8) var(--gutter); max-width: var(--container); margin: 0 auto; }
.section-narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.section .label, .section h2, .section-desc, .platform-note { text-align: center; }
.section h2 { font-size: var(--step-3); margin-bottom: var(--sp-3); text-wrap: balance; }
.section-desc { font-size: var(--step-0); color: var(--muted); max-width: 60ch; margin: 0 auto var(--sp-6); }
.section-narrow .section-desc { max-width: none; }
.section-narrow .section-desc + .section-desc { margin-top: calc(-1 * var(--sp-5)); }

.hero-wrap { border-bottom: 1px solid var(--line); }
.hero { padding: var(--sp-9) var(--gutter) var(--sp-8); max-width: var(--container); margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: 1px solid var(--line);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--step--1);
  font-weight: 800;
  margin-bottom: var(--sp-5);
}
.hero h1 { font-size: var(--step-4); letter-spacing: -0.02em; margin-bottom: var(--sp-4); text-wrap: balance; }
.hero .subtitle { font-size: var(--step-1); color: var(--muted); max-width: 52ch; margin: 0 auto var(--sp-6); }
.hero-cta { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.hero .boilerplate { font-size: var(--step--1); color: var(--muted); max-width: 72ch; margin: var(--sp-5) auto 0; }
.hero .boilerplate + .boilerplate { margin-top: var(--sp-1); }
.hero .boilerplate a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.btn-primary, .btn-secondary {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: inherit;
  font-size: var(--step-0);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.signup .btn-primary:hover, footer .btn-primary:hover { background: var(--paper); color: var(--ink); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.stack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.tool-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--ink); }
.tool-logo { max-height: var(--sp-7); width: auto; display: block; align-self: flex-start; margin-bottom: var(--sp-4); }
.tool-body { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink); margin-bottom: var(--sp-5); }
.tool-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: 800;
  font-size: var(--step-0);
  color: var(--ink);
  text-underline-offset: 4px;
}
.tool-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-md); }
.tool-link svg { transition: transform 0.2s; }
.tool-link:hover svg, .tool-card:hover .tool-link svg { transform: translateX(3px); }

.calc-lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  text-align: center;
  margin: 0 auto var(--sp-3);
}
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calc-inputs, .calc-results { padding: var(--sp-6); min-width: 0; display: grid; align-content: start; }
.calc-inputs { gap: var(--sp-5); border-right: 1px solid var(--line); }
.calc-results { gap: var(--sp-5); }

.calc-field .calc-hint { margin-top: var(--sp-1); }
.calc-field > label, .calc-slider label {
  display: block;
  font-weight: 800;
  font-size: var(--step-0);
  margin-bottom: var(--sp-2);
}
.calc-money { position: relative; }
.calc-money span {
  position: absolute;
  left: var(--sp-4); top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.calc-field input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font: 700 var(--step-1)/1.4 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--muted);
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}
.calc-money input { padding-left: var(--sp-6); }
.calc-field input:focus { border-color: var(--ink); }
.calc-field input[aria-invalid="true"] { border-color: var(--alert); }
.calc-error { color: var(--alert); font-size: var(--step--1); font-weight: 700; margin-top: var(--sp-1); }

.calc-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); }
.calc-slider-head label { margin-bottom: 0; }
.calc-slider-head output {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
}
.calc-slider input[type="range"] {
  --range: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  cursor: pointer;
  background: transparent;
  touch-action: pan-y;
}
.calc-staffing input[type="range"] { --range: var(--muted); }
.calc-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--range) 0 var(--fill, 50%), var(--line) var(--fill, 50%) 100%);
}
.calc-slider input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.calc-slider input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--range); }
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--range);
}
.calc-slider input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--range);
}
@media (pointer: coarse) {
  .calc-slider input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -11px; }
  .calc-slider input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; }
}
.calc-figures { font-size: var(--step-0); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-hint { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-1); }
.calc-reset {
  justify-self: start;
  background: none;
  border: none;
  min-height: 44px;
  padding: var(--sp-2) 0;
  font: 700 var(--step--1) var(--font-body);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.calc-k { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-bottom: var(--sp-1); }
.calc-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc-sub { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; margin-top: var(--sp-1); }

.calc-bar {
  position: relative;
  display: flex;
  height: 24px;
  border-radius: var(--r-sm);
  background: var(--line);
  overflow: hidden;
}
.calc-bar .seg { display: block; height: 100%; min-width: 0; transition: width 0.2s; }
.calc-bar .seg + .seg { box-shadow: inset 2px 0 0 var(--paper); }
.seg-facilities { width: var(--w-facilities, 15%); background: var(--ink); }
.seg-staffing   { width: var(--w-staffing, 60%);   background: var(--muted); }
.seg-remaining  { width: var(--w-remaining, 25%);  background: var(--accent); }
.calc-bar .seg-deficit {
  position: absolute;
  top: 0; right: 0;
  width: var(--w-deficit, 0%);
  background: var(--alert);
  box-shadow: none;
}
.calc-mark {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--revenue-mark, 100%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
  display: none;
}
.calc[data-status="over"] .calc-mark { display: block; }

.calc-legend { list-style: none; display: grid; gap: var(--sp-2); }
.calc-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
}
.calc-legend li[hidden] { display: none; }
.calc-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.calc-legend .pct { font-weight: 800; min-width: 3.4em; text-align: right; }
.calc-legend .amt { font-weight: 700; min-width: 7.5em; text-align: right; }
.sw-facilities { background: var(--ink); }
.sw-staffing { background: var(--muted); }
.sw-remaining { background: var(--accent); }
.sw-deficit { background: var(--alert); }
.calc-legend li.is-deficit, .calc-legend li.is-deficit .amt { color: var(--alert); font-weight: 800; }

.calc-remaining {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
}
.calc[data-status="over"] .calc-remaining { border-left-color: var(--alert); }
.calc-remaining-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calc[data-status="over"] .calc-remaining-figure { color: var(--alert); }
.calc-remaining-figure small { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.calc-remaining > p:not(.calc-k):not(.calc-remaining-figure):not(.calc-caveat) { margin-top: var(--sp-2); font-size: var(--step--1); }
.calc-remaining > .calc-caveat { margin-top: var(--sp-3); }
.calc-caveat { font-size: var(--step-0); }
.calc-assume {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}

.calc-guide {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-6);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.5;
  position: relative;
}
.calc-guide::before {
  content: '';
  position: absolute;
  left: var(--sp-4); top: calc(var(--sp-3) + 0.4em);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.calc-guide p { grid-area: 1 / 1; visibility: hidden; }
.calc[data-status="ok"] .calc-guide [data-when="ok"],
.calc[data-status="tight"] .calc-guide [data-when="tight"],
.calc[data-status="over"] .calc-guide [data-when="over"] { visibility: visible; }
.calc[data-status="tight"] .calc-guide { border-color: var(--accent); }
.calc[data-status="tight"] .calc-guide::before { background: var(--accent); }
.calc[data-status="over"] .calc-guide { border-color: var(--alert); color: var(--alert); }
.calc[data-status="over"] .calc-guide::before { background: var(--alert); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.calc-note { max-width: 72ch; margin: var(--sp-4) auto 0; font-size: var(--step--1); }
.calc-be-wrap { margin-top: var(--sp-8); }
.calc-be-wrap > h3 { font-size: var(--step-2); margin-bottom: var(--sp-2); text-align: center; }
.calc-be-sentence { font-size: var(--step-0); font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-cta { text-align: center; margin-top: var(--sp-8); }
.calc-cta h3 { font-size: var(--step-2); margin-bottom: var(--sp-2); text-wrap: balance; }
.calc-cta p { color: var(--muted); max-width: 56ch; margin: 0 auto var(--sp-5); }
.calc-cta .btn-primary { justify-content: center; }

.calc-be-next { font-size: var(--step--1); font-weight: 700; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
.calc-be-next a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.enroll-band {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--sp-8);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--sp-8);
  align-items: center;
}
.enroll-band .label { color: var(--accent); }
.enroll-band h2 { color: var(--paper); font-size: var(--step-3); margin-bottom: var(--sp-3); }
.enroll-text p { max-width: 52ch; margin-bottom: var(--sp-3); }
.enroll-text .enroll-note { font-size: var(--step--1); font-weight: 700; margin-bottom: var(--sp-5); }
.enroll-band .btn-secondary { background: var(--ink); color: var(--paper); border-color: var(--paper); }
.enroll-band .btn-secondary:hover { background: var(--paper); color: var(--ink); }
.enroll-shot { margin: 0; }
.enroll-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.enroll-shot figcaption { font-size: var(--step--1); margin-top: var(--sp-2); text-align: center; }

.platform-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-5); }
.platform-jobs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.platform-jobs li {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--step-0);
  color: var(--muted);
}
.platform-jobs strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: var(--sp-1);
}
.platform-qbo {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  font-size: var(--step-0);
}
.platform-qbo p + p { margin-top: var(--sp-2); color: var(--muted); }
.platform-qbo a { color: var(--ink); font-weight: 800; }
.tools-gift { max-width: var(--measure); margin: var(--sp-7) auto 0; padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; font-size: var(--step-0); color: var(--muted); }
.tools-gift strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--step-1); margin-bottom: var(--sp-2); }
.platform-film { margin: var(--sp-6) 0; }
.platform-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--r-md); }
.platform-film figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-3); text-align: center; }

.signup { padding: var(--sp-8) var(--gutter); background: var(--ink); color: var(--paper); }
.cohort-hero { max-width: var(--measure); margin: 0 auto; text-align: center; }
.cohort-status { font-size: var(--step--1); font-weight: 800; color: var(--accent); margin-bottom: var(--sp-2); }
.cohort-hero h2 { color: var(--paper); font-size: var(--step-3); margin-bottom: var(--sp-4); }
.cohort-hero > p { color: var(--paper); font-size: var(--step-0); max-width: 56ch; margin: 0 auto var(--sp-4); }
.signup-form-wrap {
  max-width: 560px;
  margin: var(--sp-6) auto 0;
}
.signup-form-wrap h3 { color: var(--paper); text-align: center; font-size: var(--step-2); margin-bottom: var(--sp-5); }
#apply-heading { scroll-margin-top: var(--sp-9); }
#signup { scroll-margin-top: calc(var(--sp-9) + var(--sp-7)); }
.hp { display: none; }

.signup-form { display: grid; gap: var(--sp-4); text-align: left; }
.form-group { display: flex; flex-direction: column; }
.form-group > label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: var(--sp-1);
}
.form-group input[type="text"], .form-group input[type="email"], .form-group select {
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--paper);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  width: 100%;
}
.form-group input::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.form-group select option { background: var(--paper); color: var(--ink); }
.form-submit { width: 100%; justify-content: center; margin-top: var(--sp-1); }
.form-submit:disabled, .form-submit:disabled:hover { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.form-help { color: var(--paper); font-size: var(--step--1); text-align: center; }
.form-help a { color: var(--accent); font-weight: 700; }
.form-success {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.form-success h3 { margin-bottom: var(--sp-2); font-size: var(--step-2); }
.form-success p { font-size: var(--step-0); }
.form-success a { font-weight: 700; }
.form-error {
  background: var(--alert);
  color: var(--paper);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--step--1);
}
.form-error a { color: var(--paper); font-weight: 700; }
.signup-form[hidden], .form-success[hidden], .form-error[hidden] { display: none; }

.faq-grid { display: grid; margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 48px;
  padding: var(--sp-4) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: var(--step-2); font-weight: 700; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item h3 { font-size: var(--step-1); }
.faq-item p { font-size: var(--step-0); color: var(--muted); padding-bottom: var(--sp-5); }
.faq-item a { color: var(--ink); font-weight: 700; }

.founder-intro .section-desc { margin-bottom: var(--sp-5); }
.founder-link { text-align: center; }
.founder-link a { font-weight: 800; color: var(--ink); text-underline-offset: 4px; }
.founder-link a::after { content: ' \2192'; }

.backing { text-align: center; }
.backing h2 { font-size: var(--step-2); }
.backing p { color: var(--muted); font-size: var(--step-0); max-width: 60ch; margin: 0 auto var(--sp-5); }
.backing p a { color: var(--ink); font-weight: 700; }
.backers { display: flex; justify-content: center; align-items: flex-start; gap: var(--sp-8); flex-wrap: wrap; margin-top: var(--sp-6); }
.backer-group { display: flex; flex-direction: column; align-items: center; }
.backing .backer-label { font-size: var(--step--1); font-weight: 700; margin: 0 0 var(--sp-4); }
.partner-row { display: flex; justify-content: center; align-items: flex-start; gap: var(--sp-7); flex-wrap: wrap; }
.partner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-decoration: none; max-width: 240px; }
.partner-mark { height: 76px; display: flex; align-items: center; justify-content: center; }
.partner-mark img { object-fit: contain; }
.partner-name { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.partner:hover .partner-name { color: var(--ink); }

footer { background: var(--ink); color: var(--paper); padding: var(--sp-7) 0 var(--sp-6); }
.footer-inner { max-width: var(--container); padding-inline: var(--gutter); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: minmax(19rem, 2fr) repeat(4, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--line-on-ink); }
.footer-brand img { height: var(--logo-h); width: auto; display: block; margin-bottom: var(--sp-3); }
.footer-brand p { font-size: var(--step--1); max-width: 40ch; }
.footer-col h2 { color: var(--paper); font-family: var(--font-body); font-weight: 800; font-size: var(--step--1); margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; display: grid; gap: var(--sp-2); }
.footer-col a { color: var(--paper); text-decoration: none; font-size: var(--step--1); }
.footer-col a:hover { text-decoration: underline; }
.footer-col .footer-icon { display: inline-flex; padding: var(--sp-1); margin: calc(var(--sp-1) * -1); }
.footer-col .footer-icon:hover { color: var(--accent); }
.footer-bottom { padding-top: var(--sp-5); text-align: center; }
.footer-bottom a { color: var(--accent); text-decoration: none; font-weight: 700; }
.footer-legal { font-size: var(--step--1); margin-top: var(--sp-3); }

.newsletter { margin-top: var(--sp-6); }
.newsletter-heading { color: var(--paper); font-size: var(--step-1); margin-bottom: var(--sp-1); }
.footer-brand .newsletter-blurb { margin-bottom: var(--sp-4); }

.about-lead p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; margin: 0 auto var(--sp-4); }
.about-lead p:last-child { color: var(--ink); font-weight: 700; margin-bottom: 0; }
.incubator { display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-6); align-items: start; }
.incubator img { width: 120px; height: auto; display: block; }
.incubator p { color: var(--muted); }
.incubator p + p { margin-top: var(--sp-4); }
.incubator h2 { text-align: left !important; }
.roles { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-5); font-size: var(--step--1); }
.roles li { display: flex; gap: var(--sp-3); align-items: baseline; }
.roles li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--ink); transform: translateY(-2px); }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.person {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
}
.person h3 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.person-roles { list-style: none; margin-bottom: var(--sp-4); }
.person-roles li { font-weight: 700; font-size: var(--step--1); color: var(--muted); }
.person-roles li:first-child { color: var(--ink); }
.person p { font-size: var(--step-0); }
.person p + p { margin-top: var(--sp-4); }
.person .person-aside {
  margin-top: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.person-aside strong { color: var(--ink); }
.person-contact {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: auto;
  padding-top: var(--sp-5);
}
.person-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  color: var(--ink);
  text-underline-offset: 4px;
}

.values { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-5); }
.values li {
  grid-column: span 2;
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-4);
}
.values li:nth-child(4) { grid-column: 2 / span 2; }
.values h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.values p { font-size: var(--step-0); color: var(--muted); }

.about-contact { text-align: center; }
.about-contact .section-desc { margin-bottom: var(--sp-5); }

.legal-hero h1 { margin-bottom: var(--sp-2); }
.legal-hero .legal-updated { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-bottom: var(--sp-4); }
.legal-hero p:last-child { font-size: var(--step-1); max-width: 60ch; margin: 0 auto; }
.section.legal h2 { text-align: left; font-size: var(--step-2); margin: var(--sp-6) 0 var(--sp-2); }
.section.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--step-1); margin: var(--sp-5) 0 var(--sp-1); }
.legal p, .legal li { font-size: var(--step-0); }
.legal p + p { margin-top: var(--sp-3); }
.legal ul { margin: var(--sp-2) 0 var(--sp-2) var(--sp-5); display: grid; gap: var(--sp-1); }
.legal a { font-weight: 700; }

.section.guide { padding-block: var(--sp-7); border-top: 1px solid var(--line); }
.section.guide:first-of-type { border-top: none; }
.section.guide .label, .section.guide h2 { text-align: left; }
.section.guide h2 { font-size: var(--step-3); margin-bottom: var(--sp-3); }
.guide h3 { font-size: var(--step-1); margin: var(--sp-6) 0 var(--sp-3); }
.guide p + p, .guide p + .guide-formula, .guide-formula + table { margin-top: var(--sp-3); }
.guide a { font-weight: 700; text-underline-offset: 3px; }
.guide-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-3); }

.guide-steps { list-style: none; counter-reset: step; margin: var(--sp-5) 0 0; border-top: 1px solid var(--line); }
.guide-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: var(--sp-6) 1fr auto;
  gap: var(--sp-3);
  align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}
.guide-steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.guide-steps a { text-decoration: none; padding-block: var(--sp-1); }
.guide-steps a:hover { text-decoration: underline; }
.guide-steps span { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }

.guide-dates { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.guide-dates li { border-top: 2px solid var(--ink); padding-top: var(--sp-2); }
.guide-numbers { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.guide-dates strong, .guide-dates span { display: block; }
.guide-dates span { color: var(--muted); font-size: var(--step--1); }

.guide-cards { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.guide-cards li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); }
.guide-cards strong { display: block; }

.guide-list { margin: var(--sp-3) 0 var(--sp-4) var(--sp-5); }
.guide-list li + li { margin-top: var(--sp-2); }

.guide-callout { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--r-sm); }
.guide-uses { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-3) 0; }
.guide-uses li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-1) var(--sp-3); font-size: var(--step--1); font-weight: 700; }
.guide-story p:first-child { border-left: 2px solid var(--ink); padding-left: var(--sp-4); }
.guide-share { margin-top: var(--sp-4); }
.guide-formula { font-weight: 700; border-left: 2px solid var(--accent); padding-left: var(--sp-3); }
.guide-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.guide-table th, .guide-table td { text-align: left; padding: var(--sp-2) var(--sp-3) var(--sp-2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table td:last-child, .guide-table th:last-child { text-align: right; padding-right: 0; font-weight: 700; }

.guide-copy { position: relative; margin: var(--sp-3) 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-sm); }
.guide-copy pre {
  font-family: var(--font-body);
  font-size: var(--step--1);
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: var(--sp-7) var(--sp-4) var(--sp-4);
}
.copy-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  font: 800 var(--step--1) var(--font-body);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); }

.guide-example { margin: var(--sp-4) 0; border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); }
.guide-example summary { list-style: none; cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.guide-example summary::-webkit-details-marker { display: none; }
.guide-example summary::after { content: '+'; font-size: var(--step-2); line-height: 1; }
.guide-example[open] summary::after { content: '\2212'; }
.guide-example blockquote { border-left: 2px solid var(--ink); padding-left: var(--sp-4); margin-top: var(--sp-3); display: grid; gap: var(--sp-3); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .stack-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--line); }
  .people { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li, .values li:nth-child(4) { grid-column: auto; }
  .values li:last-child { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: var(--sp-4); }
  .hero { padding: var(--sp-9) var(--gutter) var(--sp-7); }
  .section { padding: var(--sp-7) var(--gutter); }
  .signup { padding: var(--sp-7) var(--gutter); }
  .platform-jobs { grid-template-columns: 1fr; }
  .enroll-band { grid-template-columns: 1fr; gap: var(--sp-6); padding-block: var(--sp-7); }
  .enroll-shot { max-width: 280px; margin-inline: auto; }
  .footer-top { gap: var(--sp-5); }
  .partner-row, .backers { gap: var(--sp-6); }
  .incubator { grid-template-columns: 1fr; gap: var(--sp-4); }
  .incubator img { width: 88px; }
  .values { grid-template-columns: 1fr; }
  .values li:last-child { grid-column: auto; }
  .person { padding: var(--sp-5); }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .calc-inputs, .calc-results { padding: var(--sp-5) var(--sp-4); }
  .calc-legend li { grid-template-columns: 12px 1fr auto; }
  .calc-legend .amt { grid-column: 2 / -1; text-align: left; min-width: 0; margin-top: calc(-1 * var(--sp-2)); color: var(--muted); }
}
@page guide {
  size: letter;
  margin: 0.6in 0.65in 0.75in;
  @bottom-left { content: "SchoolStack  ·  Year-end giving, in one afternoon  ·  schoolstack.ai/giving"; font: 8pt Inter, sans-serif; color: #5B677A; }
  @bottom-right { content: counter(page) " of " counter(pages); font: 8pt Inter, sans-serif; color: #5B677A; }
}
@page ready {
  size: letter;
  margin: 0.6in 0.65in 0.75in;
  @bottom-left { content: "SchoolStack  ·  Get ready for SchoolStack  ·  schoolstack.ai/ready"; font: 8pt Inter, sans-serif; color: #5B677A; }
  @bottom-right { content: counter(page) " of " counter(pages); font: 8pt Inter, sans-serif; color: #5B677A; }
}
@media print {
  html:has(body.guide-page) { font-size: 15px; }
  .guide-page { page: guide; background: #fff; }
  .guide-page nav { position: static; padding: 0 0 var(--sp-3); border-bottom: 2px solid var(--ink); background: none; }
  .guide-page nav::after { content: "schoolstack.ai/giving"; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
  .guide-page.ready-page { page: ready; }
  .ready-page nav::after { content: "schoolstack.ai/ready"; }
  .ready-page #checklist { padding-top: var(--sp-2); }
  .ready-page #checklist h2 { margin-bottom: 0; }
  .ready-page .guide-cards li { padding: var(--sp-2) var(--sp-3); }
  .guide-page.ready-page .hero { padding-bottom: 0; }
  .guide-page .nav-links, .guide-page .nav-menu, .guide-page .skip-link, .guide-page .hero-cta, .guide-page .copy-btn, .guide-page #share, .guide-page .about-contact .btn-primary, .guide-page .footer-top { display: none; }
  .guide-page main { padding-top: 0; }
  .guide-page .hero { padding: var(--sp-5) 0 var(--sp-3); }
  .guide-page .guide-steps li { padding-block: var(--sp-1); }
  .guide-page .guide-cards { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .guide-page .hero h1 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
  .guide-page .hero .subtitle { font-size: var(--step-0); margin-bottom: 0; }
  .guide-page #plan { padding-top: var(--sp-3); }
  .guide-page .hero-wrap { border-bottom: none; }
  .guide-page .section { padding-inline: 0; max-width: none; }
  .guide-page .section.guide { padding-block: var(--sp-5); }
  .guide-page h2, .guide-page h3, .guide-page .label { break-after: avoid; }
  .guide-page #gifts, .guide-page #amounts, .guide-page #list, .guide-page #write, .guide-page #send, .guide-page #thanks { break-before: page; border-top: none; padding-top: 0; }
  .guide-page .section.guide h2 + p { break-after: avoid; }
  .guide-page .guide-cards li, .guide-page .guide-copy, .guide-page .guide-callout, .guide-page .guide-example, .guide-page .guide-table, .guide-page .guide-steps li, .guide-page .guide-dates, .guide-page .guide-list li, .guide-page .guide-formula { break-inside: avoid; }
  .guide-page .guide-copy pre { padding-top: var(--sp-3); }
  .guide-page .guide-example summary::after { content: none; }
  .guide-page .guide a[data-print]::after { content: " (" attr(data-print) ")"; font-weight: 400; font-size: 0.85em; color: var(--muted); }
  .guide-page .guide a[href="/go/budget"]::after { content: " (budget.schoolstack.ai)"; font-weight: 400; font-size: 0.85em; color: var(--muted); }
  .guide-page .about-contact { padding-block: var(--sp-4) 0; break-inside: avoid; }
  .guide-page .about-contact .section-desc { margin-bottom: var(--sp-3); }
  .guide-page .about-contact h2 { font-size: var(--step-2); }
  .guide-page .about-contact .section-desc::after { content: " Sign up for early access at schoolstack.ai."; color: var(--ink); font-weight: 700; }
  .guide-page footer { background: none; color: var(--ink); padding: 0; break-inside: avoid; }
  .guide-page .footer-inner { padding-inline: 0; }
  .guide-page .footer-bottom { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .guide-page .footer-legal { margin-top: var(--sp-1); }
  .guide-page .footer-bottom p { font-size: 8.5pt; }
  .guide-page .footer-bottom a { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
