/* Obrigado da captura do curso de Marketing Criativo (lp.facialacademy.com.br/ty-marketing).
   Medidas, cores e espaçamentos copiados da página antiga
   (computador: conteúdo de 960px; celular: troca de layout em 800px, conteúdo de 360px). */

:root {
  --fundo-topo: rgb(30, 13, 13);
  --fundo-suporte: rgb(44, 44, 44);
  --fundo-app: rgb(25, 16, 34);
  --texto-escuro: rgb(36, 36, 36);
  --texto-cinza: rgb(96, 96, 96);
  --texto-claro: #b0b0b0;
  --rosa: rgb(241, 117, 158);
  --verde: rgb(37, 211, 102);
  --verde-claro: #2df076;
  --verde-escuro: #0f602d;
  --linha: rgb(163, 186, 198);
  --rodape: rgb(5, 5, 5);
  --rodape-texto: rgb(168, 168, 168);
  --creme: rgb(255, 252, 243);
}

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

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--rodape);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

h1,
h2,
p,
ol {
  margin: 0;
  padding: 0;
}

b {
  font-weight: 700;
}

.branco {
  color: #fff;
}

.creme {
  color: var(--creme);
}

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

.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 54px;
  border-radius: 100px;
  background: var(--verde);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s ease-out, color .25s ease-out;
}

.botao:hover,
.botao:active {
  background: var(--verde-claro);
  color: var(--verde-escuro);
}

.loja {
  display: block;
  width: 223px;
}

.loja img {
  width: 223px;
  height: 49px;
}

a:focus-visible {
  outline: 2px solid var(--rosa);
  outline-offset: 3px;
}

/* ---------- 1. Obrigado + os 2 passos ---------- */

.topo {
  position: relative;
  overflow: hidden;
  min-height: 992px;
  background: var(--fundo-topo) url("/assets/ty-marketing/fundo-topo.jpg") 51.2195% 22.9854% / cover no-repeat;
}

.topo__conteudo {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 299.31px 0 66.22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.topo__conteudo > * {
  position: relative;
}

.topo__conteudo > .topo__brilho {
  position: absolute;
  left: -270px;
  top: 34.19px;
  width: 1500px;
  pointer-events: none;
}

.topo__brilho img {
  width: 100%;
  height: auto;
}

.topo__logo {
  width: 183px;
  height: 44.62px;
}

.topo__marca {
  width: 290px;
  height: 36.98px;
}

.topo__titulo {
  width: 520px;
  max-width: 100%;
  margin-top: 28.29px;
  color: var(--texto-escuro);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.4;
}

.topo__texto,
.topo__faltam {
  width: 448px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.4;
}

.topo__texto {
  margin-top: 10.01px;
  color: var(--texto-cinza);
}

.topo__linha {
  width: 510px;
  max-width: 100%;
  height: 0;
  margin: 25px 0 0;
  border: 0;
  border-top: 1px solid var(--linha);
  opacity: .33;
}

.topo__faltam {
  margin-top: 29.5px;
  color: var(--texto-escuro);
}

/* Cada passo: a caixa branca translúcida fica no ::before (anima separada do conteúdo, como na página antiga) */
.passos {
  list-style: none;
  width: 805px;
  max-width: 100%;
  margin-top: 29.57px;
}

.passo {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 90px 317px auto;
  column-gap: 29px;
  align-items: start;
  height: 147px;
  padding: 28.5px 0 0 33.5px;
  text-align: left;
}

.passo + .passo {
  margin-top: 9.9px;
}

.passo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background: rgba(255, 255, 255, .5);
}

.passo__numero {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  padding-top: 7.6px;
  color: var(--rosa);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.passo__numero::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--rosa);
  border-radius: 10px;
}

.passo__numero > span {
  position: relative;
  display: block;
}

.passo__texto {
  margin-top: 7.59px;
  color: var(--texto-escuro);
  font-size: 16px;
  line-height: 1.2;
}

.cinza {
  color: var(--texto-cinza);
}

.passo__botao {
  margin: 18px 0 0 1px;
}

.passo__lojas {
  display: flex;
  flex-direction: column;
  gap: 14.86px;
  margin: -11.11px 0 0 24.93px;
}

/* na caixa clara, os selos brancos das lojas aparecem escurecidos (filtro invert 70% da página antiga) */
.passo__lojas img {
  filter: invert(.7);
}

/* ---------- 2. Suporte ---------- */

.suporte {
  min-height: 348px;
  padding: 71.84px 0 0;
  background: var(--fundo-suporte);
}

.suporte__caixa {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 805px;
  max-width: calc(100% - 32px);
  height: 177px;
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.suporte__caixa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.suporte__texto {
  width: 575px;
  max-width: 100%;
  color: var(--texto-claro);
  font-size: 16px;
  line-height: 1.2;
}

.suporte__botao {
  flex: none;
  margin-top: 33.25px;
}

/* ---------- 3. App Facial Academy ---------- */

.app {
  min-height: 522px;
  background: var(--fundo-app);
}

.app__conteudo {
  display: grid;
  grid-template-columns: 346.6px 1fr;
  column-gap: 61.2px;
  align-items: start;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 0 0 0 78.7px;
}

.app__foto {
  margin-top: 52.68px;
}

.app__foto img {
  width: 346.6px;
  height: auto;
}

.app__texto {
  padding-top: 83.53px;
}

.app__titulo {
  width: 248px;
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.app__descricao {
  width: 298px;
  max-width: 100%;
  margin-top: 40px;
  color: var(--texto-claro);
  font-size: 16px;
  line-height: 1.4;
}

.app__texto .loja {
  margin-top: 40.2px;
}

.app__texto .loja + .loja {
  margin-top: 14.87px;
}

/* ---------- 4. Rodapé ---------- */

.rodape {
  padding: 77.38px 16px 77.23px;
  background: var(--rodape);
  color: var(--rodape-texto);
  text-align: center;
  font-size: 14px;
  line-height: 19.6px;
}

.rodape__criado {
  max-width: 619px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 5px;
}

.rodape__logo {
  width: 244.5px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 244.5 / 33;
  margin: 5.04px auto 0;
}

.rodape__dados,
.rodape__legal,
.rodape__equipe {
  max-width: 882px;
  margin-left: auto;
  margin-right: auto;
}

.rodape__dados {
  margin-top: 25.03px;
}

.rodape__aviso {
  max-width: 400px;
  margin: 29.92px auto 0;
  font-size: 16px;
  line-height: 1.4;
}

.rodape__legal {
  margin-top: 9.94px;
}

.rodape__equipe {
  margin-top: 38.96px;
}

.rodape__linha {
  max-width: 882px;
  height: 0;
  margin: 19.6px auto 0;
  border: 0;
  border-top: 1px solid var(--linha);
  opacity: .3;
}

.rodape__termos {
  max-width: 619px;
  margin: 19.5px auto 0;
  font-size: 12px;
  line-height: 16.8px;
}

.rodape__termos a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Celular (a página antiga trocava de layout em 800px) ---------- */

@media (max-width: 800px) {
  .topo {
    min-height: 1431.5px;
    background-image: url("/assets/ty-marketing/fundo-topo-mobile.jpg");
    background-position: 50% 50%;
  }

  .topo__conteudo {
    width: min(360px, 100%);
    padding: 266.46px 0 60.98px;
  }

  .topo__conteudo > .topo__brilho {
    left: -29.92px;
    top: .44px;
    width: 420px;
  }

  .topo__titulo {
    width: 207.4px;
    margin-top: 30.01px;
    font-size: 30px;
    line-height: 42px;
  }

  .topo__texto {
    width: 291.3px;
    margin-top: 9.99px;
  }

  .topo__linha {
    width: 309.1px;
    margin-top: 16.02px;
  }

  .topo__faltam {
    width: 265px;
    margin-top: 24.97px;
  }

  .passos {
    width: 320px;
    margin-top: 20.36px;
  }

  .passo {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 0 0 19.97px;
    text-align: center;
  }

  .passo::before {
    top: 45.41px;
  }

  .passo + .passo {
    margin-top: 19.57px;
  }

  .passo--app {
    padding-bottom: 31.98px;
  }

  .passo--app::before {
    top: 44.86px;
  }

  .passo__texto {
    margin-top: 27.96px;
    width: 278.8px;
  }

  .passo--app .passo__texto {
    margin-top: 30.03px;
    width: 271.9px;
  }

  .passo__botao {
    margin: 27.98px 0 0;
  }

  .passo__lojas {
    gap: 28.03px;
    margin: 34.32px 0 0;
  }

  .suporte {
    min-height: 381.02px;
    padding-top: 64.5px;
  }

  .suporte__caixa {
    width: 320px;
    height: 224px;
  }

  .suporte__texto {
    width: 259px;
  }

  .suporte__botao {
    margin-top: 22.6px;
  }

  .app {
    min-height: 780.05px;
  }

  .app__conteudo {
    display: flex;
    flex-direction: column;
    width: min(360px, 100%);
    padding: 59.42px 0 62.95px;
    align-items: stretch;
  }

  .app__texto {
    order: -1;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .app__titulo,
  .app__descricao {
    margin-left: 41.25px;
  }

  .app__descricao {
    width: 276.5px;
    max-width: calc(100% - 41.25px);
    margin-top: 30px;
  }

  .app__texto .loja {
    margin: 32.35px auto 0;
  }

  .app__texto .loja + .loja {
    margin-top: 30px;
  }

  .app__foto {
    margin: 26.03px 0 0 58.19px;
  }

  .app__foto img {
    width: 232.8px;
  }

  .rodape {
    padding: 65.39px 20px 66.07px;
  }

  .rodape__criado {
    max-width: 150px;
  }

  .rodape__logo {
    margin-top: 9.99px;
  }

  .rodape__dados,
  .rodape__legal,
  .rodape__equipe,
  .rodape__linha,
  .rodape__termos {
    max-width: 320px;
  }

  .rodape__dados {
    margin-top: 30px;
  }

  .rodape__aviso {
    max-width: 165px;
    margin-top: 10.66px;
  }

  .rodape__legal {
    margin-top: 22.09px;
  }

  .rodape__equipe {
    margin-top: 39.66px;
  }

  .rodape__linha {
    margin-top: 34.98px;
  }

  .rodape__termos {
    margin-top: 35.21px;
  }
}
