/* Aula de Bioestimuladores — lp.facialacademy.com.br/lp-aula-bioestimuladores
   Computador: faixa larga de 1214px e cartões dos professores com 959px. Celular (até 800px): conteúdo com 360px. */

:root {
  --roxo-escuro: #492e65;
  --roxo-cartao: #644289;
  --roxo-titulo: #603f82;
  --cinza-fundo: #fafafa;
  --texto: #2e2e2e;
  --branco: #fff;
  --verde: #25d266;
  --verde-hover-form: #21b759;
  --verde-hover-botao: #27af5a;
  --texto-botao-form: #2f2f2f;
  --texto-botao-cta: #0f371e;
  --campo-texto: #5e6c7b;
  --campo-borda: #a3bac6;
  --linha-celular: #845b38;
  --fonte: "Poppins", Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: #000;
  color: var(--branco);
  font-family: var(--fonte);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, p, ul { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
b { font-weight: 700; }

.oculto {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.largo { width: min(1214px, calc(100% - 48px)); margin: 0 auto; }

.so-celular { display: none; }

/* ---------- Topo ---------- */

.heroi {
  min-height: 815px;
  padding: 119px 0 60px;
  background: #fff url("/assets/lp-aula-bioestimuladores/heroi-desktop.jpg") 50% 50% / cover no-repeat;
}

.heroi__logo { width: 300px; height: 73px; }

.heroi__titulo {
  max-width: 607px;
  margin-top: 42.6px;
  font-size: 30px;
  line-height: 42px;
  font-weight: 600;
}

.heroi__texto {
  max-width: 488px;
  margin-top: 11.8px;
  font-size: 18px;
  line-height: 28.8px;
}

/* ---------- Cadastro ---------- */

.formulario { width: 380px; max-width: 100%; margin-top: 40px; }

.campo { position: relative; }
.campo + .campo { margin-top: 24px; }

.campo input {
  display: block;
  width: 100%;
  height: 47px;
  margin: 0;
  padding: 12px 8px;
  border: 1px solid var(--campo-borda);
  border-radius: 100px;
  background: var(--branco);
  color: var(--campo-texto);
  font: 400 16px/16px var(--fonte);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.campo input::placeholder { color: rgba(94, 108, 123, .5); opacity: 1; }

/* O campo de telefone é envolvido pela biblioteca de telefone */
.campo .iti { display: block; width: 100%; }

/* Erro de preenchimento: borda vermelha e o ícone vermelho com a mensagem ao passar o mouse */
.campo--erro input { border-color: red; padding-right: 44px; }
.campo__erro {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 16px;
  width: 28px;
  height: 28px;
  margin: auto;
  font-size: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='%23e53923'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") center no-repeat;
  transition: opacity 100ms ease-out 75ms;
}
.campo--erro .campo__erro { opacity: 1; pointer-events: auto; }
.campo__erro::after {
  content: attr(data-mensagem);
  position: absolute;
  top: 50%;
  right: calc(100% - 2px);
  transform: translateY(-50%);
  width: max-content;
  max-width: 184px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #323232;
  color: #fff;
  font: 400 12px/12px Roboto, Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.campo__erro::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% - 12px);
  margin-top: -5px;
  border: 5px solid transparent;
  border-left-color: #323232;
  opacity: 0;
  visibility: hidden;
}
.campo__erro:hover::after,
.campo__erro:hover::before { opacity: .92; visibility: visible; }

.formulario__botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 23px;
  padding: 0 8px;
  border: 0;
  border-radius: 100px;
  background: var(--verde);
  color: var(--texto-botao-form);
  font: 600 16px/1.3 var(--fonte);
  cursor: pointer;
  transition: background-color .25s ease-out;
}
.formulario__botao:hover { background: var(--verde-hover-form); color: var(--texto-botao-form); }
.formulario__botao[aria-disabled="true"] { pointer-events: none; }

/* ---------- O que a aula mostra ---------- */

.diferenciais {
  padding: 50px 0 66px;
  background: var(--roxo-escuro);
  text-align: center;
}

.diferenciais__titulo {
  font-size: 32px;
  line-height: 44.8px;
  font-weight: 600;
}

.diferenciais__texto {
  margin-top: 20px;
  font-size: 20px;
  line-height: 28px;
}

.cartoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
  margin-top: 40px;
  text-align: left;
}

.cartao {
  display: flex;
  align-items: center;
  gap: 27px;
  height: 200px;
  padding: 0 16px 0 35px;
  border-radius: 20px;
  background: var(--roxo-cartao);
}

.cartao__icone { flex: none; width: 61px; height: 61px; color: var(--branco); }

.cartao__texto {
  width: 231px;
  font-size: 16px;
  line-height: 22.4px;
}

.diferenciais__fecho {
  max-width: 507px;
  margin: 40px auto 0;
  font-size: 20px;
  line-height: 28px;
}

.botao-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 430px;
  max-width: 100%;
  height: 54px;
  margin: 38px auto 0;
  border-radius: 100px;
  background: var(--verde);
  color: var(--texto-botao-cta);
  font: 600 16px/1.3 var(--fonte);
  text-decoration: none;
  transition: background-color .25s ease-out, color .25s ease-out;
}
.botao-cta:hover { background: var(--verde-hover-botao); color: var(--texto-botao-form); }

/* ---------- Por que assistir ---------- */

.motivo {
  min-height: 548px;
  padding: 108.5px 0 104px;
  background: var(--cinza-fundo);
}

.motivo__grade {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 598px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "titulo imagem"
    "texto  imagem";
  column-gap: 20px;
}

.motivo__imagem { grid-area: imagem; width: 598px; height: auto; }

.motivo__titulo {
  grid-area: titulo;
  max-width: 418px;
  margin-top: 17.8px;
  color: var(--roxo-titulo);
  font-size: 32px;
  line-height: 44.8px;
  font-weight: 600;
}

.motivo__texto {
  grid-area: texto;
  margin-top: 16.9px;
  color: var(--texto);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Professores ---------- */

.professores {
  padding: 135px 0 79px;
  background: var(--roxo-escuro);
}

.professor {
  display: flex;
  align-items: center;
  width: min(959px, calc(100% - 48px));
  height: 413px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--branco);
  color: var(--texto);
}
.professor + .professor { margin-top: 120px; }

/* A foto passa por cima da borda de cima do cartão, encostada embaixo */
.professor__foto { flex: none; align-self: flex-end; }
.professor__foto img { width: 356px; height: 488px; }

.professor__linha { display: none; }

.professor__texto { width: 435px; }

.professor__nome {
  font-size: 24px;
  line-height: 33.6px;
  font-weight: 600;
}
.professor__texto p { margin-top: 12.8px; font-size: 16px; line-height: 24px; }
.professor__texto p + p { margin-top: 24px; }

.professor--wagner { padding-left: 65px; gap: 51.5px; }
.professor--camila { padding-left: 65px; gap: 41px; }
.professor--camila .professor__foto { order: 2; }

/* ---------- Rodapé ---------- */

.rodape {
  min-height: 450px;
  padding: 50px 0 40px;
  background: #000;
  color: var(--branco);
  text-align: center;
}

.rodape__logo { width: 244.5px; height: 33px; margin: 0 auto; }

.rodape__titulo { margin-top: 23px; font-size: 16px; line-height: 22.4px; }

.rodape__aviso {
  max-width: 882px;
  margin: 11.2px auto 0;
  font-size: 14px;
  line-height: 1.4;
}

.rodape__equipe { margin-top: 20px; font-size: 14px; line-height: 19.6px; }
.rodape__equipe p + p { margin-top: 19.6px; }

/* ---------- Aviso depois de clicar em "ASSISTIR AULA" ---------- */

.aviso-envio {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .84);
  color: #fff;
  font: 700 50px/2 sans-serif;
  text-align: center;
}
.aviso-envio[hidden] { display: none; }
.aviso-envio__texto:empty { display: none; }
.aviso-envio__carregando {
  width: 60px;
  aspect-ratio: 2;
  --bolinha: no-repeat radial-gradient(circle closest-side, #f9f9f9 84%, #0000);
  background: var(--bolinha) 0% 50%, var(--bolinha) 50% 50%, var(--bolinha) 100% 50%;
  background-size: calc(100% / 3) 50%;
  animation: carregando 1s infinite linear;
}
.aviso-envio__carregando[hidden] { display: none; }
@keyframes carregando {
  20% { background-position: 0% 0%, 50% 50%, 100% 50%; }
  40% { background-position: 0% 100%, 50% 0%, 100% 50%; }
  60% { background-position: 0% 50%, 50% 100%, 100% 0%; }
  80% { background-position: 0% 50%, 50% 50%, 100% 100%; }
}

/* ---------- Telas entre 801px e 1260px: o mesmo desenho, sem passar da borda ---------- */

@media (min-width: 801px) and (max-width: 1260px) {
  /* a foto dos professores fica à direita; um véu roxo à esquerda mantém o texto legível sobre ela */
  .heroi {
    background-image: linear-gradient(90deg, rgba(73, 46, 101, .9) 0, rgba(73, 46, 101, .75) 40%, rgba(73, 46, 101, 0) 62%), url("/assets/lp-aula-bioestimuladores/heroi-desktop.jpg");
    background-position: 0 0, 100% 50%;
  }
  .heroi__titulo { max-width: 460px; }
  .heroi__texto { max-width: 420px; }
  .motivo { min-height: 0; padding: 80px 0; }
  .cartao { padding-left: 24px; gap: 18px; }
  .cartao__texto { width: auto; }
  .motivo__imagem { width: 100%; }
  .professor { height: auto; min-height: 413px; padding-right: 32px; }
  .professor--wagner { padding-left: 32px; gap: 32px; }
  .professor--camila { padding-left: 32px; gap: 32px; }
  .professor__foto img { width: 300px; height: auto; }
  .professor__texto { flex: 1; width: auto; padding: 32px 0; }
}

/* ---------- Celular (até 800px) ---------- */

@media (max-width: 800px) {
  .largo { width: min(360px, calc(100% - 20px)); }
  .so-celular { display: inline; }
  .so-computador { display: none; }

  .heroi {
    min-height: 1100px;
    padding: 30px 0 40px;
    background-image: url("/assets/lp-aula-bioestimuladores/heroi-mobile.jpg");
    text-align: center;
  }
  .heroi__logo { width: 259px; height: 63px; margin: 0 auto; }
  .heroi__titulo { margin-top: 20px; font-size: 28px; line-height: 1.4; }
  .heroi__texto { margin: 10px auto 0; font-size: 17px; line-height: 1.7; }
  .formulario { width: 100%; margin-top: 27px; text-align: left; }

  .diferenciais { padding: 50px 0 55px; }
  .diferenciais__titulo { font-size: 24px; line-height: 33.6px; }
  .diferenciais__texto { margin-top: 41px; font-size: 18px; line-height: 25.2px; }
  .cartoes { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 33px; }
  .cartao { padding-left: 29.25px; gap: 9.5px; }
  .diferenciais__fecho { margin-top: 40px; font-size: 18px; line-height: 25.2px; }
  .botao-cta { width: 100%; margin-top: 40px; }

  .motivo { min-height: 0; padding: 40px 0; }
  .motivo__grade {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "imagem" "titulo" "texto";
  }
  .motivo__imagem { width: 100%; }
  .motivo__titulo { max-width: none; margin-top: 40px; line-height: 1.4; }
  .motivo__texto { margin-top: 40px; line-height: 1.5; }

  .professores { padding: 95px 0 72px; }
  .professor {
    flex-direction: column;
    align-items: stretch;
    width: min(360px, calc(100% - 20px));
    height: auto;
    padding: 0 13.2px 48px;
  }
  .professor--wagner,
  .professor--camila { padding-left: 13.2px; gap: 0; }
  .professor + .professor { margin-top: 98.4px; }
  .professor__foto { align-self: center; }
  .professor__foto img { width: 289px; height: auto; }
  .professor--wagner .professor__foto { margin-top: -55px; }
  .professor--camila .professor__foto { order: 0; margin-top: -48.4px; }
  .professor__linha {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--linha-celular);
  }
  .professor--camila .professor__linha { width: calc(100% - 6px); margin: -1px auto 0; }
  .professor__texto { width: auto; padding: 0; }
  .professor__nome { margin-top: 25px; font-size: 22.24px; line-height: 1.4; }
  .professor--camila .professor__nome { margin-top: 30px; }
  .professor__texto p { margin-top: 20px; font-size: 14.83px; line-height: 1.5; }
  .professor__texto p + p { margin-top: 22.24px; }

  .rodape { min-height: 595px; padding-bottom: 40px; }
  .rodape__titulo { margin-top: 50px; }
  .rodape__aviso { margin-top: 20px; }

  .aviso-envio { font-size: 35px; }
}
