/* Aula de Preenchimento de Mento (isca) — lp.facialacademy.com.br/lp-aula-mento
   Computador: faixa de conteúdo com 1214px (topo, "por que" e cartões) e 960px (professores e rodapé).
   Celular (até 800px): conteúdo com 360px. */

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

  --icone-atualizado: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.6 19.5H21v2h-6v-6h2v2.73c1.83-1.47 3-3.71 3-6.23 0-4.07-3.06-7.44-7-7.93V2.05c5.05.5 9 4.76 9 9.95 0 2.99-1.32 5.67-3.4 7.5zM4 12c0-2.52 1.17-4.77 3-6.23V8.5h2v-6H3v2h2.4A9.966 9.966 0 0 0 2 12c0 5.19 3.95 9.45 9 9.95v-2.02c-3.94-.49-7-3.86-7-7.93zm12.24-3.89-5.66 5.66-2.83-2.83-1.41 1.41 4.24 4.24 7.07-7.07-1.41-1.41z'/%3E%3C/svg%3E");
  --icone-trofeu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94A5.01 5.01 0 0 0 11 15.9V19H7v2h10v-2h-4v-3.1a5.01 5.01 0 0 0 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm7 6c-1.65 0-3-1.35-3-3V5h6v6c0 1.65-1.35 3-3 3zm7-6c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E");
  --icone-megafone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 11v2h4v-2h-4zm-2 6.61c.96.71 2.21 1.65 3.2 2.39.4-.53.8-1.07 1.2-1.6-.99-.74-2.24-1.68-3.2-2.4-.4.54-.8 1.08-1.2 1.61zM20.4 5.6c-.4-.53-.8-1.07-1.2-1.6-.99.74-2.24 1.68-3.2 2.4.4.53.8 1.07 1.2 1.6.96-.72 2.21-1.65 3.2-2.4zM4 9c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2h1v4h2v-4h1l5 3V6L8 9H4zm5.03 1.71L11 9.53v4.94l-1.97-1.18-.48-.29H4v-2h4.55l.48-.29zM15.5 12c0-1.33-.58-2.53-1.5-3.35v6.69c.92-.81 1.5-2.01 1.5-3.34z'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--preto);
  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%; height: auto; }
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; }

/* ---------- Botões verdes ---------- */

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 8px;
  border: 0;
  border-radius: 100px;
  background: var(--verde);
  color: var(--texto-botao);
  font: 600 16px/1.3 var(--fonte);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease-out, color .25s ease-out;
}
.botao:focus-visible { outline: 2px solid var(--branco); outline-offset: 3px; }

/* ---------- Topo com o cadastro ---------- */

.heroi {
  min-height: 815px;
  padding: 119px 0 40px;
  background: #fff url("/assets/lp-aula-mento/fundo-topo-desktop.jpg") 50% 50% / cover no-repeat;
  color: var(--branco);
}
.heroi__logo { width: 300px; height: 73px; }
.heroi__titulo {
  max-width: 588px;
  margin-top: 21.6px;
  font: 600 30px/42px var(--fonte);
}
.heroi__texto {
  max-width: 488px;
  margin-top: 32.8px;
  font-size: 18px;
  line-height: 28.8px;
}

.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); -webkit-text-fill-color: rgba(94, 108, 123, .5); opacity: 1; }

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

/* 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: 8px;
  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 { width: 100%; margin-top: 23px; }
.formulario__botao:hover,
.formulario__botao:active { background: var(--verde-hover); color: var(--texto-botao); }
.formulario__botao[aria-disabled="true"] { pointer-events: none; }

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

.porque { padding: 108.5px 0 103.5px; background: var(--cinza-fundo); }
.porque__grade {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 598px);
  column-gap: 18px;
  align-items: start;
}
.porque__foto { grid-column: 2; grid-row: 1; }
.porque__foto img { width: 598px; height: 336px; object-fit: cover; }
.porque__textos { grid-column: 1; grid-row: 1; padding-top: 17.8px; }
.porque__titulo {
  max-width: 418px;
  color: var(--roxo-titulo);
  font: 600 32px/44.8px var(--fonte);
}
.porque__texto { margin-top: 16.8px; font-size: 16px; line-height: 24px; }

/* ---------- "Essa não é uma aula com conteúdo superficial" ---------- */

.diferenciais { padding: 50px 0 66px; background: var(--roxo-escuro); color: var(--branco); text-align: center; }
.diferenciais__titulo { font: 600 32px/44.8px var(--fonte); }
.diferenciais__subtitulo { margin-top: 20px; font-size: 20px; line-height: 28px; }

.cartoes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 390px));
  justify-content: center;
  column-gap: 21px;
  margin-top: 39.4px;
  text-align: left;
}
.cartao {
  display: flex;
  align-items: center;
  min-height: 200px;
  padding: 16px 20px 16px 35px;
  border-radius: 20px;
  background: var(--roxo-cartao);
  font-size: 16px;
  line-height: 22.4px;
}
.cartao::before {
  content: "";
  flex: 0 0 61px;
  height: 61px;
  margin-right: 27.5px;
  background: var(--branco);
  -webkit-mask: var(--icone) center / contain no-repeat;
  mask: var(--icone) center / contain no-repeat;
}
.cartao p { max-width: 231px; }
.cartao--atualizado { --icone: var(--icone-atualizado); }
.cartao--grandes-nomes { --icone: var(--icone-trofeu); }
.cartao--detalhes { --icone: var(--icone-megafone); }

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

.botao--centro {
  width: 430px;
  max-width: 100%;
  margin: 38px auto 0;
  color: var(--texto-cta);
}
.botao--centro:hover,
.botao--centro:active { background: var(--verde-cta-hover); color: var(--texto-botao); }

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

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

.professor {
  display: grid;
  grid-template-columns: 356px minmax(0, 435px);
  column-gap: 51.5px;
  align-items: center;
  width: min(959px, calc(100% - 48px));
  min-height: 413px;
  margin: 0 auto;
  padding: 0 24px 0 65px;
  border-radius: 20px;
  background: var(--branco);
  color: var(--texto);
}
.professor + .professor { margin-top: 120px; }
.professor__foto { align-self: end; margin-top: -75px; }
.professor__foto img { width: 356px; height: 488px; object-fit: cover; }
.professor__textos { padding: 24px 0; font-size: 16px; line-height: 24px; }
.professor__nome { margin-bottom: 12.8px; font: 600 24px/33.6px var(--fonte); }

.professor--camila { grid-template-columns: minmax(0, 435px) 356px; column-gap: 41px; }
.professor--camila .professor__foto { grid-column: 2; grid-row: 1; }
.professor--camila .professor__textos { grid-column: 1; grid-row: 1; }

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

.rodape { min-height: 450px; padding: 50px 0 40px; background: var(--preto); color: var(--branco); text-align: center; }
.rodape__conteudo { width: min(882px, calc(100% - 48px)); margin: 0 auto; }
.rodape__logo { width: 244.5px; height: 33px; margin: 0 auto; }
.rodape__titulo { margin-top: 23px; font-size: 16px; line-height: 22.4px; }
.rodape__aviso { margin-top: 11.2px; font-size: 14px; line-height: 1.4; }
.rodape__equipe { margin-top: 20px; font-size: 14px; line-height: 19.6px; }

/* ---------- Aviso por cima da página 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) {
  .porque__foto img { width: 100%; height: auto; aspect-ratio: 598 / 336; }
  .cartoes { column-gap: 16px; }
  .cartao { padding-left: 20px; }
  .cartao::before { margin-right: 16px; }
  .professor { grid-template-columns: minmax(0, 356px) minmax(0, 435px); column-gap: 32px; padding-left: 32px; }
  .professor--camila { grid-template-columns: minmax(0, 435px) minmax(0, 356px); }
  .professor__foto img { width: 100%; height: auto; aspect-ratio: 356 / 488; }
  .aviso-envio { font-size: 35px; }
}

/* ---------- Celular ---------- */

@media (max-width: 800px) {
  .largo { width: min(360px, calc(100% - 30px)); }

  .heroi {
    min-height: 1100px;
    padding-top: 30px;
    background-image: url("/assets/lp-aula-mento/fundo-topo-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-top: 10px; font-size: 17px; line-height: 1.7; }
  .formulario { width: 100%; margin-top: 27px; text-align: left; }

  .porque { padding: 40px 0 40px; }
  .porque__grade { grid-template-columns: minmax(0, 1fr); }
  .porque__foto,
  .porque__textos { grid-column: 1; grid-row: auto; }
  .porque__foto img { width: 100%; height: auto; aspect-ratio: 360 / 199; }
  .porque__textos { padding-top: 40px; }
  .porque__titulo { font-size: 32px; line-height: 1.4; }
  .porque__texto { margin-top: 40px; line-height: 1.5; }

  .diferenciais { padding-bottom: 55px; }
  .diferenciais__titulo { font-size: 24px; line-height: 33.6px; }
  .diferenciais__subtitulo { margin-top: 41.2px; font-size: 18px; line-height: 25.2px; }
  .cartoes { grid-template-columns: minmax(0, 1fr); row-gap: 20px; margin-top: 32.8px; }
  .cartao { padding-left: 29px; }
  .cartao::before { margin-right: 9.5px; }
  /* no celular a ordem dos textos muda (como na original); os ícones seguem a posição */
  .cartao--detalhes { order: 1; --icone: var(--icone-atualizado); }
  .cartao--grandes-nomes { order: 2; }
  .cartao--atualizado { order: 3; --icone: var(--icone-megafone); }
  .diferenciais__fecho { margin-top: 40px; font-size: 18px; line-height: 25.2px; }
  .botao--centro { width: 100%; margin-top: 40px; }

  .professores { padding: 95px 0 72px; }
  .professor,
  .professor--camila {
    display: flow-root;
    width: min(360px, calc(100% - 30px));
    min-height: 0;
    padding: 0 13px 49px;
  }
  .professor--camila { padding-bottom: 49px; }
  .professor + .professor { margin-top: 98.4px; }
  .professor__foto { display: block; margin: -55px 0 0; }
  .professor--camila .professor__foto { margin-top: -48.4px; }
  .professor__foto img { width: 289px; max-width: 100%; height: auto; aspect-ratio: 289 / 396; margin: 0 auto; }
  /* linha marrom fininha embaixo da foto, só no celular */
  .professor__foto::after {
    content: "";
    display: block;
    margin-top: -1px;
    border-top: 1px solid var(--linha-celular);
  }
  .professor--camila .professor__foto::after { margin: -1px 3px 0; }
  .professor__textos { padding: 25px 0 0; font-size: 14.8293px; line-height: 1.5; }
  .professor--camila .professor__textos { padding-top: 31px; }
  .professor__nome { margin-bottom: 20px; font-size: 22.2438px; line-height: 1.4; }

  .rodape { min-height: 595px; }
  .rodape__conteudo { width: min(360px, calc(100% - 30px)); }
  .rodape__titulo { margin-top: 50px; }
  .rodape__aviso { margin-top: 20px; }
  .rodape__equipe { margin-top: 20px; line-height: 1.4; }

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