/* ==========================================================================
   Site público — tema claro (paleta institucional CBESP)
   Azul-marinho + azul institucional + prata. Player fica preto (só o player).
   ========================================================================== */

body.site {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
}
::selection { background: var(--acc-tint); color: var(--tx); }

/* ---------- Header ---------- */
.site header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
/* A barra usa a largura toda da tela — só o conteúdo das seções fica preso
   ao container de 1240px. Em monitor largo, o cabeçalho centralizado deixava
   um vão enorme dos dois lados e a navegação parecia espremida no meio. */
.hrow {
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 2.6vw, 52px);
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--tx);
}
.logo em { color: var(--acc); font-style: normal; }

.site nav {
  display: flex;
  gap: 26px;
  font-size: var(--step-1);
  color: var(--mut);
}
.site nav a {
  padding: 4px 0;
  position: relative;
  transition: color var(--t-fast);
  font-weight: 500;
}
.site nav a:hover, .site nav a.on { color: var(--tx); }
.site nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px;
  height: 2px; background: var(--acc); border-radius: 2px;
}

.search {
  margin-left: auto;
  position: relative;
  flex: 0 1 320px;
}
.search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 10px 12px 10px 36px;
  color: var(--tx);
  outline: none;
  transition: all var(--t-fast);
  font-size: 14px;
}
.search input::placeholder { color: var(--mut); }
.search input:focus {
  border-color: var(--acc);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(56, 101, 173, 0.14);
}
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); opacity: 0.55; pointer-events: none; }

.pbtn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 8px 14px;
  font-size: var(--step-0);
  color: var(--tx);
  background: var(--surface);
  white-space: nowrap;
  transition: all var(--t-fast);
  font-weight: 600;
}
.pbtn:hover { color: var(--acc); border-color: var(--acc); }
.pbtn.primary {
  background: var(--acc);
  color: #071020;
  border-color: var(--acc);
  box-shadow: var(--shadow-md);
}
.pbtn.primary:hover {
  background: var(--acc-2);
  border-color: var(--acc-2);
  color: #071020;
}

.mobile-toggle { display: none; }

/* ---------- Layout principal ---------- */
.site main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 90px;
}
.section { margin-bottom: var(--pad-section); }
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-h h2 {
  font-family: var(--serif);
  font-size: var(--step-5);
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -0.01em;
}
.section-h .lead { color: var(--mut); font-size: var(--step-1); margin-top: 6px; }
.section-h a.more { font-size: var(--step-0); color: var(--acc); font-weight: 600; }
.section-h a.more:hover { color: var(--tx); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 88% 10%, rgba(56, 101, 173, 0.10), transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--acc-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 56px);
  margin-bottom: var(--pad-section);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 43, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 43, 87, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 88% 10%, black, transparent 55%);
  -webkit-mask-image: radial-gradient(ellipse at 88% 10%, black, transparent 55%);
  pointer-events: none;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--acc); margin-bottom: 22px;
  padding: 6px 12px; border: 1px solid rgba(56, 101, 173, 0.24); border-radius: 999px;
  background: var(--surface);
  position: relative; z-index: 1;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  max-width: 22ch;
  letter-spacing: -0.02em;
  color: var(--tx);
  position: relative; z-index: 1;
  text-wrap: balance;
}
.hero h1 em { color: var(--acc); font-style: normal; font-weight: 700; }
.hero p {
  color: var(--tx-soft);
  margin-top: 18px;
  max-width: 56ch;
  font-size: var(--step-3);
  position: relative; z-index: 1;
  line-height: 1.55;
}
/* ---------- Hero em carrossel ----------
   Cinco chamadas editoriais sobre fotografia. Altura mínima fixa para o
   layout não saltar quando o slide troca — o conteúdo varia, a caixa não.

   CONTRASTE — o problema central deste bloco.
   As cinco imagens vão de quase preta (multidão) a amarelo claro (o
   microfone do podcast). Texto escuro morre nas escuras, texto claro morre
   nas claras. A saída é não depender da foto: um véu navy em gradiente,
   denso do lado do texto e aberto do lado da imagem. Medido sobre a pior
   hipótese (foto branca por baixo):

     branco sobre o véu a 95% ...... 10,9:1   AAA
     branco sobre o véu a 62% ....... 7,9:1   AAA
     azul claro #9CC1F2 no destaque . 3,9:1   AA para texto grande

   Ao trocar imagem, opacidade ou cor do véu, refaça essa conta. */
.hero-carousel {
  /* Sem a faixa de números embaixo, a barra de indicadores é o último
     elemento — precisa de respiro para não encostar na borda. */
  padding-bottom: clamp(30px, 4vw, 44px);
  background: #172B57;            /* base sólida enquanto a foto carrega */
  border-color: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.hero-carousel::before { display: none; }  /* a grade some sob a fotografia */

.hbg { position: absolute; inset: 0; z-index: 0; }
.hbg i {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.hbg i[data-active] { opacity: 1; }

/* O véu. Horizontal para proteger o texto, vertical para dar profundidade. */
.hero-carousel::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(23, 43, 87, 0.95) 0%,
      rgba(23, 43, 87, 0.90) 34%,
      rgba(23, 43, 87, 0.62) 62%,
      rgba(23, 43, 87, 0.38) 100%),
    linear-gradient(180deg,
      rgba(12, 20, 40, 0.30) 0%,
      transparent 38%,
      rgba(12, 20, 40, 0.40) 100%);
}

/* Todo o conteúdo acima do véu */
.hero-carousel .hslides,
.hero-carousel .hero-bar,
.hero-carousel .hstats { position: relative; z-index: 2; }

/* Tipografia invertida */
.hero-carousel .hslide h1 { color: #fff; }
.hero-carousel .hslide h1 em { color: #9CC1F2; }
.hero-carousel .hslide p { color: rgba(255, 255, 255, 0.87); }
.hero-carousel .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(2px);
}
.hero-carousel .selo {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.26);
}
.hero-carousel .hero-cta .sub { color: rgba(255, 255, 255, 0.76); }

/* Botão claro: sobre foto, o azul institucional some; o branco não. */
/* Botão sobre fotografia: vidro escuro com letra branca contida, que acende
   no hover. Cheio de branco ele brigava com a imagem e, quando a paleta
   inverteu, virou branco sobre branco. */
.hero-carousel .pbtn.primary,
.hero-carousel .pbtn.ghost {
  background: rgba(7, 13, 26, 0.52);
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: none;
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.hero-carousel .pbtn.primary:hover,
.hero-carousel .pbtn.ghost:hover,
.hero-carousel .pbtn.primary:focus-visible {
  background: rgba(7, 13, 26, 0.66);
  border-color: rgba(255, 255, 255, 0.92);
  color: #fff;                                    /* branco neon */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28),
              0 0 22px rgba(255, 255, 255, 0.30);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
}
.hero-carousel .pbtn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hero-carousel .hero-bar,
.hero-carousel .hstats { border-top-color: rgba(255, 255, 255, 0.20); }
.hero-carousel .hstat b { color: #fff; }
.hero-carousel .hstat span { color: rgba(255, 255, 255, 0.72); }

.hero-carousel .hdot::before { background: rgba(255, 255, 255, 0.30); }
.hero-carousel .hdot[aria-selected="true"]::before { background: rgba(255, 255, 255, 0.48); }
.hero-carousel .hdot:hover::before { background: rgba(255, 255, 255, 0.55); }
.hero-carousel .hdot .fill { background: #fff; }
.hero-carousel .hdot:focus-visible { outline-color: #fff; }
.hero-carousel .hplay {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  backdrop-filter: blur(2px);
}
.hero-carousel .hplay:hover { background: rgba(255, 255, 255, 0.26); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero-carousel .hplay:focus-visible { outline-color: #fff; }

.hslides {
  position: relative;
  min-height: 330px;
  z-index: 1;
}
.hslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
  pointer-events: none;
}
.hslide[data-active] {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hslide .selo {
  display: inline-block;
  margin-left: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface);
  vertical-align: middle;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-cta .sub {
  font-size: 12.5px;
  color: var(--mut);
}

/* Barra de tempo + play/pause */
.hero-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 43, 87, 0.10);
  position: relative; z-index: 1;
}
.hero-dots {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.hdot {
  flex: 1;
  min-width: 0;
  padding: 10px 0;      /* área de toque, sem engordar o traço */
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.hdot::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(23, 43, 87, 0.13);
}
.hdot .fill {
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: 3px;
  border-radius: 2px;
  background: var(--acc);
  width: 0;
  pointer-events: none;
}
/* O trilho do ativo é mais escuro por si só. Sem isto, com a apresentação
   pausada o preenchimento fica em 0 e nenhum indicador mostra onde estamos. */
.hdot[aria-selected="true"]::before { background: rgba(23, 43, 87, 0.30); }
.hdot[aria-selected="true"] .fill { animation: hfill var(--hero-dur, 7s) linear forwards; }
.hero-carousel[data-paused] .hdot[aria-selected="true"] .fill { animation-play-state: paused; }
.hdot:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.hdot:hover::before { background: rgba(23, 43, 87, 0.24); }

@keyframes hfill { from { width: 0 } to { width: 100% } }

.hplay {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--mut);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hplay:hover { color: var(--acc); border-color: var(--acc); }
.hplay:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Sem movimento automático para quem pediu menos movimento no sistema.
   O carrossel continua navegável pelos indicadores. */
@media (prefers-reduced-motion: reduce) {
  .hslide { transition: none; }
  .hdot .fill { animation: none !important; width: 0; }
  .hdot[aria-selected="true"] .fill { width: 100%; }
}

@media (max-width: 700px) {
  .hslides { min-height: 380px; }
  .hero-bar { gap: 12px; }
}

.hstats {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(23, 43, 87, 0.10);
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.hstat b {
  display: block;
  font-size: clamp(22px, 3.5vw, 30px);
  font-family: var(--serif);
  color: var(--acc);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hstat span {
  display: block;
  font-size: 10.5px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 8px;
  font-weight: 600;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--step-0);
  color: var(--tx-soft);
  transition: all var(--t-fast);
  white-space: nowrap;
  font-weight: 500;
}
.chip:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: var(--acc-tint);
}
.chip.on {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--surface);
  font-weight: 600;
}
.chip .x {
  font-size: 15px; line-height: 1; opacity: 0.7;
  padding: 0 0 0 2px; color: inherit;
}
.chip.on .x { opacity: 0.9; }

/* ---------- Grade da trilha ----------
   Lista, não grade de cards: são 20 cursos, e a maioria ainda não existe.
   Card sugere conteúdo pronto; linha sugere programa declarado. */
.grade-h {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 14px;
}
.grade { list-style: none; margin: 0 0 14px; padding: 0; }
.grade li { border-bottom: 1px solid var(--line-soft); }
.grade a, .grade .g-off {
  display: grid;
  grid-template-columns: 46px 1fr 118px 92px;
  gap: 14px;
  align-items: baseline;
  padding: 13px 6px;
  text-decoration: none;
  color: var(--tx);
}
.grade a:hover { background: var(--surface2); color: var(--acc); }
/* O curso que ainda não existe fica legível, mas sem convite ao clique. */
.grade .g-off { color: var(--dim); cursor: default; }
.grade .g-num { color: var(--mut); font-size: 12px; }
.grade .g-t { font-size: 14.5px; font-weight: 500; }
.grade .g-n, .grade .g-a { font-size: 12px; color: var(--mut); text-align: right; }
.grade li.tem .g-a { color: var(--acc); font-weight: 600; }
.grade-nota { font-size: 12.5px; color: var(--mut); line-height: 1.6; margin-bottom: 10px; }

/* Tarja da trilha: o número do percurso, não uma referência bíblica. */
.card.trilha .thumb .ref { font-size: 34px; letter-spacing: -0.02em; }
.card .thumb .ref small { font-size: 13px; font-weight: 500; opacity: 0.72; }

@media (max-width: 720px) {
  .grade a, .grade .g-off { grid-template-columns: 38px 1fr; row-gap: 4px; }
  .grade .g-n, .grade .g-a { grid-column: 2; text-align: left; }
}

/* ---------- Ementa do curso ----------
   Duas colunas: a quem serve e o que se sai sabendo. É o bloco que faz a
   página parecer curso e não resultado de busca. */
.ementa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 26px 28px;
  margin-bottom: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
}
.ementa h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 12px;
}
.ementa-col p {
  color: var(--tx-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.ementa-fatos { margin: 0; display: grid; gap: 9px; }
.ementa-fatos > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.ementa-fatos > div:last-child { border-bottom: none; padding-bottom: 0; }
.ementa-fatos dt { color: var(--mut); }
.ementa-fatos dd { margin: 0; color: var(--tx); font-weight: 600; text-align: right; }

.ementa-lista { list-style: none; margin: 0; padding: 0; }
.ementa-lista li {
  position: relative;
  padding: 0 0 11px 24px;
  color: var(--tx-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
/* Marca própria em vez de bullet: o que se aprende é conquista, não item. */
.ementa-lista li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 2px solid var(--acc);
}

@media (max-width: 720px) {
  .ementa { grid-template-columns: 1fr; gap: 24px; padding: 22px 20px; }
}

/* Objetivo no card: o que a aula entrega, antes de quem a ministra. */
.card .objetivo {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tx-soft);
  margin: 6px 0 8px;
}

/* ---------- Cards (aula) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  transition: all var(--t-fast);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.thumb {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 30%, rgba(56, 101, 173, 0.10), transparent 55%),
    linear-gradient(135deg, var(--tx) 0%, #0e1c3e 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.thumb::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0, transparent 22px,
      rgba(255, 255, 255, 0.02) 22px, rgba(255, 255, 255, 0.02) 44px);
}
.thumb::after {
  /* Aro sutil de destaque no canto */
  content: "";
  position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 101, 173, 0.16), transparent 65%);
  pointer-events: none;
}
.thumb .ref {
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.005em;
  position: relative; z-index: 1;
  font-weight: 700;
}
.thumb .dur {
  position: absolute;
  right: 9px; bottom: 9px;
  background: rgba(0, 0, 0, 0.72);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.thumb .bar {
  position: absolute; left: 0; bottom: 0;
  height: 3px; background: var(--acc-2);
  transition: width var(--t-med);
}
.card-body {
  padding: 15px 16px 17px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
  background: var(--surface);
}
.card-body h3 {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: var(--tx);
}
.card-body .meta {
  font-size: 12.5px;
  color: var(--mut);
}
.card-body .tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: auto; padding-top: 4px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--mut);
  text-transform: uppercase;
  font-weight: 600;
  background: var(--bg);
}
.tag.watched {
  color: var(--green-dark);
  border-color: transparent;
  background: var(--green-soft);
}

/* ---------- Colaboradores ---------- */
.colab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 26px 22px;
  text-align: center;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.pcard:hover {
  border-color: var(--acc);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.av {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(140deg, var(--acc), var(--tx));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--surface);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 -8px 20px rgba(0,0,0,0.15);
}
.pcard b {
  font-family: var(--serif);
  font-size: var(--step-3);
  display: block;
  font-weight: 700;
  color: var(--tx);
}
.pcard span {
  font-size: 12.5px;
  color: var(--mut);
  display: block;
  margin-top: 4px;
}

/* O objetivo abre a página da aula: quem estuda quer saber o que sai sabendo
   antes de decidir investir 40 minutos. */
.s-obj {
  margin: 10px 0 0;
  padding: 12px 16px;
  background: var(--acc-tint);
  border-left: 3px solid var(--acc);
  border-radius: 0 var(--r-1) var(--r-1) 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tx-soft);
}
.s-obj b { color: var(--tx); font-weight: 600; }

/* ---------- Aula (página) ---------- */
.two {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 40px;
  align-items: start;
}
.player {
  background: #000;
  border: 1px solid var(--tx);
  border-radius: var(--r-2);
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.player .bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(56, 101, 173, 0.28), transparent 55%),
    linear-gradient(135deg, #1a2d5a 0%, #0a0f22 100%);
}
.player .verse-watermark {
  position: absolute;
  right: 5%; bottom: 20%;
  font-family: var(--serif);
  font-size: 15vw;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: -0.03em;
  pointer-events: none;
  line-height: 1;
  font-weight: 700;
}
.play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform var(--t-fast);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { color: var(--acc); margin-left: 3px; }
.ctrl {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  z-index: 3;
  opacity: 0;
  transition: opacity var(--t-med);
}
.player:hover .ctrl, .player.playing .ctrl { opacity: 1; }
.track {
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height var(--t-fast);
}
.track:hover { height: 6px; }
.fill { height: 100%; background: var(--acc-2); border-radius: 2px; }
.thumb-scrub {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--surface);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--t-fast);
  box-shadow: 0 0 0 2px var(--acc);
}
.track:hover .thumb-scrub { opacity: 1; }
.ctools {
  display: flex; align-items: center; gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #cfd5dd;
  font-variant-numeric: tabular-nums;
}
.ctools button { color: inherit; }
.ctools button:hover { color: var(--surface); }
.ctools .spacer { margin-left: auto; }

.toast {
  position: absolute;
  left: 16px; bottom: 72px;
  background: rgba(23, 43, 87, 0.97);
  color: var(--surface);
  border: 1px solid var(--acc-2);
  border-radius: var(--r-1);
  padding: 12px 16px;
  z-index: 4;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: slide-in 200ms ease-out;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } }
.toast .continue-btn { color: #7fa7db; font-weight: 700; font-size: 13px; }
.toast .continue-btn:hover { color: var(--surface); }
.toast .restart-btn { color: rgba(255,255,255,0.6); font-weight: 400; }
.toast .restart-btn:hover { color: var(--surface); }

.s-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--tx);
}
.s-meta {
  color: var(--mut);
  font-size: 13.5px;
}
.s-meta a { color: var(--acc); font-weight: 500; }
.s-meta a:hover { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; }
.acts {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 22px 0 32px;
}
.act {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-1);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--tx);
  transition: all var(--t-fast);
  font-weight: 600;
}
.act:hover { border-color: var(--acc); color: var(--acc); }
.act.done {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green-dark);
}
.act.primary {
  background: var(--acc);
  color: var(--surface);
  border-color: var(--acc);
}
.act.primary:hover { background: var(--tx); border-color: var(--tx); color: var(--surface); }

/* ---------- Texto base ---------- */
.base {
  background: var(--acc-tint);
  border-left: 4px solid var(--acc);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  padding: 26px 30px;
  margin-bottom: 30px;
  position: relative;
}
.base::before {
  content: "";
  position: absolute;
  top: 14px; right: 18px;
  width: 40px; height: 40px;
  background:
    radial-gradient(circle, rgba(23,43,87,0.06), transparent 65%);
  border-radius: 50%;
}
.base .rf {
  font-size: 10.5px;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
}
.base p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--tx);
  text-wrap: pretty;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.base .attrib {
  font-size: 11.5px;
  color: var(--mut);
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
}
.body h4 {
  font-family: var(--serif);
  font-size: var(--step-4);
  margin: 32px 0 12px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: -0.01em;
}
.body p { color: var(--tx-soft); margin-bottom: 14px; }
.body ul { color: var(--tx-soft); margin: 0 0 14px 22px; }
.body ul li { margin-bottom: 6px; }
.body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--acc-tint);
  color: var(--tx);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Materiais */
.mat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.mfile {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  padding: 14px 15px;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.mfile:hover { border-color: var(--acc); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ext {
  width: 42px; height: 42px;
  border-radius: var(--r-1);
  background: var(--acc-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.mfile-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mfile b { font-size: 13.5px; font-weight: 600; color: var(--tx); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfile .sub { font-size: 11.5px; color: var(--mut); display: block; }

/* Comentários (bloqueado) */
.comments-locked {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-2);
  padding: 36px 24px;
  text-align: center;
  color: var(--mut);
  font-size: 13.5px;
}
.comments-locked .icon { color: var(--acc); margin: 0 auto 12px; opacity: 0.7; }
.comments-locked .lead { font-family: var(--serif); font-size: var(--step-3); color: var(--tx); margin-bottom: 6px; font-weight: 600; }

/* Aside (ficha) */
aside .box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
aside h5 {
  font-size: 11px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--mut);
  margin-bottom: 14px;
  font-weight: 700;
}
.kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.kv:last-child { border: none; padding-bottom: 0; }
.kv:first-child { padding-top: 0; }
.kv > span { color: var(--mut); flex-shrink: 0; max-width: 42%; }
.kv > b, .kv > a { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--tx); flex: 1; }
.kv a { color: var(--acc); }
.kv a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rel {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.rel:last-child { border: none; padding-bottom: 0; }
.rel:first-child { padding-top: 0; }
.rthumb {
  width: 76px; height: 44px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--tx), #0a0f22);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  color: var(--surface);
  font-family: var(--serif);
  font-weight: 700;
}
.rel-body { min-width: 0; }
.rel b { font-size: 13px; font-weight: 600; line-height: 1.35; display: block; text-wrap: pretty; color: var(--tx); }
.rel .sub { font-size: 11.5px; color: var(--mut); margin-top: 3px; }

/* ---------- Bíblia ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 9px;
}
.book {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-1);
  padding: 13px 15px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px;
  transition: all var(--t-fast);
  color: var(--tx);
  font-weight: 500;
}
.book:hover:not(.empty) {
  border-color: var(--acc);
  transform: translateY(-1px);
  background: var(--acc-tint);
  color: var(--acc);
}
.book.empty { opacity: 0.34; pointer-events: none; }
.book i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--acc);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: var(--acc-tint);
  padding: 2px 7px;
  border-radius: 4px;
}
.book.empty i { color: var(--mut); background: var(--bg); }

.caps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.cap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-1);
  padding: 14px 0;
  text-align: center;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: all var(--t-fast);
  color: var(--tx);
  font-weight: 500;
}
.cap:hover:not(.no) { border-color: var(--acc); background: var(--acc-tint); color: var(--acc); }
.cap.has { border-color: rgba(56, 101, 173, 0.3); color: var(--acc); font-weight: 700; background: var(--surface); }
.cap.no { opacity: 0.28; pointer-events: none; }

/* ---------- Cabeçalho de colaborador ---------- */
.colab-header {
  display: flex;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(ellipse at 90% 20%, rgba(56, 101, 173, 0.08), transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--acc-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 36px 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.colab-header .av { width: 96px; height: 96px; font-size: 32px; margin: 0; flex-shrink: 0; }
.colab-header h1 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.018em; color: var(--tx); }
.colab-header .vinculo { color: var(--acc); font-size: 13.5px; margin: 5px 0 12px; font-weight: 600; }
.colab-header p { color: var(--tx-soft); max-width: 62ch; line-height: 1.55; }
.colab-header .count { margin-left: auto; text-align: right; flex-shrink: 0; }

/* ---------- Estado vazio ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--mut);
}
.empty b {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-5);
  color: var(--tx);
  margin-bottom: 8px;
  font-weight: 700;
}
.empty p { margin-bottom: 22px; }

/* ---------- Skeleton ---------- */
.skel {
  background: linear-gradient(90deg, var(--bg) 0%, var(--acc-tint) 50%, var(--bg) 100%);
  background-size: 200% 100%;
  animation: shim 1.4s infinite ease-in-out;
  border-radius: var(--r-1);
}
@keyframes shim { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Footer ----------
   O footer de uma linha virou o bloco de quatro colunas de ui.css. A regra
   antiga ficava aqui com `text-align:center` e especificidade maior
   (.site footer > .foot), e centralizava as colunas inteiras. */
.site footer { color: var(--mut); font-size: 12.5px; }

/* ---------- Login placeholder ---------- */
.login-wrap {
  min-height: calc(100vh - 130px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(56, 101, 173, 0.10), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(23, 43, 87, 0.08), transparent 55%),
    var(--bg);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 44px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: var(--step-6); margin-bottom: 8px; font-weight: 700; color: var(--tx); }
.login-card p { color: var(--mut); font-size: 13.5px; margin-bottom: 28px; line-height: 1.55; }
.login-card .field { margin-bottom: 14px; }
.login-card label { display: block; font-size: 11px; color: var(--mut); margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.login-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-1); padding: 11px 13px; color: var(--tx); outline: none;
  transition: all var(--t-fast);
}
.login-card input:focus {
  border-color: var(--acc);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(56, 101, 173, 0.14);
}
.login-card .note {
  font-size: 12px; color: var(--mut); text-align: center;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 920px) {
  .two { grid-template-columns: 1fr; gap: 28px; }
  .site nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .search { flex-basis: 100%; order: 4; margin-left: 0; }
  .hrow { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 12px; }
  .colab-header { flex-direction: column; text-align: center; padding: 26px 22px; gap: 16px; }
  .colab-header .count { margin: 0; }
  .colab-header p { max-width: 100%; }
}
@media (max-width: 620px) {
  .site main { padding: 24px 16px 60px; }
  .hero { padding: 30px 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 14.5px; }
  .thumb .ref { font-size: 18px; }
  .books { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .caps { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
  .cap { padding: 11px 0; font-size: 12.5px; }
  .base { padding: 20px 22px; }
  .base p { font-size: 17px; }
  .s-title { font-size: 24px; }
  .section { margin-bottom: 32px; }
  .hstats { gap: 20px; }
  .toast { left: 8px; right: 8px; bottom: 68px; font-size: 12.5px; }
}

/* ---------- Menu mobile drawer ---------- */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(23, 43, 87, 0.55);
  backdrop-filter: blur(6px);
}
.mobile-menu.open { display: block; }
.mobile-menu .panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 82%; max-width: 320px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu .panel a {
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--tx);
}
.mobile-menu .panel a:hover { color: var(--acc); }

/* =====================================================================
   DEPOIMENTOS
   ===================================================================== */
.depo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.depo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 26px 24px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
/* Filete prata no topo — o adorno, não a moldura inteira */
.depo::before {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--prata-dim), transparent);
}
.depo:hover { border-color: var(--acc-dim); transform: translateY(-2px); }
.depo blockquote {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--tx-soft);
}
.depo blockquote::before {
  content: "\201C";
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 0.6;
  color: var(--acc);
  opacity: 0.55;
  margin-bottom: 10px;
}
.depo figcaption { display: flex; align-items: center; gap: 11px; }
.depo figcaption .av {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--acc-tint);
  border: 1px solid var(--acc-dim);
  color: var(--acc);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
}
.depo figcaption b { display: block; font-size: 13px; color: var(--tx); font-weight: 600; }
.depo figcaption span span { display: block; font-size: 11.5px; color: var(--mut); margin-top: 2px; }
.depo-nota { margin-top: 14px; font-size: 11.5px; color: var(--dim); }

/* =====================================================================
   CTA DE ASSINATURA
   ===================================================================== */
.cta-forte {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(78, 168, 255, 0.16), transparent 58%),
    linear-gradient(160deg, var(--surface2) 0%, var(--surface) 60%);
  padding: clamp(38px, 5vw, 62px) clamp(26px, 5vw, 58px);
}
/* Brilho difuso — o "neon" que dá vida ao bloco sem virar enfeite */
.cta-glow {
  position: absolute;
  width: 460px; height: 460px;
  right: -140px; top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 66%);
  filter: blur(38px);
  opacity: 0.55;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 62ch; }
.cta-inner .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; color: var(--acc);
  border: 1px solid var(--acc-dim);
  background: var(--acc-tint);
  border-radius: 999px; padding: 6px 13px; margin-bottom: 20px;
}
.cta-inner .eyebrow .pt {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}
.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--tx);
  margin: 0 0 14px;
  text-wrap: balance;
}
.cta-inner p { color: var(--mut); font-size: var(--step-3); line-height: 1.6; margin: 0; }
.cta-acoes { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pbtn.grande { padding: 12px 22px; font-size: 14px; }
.pbtn.ghost {
  background: transparent;
  border-color: var(--prata-dim);
  color: var(--tx-soft);
}
.pbtn.ghost:hover { border-color: var(--prata); color: var(--tx); background: rgba(195, 208, 228, 0.06); }
.cta-selos {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--mut);
}
