/* Bloom — estilo do site. Tokens do Brand Sheet (design/Bloom Brand Sheet.html),
   os mesmos do app: paleta azul monocromática, sem verdes, sem preto puro.

   Sem framework e sem build de propósito: quatro páginas estáticas não pagam
   um toolchain, e Core Web Vitals verde sai de graça quando não há JS de
   terceiro para baixar (CLAUDE.md § 13.2). */

:root {
  --navy: #1e3a7a;
  --blue: #3b62c4;
  --blue-claro: #6e94e2;
  --ceu: #a8c5f2;
  --tinta: #0a1733;
  --papel: #fbfcfe;
  --linha: #dce5f4;
  --texto-sutil: #3d4d72;
  --texto-fraco: #6f7da0;
  --raio: 20px;
  --largura: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papel: #060d1f;
    --tinta: #f4f7fd;
    --linha: rgba(207, 222, 247, 0.14);
    --texto-sutil: rgba(207, 222, 247, 0.7);
    --texto-fraco: rgba(207, 222, 247, 0.62);
    --blue: #6e94e2;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 20px 64px;
  background: var(--papel);
  color: var(--tinta);
  /* Fonte do SISTEMA, de propósito — não é esquecimento (ADR-024).
     O Brand Sheet pede DM Sans e o app a usa. Aqui não: carregá-la do Google
     Fonts faria o navegador do visitante entregar o IP dele à Google em toda
     visita, e a política que este mesmo site publica afirma que não há
     rastreadores. Preferimos que o site seja verdadeiro a que ele seja
     idêntico. Hospedar a fonte continua possível se a identidade pesar mais
     que os ~100 KB e a manutenção. */
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  max-width: var(--largura);
  margin: 0 auto;
}

header {
  padding: 40px 0 8px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tinta);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Reproducao do SeedMark do app (src/ui/icons/SeedMark.tsx): cinco orbes,
   tronco e a semente na base. A primeira versao daqui era uma "gota" em CSS,
   inventada por mim — nao existe gota nenhuma na marca. A § 8.2 diz que a
   identidade vem do handoff, e aqui ela vinha da minha cabeca. */
.semente {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 24px 0 8px;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 40px 0 8px;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 4px;
}

.sobrancelha {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--texto-fraco);
  font-weight: 500;
  margin: 0;
}

p,
li {
  color: var(--texto-sutil);
}

a {
  color: var(--blue);
}

.cartao {
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 20px 22px;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--linha);
  vertical-align: top;
  color: var(--texto-sutil);
}

th {
  color: var(--tinta);
  font-weight: 500;
  white-space: nowrap;
}

.botao {
  display: inline-block;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.botao[disabled] {
  opacity: 0.5;
  cursor: default;
}

input {
  width: 100%;
  padding: 13px 14px;
  min-height: 44px;
  margin: 6px 0 14px;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: transparent;
  color: var(--tinta);
  font-family: inherit;
  font-size: 16px; /* 16px evita o zoom automático do Safari no foco */
}

input:focus-visible,
.botao:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ceu);
  outline-offset: 2px;
}

label {
  font-size: 14px;
  color: var(--tinta);
  font-weight: 500;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--linha);
  font-size: 14px;
  color: var(--texto-fraco);
}

footer a {
  margin-right: 16px;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.aviso {
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  margin: 20px 0;
}

/* Utilitarias de espacamento. Existem para que nenhuma pagina precise de
   atributo style= inline -- e assim a CSP pode recusar 'unsafe-inline' tambem
   em estilo, na pagina que recebe e-mail e senha. */
.sem-margem-topo {
  margin-top: 0;
}

.sem-margem-base {
  margin-bottom: 0;
}

.recuo-topo {
  margin-top: 18px;
}

.recuo-topo-largo {
  margin-top: 32px;
}
