/* [NOME] - base visual (tokens, tipografia, componentes) */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --line: rgba(0, 0, 0, .10);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-fg: #ffffff;
  --accent-soft: rgba(0, 113, 227, .10);
  --ok: #248a3d;
  --warn: #b25000;
  --danger: #d70015;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --card: #1c1c1e;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --fg-3: #86868b;
    --line: rgba(255, 255, 255, .14);
    --accent: #2997ff;
    --accent-hover: #4aa8ff;
    --accent-fg: #00142e;
    --accent-soft: rgba(41, 151, 255, .16);
    --ok: #30d158;
    --warn: #ff9f0a;
    --danger: #ff453a;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 30px rgba(0,0,0,.5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.47 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.022em; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.creditos { margin: 16px auto 0; padding: 0 16px; text-align: center; font-size: 12px; line-height: 1.4; color: var(--fg-3); }
.creditos a { color: inherit; text-decoration: none; }
.creditos a:hover { color: var(--accent); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  appearance: none; border: 0; cursor: pointer; font: 500 17px/1 var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--accent); color: var(--accent-fg); text-decoration: none;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.sec { background: var(--accent-soft); color: var(--accent); }
.btn.sec:hover { background: var(--accent-soft); filter: brightness(.96); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.perigo { background: transparent; color: var(--danger); }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: 15px; }
.btn.bloco { width: 100%; }

.campo { display: grid; gap: 6px; }
.campo label { font-size: 13px; font-weight: 500; color: var(--fg-2); }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.aviso { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.4; }
.aviso.erro { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.aviso.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.aviso.info { background: var(--accent-soft); color: var(--fg); }

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