/* ==========================================================
   Base: reset, tipografia, botões e acessibilidade
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

/* "hidden" sempre esconde, mesmo em elementos com display próprio (cartões, formulários) */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: calc(100vh / var(--zoom, 1));
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-strong); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
b { font-weight: 600; color: var(--text-strong); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--accent); color: #fff;
}
.skip:focus { top: 12px; color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 4px var(--accent-ring),
    0 8px 28px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover { color: #fff; filter: brightness(1.08); }

.btn--lg { font-size: 16px; padding: 13px 24px; min-height: 50px; }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.08); }
.btn--icon { width: 44px; padding: 0; }
.btn--icon.is-busy svg { animation: atlas-spin 0.9s linear infinite; }

@keyframes atlas-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
