/* ============================================================
   Essência Cognitiva — Área do curso "Performance com Sentido"
   Experiência interativa (visão geral + player de aula)
   Complementa styles/home.css · acento sálvia (html[data-accent="sage"])
   ============================================================ */

/* ---------- header: progresso + retomar ---------- */

.course-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-progress .bar {
  width: 130px;
  height: 5px;
  border-radius: 999px;
  background: rgba(36, 56, 67, 0.12);
  overflow: hidden;
}

.course-progress .bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--sage);
  transition: width 0.35s ease;
}

.course-progress .count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.site-header .btn.btn-resume {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--sage);
}

@media (max-width: 760px) {
  .course-progress .bar { width: 90px; }
}

/* ---------- visão geral: hero ---------- */

.ov-hero { padding: 84px 0 56px; }

.ov-hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.ov-hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  letter-spacing: -0.015em;
}

.ov-hero .lead { max-width: 52ch; }

.ov-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
}

.ov-hero-cta .stat { font-size: 14px; color: var(--ink-soft); padding-left: 6px; }
.ov-hero-cta .stat strong { color: var(--ink); }

.author-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 34px;
  box-shadow: 0 30px 60px -36px rgba(36, 56, 67, 0.35);
}

.author-card .photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: 50% 8%;
  box-shadow: 0 10px 24px -14px rgba(36, 56, 67, 0.5);
}

.author-card .role {
  margin: 22px 0 4px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}

.author-card h2 { font-size: 27px; }

.author-card .crp { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); margin: 4px 0 0; }

.author-card p { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; text-wrap: pretty; }

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

/* ---------- visão geral: o que muda (dark) ---------- */

.ov-takeaways {
  background: var(--slate-deep);
  color: #EDF1EE;
  border-top: 1px solid var(--line);
}

.ov-takeaways .wrap { padding: 84px 32px; }

.ov-takeaways .eyebrow { color: var(--sage); }
.ov-takeaways .eyebrow::before { background: var(--sage); }

.ov-takeaways h2 {
  font-size: clamp(32px, 4vw, 44px);
  color: #F4F1EA;
  letter-spacing: -0.01em;
  margin: 16px 0 44px;
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(244, 241, 234, 0.16);
}

.takeaway {
  padding: 32px 28px 8px;
  border-right: 1px solid rgba(244, 241, 234, 0.16);
}

.takeaway:first-child { padding-left: 0; }
.takeaway:last-child { border-right: none; padding-right: 0; }

.takeaway h3 { font-size: 21px; color: #F4F1EA; margin-bottom: 10px; }
.takeaway p { font-size: 14.5px; color: rgba(237, 241, 238, 0.72); }

@media (max-width: 900px) {
  .takeaway-grid { grid-template-columns: 1fr 1fr; }
  .takeaway { border-bottom: 1px solid rgba(244, 241, 234, 0.16); padding: 26px 22px 22px; }
  .takeaway:nth-child(odd) { padding-left: 0; }
  .takeaway:nth-child(even) { border-right: none; padding-right: 0; }
}

/* ---------- visão geral: módulos clicáveis ---------- */

.ov-modules { padding: 96px 0 32px; }

.module-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.module-row {
  display: grid;
  grid-template-columns: 96px 1fr 1.1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 16px 30px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  background: none;
  border-left: none; border-right: none; border-top: none;
  width: 100%;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}

.module-row:hover { background: var(--surface); }

.module-row .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  color: var(--sage);
}

.module-row h3 { font-size: 23px; }

.module-row .authors {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.module-row .tagline { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

.module-row .meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

@media (max-width: 900px) {
  .module-row { grid-template-columns: 64px 1fr; gap: 16px 20px; }
  .module-row .tagline { grid-column: 2; }
  .module-row .meta { grid-column: 2; justify-self: start; }
  .module-row .num { font-size: 32px; }
}

/* ---------- visão geral: referências ---------- */

.ov-refs { padding: 64px 0 96px; }

.refs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.refs-cols .label {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.refs-cols .label.primary { color: var(--terracotta); }
.refs-cols .label.secondary { color: var(--ink-soft); }

.ref-list { display: grid; border-top: 1px solid var(--line); }

.ref-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ref-item strong { font-family: var(--font-display); font-weight: 500; font-size: 20px; display: block; }
.ref-item span { font-size: 14.5px; color: var(--ink-soft); }

@media (max-width: 760px) {
  .refs-cols { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- player de aula ---------- */

.lesson-view {
  display: grid;
  grid-template-columns: 330px 1fr;
  min-height: calc(100vh - 77px);
}

.lesson-nav {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 0 48px;
  overflow-y: auto;
  max-height: calc(100vh - 77px);
  position: sticky;
  top: 77px;
}

.lesson-nav .nav-head {
  padding: 0 26px 18px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}

.nav-module-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 14px 26px 8px;
}
.nav-module-title .n { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--sage); }
.nav-module-title .t { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }

.nav-lesson {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 26px 9px 30px;
  cursor: pointer;
  border-left: 3px solid transparent;
  background: none; border-top: none; border-right: none; border-bottom: none;
  width: 100%; font: inherit; text-align: left; color: inherit;
  transition: background 0.12s ease;
}
.nav-lesson:hover { background: color-mix(in oklab, var(--sage) 8%, transparent); }
.nav-lesson.active { background: color-mix(in oklab, var(--sage) 12%, transparent); border-left-color: var(--sage); }

.nav-lesson .dot {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800;
  border: 1.5px solid rgba(36, 56, 67, 0.28);
  color: transparent;
}
.nav-lesson.done .dot { background: var(--sage); border-color: var(--sage); color: #fff; }

.nav-lesson .nl-title { flex: 1; font-size: 13.5px; line-height: 1.35; color: var(--ink-soft); font-weight: 500; }
.nav-lesson.active .nl-title { color: var(--ink); font-weight: 700; }
.nav-lesson .nl-dur { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.lesson-main { padding: 44px 56px 80px; max-width: 980px; }

.lesson-main .crumb {
  margin-bottom: 18px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  display: flex; align-items: center; gap: 12px;
}
.lesson-main .crumb::before { content: ""; width: 26px; height: 2px; background: var(--sage); border-radius: 2px; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--slate-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.video::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 28% 18%, rgba(103, 147, 127, 0.32), transparent 62%);
}
.video .play {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.12);
  border: 1.5px solid rgba(244, 241, 234, 0.4);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.video .play:hover { background: var(--sage); border-color: var(--sage); }
.video .play::after {
  content: "";
  width: 0; height: 0;
  border-left: 22px solid #F4F1EA;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.video .vcap {
  position: absolute; left: 26px; bottom: 20px;
  font-size: 13px; font-weight: 600;
  color: rgba(244, 241, 234, 0.75);
}

.lesson-main h1 {
  margin: 34px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.lesson-main .desc {
  margin: 20px 0 0;
  font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch; text-wrap: pretty;
}

.keypoints {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}
.keypoints .kp-label {
  margin-bottom: 16px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.keypoints ul { list-style: none; display: grid; gap: 12px; }
.keypoints li { display: flex; gap: 13px; align-items: baseline; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.keypoints li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  transform: translateY(6px);
}

.theory {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 14px;
  padding: 18px 28px;
  background: var(--sage-soft);
  border-radius: 16px;
}
.theory .tl {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--sage); white-space: nowrap;
}
.theory .tt { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink); }

.lesson-actions {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.lesson-actions .nav-btn {
  border: 1.5px solid rgba(36, 56, 67, 0.18);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
}
.lesson-actions .nav-btn:hover { border-color: var(--ink); }
.lesson-actions .nav-btn:disabled { opacity: 0.35; cursor: default; }

.lesson-actions .complete {
  border: none; cursor: pointer;
  background: var(--sage); color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 700;
  padding: 13px 28px; border-radius: 999px;
  box-shadow: 0 8px 22px -12px var(--sage);
}
.lesson-actions .complete.is-done { background: var(--slate); box-shadow: none; }

@media (max-width: 900px) {
  .lesson-view { grid-template-columns: 1fr; }
  .lesson-nav { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--line); }
  .lesson-main { padding: 32px 24px 64px; }
}

/* ---------- alternância de telas ---------- */

[data-view="overview"] .lesson-view,
[data-view="lesson"] .overview { display: none; }
