/* Direta Serviços — identidade e componentes compartilhados */
:root {
  --azul: #1746E0;
  --azul-escuro: #0F31A8;
  --azul-claro: #E8EEFF;
  --lima: #B6F23C;
  --tinta: #0B1530;
  --texto: #2A3654;
  --suave: #63708F;
  --linha: #DDE3F0;
  --fundo: #F5F7FC;
  --branco: #FFFFFF;
  --ok: #0E8A55;
  --ok-fundo: #E3F6EC;
  --alerta: #A45B00;
  --alerta-fundo: #FFF1D6;
  --erro: #C2281D;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(11, 21, 48, .05), 0 12px 32px -12px rgba(11, 21, 48, .18);
  --titulo: 'Sora', system-ui, sans-serif;
  --corpo: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--corpo); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--titulo); color: var(--tinta); line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--azul); }
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 6px; }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca img { width: 36px; height: 36px; }
.marca-nome { font-family: var(--titulo); font-weight: 700; font-size: 22px; letter-spacing: -.04em; line-height: 1; display: block; }
.marca-nome i { font-style: normal; color: var(--azul); }
.marca-sub { font-family: var(--corpo); font-weight: 600; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--suave); display: block; margin-top: 3px; }
.marca.clara, .marca.clara .marca-nome { color: #fff; }
.marca.clara .marca-nome i { color: var(--lima); }
.marca.clara .marca-sub { color: rgba(255, 255, 255, .7); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--titulo); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s;
  background: var(--azul); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--azul-escuro); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.claro { background: #fff; color: var(--tinta); border-color: var(--linha); }
.btn.claro:hover { background: var(--azul-claro); border-color: var(--azul); }
.btn.lima { background: var(--lima); color: var(--tinta); }
.btn.lima:hover { background: #a5e525; }
.btn.bloco { width: 100%; }
.btn.pequeno { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Campos */
.campo { display: block; }
.campo > span { display: block; font-size: 13px; font-weight: 600; color: var(--tinta); margin-bottom: 6px; }
.campo small { display: block; font-size: 12.5px; color: var(--suave); margin-top: 6px; }
.entrada {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--linha); background: #fff; font-size: 16px; color: var(--tinta);
}
.entrada:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px var(--azul-claro); }
.entrada::placeholder { color: #9AA5BF; }

/* Opções (rádio/checkbox em formato de chip ou cartão) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--linha); background: #fff; font-size: 14px; font-weight: 600; color: var(--texto);
}
.chip input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }

.opcao { position: relative; display: block; }
.opcao input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcao > div {
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--linha); background: #fff;
  display: grid; gap: 2px;
}
.opcao b { font-family: var(--titulo); font-size: 15px; color: var(--tinta); letter-spacing: -.01em; }
.opcao small { font-size: 13px; color: var(--suave); }
.opcao input:checked + div { border-color: var(--azul); background: var(--azul-claro); box-shadow: inset 0 0 0 1px var(--azul); }
.opcao input:focus-visible + div { outline: 3px solid var(--azul); outline-offset: 2px; }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--azul-claro); color: var(--azul-escuro); white-space: nowrap; }
.tag.ok { background: var(--ok-fundo); color: var(--ok); }
.tag.alerta { background: var(--alerta-fundo); color: var(--alerta); }

.cartao { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
.num { font-variant-numeric: tabular-nums; }
.erro { color: var(--erro); font-size: 13.5px; font-weight: 500; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
