/* Color 2 (bright): same six roles as Robyn's social palette, pushed to their most vivid versions.
   parchment = crisp warm white, lilac = saturated light purple, butter = sunny yellow,
   plum = vivid royal purple, ink = dark body text, scarlet = bright red-pink accent (the only accent) */
:root {
  --parchment: #FFFDF9;
  --lilac: #F4DDF7;
  --butter: #FFD95A;
  --plum: #7A1FB8;
  --ink: #211520;
  --scarlet: #E11D48;
  --scarlet-lift: #FF5C7A;
  --purple: var(--plum);
  --muted: rgba(33,21,32,.66);
  --body: rgba(33,21,32,.76);
  --line: rgba(33,21,32,.15);
  --soft: var(--lilac);
  --orange: var(--scarlet);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Archivo", system-ui, sans-serif;
  /* One button color for every button */
  --btn-bg: var(--scarlet);
  --btn-bg-hover: #BE123C;
  --btn-text: #FFFFFF;
  --btn-shadow: 0 6px 18px rgba(225,29,72,.18);
  --btn-shadow-hover: 0 8px 22px rgba(225,29,72,.26);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  border-top: 5px solid var(--scarlet);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
.site-header, .layout, .site-footer {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.signature-brand img {
  width: 150px;
  height: 65px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  opacity: .88;
}
.version {
  margin: 0;
  max-width: 420px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title {
  width: min(1200px, calc(100% - 40px));
  margin: 28px auto 0;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  row-gap: 12px;
  align-items: center;
}
.title-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.page-title .script-btn { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
.page-title .hero-line { grid-column: 1 / -1; grid-row: 2; }
.page-title h1 {
  margin: 0;
  max-width: 22em;
  font: 500 44px/1.06 var(--serif);
  letter-spacing: -0.024em;
  color: var(--plum);
}
.page-title .hero-sub {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--ink);
  font: 400 22px/1.3 var(--serif);
  letter-spacing: -0.012em;
}
.hl {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  cursor: default;
}
.hl-mark {
  position: absolute;
  z-index: -1;
  left: -0.14em;
  bottom: 0.04em;
  width: calc(100% + 0.3em);
  height: 0.9em;
  transform: rotate(-1.2deg);
  pointer-events: none;
}
.page-title .hero-line {
  margin: 12px 0 0;
  max-width: 46em;
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.5;
}
.page-title .hero-line + .hero-line {
  margin-top: 4px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 25fr) minmax(0, 60fr) minmax(0, 15fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0 10px;
}
.section-title h2 {
  font: 500 24px/1.2 var(--serif);
  letter-spacing: -0.016em;
  color: var(--plum);
  margin: 0 0 12px;
}
.toc-box {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #FFFFFF;
  overflow: hidden;
}
.list-title {
  margin: 0;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--plum);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
}
.lesson {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  text-align: left;
  color: var(--ink);
}
.lesson:hover { background: rgba(244,221,247,.55); }
.lesson[aria-current="true"] {
  background: var(--lilac);
  color: var(--plum);
  box-shadow: inset 3px 0 var(--scarlet);
}
.lesson .num { font-size: 12px; color: rgba(33,21,32,.62); width: 22px; font-variant-numeric: tabular-nums; }
.lesson[aria-current="true"] .num { color: var(--plum); }
.lesson strong { font-weight: 500; font-size: 14px; }
.lesson-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lesson-copy strong { display: block; }
.lesson-copy small,
.now-playing .eyebrow,
.now-playing .simple-intro,
.now-playing .resource-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--plum); font-weight: 600; }
.lesson[aria-current="true"] .lesson-copy small,
.now-playing .eyebrow { color: var(--scarlet); }
/* AA: small accent label on the light purple active row uses the deeper accent shade */
.lesson[aria-current="true"] .lesson-copy small { color: var(--btn-bg-hover); }

details { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 14px;
  color: var(--plum);
}
summary::marker { color: var(--scarlet); }
summary:hover { background: rgba(244,221,247,.55); }
.downloads { margin: 0; padding: 0 14px 8px; }
.resource {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
a.resource:hover strong { text-decoration: underline; }
.below-player {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 14px;
}
.below-player .now-playing { flex: 1; min-width: 0; padding-top: 0; }
.lesson-download { flex: 0 0 auto; margin: 0; }
.lesson-download[hidden] { display: none; }
.download-btn {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font: 600 13px/1.3 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--btn-shadow);
  transition: background .18s ease, box-shadow .18s ease;
}
.download-btn:hover { background: var(--btn-bg-hover); box-shadow: var(--btn-shadow-hover); }
.script-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 360px;
  padding: 15px 26px 13px;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-align: center;
  box-shadow: var(--btn-shadow);
  transition: background .18s ease, box-shadow .18s ease;
}
.script-label {
  font: 600 13px/1.3 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.script-sub {
  font: 400 12.5px/1.3 var(--sans);
  color: var(--btn-text);
}
.script-btn:hover { background: var(--btn-bg-hover); box-shadow: var(--btn-shadow-hover); }
.simple-system {
  margin-top: 14px;
  padding: 12px 16px 13px;
  background: var(--butter);
  border-radius: 2px;
  width: fit-content;
  max-width: 100%;
}
.now-playing .simple-system .simple-intro { color: var(--plum); }
.simple-intro { margin: 0 0 3px; }
.simple-steps {
  margin: 0;
  padding-left: 1.3em;
  color: rgba(33,21,32,.8);
  font: 400 14px/1.45 var(--sans);
}
.simple-steps li::marker { color: var(--plum); }
.simple-steps li { margin: 1px 0; }
.resource strong { display: block; font-weight: 500; color: var(--ink); font-size: 13px; }
.resource small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.resource > span:last-child { color: var(--purple); font-weight: 600; white-space: nowrap; }
.player {
  aspect-ratio: 16/9;
  background: var(--plum);
  border: 3px solid var(--plum);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(122,31,184,.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--parchment);
  padding: 24px;
}
.player-kicker { margin: 0 0 8px; letter-spacing: 1.4px; font-size: 12px; font-weight: 700; color: #e7ceef; text-transform: uppercase; }
.player-title { margin: 0; font: 500 32px/1.2 var(--serif); }
.player-note { margin: 12px 0 0; color: #d7c3e4; font-size: 14px; }
.now-playing { padding-top: 14px; }
.now-playing .eyebrow { margin: 0 0 2px; }
.now-playing h3 { margin: 2px 0 4px; font: 500 19px/1.25 var(--serif); letter-spacing: -0.012em; color: var(--plum); }
#lesson-desc { margin: 0; color: var(--body); font: 400 14px/1.45 var(--sans); max-width: 62ch; }
#lesson-desc[hidden] { display: none; }
.now-playing .resource-label { margin: 12px 0 3px; }
#lesson-resources { margin: 0; padding-left: 18px; color: var(--body); font: 400 14px/1.45 var(--sans); }
#lesson-resources li::marker { color: var(--scarlet); }
#lesson-resources li { margin: 1px 0; }
.offers { min-width: 0; position: relative; }
.cta-intro {
  display: block;
  margin: 0 0 12px;
  font: 400 14px/1.45 var(--sans);
  color: var(--body);
}
.ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(122,31,184,.10);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter .18s ease;
}
.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-10px) scale(1.035);
  box-shadow: 0 24px 44px rgba(122,31,184,.30);
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}
.cta-card:hover img,
.cta-card:focus-visible img { filter: brightness(1.08); }
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.copy { margin: 0; }
.connect-bar { display: flex; align-items: center; gap: 8px; }
.connect-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--plum);
  white-space: nowrap;
}
#lessons { display: flex; flex-direction: column; }
.player.has-video {
  padding: 0;
  display: block;
  overflow: hidden;
  background: #000;
}
.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.player-coming { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--plum);
  background: transparent;
  transition: background .18s ease;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--soft); }
@media (max-width: 860px) {
  .site-header, .layout, .site-footer, .page-title {
    width: min(1200px, calc(100% - 32px));
  }
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
  }
  .signature-brand img { width: 120px; height: auto; }
  .connect-bar { gap: 10px; }
  .connect-label { font-size: 13px; }
  .social-icon { width: 44px; height: 44px; }
  .page-title {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .title-copy { order: 1; }
  .page-title .hero-line { order: 2; font-size: 16px; }
  .page-title .script-btn {
    order: 3;
    display: flex;
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }
  .script-label { white-space: normal; }
  .page-title h1 { font-size: 30px; }
  .page-title .hero-sub { font-size: 19px; }
  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 16px;
  }
  /* Mobile/tablet: table of contents above the video, then CTAs */
  .system { order: -2; }
  .player-col { order: -1; }
  .ctas { gap: 18px; }
  .script-btn { text-align: center; }
  .lesson { padding: 14px; }
  .summary { padding: 16px 14px; }
  .below-player { flex-direction: column; gap: 12px; }
  .lesson-download:not([hidden]) { align-self: flex-end; }
  .resource > span:last-child { white-space: normal; }
  .now-playing h3 { font-size: 17px; }
}
