/* The Veradit landing page (ADR 0051): one static page, no build, no scripts, no cookies. Colours
   follow the app's brand blue (frontend/src/index.css); contrast meets WCAG AA in both themes. */

:root {
  --fundo: #ffffff;
  --fundo-faixa: #f3f6fb;
  --texto: #14213a;
  --texto-suave: #45526b;
  --marca: #1d3a6b;
  --marca-forte: #152c53;
  --sobre-marca: #ffffff;
  --borda: #d8dfeb;
  --cartao: #ffffff;
  --balao-pessoa: #e6edf8;
  --balao-veradit: #ffffff;
  --raio: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0f1626;
    --fundo-faixa: #151f33;
    --texto: #eef2f9;
    --texto-suave: #b4bfd3;
    --marca: #9dbbf0;
    --marca-forte: #bcd1f5;
    --sobre-marca: #0f1626;
    --borda: #2b3953;
    --cartao: #1a2540;
    --balao-pessoa: #24345a;
    --balao-veradit: #1a2540;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--marca);
  outline-offset: 3px;
  border-radius: 6px;
}

.pular {
  position: absolute;
  left: -9999px;
}

.pular:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--fundo);
  padding: 8px 12px;
}

.largura {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.estreita {
  max-width: 760px;
}

section {
  padding: 64px 0;
}

.faixa {
  background: var(--fundo-faixa);
}

/* Top bar */

.topo {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--fundo);
  border-bottom: 1px solid var(--borda);
}

.topo-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.topo nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--texto);
  text-decoration: none;
}

/* Buttons and links */

.botao {
  display: inline-block;
  background: var(--marca);
  color: var(--sobre-marca);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 10px;
  border: 2px solid var(--marca);
}

.botao:hover {
  background: var(--marca-forte);
  border-color: var(--marca-forte);
}

.botao-pequeno {
  padding: 8px 14px;
  font-size: 1rem;
  white-space: nowrap;
}

/* On a phone the opening's own button is right below; the bar keeps just the brand and "Entrar". */
@media (max-width: 440px) {
  .topo .botao-pequeno {
    display: none;
  }
}

.link-discreto {
  font-weight: 600;
  text-underline-offset: 4px;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

/* Opening */

.abertura {
  padding-top: 56px;
}

.abertura-grade {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .abertura-grade {
    grid-template-columns: 1.1fr 1fr;
  }
}

.selo {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--marca);
  background: var(--fundo-faixa);
  border: 1px solid var(--borda);
  border-radius: 999px;
  padding: 4px 14px;
}

.destaque {
  font-size: 1.25rem;
  color: var(--texto-suave);
  max-width: 38em;
}

/* The example screen, drawn in HTML so it reads in both themes and on any width */

.tela {
  margin: 0;
  background: var(--fundo-faixa);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: 0 18px 40px -24px rgb(20 33 58 / 45%);
  overflow: hidden;
}

.tela-barra {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--borda);
}

.tela-barra span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--borda);
}

.tela-corpo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.balao {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
}

.balao p:last-child {
  margin-bottom: 0;
}

.balao-pessoa {
  align-self: flex-end;
  max-width: 85%;
  background: var(--balao-pessoa);
}

.balao-veradit {
  max-width: 92%;
  background: var(--balao-veradit);
  border: 1px solid var(--borda);
}

.fonte {
  font-size: 0.9rem;
  color: var(--texto-suave);
  border-top: 1px dashed var(--borda);
  padding-top: 10px;
}

.tela figcaption {
  font-size: 0.85rem;
  color: var(--texto-suave);
  padding: 0 20px 14px;
}

/* Cards, steps and lists */

.cartoes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .cartoes.tres {
    grid-template-columns: repeat(3, 1fr);
  }
  .cartoes.quatro {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cartoes.quatro {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cartao {
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 24px;
}

.cartao p {
  margin: 0;
  color: var(--texto-suave);
}

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

@media (min-width: 720px) {
  .passos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.passo-numero {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--marca);
  color: var(--sobre-marca);
  font-weight: 700;
  margin-bottom: 12px;
}

.passos p {
  color: var(--texto-suave);
}

.duas-colunas {
  display: grid;
  gap: 32px;
}

@media (min-width: 820px) {
  .duas-colunas {
    grid-template-columns: 1fr 1fr;
  }
}

.lista-marcada {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista-marcada li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.lista-marcada li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--marca);
}

/* Pilot call */

.piloto {
  background: var(--marca);
  color: var(--sobre-marca);
}

.piloto .destaque,
.piloto .lista-marcada li::before {
  color: var(--sobre-marca);
}

.botao-claro {
  background: var(--sobre-marca);
  color: var(--marca);
  border-color: var(--sobre-marca);
}

.botao-claro:hover {
  background: var(--fundo-faixa);
  border-color: var(--fundo-faixa);
}

.botao-contorno {
  background: transparent;
  color: var(--sobre-marca);
  border-color: var(--sobre-marca);
}

.botao-contorno:hover {
  background: rgb(255 255 255 / 12%);
  border-color: var(--sobre-marca);
}

.piloto a:focus-visible {
  outline-color: var(--sobre-marca);
}

/* Questions */

details {
  border-bottom: 1px solid var(--borda);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.15rem;
}

details p {
  margin: 12px 0 0;
  color: var(--texto-suave);
}

/* Footer */

.rodape {
  border-top: 1px solid var(--borda);
  padding: 24px 0;
  font-size: 1rem;
  color: var(--texto-suave);
}

.rodape-linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
