/* Base da marca Cabron: cores, fontes, botões e avisos. Usado pelo site e pelo painel. */
:root {
  --marinho: #0A1F5C;
  --azul: #0038A8;
  --azul-claro: #E7EEFC;
  --vermelho: #D52B1E;
  --vermelho-escuro: #B21F14;
  --verde-br: #009C3B;
  --amarelo-br: #FEDD00;
  --fundo: #F3F6FC;
  --branco: #FFFFFF;
  --texto: #0B1633;
  --texto-suave: #55607A;
  --linha: #DCE3F0;
  --sucesso: #13804A;
  --erro: #C42318;

  --f-titulo: 'Gabarito', system-ui, sans-serif;
  --f-texto: 'Figtree', system-ui, sans-serif;

  --raio: 18px;
  --raio-m: 12px;
  --raio-p: 8px;
  --sombra: 0 1px 2px rgba(10, 31, 92, .06), 0 8px 24px -12px rgba(10, 31, 92, .18);
  --sombra-alta: 0 24px 60px -24px rgba(10, 31, 92, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --largura: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --fita: linear-gradient(90deg, var(--verde-br) 0 25%, var(--amarelo-br) 25% 50%, var(--vermelho) 50% 66.66%, #fff 66.66% 83.33%, var(--azul) 83.33%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--branco); color: var(--texto); font: 400 16px/1.6 var(--f-texto); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--marinho); color: #fff; padding: 10px 16px; border-radius: var(--raio-p); }
.pular:focus { left: 8px; }
.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px;
  font: 700 16px/1 var(--f-texto); text-decoration: none; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .12s var(--ease), box-shadow .18s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-comprar { background: var(--vermelho); color: #fff; }
.btn-comprar:hover { background: var(--vermelho-escuro); box-shadow: 0 8px 20px -8px rgba(213, 43, 30, .6); }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--marinho); }
.btn-contorno { border-color: var(--linha); background: #fff; color: var(--marinho); }
.btn-contorno:hover { border-color: var(--marinho); }
.btn-claro { background: #fff; color: var(--marinho); }
.btn-claro:hover { background: var(--azul-claro); }
.btn[disabled], .btn.desligado { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* bandeiras desenhadas em CSS */
.bandeira { position: relative; display: inline-block; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(10, 31, 92, .12); }
.bandeira.br { background: var(--verde-br); }
.bandeira.br::before { content: ''; position: absolute; inset: 2.5px 3px; background: var(--amarelo-br); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bandeira.br::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--azul); }
.bandeira.py { background: linear-gradient(var(--vermelho) 33.3%, #fff 33.3% 66.6%, var(--azul) 66.6%); }

/* aviso flutuante */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 900; transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--marinho); color: #fff;
  font-weight: 600; font-size: 15px; box-shadow: var(--sombra-alta); transition: opacity .2s, transform .2s var(--ease); pointer-events: none;
}
.toast.visivel { opacity: 1; transform: translate(-50%, 0); }
.toast.erro { background: var(--erro); }

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