/* Aula de Preenchimento de Têmpora — lp.facialacademy.com.br/lp-aula-tempora
   Computador: conteúdo com 1214px. Celular (até 800px): conteúdo com 360px. */

:root {
  --branco: #fff;
  --fundo-claro: #fafafa;
  --roxo-escuro: #492e65;
  --roxo-cartao: #644289;
  --roxo-titulo: #603f82;
  --texto: #2e2e2e;
  --texto-campo: #5e6c7b;
  --borda-campo: #a3bac6;
  --verde: #25d266;
  --verde-hover-form: #21b759;
  --verde-hover-cta: #27af5a;
  --texto-botao-form: #2f2f2f;
  --texto-botao-cta: #0f371e;
  --linha: #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(--texto);
  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%; }
picture { display: block; }

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

.conteudo { width: 1214px; max-width: calc(100% - 32px); margin: 0 auto; }

.so-celular { display: none; }

/* ---------- Topo: logo, título, texto e cadastro sobre a foto dos professores ---------- */

.topo {
  height: 815px;
  background: var(--branco) url("/assets/lp-aula-tempora/fundo-topo.jpg") 50% 50% / cover no-repeat;
  color: var(--branco);
}
.topo__conteudo { padding-top: 119px; }
.topo__logo { width: 300px; height: 73px; }
.topo__titulo {
  margin-top: 43px;
  font-size: 30px;
  line-height: 42px;
  font-weight: 600;
}
.topo__texto {
  max-width: 488px;
  margin-top: 11px;
  font-size: 18px;
  line-height: 1.6;
}

/* ---------- 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: 0 8px;
  border: 1px solid var(--borda-campo);
  border-radius: 100px;
  background: var(--branco);
  color: var(--texto-campo);
  font: 400 16px/16px var(--fonte);
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s ease-out;
}
.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: contorno vermelho 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;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  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/20.8px var(--fonte);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.formulario__botao:hover { background: var(--verde-hover-form); }
.formulario__botao[aria-disabled="true"] { cursor: progress; }

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

.motivo { height: 548px; background: var(--fundo-claro); }
.motivo__conteudo {
  display: grid;
  grid-template-columns: 595px 598px;
  grid-template-areas:
    "titulo imagem"
    "texto  imagem";
  grid-template-rows: auto 1fr;
  padding-top: 109px;
}
.motivo__titulo {
  grid-area: titulo;
  max-width: 418px;
  margin: 17px 0 0 1px;
  color: var(--roxo-titulo);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
}
.motivo__texto {
  grid-area: texto;
  max-width: 580px;
  margin: 17px 0 0 1px;
  font-size: 16px;
  line-height: 1.4;
}
.motivo__imagem { grid-area: imagem; }
.motivo__imagem img { width: 598px; height: 335px; }

/* ---------- É uma aula que ---------- */

.aula {
  height: 683px;
  background: var(--roxo-escuro);
  color: var(--branco);
  text-align: center;
}
.aula__conteudo { padding-top: 50px; }
.aula__titulo {
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
}
.aula__subtitulo {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.4;
}

.cartoes {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  column-gap: 21px;
  margin: 41px 0 0 1px;
  text-align: left;
}
.cartao {
  position: relative;
  height: 200px;
  padding: 66px 0 0 123px;
  border-radius: 20px;
  background: var(--roxo-cartao);
}
.cartao__icone {
  position: absolute;
  top: 69px;
  left: 35px;
  width: 61px;
  height: 61px;
  color: var(--branco);
}
.cartao__texto {
  width: 231px;
  font-size: 16px;
  line-height: 1.4;
}

.aula__fecho {
  width: 507px;
  max-width: 100%;
  margin: 40px auto 0;
  font-size: 20px;
  line-height: 1.4;
}

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

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

.professores {
  padding: 60px 0 79px;
  background: var(--roxo-escuro);
}
.professor {
  position: relative;
  display: grid;
  align-items: center;
  width: 959px;
  max-width: 100%;
  height: 413px;
  margin-left: 128px;
  border-radius: 20px;
  background: var(--branco);
}
.professor + .professor { margin-top: 120px; }
.professores .conteudo > .professor:first-child { margin-top: 75px; }

/* A foto sai por cima do cartão e encosta na borda de baixo */
.professor__foto {
  position: absolute;
  bottom: 0;
  width: 356px;
  height: 488px;
}
.professor__foto img { width: 100%; height: 100%; object-fit: fill; }
.professor--wagner .professor__foto { left: 65px; }
.professor--camila .professor__foto { left: 541px; }

.professor__info { width: 435px; }
.professor--wagner .professor__info { margin-left: 472px; }
.professor--camila .professor__info { margin-left: 65px; }

.professor__nome {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
}
.professor__bio {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}
.professor__bio--seguinte { margin-top: 24px; }

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

.rodape {
  padding: 50px 0 54px;
  background: #000;
  color: var(--branco);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.rodape__logo { width: 245px; height: 33px; margin: 0 auto; }
.rodape__titulo {
  margin-top: 23px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}
.rodape__aviso { width: 882px; max-width: 100%; margin: 11px auto 0; }
.rodape__equipe { width: 882px; max-width: 100%; margin: 21px auto 0; }

/* ---------- Aviso durante o envio do cadastro (como na página antiga) ---------- */

.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%; }
}

/* Os cartões da página original não ficam exatamente na mesma altura */
@media (min-width: 1281px) {
  .cartao--2 { top: -1px; }
  .cartao--3 { top: -4px; }
}

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

@media (min-width: 801px) and (max-width: 1280px) {
  .motivo__conteudo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .motivo__imagem img { width: 100%; height: auto; }
  .cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; margin-left: 0; }
  .cartao { padding-left: 100px; padding-right: 16px; }
  .cartao__icone { left: 24px; }
  .cartao__texto { width: auto; }
  .professor { margin-left: auto; margin-right: auto; }
  .professor--camila .professor__foto { left: auto; right: 62px; }
  .professor--wagner .professor__info { margin-left: auto; margin-right: 40px; }
  .professor__info { max-width: calc(100% - 470px); }
}

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

@media (max-width: 800px) {
  .conteudo { width: 360px; max-width: calc(100% - 30px); }
  .so-computador { display: none; }
  .so-celular { display: block; }

  .topo {
    height: 1100px;
    background-image: url("/assets/lp-aula-tempora/fundo-topo-celular.jpg");
    text-align: center;
  }
  .topo__conteudo { padding-top: 30px; }
  .topo__logo { width: 259px; height: 63px; margin: 0 auto; }
  .topo__titulo { margin-top: 20px; font-size: 28px; line-height: 1.4; }
  .topo__texto { max-width: none; margin-top: 10px; font-size: 17px; line-height: 1.7; }
  .formulario { width: 100%; margin-top: 27px; text-align: left; }

  .motivo { height: auto; padding-bottom: 41px; }
  .motivo__conteudo {
    display: block;
    padding-top: 40px;
  }
  .motivo__imagem img { width: 100%; height: auto; aspect-ratio: 360 / 199; }
  .motivo__titulo { margin: 40px 0 0; max-width: none; }
  .motivo__texto { margin: 40px 0 0; max-width: none; line-height: 1.5; }
  .motivo__conteudo { display: flex; flex-direction: column; }
  .motivo__imagem { order: -1; }

  .aula { height: auto; padding-bottom: 55px; }
  .aula__titulo { font-size: 24px; }
  .aula__subtitulo { margin-top: 41px; font-size: 18px; }

  .cartoes {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin: 33px 0 0;
  }
  .cartao { padding: 67px 16px 0 100px; }
  .cartao__icone { top: 70px; left: 29px; }
  /* o último cartão do celular tem o texto e o ícone um pouco mais acima, como na página original */
  .cartao--1 { padding-top: 65px; }
  .cartao--1 .cartao__icone { top: 68px; }

  .aula__fecho { width: auto; margin-top: 40px; font-size: 18px; }
  .botao-cta { width: 100%; margin-top: 40px; }

  .professores { padding: 40px 0 72px; }
  .professor {
    display: block;
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 340px 13px 46px;
  }
  .professores .conteudo > .professor:first-child { margin-top: 55px; }
  .professor + .professor { margin-top: 98px; }
  .professor__foto,
  .professor--wagner .professor__foto,
  .professor--camila .professor__foto {
    top: -55px;
    bottom: auto;
    left: 0;
    right: 0;
    width: 289px;
    height: 396px;
    margin: 0 auto;
  }
  .professor__info,
  .professor--wagner .professor__info,
  .professor--camila .professor__info { width: auto; max-width: none; margin: 0; }
  .professor__info::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 25px;
    background: var(--linha);
  }
  .professor--camila { padding: 347px 16px 48px; }
  .professor--camila .professor__foto { top: -48px; }
  .professor--camila .professor__info::before { margin-bottom: 30px; }
  .professor__nome { font-size: 22px; }
  .professor__bio { margin-top: 20px; font-size: 15px; }
  .professor__bio--seguinte { margin-top: 22.5px; }

  .rodape { padding-bottom: 47px; }
  .rodape__titulo { margin-top: 50px; }
  .rodape__aviso { margin-top: 21px; }
  .rodape__equipe { margin-top: 19px; }

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