/* As cores e a fonte do app (design system Brasa, apps/desktop/src/renderer/src/styles/globals.css). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonte/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --background: #111110;
  --foreground: #eeeeec;
  --muted-foreground: #a9a79f;
  --primary: #ff8a1f;
  --primary-edge: #c26918;
  --primary-foreground: #1c0c02;
  --primary-ink: #ffa757;
  --border: #2c2c29;
  --ring: #ff8a1f;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* A luz quente da logo, bem de leve, atrás dela. */
  background:
    radial-gradient(40rem 30rem at 50% 30%, rgb(255 138 31 / 0.08), transparent 70%),
    var(--background);
  color: var(--foreground);
  font-family: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: rgb(255 138 31 / 0.32);
  color: var(--foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

a {
  color: var(--primary-ink);
  text-decoration-color: rgb(255 167 87 / 0.45);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 150ms ease-out;
}

a:hover {
  text-decoration-color: currentColor;
}

/* No centro: a logo, o botão e a versão. */

.pagina {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

h1 {
  margin: 0;
}

.logo {
  display: block;
  width: min(20rem, 72vw);
  height: auto;
  animation: logo-aparece 900ms var(--ease-out) both;
}

/* Como num espelho que clareia: sai do embaçado para o nítido. */
@keyframes logo-aparece {
  from {
    opacity: 0;
    filter: blur(12px) brightness(1.3);
    transform: scale(0.96);
  }
}

.botao {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.0625rem;
  font-weight: 650;
  text-decoration: none;
  /* A borda de baixo dos botões do app: afunda ao clicar. */
  box-shadow: 0 4px 0 var(--primary-edge);
  transition:
    transform 80ms ease-out,
    box-shadow 80ms ease-out,
    filter 150ms ease-out;
}

.botao:hover {
  filter: brightness(1.07);
}

.botao:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--primary-edge);
}

.botao svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detalhes {
  margin: 1.125rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.aviso {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  color: var(--primary-ink);
  font-size: 0.9375rem;
}

/* Rodapé. */

.rodape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  width: min(100% - 3rem, 58rem);
  margin-inline: auto;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.rodape p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
