/* ==========================================================================
   NOW — base.css
   Estilos globais do site. Mobile-first: o CSS "normal" vale para celular;
   as regras dentro de @media (min-width: ...) ajustam telas maiores.
   Paleta: só preto / cinza / branco (definida em CONTRATO.md).
   ========================================================================== */

/* ---------- 1. Tokens (variáveis de cor, tamanho, fonte) ---------- */
:root {
  --bg: #0a0a0a;          /* fundo da página */
  --surface: #161616;     /* cards */
  --surface-2: #222222;   /* campos, itens em destaque */
  --border: #2e2e2e;      /* linhas e bordas */
  --muted: #8a8a8a;       /* texto secundário */
  --text: #f5f5f5;        /* texto principal */
  --accent: #ffffff;      /* botão principal (fundo branco, texto preto) */

  --muted-2: #b3b3b3;     /* texto secundário um pouco mais claro (melhor contraste) */
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 64px;
  --container: 1100px;
  --gutter: 20px;

  /* Anton = títulos (peso 400 SEMPRE; nunca negrito sintético). Inter = texto. */
  --font-title: "Anton", "Oswald", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- 2. Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Foco visível (acessibilidade para quem usa teclado) */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Link "pular para o conteúdo" — só aparece ao focar com Tab */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: #fff; color: #000; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Texto só para leitores de tela */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Tipografia ---------- */
h1, h2, h3, .title {
  font-family: var(--font-title);
  font-weight: 400;              /* Anton só existe em 400 */
  font-synthesis: none;          /* proíbe negrito falso */
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 9vw, 4rem); }
h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 .75rem;
}
.lead { font-size: 1.125rem; color: var(--muted-2); max-width: 46ch; }
.muted { color: var(--muted-2); }
.small { font-size: .875rem; }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 84px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #e4e4e4; text-decoration: none; }
.btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.btn-secondary:hover { background: #fff; color: #000; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .78rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* estado "carregando": mostra uma rodinha e bloqueia cliques */
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .btn { flex: 1 1 220px; }
@media (min-width: 720px) { .btn-row.auto > .btn { flex: 0 0 auto; } }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--text); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}

/* ---------- 6. Formulários ---------- */
.field { margin-bottom: 18px; }
.label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.label .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface-2); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem;            /* 16px+ evita zoom automático no iPhone */
  transition: border-color .15s, background .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6c6c6c; }
.input:hover, .select:hover, .textarea:hover { border-color: #4a4a4a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: #fff; background: #262626; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.input[readonly], .input:disabled { color: var(--muted-2); background: #121212; cursor: not-allowed; }
.select { appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select option { background: #161616; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #fff; border-width: 2px; }
/* campo de data: ícone do calendário claro no tema escuro */
input[type="date"] { color-scheme: dark; }
.hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.error-msg { display: none; font-size: .8125rem; font-weight: 600; margin-top: 6px; color: #fff; }
.error-msg::before { content: "! "; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px;
  background: #fff; color: #000; border-radius: 50%; font-size: .7rem; font-weight: 800; vertical-align: 1px; text-align: center; line-height: 16px; }
.field.has-error .error-msg { display: block; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

/* campo de senha com botão "Mostrar" */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 90px; }
.pw-toggle {
  position: absolute; right: 6px; top: 6px; height: 38px; padding: 0 12px;
  background: transparent; border: 0; border-radius: 4px; color: var(--muted-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.pw-toggle:hover { color: #fff; }
/* medidor de força da senha */
.pw-meter { display: flex; gap: 4px; margin-top: 8px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .2s; }
.pw-meter[data-nivel="1"] span:nth-child(-n+1),
.pw-meter[data-nivel="2"] span:nth-child(-n+2),
.pw-meter[data-nivel="3"] span:nth-child(-n+3) { background: #fff; }

/* escolhas em "cartões" (radio estilizado) */
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.choice label::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #666; transition: all .15s;
}
.choice input:checked + label { border-color: #fff; background: #262626; }
.choice input:checked + label::before { border-color: #fff; background: radial-gradient(#fff 0 42%, transparent 46%); }
.choice input:focus-visible + label { outline: 3px solid #fff; outline-offset: 3px; }
.choice .choice-title { font-weight: 600; display: block; line-height: 1.25; }
.choice .choice-sub { font-size: .8125rem; color: var(--muted-2); display: block; }

/* checkbox dos termos */
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #fff; cursor: pointer; }
.check label { font-size: .9375rem; cursor: pointer; }

fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { padding: 0; }

/* ---------- 7. Cards e avisos ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.card-link { display: block; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: #fff; transform: translateY(-2px); text-decoration: none; }

.alert {
  display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 20px;
  border: 1.5px solid var(--border); border-left-width: 5px; border-radius: var(--radius);
  background: var(--surface); font-size: .9375rem;
}
.alert[hidden] { display: none; }
.alert-icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #000; font-weight: 800; font-size: .8rem; }
.alert-erro { border-left-color: #fff; }
.alert-ok { border-left-color: #fff; background: #1b1b1b; }
.alert-info { border-left-color: #6a6a6a; }
.alert p { margin: 0; }

.badge { white-space: nowrap;
  display: inline-block; padding: 4px 10px; border: 1px solid #555; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.badge-solid { background: #fff; color: #000; border-color: #fff; }

/* ---------- 8. Toasts (mensagens rápidas no canto da tela) ---------- */
.toasts { position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; max-width: 440px; width: 100%;
  background: #fff; color: #000; padding: 14px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 30px rgba(0,0,0,.6);
  animation: toast-in .2s ease-out;
}
.toast.erro { background: #1c1c1c; color: #fff; border: 2px solid #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 9. Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 250; background: rgba(0,0,0,.78);
  display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid #444; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 26px 22px 22px; animation: modal-in .2s ease-out; }
.modal h2 { font-size: 1.7rem; }
.modal-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@media (min-width: 560px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: var(--radius-lg); }
  .modal-actions { flex-direction: row; justify-content: flex-end; }
}

/* ---------- 10. Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10,10,10,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; height: 44px; }
.brand img { height: 22px; width: auto; }
.nav-toggle {
  width: 46px; height: 46px; display: inline-grid; place-items: center; margin-right: -10px;
  background: none; border: 0; cursor: pointer; border-radius: var(--radius);
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; content: "";
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* menu no celular: painel que desce abaixo do cabeçalho */
.nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 22px; display: none; flex-direction: column;
}
.nav.open { display: flex; }
.nav a.nav-link {
  padding: 16px 0; border-bottom: 1px solid var(--border); text-decoration: none;
  font-family: var(--font-title); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em;
}
.nav a.nav-link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { margin-top: 18px; }
@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 30px; padding: 0; border: 0; background: none; }
  .nav a.nav-link { padding: 8px 0; border: 0; font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--muted-2); }
  .nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: #fff; }
  .nav .btn { margin: 0; min-height: 42px; padding: 0 20px; font-size: .78rem; }
}

/* ---------- 11. Rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 34px; margin-top: 40px; background: #070707; }
.footer-grid { display: grid; gap: 30px; }
.footer-logo { height: 26px; width: auto; margin-bottom: 14px; }
.footer-col h3 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { text-decoration: none; color: var(--muted-2); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .8125rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- 12. Páginas de formulário (entrar, cadastro etc.) ---------- */
.auth-page { padding-top: 36px; padding-bottom: 60px; }
.auth-box { max-width: 460px; margin: 0 auto; }
.auth-box.wide { max-width: 560px; }
.auth-box h1 { font-size: clamp(2.1rem, 8vw, 3rem); margin-bottom: .3em; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google svg { width: 20px; height: 20px; flex: none; }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; margin: 4px 0 22px; }
.center { text-align: center; }

/* etapas do cadastro */
.steps { display: flex; gap: 6px; margin: 6px 0 8px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background .25s; }
.steps span.done { background: #fff; }
.step-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; font-weight: 700; }
.step-title { font-size: 1.8rem; margin-bottom: .2em; }
.form-step[hidden] { display: none; }
.step-actions { display: flex; gap: 12px; margin-top: 26px; }
.step-actions .btn { flex: 1; }
.step-actions .btn-ghost { flex: 0 0 auto; }

.mail-icon { width: 72px; height: 72px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; }
.mail-icon svg { width: 32px; height: 32px; }

/* ---------- 13. Minha conta ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 0 calc(var(--gutter) * -1) 28px; padding: 0 var(--gutter); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 14px 16px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  color: var(--muted-2); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.panel { max-width: 640px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.empty { border: 1.5px dashed #3a3a3a; border-radius: var(--radius-lg); padding: 44px 22px; text-align: center; }
.empty h3 { margin-bottom: .3em; }
.skeleton { height: 18px; border-radius: 4px; background: linear-gradient(90deg, #1a1a1a, #262626, #1a1a1a); background-size: 200% 100%; animation: brilho 1.2s infinite; margin-bottom: 14px; }
@keyframes brilho { to { background-position: -200% 0; } }
.danger-zone { border: 1px solid #4a4a4a; border-radius: var(--radius-lg); padding: 22px; margin-top: 8px; }
.account-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.account-head h1 { margin: 0; }

/* ---------- 14. Texto longo (privacidade) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 700; margin: 1.6em 0 .4em; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: #d6d6d6; }
.draft-banner { border: 2px dashed #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 30px; font-weight: 600; }

/* ---------- 15. Extras de layout ---------- */
.config-banner { background: #fff; color: #000; text-align: center; font-size: .8125rem; font-weight: 700; padding: 8px var(--gutter); }
.footer-txt { max-width: 34ch; }
.narrow { max-width: 640px; }
.mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-22 { margin-top: 22px; } .mt-26 { margin-top: 26px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.btn-row.justify-center { justify-content: center; }
