/* Reset, tipografia, foco e botões usados em todas as telas. */

* {
  box-sizing: border-box;
  margin: 0;
}
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}
.button:hover {
  border-color: var(--faint);
  background: var(--surface-2);
}
.button-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.button-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}
.button-primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}
.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button-quiet:hover {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--ink);
}
.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-button {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
}
.link-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Crédito do desenvolvedor (Cortexis Tech): discreto, sem competir com a marca
   da empresa cliente. */
.developer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
/* O logo é ciano claro: sobre um selo escuro, como nos materiais da marca,
   continua legível tanto no tema claro quanto no escuro. */
.developer-credit img {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 6px;
  background: #0b0f14;
  object-fit: contain;
}
.developer-credit strong {
  color: var(--ink);
  font-weight: 600;
}
.developer-credit:hover strong {
  color: var(--brand);
}

/* Versão do programa (tela de entrada e rodapé): etiqueta discreta. */
.app-version {
  display: inline-block;
  margin: 0;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.app-version:empty {
  display: none;
}
