/* Desenrola gov.br — baseado em desensetem.online/acord/log */

#root {
  background: var(--gov-bg, #f0f2f5);
  min-height: 100vh;
}

:root {
  --gov-blue: #1351b4;
  --gov-blue-dark: #0c326f;
  --gov-blue-navy: #071d41;
  --gov-blue-soft: #eff6ff;
  --gov-blue-border: #bfdbfe;
  --gov-green: #168821;
  --gov-bg: #f0f2f5;
  --gov-border: #d1d5db;
  --gov-text-dark: #1a1a1a;
  --gov-text-body: #334155;
  --gov-text-muted: #64748b;
  --hdr-icon: #1351b4;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Sora", system-ui, sans-serif;
}

#root .desenrola-gov-page,
#root .funnel-gov-shell {
  font-family: var(--font-ui);
  background: var(--gov-bg);
  color: var(--gov-text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

#root .desenrola-gov-page *,
#root .funnel-gov-shell * {
  box-sizing: border-box;
}

.barra-brasil-topo {
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 16px;
  border-bottom: 1px solid #1f2937;
  width: 100%;
}

.barra-brasil-topo-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.barra-brasil-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.barra-brasil-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.barra-brasil-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 10px;
}

.page-wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hdr {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 16px;
  border-bottom: 2.5px solid var(--gov-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hdr-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hdr-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.hdr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--hdr-icon);
  cursor: pointer;
  border-radius: 6px;
}

.hdr-icon-btn:hover {
  background: var(--gov-blue-soft);
  border-color: var(--gov-blue-border);
}

.hdr-vsep {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
  margin: 0 2px;
}

/* Pill do usuário no header (verificação+) — não herda .btn-primary largo */
.hdr-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  margin: 0;
  background: var(--gov-blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-ui);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.hdr-user-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.crumb {
  width: 100%;
  background: #e2e8f0;
  color: #475569;
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 500;
  border-bottom: 1px solid #cbd5e1;
}

.crumb strong {
  color: var(--gov-blue);
  font-weight: 700;
}

.card-main {
  background: #fff;
  margin: 16px;
  padding: 24px 20px 28px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gov-blue-soft);
  color: var(--gov-blue);
  border: 1px solid var(--gov-blue-border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.dept-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gov-green);
}

.limpe-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.gov-instrucao-box {
  margin-bottom: 20px;
}

.instrucao-titulo {
  font-size: 18px;
  font-weight: 800;
  color: var(--gov-text-dark);
  margin-bottom: 6px;
}

.instrucao-texto {
  font-size: 13.5px;
  color: var(--gov-text-body);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.field-wrap {
  text-align: left;
  margin-bottom: 18px;
}

.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gov-text-dark);
  margin-bottom: 6px;
  display: block;
}

.input-container {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--gov-border);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.2s;
}

.input-container:focus-within {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(19, 81, 180, 0.15);
}

.input-icon {
  width: 20px;
  height: 20px;
  color: var(--gov-text-muted);
  flex-shrink: 0;
  margin-right: 10px;
}

input.input-cpf {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  color: var(--gov-text-dark);
  letter-spacing: 0.05em;
  background: transparent;
}

.field-hint {
  font-size: 11.5px;
  color: var(--gov-text-muted);
  margin-top: 5px;
  display: block;
}

.btn-primary,
#root .button-continuar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  background: var(--gov-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 26px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: var(--font-ui) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(19, 81, 180, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover,
#root .button-continuar:hover:not(:disabled) {
  background: var(--gov-blue-dark) !important;
  transform: translateY(-1px);
}

.btn-primary:disabled,
#root .button-continuar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--gov-blue-soft);
  border: 1px solid var(--gov-blue-border);
  border-radius: 10px;
  margin-top: 20px;
  text-align: left;
}

.ico-i-wrapper {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gov-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: serif;
}

.info-box-content strong {
  display: block;
  font-size: 13px;
  color: var(--gov-blue-dark);
  margin-bottom: 2px;
}

.info-box-content p {
  font-size: 12.5px;
  color: var(--gov-text-body);
  line-height: 1.45;
  margin: 0;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12px;
  color: var(--gov-text-body);
  font-weight: 600;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-ico {
  flex-shrink: 0;
  color: var(--gov-green);
}

.trust-sub {
  margin-top: 10px;
  font-size: 11px;
  color: var(--gov-text-muted);
  text-align: center;
}

footer.site-ft {
  background: var(--gov-blue-navy);
  color: #e2e8f0;
  font-size: 13px;
  margin-top: auto;
  padding: 20px 16px;
  width: 100%;
}

.site-ft-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ft-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ft-gov-img {
  height: 36px;
  width: auto;
}

.ft-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.ft-org {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-block {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.copy-block strong {
  color: #fff;
}

/* Funil — cards e layout */
#root .funnel-gov-body {
  flex: 1;
  background: var(--gov-bg);
  padding-bottom: 24px;
}

#root .funnel-gov-body .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}

#root .funnel-gov-body .card,
#root .funnel-gov-body #login-cpf {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 24px 20px;
  margin: 0 auto;
  max-width: 100%;
}

#root .funnel-gov-body .card h3,
#root .funnel-gov-body #login-cpf h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gov-blue-dark);
  margin-bottom: 12px;
}

#root .funnel-gov-body .max-w-4xl {
  max-width: 720px !important;
}

#root .funnel-gov-body .bg-green-50 {
  background: var(--gov-green) !important;
  background: #ecfdf5 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
}

#root .funnel-gov-body .text-green-800,
#root .funnel-gov-body .text-green-700 {
  color: #166534 !important;
}

#root .funnel-gov-body .text-\[\#1351B4\],
#root .funnel-gov-body .border-\[\#1351B4\] {
  color: var(--gov-blue) !important;
  border-color: var(--gov-blue) !important;
}

#root .funnel-gov-body button.bg-\[\#1351B4\],
#root .funnel-gov-body .bg-\[\#1351B4\] {
  background: var(--gov-blue) !important;
  border-radius: 26px !important;
}

@media (max-width: 540px) {
  .barra-brasil-links { display: none; }
}

@media (max-width: 480px) {
  .card-main {
    margin: 10px;
    padding: 20px 14px;
  }
  .instrucao-titulo {
    font-size: 16.5px;
  }
}

/* ── Tela verify-availability — consulta de dívidas ── */
#root .verify-debt-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

#root .verify-debt-user-card {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#root .verify-debt-user-card label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gov-blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#root .verify-debt-user-card input {
  margin-top: 4px;
  margin-bottom: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gov-border);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--gov-text-dark);
  font-size: 15px;
}

#root .verify-debt-hero {
  background: linear-gradient(135deg, #071d41 0%, #1351b4 100%);
  border-radius: 12px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

#root .verify-debt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}

#root .verify-debt-hero-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

#root .verify-debt-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  animation: verifyPulse 2s ease-in-out infinite;
}

@keyframes verifyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

#root .verify-debt-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

#root .verify-debt-sub {
  font-size: 13px;
  opacity: 0.9;
  margin: 0 0 16px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

#root .verify-debt-progress-wrap {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#root .verify-debt-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: 8px;
  transition: width 0.8s ease;
  min-width: 4%;
}

#root .verify-debt-pct {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

#root .verify-debt-steps {
  background: #fff;
  border: 1px solid var(--gov-border);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#root .verify-debt-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

#root .verify-debt-step:last-child {
  border-bottom: none;
}

#root .verify-debt-step.is-pending {
  opacity: 0.45;
}

#root .verify-debt-step.is-active .verify-debt-step-text {
  color: var(--gov-blue-dark);
  font-weight: 600;
}

#root .verify-debt-step-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#root .verify-debt-step-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--gov-text-body);
  padding-top: 3px;
}

#root .verify-debt-approved {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#root .verify-acordo-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}

#root .verify-acordo-success-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #166534;
  margin: 0 0 10px;
}

#root .verify-acordo-success-text {
  font-size: 14px;
  line-height: 1.55;
  color: #15803d;
  margin: 0;
}

#root .verify-acordo-card {
  background: #fff;
  border: 2px solid var(--gov-blue);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(19, 81, 180, 0.12);
}

#root .verify-acordo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1351b4, #071d41);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

#root .verify-acordo-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

#root .verify-acordo-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gov-text-body);
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

#root .verify-acordo-list li:last-child {
  border-bottom: none;
}

#root .verify-acordo-list strong {
  color: var(--gov-blue-dark);
}

#root .verify-acordo-note {
  font-size: 12px;
  color: var(--gov-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

#root .verify-acordo-btn {
  width: 100%;
  background: var(--gov-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s;
}

#root .verify-acordo-btn:hover {
  background: var(--gov-blue-dark);
}

/* Tipografia da home (Sora) — só fontes, sem mudar layout */
html,
body,
#root {
  font-family: var(--font-ui) !important;
}

#root button,
#root input,
#root select,
#root textarea,
#root label,
#root p,
#root span,
#root a,
#root li,
#root td,
#root th,
#root .btn-primary,
#root .button-continuar,
#root .verify-acordo-btn {
  font-family: var(--font-ui) !important;
}

#root h1,
#root h2,
#root h3,
#root .instrucao-titulo,
#root .container .card h3,
#root .verify-debt-title {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
}

#root .instrucao-texto,
#root .verify-debt-sub,
#root .verify-acordo-note {
  font-family: var(--font-body) !important;
}

#root .hdr-right .btn-primary,
#root .hdr-right .hdr-user-pill {
  width: auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  flex: 0 0 auto;
}

#root code,
#root pre,
#root .guia-code {
  font-family: ui-monospace, "Consolas", monospace !important;
}
