:root {
  --purple: #713399;
  --ink: #291e30;
  --muted: #75677e;
  --line: #e6ddec;
  --soft: #f4edf8;
  --orange: #d74480;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #faf7fc;
  color: var(--ink);
  font: 16px/1.5 "DM Sans", sans-serif;
  border-top: 5px solid var(--orange);
}
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);
}
.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);
}
.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: 700 22px/1.2 Manrope, sans-serif;
  margin: 0 0 12px;
}
.toc-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.list-title {
  margin: 0;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}
.lesson {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
}
.lesson:hover { background: #f8f2fc; }
.lesson[aria-current="true"] {
  background: #eee0f7;
  color: #672b90;
  box-shadow: inset 4px 0 var(--orange);
}
.lesson .num { font-size: 12px; color: var(--muted); width: 22px; }
.lesson strong { font-weight: 600; font-size: 14px; }
details { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 14px;
  color: var(--purple);
}
summary:hover { background: #f8f2fc; }
.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;
}
.resource strong { display: block; font-weight: 600; 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: #201326;
  border: 3px solid #561477;
  border-radius: 10px;
  box-shadow: 0 8px 22px #50087918;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  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: 700 32px/1.2 Manrope, sans-serif; }
.player-note { margin: 12px 0 0; color: #d7c3e4; font-size: 14px; }
.now-playing { padding-top: 16px; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--purple); }
.now-playing h3 { margin: 0 0 6px; font: 700 20px/1.3 Manrope, sans-serif; }
.now-playing p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.ctas { display: flex; flex-direction: column; gap: 14px; }
.cta-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e7d4ee;
  background: linear-gradient(165deg, #fff6ef 0%, #f3e4fb 55%, #efe4f6 100%);
  box-shadow: 0 10px 24px #50087914;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px #50087922;
}
.cta-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 8px;
  background:
    radial-gradient(ellipse at 50% 20%, #ffffffcc, transparent 68%),
    linear-gradient(180deg, #fff8f3 0%, #f6e9fb 100%);
}
.cover {
  width: 148px;
  height: auto;
  border-radius: 3px;
  box-shadow: 6px 10px 22px #26132b33;
}
.pyfp-logo { width: 92%; max-width: 220px; height: auto; object-fit: contain; }
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px;
  padding: 13px 10px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1px;
  background: linear-gradient(180deg, #8a4aad 0%, #713399 100%);
  box-shadow: inset 0 1px 0 #ffffff33, 0 4px 10px #71339922;
}
.cta-card:hover .cta-btn {
  background: linear-gradient(180deg, #9a5abd 0%, #7d3aaa 100%);
}
.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; }
.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--soft); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .version { font-size: 10px; }
  .cta-card { min-height: 240px; }
}
