/* ── CORES DA IDENTIDADE SIMCRED ───────────────────────── */
:root {
  --blue: #02388C;
  --blue-dark: #011a4a;
  --blue-mid: #0a4db5;
  --green: #73C032;
  --green-bright: #98FE00;
  --white: #ffffff;
  --bg-color: #f4f7fc;
  --gray: #6b7c99;
  --border: #d0daea;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-color);
  color: var(--blue-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── HEADER MINIMALISTA ────────────────────────── */
.header-minimalista {
  width: 100%;
  background: var(--white);
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-minimalista img {
  height: 90px;
  width: auto;
}

/* ── CONTAINER PRINCIPAL ────────────────────────────────── */
main {
  width: 100%;
  max-width: 500px;
  padding: 30px 24px 60px;
  flex: 1;
  text-align: center;
}

/* ── PAINÉIS (STEPS) ───────────────────────────────── */
.step-pane {
  display: none;
  animation: fadeUp .3s ease both;
}
.step-pane.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TIPOGRAFIA PADRÃO DOS PASSOS ─────────────────────── */
.step-pane h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
}
.step-pane .subtitle {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* ── ÍCONES REDONDOS DA REFERÊNCIA ─────────────────────── */
.step-icon {
  width: 72px;
  height: 72px;
  background: #e2eaf5;
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.step-icon svg {
  width: 32px;
  height: 32px;
}

/* ── PONTINHOS DE PROGRESSO (DOTS) ─────────────────────── */
.dots-wrapper {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* ── TELA INICIAL (HERO) ────────────────────────────────── */
.hero-eyebrow {
  display: inline-block;
  background: #e2eaf5; 
  color: var(--blue);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
#step0 h1 {
  font-size: clamp(1.8rem, 6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hl { color: var(--green); }
.hl-blue { color: var(--blue); }
.hero-sub {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 40px;
}

/* ── GRID 2x2 DA TELA INICIAL ───────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.feat-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}
.feat-card svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
}
.feat-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.3;
}

/* ── BOTÕES EMPILHADOS ───────────────────────────── */
.options-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── MÁSCARA DO RANGE SLIDER (DISPLAY DO VALOR) ──────────────── */
.val-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 8px;
  text-align: left;
}
.val-display-box {
  width: 100%;
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 24px;
  text-align: center;
  outline: none;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s ease;
}
.val-display-box:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(2, 56, 140, 0.1);
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  cursor: pointer;
}

/* ── ALERTAS E MENSAGENS ───────────────────────────────── */
.err {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
  font-weight: 600;
  text-align: left;
}
.err.show { display: block; }

/* ── FOOTER MINIMALISTA ────────────────────────── */
.footer-new { width: 100%; }
.footer-top { 
  background: var(--bg-color);
  padding: 40px 5%; 
  border-top: 1px solid var(--border); 
}
.footer-minimalista {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo { 
  max-height: 90px; 
  width: auto; 
  flex-shrink: 0; 
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.footer-bottom-bar { background: var(--blue-dark); padding: 20px 5%; }
.footer-bottom-bar .inner { max-width: 1100px; margin: 0 auto; }
.footer-legal-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-dev { display: flex; align-items: center; gap: 10px; }
.dev-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(115, 192, 50, 0.4);
  border-radius: 8px;
  color: var(--green-bright);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  background: rgba(115, 192, 50, 0.08);
  transition: all 0.3s;
}
.dev-badge:hover {
  background: rgba(115, 192, 50, 0.2);
  border-color: var(--green);
  color: #ffffff;
}

/* ── RESPONSIVIDADE (CELULARES) ──────────────────────────── */
@media (max-width: 768px) {
  .footer-minimalista {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-disclaimer {
    text-align: center;
  }
  .footer-legal-flex {
    flex-direction: column;
    text-align: center;
  }
  #step0 h1 { font-size: 1.6rem; }
  .val-display-box { font-size: 1.5rem; }
}