/* Obrigado | Corporal Class Black — medidas, cores e espaçamentos copiados da página antiga (1440 e 390 px).
   A página antiga trocava de layout em 800 px. */

:root {
  --fundo-topo: #2c2c2c;
  --fundo-acesso: #262626;
  --vermelho: #ea5558;
  --verde: #6edd7b;
}

*,
*::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: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

/* como na página antiga: os espaços do texto contam na quebra de linha */
h1,
h2,
p,
.botao {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* cada faixa é posicionada para a seguinte ficar por cima do que sai da anterior durante as animações */
.topo,
.acesso,
.rodape {
  position: relative;
}

/* No computador o conteúdo da página antiga fica numa coluna de 960 px que começa 490 px à esquerda do meio
   (por isso tudo fica 10 px à esquerda do centro da tela). */
.coluna {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(960px, 100% - 20px);
  margin-left: max(10px, calc(50% - 490px));
  text-align: center;
}

/* ---------- 1. Topo ---------- */

.topo {
  padding: 156.2px 0 84.11px;
  background: var(--fundo-topo) url(fundo-topo.jpg) 50% 50% / cover no-repeat;
}

.topo__logo {
  width: 307.89px;
  height: auto;
  aspect-ratio: 1080 / 641;
}

.topo__titulo {
  width: 520px;
  max-width: 100%;
  margin-top: 40.24px;
  font-size: 42px;
  line-height: 46.2px;
  font-weight: 600;
  color: var(--vermelho);
}

.topo__texto {
  width: 685px;
  max-width: 100%;
  margin-top: 29.98px;
  font-size: 22px;
  line-height: 30.8px;
  font-weight: 400;
}

/* ---------- 2. Como acessar ---------- */

.acesso {
  padding: 85.45px 0 119.14px;
  background: var(--fundo-acesso);
}

.acesso__titulo {
  width: 667px;
  max-width: 100%;
  margin-left: -1px;
  font-size: 42px;
  line-height: 46.2px;
  font-weight: 600;
  color: var(--vermelho);
}

/* A caixa termina no meio do botão (a margem negativa do botão não sai da coluna flex). */
.acesso__caixa {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 817px;
  max-width: 100%;
  margin: 40.03px 0 0 -1px;
  padding: 40.21px 16px 0;
}

/* borda da caixa no computador: num ::before para aparecer com o "fade" de 2 s da página antiga */
.acesso__caixa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--verde);
  border-radius: 20px;
}

.acesso__texto {
  width: 601px;
  max-width: 100%;
  margin-left: 1px;
  font-size: 22px;
  line-height: 30.8px;
  font-weight: 400;
}

.acesso__texto b {
  font-weight: 700;
}

.botao {
  position: relative;
  left: 7.09px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 339px;
  max-width: 100%;
  min-height: 67.19px;
  margin: 57.61px 0 -33.6px;
  padding: 8px;
  border-radius: 100px;
  background: var(--verde);
  color: #000;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease-out, color .25s ease-out;
}

.botao:hover,
.botao:active,
.botao:focus-visible {
  background: var(--vermelho);
  color: #000;
}

.botao:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- 3. Rodapé ---------- */

.rodape {
  padding: 83.72px 0 83.34px;
  background: #000;
  font-size: 14px;
  line-height: 23.8px;
}

.rodape__logo {
  width: 277px;
  height: 33px;
  margin-left: -1px;
}

.rodape__equipe {
  width: 730px;
  max-width: 100%;
  margin: 29.98px 0 0 -1px;
}

/* no original há uma linha em branco entre os dois parágrafos */
.rodape__equipe p + p {
  margin-top: 23.8px;
}

.rodape__aviso {
  width: 825px;
  max-width: 100%;
  margin: 29.99px 0 0 -1px;
}

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

@media (max-width: 800px) {
  .coluna {
    width: auto;
    margin: 0;
    padding: 0 15px;
  }

  .topo {
    padding: 159.8px 0 74.96px;
    background-image: url(fundo-topo-celular.jpg);
    background-position: 53.0071% 21.2121%;
  }

  .topo__logo {
    width: 257.3px;
  }

  .topo__titulo {
    width: 340px;
    margin-top: 11.24px;
    font-size: 35px;
    line-height: 38.5px;
  }

  .topo__texto {
    width: 299px;
    margin-top: 20.36px;
    font-size: 18px;
    line-height: 25.2px;
  }

  .acesso {
    padding: 85.72px 0 118.84px;
  }

  .acesso__titulo {
    width: 330px;
    margin-left: 0;
    font-size: 32px;
    line-height: 35.2px;
  }

  /* no celular a borda fica na própria caixa (o original não animava esta caixa no celular) */
  .acesso__caixa {
    width: 330px;
    margin: 30.49px 0 0;
    padding: 40.25px 13px 0;
    border: 1px solid var(--verde);
    border-radius: 15px;
  }

  .acesso__caixa::before {
    content: none;
  }

  .acesso__texto {
    width: 301.59px;
    margin-left: 0;
    font-size: 16px;
    line-height: 22.4px;
  }

  .botao {
    left: 0;
    width: 276px;
    margin: 39.97px 0 -34.6px;
    font-size: 16px;
    line-height: 20.8px;
  }

  .rodape {
    padding: 67.44px 0 67.23px;
  }

  .rodape__logo {
    margin-left: 0;
  }

  .rodape__equipe {
    width: 330px;
    margin: 36.21px 0 0;
  }

  .rodape__aviso {
    width: 330px;
    margin: 36.16px 0 0;
    font-size: 13px;
    line-height: 23.4px;
  }
}
