/* Student-facing pages: sales page + course player. Colours follow the creator's brand. */

.school-bar { background: #fff; border-bottom: 1px solid var(--line); }
.school-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.school-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; text-decoration: none; }
.school-name img { height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.school-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: .9rem; font-weight: 600; }
.school-bar .spacer { flex: 1; }

/* Sales page */
.hero { background: color-mix(in srgb, var(--brand) 14%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .3em; }
.hero .promise { font-size: 1.15rem; color: var(--ink-2); }
.hero .cover { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: color-mix(in srgb, var(--brand) 30%, #fff); box-shadow: var(--shadow); display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: var(--brand-ink); }
.hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; }

.sales-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.curriculum h3 { font-size: 1rem; margin: 0; padding: 12px 16px; background: #fcfaf7; border-bottom: 1px solid var(--line); }
.curriculum .mod { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 12px; }
.curriculum .les { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.curriculum .les:first-of-type { border-top: 0; }
.curriculum .les button { margin-left: auto; }
.lesson-count { color: var(--ink-3); font-size: .85rem; font-weight: 400; margin-left: 6px; }

.preview-banner { background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: .88rem; }

/* Player */
.player { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 61px); }
.side { background: #fff; border-right: 1px solid var(--line); padding: 20px 0; overflow-y: auto; max-height: calc(100vh - 61px); position: sticky; top: 0; }
.side .course-title { padding: 0 20px 4px; font-family: var(--font-head); font-size: 1.1rem; }
.progress { margin: 8px 20px 16px; }
.progress-bar { height: 8px; border-radius: 99px; background: #efebe5; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s ease; }
.side h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 16px 20px 6px; font-family: var(--font-body); font-weight: 600; }
.side a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 20px; text-decoration: none; font-size: .93rem; color: var(--ink-2); border-left: 3px solid transparent; }
.side a:hover { background: #fcfaf7; color: var(--ink); }
.side a.current { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--ink); border-left-color: var(--brand); font-weight: 500; }
.tick { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.tick.done { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stage { padding: 32px 40px 80px; max-width: 920px; width: 100%; }
.stage h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.stage .video { margin-bottom: 24px; }
.stage-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.stage-nav .grow { flex: 1; }
.side-toggle { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .sales-body { grid-template-columns: 1fr; gap: 24px; }
  .hero .wrap { padding-top: 28px; padding-bottom: 32px; }
  .player { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 61px 0 0 0; max-height: none; z-index: 20; transform: translateX(-100%); transition: transform .25s ease; border-right: 0; }
  .side.open { transform: none; }
  .side-toggle { display: inline-flex; }
  .stage { padding: 20px 16px 60px; }
}
.side-cover { width: calc(100% - 40px); margin: 0 20px 14px; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
