/* ========== PROVA SOCIAL ==========
   Fatos do produto no topo, faixa de alunos e a seção de depoimentos.
   Os dados vêm de js/config.js e js/depoimentos.js (ver js/prova-social.js). */

[hidden] {
  display: none !important;
}

/* ---------- Fatos do produto (hero) ---------- */
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__facts svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__alunos {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- Faixa de alunos (hero) ---------- */
.students__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.students__avatar--iniciais {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Poucos alunos: sem animação, centralizado, quebrando linha se precisar */
.students--static {
  -webkit-mask-image: none;
  mask-image: none;
}

.students--static .students__track {
  width: 100%;
  animation: none;
}

.students--static .students__list {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* ---------- Seção de depoimentos ---------- */
.depoimentos {
  text-align: center;
  background: var(--section-cream);
  overflow: hidden; /* o carrossel do celular encosta na borda sem gerar scroll lateral */
}

.depoimentos__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.depoimentos .section__title {
  font-weight: 800;
}

/* Celular: carrossel deslizante com encaixe (scroll-snap) */
.depo__list {
  position: relative; /* base do offsetLeft dos cards, usado pelos pontinhos */
  display: flex;
  gap: 14px;
  margin: 0 -20px;
  padding: 6px 20px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  text-align: left;
}

.depo__list::-webkit-scrollbar {
  display: none;
}

.depo__card {
  position: relative;
  flex: 0 0 86%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 24px -18px rgba(15, 23, 42, 0.22);
  scroll-snap-align: center;
}

/* Aspas grandes decorativas */
.depo__quote {
  position: absolute;
  top: -6px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.depo__result {
  position: relative;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.depo__text {
  position: relative;
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.6;
}

.depo__caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.depo__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.depo__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}

.depo__avatar--iniciais {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
}

.depo__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.depo__who strong {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.depo__who span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Card de print: moldura limpa em volta da captura de tela */
.depo__shot {
  display: block;
  padding: 8px;
  background: var(--section-mist);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: zoom-in;
}

.depo__shot img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  object-position: top center;
  border-radius: 6px;
  background: var(--surface);
}

.depo__shot:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* Pontinhos do carrossel (só no celular) */
.depo__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.depo__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.2s ease, background 0.2s ease;
}

.depo__dot[aria-current="true"] {
  width: 22px;
  background: var(--blue);
}

/* Área de toque confortável sem aumentar o pontinho */
.depo__dot {
  position: relative;
}

.depo__dot::after {
  content: "";
  position: absolute;
  inset: -12px -6px;
}

/* Tablet: duas colunas */
@media (min-width: 720px) {
  .depo__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; /* card de texto não estica para a altura do print ao lado */
    gap: 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .depo__card {
    max-width: none;
  }

  .depo__dots {
    display: none;
  }
}

/* Desktop: três colunas */
@media (min-width: 1000px) {
  .depo__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .depo__card {
    padding: 26px 24px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .depo__dot {
    transition: none;
  }
}
