/*
 * Engenharia Hub — área do aluno (visual claro e minimalista).
 * Marca (logo EH): azul-marinho #0a1f44, azul #1e54fb (ações e destaques), verde #17bc5b (concluído), Inter.
 */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e6e9ee;
  --line: #e4e7ec;
  --line-2: #cdd4dd;
  --navy: #0a1f44;
  --text: #0b1a33;
  --text-2: #344256;
  --muted: #5d6b7c;
  --muted-2: #7d8998;
  --accent: #1e54fb;
  --accent-2: #1846d8;
  --accent-soft: #eaf0ff;
  --accent-line: #c9d7fe;
  --green: #17bc5b;
  --green-ink: #0d7a3b;
  --danger: #c93a3a;
  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 16px 40px rgba(15, 23, 42, .12);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  font-feature-settings: "ss01", "cv05";
  overflow-x: hidden;
}
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: #0d3d75; }
img { max-width: 100%; }
button { font: inherit; }
h1, h2, h3 { letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; background: var(--accent-2); }
.btn svg { flex: none; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-success { background: var(--surface); color: var(--green-ink); border-color: var(--green); }
.btn-success:hover { background: #effbf3; color: var(--green-ink); }
.btn-success.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; min-height: 44px; font-weight: 600; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(6, 22, 44, .08); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .toggle-pw {
  position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: none;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.select {
  min-height: 44px; padding: 0 36px 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; max-width: 100%;
}

/* ---------- Avisos ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.alert svg { flex: none; margin-top: 1px; }
.alert-warning { background: #fff8e1; border-color: #f3dc6b; color: #5b4a00; }
.alert-error { background: #fdf0f0; border-color: #f1c4c4; color: #8a2222; }
.alert-success { background: #edfaf2; border-color: #b9e8cc; color: #0d5e30; }
.alert-info { background: var(--surface-2); border-color: var(--line); color: var(--text-2); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .inner { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 4px; font-size: 19px; font-weight: 900; letter-spacing: -.03em; color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo img { display: block; height: 32px; width: auto; }
.brand img { display: block; height: 36px; width: auto; }
.logo span { padding: 2px 6px; border-radius: 6px; background: var(--accent); color: #fff; }
.logo:hover { color: var(--navy); }
.main-nav { display: flex; gap: 4px; font-size: 15px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.is-active { color: var(--text); background: var(--surface-2); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-form { position: relative; display: flex; align-items: center; }
.search-form .search-input {
  width: clamp(180px, 22vw, 300px); height: 40px; padding: 0 14px 0 38px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.search-form .search-input:focus { outline: none; background: var(--surface); border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(6, 22, 44, .06); }
.search-form .icon-btn { position: absolute; left: 2px; top: 0; width: 36px; height: 40px; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; cursor: pointer; color: var(--muted); }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.account-menu .dropdown {
  position: absolute; right: 0; top: 48px; min-width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-lg);
}
.account-menu .dropdown .who { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.account-menu .dropdown .who strong { display: block; color: var(--text); font-size: 14px; }
.account-menu .dropdown a, .account-menu .dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; color: var(--text); text-decoration: none;
  background: none; border: 0; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.account-menu .dropdown a:hover, .account-menu .dropdown button:hover { background: var(--surface-2); }

/* ---------- Capas ---------- */
.cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-blank {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 14% 9% 9%; overflow: hidden; color: var(--navy); container-type: inline-size;
}
.cover-blank::before { content: ""; position: absolute; top: 9%; left: 9%; width: 28px; height: 4px; border-radius: 2px; background: currentColor; opacity: .55; }
.cover-blank::after { content: ""; position: absolute; right: -18%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.cover-blank .cb-title { position: relative; z-index: 1; font-size: clamp(14px, 8.4cqi, 30px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover-blank .cb-author { position: relative; z-index: 1; font-size: clamp(12px, 5.6cqi, 19px); font-weight: 600; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tone-0 { background: #e8eef7; color: #0d2a52; }
.tone-1 { background: #fdf3cf; color: #4d3b00; }
.tone-2 { background: #e3f4ea; color: #0c4a29; }
.tone-3 { background: #efe9f8; color: #36205e; }
.tone-4 { background: #fbe9e3; color: #5c2412; }
.tone-5 { background: #e2f1f5; color: #0b4250; }
.tone-6 { background: #eceff3; color: #1e2a3a; }
.tone-7 { background: #f6ecd9; color: #4a3309; }

/* ---------- Cards de curso ---------- */
.course-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.course-card:hover { color: var(--text); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.card-media .cover { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.course-card:hover .card-media, .course-card:focus-visible .card-media { box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), var(--shadow-lg); transform: translateY(-3px); }
.course-card:hover .card-media .cover, .course-card:focus-visible .card-media .cover { transform: scale(1.045); }
.card-media .play {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.course-card:hover .play, .course-card:focus-visible .play { opacity: 1; transform: none; }
.card-media .rank {
  position: absolute; left: 10px; top: 10px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.card-media .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .6); }
.card-media .bar span { display: block; height: 100%; background: var(--accent); }
.card-body { display: flex; flex-direction: column; gap: 2px; padding-inline: 2px; min-width: 0; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-author { font-weight: 500; color: var(--text-2); }
.card-course { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-course .card-author { color: var(--muted); }
.card-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 13px; color: var(--muted-2); }

/* ---------- Início ---------- */
.home { padding: 0 0 56px; display: flex; flex-direction: column; gap: 48px; }
.hello h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.hello p { margin: 4px 0 0; color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease;
}
.chips a:hover { border-color: var(--line-2); color: var(--text); }
.chips a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.feature {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
}
.feature-media { display: block; text-decoration: none; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.feature-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feature-body h2 { margin: 0; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.12; font-weight: 800; overflow-wrap: anywhere; }
.by { margin: -4px 0 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; letter-spacing: -.01em; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--text-2); }
.stats span { display: inline-flex; align-items: center; gap: 6px; }
.stats svg { color: var(--muted-2); }
.feature-body .desc { margin: 0; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.progress { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress .track { flex: 0 1 180px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.progress .track span { display: block; height: 100%; border-radius: 3px; background: var(--green); }

/* Fileiras com rolagem lateral */
.row { display: flex; flex-direction: column; gap: 14px; }
.row-head { display: flex; align-items: center; gap: 12px; }
.row-title { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 800; }
.row-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.row-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.row-link:hover { color: var(--text); background: var(--surface-2); }
.rail-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.rail-btn:hover:not(:disabled) { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 21vw, 290px); gap: 20px;
  overflow-x: auto; padding: 4px var(--edge) 14px; margin-top: -4px; scroll-padding-inline: var(--edge);
  scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- Grade (todos os cursos, busca, meus cursos) ---------- */
.page { padding-top: 32px; padding-bottom: 56px; }
.page-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.page-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.page-sub { margin: 0; color: var(--muted); }
.page .chips { margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 32px 20px; }
.empty { padding: 64px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.empty p { margin: 0; }
.section-title { margin: 0; font-size: 20px; font-weight: 800; }

/* ---------- Lista de aulas ---------- */
.lesson-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); transition: background .12s ease; }
.lesson-row:first-child { border-top: 0; }
.lesson-row:hover { background: var(--surface-2); color: var(--text); }
.lesson-row.is-current { background: var(--accent-soft); }
.lesson-row .state {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted);
}
.lesson-row.is-done .state { background: var(--green); border-color: var(--green); color: #fff; }
.lesson-row.is-current .state { background: var(--accent); border-color: var(--accent); color: #fff; }
.lesson-row .thumb { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.lesson-row .thumb .cover-blank { padding: 8px; }
.lesson-row .thumb .cover-blank::before, .lesson-row .thumb .cover-blank .cb-author { display: none; }
.lesson-row .thumb .cb-title { font-size: 11px; }
.lesson-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lesson-row .t strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lesson-row .t small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.lesson-row .mini { width: 120px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.lesson-row .mini span { display: block; height: 100%; background: var(--accent); }
.lesson-row .dur { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tag { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---------- Página do curso ---------- */
.course { padding: 20px 0 64px; display: flex; flex-direction: column; gap: 40px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.course-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: -20px; }
.course-media { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.course-summary { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.course-summary h1 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; font-weight: 800; overflow-wrap: anywhere; }
.course-summary .desc { margin: 0; color: var(--text-2); line-height: 1.65; white-space: pre-line; }
.course-summary .updated { font-size: 13px; color: var(--muted-2); }
.course-section { display: flex; flex-direction: column; gap: 14px; }
.course-section > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.course-section > header small { color: var(--muted); font-size: 14px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module + .module { margin-top: 10px; }
.module > summary {
  list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none;
}
.module > summary::-webkit-details-marker { display: none; }
.module > summary:hover { background: var(--surface-2); }
.module > summary .chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.module[open] > summary .chev { transform: rotate(90deg); }
.module > summary .mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.module > summary .mt strong { font-size: 16px; font-weight: 700; }
.module > summary .mt small { font-size: 13px; color: var(--muted); }
.module .lesson-list { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.module .sub-heading { padding: 14px 18px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); }
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.material { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease; }
.material:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.material .ext { flex: none; width: 40px; height: 46px; border-radius: 6px; background: #fdecec; color: #a32a2a; font-size: 10px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.material .ext.sheet { background: #e5f6ec; color: var(--green-ink); }
.material .ext.other { background: var(--surface-2); color: var(--muted); }
.material .name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.material .name strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material .name span { font-size: 12px; color: var(--muted); }

/* ---------- Player ---------- */
.player-page { min-height: 100vh; background: var(--bg); }
.player-theater { background: radial-gradient(1200px 400px at 50% 0%, #13306a 0%, #0a1f44 45%, #071530 100%); padding: 18px var(--gutter) 22px; }
.player-stage { position: relative; width: 100%; max-width: min(1280px, calc((100vh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; min-height: 200px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lesson-topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.lt-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.lt-back { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text); background: var(--surface-2); }
.lt-back:hover { color: var(--text); background: var(--surface-3); }
.lt-crumbs { flex: 1; min-width: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.lt-crumbs > * { overflow: hidden; text-overflow: ellipsis; }
.lt-crumbs span:last-child { color: var(--text); font-weight: 600; }
.lt-progress { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lt-progress .ring-label { font-size: 9px; }
.lt-progress b { color: var(--text); }
@media (max-width: 760px) {
  .player-theater { padding: 0; }
  .player-stage { border-radius: 0; max-width: none; }
  .lt-progress > span:last-child { display: none; }
  .lt-crumbs > :not(:last-child) { display: none; }
}
.player-top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); pointer-events: none; }
.player-top > * { pointer-events: auto; }
.player-top .back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; max-width: 100%; }
.player-top .back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-stage video { width: 100%; height: 100%; background: #000; }
.player-stage .plyr { width: 100%; height: 100%; }
.player-stage .plyr__video-wrapper { height: 100%; }
.watermark { position: absolute; z-index: 15; pointer-events: none; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .22); white-space: nowrap; transition: top 1.5s ease, left 1.5s ease; user-select: none; }
.player-loading { position: absolute; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; pointer-events: none; }
.player-loading span { width: 56px; height: 56px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: spin .8s linear infinite; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.player-stage.is-loading .player-loading { display: flex; }
.player-stage.is-loading .plyr .plyr__control--overlaid { display: none; }
.player-unmute { position: absolute; inset: 0; z-index: 11; display: none; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.player-unmute.is-on { display: flex; }
.player-stage.is-loading .player-unmute span { visibility: hidden; }
.player-unmute span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(0, 0, 0, .72); font-family: inherit; font-size: 15px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.player-msg { position: absolute; inset: 0; z-index: 12; display: none; align-items: center; justify-content: center; padding: 24px; text-align: center; background: rgba(0, 0, 0, .78); }
.player-msg.is-on { display: flex; }
.player-msg .box { max-width: 460px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.player-msg .box span { color: rgba(255, 255, 255, .75); }
.next-up { position: absolute; z-index: 14; right: clamp(12px, 3vw, 40px); bottom: 90px; display: none; flex-direction: column; gap: 10px; padding: 18px; width: min(340px, calc(100% - 24px)); background: rgba(14, 27, 44, .96); color: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.next-up.is-on { display: flex; }
.next-up small { color: rgba(255, 255, 255, .7); font-size: 13px; }
.next-up strong { font-size: 16px; }
.next-up .row-btns { display: flex; gap: 8px; }
.next-up .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.parts { display: flex; flex-wrap: wrap; gap: 8px; }
.parts a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.parts a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.lesson-area { padding-top: 28px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.lesson-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lesson-main .crumb { font-size: 13px; font-weight: 600; color: var(--muted); }
.lesson-main h1 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 800; }
.lesson-main .lesson-desc { margin: 0; color: var(--text-2); line-height: 1.65; }
.lesson-main .saved { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lesson-main .saved svg { color: var(--green); }
.lesson-nav { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.lesson-nav .spacer { margin-left: auto; }
.lesson-side { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.lesson-side header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.lesson-side header small { font-size: 12px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-side header strong { font-size: 16px; }
.lesson-side .list { overflow-y: auto; padding: 6px; }
.lesson-side .group { padding: 12px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.is-current { background: var(--accent-soft); }
.side-item .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); color: var(--muted); }
.side-item.is-done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.side-item.is-current .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.35; }
.side-item.is-current .t { font-weight: 700; }
.side-item .t small { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Plyr nas cores da marca */
.plyr { --plyr-color-main: #1e54fb; --plyr-video-control-color: #ffffff; --plyr-video-control-color-hover: #ffffff; --plyr-range-thumb-background: #ffffff; --plyr-font-family: Inter, system-ui, sans-serif; }

/* ---------- Login / páginas de conta ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 500px at 50% -10%, #e3ebff 0%, rgba(227, 235, 255, 0) 60%), var(--bg); }
.auth-header { padding: 24px var(--gutter); display: flex; justify-content: center; }
.auth-header .logo img { height: 40px; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(8px, 6vh, 64px) 16px 24px; }
.auth-box { width: 100%; max-width: 420px; padding: clamp(24px, 5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.auth-box h1 { margin: 0; font-size: 26px; font-weight: 800; }
.auth-box p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.auth-box .small { font-size: 14px; color: var(--muted); }
.auth-notice { display: flex; flex-direction: column; gap: 8px; }
.auth-notice strong { font-size: 15px; overflow-wrap: anywhere; }
.auth-notice span { line-height: 1.5; }
.auth-notice .btn { margin-top: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-box .btn-trial { background: var(--green); border-color: var(--green); color: #fff; }
.auth-box .btn-trial:hover { background: #12a14d; border-color: #12a14d; color: #fff; }
.auth-box .auth-have { align-self: flex-end; margin: -6px 0 -4px; }
.auth-footer { padding: 24px var(--gutter) 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; }
.auth-footer a { color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .copy { margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Layout base (instalação, erros) ---------- */
.container { width: min(960px, 100% - 32px); margin: 0 auto; padding: 48px 0; }
.brand { font-weight: 900; letter-spacing: -.03em; font-size: 22px; color: var(--navy); }
.brand span { padding: 1px 6px; border-radius: 6px; background: var(--accent); color: #fff; }
.container .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 20px 0; box-shadow: var(--shadow-sm); }
.container h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin: 16px 0; }
.container h2 { font-size: 20px; margin: 0 0 16px; }
.container p, .container li { color: var(--text-2); line-height: 1.6; }
.container label { display: block; font-weight: 600; margin: 14px 0 6px; }
.container input[type=text], .container input[type=email], .container input[type=password] {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
}
.container .alert { margin: 16px 0; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.ok { color: var(--green-ink); font-weight: 800; }
.fail { color: var(--danger); font-weight: 800; }
.detail { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; }
code { padding: 2px 6px; }
pre { padding: 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ---------- Vitrine (carrossel do início) ---------- */
.showcase { position: relative; display: grid; isolation: isolate; overflow: hidden; }
.slide { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide-ambient img { position: absolute; inset: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: blur(80px) saturate(1.6); opacity: .5; }
.slide-ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 246, 248, .2) 0%, rgba(245, 246, 248, .55) 55%, var(--bg) 100%); }
.slide-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 5vw, 72px); padding-bottom: 96px; }
.slide-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.greet { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.display { margin: 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.03; font-weight: 800; letter-spacing: -.04em; overflow-wrap: anywhere; text-wrap: balance; }
.slide-body .desc { margin: 0; max-width: 54ch; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-media { display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--surface-3); text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 80px -24px rgba(15, 23, 42, .45), 0 12px 24px -12px rgba(15, 23, 42, .25); }
.slide.is-active .slide-media { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.slide.is-active .slide-body { animation: rise .9s .08s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.showcase-nav { position: absolute; left: 0; right: 0; bottom: 32px; display: flex; align-items: center; gap: 8px; }
.dots { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.dot { width: 40px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; transition: width .3s ease; }
.dot span { position: relative; display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(14, 27, 44, .16); overflow: hidden; }
.dot.is-active { width: 64px; }
.dot.is-active span::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform-origin: left; animation: dot-fill 7s linear forwards; }
.showcase:hover .dot.is-active span::after, .showcase:focus-within .dot.is-active span::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.btn-glass { background: rgba(255, 255, 255, .72); border-color: rgba(14, 27, 44, .12); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; color: var(--text); }

/* Áreas com capas empilhadas */
.rail-areas { grid-auto-columns: clamp(250px, 23vw, 310px); }
.area-card { display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.area-card:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.area-stack { position: relative; height: 150px; }
.area-cover { position: absolute; width: 74%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 10px 24px -8px rgba(15, 23, 42, .3); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.area-cover:nth-last-child(1) { left: 0; bottom: 0; z-index: 3; }
.area-cover:nth-last-child(2) { left: 13%; bottom: 18px; z-index: 2; transform: scale(.94); opacity: .9; }
.area-cover:nth-last-child(3) { left: 26%; bottom: 36px; z-index: 1; transform: scale(.88); opacity: .75; }
.area-card:hover .area-cover:nth-last-child(1) { transform: translateY(-4px) rotate(-1.5deg); }
.area-card:hover .area-cover:nth-last-child(2) { transform: scale(.94) translateX(8px) rotate(1deg); }
.area-card:hover .area-cover:nth-last-child(3) { transform: scale(.88) translateX(16px) rotate(3deg); }
.area-cover .cover-blank { padding: 10px; }
.area-cover .cover-blank::before, .area-cover .cover-blank .cb-author { display: none; }
.area-text { display: flex; flex-direction: column; gap: 2px; }
.area-text strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.area-text span { font-size: 13px; color: var(--muted); }

/* Fundo ambiente da página do curso */
.course { position: relative; isolation: isolate; }
.course-ambient { position: absolute; left: 0; right: 0; top: 0; height: 640px; z-index: -1; overflow: hidden; pointer-events: none; }
.course-ambient img { position: absolute; inset: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: blur(80px) saturate(1.6); opacity: .45; }
.course-ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 246, 248, .3) 0%, var(--bg) 100%); }
.course-media { border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 80px -24px rgba(15, 23, 42, .45), 0 12px 24px -12px rgba(15, 23, 42, .25); }

/* Rodapé com marca */
.site-footer .brand-line { display: flex; flex-direction: column; gap: 4px; margin-right: 24px; }
.site-footer .brand-line .logo img { height: 26px; }

@media (max-width: 960px) {
  .slide-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 20px; padding-bottom: 80px; }
  .slide-media { order: -1; border-radius: 16px; }
  .showcase-nav { bottom: 24px; }
}
@media (max-width: 760px) {
  .showcase-nav .rail-btn { display: none; }
  .rail-areas { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.is-active span::after { animation: none; transform: none; }
  .slide.is-active .slide-media, .slide.is-active .slide-body { animation: none; }
}

/* ---------- Categorias ---------- */
/* Menu do cabeçalho */
.cat-menu { position: static; }
.cat-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; user-select: none; }
.cat-menu > summary::-webkit-details-marker { display: none; }
.cat-menu > summary:hover, .cat-menu[open] > summary, .cat-menu > summary.is-active { color: var(--text); background: var(--surface-2); }
.cat-menu[open] > summary svg { transform: rotate(180deg); }
.cat-panel {
  position: absolute; left: max(var(--gutter), calc((100% - var(--maxw)) / 2)); top: calc(100% + 1px); z-index: 60;
  width: min(860px, calc(100% - 2 * var(--gutter))); padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .25s ease both;
}
.site-header .inner { position: relative; }
.site-header { --hdr: 64px; }
.cat-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.cat-panel-grid a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; white-space: normal; font-weight: 600; }
.cat-panel-grid a:hover { background: var(--surface-2); color: var(--text); }
.cat-panel .ic, .side-cats .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cat-panel-grid a:hover .ic { background: var(--accent); color: #fff; }
.cat-panel .nm { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; }
.cat-panel .nm small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cat-panel-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
.cat-panel-foot a { white-space: nowrap; padding: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.cat-panel-foot a:hover { text-decoration: underline; }
.nav-cats-link { display: none; }

/* Etiquetas de área (página do curso, busca) */
.cat-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.cat-tag:hover { border-color: var(--line-2); color: var(--text); }
.cat-tag svg { color: var(--navy); }

/* Ícone nas fileiras do início e nos cartões de área */
.row-title a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.row-title a:hover { color: var(--text); }
.row-title a:hover .row-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.row-icon, .area-icon { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease; }
.area-text strong { display: flex; align-items: center; gap: 10px; }
.area-text > span { padding-left: 42px; }
.area-card:hover .area-icon { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Página "Categorias" */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.area-all { justify-content: space-between; background: var(--navy); border-color: var(--navy); color: #fff; }
.area-all:hover { color: #fff; border-color: var(--navy); }
.area-all .area-text strong, .area-all .area-text span { color: #fff; }
.area-all .area-text > span { padding-left: 0; opacity: .75; }
.area-all-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 40px; }

/* Página de uma área: lista lateral + filtro + grade */
.browse { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.browse-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
.side-title { margin: 0 0 8px 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.side-cats { display: flex; flex-direction: column; gap: 2px; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; }
.side-cats a:hover { background: var(--surface); color: var(--text); }
.side-cats a.is-on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.side-cats a.is-on .ic { background: var(--accent); border-color: var(--accent); color: #fff; }
.side-cats .ic { width: 32px; height: 32px; background: var(--surface); border: 1px solid var(--line); }
.side-cats .nm { flex: 1; min-width: 0; }
.side-cats .ct { flex: none; min-width: 28px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.browse-main { min-width: 0; }
.browse-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.browse-title { display: flex; align-items: center; gap: 16px; }
.title-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.browse-chips { display: none; margin-bottom: 18px; }
.toolbar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 -8px 22px; padding: 10px 8px; background: rgba(245, 246, 248, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.filter-box { flex: 1 1 280px; position: relative; display: flex; align-items: center; color: var(--muted); }
.filter-box svg { position: absolute; left: 14px; pointer-events: none; }
.filter-box input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.filter-box input:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(6, 22, 44, .06); }
.sort-box { position: relative; display: flex; align-items: center; color: var(--muted); }
.sort-box svg { position: absolute; left: 12px; pointer-events: none; }
.sort-box select { height: 44px; padding: 0 14px 0 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.toolbar-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.browse .grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.course-card[hidden] { display: none; }

@media (max-width: 1100px) {
  .cat-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .browse { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .browse-side { display: none; }
  .browse-chips { display: flex; }
  .toolbar { position: static; margin: 0 0 18px; padding: 0; background: none; }
}
@media (max-width: 760px) {
  .cat-menu { display: none; }
  .nav-cats-link { display: inline-block; }
  .browse-title .title-icon { width: 46px; height: 46px; border-radius: 13px; }
}

/* ---------- Jornada (progresso, meta, sequência) ---------- */
.ring { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.ring svg { position: absolute; inset: 0; }
.ring-track { stroke: var(--surface-3); }
.ring-fill { stroke: var(--accent); transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1); }
.ring-green .ring-fill { stroke: var(--green); }
.ring-label { position: relative; font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.goal-card, .stat-card { display: flex; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
a.stat-card:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow); }
.goal-card { position: relative; align-items: center; }
.goal-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.goal-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.goal-hint { font-size: 14px; color: var(--muted); line-height: 1.45; }
.goal-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.goal-options button { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; }
.goal-options button small { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.goal-options button:hover { border-color: var(--navy); }
.goal-options button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.goal-edit { position: absolute; top: 14px; right: 16px; }
.goal-edit > summary { list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.goal-edit > summary::-webkit-details-marker { display: none; }
.goal-edit > summary:hover { color: var(--text); text-decoration: underline; }
.goal-edit[open] .goal-options { position: absolute; right: 0; top: 26px; z-index: 5; margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); flex-wrap: nowrap; }
.week-dots { display: flex; gap: 6px; margin-top: 8px; }
.wd { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); color: var(--muted-2); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wd.is-on { background: var(--accent); color: #fff; }
.wd.is-today { box-shadow: 0 0 0 2px var(--navy); }

.stat-card { flex-direction: column; gap: 4px; }
.stat-card strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat-card > span, .stat-card small { font-size: 14px; color: var(--muted); line-height: 1.45; }
.sc-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted-2); margin-bottom: 6px; }
.streak-card.is-on .sc-icon { background: #fff1e6; color: #e8590c; }
.totals-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 16px 28px; }
.totals-card div { display: flex; flex-direction: column; align-items: flex-start; }
.totals-card span { font-size: 13px; color: var(--muted); }
.near-card { flex-direction: row; align-items: center; gap: 16px; }
.near-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.near-text strong { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.near-text > span:last-child { font-size: 14px; color: var(--muted); }

.home-journey { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr); gap: 16px; }

/* Página Minha jornada */
.j-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
.j-section { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.j-section > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.j-section > header small { color: var(--muted); font-size: 14px; }
.jc-list { display: flex; flex-direction: column; gap: 10px; }
.jc { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 12px 18px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.jc.is-near { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.jc-media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.jc-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.jc-title { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jc-title:hover { color: var(--text); text-decoration: underline; }
.jc-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.jc-bar span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.jc.is-near .jc-bar span { background: linear-gradient(90deg, var(--accent), #5b8cff); }
.jc-meta { margin: 0; font-size: 14px; color: var(--muted); }
.jc-meta strong { color: var(--text); }

.heat-wrap { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.heatmap { display: flex; gap: 4px; }
.hm-col { display: flex; flex-direction: column; gap: 4px; }
.hm { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); }
.hm.l1 { background: #dbe5ff; }
.hm.l2 { background: #a9c0ff; }
.hm.l3 { background: #5b8cff; }
.hm.l4 { background: #1e54fb; }
.hm.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hm-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.hm-legend span:first-child { margin-right: 4px; }
.hm-legend span:last-child { margin-left: 4px; }

/* Progresso nos cards */
.done-badge { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.card-media .bar { height: 5px; background: rgba(255, 255, 255, .7); }
.card-meta.is-progress { color: var(--text-2); font-weight: 600; }
.card-meta.is-done { color: var(--green-ink); font-weight: 600; }

/* Página do curso */
.course-progress { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.course-progress div { display: flex; flex-direction: column; gap: 2px; }
.course-progress strong { font-size: 15px; }
.course-progress span { font-size: 13px; color: var(--muted); }
.course-progress.is-done { background: #edfaf2; border-color: #b9e8cc; }
.done-seal { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.m-bar { display: block; width: 160px; max-width: 100%; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.m-bar span { display: block; height: 100%; background: var(--accent); }
.m-done { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: #edfaf2; color: var(--green-ink); font-size: 12px; font-weight: 700; }
.next-course { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.next-course:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.nc-media { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.nc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.nc-body strong { font-size: 17px; line-height: 1.35; }
.nc-body > span:not(.btn), .nc-body small { font-size: 14px; color: var(--muted); }
.nc-body .btn { margin-top: 6px; }
.next-course.is-compact { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px; box-shadow: none; text-align: left; }
.next-course.is-compact strong { font-size: 15px; }

/* Aula: faixa de progresso, aviso e conclusão */
.lesson-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.lp-track { flex: 1; max-width: 320px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.lp-track span { display: block; height: 100%; border-radius: 3px; background: var(--green); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.lp-pct b { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; flex-direction: column; gap: 2px; min-width: min(380px, calc(100% - 32px)); max-width: calc(100% - 32px); padding: 14px 18px 14px 56px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 20px 50px rgba(6, 22, 44, .35); transition: opacity .3s ease, transform .3s ease; }
.toast::before { content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast strong { font-size: 15px; }
.toast span { font-size: 14px; color: rgba(255, 255, 255, .78); }
.celebrate { width: min(520px, calc(100% - 32px)); padding: 36px 28px 28px; border: 0; border-radius: 24px; background: var(--surface); color: var(--text); text-align: center; box-shadow: 0 40px 100px rgba(6, 22, 44, .45); }
.celebrate::backdrop { background: rgba(6, 22, 44, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.celebrate[open] { animation: pop .5s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.cel-burst { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--accent-soft); }
.celebrate h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.celebrate p { margin: 0 0 18px; color: var(--text-2); line-height: 1.55; }
.cel-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 18px; }
.cel-stats div { display: flex; flex-direction: column; }
.cel-stats strong { font-size: 22px; font-weight: 800; }
.cel-stats span { font-size: 13px; color: var(--muted); }
.cel-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cel-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---------- Menu lateral ---------- */
.menu-btn { margin-left: -8px; }
.drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--surface); color: var(--text); box-shadow: 20px 0 60px rgba(6, 22, 44, .25); display: none; flex-direction: column; overflow: hidden; }
.drawer[open] { display: flex; animation: slide-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.drawer::backdrop { background: rgba(6, 22, 44, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }
html.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 20px; }
.drawer-user { display: flex; align-items: center; gap: 12px; margin: 4px 12px 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--text); text-decoration: none; }
.drawer-user:hover { color: var(--text); background: var(--surface-3); }
.drawer-user > svg { margin-left: auto; color: var(--muted); }
.du-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.du-text strong { font-size: 15px; }
.du-text > span { display: flex; flex-wrap: wrap; gap: 6px; }
.du-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); }
.du-chip.is-on { color: #c2410c; }
.drawer-nav, .drawer-cats { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.drawer-nav a, .drawer-cats a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: 12px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600; }
.drawer-nav a:hover, .drawer-cats a:hover { background: var(--surface-2); color: var(--text); }
.drawer-nav a.is-on, .drawer-cats a.is-on { background: var(--accent-soft); color: var(--text); }
.drawer .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.drawer a.is-on .ic { background: var(--accent); color: #fff; }
.drawer-section { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ds-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 22px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.ds-head a { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--navy); }
.drawer-cats { overflow-y: auto; padding-bottom: 12px; overscroll-behavior: contain; }
.drawer-cats .nm { flex: 1; min-width: 0; line-height: 1.3; }
.drawer-cats .ct { flex: none; min-width: 28px; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot a, .drawer-foot button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.drawer-foot a:hover, .drawer-foot button:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 1100px) {
  .home-journey, .j-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-journey > :first-child, .j-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .site-header .menu-btn { order: 0; }
  .site-header .logo { order: 1; }
  .home-journey, .j-top { grid-template-columns: 1fr; }
  .goal-card { flex-direction: column; align-items: flex-start; }
  .goal-edit { top: 16px; }
  .jc { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .jc .btn { grid-column: 1 / -1; }
  .next-course { grid-template-columns: 1fr; }
  .next-course.is-compact { grid-template-columns: 96px minmax(0, 1fr); }
  .lesson-progress { flex-wrap: wrap; }
  .lp-track { flex-basis: 100%; max-width: none; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer[open], .celebrate[open] { animation: none; }
}

/* ---------- Trilhas ---------- */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 20px; }
.rail-tracks { grid-auto-columns: clamp(290px, 28vw, 360px); }
.track-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.track-card:hover { color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.tc-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 9; background: var(--navy); }
.tc-tile { display: block; overflow: hidden; background: var(--surface-3); }
.tc-tile .cover-blank { padding: 8px; }
.tc-tile .cover-blank::before, .tc-tile .cb-author { display: none; }
.tc-mosaic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 68, 0) 50%, rgba(10, 31, 68, .7) 100%); pointer-events: none; }
.tc-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.tc-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.tc-body .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.tc-body strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tc-sub { font-size: 14px; color: var(--text-2); }
.tc-meta { font-size: 13px; color: var(--muted); }
.tc-progress { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 13px; }
.tc-progress .jc-bar { flex: 1; }

.track-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; padding-top: 4px; }
.th-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.th-text .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.th-text .desc { margin: 0; max-width: 62ch; color: var(--text-2); line-height: 1.6; }
.th-progress { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.th-progress strong { font-size: 16px; }
.th-progress span { font-size: 14px; color: var(--muted); }
.th-progress .ring-label { font-size: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; }
.step-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step.is-done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-current .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.step-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: box-shadow .2s ease, border-color .2s ease; }
.step-card:hover { color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow); }
.step.is-current .step-card { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-media { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); }
.step-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step-body small { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.step-body strong { font-size: 16px; line-height: 1.35; }
.step-meta { font-size: 13px; color: var(--muted); }
.step-meta b { color: var(--text); }
.ok-text { color: var(--green-ink) !important; }

/* Página do curso: lista e trilha */
.list-btn .lb-on { display: none; }
.list-btn.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.list-btn.is-on .lb-on { display: inline-flex; align-items: center; gap: 8px; }
.list-btn.is-on .lb-off { display: none; }
.list-btn span { display: inline-flex; align-items: center; gap: 8px; }
.in-track { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text-2); font-size: 14px; text-decoration: none; }
.in-track svg:first-child { color: var(--accent); flex: none; }
.in-track svg:last-child { margin-left: auto; color: var(--muted); flex: none; }
.in-track:hover { color: var(--text); }

/* ---------- Anotações ---------- */
.notes-panel { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.notes-panel > header { display: flex; align-items: center; justify-content: space-between; }
.notes-panel > header h2 { display: inline-flex; align-items: center; gap: 8px; }
.notes-panel > header a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.note-form textarea { width: 100%; min-height: 64px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.note-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.nf-time { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--surface-2); }
.note.is-new { animation: rise .4s ease both; }
.note-time { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; white-space: nowrap; }
.note-time:hover { color: #fff; background: var(--accent-2); }
span.note-time { background: var(--surface-3); color: var(--muted); cursor: default; }
.note-body small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.note-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.note-del { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted-2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.note-del:hover { background: var(--surface-3); color: var(--danger); }
.notes-groups { display: flex; flex-direction: column; gap: 20px; }
.notes-group { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ng-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; color: var(--text); text-decoration: none; }
.ng-head > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ng-head small { font-size: 13px; color: var(--muted); }
.ng-media { flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); }

@media (max-width: 960px) {
  .track-hero { grid-template-columns: 1fr; }
  .th-progress { flex-direction: row; text-align: left; }
}
@media (max-width: 760px) {
  .step-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .steps::before { left: 15px; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .step-dot { width: 32px; height: 32px; font-size: 13px; }
  .th-progress { flex-direction: column; text-align: center; }
  .rail-tracks { grid-auto-columns: 85%; }
}

/* ---------- Checkout transparente ---------- */
.checkout-body { background: var(--bg); }
.co-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.co-header-inner { max-width: 640px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
.co-header .logo img { height: 28px; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-ink); }
.co-timer { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; }
.co-timer-text { display: inline-flex; align-items: center; gap: 8px; }
.co-clock { min-width: 64px; padding: 3px 10px; border-radius: 8px; background: var(--accent); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; letter-spacing: .02em; }
.co-timer.is-urgent .co-clock { background: #e5383b; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.co-main { max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding-top: 20px; padding-bottom: 32px; }
.co-summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.co-summary-mark { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.co-summary-mark img { height: 26px; width: auto; }
.co-summary-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.co-summary-text strong { font-size: 16px; }
.co-summary-text small { font-size: 13px; color: var(--muted); }
.co-summary-price { flex: none; font-size: 20px; font-weight: 800; color: var(--navy); }
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-step { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.co-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.co-step h2 span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.co-form .field label small { font-weight: 500; color: var(--muted); }
.co-form .input { height: 46px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-method { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.co-method.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.co-method svg { color: var(--navy); }
.co-pane { display: flex; flex-direction: column; gap: 12px; }
.co-addr { margin: -4px 0 0; font-size: 14px; color: var(--text-2); }
.co-addr-manual { display: flex; flex-direction: column; gap: 12px; }
.co-help { margin-top: -4px; font-size: 13px; color: var(--muted); }
.co-pix-info { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #e9f8f6; color: #0f5e56; font-size: 14px; }
.co-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.co-brands img { height: 24px; width: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.co-bumps { display: flex; flex-direction: column; gap: 12px; }
.co-bump { display: block; border: 2px dashed #f0b429; border-radius: 14px; background: #fffdf3; cursor: pointer; overflow: hidden; transition: border-color .15s ease, background .15s ease; }
.co-bump.is-on { border-style: solid; border-color: var(--green); background: #f1fbf5; }
.co-bump-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #ffe9a8; font-weight: 800; font-size: 14px; color: #5b4a00; }
.co-bump.is-on .co-bump-head { background: #c9f0d8; color: #0d5e30; }
.co-bump-head input { position: absolute; opacity: 0; pointer-events: none; }
.co-bump-check { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid currentColor; background: #fff; color: transparent; display: flex; align-items: center; justify-content: center; }
.co-bump.is-on .co-bump-check { background: var(--green); border-color: var(--green); color: #fff; }
.co-bump-head input:focus-visible + .co-bump-check { outline: 2px solid var(--navy); outline-offset: 2px; }
.co-bump-body { display: flex; gap: 12px; padding: 12px 14px 14px; }
.co-bump-body img { flex: none; width: 120px; height: 80px; border-radius: 10px; object-fit: cover; background: #eef2f8; }
@media (max-width: 420px) { .co-bump-body img { width: 96px; height: 64px; } }
.co-bump-body > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-bump-body strong { font-size: 15px; line-height: 1.3; }
.co-bump-body small { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.co-bump-price { font-size: 14px; }
.co-bump-price s { color: var(--muted); }
.co-bump-price b { color: var(--green-ink); font-size: 16px; }
.co-total { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.co-total [data-co-lines] > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; color: var(--text-2); }
.co-total-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.co-total-line strong { font-size: 24px; font-weight: 800; color: var(--navy); }
.co-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fdf0f0; color: #8a2222; font-size: 14px; }
.co-submit { min-height: 58px; font-size: 18px; background: var(--green); border-color: var(--green); }
.co-submit:hover { background: #12a44e; }
.co-submit.is-busy { opacity: .8; cursor: progress; }
.co-note { display: flex; gap: 6px; align-items: flex-start; justify-content: center; margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.co-note svg { flex: none; margin-top: 2px; color: var(--green-ink); }
.co-pix, .co-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.co-pix h2, .co-done h2 { margin: 0; font-size: 22px; font-weight: 800; }
.co-pix p, .co-done p { margin: 0; color: var(--text-2); line-height: 1.55; }
.co-qr { padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.co-qr img, .co-qr canvas { display: block; }
.co-copy { display: flex; gap: 8px; width: 100%; }
.co-copy .input { flex: 1; font-size: 13px; }
.co-wait { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px #edfaf2; }
.co-footer { max-width: 640px; display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 32px; font-size: 12px; color: var(--muted); }
.co-footer a { color: var(--muted); }
@media (max-width: 520px) {
  .co-timer { font-size: 13px; gap: 8px; }
  .co-step { padding: 14px; }
  .co-method { font-size: 14px; }
  .co-summary-price { font-size: 18px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .feature, .course-head { grid-template-columns: 1fr; }
  .course-head { margin-top: 0; }
  .lesson-area { grid-template-columns: 1fr; }
  .lesson-side { position: static; max-height: 520px; }
}
@media (max-width: 760px) {
  .site-header .inner { gap: 8px 12px; padding-bottom: 6px; }
  .header-tools { display: contents; }
  .account-menu { order: 2; margin-left: auto; }
  .search-form { order: 3; width: 100%; }
  .search-form .search-input { width: 100%; }
  .main-nav { order: 4; width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .actions .btn { flex: 1 1 auto; }
  .rail-btn { display: none; }
  .rail { grid-auto-columns: 72%; gap: 14px; }
  .home { gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card-title { font-size: 14px; }
  .lesson-row { padding: 12px 14px; gap: 12px; }
  .lesson-row .thumb { width: 88px; }
  .lesson-nav .btn { flex: 1 1 auto; }
  .lesson-nav .spacer { margin-left: 0; }
  .site-footer .copy { margin-left: 0; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Início: "Continue de onde parou" (primeira dobra) ---------- */
.resume-hero { position: relative; isolation: isolate; overflow: hidden; }
.rh-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 48px); }
.rh-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--surface-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 80px -24px rgba(15, 23, 42, .45), 0 12px 24px -12px rgba(15, 23, 42, .25); }
.rh-media .cover { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.rh-media:hover .cover { transform: scale(1.03); }
.rh-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(30, 84, 251, .92); color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 6px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18), 0 12px 30px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.rh-media:hover .rh-play { transform: scale(1.08); }
.rh-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255, 255, 255, .55); }
.rh-bar span { display: block; height: 100%; background: var(--accent); }
.rh-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rh-lesson { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.rh-lesson svg { flex: none; margin-top: 3px; color: var(--accent); }
.rh-lesson strong { color: var(--text); }
@media (max-width: 960px) {
  .rh-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .rh-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* ---------- Upsells (início) ---------- */
.upsell-fold { padding: 44px 0 48px; background: radial-gradient(900px 380px at 15% 0%, #1e54fb33 0%, transparent 60%), linear-gradient(135deg, #0a1f44 0%, #0d2a5c 100%); color: #fff; }
.uf-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; max-width: 640px; }
.uf-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #ffffff1f; color: #ffd28a; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.uf-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.uf-head p { margin: 0; color: #c9d6ee; }
.uf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.uf-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #ffffff12; border: 1px solid #ffffff22; transition: transform .25s ease, background .25s ease; }
.uf-card:hover { transform: translateY(-4px); background: #ffffff1a; }
.uf-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1f44; }
.uf-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.uf-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.uf-body h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.uf-body p { margin: 0; flex: 1; font-size: 14px; color: #c9d6ee; line-height: 1.5; }
.uf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.uf-price { display: flex; flex-direction: column; font-size: 22px; font-weight: 800; }
.uf-price small { font-size: 11px; font-weight: 600; color: #9fb3d6; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 960px) { .uf-grid { grid-template-columns: 1fr; } .uf-card { flex-direction: row; } .uf-media { flex: none; width: 42%; aspect-ratio: 16 / 9; align-self: center; } }
@media (max-width: 520px) { .uf-card { flex-direction: column; } .uf-media { width: auto; aspect-ratio: 16 / 9; } .uf-foot .btn { flex: 1; } }

/* ---------- Teste grátis ---------- */
.trial-bar { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; background: #0a1f44; color: #fff; font-size: 14px; }
.trial-bar span { display: inline-flex; align-items: center; gap: 6px; }
.trial-bar strong { font-variant-numeric: tabular-nums; }
.trial-bar .btn { min-height: 34px; padding: 0 14px; font-size: 13px; background: var(--green); border-color: var(--green); }
.trial-bar.is-urgent { background: #b42318; }
.trial-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.co-trial-end { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff4e5; border: 1px solid #f5c37a; color: #7a4a00; }
.co-trial-end div { display: flex; flex-direction: column; font-size: 14px; }
.co-summary-img { background: #fff; overflow: hidden; }
.co-summary-img img { width: 100%; height: 100%; object-fit: cover; }

/* Faixa discreta da jornada (início) */
.journey-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -24px; }
.js-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.js-chip:hover { color: var(--text); border-color: var(--line-2); }
.js-chip svg { flex: none; color: var(--muted-2); }
.js-chip.is-hot svg { color: #e8590c; }
@media (max-width: 760px) { .journey-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: -16px; } .journey-strip::-webkit-scrollbar { display: none; } }

/* ---- Fluxo pós-compra: oferta única ---- */
.co-post { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #edfaf2; border: 1px solid #b5e8c9; color: #17683a; }
.co-post svg { flex: none; }
.co-post div { display: flex; flex-direction: column; font-size: 14px; }
.co-next { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.of-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.of-kicker { align-self: center; padding: 5px 12px; border-radius: 999px; background: #fff4e5; color: #7a4a00; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.of-card h1 { margin: 0; font-size: clamp(22px, 5vw, 28px); line-height: 1.2; color: var(--navy); }
.of-img { width: 100%; height: auto; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.of-desc { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.of-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 14px; }
.of-points li { display: flex; align-items: center; gap: 8px; }
.of-points svg { flex: none; color: var(--green); }
.of-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.of-price s { color: var(--muted); font-size: 15px; }
.of-price strong { font-size: 34px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.of-price small { color: var(--muted); font-size: 13px; }
.of-yes { background: var(--green); border-color: var(--green); color: #fff; }
.of-yes:hover { filter: brightness(1.05); color: #fff; }
.of-no { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Acessos extras (bônus, bumps e upsells comprados) ---- */
.extras-bar { background: linear-gradient(90deg, #0a1f44, #123a8a); color: #fff; }
.extras-inner { display: flex; align-items: center; gap: 8px; min-height: 44px; overflow-x: auto; scrollbar-width: none; }
.extras-inner::-webkit-scrollbar { display: none; }
.extras-label { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a9c4ff; margin-right: 4px; }
.extra-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); transition: background .15s; }
.extra-pill:hover, .extra-pill.is-on { background: #1e54fb; border-color: #1e54fb; color: #fff; }
.extra-pill.extra-bonus { background: rgba(255, 210, 28, .16); border-color: rgba(255, 210, 28, .5); }
.extra-pill.extra-bonus:hover, .extra-pill.extra-bonus.is-on { background: #ffd21c; border-color: #ffd21c; color: #0a1f44; }

/* ---- Minha conta ---- */
.account-page { max-width: 640px; }
.account-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.account-card h2 { margin: 8px 0 0; font-size: 18px; color: var(--navy); }
.account-card .help { color: var(--muted); font-size: 13px; margin: 0; }
.account-goals label { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 15px; cursor: pointer; }
.account-goals label input { position: absolute; opacity: 0; pointer-events: none; }
.account-goals label small { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.account-goals label.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.account-goals label.is-on small { color: #cdd8f0; }
.account-goals label:focus-within { outline: 2px solid var(--blue, #1e54fb); outline-offset: 2px; }
.account-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Teste grátis: aviso aos 15 min e tela de fim de teste ---- */
.trial-nudge { position: fixed; z-index: 90; right: 16px; bottom: 16px; width: min(360px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 16px; background: #0a1f44; color: #fff; box-shadow: 0 18px 50px rgba(6, 22, 44, .35); display: flex; flex-direction: column; gap: 8px; animation: tn-in .35s ease; }
.trial-nudge[hidden] { display: none; }
.trial-nudge strong { font-size: 16px; padding-right: 24px; }
.trial-nudge p { margin: 0; font-size: 14px; line-height: 1.5; color: #d6e2f5; }
.trial-nudge .btn { margin-top: 6px; background: #1e54fb; border-color: #1e54fb; color: #fff; justify-content: center; }
.tn-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #a9bfd6; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tn-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@keyframes tn-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.te-card { display: flex; flex-direction: column; gap: 16px; padding: 26px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.te-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff4e5; color: #7a4a00; font-size: 13px; font-weight: 800; }
.te-card h1 { margin: 0; font-size: clamp(24px, 5.5vw, 30px); line-height: 1.2; color: var(--navy); }
.te-lead { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2, #3b4a63); }
.te-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.te-points li { display: flex; align-items: flex-start; gap: 8px; }
.te-points svg { flex: none; color: var(--green); margin-top: 3px; }
.te-offer { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: #f3f7ff; border: 1px solid #d7e3fb; text-align: center; }
.te-timer { font-size: 14px; color: var(--muted); }
.te-timer strong { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.te-timer.is-urgent strong { color: #c62828; }
.te-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.te-price s { color: var(--muted); }
.te-price strong { font-size: 36px; font-weight: 900; color: var(--navy); letter-spacing: -.02em; }
.te-price small { color: var(--muted); font-size: 13px; }
.te-cta { background: var(--green); border-color: var(--green); color: #fff; }
.te-cta:hover { filter: brightness(1.05); color: #fff; }
.te-wa-note { color: #5b6b80; font-size: 13px; }
.te-wa-alt { margin-top: 10px; background: #fff; border: 1px solid #cdd6e3; color: #0a1f44; }
.te-wa-alt:hover { border-color: #0a1f44; color: #0a1f44; }
.te-help { align-self: center; font-size: 14px; color: var(--link, #1e54fb); }

/* ---- Oferta pós-compra v2: o pacote como complemento da biblioteca ---- */
.of-card { text-align: left; }
.of-card .of-kicker { align-self: flex-start; background: #eaf0ff; color: #1e54fb; }
.of-lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2, #3b4a63); }
.of-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: #f6f8fc; border: 1px solid var(--line); }
.of-box-title { font-size: 17px; color: var(--navy); }
.of-stats { font-size: 13px; font-weight: 700; color: #1e54fb; }
.of-points li { align-items: flex-start; line-height: 1.45; }
.of-points li svg { margin-top: 2px; }
.of-courses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.of-course { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.of-course .cover { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
.of-course .cover-blank { display: flex; align-items: flex-end; padding: 8px; font-size: 11px; }
.of-course figcaption { font-size: 12px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.of-price { padding-top: 4px; }
.of-guarantee { margin: -4px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.of-guarantee svg { color: var(--green); }
.of-no { align-self: center; text-align: center; }
