/* ============================================================
   Bailey Tutoring Group — styles
   All tokens taken from DESIGN.md §11.
   ============================================================ */

:root {
  /* =====================================================================
     Surface — Harrow navy as the dark canvas, warm-white ivory as the
     light canvas. Existing variable names (`--navy-*`, `--ivory-*`) are
     preserved so the rest of the stylesheet does not need to change.
     ===================================================================== */
  --navy-900: #1B2A4A;   /* deep navy, the moment canvas (Harrow register) */
  --navy-800: #253660;   /* elevated dark surface */
  --navy-700: #2C3C5E;   /* tertiary depth / hairline on dark */
  --ivory: #F7F4EE;      /* warm-white, the editorial canvas */
  --ivory-soft: #FFFFFF; /* cards on ivory */
  --ivory-deep: #E4EDEB; /* the FAQ "warm interlude" band — Eton-blue tint */

  /* =====================================================================
     Eton blue — the soft accent. Light-section tints, hover rings,
     occasional rules. Never a dark-canvas surface, never white text on it.
     ===================================================================== */
  --eton: #A8C6C2;
  --eton-tint: #E4EDEB;
  --eton-deep: #7FA39E;

  /* =====================================================================
     Brass — the heritage accent. Used sparingly for section rules,
     underlines under display words, eyebrow marks, and the monogram.
     ===================================================================== */
  --brass: #B08D57;
  --brass-deep: #8F7142;
  --brass-soft: #C9A878;

  /* =====================================================================
     Text — anchored to the new navy on ivory, ivory on navy.
     ===================================================================== */
  --ink: #1B2A4A;
  --ink-muted: #5B6470;
  --ink-soft: #6C7280;
  --ink-on-dark: #F7F4EE;
  --ink-on-dark-muted: #9AA7BC;

  /* =====================================================================
     Hairlines & borders
     ===================================================================== */
  --hairline: #E5E0D6;
  --hairline-strong: #C8BFA8;
  --hairline-on-dark: #2C3C5E;

  /* =====================================================================
     Proof — reserved for the guarantee mark only, never decorative.
     ===================================================================== */
  --proof: #2F6B4F;

  /* ===== Families ===== */
  --font-serif: 'Source Serif 4', 'Tiempos Headline', 'GT Sectra', Georgia, 'Times New Roman', serif;
  --font-sans: 'Söhne', 'GT America', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ===== Type scale (desktop) ===== */
  --type-guarantee-size: 112px;
  --type-display-xl-size: 72px;
  --type-display-lg-size: 56px;
  --type-display-md-size: 40px;
  --type-heading-lg-size: 28px;
  --type-heading-md-size: 22px;
  --type-statement-300-size: 56px;
  --type-eyebrow-size: 12px;
  --type-body-lg-size: 19px;
  --type-body-md-size: 17px;
  --type-body-sm-size: 15px;
  --type-caption-size: 13px;
  --type-micro-cap-size: 11px;
  --type-button-size: 15px;

  /* ===== Spacing ===== */
  --space-xxxs: 4px;
  --space-xxs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-huge: 96px;
  --space-monument: 128px;
  --space-cathedral: 192px;

  /* ===== Radius ===== */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* ===== Motion ===== */
  --motion-fast: 200ms;
  --motion-base: 400ms;
  --motion-slow: 700ms;
  --motion-glacial: 1200ms;
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);

  /* ===== Shadow (imagery only — unused on this page) ===== */
  --shadow-image: rgba(27, 42, 74, 0.18) 0px 12px 32px -8px;
}

/* ===== Mobile down-shift (per DESIGN.md) ===== */
@media (max-width: 640px) {
  :root {
    --type-guarantee-size: 56px;
    --type-display-xl-size: 44px;
    --type-display-lg-size: 36px;
    --type-display-md-size: 28px;
    --type-statement-300-size: 36px;
    --space-cathedral: 128px;
    --space-monument: 96px;
    --space-huge: 64px;
  }
}

/* ============================================================
   Reset + base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  font-family: var(--font-sans);
  font-size: var(--type-body-md-size);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  font-feature-settings: "ss01", "kern";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }

.grade, .price, .tnum {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* ============================================================
   Containers + sections
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.container--narrow { max-width: 1080px; }
@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

.section {
  padding: var(--space-huge) 0;
}
.section--light { background: var(--ivory); color: var(--ink); }
.section--dark {
  background: var(--navy-900);
  color: var(--ink-on-dark);
  padding: var(--space-monument) 0;
}
.section--interlude { background: var(--ivory-deep); color: var(--ink); }
.section--narrow .container { max-width: 880px; }

.section__head {
  max-width: 880px;
  margin: 0 0 var(--space-xxl);
}
@media (max-width: 720px) {
  .section__head { margin-bottom: var(--space-xl); }
}

/* ============================================================
   Type primitives
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--type-eyebrow-size);
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
}
.eyebrow--on-dark { color: var(--brass-soft); }

/* ===== Chapter marker (§ I, § II ...) — the document-rhythm device
   that frames every major section as a chapter of one document. */
.chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 var(--space-md);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-soft);
}
.chapter__num {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--brass);
  font-feature-settings: "tnum";
  position: relative;
  padding-right: 16px;
}
.chapter__num::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: var(--hairline-strong);
  transform: translateY(-50%);
}
.chapter--on-dark { color: var(--ink-on-dark-muted); }
.chapter--on-dark .chapter__num { color: var(--brass-soft); }
.chapter--on-dark .chapter__num::after { background: var(--hairline-on-dark); }

/* ===== Hero imprint — the title-page locator at the top of the
   cathedral band. Centred row, tracked caps, thin rules either side. */
.imprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-soft);
  margin: 0 0 var(--space-xxl);
}
.imprint--on-dark { color: var(--ink-on-dark-muted); }
.imprint__sep {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--brass-soft);
  opacity: 0.7;
}
.hero__imprint { margin-bottom: var(--space-xxl); }

@media (max-width: 720px) {
  .imprint { font-size: 10px; gap: 10px; letter-spacing: 1.4px; }
}

.display-xl {
  font-family: var(--font-serif);
  font-size: var(--type-display-xl-size);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -1.2px;
  color: var(--ink);
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-serif);
  font-size: var(--type-display-lg-size);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.8px;
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-serif);
  font-size: var(--type-display-md-size);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.4px;
}
.heading-lg {
  font-family: var(--font-serif);
  font-size: var(--type-heading-lg-size);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 0 0 var(--space-sm);
}
.heading-md {
  font-family: var(--font-serif);
  font-size: var(--type-heading-md-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.on-dark { color: var(--ink-on-dark); }

.micro-cap {
  font-family: var(--font-sans);
  font-size: var(--type-micro-cap-size);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.caption {
  font-size: var(--type-caption-size);
  line-height: 1.4;
  color: var(--ink-soft);
}

.prose {
  max-width: 60ch;
}
.prose p {
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 var(--space-md);
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 0; }
.prose--on-dark p { color: var(--ink-on-dark); }

.prose-sm {
  font-size: var(--type-body-md-size);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ===== Drop cap on opening editorial paragraphs.
   Applied via .prose--dropcap on the prose wrapper. */
.prose--dropcap > p:first-child::first-letter {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 5.4em;
  line-height: 0.85;
  float: left;
  margin: 6px 14px -2px 0;
  color: var(--ink);
  /* Optical alignment — the serif foot of a capital A sits low. */
  padding-top: 4px;
}
@media (max-width: 560px) {
  .prose--dropcap > p:first-child::first-letter {
    font-size: 4em;
    margin-right: 10px;
  }
}

/* Brass underline beneath a specific display word */
.u-brass {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--type-button-size);
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--motion-fast) var(--ease-standard),
              background-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--navy-900);
  color: var(--ink-on-dark);
  /* Hairline inner highlight — gives the button optical depth without a shadow. */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 0 1px var(--eton); }
.btn--primary:active { background: #15223D; }

.btn--primary-on-dark {
  background: var(--ivory);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.04);
}
.btn--primary-on-dark:hover { box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06), 0 0 0 1px var(--brass); }
.btn--primary-on-dark:active { background: #ECE8DE; }

.btn--lg {
  height: 60px;
  padding: 0 40px;
  font-size: 16px;
}

/* ============================================================
   Wordmark
   ============================================================ */
.wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.wordmark--on-dark { color: var(--ink-on-dark); }
.wordmark--lg { font-size: 24px; letter-spacing: -0.3px; }

@media (max-width: 1024px) {
  .nav__link--optional { display: none; }
}

@media (max-width: 720px) {
  /* On small screens the logomark carries the brand on its own. */
  .nav .wordmark { display: none; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  z-index: 50;
  background: transparent;
  transition: background-color var(--motion-base) var(--ease-standard),
              border-color var(--motion-base) var(--ease-standard),
              color var(--motion-base) var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__wordmark { margin-right: auto; }
.nav__links {
  display: flex;
  gap: var(--space-md);
}
.nav__links a {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: var(--ink);
  transition: color var(--motion-fast) var(--ease-standard);
}
.nav__cta {
  /* Navy pill, sits on the ivory canvas at all times. */
  background: var(--navy-900);
  color: var(--ink-on-dark);
  height: 44px;
  padding: 0 22px;
}

/* Default state — transparent over the ivory hero. */
.nav .nav__wordmark { color: var(--ink); }
.nav .wordmark { color: var(--ink); }

/* Solidified on scroll: a subtle ivory veil with a hairline foot. */
.nav.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--hairline);
}
.nav.is-scrolled .nav__wordmark { color: var(--ink); }
.nav.is-scrolled .wordmark { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__cta {
  background: var(--navy-900);
  color: var(--ink-on-dark);
}

@media (max-width: 720px) {
  .nav__inner { padding: 0 24px; gap: var(--space-sm); }
  .nav__links { display: none; }
  .nav__cta { padding: 0 16px; height: 40px; font-size: 14px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--space-cathedral) 0 var(--space-cathedral);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Legacy guard: if any ancestor class flips the hero dark, undo here. */
.hero.hero--light { background: var(--ivory); color: var(--ink); }
.hero__inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow { margin-bottom: var(--space-lg); }

.hero__headline {
  font-family: var(--font-serif);
  font-size: var(--type-guarantee-size);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -1.8px;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.hero__sub {
  margin: var(--space-md) auto 0;
  max-width: 640px;
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.hero__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.hero__positioning {
  font-size: var(--type-caption-size);
  letter-spacing: 0.4px;
  color: var(--ink-muted);
}

/* Hero foot — title-page sign-off at the bottom of the cathedral band. */
.hero__foot {
  margin: var(--space-monument) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 280px;
}
.hero__foot-rule {
  flex: 1;
  height: 1px;
  background: var(--brass-soft);
  opacity: 0.5;
}
.hero__foot-mark {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--brass);
  line-height: 1;
  transform: translateY(-1px);
}

/* Very subtle vignette to give the cathedral hero room to breathe */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(27, 42, 74, 0.05) 100%);
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero__inner { padding: 0 24px; }
  .hero__headline { letter-spacing: -1px; }
}

/* ============================================================
   Section 4 — the guarantee, in full
   ============================================================ */
.guarantee__head {
  max-width: 880px;
  margin: 0 0 var(--space-xxl);
}
.guarantee__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-xxl);
  align-items: start;
}
.guarantee__parts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-on-dark);
}
.guarantee__part {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--hairline-on-dark);
}
.guarantee__part dt {
  font-family: var(--font-sans);
  font-size: var(--type-eyebrow-size);
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 6px;
}
.guarantee__part dd {
  margin: 0;
  font-size: var(--type-body-md-size);
  line-height: 1.55;
  color: var(--ink-on-dark);
}

@media (max-width: 880px) {
  .guarantee__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}



/* ============================================================
   Section 5 — How it works
   Editorial step rows. Roman numeral in serif on the left,
   title + body to the right. Thin brass rule opens the block,
   warm hairlines between steps.
   ============================================================ */
.steps {
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
  margin: 0;
}
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-xl);
  align-items: baseline;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 0; }
.step__num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--brass);
  font-variant-numeric: normal;
}
.step__content { max-width: 60ch; }
.step__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0 0 var(--space-sm);
}
.step__body {
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  .step {
    grid-template-columns: 56px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
  }
  .step__num { font-size: 22px; }
  .step__title { font-size: 24px; }
}

/* ============================================================
   Section 3 — Grade projector
   Underline-style inputs (Schwab / FT register, not SaaS).
   No card chrome. Two columns: form left, output right, divided
   by a brass hairline that becomes a top rule on mobile.
   ============================================================ */
.projector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-xxl);
  align-items: start;
  border-top: 1px solid var(--brass);
  padding-top: var(--space-xl);
}

.projector__form { min-width: 0; }
.projector__intro {
  font-size: var(--type-body-md-size);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 var(--space-xl);
  max-width: 44ch;
  text-wrap: pretty;
}

.projector__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-xl);
}
@media (max-width: 560px) {
  .projector__fields { grid-template-columns: 1fr; gap: var(--space-md); }
}
.projector__field {
  display: grid;
  gap: 10px;
}
.projector__field .micro-cap {
  color: var(--ink-soft);
  margin: 0;
}

.projector__select {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  padding: 10px 32px 10px 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' stroke='%23B08D57' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.projector__select:hover { border-bottom-color: var(--ink-muted); }
.projector__select:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}
.projector__select:disabled { opacity: 0.45; cursor: not-allowed; }

/* Output column */
.projector__output {
  padding-left: var(--space-xxl);
  border-left: 1px solid var(--brass);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.projector__placeholder {
  color: var(--ink-soft);
}
.projector__placeholder .caption {
  font-style: italic;
  color: var(--ink-soft);
}

.projector__result-label {
  color: var(--brass);
  margin: 0 0 var(--space-md);
}

.projector__summary {
  color: var(--ink-soft);
  margin: 0 0 var(--space-md);
  letter-spacing: 1.6px;
}

.projector__target {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  margin: 0 0 var(--space-lg);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
}
.projector__current {
  font-size: 56px;
  color: var(--ink-muted);
  position: relative;
  letter-spacing: -1px;
}
.projector__current::after {
  /* Hairline strike-through, not a heavy line-through */
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 1px;
  background: var(--hairline-strong);
}
.projector__arrow {
  width: 32px;
  height: 16px;
  color: var(--brass);
  transform: translateY(-12px);
  flex-shrink: 0;
}
.projector__projected {
  font-size: 96px;
  color: var(--ink);
  letter-spacing: -2.5px;
}

.projector__note {
  font-size: var(--type-body-md-size);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 var(--space-lg);
  max-width: 50ch;
  text-wrap: pretty;
}

.projector__cta { align-self: flex-start; }

@media (max-width: 880px) {
  .projector {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .projector__output {
    padding-left: 0;
    padding-top: var(--space-xl);
    border-left: 0;
    border-top: 1px solid var(--brass);
  }
  .projector__current { font-size: 44px; }
  .projector__projected { font-size: 72px; letter-spacing: -1.5px; }
}
@media (max-width: 480px) {
  .projector__current { font-size: 36px; }
  .projector__projected { font-size: 56px; }
  .projector__target { gap: var(--space-md); }
  .projector__arrow { width: 24px; height: 12px; }
}

/* ============================================================
   Section 7 — Programmes (pricing tiers)
   Three cards; middle is the featured "navy moment" with a 4px
   brass top rule. No bullet glyphs — a 1em brass tick mark per
   line, hairline-divided list, hairline rule between price and
   inclusions. Tabular figures on the price.
   ============================================================ */
.section__sub {
  margin-top: var(--space-md);
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--ivory-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  color: var(--ink);
  transition: transform var(--motion-base) var(--ease-enter),
              box-shadow var(--motion-base) var(--ease-enter);
}
.tier:hover {
  box-shadow: 0 18px 36px -20px rgba(27, 42, 74, 0.18);
}

/* Featured (Silver) — dark fill, brass top rule, optical lift. */
.tier--featured {
  background: var(--navy-900);
  color: var(--ink-on-dark);
  border: 0;
  /* 4px full-width brass top rule, sitting inside the radius. */
  background-image: linear-gradient(to bottom, var(--brass) 0 4px, transparent 4px 100%);
  background-repeat: no-repeat;
  padding-top: calc(var(--space-xl) + 4px);
  transform: translateY(-12px);
}
.tier--featured:hover {
  box-shadow: 0 24px 44px -20px rgba(27, 42, 74, 0.35);
}

@media (max-width: 880px) {
  .tier--featured { transform: none; }
}

.tier__flag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
}

.tier__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier__name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}
.tier--featured .tier__name { color: var(--brass-soft); }

.tier__tagline {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.tier--featured .tier__tagline { color: var(--ink-on-dark); }

.tier__price-block {
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
}
.tier--featured .tier__price-block { border-top-color: var(--hairline-on-dark); }

.tier__price {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 6px;
}
.tier--featured .tier__price { color: var(--ink-on-dark); }

.tier__price-unit {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}
.tier--featured .tier__price-unit { color: var(--ink-on-dark-muted); }

.tier__features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tier__features li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.tier--featured .tier__features li { color: var(--ink-on-dark); }
/* Small brass tick — a 12px hairline rather than a checkmark glyph. */
.tier__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--brass);
}
.tier--featured .tier__features li::before { background: var(--brass-soft); }

.tier__cta {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
}

.tiers__foot {
  text-align: center;
  margin-top: var(--space-xl);
  color: var(--ink-soft);
  font-style: italic;
}

/* Summary line above the tiers — three short clauses naming Bronze /
   Silver / Gold so parents can scan the difference before reading the
   cards. Calm, centred, serif italics on the tier names. */
.tiers__summary {
  margin: var(--space-lg) auto 0;
  max-width: 56ch;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--type-body-md-size);
  line-height: 1.6;
  color: var(--ink-muted);
}
.tiers__summary em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

@media (max-width: 880px) {
  .tiers {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ============================================================
   Section 6 — Why you can trust us (editorial pillars)
   No card chrome. Brass hairline opens and closes the block;
   warm hairlines separate the rows. The serif headings carry
   the structure; prose breathes beside them.
   ============================================================ */
.pillars {
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}
.pillar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: var(--space-xxl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.pillar:last-child { border-bottom: 0; }
.pillar__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.pillar__body p {
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
  max-width: 60ch;
}

#testimonials-slot:empty { display: none; }
#testimonials-slot:not(:empty) {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 880px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
  }
  .pillar__title { font-size: 26px; }
}

/* ============================================================
   Section 7 — FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--hairline-strong);
}
.faq__item {
  border-bottom: 1px solid var(--hairline-strong);
}
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: var(--space-md);
  text-align: left;
  padding: var(--space-lg) 0;
  font-family: var(--font-serif);
  font-size: var(--type-heading-md-size);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.1px;
  cursor: pointer;
}
.faq__num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  color: var(--brass);
  letter-spacing: 0.5px;
  line-height: 1;
  transform: translateY(-2px);
}
.faq__q-text { text-wrap: pretty; }

@media (max-width: 560px) {
  .faq__q { grid-template-columns: 36px 1fr auto; gap: var(--space-sm); }
  .faq__num { font-size: 13px; }
}
.faq__mark {
  flex-shrink: 0;
  position: relative;
  width: 14px;
  height: 14px;
  display: inline-block;
}
.faq__mark::before {
  /* horizontal brass rule */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--brass);
  transform: translateY(-0.5px);
}
.faq__mark::after {
  /* vertical brass rule — rotates away when open */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--brass);
  transform: translateX(-0.5px);
  transition: transform var(--motion-base) var(--ease-standard),
              opacity var(--motion-base) var(--ease-standard);
}
.faq__item.is-open .faq__mark::after {
  transform: translateX(-0.5px) rotate(90deg);
  opacity: 0;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-base) var(--ease-standard);
}
.faq__a > p {
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 var(--space-md);
}
.faq__a > p:last-child {
  margin-bottom: 0;
  padding-bottom: var(--space-lg);
}
.faq__item.is-open .faq__a {
  /* Tall enough cap to fit the longest answer + paragraphs at any width. */
  max-height: 1600px;
}

/* ============================================================
   Section 8 — Final CTA
   ============================================================ */
.final-cta__inner { text-align: center; }
.final-cta__chapter { display: inline-flex; justify-content: center; margin-bottom: var(--space-md); }
.final-cta__headline {
  margin: 0 auto var(--space-md);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .final-cta__headline { white-space: normal; }
}
.final-cta__sub {
  margin: 0 auto;
  max-width: 560px;
  font-size: var(--type-body-lg-size);
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
  text-wrap: pretty;
}
.final-cta__action {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

/* ============================================================
   Footer
   The footer is now a light-section sign-off, with a single
   brass hairline at the top. Mirrors the hero canvas so the
   page opens and closes on ivory.
   ============================================================ */
.footer {
  background: var(--ivory);
  color: var(--ink);
  padding: var(--space-huge) 0 var(--space-xl);
  border-top: 1px solid var(--brass);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: var(--space-xxl);
  align-items: start;
  padding-bottom: var(--space-xxl);
  border-bottom: 1px solid var(--hairline);
}
.footer__brand .wordmark { color: var(--ink); }
.footer__tagline {
  margin-top: var(--space-md);
  font-size: var(--type-body-sm-size);
  color: var(--ink-muted);
  max-width: 28ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.footer__col .micro-cap {
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}
.footer__col ul { display: grid; gap: var(--space-xs); }
.footer__col a {
  font-size: var(--type-body-sm-size);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-fast) var(--ease-standard);
  white-space: nowrap;
}
.footer__col a:hover { border-bottom-color: var(--brass); }

.footer__base {
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer__base .caption { color: var(--ink-soft); }

@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   Reveal animations
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--motion-slow) var(--ease-enter),
              transform var(--motion-slow) var(--ease-enter);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Glacial reveal on the hero headline only */
[data-reveal="hero-headline"] {
  transform: translateY(28px);
  transition: opacity var(--motion-glacial) var(--ease-enter),
              transform var(--motion-glacial) var(--ease-enter);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
