/* Guia de primeiros passos: trilhas, etapas e animações. */
.passo-trilhas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.passo-trilha-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #23364e;
  border-radius: 14px;
  background: #0f2238;
  color: #eaf1fa;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.passo-trilha-link:hover {
  border-color: #4d7fb8;
  background: #14304f;
}

.passo-trilha-link strong {
  font-size: 15px;
  font-weight: 700;
}

.passo-trilha-link span {
  font-size: 12px;
  line-height: 1.6;
  color: #9fb6d1;
}

.passo-grupo {
  margin-top: 56px;
}

.passo-grupo:first-of-type {
  margin-top: 0;
}

.passo-grupo-cabecalho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d7e1ed;
}

.passo-grupo-cabecalho > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #d3deeb;
  border-radius: 8px;
  background: #eaf0f7;
  font: 700 12px ui-monospace, monospace;
  color: #46648c;
}

.passo-grupo-cabecalho h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #16283d;
}

.passo-grupo-cabecalho p {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #5c6f86;
}

.passo-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid #e5ebf3;
}

.passo-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.passo-numero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b7bb5;
}

.passo-item h4 {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #16283d;
}

.passo-item > div > p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #52657d;
}

.passo-lista {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #33465e;
}

.passo-lista li {
  display: flex;
  gap: 9px;
}

.passo-lista li::before {
  content: "✓";
  color: #1d7a4c;
  font-weight: 700;
}

.passo-caminho {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #f4f7fa;
  font: 500 12px ui-monospace, monospace;
  color: #46648c;
}

.passo-video {
  position: relative;
  margin: 0;
}

.passo-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d8e1ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 44px -26px #0f294880;
}

.passo-video figcaption {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: #6b7f96;
}

.passo-play {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 999px;
  background: #ffffffe8;
  color: #24405f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.passo-play:hover {
  background: #fff;
  border-color: #9bb6d6;
}

.passo-play:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .passo-trilhas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .passo-item {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .passo-trilhas {
    grid-template-columns: 1fr;
  }

  .passo-grupo-cabecalho h3 {
    font-size: 19px;
  }
}

/* Controles e ampliação das animações. */
.passo-ampliar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #d7e1ec;
  border-radius: 999px;
  background: #ffffffe8;
  color: #24405f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.88;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.passo-video:hover .passo-ampliar {
  opacity: 1;
}

.passo-ampliar:hover {
  background: #fff;
  border-color: #9bb6d6;
}

.passo-ampliar:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.passo-lightbox {
  /* O reset do Tailwind zera a margem de todos os elementos, o que tira a
     centralização padrão do dialog modal. Por isso ela é redeclarada aqui. */
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(96vw, 1400px);
  max-width: 96vw;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: visible;
}

.passo-lightbox::backdrop {
  background: #06101ed9;
}

.passo-lightbox-figura {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: #0b1b30;
  box-shadow: 0 40px 90px -40px #000c;
}

.passo-lightbox-figura video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: none;
  cursor: default;
}

.passo-lightbox-figura figcaption {
  margin-top: 12px;
  padding: 0 4px 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #a8bdd6;
}

.passo-lightbox-fechar {
  position: fixed;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #2a4260;
  border-radius: 999px;
  background: #0b1b30e6;
  color: #eaf1fa;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.passo-lightbox-fechar:hover {
  background: #14304f;
}

.passo-lightbox-fechar:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .passo-ampliar {
    top: 8px;
    right: 8px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .passo-lightbox-fechar {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  /* Em telas estreitas a gravação fica ilegível se couber na largura.
     Ela é ampliada e a figura passa a rolar na horizontal. */
  .passo-lightbox-figura {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .passo-lightbox-figura video {
    width: auto;
    max-width: none;
    height: 58vh;
    max-height: 58vh;
  }

  .passo-lightbox-figura figcaption {
    position: sticky;
    left: 0;
    max-width: 88vw;
  }
}
