/* base.css — Autonom.ia Sites. Marca da Autonom.ia: azul-noite, azul elétrico, laranja só na ação. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fontes/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fontes/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --noite: #0a1628;
  --noite-alta: #101f3a;
  --linha: rgba(214, 226, 255, 0.13);
  --linha-forte: rgba(214, 226, 255, 0.26);
  --texto: #eaf0fd;
  --texto-2: #a3b3d1;
  --eletrico: #4666ff;
  --link: #8fa3ff;
  --laranja: #d4430f;
  --laranja-hover: #e64f18;
  --ceu: #53d9f9;
  --azul-icone: #3b82f6;
  --ok: #4ade80;
  --erro: #ff9b87;
  --titulo: "Space Grotesk", system-ui, sans-serif;
  --corpo: "Inter", system-ui, sans-serif;
  --largura: 72rem;
  --margem: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--noite);
  color: var(--texto);
  font: 400 1.0625rem/1.6 var(--corpo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--texto); }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p { margin: 0; }
strong { font-weight: 600; color: var(--texto); }

:focus-visible { outline: 3px solid var(--ceu); outline-offset: 3px; border-radius: 4px; }

.pular {
  position: absolute; left: var(--margem); top: -4rem; z-index: 10;
  background: var(--texto); color: var(--noite); padding: 0.6rem 1rem; border-radius: 6px;
}
.pular:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topo e rodapé */
.topo {
  width: 100%; max-width: var(--largura); margin: 0 auto;
  padding: 1.25rem var(--margem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.marca { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--texto); text-decoration: none; }
.marca img { width: auto; height: 1.6rem; }
.marca span {
  font: 500 1rem/1 var(--titulo); color: var(--texto-2);
  padding-left: 0.7rem; border-left: 1px solid var(--linha-forte);
}
.rodape {
  width: 100%; max-width: var(--largura); margin: auto auto 0;
  padding: 2.5rem var(--margem) 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  color: var(--texto-2); font-size: 0.9rem; border-top: 1px solid var(--linha);
}
.rodape p:last-child { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.rodape a { color: var(--texto-2); }
.rodape a:hover { color: var(--texto); }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--corpo); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.botao-quente { background: var(--laranja); color: #fff; }
.botao-quente:hover { background: var(--laranja-hover); color: #fff; }
.botao-claro { background: transparent; color: var(--texto); border-color: var(--linha-forte); }
.botao-claro:hover { border-color: var(--texto); color: var(--texto); }
.botao-discreto { background: transparent; color: var(--texto); border-color: var(--linha-forte); min-height: 2.5rem; padding: 0 1.1rem; font-size: 0.95rem; }
.botao-discreto:hover { border-color: var(--texto); }
.botao[disabled] { opacity: 0.55; cursor: progress; }
.botao-google::before {
  content: ""; width: 1.15rem; height: 1.15rem; flex: none;
  background: #fff url("/marca/google.svg") center / 0.85rem no-repeat; border-radius: 50%;
}
.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--link);
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.link:hover { color: var(--texto); }

/* Páginas internas (convite, conta, sem acesso, avisos) */
.miolo { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.folha { max-width: 40rem; padding: clamp(2.5rem, 8vh, 5rem) 0 4rem; display: grid; gap: 1.4rem; justify-items: start; }
.folha h2 { margin-top: 1.4rem; }
.lead { font-size: 1.15rem; color: var(--texto-2); max-width: 36em; }
.nota, .vazio, .opcional { color: var(--texto-2); font-size: 0.95rem; }
.endereco-mini { color: var(--texto); font-weight: 600; overflow-wrap: anywhere; }
.passos { margin: 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 1rem; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 2.2rem 1fr; color: var(--texto-2); }
.passos li::before { content: counter(passo); font: 600 1.2rem/1.4 var(--titulo); color: var(--ceu); }
.erro { color: var(--erro); font-weight: 500; }

.formulario { display: grid; gap: 0.5rem; width: 100%; max-width: 30rem; }
.formulario label { font-weight: 500; margin-top: 0.6rem; }
.formulario button { margin-top: 1rem; justify-self: start; }
input, textarea {
  width: 100%; font: inherit; color: var(--texto);
  background: var(--noite-alta); border: 1px solid var(--linha-forte); border-radius: 10px;
  padding: 0.75rem 0.9rem; min-height: 3rem;
}
input::placeholder, textarea::placeholder { color: #7486a8; }
input:focus-visible, textarea:focus-visible { outline-offset: 1px; }
textarea { resize: vertical; min-height: 5.5rem; }
.trocar { margin-top: 0.5rem; }

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