/*
 * A página de espera de noderflow.com (NFSiteInst V1.2, PLANO_01, a opção A): o nome e a frase, no branco com o vidro
 * nos cantos. As cores e a fonte são as do kit da marca, na versão 2 (marca/README.md, na raiz do repositório).
 *
 * Todo endereço local leva ?v= com os 8 primeiros caracteres do SHA-256 do arquivo: o que não é HTML vai ao ar com o
 * cache de um ano, imutável. O `npm run conferir` diz o valor certo de cada um.
 */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-display: swap;
  font-weight: 1 1000;
  src: url('fontes/google-sans-flex-latin.woff2?v=4f2ce47a') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ciano: #1EA7F5;
  --violeta: #7C3AED;
  --gradiente: linear-gradient(45deg, #1EA7F5 0%, #2F6BE6 50%, #7C3AED 100%);
  --primaria: #344EDB;
  --borda-do-cartao: #CCD4F0;
  --texto: #171C24;
  --texto-secundario: #404756;
  --fonte: 'Google Sans Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #FFFFFF;
  color: var(--texto);
  font-family: var(--fonte);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p {
  margin: 0;
}

h1,
.frase,
.apoio {
  text-wrap: balance;
}

img {
  display: block;
}

/* O vidro: dois brilhos grandes e desfocados nos cantos, o ciano e o lavanda, que andam devagar */
.vidro {
  position: fixed;
  z-index: 0;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  animation: vagar 26s ease-in-out infinite alternate;
}

.vidro--ciano {
  top: -30vmax;
  left: -24vmax;
  background: radial-gradient(circle, rgba(30, 167, 245, 0.2) 0%, rgba(30, 167, 245, 0.07) 45%, transparent 70%);
}

.vidro--lavanda {
  right: -26vmax;
  bottom: -32vmax;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.17) 0%, rgba(124, 58, 237, 0.06) 45%, transparent 70%);
  animation-delay: -13s;
}

@keyframes vagar {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5vmax, 3vmax) scale(1.08); }
}

/* O palco: tudo no meio da janela */
.palco {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 32px;
  text-align: center;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(222, 224, 255, 0.7);
  color: var(--primaria);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.selo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradiente);
  box-shadow: 0 0 0 4px rgba(52, 78, 219, 0.12);
}

.nome {
  margin-top: 40px;
}

.nome img {
  width: min(460px, 76vw);
  height: auto;
}

.frase {
  max-width: 24em;
  margin-top: 30px;
  color: #3C4043;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.apoio {
  margin-top: 18px;
  color: var(--texto-secundario);
  font-size: 17px;
  line-height: 1.5;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Os botões: o principal, com a primária, e o de contorno */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 1.75rem;
  border-radius: 999px;
  background: var(--primaria);
  color: #FFFFFF;
  font: 500 16px/1 var(--fonte);
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.botao:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.botao:focus-visible {
  outline: 3px solid rgba(52, 78, 219, 0.45);
  outline-offset: 3px;
}

.botao--contorno {
  background: #FFFFFF;
  color: var(--primaria);
  box-shadow: inset 0 0 0 1px var(--borda-do-cartao);
}

.botao--contorno:hover {
  filter: none;
  box-shadow: inset 0 0 0 1px var(--primaria);
}

.email {
  margin-top: 16px;
  color: #6A7080;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.rodape {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: #7A8090;
  font-size: 13px;
  text-align: center;
}

/* A entrada da página: o conteúdo sobe devagar, uma vez */
@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.entra {
  animation: subir 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entra--2 { animation-delay: 0.12s; }
.entra--3 { animation-delay: 0.24s; }
.entra--4 { animation-delay: 0.36s; }
.entra--5 { animation-delay: 0.48s; }

/* O celular: os botões um embaixo do outro, na largura da coluna */
@media (max-width: 600px) {
  .palco {
    padding-top: 56px;
  }

  .nome {
    margin-top: 32px;
  }

  .frase {
    margin-top: 24px;
  }

  .apoio {
    max-width: 19em;
    font-size: 16px;
  }

  .acoes {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Com "reduzir movimento" ligado no sistema, nada se mexe */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
