:root {
  --paper: #e8e7e2;
  --paper-deep: #d4d3ce;
  --ink: #111111;
  --muted: #68655f;
  --forest: #171717;
  --forest-soft: #ffe7a3;
  --orange: #f56a16;
  --orange-soft: #ffd0ac;
  --yellow: #ffc928;
  --yellow-soft: #ffedaa;
  --white: #faf9f5;
  --line: rgba(17, 17, 17, 0.16);
  --shadow: 0 24px 64px rgba(17, 17, 17, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 720px;
  padding: 26px clamp(24px, 6vw, 104px) 84px;
  color: var(--white);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 201, 40, 0.07) 62% 72%, transparent 72%),
    radial-gradient(circle at 84% 25%, rgba(245, 106, 22, 0.38), transparent 20%),
    radial-gradient(circle at 70% 72%, rgba(255, 201, 40, 0.13), transparent 25%),
    var(--forest);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 46px;
  right: -70px;
  bottom: 72px;
  background: var(--yellow);
  transform: rotate(-12deg);
  box-shadow: 0 70px 0 var(--orange);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: -0.02em;
}

.logout-link {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.logout-link:hover {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.login-page {
  min-height: 100svh;
  color: var(--white);
  background:
    linear-gradient(145deg, transparent 0 60%, rgba(245, 106, 22, 0.42) 60% 70%, transparent 70%),
    radial-gradient(circle at 82% 25%, rgba(255, 201, 40, 0.2), transparent 24%),
    var(--forest);
}

.login-shell {
  display: grid;
  width: min(100% - 32px, 620px);
  min-height: 100svh;
  padding: 40px 0;
  margin: 0 auto;
  place-items: center;
}

.login-card {
  width: 100%;
  padding: clamp(28px, 7vw, 58px);
  border-top: 7px solid var(--orange);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.login-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.login-card h1 {
  max-width: 9ch;
  margin: 10px 0 20px;
  color: var(--ink);
  font-size: clamp(2.55rem, 10vw, 4.5rem);
  line-height: 0.92;
}

.login-lead {
  margin: 0 0 28px;
  color: #515851;
}

.login-message {
  padding: 12px 14px;
  margin: 0 0 20px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}

.login-message-error {
  color: #711d00;
  background: var(--orange-soft);
}

.login-message-success {
  color: #4d3a00;
  background: var(--yellow-soft);
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  outline: 0;
}

.login-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 106, 22, 0.17);
}

.login-form button {
  min-height: 54px;
  padding: 13px 18px;
  margin-top: 5px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-weight: 850;
}

.login-form button:hover {
  background: var(--orange);
}

.login-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-help a {
  color: var(--ink);
  font-weight: 750;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand small {
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
}

.demo-badge {
  padding: 8px 13px;
  border: 1px solid rgba(255, 201, 40, 0.55);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.78rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: clamp(44px, 8vw, 130px);
  align-items: end;
  max-width: 1320px;
  margin: clamp(100px, 15vh, 165px) auto 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 870px;
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

.hero-lead {
  max-width: 650px;
  margin: 32px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
}

.primary-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.primary-link span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}

.hero-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 5px solid var(--orange);
  border-radius: 18px;
  background: rgba(47, 47, 47, 0.82);
  backdrop-filter: blur(10px);
}

.hero-card-label {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.stat-grid span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.hero-card > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 120px;
}

.library-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 42px;
}

.library-intro h2,
.empty-state h2 {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.library-intro > p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--muted);
}

.controls {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 16px;
  background: rgba(250, 249, 245, 0.9);
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(16px);
}

.search {
  display: flex;
  flex: 1 1 420px;
  gap: 12px;
  align-items: center;
  min-width: 280px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search input {
  width: 100%;
  padding: 13px 4px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search input::placeholder {
  color: #92978f;
}

kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.7rem;
  white-space: nowrap;
}

.filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  transition: 160ms ease;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 20px 4px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.lesson-list {
  display: grid;
  gap: 24px;
}

.lesson-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.35fr);
  min-height: 560px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-top: 6px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 164px;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.lesson-card[hidden] {
  display: none;
}

.lesson-visual {
  min-height: 100%;
  padding: 18px;
  background: #c9c8c3;
}

.visual-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 430px;
  padding: 28px;
  border-radius: 12px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.95) 0 32%, transparent 32%),
    linear-gradient(315deg, rgba(245, 106, 22, 0.95) 0 21%, transparent 21%),
    #d7d6d1;
  overflow: hidden;
  position: relative;
}

.visual-placeholder::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -74px;
  bottom: -74px;
  border: 14px solid rgba(17, 17, 17, 0.78);
  border-radius: 50%;
}

.lesson-card[data-theme="mindset"] .visual-placeholder {
  background:
    linear-gradient(150deg, var(--orange) 0 24%, transparent 24%),
    linear-gradient(330deg, var(--yellow) 0 35%, transparent 35%),
    #d6d5d0;
}

.lesson-card[data-theme="focus"] .visual-placeholder {
  color: var(--yellow);
  background:
    linear-gradient(135deg, transparent 0 58%, var(--orange) 58% 70%, transparent 70%),
    #202020;
}

.lesson-card.has-image .visual-placeholder {
  background-position: center;
  background-size: cover;
}

.lesson-card.has-image .visual-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.5));
}

.lesson-card.has-image .lesson-number,
.lesson-card.has-image .visual-word {
  z-index: 1;
  color: var(--white);
}

.lesson-number {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.visual-word {
  max-width: 260px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  position: relative;
  z-index: 1;
}

.lesson-body {
  padding: clamp(30px, 5vw, 62px);
}

.lesson-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lesson-title {
  max-width: 760px;
  margin: 16px 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.lesson-summary {
  max-width: 760px;
  margin: 0;
  color: #4f594f;
  font-size: 1.02rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--forest-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.player-panel {
  padding: 19px 20px 14px;
  margin: 24px 0 0;
  border-left: 7px solid var(--orange);
  border-radius: 12px;
  color: var(--white);
  background: var(--forest);
}

audio {
  display: block;
  width: 100%;
  height: 42px;
}

video {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: 8px;
  background: #000;
}

.player-note {
  margin: 8px 3px 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
}

.section-label {
  margin: 28px 0 9px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.key-points ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.key-points li {
  padding-left: 22px;
  position: relative;
}

.key-points li::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 0.58em;
  left: 0;
  border-radius: 50%;
  background: var(--orange);
}

.transcript {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.transcript summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 0 4px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.transcript summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
}

.transcript[open] summary::after {
  content: "−";
}

.summary-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.transcript-content {
  display: grid;
  gap: 15px;
  padding-top: 20px;
}

.transcript-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  align-items: start;
}

.time-button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: var(--forest-soft);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.time-button:hover {
  color: var(--ink);
  background: var(--orange);
}

.transcript-row p {
  margin: 2px 0 0;
  color: #4c554d;
  font-size: 0.92rem;
}

.transcript-note {
  margin: 22px 0 0;
  color: #888d86;
  font-size: 0.7rem;
}

.empty-state {
  padding: 100px 20px;
  text-align: center;
}

.empty-state p:not(.eyebrow) {
  color: var(--muted);
}

.primary-button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest);
  cursor: pointer;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 54px clamp(24px, 6vw, 104px);
  color: rgba(255, 255, 255, 0.68);
  border-top: 8px solid var(--yellow);
  background: #141414;
}

footer > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

footer p {
  margin: 0;
  font-size: 0.84rem;
}

footer strong {
  color: var(--white);
}

.brand-mark-small {
  width: 40px;
  height: 40px;
  font-size: 0.82rem;
}

.footer-note {
  text-align: right;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    margin-top: 100px;
  }

  .hero-card {
    max-width: 620px;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    flex-basis: auto;
  }

  .lesson-card {
    grid-template-columns: 1fr;
  }

  .lesson-visual {
    min-height: 380px;
  }

  .visual-placeholder {
    min-height: 344px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: min(690px, 100svh);
    padding: 18px 16px 32px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.85rem, 14.5vw, 4.15rem);
    line-height: 0.91;
  }

  .brand small,
  .demo-badge,
  kbd {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero-grid {
    gap: 30px;
    margin-top: 54px;
  }

  .hero-lead {
    margin: 24px 0 22px;
    font-size: 1rem;
  }

  .primary-link {
    min-height: 44px;
  }

  .hero-card {
    padding: 17px 18px;
    border-top-width: 4px;
    border-radius: 14px;
  }

  .hero-card-label {
    margin-bottom: 12px;
  }

  .stat-grid {
    gap: 8px;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }

  .stat-grid strong {
    font-size: 1.55rem;
  }

  .hero-card > p:last-child {
    display: none;
  }

  .hero::after {
    width: 250px;
    height: 28px;
    right: -72px;
    bottom: 48px;
    box-shadow: 0 45px 0 var(--orange);
  }

  main {
    width: min(100% - 20px, 1320px);
    padding: 50px 0 72px;
  }

  .library-intro {
    display: block;
    padding: 0 6px;
    margin-bottom: 26px;
  }

  .library-intro h2,
  .empty-state h2 {
    font-size: 2.75rem;
  }

  .library-intro > p {
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .controls {
    top: 6px;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .search {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border-radius: 11px;
  }

  .search input {
    padding: 10px 4px;
    font-size: 0.96rem;
  }

  .filters {
    width: 100%;
    padding-bottom: 1px;
    scroll-snap-type: x proximity;
  }

  .filter-button {
    min-height: 44px;
    padding: 10px 16px;
    scroll-snap-align: start;
  }

  .results-bar {
    min-height: 44px;
    padding: 15px 6px 9px;
  }

  .lesson-card {
    min-height: 0;
    border-top-width: 5px;
    border-radius: 18px;
    scroll-margin-top: 150px;
  }

  .lesson-list {
    gap: 18px;
  }

  .lesson-visual {
    min-height: 196px;
    padding: 10px;
  }

  .visual-placeholder {
    min-height: 176px;
    padding: 18px;
    border-radius: 9px;
  }

  .visual-placeholder::after {
    width: 150px;
    height: 150px;
    right: -48px;
    bottom: -56px;
    border-width: 10px;
  }

  .lesson-number {
    font-size: 3rem;
  }

  .visual-word {
    max-width: 230px;
    font-size: 2.25rem;
  }

  .lesson-body {
    padding: 23px 20px 28px;
  }

  .lesson-meta {
    font-size: 0.68rem;
  }

  .lesson-title {
    margin: 12px 0;
    font-size: 2rem;
    line-height: 0.97;
  }

  .lesson-summary {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .player-panel {
    padding: 12px 12px 9px;
    margin-top: 18px;
    border-left-width: 5px;
    border-radius: 10px;
  }

  audio {
    min-height: 48px;
  }

  video {
    max-height: 72svh;
  }

  .player-note {
    margin-top: 5px;
  }

  .tag-list {
    gap: 6px;
    margin-top: 16px;
  }

  .tag {
    padding: 6px 9px;
  }

  .section-label {
    margin-top: 24px;
  }

  .key-points ul {
    gap: 7px;
  }

  .key-points li {
    padding-left: 19px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .key-points li::before {
    width: 7px;
    height: 7px;
  }

  .transcript {
    margin-top: 23px;
  }

  .transcript summary {
    min-height: 54px;
    padding: 16px 0 0;
  }

  .summary-hint {
    display: none;
  }

  .transcript-row {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }

  .time-button {
    min-width: 52px;
    min-height: 42px;
    padding: 6px;
  }

  .transcript-row p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  footer {
    display: block;
    padding: 44px 24px;
  }

  .footer-note {
    margin-top: 24px;
    text-align: left;
  }
}

/* Compact library list */
.lesson-list {
  gap: 10px;
}

.lesson-card {
  display: block;
  min-height: 0;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 16px;
  contain-intrinsic-size: 124px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lesson-card.is-open {
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.12);
}

.lesson-overview {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 42px;
  gap: 16px;
  align-items: center;
  min-height: 120px;
  padding: 10px 16px 10px 10px;
  background: var(--white);
  position: relative;
}

.lesson-overview:hover {
  background: #fffef9;
}

.lesson-toggle {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: transparent;
  cursor: pointer;
}

.lesson-toggle:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -4px;
}

.lesson-visual {
  width: 104px;
  height: 96px;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  border-radius: 10px;
}

.visual-placeholder::after {
  width: 72px;
  height: 72px;
  right: -24px;
  bottom: -28px;
  border-width: 7px;
}

.lesson-number {
  font-size: 1.8rem;
}

.visual-word {
  max-width: 90px;
  font-size: 0.95rem;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.lesson-heading {
  min-width: 0;
}

.lesson-category {
  display: block;
  color: #b74608;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lesson-title {
  display: -webkit-box;
  max-width: none;
  margin: 5px 0 7px;
  overflow: hidden;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-tags {
  display: flex;
  gap: 5px;
  min-width: 0;
  margin-bottom: 7px;
  overflow: hidden;
}

.compact-tag {
  max-width: 150px;
  padding: 2px 7px;
  overflow: hidden;
  border-radius: 999px;
  color: #4d3a00;
  background: var(--yellow-soft);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-tag-count {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--ink);
}

.lesson-meta {
  font-size: 0.68rem;
}

.lesson-open-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.lesson-card.is-open .lesson-open-icon {
  background: var(--orange);
  transform: rotate(45deg);
}

.lesson-details {
  padding: 24px 28px 30px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.lesson-details[hidden] {
  display: none;
}

.lesson-details .lesson-summary {
  max-width: 900px;
}

@media (max-width: 640px) {
  .lesson-list {
    gap: 8px;
  }

  .lesson-card {
    border-radius: 13px;
    scroll-margin-top: 148px;
  }

  .lesson-overview {
    grid-template-columns: 76px minmax(0, 1fr) 32px;
    gap: 10px;
    min-height: 112px;
    padding: 8px 10px 8px 8px;
  }

  .lesson-toggle {
    border-radius: 12px;
  }

  .lesson-visual {
    width: 76px;
    height: 76px;
  }

  .visual-placeholder {
    padding: 10px;
    border-radius: 8px;
  }

  .visual-placeholder::after {
    width: 54px;
    height: 54px;
    right: -20px;
    bottom: -22px;
    border-width: 6px;
  }

  .lesson-number {
    font-size: 1.45rem;
  }

  .visual-word {
    display: none;
  }

  .lesson-category {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .lesson-title {
    margin: 3px 0 5px;
    font-size: 1.02rem;
    line-height: 1.08;
  }

  .compact-tags {
    gap: 4px;
    margin-bottom: 5px;
  }

  .compact-tag {
    max-width: 86px;
    padding: 1px 6px;
    font-size: 0.55rem;
  }

  .lesson-meta {
    gap: 6px;
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }

  .lesson-open-icon {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

  .lesson-details {
    padding: 17px 14px 22px;
  }

  .lesson-details .lesson-summary {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Product dashboard */
.library-page {
  background: #efeee9;
}

.app-header {
  padding: 24px clamp(24px, 6vw, 104px) 66px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 22%, rgba(245, 106, 22, 0.34), transparent 22%),
    linear-gradient(120deg, transparent 0 72%, rgba(255, 201, 40, 0.08) 72%),
    #171717;
  overflow: hidden;
  position: relative;
}

.app-header::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 34px;
  right: -65px;
  bottom: 35px;
  background: var(--yellow);
  box-shadow: 0 52px 0 var(--orange);
  transform: rotate(-10deg);
}

.welcome-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  max-width: 1320px;
  margin: 78px auto 0;
}

.welcome-panel h1 {
  max-width: 720px;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
}

.welcome-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.library-page main {
  padding-top: 64px;
}

.discovery-intro,
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.discovery-intro {
  margin-bottom: 34px;
}

.discovery-intro h2,
.section-heading h2 {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.55rem, 4.8vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.discovery-intro > p,
.section-heading > p {
  max-width: 410px;
  margin: 0 0 4px;
  color: var(--muted);
}

.continue-section,
.collection-section {
  margin-bottom: 72px;
}

.continue-section[hidden] {
  display: none;
}

.continue-section .section-heading {
  margin-bottom: 18px;
}

.continue-section .section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.continue-card {
  display: grid;
  width: 100%;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  text-align: left;
}

.continue-card:hover {
  background: #252525;
}

.continue-play {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
}

.continue-copy {
  display: grid;
  min-width: 0;
}

.continue-category,
.continue-time {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.continue-copy strong {
  margin: 4px 0 8px;
  overflow: hidden;
  font-size: 1.12rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-progress {
  width: min(380px, 100%);
  height: 4px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.continue-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.continue-action {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
}

.collection-section .section-heading {
  margin-bottom: 24px;
}

.collection-section .section-heading h2 {
  font-size: clamp(2.15rem, 3.7vw, 3.5rem);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  display: flex;
  min-height: 286px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  position: relative;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.collection-card:hover,
.collection-card.is-active {
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.12);
  transform: translateY(-3px);
}

.collection-card-yellow {
  background: var(--yellow);
}

.collection-card-orange {
  background: var(--orange);
}

.collection-card-dark {
  color: var(--white);
  background: var(--ink);
}

.collection-card-cream {
  background: #fff4d5;
}

.collection-number {
  margin-bottom: auto;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
  letter-spacing: -0.07em;
}

.collection-eyebrow {
  margin-bottom: 7px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-card strong {
  max-width: 12ch;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.collection-description {
  margin-top: 10px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.72;
}

.collection-meta {
  margin-top: 18px;
  font-size: 0.67rem;
  font-weight: 800;
  opacity: 0.72;
}

.collection-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.3rem;
}

.library-page .library-intro {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.personal-filters {
  display: flex;
  gap: 7px;
  padding: 14px 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.personal-filters::-webkit-scrollbar {
  display: none;
}

.personal-filter {
  display: inline-flex;
  min-height: 42px;
  gap: 7px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.personal-filter[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.personal-filter strong {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.65rem;
}

.lesson-overview {
  grid-template-columns: 104px minmax(0, 1fr) 38px;
}

.lesson-actions {
  display: grid;
  z-index: 5;
  gap: 8px;
  justify-items: center;
}

.favorite-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 1.15rem;
}

.favorite-button:hover,
.favorite-button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange-soft);
}

.lesson-open-icon {
  pointer-events: none;
}

.completed-label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #3e681b;
}

.completed-label[hidden] {
  display: none;
}

.lesson-progress {
  width: min(240px, 100%);
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  overflow: hidden;
}

.lesson-progress[hidden] {
  display: none;
}

.lesson-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.lesson-card.is-completed .lesson-overview {
  background: #f8f8f3;
}

.player-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.player-footer .player-note {
  margin: 0 3px;
}

.complete-button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 750;
}

.complete-button:hover,
.complete-button.is-complete {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

@media (max-width: 980px) {
  .welcome-panel {
    grid-template-columns: 1fr;
    margin-top: 58px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 18px 16px 34px;
  }

  .app-header::after {
    width: 190px;
    height: 22px;
    right: -58px;
    bottom: 20px;
    box-shadow: 0 34px 0 var(--orange);
  }

  .app-header .brand small {
    display: block;
  }

  .app-header .logout-link {
    padding: 8px 12px;
  }

  .welcome-panel {
    gap: 26px;
    margin-top: 44px;
  }

  .welcome-panel h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 13vw, 3.65rem);
  }

  .welcome-lead {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .library-page main {
    padding-top: 38px;
  }

  .discovery-intro,
  .section-heading {
    display: block;
    padding: 0 6px;
  }

  .discovery-intro {
    margin-bottom: 26px;
  }

  .discovery-intro h2,
  .section-heading h2 {
    font-size: 2.55rem;
  }

  .discovery-intro > p,
  .section-heading > p {
    margin-top: 13px;
    font-size: 0.9rem;
  }

  .continue-section,
  .collection-section {
    margin-bottom: 50px;
  }

  .continue-section .section-heading {
    margin-bottom: 13px;
  }

  .continue-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
    border-radius: 14px;
  }

  .continue-play {
    width: 46px;
    height: 46px;
  }

  .continue-copy strong {
    font-size: 0.96rem;
  }

  .continue-action {
    display: none;
  }

  .collection-section .section-heading {
    margin-bottom: 18px;
  }

  .collection-grid {
    display: flex;
    width: calc(100% + 10px);
    gap: 9px;
    padding: 0 6px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .collection-grid::-webkit-scrollbar {
    display: none;
  }

  .collection-card {
    min-width: min(78vw, 294px);
    min-height: 238px;
    padding: 19px;
    border-radius: 15px;
    scroll-snap-align: start;
  }

  .collection-number {
    font-size: 1.8rem;
  }

  .collection-card strong {
    font-size: 1.4rem;
  }

  .library-page .library-intro {
    padding-top: 22px;
  }

  .personal-filters {
    padding: 11px 2px 1px;
    scroll-snap-type: x proximity;
  }

  .personal-filter {
    min-height: 40px;
    scroll-snap-align: start;
  }

  .lesson-overview {
    grid-template-columns: 76px minmax(0, 1fr) 32px;
  }

  .lesson-actions {
    gap: 5px;
  }

  .favorite-button,
  .lesson-open-icon {
    width: 30px;
    height: 30px;
  }

  .favorite-button {
    font-size: 0.98rem;
  }

  .completed-label {
    display: none;
  }

  .lesson-progress {
    margin-top: 5px;
  }

  .player-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .complete-button {
    justify-content: center;
    min-height: 40px;
  }
}

/* Sales landing */
.sales-page {
  color: var(--white);
  background: #151515;
}

.sales-page .brand small {
  color: rgba(255, 255, 255, 0.62);
}

.sales-hero {
  min-height: 100svh;
  padding: 24px clamp(20px, 6vw, 104px) 72px;
  background:
    radial-gradient(circle at 86% 14%, rgba(245, 106, 22, 0.34), transparent 22%),
    linear-gradient(116deg, transparent 0 66%, rgba(255, 201, 40, 0.08) 66%),
    #151515;
  overflow: hidden;
  position: relative;
}

.sales-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 42px;
  right: -76px;
  bottom: 64px;
  background: var(--yellow);
  box-shadow: 0 68px 0 var(--orange);
  transform: rotate(-10deg);
}

.sales-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.sales-nav-link {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.sales-nav-link:hover {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.sales-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: clamp(42px, 8vw, 118px);
  align-items: end;
  max-width: 1160px;
  margin: clamp(82px, 14vh, 148px) auto 0;
}

.sales-copy h1 {
  max-width: 840px;
  font-size: clamp(3.4rem, 8.4vw, 7.4rem);
}

.sales-lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.sales-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.sales-button-primary {
  color: var(--ink);
  background: var(--yellow);
}

.sales-button-primary:hover {
  background: var(--orange);
}

.sales-button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sales-button-secondary:hover {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.sales-note {
  padding: 26px;
  border-top: 6px solid var(--orange);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  transform: rotate(1.5deg);
}

.sales-note p {
  margin: 0 0 10px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.sales-note strong {
  display: block;
  margin-top: 22px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.sales-main {
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
  padding: 92px 0 120px;
}

.sales-letter {
  max-width: 760px;
  margin: 0 auto 84px;
  color: #eeeeea;
  font-size: clamp(1.24rem, 2.2vw, 1.62rem);
  line-height: 1.62;
}

.sales-letter p {
  margin: 0 0 28px;
}

.sales-letter-tight {
  margin-top: 84px;
}

.sales-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: end;
  padding: clamp(30px, 6vw, 58px);
  margin-bottom: 86px;
  border-radius: 24px;
  color: var(--ink);
  background: var(--yellow);
}

.sales-band h2,
.sales-section-heading h2,
.sales-gift h2,
.sales-final h2 {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.sales-band .eyebrow {
  color: #7a3106;
}

.sales-band > p {
  margin: 0;
  font-size: 1.05rem;
}

.sales-grid-section {
  margin-bottom: 92px;
}

.sales-section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.sales-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sales-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #202020;
}

.sales-card span {
  display: block;
  margin-bottom: 46px;
  color: var(--orange);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.07em;
}

.sales-card h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.sales-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.sales-gift {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #f3eadb;
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.2);
}

.sales-gift .eyebrow {
  color: var(--orange);
}

.sales-gift-copy {
  display: flex;
  min-height: 780px;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: clamp(34px, 6vw, 76px);
}

.sales-gift p {
  max-width: 640px;
  color: #43413b;
  font-size: 1.03rem;
}

.sales-gift h2 {
  max-width: 680px;
}

.sales-gift h2 span {
  color: #bc831e;
}

.gift-lead {
  margin-top: 26px;
  color: #2d241c;
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  font-weight: 850;
  line-height: 1.5;
}

.gift-start-note {
  display: inline-flex;
  max-width: 520px;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  margin: 26px 0 22px;
  border-radius: 999px;
  color: #fff7e8;
  background: #2a1a08;
}

.gift-start-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 28px;
  height: 24px;
}

.gift-start-icon::before {
  content: "";
  position: absolute;
  inset: 4px 4px 2px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.gift-start-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 9px;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.gift-microcopy {
  margin: 14px 0 0;
  color: #8b744f;
  font-weight: 760;
}

.gift-audio-column {
  padding: clamp(34px, 5vw, 72px);
  color: #d5bd85;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.2), transparent 72px),
    #1b1003;
}

.gift-audio-card {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(216, 166, 66, 0.08);
  border-radius: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 10%, rgba(216, 166, 66, 0.11), transparent 34%),
    #342208;
}

.gift-audio-heading {
  max-width: 680px;
}

.gift-kicker {
  margin: 0 0 26px;
  color: rgba(216, 166, 66, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gift-audio-card h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.gift-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  color: var(--yellow);
  font-weight: 900;
}

.gift-progress i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.12);
}

.gift-list-title {
  margin: 28px 0 18px;
  color: rgba(255, 247, 232, 0.34);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gift-list {
  display: grid;
  gap: 0;
  max-width: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: gift-item;
  list-style: none;
}

.gift-list li {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 247, 232, 0.12);
  color: rgba(236, 211, 154, 0.82);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  font-weight: 760;
  line-height: 1.45;
}

.gift-list li::before {
  content: none;
}

.gift-list span {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--yellow);
  font-weight: 900;
  white-space: nowrap;
}

.gift-closing {
  font-weight: 780;
}

.sales-faq {
  max-width: 820px;
  margin: 0 auto 92px;
}

.sales-faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sales-faq details:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sales-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

.sales-faq summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 500;
}

.sales-faq details[open] summary::after {
  content: "-";
}

.sales-faq p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
}

.sales-final {
  padding: clamp(32px, 6vw, 64px);
  border-radius: 24px;
  color: var(--ink);
  background: var(--orange);
  text-align: center;
}

.sales-final .eyebrow {
  color: #622400;
}

.sales-final p {
  max-width: 560px;
  margin: 18px auto 26px;
  color: rgba(17, 17, 17, 0.75);
}

@media (max-width: 900px) {
  .sales-hero-grid,
  .sales-band,
  .sales-gift {
    grid-template-columns: 1fr;
  }

  .sales-gift-copy {
    min-height: auto;
  }

  .sales-note {
    max-width: 520px;
  }

  .sales-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sales-hero {
    min-height: auto;
    padding: 18px 16px 54px;
  }

  .sales-hero::after {
    width: 210px;
    height: 24px;
    right: -62px;
    bottom: 32px;
    box-shadow: 0 38px 0 var(--orange);
  }

  .sales-page .brand small {
    display: block;
  }

  .sales-nav-link {
    padding: 8px 11px;
    font-size: 0.72rem;
  }

  .sales-hero-grid {
    gap: 34px;
    margin-top: 58px;
  }

  .sales-copy h1 {
    max-width: 10ch;
    font-size: clamp(3.05rem, 14vw, 4.15rem);
  }

  .sales-lead {
    margin-top: 24px;
    font-size: 1rem;
  }

  .sales-actions {
    display: grid;
  }

  .sales-button {
    width: 100%;
  }

  .sales-note {
    padding: 20px;
    border-radius: 14px;
    transform: rotate(0);
  }

  .sales-main {
    width: min(100% - 24px, 1060px);
    padding: 56px 0 80px;
  }

  .sales-letter {
    margin-bottom: 58px;
    font-size: 1.12rem;
  }

  .sales-letter p {
    margin-bottom: 22px;
  }

  .sales-band,
  .sales-gift,
  .sales-final {
    padding: 24px;
    border-radius: 18px;
  }

  .sales-band,
  .sales-grid-section,
  .sales-faq {
    margin-bottom: 64px;
  }

  .sales-band h2,
  .sales-section-heading h2,
  .sales-gift h2,
  .sales-final h2 {
    font-size: 2.5rem;
  }

  .sales-card-grid {
    grid-template-columns: 1fr;
  }

  .sales-card {
    min-height: 0;
  }

  .sales-card span {
    margin-bottom: 28px;
  }

  .gift-audio-column {
    padding: 24px;
  }

  .gift-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
  }
}

/* Persuasive editorial redesign */
:root {
  --paper: #f1e6d2;
  --paper-deep: #decfb8;
  --ink: #120e0a;
  --muted: #7d6f60;
  --forest: #100d0a;
  --forest-soft: #ead8b8;
  --orange: #c24d1d;
  --orange-soft: #f1b58f;
  --yellow: #d8a642;
  --yellow-soft: #f2ddac;
  --white: #fff7e8;
  --line: rgba(36, 26, 17, 0.16);
  --shadow: 0 30px 90px rgba(34, 22, 12, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

h1,
.sales-band h2,
.sales-section-heading h2,
.sales-gift h2,
.sales-final h2,
.login-card h1,
.welcome-panel h1,
.discovery-intro h2,
.section-heading h2,
.library-intro h2,
.lesson-title,
.collection-card strong,
.empty-state h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.058em;
}

.brand-mark {
  border: 1px solid rgba(18, 14, 10, 0.18);
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 26%, #ffe2a0, transparent 34%),
    var(--yellow);
  box-shadow: inset 0 -10px 22px rgba(80, 46, 10, 0.12);
}

.eyebrow {
  color: var(--orange);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.sales-page {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 8%, rgba(194, 77, 29, 0.22), transparent 26%),
    radial-gradient(circle at 82% 42%, rgba(216, 166, 66, 0.13), transparent 24%),
    #100d0a;
}

.sales-hero {
  min-height: auto;
  padding: 26px clamp(18px, 5vw, 80px) clamp(58px, 10vw, 108px);
  border-bottom: 1px solid rgba(255, 247, 232, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(216, 166, 66, 0.2), transparent 22%),
    radial-gradient(circle at 8% 70%, rgba(194, 77, 29, 0.24), transparent 25%),
    #100d0a;
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.sales-hero::after {
  width: min(46vw, 520px);
  height: 1px;
  right: clamp(18px, 5vw, 80px);
  bottom: 48px;
  background: rgba(255, 247, 232, 0.28);
  box-shadow: 0 16px 0 rgba(194, 77, 29, 0.8), 0 32px 0 rgba(216, 166, 66, 0.45);
  transform: rotate(-2deg);
}

.sales-nav {
  max-width: 1180px;
}

.sales-page .brand small {
  max-width: 210px;
  color: rgba(255, 247, 232, 0.58);
}

.sales-nav-link,
.logout-link {
  border-color: rgba(255, 247, 232, 0.24);
  color: var(--white);
  background: rgba(255, 247, 232, 0.04);
  backdrop-filter: blur(10px);
}

.sales-nav-link:hover,
.logout-link:hover {
  color: var(--ink);
  border-color: var(--yellow);
  background: var(--yellow);
}

.sales-alert {
  position: relative;
  z-index: 1;
  width: min(100%, 780px);
  margin: clamp(26px, 4vw, 42px) auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(216, 166, 66, 0.46);
  border-radius: 8px;
  color: rgba(255, 247, 232, 0.88);
  background: rgba(216, 166, 66, 0.12);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.45;
}

.sales-hero-grid {
  grid-template-columns: 1fr;
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
  max-width: 980px;
  margin-top: clamp(64px, 11vw, 132px);
}

.sales-copy h1 {
  max-width: 980px;
  font-size: clamp(3.35rem, 8vw, 7.15rem);
  line-height: 0.9;
  text-wrap: balance;
}

.sales-lead {
  max-width: 760px;
  color: rgba(255, 247, 232, 0.76);
  font-size: clamp(1.08rem, 1.75vw, 1.32rem);
  line-height: 1.62;
}

.sales-lead + .sales-lead {
  margin-top: 14px;
}

.sales-microcopy {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 247, 232, 0.52);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
}

.sales-headline,
.sales-body {
  min-width: 0;
}

.sales-body {
  margin-top: 30px;
}

.sales-body .sales-lead:first-child {
  margin-top: 0;
}

.sales-actions {
  margin-top: 32px;
}

.sales-button {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 8px;
  letter-spacing: -0.01em;
}

.sales-button-primary {
  color: #140d08;
  background: linear-gradient(135deg, #f0c66d, var(--yellow));
  box-shadow: 0 18px 44px rgba(216, 166, 66, 0.26);
}

.sales-button-primary:hover {
  color: #140d08;
  background: linear-gradient(135deg, #f2a15f, var(--orange));
}

.sales-button-secondary {
  border-color: rgba(255, 247, 232, 0.22);
  color: rgba(255, 247, 232, 0.86);
  background: rgba(255, 247, 232, 0.04);
}

.sales-proofbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.sales-proofbar span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.62);
  background: rgba(255, 247, 232, 0.035);
  font-size: 0.72rem;
  font-weight: 750;
}

.sales-note {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-top: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 4px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.12), rgba(255, 247, 232, 0.03)),
    rgba(255, 247, 232, 0.06);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.26);
  transform: rotate(0);
}

.sales-note p {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.sales-note strong {
  color: rgba(255, 247, 232, 0.66);
  font-size: 0.96rem;
}

.sales-main {
  width: min(100% - 42px, 1060px);
  padding: clamp(60px, 9vw, 112px) 0 clamp(82px, 12vw, 140px);
}

.sales-letter {
  max-width: 780px;
  color: rgba(255, 247, 232, 0.84);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.35vw, 1.86rem);
  line-height: 1.55;
}

.sales-letter p:first-child::first-letter {
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--yellow);
  font-size: 4.5em;
  line-height: 0.74;
}

.sales-letter-tight p:first-child::first-letter {
  float: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.sales-band,
.sales-gift,
.sales-final {
  border-radius: 6px;
}

.sales-band {
  border: 1px solid rgba(18, 14, 10, 0.12);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.44), transparent 58%),
    var(--yellow);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.sales-band h2,
.sales-section-heading h2,
.sales-gift h2,
.sales-final h2 {
  font-size: clamp(2.45rem, 5.4vw, 5rem);
  line-height: 0.92;
  text-wrap: balance;
}

.sales-band > p {
  font-size: 1.09rem;
  line-height: 1.65;
}

.sales-card-grid {
  gap: 14px;
}

.sales-card {
  min-height: 310px;
  padding: 24px;
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 247, 232, 0.08), rgba(255, 247, 232, 0.025)),
    #17120d;
}

.sales-card span {
  color: rgba(216, 166, 66, 0.86);
  font-family: var(--display);
}

.sales-card h3 {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.sales-card p {
  color: rgba(255, 247, 232, 0.62);
  font-size: 0.92rem;
  line-height: 1.52;
}

.sales-gift {
  border: 1px solid rgba(18, 14, 10, 0.12);
  background:
    linear-gradient(135deg, rgba(194, 77, 29, 0.12), transparent 46%),
    #f3e4cc;
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.2);
}

.sales-gift p {
  color: #4d4033;
  line-height: 1.65;
}

.sales-gift .gift-kicker {
  color: rgba(216, 166, 66, 0.9);
}

.sales-gift .gift-list-title {
  color: rgba(255, 247, 232, 0.34);
}

.sales-gift .gift-microcopy {
  color: #8b744f;
}

.sales-faq details {
  border-color: rgba(255, 247, 232, 0.16);
}

.sales-faq summary {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  letter-spacing: -0.035em;
}

.sales-faq p {
  color: rgba(255, 247, 232, 0.66);
  line-height: 1.62;
}

.sales-final {
  border: 1px solid rgba(255, 247, 232, 0.18);
  color: var(--white);
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 166, 66, 0.28), transparent 30%),
    linear-gradient(135deg, #1b120d, #090706);
}

.sales-final .eyebrow {
  color: var(--yellow);
}

.sales-final p {
  color: rgba(255, 247, 232, 0.7);
}

.login-page {
  background:
    radial-gradient(circle at 80% 12%, rgba(216, 166, 66, 0.22), transparent 25%),
    radial-gradient(circle at 10% 70%, rgba(194, 77, 29, 0.22), transparent 28%),
    #100d0a;
}

.login-card {
  border: 1px solid rgba(18, 14, 10, 0.14);
  border-top: 0;
  border-radius: 6px;
  color: var(--ink);
  background: #f4e7d0;
}

.login-card h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2.8rem, 9.5vw, 5.2rem);
}

.login-lead,
.login-help {
  color: #675849;
}

.login-form input {
  border-radius: 4px;
  background: #fff8eb;
}

.login-form button {
  border-radius: 4px;
  color: var(--ink);
  background: var(--yellow);
}

.library-page {
  background:
    linear-gradient(90deg, rgba(18, 14, 10, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.app-header {
  border-bottom: 1px solid rgba(255, 247, 232, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(216, 166, 66, 0.18), transparent 24%),
    radial-gradient(circle at 8% 78%, rgba(194, 77, 29, 0.2), transparent 26%),
    #100d0a;
  background-size: 54px 54px, auto, auto, auto;
}

.app-header::after {
  height: 1px;
  background: rgba(255, 247, 232, 0.24);
  box-shadow: 0 14px 0 rgba(194, 77, 29, 0.84), 0 28px 0 rgba(216, 166, 66, 0.42);
}

.welcome-panel h1 {
  font-size: clamp(3.2rem, 6.5vw, 6.4rem);
  line-height: 0.9;
}

.welcome-lead {
  color: rgba(255, 247, 232, 0.68);
  line-height: 1.65;
}

.discovery-intro h2,
.section-heading h2,
.library-intro h2 {
  line-height: 0.95;
}

.discovery-intro > p,
.section-heading > p,
.library-intro > p {
  color: #756654;
  line-height: 1.55;
}

.collection-card {
  border-color: rgba(18, 14, 10, 0.13);
  border-radius: 6px;
  background: #fff4df;
  box-shadow: 0 18px 46px rgba(34, 22, 12, 0.08);
}

.collection-card:hover,
.collection-card.is-active {
  box-shadow: 0 26px 58px rgba(34, 22, 12, 0.14);
}

.collection-card-yellow {
  background: #dfab43;
}

.collection-card-orange {
  background: #c8541f;
}

.collection-card-dark {
  color: var(--white);
  background: #17110d;
}

.collection-card-cream {
  background: #f7e4bd;
}

.collection-number {
  font-family: var(--display);
}

.controls {
  border-radius: 6px;
  background: rgba(255, 247, 232, 0.78);
}

.search,
.filter-button,
.personal-filter {
  border-radius: 4px;
}

.filter-button[aria-pressed="true"],
.personal-filter[aria-pressed="true"] {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.lesson-card {
  border-color: rgba(18, 14, 10, 0.13);
  border-radius: 6px;
  background: #fff4df;
}

.lesson-card.is-open {
  box-shadow: 0 30px 70px rgba(34, 22, 12, 0.14);
}

.lesson-overview,
.lesson-overview:hover,
.lesson-details {
  background: #fff4df;
}

.visual-placeholder {
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(216, 166, 66, 0.96) 0 36%, transparent 36%),
    linear-gradient(315deg, rgba(194, 77, 29, 0.92) 0 22%, transparent 22%),
    #2a2119;
}

.lesson-card[data-theme="mindset"] .visual-placeholder {
  background:
    linear-gradient(150deg, #c8541f 0 28%, transparent 28%),
    linear-gradient(330deg, #dfab43 0 38%, transparent 38%),
    #221811;
}

.lesson-card[data-theme="focus"] .visual-placeholder {
  color: var(--yellow);
  background:
    linear-gradient(135deg, transparent 0 58%, #c8541f 58% 70%, transparent 70%),
    #130f0c;
}

.lesson-category {
  color: #9c3e16;
}

.lesson-title {
  color: var(--ink);
}

.compact-tag {
  color: #4b3214;
  background: #efd7a2;
}

.compact-tag-count {
  color: var(--white);
  background: var(--ink);
}

.lesson-open-icon,
.continue-play {
  background: var(--yellow);
}

.player-panel {
  border-left-color: var(--orange);
  border-radius: 4px;
  background: #15100c;
}

.tag {
  background: #ead6ad;
}

.time-button {
  background: #ead6ad;
}

footer {
  border-top-color: var(--yellow);
  background: #100d0a;
}

@media (min-width: 901px) {
  .sales-hero {
    padding-inline: clamp(40px, 6vw, 96px);
    padding-bottom: clamp(76px, 8vw, 120px);
  }

  .sales-nav,
  .sales-hero-grid {
    max-width: 1560px;
  }

  .sales-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    margin-top: clamp(72px, 7.5vw, 120px);
  }

  .sales-copy {
    width: min(100%, 1060px);
    max-width: 1060px;
    margin-inline: auto;
  }

  .sales-copy h1 {
    max-width: 1060px;
    font-size: clamp(4.6rem, 5.8vw, 7.7rem);
    line-height: 0.9;
  }

  .sales-body {
    max-width: 100%;
    margin-top: 36px;
  }

  .sales-lead {
    max-width: 100%;
    font-size: clamp(1.08rem, 1.2vw, 1.28rem);
    line-height: 1.58;
  }

  .sales-microcopy {
    max-width: 100%;
  }

  .sales-note {
    margin-top: clamp(86px, 10vw, 142px);
  }

  .sales-note p {
    font-size: clamp(1.58rem, 2.1vw, 2.25rem);
  }

  .sales-main {
    width: min(100% - 96px, 1240px);
  }

  .sales-band {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(42px, 6vw, 92px);
    padding: clamp(42px, 5vw, 72px);
  }

  .sales-band h2 {
    max-width: 650px;
    font-size: clamp(3.05rem, 4.1vw, 4.45rem);
    line-height: 0.95;
  }

  .sales-band > p {
    max-width: 620px;
    justify-self: end;
    font-size: clamp(1rem, 1.18vw, 1.12rem);
  }
}

@media (max-width: 900px) {
  .sales-hero-grid {
    grid-template-columns: 1fr;
  }

  .sales-note {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .sales-page {
    overflow-x: hidden;
  }

  .sales-hero {
    padding: 18px 15px 48px;
    overflow-x: hidden;
  }

  .sales-nav {
    gap: 12px;
    width: calc(100vw - 30px);
    max-width: calc(100vw - 30px);
  }

  .sales-page .brand small {
    max-width: 136px;
    font-size: 0.65rem;
  }

  .sales-nav .sales-nav-link {
    display: none;
  }

  .sales-hero-grid {
    width: calc(100vw - 30px);
    max-width: 100%;
    margin-top: 48px;
  }

  .sales-copy,
  .sales-microcopy {
    max-width: 100%;
    min-width: 0;
  }

  .sales-lead,
  .sales-microcopy {
    max-width: 34ch;
  }

  .sales-actions {
    width: min(100%, 340px);
  }

  .sales-copy h1 {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 4rem);
  }

  .sales-lead {
    font-size: 1.02rem;
  }

  .sales-proofbar {
    display: grid;
  }

  .sales-letter p:first-child::first-letter {
    float: none;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
  }

  .sales-band h2,
  .sales-section-heading h2,
  .sales-gift h2,
  .sales-final h2 {
    font-size: 2.65rem;
  }

  .sales-card {
    min-height: 0;
  }

  .login-card h1 {
    max-width: 10ch;
  }

  .welcome-panel h1 {
    max-width: 10ch;
    font-size: clamp(2.85rem, 13vw, 4rem);
  }

  .collection-card,
  .lesson-card {
    border-radius: 5px;
  }
}

/* Private route experience */
.library-page main {
  width: min(100% - 42px, 1040px);
  padding-top: clamp(44px, 7vw, 78px);
}

.library-page .app-header {
  padding-bottom: clamp(58px, 8vw, 92px);
}

.library-page .welcome-panel {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(30px, 7vw, 86px);
  max-width: 1040px;
}

.library-page .welcome-panel h1 {
  max-width: 760px;
  text-wrap: balance;
}

.library-page .welcome-lead {
  max-width: 660px;
}

.library-page .discovery-intro {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(18, 14, 10, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(216, 166, 66, 0.2), transparent 58%),
    #f8ead2;
  box-shadow: 0 24px 70px rgba(34, 22, 12, 0.1);
}

.library-page .continue-section {
  margin: clamp(34px, 6vw, 62px) 0;
}

.library-page .library-intro {
  margin-bottom: 26px;
  padding-top: clamp(26px, 5vw, 48px);
  border-top: 1px solid rgba(18, 14, 10, 0.12);
}

.library-page .controls {
  margin-bottom: 4px;
  border-color: rgba(18, 14, 10, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.86), rgba(241, 230, 210, 0.84));
}

.library-page .search {
  flex-basis: 100%;
  background: rgba(255, 247, 232, 0.88);
}

.library-page .personal-filters {
  margin-bottom: 4px;
}

.library-page .results-bar {
  min-height: 42px;
  padding-top: 14px;
}

.library-page .lesson-list {
  position: relative;
  gap: 12px;
  padding-left: 28px;
}

.library-page .lesson-list::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 18px;
  left: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(18, 14, 10, 0.18) 8%, rgba(18, 14, 10, 0.18) 92%, transparent);
}

.library-page .lesson-card {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.7), transparent 52%),
    #fff4df;
}

.library-page .lesson-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 48px;
  left: -25px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(18, 14, 10, 0.18);
}

.library-page .lesson-card.is-featured {
  border-color: rgba(194, 77, 29, 0.42);
  background:
    linear-gradient(135deg, rgba(194, 77, 29, 0.12), transparent 48%),
    #fff1d5;
}

.library-page .lesson-card.is-featured::before {
  top: 45px;
  left: -27px;
  width: 17px;
  height: 17px;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(194, 77, 29, 0.13);
}

.library-page .lesson-card.is-featured .visual-placeholder {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 247, 232, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(216, 166, 66, 0.98) 0 34%, transparent 34%),
    linear-gradient(315deg, rgba(194, 77, 29, 0.94) 0 26%, transparent 26%),
    #17110d;
}

.library-page .lesson-category {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(18, 14, 10, 0.12);
  border-radius: 999px;
  color: #5b3c16;
  background: #edd5a6;
  letter-spacing: 0.08em;
}

.library-page .lesson-card.is-featured .lesson-category {
  color: var(--white);
  border-color: rgba(194, 77, 29, 0.72);
  background: var(--orange);
}

.library-page .lesson-title {
  margin-top: 8px;
}

.library-page .lesson-meta {
  margin-top: 8px;
}

.library-page .lesson-details {
  border-top-color: rgba(18, 14, 10, 0.12);
}

.library-page .key-points {
  padding: 16px 18px 18px;
  margin-top: 18px;
  border: 1px solid rgba(18, 14, 10, 0.1);
  border-radius: 6px;
  background: rgba(255, 247, 232, 0.54);
}

.library-page .key-points .section-label {
  margin-top: 0;
}

@media (max-width: 980px) {
  .library-page .welcome-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .library-page main {
    width: calc(100% - 24px);
  }

  .library-page .discovery-intro,
  .library-page .library-intro {
    display: block;
  }

  .library-page .discovery-intro > p,
  .library-page .library-intro > p {
    margin-top: 16px;
  }

  .library-page .controls {
    top: 8px;
    padding: 9px;
  }

  .library-page .lesson-list {
    padding-left: 18px;
  }

  .library-page .lesson-list::before {
    left: 5px;
  }

  .library-page .lesson-card::before {
    top: 44px;
    left: -19px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .library-page .lesson-card.is-featured::before {
    left: -21px;
    width: 14px;
    height: 14px;
  }

  .library-page .lesson-category {
    padding: 3px 7px;
    font-size: 0.55rem;
  }
}

/* Clean private library */
.library-page {
  color: var(--white);
  background:
    radial-gradient(circle at 75% 0%, rgba(216, 166, 66, 0.12), transparent 26%),
    #100d0a;
}

.library-page .app-header {
  padding: 22px clamp(16px, 5vw, 64px) clamp(34px, 6vw, 58px);
  background:
    linear-gradient(rgba(255, 247, 232, 0.035) 1px, transparent 1px),
    #100d0a;
  background-size: 100% 46px;
}

.library-page .app-header::after {
  display: none;
}

.library-page .topbar,
.library-page .welcome-panel,
.library-page main {
  width: min(100% - 32px, 1040px);
  max-width: 1040px;
}

.library-page .topbar {
  margin-inline: auto;
}

.library-page .brand small {
  color: rgba(255, 247, 232, 0.58);
}

.library-page .logout-link {
  border-color: rgba(255, 247, 232, 0.16);
  color: rgba(255, 247, 232, 0.78);
  background: transparent;
}

.library-page .welcome-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: clamp(34px, 7vw, 76px);
}

.library-page .welcome-panel h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2.75rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.library-page .welcome-lead {
  max-width: 690px;
  color: rgba(255, 247, 232, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.library-page main {
  padding: clamp(30px, 5vw, 56px) 0 clamp(72px, 9vw, 110px);
}

.library-page .discovery-intro,
.library-page .library-intro {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.library-page .discovery-intro {
  margin-bottom: 16px;
}

.library-page .discovery-intro h2,
.library-page .library-intro h2,
.library-page .continue-section .section-heading h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.library-page .discovery-intro > p,
.library-page .library-intro > p,
.library-page .section-heading > p {
  max-width: 640px;
  margin-top: 12px;
  color: rgba(255, 247, 232, 0.62);
}

.library-page .featured-section {
  margin-bottom: clamp(34px, 6vw, 62px);
}

.library-page .featured-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
}

.library-page .lesson-list {
  gap: 10px;
  padding-left: 0;
}

.library-page .lesson-list::before,
.library-page .lesson-card::before {
  display: none;
}

.library-page .lesson-card {
  overflow: hidden;
  border: 1px solid rgba(255, 247, 232, 0.12);
  border-radius: 10px;
  color: var(--white);
  background: #17120e;
  box-shadow: none;
}

.library-page .lesson-card.is-featured {
  border-color: rgba(216, 166, 66, 0.62);
  background:
    linear-gradient(135deg, rgba(216, 166, 66, 0.14), transparent 54%),
    #18120d;
}

.library-page .lesson-overview,
.library-page .lesson-overview:hover,
.library-page .lesson-details {
  color: var(--white);
  background: transparent;
}

.library-page .lesson-overview {
  grid-template-columns: 62px minmax(0, 1fr) 36px;
  min-height: 92px;
  gap: 12px;
  padding: 12px 14px 12px 12px;
}

.library-page .featured-list .lesson-overview {
  grid-template-columns: 72px minmax(0, 1fr) 38px;
  min-height: 118px;
  align-items: start;
  padding: 16px;
}

.library-page .lesson-visual {
  width: 62px;
  height: 62px;
}

.library-page .featured-list .lesson-visual {
  width: 72px;
  height: 72px;
}

.library-page .visual-placeholder,
.library-page .lesson-card.is-featured .visual-placeholder,
.library-page .lesson-card[data-theme="mindset"] .visual-placeholder,
.library-page .lesson-card[data-theme="focus"] .visual-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  color: var(--yellow);
  background: #0d0a08;
}

.library-page .visual-placeholder::after {
  display: none;
}

.library-page .lesson-number {
  color: var(--yellow);
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

.library-page .featured-list .lesson-number {
  font-size: 2.1rem;
}

.library-page .visual-word {
  display: none;
}

.library-page .lesson-category {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(216, 166, 66, 0.88);
  background: transparent;
  font-size: 0.64rem;
}

.library-page .lesson-card.is-featured .lesson-category {
  color: var(--yellow);
  background: transparent;
}

.library-page .lesson-title {
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.library-page .featured-list .lesson-title {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 0.98;
  -webkit-line-clamp: initial;
}

.library-page .lesson-meta {
  color: rgba(255, 247, 232, 0.48);
}

.library-page .completed-label {
  color: #b7d28a;
}

.library-page .favorite-button {
  border-color: rgba(255, 247, 232, 0.14);
  color: rgba(255, 247, 232, 0.76);
  background: rgba(255, 247, 232, 0.04);
}

.library-page .favorite-button:hover,
.library-page .favorite-button[aria-pressed="true"] {
  color: #100d0a;
  border-color: var(--yellow);
  background: var(--yellow);
}

.library-page .lesson-details {
  padding: 0 12px 12px 86px;
  border-top-color: rgba(255, 247, 232, 0.1);
}

.library-page .lesson-summary {
  color: rgba(255, 247, 232, 0.72);
}

.library-page .player-panel {
  border: 1px solid rgba(255, 247, 232, 0.11);
  border-left: 0;
  border-radius: 8px;
  background: #0e0b09;
  margin-top: 0;
  padding: 12px;
}

.library-page .player-panel video {
  width: 100%;
  height: auto;
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 247, 232, 0.12);
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.library-page .player-footer {
  justify-content: flex-end;
}

.library-page .player-note,
.library-page .lesson-summary,
.library-page .key-points {
  display: none;
}

.library-page .controls {
  position: static;
  padding: 0;
  margin-bottom: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.library-page .search {
  border-color: rgba(255, 247, 232, 0.12);
  color: var(--white);
  background: rgba(255, 247, 232, 0.055);
}

.library-page .search input {
  color: var(--white);
}

.library-page .search input::placeholder {
  color: rgba(255, 247, 232, 0.42);
}

.library-page kbd {
  border-color: rgba(255, 247, 232, 0.12);
  color: rgba(255, 247, 232, 0.42);
  background: rgba(255, 247, 232, 0.04);
}

.library-page .personal-filter {
  border-color: rgba(255, 247, 232, 0.12);
  color: rgba(255, 247, 232, 0.72);
  background: transparent;
}

.library-page .personal-filter[aria-pressed="true"] {
  color: #100d0a;
  border-color: var(--yellow);
  background: var(--yellow);
}

.library-page .results-bar {
  color: rgba(255, 247, 232, 0.5);
}

.library-page .text-button {
  color: var(--yellow);
}

.library-page .continue-card {
  border: 1px solid rgba(255, 247, 232, 0.12);
  background: #17120e;
}

.library-page .library-intro {
  margin-top: clamp(34px, 6vw, 62px);
}

@media (max-width: 720px) {
  .library-page .topbar,
  .library-page .welcome-panel,
  .library-page main {
    width: calc(100% - 24px);
  }

  .library-page .welcome-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .library-page .featured-list {
    grid-template-columns: 1fr;
  }

  .library-page .featured-list .lesson-overview,
  .library-page .lesson-overview {
    grid-template-columns: 56px minmax(0, 1fr) 32px;
    min-height: 86px;
    padding: 10px;
  }

  .library-page .featured-list .lesson-title {
    font-size: 1.42rem;
  }

  .library-page .lesson-visual,
  .library-page .featured-list .lesson-visual {
    width: 56px;
    height: 56px;
  }

  .library-page .lesson-details {
    padding: 0 10px 10px;
  }
}

/* Elegant compact player */
.library-page .lesson-card {
  border-color: rgba(255, 247, 232, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.035), transparent 42%),
    #15100d;
}

.library-page .lesson-card + .lesson-card {
  margin-top: 4px;
}

.library-page .lesson-card.is-featured {
  border-color: rgba(216, 166, 66, 0.5);
  background:
    linear-gradient(135deg, rgba(216, 166, 66, 0.12), transparent 48%),
    #15100d;
}

.library-page .lesson-overview,
.library-page .featured-list .lesson-overview {
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  min-height: 0;
  gap: 14px;
  align-items: center;
  padding: 16px 18px 10px;
}

.library-page .lesson-visual,
.library-page .featured-list .lesson-visual {
  width: 48px;
  height: 48px;
}

.library-page .visual-placeholder,
.library-page .lesson-card.is-featured .visual-placeholder,
.library-page .lesson-card[data-theme="mindset"] .visual-placeholder,
.library-page .lesson-card[data-theme="focus"] .visual-placeholder {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.library-page .lesson-number,
.library-page .featured-list .lesson-number {
  color: rgba(216, 166, 66, 0.94);
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1;
}

.library-page .lesson-category {
  color: rgba(216, 166, 66, 0.76);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.library-page .lesson-title,
.library-page .featured-list .lesson-title {
  display: block;
  margin: 6px 0 0;
  overflow: visible;
  color: rgba(255, 247, 232, 0.96);
  font-family: var(--body);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1.12;
  -webkit-line-clamp: initial;
}

.library-page .lesson-meta {
  margin-top: 7px;
  color: rgba(255, 247, 232, 0.44);
  font-size: 0.72rem;
}

.library-page .favorite-button {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 247, 232, 0.12);
  background: rgba(255, 247, 232, 0.035);
}

.library-page .lesson-details {
  padding: 0 18px 16px 80px;
}

.library-page .player-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.library-page audio.native-audio {
  display: none;
}

.custom-player {
  display: grid;
  grid-template-columns: 38px 42px minmax(120px, 1fr) 42px;
  flex: 1 1 auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(255, 247, 232, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.055);
}

.custom-player[hidden] {
  display: none;
}

.player-play {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #120e0a;
  background: var(--yellow);
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.player-play.is-playing {
  background: var(--orange);
}

.player-current,
.player-total {
  color: rgba(255, 247, 232, 0.62);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.player-total {
  text-align: right;
}

.player-seek {
  width: 100%;
  accent-color: var(--yellow);
  cursor: pointer;
}

.player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.22);
}

.player-seek::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--yellow);
}

.library-page .complete-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 13px;
  border-color: rgba(255, 247, 232, 0.14);
  color: rgba(255, 247, 232, 0.78);
  background: rgba(255, 247, 232, 0.03);
}

.library-page .complete-button:hover,
.library-page .complete-button.is-complete {
  color: #120e0a;
  border-color: var(--yellow);
  background: var(--yellow);
}

.library-page .player-panel video {
  margin-top: 2px;
}

.library-page .lesson-card.has-video .player-panel {
  display: block;
}

.library-page .lesson-card.has-video .player-footer {
  justify-content: flex-end;
  margin-top: 10px;
}

.lesson-card.has-image .visual-placeholder {
  cursor: zoom-in;
}

.image-expand-button {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-radius: inherit;
  color: var(--white);
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.42));
  cursor: zoom-in;
}

.image-expand-button[hidden] {
  display: none;
}

.image-expand-button span[aria-hidden="true"] {
  padding: 4px 8px;
  border: 1px solid rgba(255, 247, 232, 0.24);
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.92);
  background: rgba(18, 14, 10, 0.72);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lesson-card.has-image .visual-placeholder:hover .image-expand-button span[aria-hidden="true"],
.image-expand-button:focus-visible span[aria-hidden="true"] {
  opacity: 1;
  transform: translateY(0);
}

body.has-image-lightbox {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 166, 66, 0.14), transparent 34%),
    rgba(7, 5, 4, 0.88);
  cursor: zoom-out;
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(980px, 100%);
  max-height: calc(100vh - clamp(36px, 8vw, 112px));
  padding: clamp(10px, 1.8vw, 16px);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 18px;
  background: rgba(18, 14, 10, 0.88);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46);
}

.image-lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 12px;
  background: #080604;
}

.image-lightbox-dialog p {
  margin: 0;
  color: rgba(255, 247, 232, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 247, 232, 0.24);
  border-radius: 999px;
  color: var(--white);
  background: rgba(18, 14, 10, 0.76);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .library-page .lesson-overview,
  .library-page .featured-list .lesson-overview {
    grid-template-columns: 38px minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 13px 12px 8px;
  }

  .library-page .lesson-visual,
  .library-page .featured-list .lesson-visual {
    width: 38px;
    height: 38px;
  }

  .library-page .lesson-number,
  .library-page .featured-list .lesson-number {
    font-size: 1.5rem;
  }

  .library-page .lesson-details {
    padding: 0 12px 13px;
  }

  .library-page .player-panel {
    display: grid;
    gap: 9px;
  }

  .custom-player {
    grid-template-columns: 36px 38px minmax(80px, 1fr);
    padding-right: 10px;
  }

  .player-total {
    display: none;
  }

  .library-page .complete-button {
    justify-content: center;
    width: 100%;
  }

  .image-expand-button span[aria-hidden="true"] {
    opacity: 1;
    transform: none;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  .image-lightbox-dialog img {
    max-height: calc(100vh - 116px);
  }
}
