/* Base visual da Convenção SIMPAR — cores da marca (site simpar.com.br, campanha 70 anos). */

@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --marinho: #001445;
  --marinho-2: #04205a;
  --marinho-3: #0b2d72;
  --tinta: #16243e;
  --azul: #0091d9;
  --azul-2: #1fa6ea;
  --azul-claro: #e5f4fb;
  --jsl: #e2141c;
  --movida: #f07a12;
  --bbc: #fbce00;
  --vamos: #c8102e;
  --automob: #1d6fd6;
  --csinfra: #9aa6b4;
  --csbrasil: #2b8fd8;
  --texto-2: rgba(255, 255, 255, 0.74);
  --texto-3: rgba(255, 255, 255, 0.5);
  --linha: rgba(255, 255, 255, 0.12);
  --claro: #f4f7fb;
  --cinza: #5b6474;
  --raio: 16px;
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --fonte: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.5;
  background: var(--marinho);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--bbc);
  outline-offset: 3px;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--mola),
    background-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 10px 30px -12px rgba(0, 145, 217, 0.8);
}

.botao:hover {
  background: var(--azul-2);
  transform: translateY(-2px);
}

.botao:active {
  transform: translateY(0) scale(0.98);
}

.botao[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.botao .seta {
  transition: transform 0.35s var(--mola);
}

.botao:hover .seta {
  transform: translateX(4px);
}

.botao.fantasma {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32);
}

.botao.fantasma:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1.5px #fff;
}

.botao.pequeno {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}

.botao.largo {
  width: 100%;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--azul);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link[disabled] {
  color: var(--cinza);
  text-decoration: none;
  cursor: default;
}

/* Etiqueta e ponto "ao vivo" */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ponto-vivo {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #ff3b3b;
  animation: pulsar 1.6s infinite;
}

@keyframes pulsar {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 59, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
  }
}

/* Paralelogramo da marca SIMPAR (forma tirada do site oficial) */
.para {
  -webkit-mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
  mask: url('/img/paralelo.svg') center / 100% 100% no-repeat;
  aspect-ratio: 456 / 184;
}

/* Contagem regressiva */
.contagem {
  display: flex;
  gap: 10px;
}

.contagem div {
  min-width: 74px;
  padding: 12px 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--linha);
  text-align: center;
}

.contagem b {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.contagem span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.girando {
  width: 28px;
  height: 28px;
  margin: 24px auto;
  border-radius: 50%;
  border: 3px solid rgba(0, 145, 217, 0.25);
  border-top-color: var(--azul);
  animation: girar 0.8s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
