@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("fonts/geist-sans-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3f5f7;
  --card: #ffffff;
  --panel: #fafbfc;
  --ink: #182033;
  --muted: #657084;
  --line: #dce3ea;
  --navy: #233876;
  --navy-soft: #e9eef9;
  --teal: #087c78;
  --teal-dark: #075f5b;
  --teal-soft: #e7f4f1;
  --gold: #b88a2a;
  --good: #20734a;
  --bad: #a3413b;
  --locked: #89929e;
  --locked-bg: #eef1f3;
  --shadow: 0 1px 2px rgba(24, 32, 51, 0.05), 0 12px 30px rgba(24, 32, 51, 0.08);
  --shadow-lg: 0 18px 56px rgba(24, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--navy-soft) 62%, var(--paper)) 0, color-mix(in srgb, var(--gold) 8%, var(--paper)) 360px, var(--paper) 860px);
  color: var(--ink);
  font-family: "Geist Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button,
select {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 35%, transparent);
  outline-offset: 3px;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.serif,
h1,
h2,
h3 {
  font-family: "Fraunces Variable", Georgia, serif;
  letter-spacing: 0;
}

.app {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 227, 234, 0.86);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(16px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  min-height: 68px;
  padding-block: 10px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.course-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.mark-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.mark b {
  color: var(--navy);
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 23px;
}

.mark small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-access {
  display: inline-flex;
  width: auto;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.participant-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.participant-nav > * {
  align-self: center;
  margin-block: 0;
}

.participant-action,
.profile-trigger {
  min-height: 40px;
  padding: 7px 11px;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.participant-action:hover,
.profile-trigger:hover {
  background: var(--panel);
  border-color: var(--line);
}

.participant-icon {
  margin-right: 5px;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.unlock-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--teal-dark);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7, 95, 91, 0.2);
}

.unlock-link:hover {
  background: #064e4b;
}

main.wrap {
  padding-top: 24px;
  padding-bottom: 70px;
}

.cockpit-tabs {
  position: sticky;
  top: 68px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: color-mix(in srgb, var(--card) 95%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.home-tab {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  color: #4e596b;
  font-size: 13px;
  font-weight: 800;
}

.home-tab:hover:not(:disabled) {
  background: var(--panel);
  color: var(--teal-dark);
}

.home-tab.is-active {
  background: var(--teal-dark);
  color: white;
}

.home-tab.is-locked {
  background: var(--locked-bg);
  color: var(--locked);
  opacity: 0.78;
}

.tab-lock {
  margin-left: 5px;
  font-size: 11px;
}

.demo-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 8px;
  padding: 12px 16px;
  background: #fffaf0;
  color: #5e4c27;
  font-size: 13px;
}

.demo-notice strong {
  color: #4a3b1e;
}

.demo-notice a {
  color: var(--teal-dark);
  font-weight: 800;
  white-space: nowrap;
}

.demo-notice-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.tour-launch {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  padding: 6px 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tour-launch:hover {
  border-color: var(--teal);
  background: #d9efeb;
}

.tour-launch > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-size: 9px;
}

.help-tour-launch {
  width: 100%;
  margin: 4px 0 14px;
}

.home-view {
  display: none;
}

.home-view.is-active {
  display: block;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.dash-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 34px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.cockpit-kicker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cockpit-kicker span {
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
}

.lede {
  max-width: 67ch;
  margin: 0;
  color: var(--muted);
}

.nextline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.next-lesson-visual {
  position: relative;
  width: 92px;
  flex: 0 0 92px;
}

.next-lesson-visual img {
  display: block;
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  object-fit: cover;
}

.nextbadge {
  position: absolute;
  left: 7px;
  top: 7px;
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-dark);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.next-lesson-copy b,
.next-lesson-copy span {
  display: block;
}

.next-lesson-copy b {
  font-size: 18px;
  line-height: 1.25;
}

.next-lesson-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-primary,
.btn-ghost,
.btn-quiet {
  min-height: 42px;
  padding: 8px 15px;
  font-weight: 800;
}

.btn-primary {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: white;
}

.btn-primary:hover {
  background: #064e4b;
}

.btn-quiet,
.btn-ghost {
  background: var(--card);
}

.btn-quiet.is-locked {
  border-color: #d5dbe0;
  background: var(--locked-bg);
  color: var(--locked);
}

.dash-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.readiness {
  border-radius: 8px;
  padding: 22px;
  background: #183f42;
  color: white;
  box-shadow: var(--shadow-lg);
}

.readiness .label {
  color: #b9d9d7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness .score {
  margin: 8px 0 7px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.readiness .score span {
  color: #b9d9d7;
  font-size: 17px;
}

.readiness p {
  margin: 0;
  color: #dceceb;
  font-size: 13px;
}

.readiness-meter {
  height: 7px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.readiness-meter span {
  display: block;
  width: 4%;
  height: 100%;
  background: #84d6c9;
}

.hf-status {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hf-row {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 7px 8px;
  background: var(--panel);
}

.hf-row.is-locked {
  background: var(--locked-bg);
  color: var(--locked);
}

.hf-mark {
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
}

.hf-row.is-locked .hf-mark {
  background: #dfe4e7;
  color: #747e88;
}

.hf-copy b,
.hf-copy span {
  display: block;
}

.hf-copy b {
  font-size: 12.5px;
}

.hf-copy span {
  color: var(--muted);
  font-size: 11px;
}

.lock-label {
  border: 1px solid #d3d9de;
  border-radius: 999px;
  padding: 2px 7px;
  background: #f7f8f9;
  color: #747e88;
  font-size: 10px;
  font-weight: 800;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.quick-card {
  min-height: 124px;
  text-align: left;
  padding: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.quick-card strong,
.quick-card span,
.quick-card small {
  display: block;
}

.quick-card strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.quick-card span {
  color: var(--muted);
  font-size: 12.5px;
}

.quick-card small {
  margin-top: 15px;
  color: var(--teal-dark);
  font-weight: 800;
}

.quick-card.is-locked {
  border-color: #d5dbe0;
  background: var(--locked-bg);
  color: var(--locked);
  box-shadow: none;
  filter: grayscale(1);
}

.quick-card.is-locked span,
.quick-card.is-locked small {
  color: var(--locked);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
}

.section-head p {
  max-width: 68ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.availability-summary {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
}

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

.lesson-card {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 42px 104px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 11px 13px;
  text-align: left;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lesson-card:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  transform: translateY(-1px);
}

.lesson-card.is-demo {
  border: 2px solid color-mix(in srgb, var(--teal) 70%, var(--line));
  background: color-mix(in srgb, var(--teal-soft) 34%, var(--card));
}

.lesson-card.is-locked {
  border-color: #d8dde1;
  background: var(--locked-bg);
  color: #68727c;
  box-shadow: none;
  opacity: 0.84;
}

.lesson-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.lesson-card.is-locked .lesson-number {
  background: #cfd5da;
  color: #5f6871;
}

.lesson-thumb {
  display: block;
  width: 104px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

.lesson-card.is-locked .lesson-thumb {
  filter: grayscale(1);
  opacity: 0.55;
}

.lesson-copy strong,
.lesson-copy span {
  display: block;
}

.lesson-copy strong {
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
}

.lesson-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.lesson-state {
  min-width: 94px;
  text-align: right;
}

.lesson-state b,
.lesson-state small {
  display: block;
}

.lesson-state b {
  color: var(--teal-dark);
  font-size: 12px;
}

.lesson-state small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.lesson-card.is-locked .lesson-state b {
  color: var(--locked);
}

.coach-panel {
  position: sticky;
  top: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.coach-panel h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.coach-panel p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.coach-panel ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coach-panel li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  font-size: 13px;
}

.coach-panel li span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 800;
}

.coach-cta {
  display: block;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.lesson-page {
  padding-top: 0;
}

.lesson-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.lesson-hero-main {
  min-width: 0;
}

.lesson-hero .eyebrow {
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lesson-hero h1 {
  margin: 0;
  font-size: clamp(25px, 3.5vw, 38px);
}

.lesson-hero p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.lesson-player-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.lesson-outline {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 106px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lesson-outline h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.outline-status {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.outline-list {
  display: grid;
  gap: 6px;
}

.outline-item {
  width: 100%;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 7px;
  text-align: left;
  font-size: 11.5px;
}

.outline-item span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: var(--navy-soft);
  color: var(--navy);
  font-weight: 800;
}

.outline-item.is-current {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.outline-item.is-locked {
  border-color: transparent;
  background: var(--locked-bg);
  color: var(--locked);
  opacity: 0.72;
}

.outline-item.is-locked span:first-child {
  background: #dfe4e7;
  color: #727b84;
}

.outline-item b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.lesson-shell,
.quiz-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.player-top {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(100px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.ptrack {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.ptrack span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.2s ease;
}

.ttsbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
}

.ttsbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ttsbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 8px;
  background: var(--card);
  color: var(--ink);
}

.ttsbar .spacer {
  flex: 1 1 auto;
}

.slide {
  min-height: 485px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-soft) 56%, white) 0%, white 54%);
}

.slide h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.7vw, 43px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.slide ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide li {
  position: relative;
  padding-left: 25px;
  font-size: 17px;
}

.slide li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}

.slide-visual {
  display: grid;
  min-height: 215px;
  place-items: center;
}

.slide-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.method-symbol {
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 50%;
  background: white;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.method-symbol::before,
.method-symbol::after {
  content: "";
  position: absolute;
  background: color-mix(in srgb, var(--teal) 45%, var(--line));
}

.method-symbol::before {
  width: 1px;
  height: 150px;
}

.method-symbol::after {
  width: 150px;
  height: 1px;
}

.method-symbol b {
  z-index: 1;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-dark);
  color: white;
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: 38px;
}

.lesson-transcript {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.lesson-transcript summary {
  padding: 12px 16px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.script {
  max-width: 78ch;
  padding: 2px 16px 18px;
  color: #465164;
  font-size: 14px;
}

.quiz-shell {
  padding-bottom: 18px;
}

.quiz-card {
  min-height: 450px;
  padding: clamp(24px, 5vw, 48px);
}

.quiz-kicker {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-card h2 {
  max-width: 24ch;
  margin: 0 0 12px;
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.12;
}

.quiz-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.quiz-options {
  display: grid;
  gap: 9px;
}

.quiz-option {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  text-align: left;
  background: var(--panel);
}

.quiz-option:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
}

.quiz-option.is-selected {
  border-color: var(--navy);
  background: var(--navy-soft);
}

.quiz-option.is-correct {
  border-color: var(--good);
  background: #e9f5ee;
  color: #174f34;
}

.quiz-option.is-wrong {
  border-color: var(--bad);
  background: #faeceb;
  color: #752d29;
}

.quiz-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.quiz-feedback {
  margin-top: 16px;
  border-left: 4px solid var(--teal);
  padding: 10px 13px;
  background: var(--teal-soft);
  color: #244a49;
  font-size: 13px;
}

.quiz-result {
  min-height: 450px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(28px, 6vw, 60px);
}

.quiz-result strong {
  font-family: "Fraunces Variable", Georgia, serif;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1;
  color: var(--teal-dark);
}

.quiz-result h2 {
  margin: 14px 0 8px;
  font-size: 32px;
}

.quiz-result p {
  max-width: 60ch;
  margin: 0 0 20px;
  color: var(--muted);
}

.mobile-outline-button {
  display: none;
}

.help-dialog {
  width: min(540px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.help-dialog::backdrop {
  background: rgba(15, 25, 35, 0.44);
}

.help-dialog-head,
.help-dialog-body {
  padding: 18px 20px;
}

.help-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.help-dialog h2 {
  margin: 0;
  font-size: 23px;
}

.help-dialog-body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.help-dialog-body a {
  color: var(--teal-dark);
  font-weight: 800;
}

.product-tour {
  position: fixed;
  z-index: 200;
  inset: 0;
}

.tour-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
}

.tour-spotlight {
  position: fixed;
  z-index: 205;
  border: 3px solid #72d3c6;
  border-radius: 12px;
  background: transparent;
  box-shadow:
    0 0 0 9999px rgba(10, 22, 30, 0.7),
    0 0 0 7px rgba(114, 211, 198, 0.2),
    0 18px 60px rgba(7, 24, 25, 0.28);
  pointer-events: none;
  transition: inset 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.tour-popover {
  position: fixed;
  z-index: 220;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 8px;
  padding: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(7, 24, 25, 0.3);
}

.tour-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-sound {
  min-height: 30px;
  border-color: var(--line);
  padding: 4px 9px;
  background: var(--panel);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}

.tour-sound[aria-pressed="false"] {
  color: var(--muted);
}

.tour-popover h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.15;
}

.tour-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tour-progress {
  height: 4px;
  margin: 16px 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--locked-bg);
}

.tour-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.2s ease;
}

.tour-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.tour-actions .btn-primary,
.tour-actions .btn-ghost {
  min-height: 38px;
  padding: 7px 12px;
}

.tour-skip {
  justify-self: center;
  min-height: 34px;
  border-color: transparent;
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tour-skip:hover {
  color: var(--ink);
}

.profile-popover {
  position: fixed;
  z-index: 50;
  right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  top: 62px;
  width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.profile-popover b,
.profile-popover span,
.profile-popover a {
  display: block;
}

.profile-popover span {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.profile-popover a {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .participant-action > span:last-child,
  .profile-label {
    display: none;
  }

  .participant-action {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
  }

  .profile-trigger {
    min-height: 40px;
    padding: 3px 8px;
  }

  .participant-icon {
    margin: 0;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dash-panel {
    grid-template-columns: minmax(240px, 0.7fr) 1fr;
    grid-template-rows: auto;
  }

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

  .learning-layout {
    grid-template-columns: 1fr;
  }

  .coach-panel {
    position: static;
  }

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

  .lesson-outline {
    position: static;
    display: none;
    max-height: 390px;
  }

  .lesson-outline.is-open {
    display: block;
  }

  .mobile-outline-button {
    display: inline-flex;
  }

  .slide {
    grid-template-columns: minmax(0, 1fr) 180px;
  }
}

@media (max-width: 690px) {
  .wrap {
    padding-inline: 16px;
  }

  .bar {
    gap: 8px;
  }

  .course-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .mark-copy {
    gap: 0;
  }

  .mark b {
    font-size: 18px;
  }

  .mark small,
  .demo-access,
  .participant-action,
  .profile-label {
    display: none;
  }

  .participant-nav {
    margin-left: auto;
  }

  .unlock-link {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 12px;
  }

  main.wrap {
    padding-top: 12px;
  }

  .cockpit-tabs {
    top: 60px;
    gap: 3px;
    margin-inline: 0;
    margin-bottom: 14px;
    padding: 4px;
  }

  .home-tab {
    min-height: 38px;
    padding: 5px 3px;
    font-size: 11px;
  }

  .tab-lock {
    display: none;
  }

  .demo-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .demo-notice-actions {
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .dash-main {
    padding: 24px 20px;
  }

  .dash-panel {
    grid-template-columns: 1fr;
  }

  .nextline {
    align-items: flex-start;
  }

  .next-lesson-copy b {
    font-size: 16px;
  }

  .hero-actions > * {
    width: 100%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .lesson-card {
    grid-template-columns: 34px 72px minmax(0, 1fr);
    min-height: 91px;
    gap: 9px;
    padding: 9px;
  }

  .lesson-number {
    width: 32px;
    height: 32px;
  }

  .lesson-thumb {
    width: 72px;
  }

  .lesson-state {
    grid-column: 3;
    min-width: 0;
    text-align: left;
  }

  .lesson-copy strong {
    font-size: 14px;
  }

  .lesson-copy span,
  .lesson-state small {
    font-size: 10.5px;
  }

  .lesson-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .lesson-hero .mobile-outline-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lesson-hero h1 {
    font-size: 25px;
  }

  .player-top {
    grid-template-columns: 1fr auto;
  }

  .player-top .ptrack {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ttsbar {
    align-items: stretch;
  }

  .ttsbar .spacer {
    display: none;
  }

  .ttsbar button {
    flex: 1 1 30%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .ttsbar label {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .slide {
    min-height: 510px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 22px;
    padding: 28px 22px;
  }

  .slide h2 {
    font-size: 29px;
  }

  .slide li {
    font-size: 15px;
  }

  .slide-visual {
    min-height: 142px;
  }

  .slide-visual img {
    width: min(100%, 260px);
    aspect-ratio: 16 / 10;
  }

  .method-symbol {
    width: 130px;
    height: 130px;
  }

  .method-symbol::before {
    height: 104px;
  }

  .method-symbol::after {
    width: 104px;
  }

  .method-symbol b {
    width: 62px;
    height: 62px;
    font-size: 27px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .unlock-link {
    width: 40px;
    padding: 0;
    font-size: 0;
  }

  .unlock-link::before {
    content: "↗";
    font-size: 18px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .demo-notice-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tour-launch {
    width: 100%;
  }

  .next-lesson-visual {
    width: 78px;
    flex-basis: 78px;
  }

  .next-lesson-visual img {
    width: 78px;
  }
}

/* Der Demo-Player folgt bewusst demselben kompakten Arbeitsmodus wie der Vollkurs. */
body.lesson-mode {
  background: #f2f7f5;
}

body.lesson-mode .app {
  display: none;
}

body.lesson-mode main.wrap {
  width: min(100%, 1280px);
  max-width: 1280px;
  padding: 12px 18px 20px;
}

body.lesson-mode .lesson-page {
  max-width: 1244px;
  margin: 0 auto;
}

body.lesson-mode .lesson-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  margin: 0 0 12px;
  border: 1px solid #d7e5df;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(20, 61, 57, 0.06);
}

body.lesson-mode .lesson-hero .eyebrow {
  margin: 0 0 2px;
  color: #55706a;
  font-size: 11px;
}

body.lesson-mode .lesson-hero h1 {
  margin: 0;
  color: #173b3a;
  font-family: "Geist Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

body.lesson-mode .lesson-hero-main p:last-child {
  margin: 2px 0 0;
  overflow: hidden;
  color: #61706b;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.lesson-mode .lesson-player-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
}

body.lesson-mode .lesson-outline {
  position: sticky;
  top: 12px;
  display: flex;
  height: calc(100vh - 94px);
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  border-color: #d7e5df;
  border-radius: 10px;
  padding: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(20, 61, 57, 0.07);
}

.outline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 5px;
}

body.lesson-mode .lesson-outline h2 {
  margin: 0;
  color: #173b3a;
  font-family: "Geist Sans", Arial, sans-serif;
  font-size: 16px;
}

body.lesson-mode .outline-status {
  margin: 0;
  border-bottom: 1px solid #e4ece8;
  padding: 0 14px 12px;
  font-size: 12px;
  font-weight: 700;
}

body.lesson-mode .outline-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
}

body.lesson-mode .outline-item {
  min-height: 54px;
  margin-bottom: 4px;
  border-color: transparent;
  background: transparent;
}

body.lesson-mode .outline-item.is-current {
  border-color: #a9d4c7;
  background: #eaf6f1;
}

body.lesson-mode .outline-item.is-locked {
  background: #f0f3f2;
  opacity: 0.76;
}

.outline-close,
.outline-backdrop {
  display: none;
}

body.lesson-mode .lesson-shell,
body.lesson-mode .quiz-shell {
  margin: 0;
  border-color: #d7e5df;
  border-radius: 10px;
  padding: 8px 10px 10px;
  background: white;
  box-shadow: 0 10px 30px rgba(20, 61, 57, 0.07);
}

body.lesson-mode .player-top {
  display: flex;
  min-height: 38px;
  margin: 0 0 8px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  padding: 7px 8px;
  background: #f8fbf9;
}

body.lesson-mode .player-top .ptrack {
  flex: 1 1 140px;
}

body.lesson-mode .ttsbar {
  display: flex;
  min-height: 50px;
  margin: 0 0 8px;
  border: 1px solid #dfe9e5;
  border-radius: 8px;
  padding: 7px 8px;
  background: white;
}

body.lesson-mode .ttsbar button,
body.lesson-mode .ttsbar label {
  min-height: 34px;
}

body.lesson-mode .ttsbar #slideNext {
  border-color: #173b3a;
  background: #173b3a;
  color: white;
}

body.lesson-mode .ttsbar #slidePrev:disabled {
  display: none;
}

body.lesson-mode .slide {
  position: relative;
  width: 100%;
  height: clamp(360px, calc(100vh - 250px), 560px);
  min-height: 0;
  display: block;
  align-content: start;
  margin: 0 0 8px;
  overflow-y: auto;
  border: 1px solid #e4ded0;
  border-radius: 8px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, #fffaf0 0%, #fffdf7 66%, #f5fbf8 100%);
  box-shadow: 0 12px 36px rgba(24, 32, 51, 0.1);
  scrollbar-width: thin;
}

body.lesson-mode .slide::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal-dark), var(--gold));
}

body.lesson-mode .slide.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: start;
}

body.lesson-mode .slide-copy,
body.lesson-mode .slide-media {
  position: relative;
  z-index: 1;
}

body.lesson-mode .slide-kicker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

body.lesson-mode .slide-kicker span {
  border: 1px solid #eadfca;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: #806630;
  font-size: 11px;
  font-weight: 800;
}

body.lesson-mode .slide h3 {
  margin: 0 0 16px;
  color: #102f35;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

body.lesson-mode .slide-copy > ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.lesson-mode .slide-copy > ul > li {
  position: relative;
  border: 1px solid #e9e1d3;
  border-radius: 8px;
  padding: 9px 11px 9px 43px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 15.5px;
}

body.lesson-mode .slide-copy > ul > li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: #f1eadc;
  color: #9a7433;
  font-size: 11px;
  font-weight: 800;
}

body.lesson-mode .slide-media {
  margin: 0;
}

body.lesson-mode .slide-media img {
  display: block;
  width: 100%;
  max-height: 230px;
  aspect-ratio: 16 / 9;
  border: 1px solid #dce3df;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

body.lesson-mode .slide-media figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

body.lesson-mode .slide:not(.has-media) .slide-visual {
  display: none;
}

body.lesson-mode .lesson-transcript {
  margin-top: 8px;
  border: 1px solid #dde8e3;
  border-radius: 8px;
  background: #f8fbf9;
}

body.lesson-mode .lesson-transcript summary {
  padding: 9px 11px;
  color: #35514c;
}

body.lesson-mode .lesson-transcript .script {
  max-width: none;
  border-top: 1px solid #e1eae6;
  padding: 12px;
}

body.lesson-mode .quiz-shell {
  padding-bottom: 10px;
}

body.lesson-mode .quiz-card,
body.lesson-mode .quiz-result {
  min-height: clamp(360px, calc(100vh - 180px), 560px);
}

@media (max-width: 900px) {
  body.lesson-mode main.wrap {
    padding: 8px 10px 14px;
  }

  body.lesson-mode .lesson-player-layout {
    grid-template-columns: 1fr;
  }

  body.lesson-mode .lesson-outline {
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    height: 100dvh;
    min-height: 0;
    border-radius: 0 10px 10px 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  body.lesson-mode .lesson-outline.is-open {
    transform: translateX(0);
  }

  .outline-close {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    font-size: 20px;
  }

  .outline-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(7, 24, 25, 0.42);
  }

  .outline-backdrop.is-open {
    display: block;
  }
}

@media (max-width: 760px) {
  body.lesson-mode .lesson-hero {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    margin-bottom: 8px;
    padding: 7px 8px;
  }

  body.lesson-mode .lesson-hero h1 {
    font-size: 17px;
  }

  body.lesson-mode .lesson-hero-main p:last-child {
    display: none;
  }

  body.lesson-mode .lesson-hero .btn-ghost {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
  }

  body.lesson-mode .ttsbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.lesson-mode .ttsbar > button {
    width: 100%;
    min-width: 0;
    padding-inline: 5px;
    font-size: 12px;
  }

  body.lesson-mode .ttsbar.is-check-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.lesson-mode .ttsbar.is-check-stage #slideNext {
    grid-column: 1 / -1;
    white-space: normal;
  }

  body.lesson-mode .ttsbar label {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
  }

  body.lesson-mode .ttsbar label:first-of-type {
    grid-column: span 2;
  }

  body.lesson-mode .ttsbar label:last-of-type {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }

  body.lesson-mode .ttsbar select {
    width: 100%;
  }

  body.lesson-mode .slide {
    height: clamp(320px, calc(100svh - 400px), 460px);
    padding: 16px;
  }

  body.lesson-mode .slide.has-media {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.lesson-mode .slide h3 {
    margin-bottom: 12px;
    font-size: 25px;
  }

  body.lesson-mode .slide-copy > ul {
    gap: 6px;
  }

  body.lesson-mode .slide-copy > ul > li {
    padding: 7px 8px 7px 38px;
    font-size: 14px;
  }

  body.lesson-mode .slide-copy > ul > li::before {
    top: 6px;
    width: 24px;
    height: 24px;
  }

  body.lesson-mode .slide-media img {
    width: min(100%, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .tour-popover {
    width: auto;
    max-height: min(44vh, 330px);
    overflow: auto;
    padding: 15px;
  }

  .tour-popover h2 {
    font-size: 21px;
  }

  .tour-popover p {
    font-size: 13px;
  }

  .tour-meta {
    margin-bottom: 8px;
  }

  .tour-progress {
    margin: 12px 0;
  }

  .tour-actions {
    grid-template-columns: auto 1fr auto;
  }

  .tour-actions .btn-primary,
  .tour-actions .btn-ghost {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .tour-skip {
    font-size: 11px;
  }
}
.demo-legal{
  padding:18px 24px 28px;
  border-top:1px solid #DCE4E2;
  background:#F5F8F7;
}
.demo-legal nav{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}
.demo-legal a{
  color:#53615E;
  font-size:13px;
  font-weight:650;
}
.demo-legal a:hover{
  color:#176B62;
}
