/* Base tipográfica e componentes comuns (brief, seções 4.3 e 4.5). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--f-corpo);
  font-size: var(--t-corpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
p, ul, ol, dl, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  color: var(--tinta);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: var(--t-h1);
  font-weight: 800;
  font-stretch: var(--largura-h1);
  line-height: 1.05;
  letter-spacing: -.01em;
}
h2 { font-size: var(--t-h2); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.25; }

.texto { max-width: 68ch; }
.texto + .texto { margin-top: var(--s3); }
.suave { color: var(--tinta-suave); }
.num { font-variant-numeric: tabular-nums; }

a { color: var(--verde-press); text-underline-offset: .18em; }
a:hover { color: var(--tinta); }

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

.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;
}

/* Botão principal: verde, 56px no celular, raio 12px, sem seta. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 56px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: var(--r-btn);
  background: var(--verde);
  color: #fff;
  font-family: var(--f-corpo);
  font-size: var(--t-corpo);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--rapido) var(--curva);
}
.btn:hover { background: var(--verde-press); color: #fff; }
.btn:active { background: var(--verde-press); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-largo { width: 100%; }

/* Botão secundário: texto com borda, mesmo raio. */
.btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--s3);
  border: 1px solid var(--linha);
  border-radius: var(--r-btn);
  background: var(--papel);
  color: var(--tinta);
  font-weight: 700;
  font-size: var(--t-menor);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--rapido) var(--curva);
}
.btn-sec:hover { border-color: var(--tinta-suave); color: var(--tinta); }

/* Documento: vaga, currículo, mensagem. */
.doc {
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: var(--r-doc);
  padding: var(--s4);
}
.doc-destaque { box-shadow: var(--sombra-doc); }

/* Requisito da vaga (etiqueta). */
.req {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid var(--linha);
  border-radius: var(--r-tag);
  background: var(--papel);
  font-size: var(--t-menor);
  line-height: 1.3;
}
/* Marca-texto e sublinhados são fundos (não text-decoration) pra poderem "correr"
   da esquerda pra direita na leitura animada. */
.req-ok {
  border-color: var(--marca-borda);
  background-color: var(--papel);
  background-image: linear-gradient(var(--marca), var(--marca));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.req-ok .ico { width: 16px; height: 16px; flex: none; }
.req-falta,
.req-outro {
  padding-bottom: 7px;
  background-repeat: no-repeat;
  background-position: 14px calc(100% - 6px);
  background-size: calc(100% - 28px) 2px;
}
.req-falta { padding-bottom: 4px; border: 1.5px dashed var(--linha-forte); color: var(--verde-700); background-image: none; }
.req-falta::before { content: "\2715"; font-size: 16px; font-weight: 700; line-height: 1; }
.req-outro { background-image: repeating-linear-gradient(90deg, var(--caneta) 0 6px, transparent 6px 10px); }

/* Medidor de aderência: um segmento por requisito, nunca porcentagem. */
.medidor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s2);
}
.medidor-segs { display: flex; gap: 4px; flex: none; }
.medidor-segs i {
  display: block;
  width: 12px; height: 22px;
  border-radius: 3px;
  background: var(--linha);
}
.medidor-segs i.cheio { background: var(--verde); }
.medidor-txt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* foco nunca fica escondido atrás da barra fixa do topo */
html { scroll-padding-top: 88px; }
/* a caixinha de autorização também mostra o contorno de foco */
input[type="checkbox"]:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
