/* ===================================================
   Crazy Tech — Assistência Técnica de Celulares
   =================================================== */

:root {
  --shadow-btn: 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-btn-active: 0 3px 8px rgba(0, 0, 0, 0.55);
  --max-width: 430px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #01233F;     
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;  
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  overflow: hidden;
}

/* A imagem de fundo define a altura real da página,
   preservando a proporção original (sem cortes/crop) */
.page__bg {
  display: block;
  width: 100%;
  height: auto;
}

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

.links {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

/* Página principal (4 botões) — precisam ser um pouco menores
   e mais compactos pra caber todos na área reservada da imagem */
.links--home {
  top: 49%;
  gap: 12px;
  padding: 0 16%;
}

/* Página de pagamento (1 botão só) — mantém o tamanho original */
.links--pagamento {
  top: 83%;
  gap: 16px;
  padding: 0 8%;
}

.cta-btn {
  display: block;
  width: 100%;
  aspect-ratio: 3685.96 / 823.9;
  filter: drop-shadow(var(--shadow-btn));
  transition: filter 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;

  /* reset — o mesmo estilo também é usado em <button> */
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.cta-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cta-btn:active {
  filter: brightness(1.15) drop-shadow(var(--shadow-btn-active));
  transform: translateY(1px) scale(0.98);
}

.cta-btn:focus-visible {
  outline: 2px solid #0BBAF3;
  outline-offset: 3px;
  border-radius: 999px;
}

/* ---------- Responsivo ---------- */

@media (min-width: 431px) {
  body {
    background: #050914;
  }
  .page {
    margin: 24px 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border-radius: 18px;
  }
  .page__bg {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn {
    transition: none;
  }
}

/* ---------- Toast (mensagem rápida de confirmação) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 16px);
  max-width: 86%;
  background: #0BBAF3;
  color: #040405;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
