/* Full-width chapter backgrounds keep the same text edges as the main layout. */
:root {
  --chapter-ink: #29283a;
  --chapter-gold: #ffdb65;
  --chapter-paper: #f6f5f1;
  --chapter-lilac: #eeebf5;
  --chapter-space: clamp(38px, 5.5vw, 80px);
}

.tone-band {
  position: relative;
  isolation: isolate;
  background-color: var(--chapter-bg);
  border-top: 0;
  margin-block: 0;
  padding-block: var(--chapter-space);
}

/* Paint beyond the reading column without widening the document or clipping controls. */
.tone-band::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--chapter-bg);
  box-shadow: 0 0 0 100vmax var(--chapter-bg);
  clip-path: inset(0 -100vmax);
}

.topbar { --chapter-bg: white; isolation: isolate; }
.hero { --chapter-bg: #fffaeb; }
.hero .brain-stage { background-color: #ffe8a2; }
.problems-section { border-top: 0; padding-block: var(--chapter-space); }

.method-section { background-color: #f0efe9; }
.chariot-roles > div { border-color: #ad9145; }
.app-showcase { padding-top: 0; border-top: 0; }
.app-showcase-panel { background-color: #e3ddf4; }
.app-showcase-heading .eyebrow { color: #4e3e73; }
.app-showcase-heading .eyebrow::before { background-color: #786396; }
.app-showcase-copy .app-showcase-access { border-color: #c5b9db; }
.exercise-catalog { border-top: 0; padding-bottom: var(--chapter-space); }

#research { --chapter-bg: #56646f; }
#tariffs { --chapter-bg: var(--chapter-ink); }
#research .section-head h2, .program-overview h2, .pricing-heading {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
#research .section-head h2 { max-width: 24ch; color: #faf9f5; }
#research .science-pilot {
  padding: clamp(22px, 3vw, 42px) 0 0;
  border: 0;
  border-top: 1px solid #85919a;
  border-radius: 0;
  background: transparent;
}
#research .science-heading { color: #faf9f5; }
#research .science-step p { color: #eff2f3; }
#research .science-finding { border-color: #decda2; }
#research .research-video figcaption { color: #e3eaed; }
#research .science-report { background-color: #faf8f1; color: #413426; }
#research .science-report:focus-visible { outline-color: var(--chapter-gold); }
#evidence { padding-block: var(--chapter-space); border: 0; margin: 0; }

.app-reviews, .cohort-section { --chapter-bg: var(--chapter-lilac); }
.app-reviews .review-card, .cohort-shot { background-color: white; }
.review-tags span { color: #59469f; }
.review-user small, .review-rating b { color: #655d6d; }
.cohort-section .course-films { background-color: #fff; }
.format-section { border: 0; padding-block: var(--chapter-space); }

.program-section { --chapter-bg: var(--chapter-paper); padding-top: 0; }
.program-overview { --chapter-bg: var(--chapter-gold); }
.program-overview .section-head { align-items: end; }
.program-overview .section-head h2 { max-width: 19ch; }
.program-overview .eyebrow::before { background-color: var(--chapter-ink); }
.program-overview .section-intro { color: #50421e; }
.program-overview .program-weeks { margin-bottom: 0; }
.program-stages { padding-top: clamp(22px, 3vw, 44px); }

/* Repeat each week's color in its navigation, lesson icons and practice. */
.program-weeks li:nth-child(1), .program-stage:nth-child(1) {
  --week-surface: #fce9ae;
  --week-detail: #71551c;
  --week-line: #cfad59;
}
.program-weeks li:nth-child(2), .program-stage:nth-child(2) {
  --week-surface: #dfece3;
  --week-detail: #355a4c;
  --week-line: #92b8a0;
}
.program-weeks li:nth-child(3), .program-stage:nth-child(3) {
  --week-surface: #dfe9f5;
  --week-detail: #345374;
  --week-line: #98b0cc;
}
.program-weeks li:nth-child(4), .program-stage:nth-child(4) {
  --week-surface: #e9e0f3;
  --week-detail: #604779;
  --week-line: #b8a2cd;
}
.program-weeks a {
  background: #fffdf7;
  border: 1px solid #bda451;
  border-inline-start: 5px solid var(--week-detail);
}
.program-weeks a:is(:hover,:focus-visible) {
  background: var(--week-surface);
  border-color: var(--week-detail);
}
.program-stage { border-color: var(--week-line); }
.program-overview :focus-visible { outline-color: var(--chapter-ink); }

.journey-section, .access-section, .gifts-section { border-top: 0; padding-block: var(--chapter-space); }
.journey-section, .access-section { margin-block: 0; }
#tariffs .pricing-heading { color: #fffaf0; margin-bottom: clamp(22px, 3vw, 40px); }
#tariffs noscript a, #official-tariff-cards > a { color: #fffaf0; }
.faq-section { --chapter-bg: var(--chapter-paper); }
.closing-offer {
  background: #fff0c0;
  margin-block: var(--chapter-space);
  border: 1px solid #edd89a;
}

@media (max-width: 680px) {
  .program-overview .section-head { align-items: flex-start; }
  .program-weeks a { border-inline-start-width: 4px; }
}

@media (forced-colors: active) {
  .tone-band::before, .topbar::before { display: none; }
  .tone-band { border-block-start: 1px solid CanvasText; }
}

.pain-statements {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}
.audience-card p {
  font-size: clamp(15px, 1.15vw, 16px);
  line-height: 1.6;
}
.audience-section {
  padding-block: var(--chapter-space);
  border: 0;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.audience-card {
  background: var(--chapter-paper);
  border-radius: 16px;
  padding: clamp(20px, 2.2vw, 32px);
}
.audience-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
.audience-card p { color: #505158; }
.audience-card p + p { margin-top: 10px; }
.audience-section + .closing-offer { margin-block-start: 0; }
@media (max-width: 840px) {
  .audience-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .pain-statements { grid-template-columns: 1fr; }
  .hero .hero-description,
  .catalog-description,
  .review-card blockquote,
  .format-card.visual-format p,
  .journey-intro,
  .access-heading > p:last-child,
  .access-steps li > div > p:last-child,
  .gift-card .gift-description,
  .gifts-eligibility,
  .faq-list details > div > p {
    font-size: 16px;
    line-height: 1.55;
  }
  .author-mini .author-details summary,
  .review-expand,
  .stage-practice a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .cohort-head .story-nav button { min-width: 44px; min-height: 44px; }
}

