/* Runners Suzano — carrossel de depoimentos em vídeo (home e LP /assessoria)
   Mesmo padrão do carrossel da Aurum, nas cores da Runners. Usa os tokens de cada página. */

.carro { --w: clamp(240px, min(26vw, calc((100svh - 240px) * 9 / 16)), 320px); --passo: calc(var(--w) * .88); position: relative; z-index: 4; }

.carro__palco { position: relative; height: calc(var(--w) * 16 / 9 + 24px); perspective: 1400px; touch-action: pan-y; }
.carro__trilho { position: absolute; inset: 0; margin: 0; padding: 0; }

.carro__card {
  position: absolute; top: 12px; left: 50%; width: var(--w); aspect-ratio: 9 / 16; margin: 0 0 0 calc(var(--w) / -2);
  border-radius: 18px; overflow: hidden; background: #111; cursor: pointer;
  z-index: calc(3 - var(--a, 0));
  opacity: calc(1 - var(--a, 0) * .42);
  filter: blur(calc(var(--a, 0) * 1.5px));
  transform: translateX(calc(var(--x, 0) * var(--passo))) rotateY(calc(var(--d, 0) * 14deg)) scale(calc(1 - var(--a, 0) * .18));
  box-shadow: 0 18px 40px -22px rgb(18 18 18 / .45);
  transition: transform .55s var(--ease), opacity .4s ease, filter .4s ease, box-shadow .4s ease;
}
.carro__card.is-ativo { box-shadow: 0 34px 70px -28px rgb(18 18 18 / .6), 0 0 0 2px var(--cone); }
.carro__card:not(.is-ativo):hover { opacity: .85; filter: blur(0); }

.carro__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }

.carro__play {
  position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--cone); color: var(--cone-escuro);
  box-shadow: 0 12px 30px -8px rgb(255 106 0 / .75);
  transition: transform .25s var(--ease), background .25s, opacity .25s;
}
.carro__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.carro__play:hover { background: var(--cone-claro); transform: scale(1.07); }
.carro__card:not(.is-ativo) .carro__play { visibility: hidden; opacity: 0; }
.carro__card.is-tocando .carro__play { visibility: hidden; opacity: 0; }

/* Carregando (4G): o anel gira até o primeiro quadro chegar */
.carro__card.is-carregando::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; border: 3px solid rgb(255 255 255 / .3); border-top-color: var(--cone); animation: carro-gira .8s linear infinite;
}
@keyframes carro-gira { to { transform: rotate(360deg); } }

.carro__som {
  position: absolute; right: 12px; bottom: 16px; z-index: 2; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(18 18 18 / .66); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, color .2s;
}
.carro__som svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carro__som:hover { background: var(--cone); color: var(--cone-escuro); }
.carro__som .som-off { display: none; }
.carro__som[aria-pressed="true"] .som-on { display: none; }
.carro__som[aria-pressed="true"] .som-off { display: block; }
.carro__card:not(.is-ativo) .carro__som { visibility: hidden; }

.carro__barra { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(255 255 255 / .22); opacity: 0; transition: opacity .25s; }
.carro__barra i { display: block; width: 100%; height: 100%; background: var(--cone); transform: scaleX(var(--p, 0)); transform-origin: left; }
.carro__card.is-tocando .carro__barra { opacity: 1; }

/* Os vídeos terminam dizendo "clica aqui em saiba mais": o botão precisa existir */
.carro__mais {
  position: absolute; left: 12px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--cone); color: var(--cone-escuro); text-decoration: none;
  font-family: var(--f-placa); font-weight: 700; font-size: 1rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.carro__mais:hover { background: var(--cone-claro); }
.carro__card.is-fim.is-ativo .carro__mais { opacity: 1; visibility: visible; transform: none; }

.carro__seta {
  position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; padding: 0;
  display: grid; place-items: center; border: 1.5px solid rgb(18 18 18 / .16); border-radius: 50%; cursor: pointer;
  background: var(--asfalto); color: var(--tinta); transition: background .2s, color .2s, border-color .2s;
}
.carro__seta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carro__seta:hover { background: var(--cone); border-color: var(--cone); color: var(--cone-escuro); }
.carro__seta--ant { left: max(0px, calc(50% - var(--w) * 1.73 - 60px)); }
.carro__seta--prox { right: max(0px, calc(50% - var(--w) * 1.73 - 60px)); }

/* Legendas empilhadas: a altura não pula quando troca de aluno */
.carro__legendas { display: grid; max-width: 760px; margin: 36px auto 0; text-align: center; }
.carro__legenda { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease), visibility .35s; }
.carro__legenda.is-ativa { opacity: 1; visibility: visible; transform: none; }
.carro__legenda blockquote { margin: 0 0 12px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; color: var(--tinta); text-wrap: balance; }
.carro__legenda figcaption { font-size: 1rem; line-height: 1.4; color: var(--tinta-3); }
.carro__legenda strong { font-family: var(--f-placa); font-weight: 700; font-size: 1.1rem; color: var(--tinta); }

.carro__pontos { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.carro__ponto { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carro__ponto::before { content: ""; width: 8px; height: 8px; border-radius: 8px; background: rgb(18 18 18 / .22); transition: width .3s var(--ease), background .3s; }
.carro__ponto[aria-current="true"]::before { width: 24px; background: var(--cone); }

@media (max-width: 768px) {
  /* Celular: rolagem nativa com o dedo; o card do lado aparece espiando */
  .carro { --w: min(70vw, calc((100svh - 200px) * 9 / 16), 300px); margin-inline: calc(50% - 50vw); }
  .carro__palco { height: auto; perspective: none; touch-action: auto; }
  .carro__trilho {
    position: static; display: flex; gap: 14px; padding: 12px calc(50vw - var(--w) / 2) 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .carro__trilho::-webkit-scrollbar { display: none; }
  .carro__card {
    position: relative; top: auto; left: auto; flex: none; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
    opacity: 1; filter: none; z-index: auto;
    transform: scale(.93); transition: transform .3s var(--ease), box-shadow .3s ease;
  }
  .carro__card.is-ativo { transform: none; }
  .carro__seta { display: none; }
  .carro__legendas { margin-top: 18px; padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .carro__card, .carro__legenda, .carro__mais { transition: none; }
}
