/* ============================================================
   jelledesramaults.be — shared stylesheet
   One source of truth. Tokens, typography, components.
   Page-unique blocks (hub diagram, portrait) stay inline.
   ============================================================ */


/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
  /* Surfaces */
  --bg:         #FAF7F0;
  --bg-card:    #FFFFFF;
  --bg-warm:    #F3EEE2;
  --bg-soft:    #F7F2E8;

  /* Text — warm olive palette, tuned to the cream bg */
  --text:    #14140F;
  --text-2:  #4D4A41;
  --text-3:  #7A7468;
  --text-4:  #A8A294;

  /* Brand */
  --brand:      #7783F3;
  --brand-soft: #E8EBFD;
  --brand-hover:#5E6BE8;
  --brand-ink:  #2E3699;
  --brand-line: rgba(119, 131, 243, 0.30);

  /* Lines */
  --border:        rgba(20, 20, 15, 0.10);
  --border-subtle: rgba(20, 20, 15, 0.06);
  --hairline:      rgba(20, 20, 15, 0.08);
  --border-input:  rgba(20, 20, 15, 0.14);

  /* Status */
  --danger: #B64536;
  --avail:  #3B8E5A;

  /* Tool-brand (only inside hub / stack diagrams) */
  --tool-claude-bg:     #FFFBF3;
  --tool-claude-border: rgba(201, 100, 66, 0.26);
  --tool-figma-red:     #FF7262;
  --tool-figma-orange:  #F24E1E;
  --tool-figma-purple:  #A259FF;
  --tool-figma-blue:    #1ABCFE;
  --tool-figma-green:   #0ACF83;

  /* Shape */
  --r-sm: 10px;   /* buttons */
  --r-md: 14px;   /* inputs, tiles */
  --r-lg: 22px;   /* cards, blocks */

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20,20,15,0.04), 0 2px 6px rgba(20,20,15,0.04);
  --shadow-md: 0 2px 4px rgba(20,20,15,0.04), 0 8px 24px rgba(20,20,15,0.06);
  --shadow-brand:       0 1px 0 rgba(20,20,15,0.04), 0 6px 20px rgba(119,131,243,0.30);
  --shadow-brand-hover: 0 1px 0 rgba(20,20,15,0.04), 0 10px 28px rgba(119,131,243,0.36);

  /* Type scale */
  --fs-h1:    clamp(42px, 5.4vw, 64px);
  --fs-h2:    clamp(30px, 3.6vw, 42px);
  --fs-h3:    22px;
  --fs-lead:  20px;
  --fs-body:  17px;
  --fs-small: 15px;
  --fs-micro: 13px;
  --fs-meta:  12px;
}


/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
}

a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--text); }


/* ------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: 760px; }
.container.prose  { max-width: 680px; }


/* ------------------------------------------------------------
   4. Nav
   ------------------------------------------------------------ */
.nav {
  padding: 22px 32px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 247, 240, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-3);
  font-size: 17px;
  font-weight: 400;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }


/* ------------------------------------------------------------
   5. Footer
   ------------------------------------------------------------ */
footer {
  padding: 48px 32px;
  margin-top: 96px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-micro);
  color: var(--text-4);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }


/* ------------------------------------------------------------
   6. Typography
   ------------------------------------------------------------ */
h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.4px;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.2px;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
}

.kicker {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.kicker.brand { color: var(--brand-ink); }

.micro {
  font-size: var(--fs-micro);
  color: var(--text-3);
  line-height: 1.5;
}

/* Section rhythm */
section.block       { padding: 96px 0; }
section.block.tight { padding: 64px 0; }

/* Default section-head = centered page-section head. */
.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head .kicker { margin-bottom: 14px; display: inline-block; }
.section-intro {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-2);
  margin: 16px auto 0;
  max-width: 560px;
}
.section-intro + .section-intro { margin-top: 14px; }

/* Inside a form-section, section-head is a left-aligned step row. */
.form-section .section-head {
  display: flex;
  text-align: left;
  max-width: none;
  margin: 0 0 24px;
  align-items: baseline;
  gap: 12px;
}


/* ------------------------------------------------------------
   7. Buttons (3 variants + disabled state)
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
  box-shadow: var(--shadow-brand);
  text-decoration: none;
}
.btn:hover:not(:disabled):not(.is-disabled) {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-hover);
}
.btn .arrow { transition: transform 0.15s; }
.btn:hover:not(:disabled):not(.is-disabled) .arrow { transform: translateX(3px); }

.btn.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
  padding: 14px 24px;
}
.btn.btn-ghost:hover:not(:disabled):not(.is-disabled) {
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--text);
}

.btn.btn-nav {
  padding: 10px 18px;
  font-size: var(--fs-small);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(20,20,15,0.04), 0 4px 12px rgba(119,131,243,0.24);
}
.btn.btn-nav:hover:not(:disabled):not(.is-disabled) {
  box-shadow: 0 1px 0 rgba(20,20,15,0.04), 0 6px 16px rgba(119,131,243,0.32);
}

.btn:disabled,
.btn.is-disabled {
  background: var(--bg-card);
  color: rgba(20,20,15,0.55);
  box-shadow: inset 0 0 0 1px var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

.btn .spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ------------------------------------------------------------
   8. Pill — one style, one size, one color.
   .badge, .part-pill, .how-tag are aliases kept for HTML compat.
   Chapter status (Free/Paid/Coming) is a separate 3-state set, below.
   ------------------------------------------------------------ */
.pill,
.badge,
.part-pill,
.how-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand-ink);
  background: rgba(232, 235, 253, 0.50);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(119, 131, 243, 0.22);
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.pill svg,
.badge svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Chapter status badges (guide index) — 3-state system, intentional */
.chapter-badge {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.chapter-badge.badge-free { color: #0a7a4a; background: rgba(10, 122, 74, 0.08); }
.chapter-badge.badge-paid { color: #6b5a20; background: rgba(107, 90, 32, 0.08); }
.chapter-badge.badge-soon { color: var(--text-4); background: rgba(20, 20, 15, 0.04); }


/* ------------------------------------------------------------
   9. Cards
   ------------------------------------------------------------ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
a.card,
.card.card-hover { display: block; }
a.card:hover,
.card.card-hover:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* Workshop card (homepage + guide index) — card with eyebrow → title → desc → meta → cta */
.workshop-card .card-eyebrow {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.workshop-card .card-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.workshop-card .card-desc {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 24px;
}
.workshop-card .card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}
.workshop-card .m-label {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}
.workshop-card .m-value {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
}
.workshop-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--brand);
}
.workshop-card .card-cta .arrow { transition: transform 0.15s; }
.workshop-card:hover .card-cta .arrow { transform: translateX(4px); }
.workshop-card.is-disabled { cursor: default; }
.workshop-card.is-disabled:hover { border-color: var(--border); transform: none; }
.workshop-card.is-disabled .card-cta { color: var(--text-3); }
.workshop-card.is-disabled .card-cta .arrow { display: none; }


/* ------------------------------------------------------------
   10. Portrait + cursor tag (homepage + trainer)
   ------------------------------------------------------------ */
.portrait {
  width: 199px;
  height: 199px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 40px;
}
.portrait.trainer { width: 180px; height: 180px; margin-bottom: 0; }
.portrait .photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.portrait .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--brand);
  pointer-events: none;
}
.cursor-tag {
  position: absolute;
  right: -2px;
  bottom: 32px;
  width: 50px;
  height: 30px;
  pointer-events: none;
}
.portrait.trainer .cursor-tag { bottom: 22px; }
.cursor-tag .cursor,
.cursor-tag svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10));
}
.cursor-tag .name {
  position: absolute;
  top: 18px;
  left: 18px;
  white-space: nowrap;
  background: var(--brand);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  padding: 2.5px 6px;
  border-radius: 3px;
  line-height: 1;
}

/* HTML-compat alias: .trainer-photo behaves like .portrait.trainer */
.trainer-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 0;
}
.trainer-photo .photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.trainer-photo .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.trainer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--brand);
  pointer-events: none;
}
.trainer-photo .cursor-tag { bottom: 22px; }


/* ------------------------------------------------------------
   11. Hero meta + hero bullets (workshops)
   ------------------------------------------------------------ */
.hero              { padding: 64px 0 88px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.hero .tagline {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
  color: var(--brand-ink);
  margin: -2px 0 18px;
  max-width: 540px;
  letter-spacing: -0.1px;
}

.bullets {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 540px;
}
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-2);
}
.bullets li:last-child { border-bottom: none; }
.bullets .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--brand-ink);
}
.bullets .check svg { width: 18px; height: 18px; display: block; }


/* ------------------------------------------------------------
   12. Hero price block (workshops)
   ------------------------------------------------------------ */
.hero-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 20px 22px;
  margin: 40px 0 12px;
  max-width: 560px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.hero-price-amount {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.8px;
}
.hero-price-unit {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-3);
  line-height: 1.4;
}
.hero-price-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand-ink);
  background: rgba(232, 235, 253, 0.50);
  border: 1px solid rgba(119, 131, 243, 0.22);
  padding: 7px 14px;
  border-radius: 100px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   13. Divided cards: program / how / practical
   ------------------------------------------------------------ */
/* Program grid — 2 columns of .program-card */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.program-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}
.part-time {
  font-size: var(--fs-micro);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.program-card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.program-card p {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--text-2);
}
.program-card .part-bullets {
  list-style: none;
  padding: 0;
  margin: -6px 0 2px;
}
.program-card .part-bullets li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
}
.program-card .part-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--text-3);
}
.program-card .blocks {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}
.program-card .blocks li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 1.45;
}
.program-card .blocks li:last-child { border-bottom: none; }
.program-card .blocks .t {
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.program-card .blocks .b {
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.program-card .blocks .b-name { font-weight: 500; }
.program-card .blocks .b-desc {
  color: var(--text-3);
  font-weight: 400;
  font-size: var(--fs-micro);
  line-height: 1.55;
}

/* How card — wrapper with a 3-column internal grid + hairline dividers */
.how-card,
.practical-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  max-width: 960px;
  margin: 0 auto;
  padding: 8px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.how-item {
  padding: 32px 30px;
  border-right: 1px solid var(--hairline);
}
.how-grid .how-item:last-child { border-right: none; }
.how-item .how-tag { margin-bottom: 18px; }
.how-item p {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--text-2);
}

/* Practical grid — 3 cols × 2 rows with hairlines */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.practical-card .pitem {
  padding: 26px 30px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.practical-grid .pitem:nth-child(3n)            { border-right: none; }
.practical-grid .pitem:nth-last-child(-n+3)     { border-bottom: none; }
.practical-card .pitem .label {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}
.practical-card .pitem .value {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
}


/* ------------------------------------------------------------
   14. Trainer card (workshops)
   ------------------------------------------------------------ */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 56px;
  max-width: 960px;
  margin: 0 auto;
}
.trainer-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: center;
}
.trainer-bio p {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 14px;
}
.trainer-bio p:last-child { margin-bottom: 0; }


/* ------------------------------------------------------------
   15. Takeaway + prereq + big-idea
   ------------------------------------------------------------ */
.takeaway-list {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 740px;
  display: flex;
  flex-direction: column;
}
.takeaway-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-2);
}
.takeaway-list li:first-child { padding-top: 6px; }
.takeaway-list li:last-child  { border-bottom: none; padding-bottom: 6px; }
.takeaway-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--brand-ink);
  background: rgba(119, 131, 243, 0.14);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.takeaway-list .check svg { width: 14px; height: 14px; }

.prereq-rows {
  max-width: 820px;
  margin: 48px auto 0;
}
.prereq-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.prereq-row:first-child { padding-top: 6px; }
.prereq-row:last-child  { border-bottom: none; padding-bottom: 6px; }
.prereq-row-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}
.prereq-row-body {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-2);
}

.big-idea {
  margin: 64px auto 0;
  max-width: 720px;
  padding: 28px 32px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}
.big-idea .kicker {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.big-idea .kicker-icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}
.big-idea-body {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.big-idea-link {
  display: inline;
  font: inherit;
  font-weight: 500;
  color: var(--text-3);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-left: 6px;
  transition: color 0.15s;
}
.big-idea-link:hover { color: var(--text); }
.big-idea-link .chev {
  width: 10px; height: 10px;
  margin-left: 3px;
  display: inline-block;
  vertical-align: -1px;
  transition: transform 0.2s;
}
.big-idea-link:hover .chev { transform: translateX(2px); }


/* ------------------------------------------------------------
   16. Stack substrate (GitHub note)
   ------------------------------------------------------------ */
.stack-substrate {
  margin: 40px auto 0;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-3);
  font-size: var(--fs-small);
  line-height: 1.5;
}
.stack-substrate svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-2);
}


/* ------------------------------------------------------------
   17. FAQ
   ------------------------------------------------------------ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 32px;
}
details {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 4px;
  transition: background 0.2s;
}
details:last-child { border-bottom: none; }
summary {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.1px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-soft);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M5 1V9M1 5H9' stroke='%232E3699' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 620px;
}
.faq-list-inner {
  margin: 10px 0 0 20px;
  max-width: 620px;
}
.faq-list-inner li {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
}
details .faq-list-inner + p { margin-top: 14px; }


/* ------------------------------------------------------------
   18. Final CTA section + next-dates + waitlist
   ------------------------------------------------------------ */
.cta-section {
  text-align: center;
  padding: 80px 0 56px;
}
.cta-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.cta-pill {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--bg-card);
  border: 1px solid var(--brand-line);
  padding: 8px 16px;
  border-radius: 100px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.cta-section h2 {
  font-size: clamp(38px, 4.8vw, 56px);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.cta-section .lead {
  margin: 0 auto 28px;
  max-width: 600px;
  font-size: var(--fs-body);
  line-height: 1.6;
}
.cta-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  margin: 0 auto 28px;
}
.cta-price-amount {
  font-size: 40px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1;
}
.cta-price-unit {
  font-size: var(--fs-small);
  color: var(--text-3);
}
.cta-section .btn {
  padding: 17px 30px;
  font-size: var(--fs-body);
}
.cta-after-note {
  display: block;
  margin: 24px auto 0;
  max-width: 540px;
  font-size: var(--fs-micro);
  line-height: 1.6;
  color: var(--text-3);
}
.cta-after-note strong { color: var(--text-2); font-weight: 500; }
.cta-availability {
  font-size: var(--fs-micro);
  color: var(--text-3);
  margin: 14px 0 0;
}
.cta-availability strong { color: var(--text); font-weight: 600; }

/* Next dates list */
.next-dates {
  max-width: 940px;
  margin: 32px auto 0;
}
.next-dates-header {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.next-dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.next-dates-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.nd-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.nd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nd-avail {
  font-size: var(--fs-micro);
  color: var(--text-3);
}
.nd-avail strong { color: var(--text); font-weight: 600; }
.nd-reserve {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.nd-reserve:hover {
  background: var(--bg-card);
  border-color: var(--text);
  transform: translateY(-1px);
}
.nd-reserve .arrow { transition: transform 0.15s; }
.nd-reserve:hover .arrow { transform: translateX(2px); }
.nd-reserve--waitlist { border-style: dashed; cursor: pointer; }
.next-dates-list li.is-past { opacity: 0.55; }
.nd-reserve--past {
  border-color: var(--border-subtle);
  color: var(--text-4);
  pointer-events: none;
  cursor: default;
}
.nd-reserve--past:hover { background: transparent; border-color: var(--border-subtle); transform: none; }

.waitlist-block {
  max-width: 940px;
  margin: 28px auto 0;
  padding: 32px 32px 28px;
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
}
.waitlist-block-header {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 0 0 10px;
}
.waitlist-block-body {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 auto 22px;
  max-width: 560px;
}
.waitlist-block .btn.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--text);
  padding: 12px 22px;
}
.waitlist-block .btn.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.cta-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.cta-alt-link:hover {
  color: var(--brand-ink);
  background: rgba(232, 235, 253, 0.35);
}
.cta-alt-link .arrow { transition: transform 0.15s; }
.cta-alt-link:hover .arrow { transform: translateX(3px); }


/* ------------------------------------------------------------
   19. Forms: inputs, textarea, select, radio, segmented
   ------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  padding: 13px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(119,131,243,0.18);
}
input::placeholder,
textarea::placeholder { color: var(--text-4); }
textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%237A7468' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}
.field .req   { color: var(--danger); margin-left: 2px; font-weight: 400; }
.field .hint  { font-size: var(--fs-meta); color: var(--text-4); margin-top: 6px; }
.field-error  { border-color: var(--danger) !important; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.field-grid.one   { grid-template-columns: 1fr; }
.field-grid.three { grid-template-columns: 1.4fr 1fr 1fr; }

/* Radio group (stacked) */
.radio-group,
.radio-inline { display: flex; flex-direction: column; gap: 10px; }
.radio-group label,
.radio-inline label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  font-weight: 400;
  margin-bottom: 0;
}
.radio-group input[type="radio"],
.radio-inline input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-input);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s;
  margin: 0;
}
.radio-group input[type="radio"]:checked,
.radio-inline input[type="radio"]:checked { border-color: var(--brand); }
.radio-group input[type="radio"]:checked::after,
.radio-inline input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--brand);
  border-radius: 50%;
}

/* Conditional block — toggled visibility (billing business vs individual) */
.conditional { display: none; }
.conditional.show { display: block; }

/* Modal note — small muted line used inside modals */
.modal-note {
  font-size: var(--fs-meta);
  color: var(--text-4);
  margin-top: 4px;
  line-height: 1.5;
}

/* Segmented toggle */
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 0;
  background: var(--bg-warm);
  padding: 4px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-input);
  width: fit-content;
}
.segmented label { margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.segmented input:checked + .seg {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20,20,15,0.06);
}

/* Form error banner */
.form-error {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(182, 69, 54, 0.08);
  border: 1px solid rgba(182, 69, 54, 0.20);
  color: var(--danger);
  border-radius: var(--r-md);
  font-size: 14px;
}
.form-error.show { display: block; }


/* ------------------------------------------------------------
   20. Modal (used in workshops + reserve)
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 15, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg);
  border-radius: var(--r-lg);
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-md);
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal.modal-wide { max-width: 720px; }
.modal.modal-form {
  max-width: 520px;
  padding: 36px 36px 32px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--bg-warm);
  color: var(--text);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-eyebrow {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.modal h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}
.modal p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 16px;
}
.modal p:last-child { margin-bottom: 0; }
.modal-lead {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 22px;
}
.modal-lead em { font-style: italic; color: var(--text); }
.modal-visual {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px 0 28px;
}
.modal form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Modal success state */
.modal-success {
  display: none;
  text-align: center;
  padding: 12px 0 8px;
}
.modal.is-success .modal-success { display: block; }
.modal.is-success > h2,
.modal.is-success > .modal-lead,
.modal.is-success > form { display: none; }
.success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.modal-success h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-success p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Comparison table inside modal */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0 32px;
  font-size: 14px;
}
.compare-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-3);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--border);
}
.compare-table th:first-child { padding-left: 2px; }
.compare-table th:last-child  { padding-right: 2px; }
.compare-table td {
  padding: 16px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.5;
}
.compare-table td:first-child {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  padding-left: 2px;
}
.compare-table td:last-child { padding-right: 2px; }
.compare-table tbody tr:last-child td { border-bottom: none; }


/* ------------------------------------------------------------
   21. Reserve page: cohort picker
   ------------------------------------------------------------ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }
.back-link .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.back-link:hover .arrow { transform: translateX(-3px); }

.page-kicker {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
}
.page-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 14px;
}
.page-lead {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 48px;
  max-width: 620px;
}

.cohort-picker        { margin-bottom: 48px; }
.cohort-picker-header { margin-bottom: 16px; }
.cohort-picker-sub {
  font-size: 14px;
  color: var(--text-3);
}
.cohort-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cohort-tile {
  position: relative;
  cursor: pointer;
  display: block;
}
.cohort-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.cohort-tile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cohort-tile:hover .cohort-tile-inner {
  border-color: rgba(119, 131, 243, 0.55);
}
.cohort-tile input:checked + .cohort-tile-inner {
  border-color: var(--brand);
  background: rgba(232, 235, 253, 0.40);
  box-shadow: 0 0 0 3px rgba(119, 131, 243, 0.14);
}
.cohort-tile-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cohort-tile-date strong {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}
.cohort-tile-time {
  font-size: var(--fs-micro);
  color: var(--text-3);
}
.cohort-tile-avail {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  flex-shrink: 0;
}
.cohort-tile-avail strong {
  color: var(--text-3);
  font-weight: 600;
}
.cohort-picker-price {
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--bg-warm);
  border-radius: var(--r-sm);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cohort-picker-price-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1;
}
.cohort-picker-price-unit {
  font-size: var(--fs-micro);
  color: var(--text-3);
}

.cohort-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cohort-summary-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cohort-summary-date {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}
.cohort-summary-time {
  font-size: var(--fs-micro);
  color: var(--text-3);
}
.cohort-summary-change {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand-ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
  flex-shrink: 0;
}
.cohort-summary-change:hover { background: rgba(119, 131, 243, 0.10); }
.cohort-picker-list[hidden],
.cohort-summary[hidden] { display: none; }

/* Reserve form sections */
.form-section {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}
.form-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.section-head.form {
  display: flex;
  text-align: left;
  max-width: none;
  margin: 0 0 24px;
  align-items: baseline;
  gap: 12px;
}
.section-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: var(--fs-meta);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title {
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}
.section-sub {
  font-size: 14px;
  color: var(--text-3);
  margin: 6px 0 0 38px;
}

/* Submit */
.form-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.submit-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.submit-total-label {
  font-size: var(--fs-micro);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
}
.submit-total-amount {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.4px;
}
.fine-print {
  font-size: var(--fs-micro);
  color: var(--text-3);
  margin-top: 18px;
  line-height: 1.5;
}
.fine-print strong { color: var(--text-2); font-weight: 500; }
.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: var(--fs-meta);
  color: var(--text-4);
}
.trust-row .lock {
  width: 12px;
  height: 12px;
  color: var(--text-3);
}
.alt-link-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}
.alt-link {
  font-size: 14px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.alt-link:hover { color: var(--brand-ink); }
.alt-link .arrow { transition: transform 0.15s; }
.alt-link:hover .arrow { transform: translateX(3px); }


/* ------------------------------------------------------------
   22. Guide index: part sections + chapter list
   ------------------------------------------------------------ */
.part {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}
.part:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.part-label {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.part-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.chapters {
  display: flex;
  flex-direction: column;
}
.chapter {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background 0.15s;
}
a.chapter:hover { background: rgba(119, 131, 243, 0.04); }
.chapter.is-locked { cursor: default; }
.chapter.is-locked .chapter-title { color: var(--text-2); }
.chapter-num {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}
.chapter-title {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.chapter-desc {
  font-size: var(--fs-small);
  color: var(--text-3);
  margin-top: 2px;
  line-height: 1.4;
}


/* ------------------------------------------------------------
   23. Chapter page: breadcrumb, meta, prose, next-prev
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 32px;
}
.breadcrumb a        { color: var(--text-3); }
.breadcrumb a:hover  { color: var(--text); }
.breadcrumb .sep     { color: var(--text-4); }

.chapter-head { margin-bottom: 40px; }
.chapter-hero {
  margin: 0 -32px 40px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #F0EDE8;
  aspect-ratio: 21 / 9;
}
.chapter-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.chapter-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.chapter-meta .chapter-num {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.4px;
}
.chapter-sep {
  width: 20px;
  height: 1px;
  background: var(--border);
}
.chapter-part {
  font-size: var(--fs-micro);
  color: var(--text-3);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.chapter-head h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.lede {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
}

article h2 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
article h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}
article p,
article li {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}
article p { margin-bottom: 20px; }
article p strong {
  color: var(--text);
  font-weight: 600;
}
article ul,
article ol {
  margin: 0 0 24px 0;
  padding-left: 22px;
}
article li { margin-bottom: 10px; }
article code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  background: var(--bg-warm);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
article blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 18px;
  margin: 0 0 24px 0;
  color: var(--text-2);
  font-style: italic;
  background: rgba(119, 131, 243, 0.04);
}
article blockquote p { margin-bottom: 0; }

article figure.infographic {
  margin: 40px -8px 32px;
  background: #F0EDE8;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
}
article figure.infographic img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
article figure.infographic figcaption {
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.chapter-nav {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chapter-nav a {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, transform 0.15s;
}
.chapter-nav a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.chapter-nav .dir {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--text-4);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.chapter-nav .title {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text);
}
.chapter-nav .next { text-align: right; }


/* ------------------------------------------------------------
   24. Success / cancel pages
   ------------------------------------------------------------ */
.status-check,
.status-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-check {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.status-icon {
  background: var(--bg-warm);
  color: var(--text-2);
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
}
.status-check svg { width: 32px; height: 32px; }
.status-icon  svg { width: 26px; height: 26px; }

.next-steps-card {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  text-align: left;
  margin-bottom: 40px;
}
.next-steps-card .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 16px;
}
.next-steps-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.next-steps-card li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: var(--fs-small);
  color: var(--text-2);
  line-height: 1.55;
}
.next-steps-card li .dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ------------------------------------------------------------
   25. Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; gap: 48px; }
  .program-grid     { grid-template-columns: 1fr; }
  .how-grid         { grid-template-columns: 1fr; }
  .how-item         { border-right: none; border-bottom: 1px solid var(--hairline); }
  .how-grid .how-item:last-child { border-bottom: none; }
  .trainer-wrap     { grid-template-columns: 1fr; gap: 40px; text-align: center; justify-items: center; }
  .practical-grid   { grid-template-columns: 1fr 1fr; }
  .practical-grid .pitem:nth-child(3n)        { border-right: 1px solid var(--hairline); }
  .practical-grid .pitem:nth-child(2n)        { border-right: none; }
  .practical-grid .pitem:nth-last-child(-n+3) { border-bottom: 1px solid var(--hairline); }
  .practical-grid .pitem:nth-last-child(-n+2) { border-bottom: none; }
  .hero-visual      { max-width: 480px; margin: 0 auto; }
  .chapter          { grid-template-columns: 28px 1fr; gap: 12px; }
  .chapter-badge    { grid-column: 2; justify-self: start; margin-top: 4px; }
  .part-title       { font-size: 20px; }
}

@media (max-width: 800px) {
  .hero             { padding: 32px 0 16px; }
  main              { padding-left: 24px; padding-right: 24px; }
  .nav              { padding: 20px 24px; }
  .nav-links        { gap: 16px; }
  .footer-inner     { flex-direction: column; gap: 12px; text-align: center; }
  footer            { padding: 24px; }
  article p,
  article li        { font-size: var(--fs-body); }
  article h2        { font-size: 20px; }
  .chapter-nav      { grid-template-columns: 1fr; }
  .chapter-nav .next{ text-align: left; }
  .chapter-hero     { margin-left: -24px; margin-right: -24px; }
}

@media (max-width: 720px) {
  .next-dates-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }
  .nd-reserve       { justify-content: center; }
  .waitlist-block   { padding: 20px 16px; }
  .waitlist-block-header { font-size: 20px; }
  .field-grid,
  .field-grid.three { grid-template-columns: 1fr; gap: 16px; }
  .submit-row       { flex-direction: column; align-items: stretch; }
  .submit-row .btn  { width: 100%; justify-content: center; }
  .cohort-tile-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .modal            { padding: 32px 24px 28px; }
  .modal h2         { font-size: 22px; }
}

@media (max-width: 640px) {
  .hero               { padding: 24px 0 8px; }
  section.block       { padding: 40px 0; }
  section.block.tight { padding: 32px 0; }
  .section-head      { margin-bottom: 36px; }
  .container          { padding: 0 16px; }
  .nav                { padding: 16px; }
  .nav-links          { display: none; }
  .lead               { font-size: 18px; }
  .hero-actions       { flex-direction: column; align-items: stretch; }
  .portrait           { width: 160px; height: 160px; }
  .portrait::after    { display: none; }
  .cursor-tag         { display: none; }
  .program-card       { padding: 20px 16px; }
  .trainer-card       { padding: 24px 16px; }
  .how-item           { padding: 20px 16px; }
  .practical-card .pitem { padding: 18px 16px; }
  .practical-grid     { grid-template-columns: 1fr; }
  .practical-grid .pitem {
    border-right: none !important;
    border-bottom: 1px solid var(--hairline) !important;
  }
  .practical-grid .pitem:last-child { border-bottom: none !important; }
  .faq-list           { padding: 4px 16px; }
  details             { padding: 22px 2px; }
  .cta-section        { padding: 48px 0 32px; }
  .hero-price         { padding: 18px 20px; gap: 8px 14px; }
  .hero-price-amount  { font-size: 34px; }
  .hero-price-badge   { margin-left: 0; }
  .big-idea           { padding: 22px 20px; margin-top: 44px; }
  .big-idea-body      { font-size: var(--fs-small); }
  .takeaway-list      { margin-top: 36px; }
  .takeaway-list li   { font-size: var(--fs-small); padding: 18px 2px; gap: 14px; }
  .prereq-rows        { margin-top: 36px; }
  .prereq-row         { grid-template-columns: 1fr; gap: 8px; padding: 20px 2px; }
  .prereq-row-body    { font-size: var(--fs-small); }
  .next-steps-card    { padding: 22px 20px; }
  main                { padding-left: 16px; padding-right: 16px; }
}
