/* Style overrides for: masterclass
   Loaded AFTER the shared design system. Tokens only.
   Every rule here is on the allowed list in CLAUDE.md section 4 (numbered below).
   Do not add anything that isn't on that list. */

/* 1 · Light-on-dark text (same value the live footer uses) */
:root {
  --color-on-dark: #C9C9D1;
  --section-y: clamp(2.5rem, 5.6vw, 4.2rem); /* 13 · was clamp(3rem, 8vw, 6rem) in tokens.css */
}

/* 2 · Dark section (body text soft grey, bold stays white) */
.section--dark {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.section--dark strong {
  color: var(--color-bg);
}

.section--dark .eyebrow {
  color: var(--color-sage);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-bg);
}

.section--dark .lead,
.section--dark .form__label,
.section--dark .form__note,
.section--dark .text-muted {
  color: var(--color-on-dark);
}

.section--dark a {
  color: var(--color-sage);
}

/* 3 · Accent (dark sections only). Scoped so it beats `.section--dark h2` above. */
.section--dark .accent {
  color: var(--color-sage);
}

/* 4 · Footer seam (section 11 and the footer are both ink) */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* 5 · Eyebrow */
.eyebrow {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--color-ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
}

/* 6 · Date line (sage event pill; the thank-you page uses the same class) */
.date-line {
  display: inline-block;
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--color-sage);
  color: var(--color-ink);
  border-radius: var(--radius);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.35;
}

/* 7 · Three-column card grid (single column below 768px;
   the base .card-grid goes 2-up at 640px, so reset it here) */
.card-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 8 · White and compact cards */
.card--white {
  background: var(--color-bg);
  box-shadow: var(--shadow);
}

.card--compact {
  padding: var(--space-4) var(--space-3);
}

/* 9 · Bridge headline (one sentence per line, no 22ch cap) */
.bridge {
  max-width: none;
  margin-inline: auto;
  text-wrap: balance;
}

/* 10 · Flush top */
.section--flush-top {
  padding-top: 0;
}

/* 11 · Image slot (same box as .video-facade) */
.image-slot {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-soft);
}

.image-slot__img {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* 12 · FAQ (native <details>) */
.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__item:first-of-type {
  border-top: 1px solid var(--color-line);
}

.faq__item summary {
  cursor: pointer;
  font-weight: var(--fw-medium);
  padding: var(--space-3) 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--color-teal);
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

.faq__answer {
  padding-bottom: var(--space-3);
  color: var(--color-ink-soft);
}

/* 14 · Inline form: name and email side by side from 640px up; stacked below */
@media (min-width: 640px) {
  .form--inline {
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-3);
  }

  .form--inline > :not(.form__group) {
    grid-column: 1 / -1;
  }

  .form--inline .form__label {
    text-align: left;
  }
}

/* 15 · Numbered "three things" boxes (big teal Playfair numerals above the text) */
.things-list {
  list-style: none;
  counter-reset: things;
}

.things-list > li {
  counter-increment: things;
}

.things-list > li::before {
  content: counter(things);
  display: block;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--color-teal);
  margin-bottom: var(--space-2);
}

/* 16 · Closing line of the "You're not hopeless" section (bookends the sage heading) */
.section-close {
  margin-top: var(--space-5);
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--color-sage);
}

/* 17 · Check-circle bullets (sage circle, teal-dark check, like the thank-you page icon, sized to the text) */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: left;
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--color-ink);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.check-list__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--color-sage);
}

.check-list__icon svg {
  width: 55%;
  height: 55%;
  fill: none;
  stroke: var(--color-teal-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 18 · Registration frame (sage date header on top, form below, one card) */
.register-card {
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.register-card .date-line {
  display: block;
  max-width: none;
  margin: 0;
  border-radius: 0;
  padding: var(--space-3) var(--space-4);
}

.register-card__body {
  padding: var(--space-4);
}

@media (max-width: 639px) {
  .register-card .date-line {
    padding: var(--space-2) var(--space-3);
  }

  .register-card__body {
    padding: var(--space-3);
  }
}

/* 19 · Date on the dark final section: outlined, no fill */
.date-ghost {
  display: inline-block;
  max-width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--color-bg);
}

/* 20 · Top banner (slim sage bar above the dark headline band) */
.top-banner {
  background: var(--color-sage);
  color: var(--color-ink);
  text-align: center;
  padding: var(--space-1) var(--space-3);
}

.top-banner p {
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

/* 21 · Dark headline band: equal, tighter top and bottom padding */
.section--hero-head {
  padding-block: clamp(2rem, 4vw, 3rem);
}
