/* Aula de Cânula x Agulha em Preenchimento Labial — lp.facialacademy.com.br/preenchimento-canula-agulha
   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;
  --roxo-selo: #49296c;
  --rosa-selo: #ffb1bd;
  --texto: #2e2e2e;
  --texto-rodape: #a8a8a8;
  --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, h3, p, ul { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

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

/* ---------- Topo: logo, selo, título, texto e cadastro sobre a foto do notebook ---------- */

.topo {
  height: 822px;
  background: var(--branco) url("/assets/preenchimento-canula-agulha/fundo-topo.jpg") 50% 50% / cover no-repeat;
  color: var(--branco);
}
.topo__conteudo { padding-top: 67px; padding-left: 1px; }
.topo__logo { width: 300px; height: 73px; max-width: none; margin-left: -9px; }

.topo__selo {
  margin-top: 48px;
  font-size: 18px;
  line-height: 25.2px;
  font-weight: 600;
}
.topo__selo span {
  padding: 5px 15px;
  background: var(--rosa-selo);
  color: var(--roxo-selo);
  border-radius: 5px;
}
.topo__titulo {
  width: 358px;
  max-width: 100%;
  margin-top: 14.8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}
.topo__texto {
  width: 483px;
  max-width: 100%;
  margin-top: 20.2px;
  font-size: 18px;
  line-height: 1.6;
}

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

.formulario { width: 380px; max-width: 100%; margin-top: 48.6px; margin-left: 1px; }

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

/* ---------- Conteúdo técnico-científico: três cartões ---------- */

.diferenciais {
  padding: 80px 0 95px;
  background: var(--roxo-escuro);
  color: var(--branco);
  text-align: center;
}
.diferenciais__titulo {
  width: 907px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
}

.cartoes {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  column-gap: 21px;
  margin-top: 71.4px;
  text-align: left;
}
/* posição do ícone e do texto em cada cartão, medida na página original */
.cartao {
  position: relative;
  height: 200px;
  border-radius: 20px;
  background: var(--roxo-cartao);
}
.cartao__icone {
  position: absolute;
  top: var(--icone-y);
  left: var(--icone-x);
  width: var(--icone-l);
  height: var(--icone-a);
  overflow: hidden;
}
.cartao__icone img { width: 100%; height: auto; max-width: none; }
.cartao__texto {
  position: absolute;
  top: var(--texto-y);
  left: var(--texto-x);
  width: var(--texto-l);
  font-size: 16px;
  line-height: 1.4;
}
.cartao--1 { top: 3px; --icone-x: 49px; --icone-y: 68px; --icone-l: 52px; --icone-a: 66px; --texto-x: 125px; --texto-y: 67px; --texto-l: 214px; }
.cartao--2 { top: 2px; left: 1px; --icone-x: 39px; --icone-y: 68px; --icone-l: 52px; --icone-a: 66px; --texto-x: 115px; --texto-y: 78px; --texto-l: 231px; }
.cartao--3 { --icone-x: 60px; --icone-y: 69px; --icone-l: 66px; --icone-a: 66px; --texto-x: 147px; --texto-y: 69px; --texto-l: 185px; }

.diferenciais__fecho {
  width: 553px;
  max-width: 100%;
  margin: 102px 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: 45px 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); }

/* ---------- Por que você deve assistir ---------- */

.motivo { padding: 107px 0 106px; background: var(--fundo-claro); }
.motivo__conteudo {
  display: grid;
  grid-template-columns: 446px 744px;
  justify-content: space-between;
  padding-left: 2px;
  padding-right: 11px;
}
.motivo__textos { padding-top: 94px; }
.motivo__titulo {
  width: 228px;
  color: var(--roxo-titulo);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}
.motivo__texto {
  margin-top: 12.2px;
  font-size: 16px;
  line-height: 1.5;
}
.motivo__imagem { width: 744px; height: 435px; overflow: hidden; }
.motivo__imagem img { width: 100%; height: auto; }

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

.professores {
  padding: 84px 0 105px;
  background: var(--roxo-escuro);
}
.professores__titulo {
  color: var(--branco);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
}
.professor {
  position: relative;
  width: 959px;
  max-width: 100%;
  height: 413px;
  margin: 119px 0 0 128px;
  padding-top: 135px;
  border-radius: 20px;
  background: var(--branco);
}
.professor + .professor { margin-top: 120px; padding-top: 136px; }

/* A foto sai por cima do cartão e encosta na borda de baixo */
.professor__foto {
  position: absolute;
  bottom: 0;
  height: 488px;
  overflow: hidden;
}
.professor__foto img { width: 100%; height: auto; max-width: none; }
.professor--wagner .professor__foto { left: 62px; width: 356px; }
.professor--camila .professor__foto { left: 538px; width: 400px; }

.professor__info { width: 435px; }
.professor--wagner .professor__info { margin-left: 471px; }
.professor--camila .professor__info { margin-left: 65px; }
.professor--camila .professor__bio { width: 376px; max-width: 100%; }

.professor__nome {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
}
.professor__bio {
  margin-top: 13.4px;
  font-size: 16px;
  line-height: 1.5;
}
.professor--camila .professor__bio { margin-top: 12.4px; }

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

.rodape {
  padding: 50px 0 70px;
  background: #000;
  color: var(--texto-rodape);
  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: 11.6px auto 0; }
.rodape__equipe { width: 882px; max-width: 100%; margin: 19.6px 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%; }
}

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

@media (min-width: 801px) and (max-width: 1280px) {
  .cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .cartao--1, .cartao--2 { top: 0; left: 0; }
  .cartao { --icone-x: 24px; --texto-x: 106px; --texto-l: auto; }
  .cartao__texto { right: 16px; }
  .motivo__conteudo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 24px; padding-right: 0; }
  .motivo__imagem { width: 100%; height: auto; aspect-ratio: 744 / 435; }
  .professor { margin-left: auto; margin-right: auto; }
  .professor + .professor { margin-left: auto; }
  .professor--camila .professor__foto { left: auto; right: 21px; }
  .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); }

  .topo {
    height: 1108px;
    background-image: url("/assets/preenchimento-canula-agulha/fundo-topo-celular.jpg");
    text-align: center;
  }
  .topo__conteudo { width: 340px; padding-top: 30px; padding-left: 0; }
  .topo__logo { width: 259px; height: 63px; margin: 0 auto; }
  .topo__selo { margin-top: 27px; font-size: 16px; line-height: 22.4px; }
  .topo__titulo { width: auto; margin-top: 14.6px; font-size: 26px; line-height: 1.4; }
  .topo__texto { width: auto; margin-top: 19.2px; font-size: 17px; line-height: 1.7; }
  .formulario { width: 100%; margin: 53.4px 0 0; text-align: left; }

  .diferenciais { padding: 56px 0 70px; }
  .diferenciais__titulo { width: 340px; font-size: 22px; }
  .cartoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 51.8px;
  }
  .cartao { width: 340px; max-width: 100%; }
  .cartao--1, .cartao--2 { top: 0; left: 0; }
  .cartao--1 { --icone-x: 37px; --icone-y: 65px; --icone-l: 55px; --icone-a: 70px; --texto-x: 114px; --texto-y: 55px; --texto-l: 174px; }
  .cartao--2 { --icone-x: 39px; --icone-y: 67px; --icone-l: 51px; --icone-a: 65px; --texto-x: 114px; --texto-y: 67px; --texto-l: 201px; }
  .cartao--3 { --icone-x: 29px; --icone-y: 63px; --icone-l: 73px; --icone-a: 73px; --texto-x: 114px; --texto-y: 66px; --texto-l: 183px; }
  .cartao__texto { max-width: calc(100% - var(--texto-x) - 8px); }

  .diferenciais__fecho { width: 330px; margin-top: 51px; font-size: 18px; }
  .botao-cta { width: 340px; margin-top: 51px; }

  .motivo { padding: 50px 0 61px; }
  .motivo__conteudo { display: flex; flex-direction: column-reverse; padding: 0; }
  .motivo__imagem { width: 100%; height: auto; aspect-ratio: 360 / 199; }
  .motivo__textos { padding: 39px 0 0; }
  .motivo__titulo { width: 296px; max-width: 100%; margin: 0 auto; text-align: center; }
  .motivo__texto { width: 340px; max-width: 100%; margin: 30.2px auto 0; }

  .professores { padding: 57px 0 61px; }
  .professores__titulo { width: 265px; margin: 0 auto; line-height: 1.2; }
  .professor,
  .professor + .professor {
    width: 340px;
    height: auto;
    margin: 104.2px auto 0;
    padding: 340px 15px 0;
    left: 1px; /* a página original deixa os cartões 1px à direita do centro */
  }
  .professor--wagner { height: 558px; }
  .professor + .professor--camila { height: 590px; margin-top: 89px; padding-top: 347px; }
  .professor__foto,
  .professor--wagner .professor__foto,
  .professor--camila .professor__foto { bottom: auto; }
  .professor--wagner .professor__foto { top: -55px; left: 25px; width: 289px; height: 396px; }
  .professor--camila .professor__foto { top: -50px; left: 13px; width: 326px; height: 397px; }
  .professor__info,
  .professor--wagner .professor__info,
  .professor--camila .professor__info { width: auto; max-width: none; margin: 0; }
  /* linha fina acima do nome, só no celular */
  .professor__info::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--linha);
  }
  .professor__nome { margin: 25px 20px 0; font-size: 22.24px; line-height: 1.4; }
  .professor__bio { margin: 10.9px 20px 0; font-size: 14.83px; line-height: 1.5; }
  .professor--wagner .professor__bio { width: 269px; max-width: calc(100% - 40px); }
  .professor--camila .professor__nome { margin: 30px 21px 0; }
  .professor--camila .professor__bio { width: 252px; max-width: calc(100% - 42px); margin: 4px 21px 0; }

  .rodape { padding-bottom: 72.4px; }
  .rodape .conteudo { width: 360px; }
  .rodape__titulo { margin-top: 35px; }
  .rodape__aviso { width: 340px; margin-top: 14.6px; }
  .rodape__equipe { margin-top: 20.4px; }

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