/* ============================================================
   Rayls Media — shared styles
   Faithful to the Rayls design system (rayls-DESIGN.md):
   electric-yellow canvas, black pill UI, flat surfaces,
   Rethink Sans exclusively, single validated card shadow.
   ============================================================ */

:root {
  /* palette — extracted brand tokens */
  --brand-yellow: #ecfb3e;
  --brand-purple: #b49aff;
  --black: #000000;
  --off-black: #111111;
  --neutral-darker: #222222;
  --off-white: #eff1f5;
  --white: #ffffff;
  --neutral-light: #aaaaaa;

  /* semantic */
  --bg: var(--white);
  --ink: var(--off-black);
  --muted: #5c5c63;
  --line: rgba(0, 0, 0, 0.12);

  /* shape — extracted radius roles */
  --radius-small: 8px;
  --radius-card: 16px;
  --radius-large: 40px;
  --radius-pill: 9999px;

  /* elevation — the one validated shadow */
  --shadow-card: 0px 20px 24px -4px rgba(0, 0, 0, 0.08);

  --font-sans: "Rethink Sans", sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--black); color: var(--brand-yellow); }

:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.dark :focus-visible, footer.site-footer :focus-visible { outline-color: var(--brand-yellow); }

/* ---------- typography (extracted scale) ---------- */

h1, h2, h3 { font-weight: 500; }

.display {
  font-size: clamp(2.8rem, 6.5vw, 5rem);      /* → 80px display-hero */
  line-height: 1.0;
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(1.8rem, 3.4vw, 3rem);      /* → 48px display-large */
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lede { color: inherit; font-size: 18px; font-weight: 500; line-height: 1.5; max-width: 54ch; }
.sub { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 60ch; }

.label, .mono {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- buttons & pills (pill geometry throughout) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  background: transparent;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--black); border-color: var(--black); color: var(--white); }
.btn.primary:hover { background: var(--neutral-darker); }
.btn.small { padding: 8px 18px; font-size: 14px; }

.dark .btn { border-color: var(--white); color: var(--white); }
.dark .btn.primary { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--black); }
.dark .btn.primary:hover { background: #f4ff70; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pill:hover { background: rgba(0, 0, 0, 0.06); }
.pill.active { background: var(--black); border-color: var(--black); color: var(--white); }
.pill.lav { background: rgba(180, 154, 255, 0.25); border-color: transparent; }
.pill.lav.active { background: var(--brand-purple); color: var(--black); }

.tag {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--off-white);
  color: var(--ink);
}
.tag.level { background: var(--brand-purple); color: var(--black); }
.tag.hot { background: var(--brand-yellow); color: var(--black); }
.dark .tag { background: var(--neutral-darker); color: var(--white); }
.dark .tag.level { background: var(--brand-purple); color: var(--black); }
.dark .tag.hot { background: var(--brand-yellow); color: var(--black); }

/* ---------- nav (sits on the yellow canvas) ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-yellow);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 26px; width: auto; }
.logo .logo-tag {
  background: var(--black);
  color: var(--brand-yellow);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 16px;
  list-style: none;
}
.nav-links a:hover { opacity: 0.65; }
.nav-links a.on { font-weight: 700; }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; font-size: 1.4rem; line-height: 1; padding: 4px 10px; }

/* ---------- hero (yellow canvas) ---------- */

.hero {
  position: relative;
  background: var(--brand-yellow);
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .lede { margin: 24px 0 36px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ambient equalizer along the hero base — quiet black bars on yellow */
.hero-eq {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 110px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  opacity: 0.10;
  pointer-events: none;
}
.hero-eq span {
  flex: 1;
  background: var(--black);
  height: var(--eh, 20%);
  border-radius: 3px 3px 0 0;
}

/* ---------- sections ---------- */

.section { padding: 80px 0; }
.section.alt { background: var(--off-white); }
.section.dark { background: var(--off-black); color: var(--white); }
.section.dark .eyebrow { color: var(--brand-yellow); }
.section.dark .sub, .section.dark p { color: var(--neutral-light); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ---------- cards (flat, white, 16px corners) ---------- */

.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
a.card:hover, .card.hov:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.card h3 { font-size: 24px; line-height: 1.4; letter-spacing: -0.01em; }
.card h3.tight { font-size: 19px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; gap: 10px; }

.dark .card, .section.dark .card {
  background: var(--neutral-darker);
  border-color: rgba(255, 255, 255, 0.1);
}
.section.dark .card p { color: var(--neutral-light); }

/* artwork placeholder — yellow brand square */
.art {
  border-radius: var(--radius-card);
  background: var(--brand-yellow);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--black);
  text-align: center;
  flex: none;
}
.art.wide { aspect-ratio: 16/10; }
.art.purple { background: var(--brand-purple); }
img.art { object-fit: cover; }

/* ---------- player ---------- */

.player { display: flex; align-items: center; gap: 16px; width: 100%; }
.play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex: none;
  transition: transform 0.2s, background 0.2s;
}
.play-btn:hover { transform: scale(1.06); }
.dark .play-btn { background: var(--brand-yellow); color: var(--black); }

.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; }
.wave i {
  flex: 1;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  height: calc(14px + var(--h, 0) * 24px);
}
.wave i.past { background: var(--black); }
.dark .wave i { background: rgba(255, 255, 255, 0.18); }
.dark .wave i.past { background: var(--brand-yellow); }

.player .time { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); min-width: 96px; text-align: right; }
.dark .player .time { color: var(--neutral-light); }

/* featured episode panel — dark stage on the light page */
.feature-panel {
  background: var(--off-black);
  color: var(--white);
  border-radius: var(--radius-large);
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.feature-panel .art { width: 148px; }
.feature-panel .body { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature-panel h3 { font-size: 24px; }
.feature-panel p { color: var(--neutral-light); font-size: 14px; }
.feature-panel .label, .feature-panel .mono { color: var(--neutral-light); }

/* episode rows (podcast index) */
.ep-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ep-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.ep-row .num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; min-width: 48px; }
.ep-row .body { flex: 1; min-width: 0; }
.ep-row .body a { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.ep-row .body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ep-row .body p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.ep-row .side { display: flex; align-items: center; gap: 12px; flex: none; }
.ep-row .dur { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); min-width: 56px; text-align: right; }
.ep-row .mini-play {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: background 0.2s, color 0.2s;
}
.ep-row .mini-play:hover { background: var(--black); color: var(--white); }

/* filter toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar .search {
  margin-left: auto;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 9px 20px;
  width: 230px;
}
.toolbar .search::placeholder { color: var(--muted); }
.toolbar .search:focus { border-color: var(--black); outline: none; }

.empty-state {
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-card);
  padding: 44px;
  text-align: center;
  color: var(--muted);
}

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 8px 20px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  color: var(--ink);
}
.tab:hover { background: rgba(0, 0, 0, 0.06); }
.tab[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.tab-panel[hidden] { display: none; }
.tab-panel { color: var(--muted); font-size: 16px; line-height: 1.6; }
.tab-panel h4 { color: var(--ink); margin: 20px 0 8px; font-size: 18px; font-weight: 500; }
.tab-panel ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.tab-panel strong { color: var(--ink); font-weight: 500; }

/* chapters list */
.chapter-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
  align-items: baseline;
}
.chapter-row .ts {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--brand-yellow);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  min-width: 62px;
  text-align: center;
}
.chapter-row .ct { color: var(--muted); transition: color 0.15s; }
.chapter-row:hover .ct { color: var(--ink); }

/* ---------- accordions ---------- */

details.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  margin-bottom: 10px;
}
details.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 500;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 24px 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---------- glossary chips + popover ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180, 154, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  transition: background 0.2s;
}
.chip:hover { background: rgba(180, 154, 255, 0.45); }
.chip .pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--off-black);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  box-shadow: var(--shadow-card);
  z-index: 20;
  display: none;
}
.chip[aria-expanded="true"] .pop { display: block; }
.chip .pop b { color: var(--brand-purple); display: block; margin-bottom: 4px; font-weight: 500; }

/* ---------- progress bars (learn) ---------- */

.progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--off-white);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--black);
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

.track-card .lvl {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand-purple);
  color: var(--black);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.track-card details { border-top: 1px solid var(--line); margin-top: 6px; }
.track-card summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0 6px;
}
.track-card summary::-webkit-details-marker { display: none; }
.track-card summary:hover { color: var(--ink); }
.lesson {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink);
}
.lesson input { accent-color: var(--black); width: 16px; height: 16px; flex: none; }
.lesson .fmt { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); margin-left: auto; white-space: nowrap; }
.lesson.done label { text-decoration: line-through; opacity: 0.55; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-small);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); outline: none; }
.field .err { color: #C4320A; font-size: 13px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #C4320A; }
.field.invalid .err { display: block; }

.form-success {
  border-radius: var(--radius-large);
  background: var(--brand-yellow);
  padding: 44px;
  text-align: center;
  display: none;
}
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p { color: var(--ink); }
.form-success a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- banner CTA (dark stage) ---------- */

.banner {
  background: var(--off-black);
  color: var(--white);
  border-radius: var(--radius-large);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.banner h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
.banner p { color: var(--neutral-light); margin-top: 8px; max-width: 52ch; }
.banner .eyebrow { color: var(--brand-yellow); }

/* ---------- footer (off-black, like rayls.com) ---------- */

footer.site-footer {
  background: var(--off-black);
  color: var(--neutral-light);
  padding: 64px 0 40px;
  margin-top: 96px;
  font-size: 14px;
}
footer.site-footer .logo img { filter: invert(1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid h4 { color: var(--white); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input {
  flex: 1;
  background: var(--neutral-darker);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  padding: 10px 18px;
  min-width: 0;
}
.newsletter input::placeholder { color: var(--neutral-light); }
.newsletter input:focus { border-color: var(--brand-yellow); outline: none; }
.newsletter .btn { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--black); }
.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- episode detail ---------- */

.ep-hero {
  background: var(--brand-yellow);
  padding: 56px 0 64px;
}
.ep-hero .wrap { display: flex; gap: 40px; align-items: flex-start; }
.ep-hero .art { width: 200px; background: var(--white); }
.ep-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 18px; }
.ep-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ep-hero .tag { background: rgba(255, 255, 255, 0.55); }
.ep-hero .tag.level { background: var(--brand-purple); }
.guest-line { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-purple);
  color: var(--black);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.sticky-player {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  box-shadow: var(--shadow-card);
}

.ep-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 56px 0; }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar .card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }
.sub-links { display: flex; flex-direction: column; gap: 8px; }
.sub-links a {
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
}
.sub-links a:hover { background: var(--black); color: var(--white); }
.sidebar .invite-card { background: var(--brand-yellow); border-color: transparent; }
.sidebar .invite-card h4, .sidebar .invite-card p { color: var(--ink); }

/* ---------- guest page ---------- */

.team-card .avatar { width: 72px; height: 72px; font-size: 1rem; }
.team-photo {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-purple);
  flex: none;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo .avatar { display: none; width: 100%; height: 100%; border-radius: 0; }
.team-photo.noimg img { display: none; }
.team-photo.noimg .avatar { display: inline-flex; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n {
  font-size: 13px;
  font-weight: 700;
  background: var(--brand-yellow);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }
.step .cost {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(180, 154, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: baseline; font-size: 16px; color: var(--ink); }
.checklist li::before {
  content: "→";
  font-weight: 700;
  background: var(--brand-yellow);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 13px;
}

/* ---------- hero wave canvas (front page) ---------- */

.hero.deep { padding-bottom: 185px; }

/* X (Twitter) link in the nav */
.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.nav-x:hover { opacity: 0.65; }
.nav-x svg { display: block; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: 150px;
  display: block;
  pointer-events: none;
}

/* ---------- library loading state (intentionally never resolves) ---------- */

.card.loading { position: relative; pointer-events: none; }
.card.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  border-radius: inherit;
  z-index: 1;
}
.card.loading::before {
  content: "";
  position: absolute;
  top: calc(50% - 17px);
  left: calc(50% - 17px);
  width: 34px; height: 34px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--black);
  border-radius: 50%;
  z-index: 2;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- podcast cover art ---------- */

.pod-art { flex: none; }
.pod-art > img {
  width: 100%;
  border-radius: 3px; /* framed artwork has a thin border; big radii clip it */
  display: block;
  box-shadow: var(--shadow-card);
}
.pod-art .fallback { display: none; }
.pod-art.noart > img { display: none; }
.pod-art.noart .fallback { display: flex; }
.pod-art .fallback img { width: 100%; }

/* ---------- announcement bar ---------- */

.announce-bar {
  background: var(--off-black);
  color: var(--white);
  font-size: 14px;
}
.announce-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 11px;
  padding-bottom: 11px;
  text-align: center;
}
.announce-bar a { color: var(--brand-yellow); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- backers strip ---------- */

.backers { text-align: center; }
.backers-title { font-size: 24px; font-weight: 500; }
.backers-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px 76px;
  flex-wrap: wrap;
  margin-top: 52px;
}
.backers-row img { height: 50px; width: auto; }
.backers-row img.tall { height: 68px; }
@media (max-width: 767px) {
  .backers-row { gap: 32px 44px; }
  .backers-row img { height: 34px; }
  .backers-row img.tall { height: 46px; }
}

/* ---------- YouTube integration ---------- */

/* hidden 1px iframe that supplies audio for data-yt players */
.player { position: relative; }
.player .yt-audio-holder,
.player iframe {
  position: absolute;
  left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

/* inline video embed inside an episode row */
.ep-row { flex-wrap: wrap; }
.ep-embed { width: 100%; margin-top: 14px; }
.ep-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--off-black);
}

/* ---------- cookie consent ---------- */

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: var(--off-black);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  width: min(320px, calc(100vw - 40px));
  box-shadow: var(--shadow-card);
}
.cookie-banner p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.cookie-banner a { color: var(--brand-yellow); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  border-radius: var(--radius-pill);
  padding: 8px 24px;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s;
}
.cookie-accept { background: var(--brand-yellow); color: var(--black); }
.cookie-accept:hover { background: #f4ff70; }
.cookie-reject { border: 1px solid var(--white); color: var(--white); }
.cookie-reject:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--d, 0) * 90ms);
  }
  @keyframes rise { to { opacity: 1; transform: none; } }

  .player.playing .wave i.past { animation: pulse 0.9s ease-in-out infinite alternate; }
  @keyframes pulse { from { transform: scaleY(0.85); } to { transform: scaleY(1.1); } }

  .hero-eq span { animation: eq 1.6s ease-in-out infinite alternate; }
  .hero-eq span:nth-child(3n) { animation-duration: 1.1s; }
  .hero-eq span:nth-child(4n) { animation-duration: 2s; }
  .hero-eq span:nth-child(5n) { animation-duration: 1.4s; }
  @keyframes eq { from { height: 12%; } to { height: var(--eh, 70%); } }
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .ep-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ep-hero .wrap { flex-direction: column-reverse; }
  .ep-hero .art { width: 140px; }
}

@media (max-width: 767px) {
  .grid.c3, .grid.c4, .grid.c2 { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--brand-yellow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    gap: 16px;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .site-nav .btn { display: none; }
  .feature-panel { flex-direction: column; align-items: flex-start; padding: 26px; }
  .feature-panel .art { width: 100px; }
  .ep-row { flex-wrap: wrap; }
  .ep-row .side { width: 100%; justify-content: space-between; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .hero { padding: 48px 0 72px; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner { padding: 30px; }
  .section { padding: 56px 0; }
}
