/* ==========================================================================
   Charter Enrollment Partners
   Layout: alternating brand-blue "bands" and paper "sections", following
   the pitch deck. One centered container; grids collapse to one column.
   ========================================================================== */

:root {
  /* Brand constants (same in both themes) */
  --gold: #ffc845;
  --orange: #f5921e;
  --navy: #0b1f5c;

  /* Paper sections */
  --bg: #f2f5fc;
  --bg-alt: #e9eef9;
  --surface: #ffffff;
  --ink: #0b1f5c;
  --ink-muted: #45557f;
  --line: #d6deef;
  --warm-ink: #b35a00;          /* orange text on light paper, AA contrast */
  --table-head: #eceff6;
  --table-soft: #e6edfb;

  /* Blue bands */
  --band-from: #04216b;
  --band-to: #0d47a1;
  --band-ink: #f5f8ff;
  --band-muted: #c3cfee;
  --band-card: rgb(255 255 255 / 0.06);
  --band-card-strong: rgb(255 255 255 / 0.1);
  --band-line: rgb(255 255 255 / 0.18);

  /* Header */
  --header-bg: rgb(4 28 92 / 0.92);

  /* Feedback */
  --error: #b42318;
  --success: #067647;

  /* Type */
  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.9rem);
  --step-num: clamp(2.8rem, 2rem + 4vw, 5rem);

  /* Space & shape */
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.25rem;
  --shadow: 0 1px 2px rgb(11 31 92 / 0.06), 0 8px 24px -12px rgb(11 31 92 / 0.18);

  color-scheme: light;  /* The brand look is fixed: blue bands on white paper, as in the deck */
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the area behind a phone's status bar to match the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--band-from);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
strong { font-weight: 600; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.sprite { position: absolute; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 0.75rem); }

.container {
  width: 100%;
  max-width: calc(74rem + 2 * 2rem);
  margin-inline: auto;
  padding-left: max(16px, 2rem, env(safe-area-inset-left, 0px));
  padding-right: max(16px, 2rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 40rem) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}

section[id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* ---------- Shared text pieces ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-warm { color: var(--warm-ink); }

.label {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-ink);
}
.band .label { color: var(--gold); }

.fine {
  font-size: var(--step--1);
  color: var(--ink-muted);
  max-width: 70ch;
}
.band .fine { color: var(--band-muted); }

.section-head {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head > p:not(.eyebrow) { color: var(--ink-muted); font-size: var(--step-1); max-width: 62ch; }
.band .section-head > p:not(.eyebrow) { color: var(--band-muted); }

.section-foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: var(--step-1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 160ms ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd56e; }

.btn-ghost { border-color: var(--band-line); color: var(--band-ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--warm-ink); color: var(--warm-ink); }

.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg { transition: none; }
  .btn:hover svg { transform: none; }
}

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--band-line);
  color: var(--band-ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}
.brand-mark svg { width: 1.35rem; height: 1.35rem; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.15;
  color: var(--band-ink);
}
.brand-name span { color: var(--gold); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--band-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.site-nav a:not(.btn):hover { color: var(--band-ink); background: var(--band-card-strong); }
.site-nav a[aria-current] { color: var(--gold); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--band-line);
  border-radius: 50%;
  background: transparent;
  color: var(--band-ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 56rem) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--band-from);
    border-bottom: 1px solid var(--band-line);
    padding-block: 0.75rem 1.25rem;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav a:not(.btn) { display: block; padding: 0.8rem 0.75rem; font-size: 1.05rem; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; min-height: 3rem; }
}

/* ---------- Bands (blue) and sections (paper) ---------- */

.band {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-section);
  color: var(--band-ink);
  background:
    linear-gradient(115deg, rgb(255 255 255 / 0.05) 0 32%, transparent 32% 100%),
    linear-gradient(160deg, var(--band-from), var(--band-to));
}

.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-alt); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4rem); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }

.hero-title {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--gold); }

.lede { font-size: var(--step-1); color: var(--band-muted); max-width: 56ch; font-weight: 300; }
.hero-split { font-size: var(--step-1); max-width: 56ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 24rem;
  justify-self: end;
}
.orb { position: absolute; border-radius: 50%; display: grid; place-items: center; }
.orb-orange {
  inset: 0 0 auto auto;
  width: 88%;
  aspect-ratio: 1;
  background: var(--orange);
  color: var(--navy);
  z-index: 2;
}
.orb-orange svg { width: 36%; height: 36%; }
.orb-gold {
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1;
  background: var(--gold);
  z-index: 1;  /* sits behind the big circle so it never covers the cap */
}

@media (prefers-reduced-motion: no-preference) {
  .orb-orange { animation: float 9s ease-in-out infinite; }
  .orb-gold { animation: float 9s ease-in-out infinite reverse; }
  @keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
  }
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  background: var(--band-card);
}
.guarantee-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}
.guarantee-seal svg { width: 1.8rem; height: 1.8rem; }
.guarantee-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--gold);
}
.guarantee-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.2;
}

@media (max-width: 48rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
}

/* ---------- Problems ---------- */

.problems { display: grid; gap: 1rem; }

.problem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.problem h3 { font-size: var(--step-1); font-weight: 700; }
.problem p { color: var(--ink-muted); }

.problem-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 48rem) {
  .problem { grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem 1rem; padding: 1.25rem; }
  .problem p { grid-column: 2; }
}

/* ---------- Path table ---------- */

.table-wrap { overflow-x: auto; min-width: 0; }

.path-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--band-card);
  text-align: left;
}
.path-table th,
.path-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--band-line); vertical-align: top; }
.path-table tbody tr:last-child > * { border-bottom: 0; }
.path-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
  background: var(--band-card-strong);
}
.path-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}
.path-table td { color: var(--band-muted); }
.fine.fine-wide { max-width: none; }
.path-table td:last-child { color: var(--band-ink); }


/* Stack each row into a card on narrow screens */
@media (max-width: 44rem) {
  .path-table,
  .path-table tbody,
  .path-table tr,
  .path-table th,
  .path-table td { display: block; }
  .path-table { border: 0; background: none; border-radius: 0; overflow: visible; }
  .path-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .path-table tbody { display: grid; gap: 0.75rem; }
  .path-table tr {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--band-line);
    border-radius: var(--radius);
    background: var(--band-card);
  }
  .path-table th,
  .path-table td { padding: 0; border: 0; }
  .path-table tbody th { margin-bottom: 0.6rem; font-size: 1.1rem; white-space: normal; }
  .path-table td + td { margin-top: 0.5rem; }
  .path-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
  }
}

.path-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--band-line);
  color: var(--band-muted);
}
.path-note strong { color: var(--band-ink); }

/* ---------- Two-column role cards ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.role-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.role-card > p { color: var(--ink-muted); }
.role-card .role-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.checklist { display: grid; gap: 0.8rem; }
.checklist li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: var(--step-1);
}
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: 0.2em; color: var(--warm-ink); }

@media (max-width: 44rem) {
  .roles { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Results ---------- */

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  background: var(--band-card);
}
.result > div { display: grid; gap: 0.4rem; }
.result-num {
  font-family: var(--font-display);
  font-size: var(--step-num);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.quote {
  margin: 1.25rem 0 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--gold), var(--orange));
  color: var(--navy);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: var(--step-2);
  line-height: 1.35;
  font-weight: 500;
  max-width: 48ch;
}
.quote figcaption {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

@media (max-width: 52rem) {
  .results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 26rem) {
  .result { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.founder-side { display: grid; gap: 1.25rem; }
.founder-side h2 { font-size: var(--step-3); font-weight: 700; margin-top: -0.5rem; }

/* Placeholder for a photo of Chris. Replace the initials with an <img>. */
.founder-portrait {
  display: grid;
  place-items: center;
  width: clamp(6rem, 5rem + 4vw, 8rem);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), var(--orange));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  overflow: hidden;
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }

.founder-stat {
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #f5f8ff;
}
.founder-stat-num {
  font-family: var(--font-display);
  font-size: var(--step-num);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.founder-story {
  display: grid;
  gap: 1.25rem;
  font-size: var(--step-1);
  color: var(--ink-muted);
  max-width: 60ch;
  padding-top: 2.4rem;
}
.founder-lead { color: var(--ink); font-weight: 500; }
.founder-sign {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--warm-ink);
}

@media (max-width: 48rem) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-story { padding-top: 0; }
}

/* ---------- Baseline ---------- */

.baseline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.baseline-tile {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--band-line);
  border-radius: var(--radius);
  background: var(--band-card);
  color: var(--band-muted);
}
.baseline-num {
  font-family: var(--font-display);
  font-size: var(--step-num);
  font-weight: 800;
  line-height: 1;
  color: var(--band-ink);
  font-variant-numeric: tabular-nums;
}
.baseline-tile-hot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy);
}
.baseline-tile-hot .baseline-num { color: var(--navy); }

.baseline-bar {
  display: flex;
  height: 2.25rem;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.baseline-bar span { display: flex; align-items: center; width: var(--w); padding-inline: 0.9rem; white-space: nowrap; }
.baseline-bar-base { background: var(--band-card-strong); color: var(--band-muted); }
.baseline-bar-extra { justify-content: center; padding-inline: 0 !important; background: var(--gold); color: var(--navy); min-width: 3rem; }

.baseline-claim {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

@media (max-width: 40rem) {
  .baseline { grid-template-columns: minmax(0, 1fr); }
  .baseline-tile { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
  .baseline-num { font-size: var(--step-3); min-width: 4ch; }
}

/* ---------- Fee ---------- */

.fee {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 1rem + 3vw, 4rem);
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--band-from), var(--band-to));
  color: var(--band-ink);
}
.fee-amount {
  max-width: 17rem;
  font-size: var(--step-0);
  line-height: 1.45;
  color: var(--band-muted);
}
.fee-amount span {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.fee-text { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.fee-sub { margin-top: 0.5rem; color: var(--band-muted); }

@media (max-width: 40rem) {
  .fee { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Form fields (contact form) ---------- */

.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.optional { font-weight: 400; color: var(--ink-muted); }

input, textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;  /* 16px+ prevents iOS zoom on focus */
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; min-height: 7rem; }
input:hover, textarea:hover { border-color: var(--ink-muted); }
input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--warm-ink);
  box-shadow: 0 0 0 3px rgb(245 146 30 / 0.3);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

/* ---------- One more student ---------- */

.equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}
.eq-tile {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  min-width: 0;
}
.eq-num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.eq-tile-dark { background: var(--navy); border-color: var(--navy); color: #c3cfee; }
.eq-tile-dark .eq-num { color: var(--gold); }
.eq-op { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--orange); }

.three-year {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--gold), var(--orange));
  color: var(--navy);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
}
.three-year-num {
  font-family: var(--font-display);
  font-size: var(--step-num);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
  .equation { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .eq-op { justify-self: center; line-height: 1; }
  .three-year { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

/* ---------- Cash flow table ---------- */

.cash-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.cash-table th,
.cash-table td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
}
.cash-table thead th {
  background: var(--table-head);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
}
.cash-table tbody th { text-align: left; font-weight: 500; }
.cash-table td { text-align: right; white-space: nowrap; }
.cash-table .row-strong > * { font-weight: 700; }
.cash-table .row-soft > * { background: var(--table-soft); }

.cash-claim {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}

/* ---------- Steps + contact ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.steps li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--gold);
}
.step-big {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}
.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { color: var(--band-muted); }

@media (max-width: 44rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--band-line);
}
.contact-info { display: grid; align-content: start; gap: 1rem; }
.contact-title { font-size: var(--step-3); color: var(--gold); font-weight: 700; }
.contact-info > p { color: var(--band-muted); }
.contact-info .contact-person { color: var(--band-ink); }

.contact-list { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.contact-list svg { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; }
.contact-list a {
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-list a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  background: transparent;
  color: var(--band-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.copy-btn svg { width: 0.9rem; height: 0.9rem; color: currentColor; }
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.45);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field-full { grid-column: 1 / -1; }
.field-error { color: var(--error); font-size: 0.88rem; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: 0.95rem; min-height: 1.5em; flex: 1 1 16rem; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); font-weight: 500; }
.contact-form .btn-gold { box-shadow: inset 0 0 0 1.5px rgb(11 31 92 / 0.12); }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; }

/* Spam trap stays off-screen */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 52rem) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}

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

.site-footer {
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--band-from);
  color: var(--band-muted);
  font-size: var(--step--1);
  border-top: 1px solid var(--band-line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.footer-inner p:last-child { max-width: 60ch; }

/* ---------- Photo of Chris ---------- */

.founder-portrait {
  display: block;
  width: clamp(7rem, 6rem + 4vw, 9rem);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 4px var(--gold);
}
.founder-portrait img,
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------- About page ---------- */

.about { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.about-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  max-width: calc(60rem + 4rem);
}
.about-photo {
  display: block;
  width: clamp(8rem, 6rem + 6vw, 12rem);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 4px var(--gold);
}
.about-body { display: grid; gap: 1.75rem; justify-items: start; min-width: 0; }
.about-head { display: grid; gap: 0.6rem; }
.about-head h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.about-role { font-size: var(--step-1); color: var(--ink-muted); }
.about .founder-story { padding-top: 0; }

@media (max-width: 40rem) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .about-photo { margin-left: 4px; margin-top: 4px; }
}
