/* Estilos das telas especificas: publicas, autenticacao, questionario e detalhe.
   Ficam aqui porque nao sao componentes reutilizaveis, mas continuam fora do
   template: nenhuma tela escreve CSS inline (Sistema_de_Estilos.md). */

/* ─── Formulario: espacamento e rodape ──────────────────────────── */
.form-estreito { max-width: 800px; }
.form-inline { display: inline; }
.form-rodape {
  display: flex; justify-content: flex-end; gap: var(--sp-2);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border);
}
.obrigatorio { color: var(--danger); }
.secao-espaco { margin-top: var(--sp-6); }
.espacador { flex: 1; }
.pp-grupo-botoes { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pp-resumo { color: var(--text-dim); font-size: var(--fs-sm); }
.perfil-cabecalho { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.perfil-nome { font-weight: 700; font-size: var(--fs-lg); }
.perfil-desc { color: var(--text-dim); font-size: var(--fs-sm); }

/* ─── Autenticacao ──────────────────────────────────────────────── */
.tela-auth { max-width: 420px; width: 100%; text-align: left; }
/* Login e troca de senha usam o lockup completo, com a assinatura: e a unica
   tela onde sobra espaco para a linha "Proteção que vai além da norma" sair
   legivel. */
.auth-marca { margin-bottom: var(--sp-5); }
.auth-marca .marca-img { width: 200px; }
.tela-auth h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.auth-intro { color: var(--text-dim); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.input-senha { position: relative; }
.input-senha .input { padding-right: 42px; }
.toggle-senha {
  position: absolute; right: var(--sp-2); top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  padding: var(--sp-1); line-height: 1;
}
.toggle-senha:hover { color: var(--primary); }

/* ─── Detalhe do diagnostico ────────────────────────────────────── */
.ficha {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.ficha-item dt { font-size: var(--fs-xs); color: var(--text-dim); margin-bottom: var(--sp-1); }
.ficha-item dd { font-weight: 600; }
.resultado-destaque {
  display: flex; gap: var(--sp-6); align-items: center; flex-wrap: wrap;
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border);
}
.resultado-rotulo { font-size: var(--fs-xs); color: var(--text-dim); margin-bottom: var(--sp-1); }
.resultado-valor {
  font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
  color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.badge-grande { font-size: var(--fs-sm); padding: 6px 14px; }
.topico-bloco {
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.topico-bloco:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.topico-titulo { color: var(--primary); margin-bottom: var(--sp-3); }
.respostas-lista { list-style: none; }
.resposta-linha {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-2) 0; font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.resposta-linha:last-child { border-bottom: none; }
.resposta-pergunta { flex: 1; }
.resposta-score { font-weight: 700; min-width: 32px; text-align: center; color: var(--primary); }

/* ─── Questionario DRPS (tela publica) ──────────────────────────── */
.drps-wrap { max-width: 760px; margin: 0 auto; padding: var(--sp-5) var(--sp-4) var(--sp-6); }
.drps-header {
  text-align: center; margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border);
}
.drps-selo { font-size: 40px; color: var(--primary); display: block; margin-bottom: var(--sp-2); }
.drps-header h1 { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.drps-header p { color: var(--text-dim); font-size: var(--fs-sm); }
.drps-anonimo {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-4);
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; font-size: var(--fs-xs);
}
.drps-aviso { display: none; margin-bottom: var(--sp-4); }
.drps-aviso.visivel { display: flex; }

.progress-bar {
  width: 100%; height: 6px; background: var(--border);
  border-radius: 3px; margin-bottom: var(--sp-2); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px; transition: width .3s;
}
.step-indicator {
  font-size: var(--fs-sm); color: var(--text-dim);
  text-align: center; margin-bottom: var(--sp-5);
}

.step { display: none; }
.step.active { display: block; }
.topic-title {
  font-family: var(--font-display); font-size: var(--fs-lg);
  color: var(--primary); margin-bottom: var(--sp-1);
}
.topic-desc { font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: var(--sp-5); }

.question-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-3);
}
.question-card.pendente { border-color: var(--danger); }
.question-text {
  font-size: var(--fs-base); margin-bottom: var(--sp-3);
  line-height: 1.5; padding: 0; float: none; width: 100%;
}

/* Escala de resposta: escolha entre valores, entao usa a cor da marca,
   nunca o verde de "ligado" (Padrao_Toggle_Tipos, tipo multi opcoes). */
.scale-options { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.scale-opt { flex: 1; min-width: 64px; }
.scale-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale-opt label {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; padding: var(--sp-2) var(--sp-1);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: .15s; color: var(--text-dim);
}
.scale-opt label:hover { border-color: var(--primary); }
.scale-opt input:checked + label {
  border-color: var(--primary); background: var(--primary-soft);
  color: var(--primary-hover); font-weight: 600;
}
.scale-opt input:focus-visible + label { box-shadow: 0 0 0 3px var(--primary-soft); }
.scale-num { font-size: var(--fs-base); font-weight: 600; }
.scale-txt { font-size: 10px; line-height: 1.2; }

.nav-btns {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border);
}
.girando { animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ─── Landing publica ───────────────────────────────────────────── */
.pub-header {
  border-bottom: 1px solid var(--border); padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
/* Cabecalho publico: o wordmark passa a ser desenho, nao texto, entao nao ha
   risco de a fonte do titulo divergir da fonte do logo. */
.pub-logo { display: flex; align-items: center; }
.pub-logo .marca-img { width: auto; height: 56px; }
.pub-header-acoes { display: flex; align-items: center; gap: var(--sp-2); }
.theme-toggle-compacto { width: auto; }

.hero { max-width: 800px; margin: 0 auto; padding: var(--sp-6) var(--sp-5); text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--primary-soft); color: var(--primary);
  padding: 6px 16px; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--sp-5);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px);
  margin-bottom: var(--sp-4); line-height: 1.15;
}
.hero-texto {
  font-size: var(--fs-lg); color: var(--text-dim);
  max-width: 600px; margin: 0 auto var(--sp-5);
}
.btn-grande { padding: var(--sp-3) var(--sp-6); font-size: var(--fs-base); }

.features {
  max-width: 960px; margin: 0 auto; padding: 0 var(--sp-5) var(--sp-6);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4); align-items: stretch;
}
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-5); transition: border-color .2s;
}
.feat-card:hover { border-color: var(--primary); }
.feat-icon {
  width: 40px; height: 40px; background: var(--primary-soft);
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; margin-bottom: var(--sp-3);
}
.feat-card h2 { font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.feat-card p { font-size: var(--fs-sm); color: var(--text-dim); }

.steps { max-width: 960px; margin: 0 auto; padding: 0 var(--sp-5) var(--sp-6); }
.steps-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-6);
}
.steps-titulo { text-align: center; margin-bottom: var(--sp-5); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--sp-5); list-style: none;
}
.step-item { text-align: center; }
.step-num {
  width: 36px; height: 36px; background: var(--primary-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-2); font-weight: 700; font-size: var(--fs-sm); color: var(--primary);
}
.step-item h3 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-1); }
.step-item p { font-size: var(--fs-xs); color: var(--text-dim); }

.pub-footer { border-top: 1px solid var(--border); padding: var(--sp-5); text-align: center; }
.pub-footer p { font-size: var(--fs-sm); color: var(--text-dim); }

/* ─── Tela da empresa cliente ───────────────────────────────────── */
.link-copiar { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.link-copiar .input { flex: 1; min-width: 260px; font-family: monospace; font-size: var(--fs-sm); }
