/* gvdesenrola — Serasa (Limpa Nome)
 *
 * Versão: 2026-07-15 — paleta rosa/magenta Serasa (#d6127d primary)
 *
 * Cópia única em public/assets/css/desenrola.css, carregada
 * por TODAS as páginas via <link rel="stylesheet" href="../../assets/css/desenrola.css">
 * (ou caminho relativo equivalente).
 */

:root {
  /* Paleta Serasa — rosa/magenta */
  --azul-primario: #d6127d;      /* primary Serasa (era gov.br #1550b0) */
  --azul-escuro: #a50d60;        /* dark Serasa (era #0c326f) */
  --azul-footer: #1e2433;        /* footer top band (era #0a2542) */
  --azul-footer-copy: #111827;   /* footer copyright (era #06182e) */
  --cinza-bg: #f0f2f5;
  --cinza-texto: #333;
  --borda-input: #ccc;
  --info-bg: #fff0f7;            /* info-box rosa claro (era #e3eeff) */
  --info-borda: #d6127d;         /* info-box borda rosa (era #2f65bd) */
  --beneficio-bg: #fff0f7;
  --alerta-amarelo-bg: #fff9db;
  --alerta-amarelo-borda: #ffe066;
  --sucesso-bg: #d4edda;
  --sucesso-texto: #155724;
  /* Ícones menu / contraste = rosa Serasa */
  --hdr-icon: #d6127d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* fundo branco: as páginas com body cinza cobrem tudo;
     páginas com body branco (CPF fullscreen) ficam sem faixa sobrando */
  background: #fff;
  height: 100%; /* garante que html ocupa a viewport inteira */
}

body {
  font-family: "Rawline", "Open Sans", system-ui, sans-serif;
  background: var(--cinza-bg);
  color: #1a1a1a;
  overflow-x: hidden;
  display: grid;                /* GRID: 1fr conteudo, auto footer → footer SEMPRE no fim da viewport */
  grid-template-rows: 1fr auto;
  min-height: 100vh;            /* cobre viewport inteira; cresce se conteudo for maior */
  min-height: 100dvh;           /* dynamic viewport (mobile com barra de URL) */
}

/* Modo escuro (botão contraste) */
html.theme-dark {
  background: #0a0a0a;
}

html.theme-dark body {
  background: #1b1b1b;
  color: #e8e8e8;
}

html.theme-dark .hdr {
  background: #252525;
  border-bottom-color: #333;
}

html.theme-dark .hdr-logo-img {
  filter: brightness(1.15);
}

html.theme-dark .hdr-icon-btn {
  color: #c8d8f0;
}

html.theme-dark .crumb {
  background: #4a0832;
}

html.theme-dark .card-main {
  background: #2a2a2a;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html.theme-dark .headline {
  color: #ff8cc4;
}

html.theme-dark .subline,
html.theme-dark .instrucao {
  color: #bbb;
}

html.theme-dark .site-ft {
  background: #080f1a;
}

html.theme-dark .copy-block {
  background: #040a14;
}

html.theme-dark .attendant-card {
  background: #333;
  border-color: #444;
}

html.theme-dark .attendant-card .nome {
  color: #f0f0f0;
}

html.theme-dark .attendant-card .cargo {
  color: #aaa;
}

html.theme-dark input.input-cpf {
  background: #3a3a3a;
  border-color: #555;
  color: #eee;
}

html.theme-dark .card-main.cpf-wrap .info-box {
  background: #3a1f30;
  border-color: #d6127d;
}

html.theme-dark .card-main.cpf-wrap .info-box p {
  color: #e8e8e8;
}

html.theme-dark .trust-badges,
html.theme-dark .trust-sub {
  color: #bbb;
}

html.theme-dark .trust-ico {
  color: #ccc;
}

.page-wrap {
  flex: 1 0 auto; /* cresce com a viewport: empurra o footer pro bottom */
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh; /* fallback: garante esticar mesmo sem flex support */
  min-height: 100dvh;
}

/* Variante fullscreen — o card ocupa do header sticky até o footer */
.page-wrap.page-wrap--full {
  max-width: none;
  min-height: 100vh; /* estica até o fim da tela pra não sobrar faixa */
  background: #fff; /* branco pra "esconder" o cinza nas laterais */
}

/* Footer gruda embaixo da viewport (mesmo com card grow) */
.page-wrap.page-wrap--full footer.site-ft,
footer.site-ft {
  margin-top: auto;
}

/* Header */
.hdr {
  width: 100%;
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 12px 8px 14px;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.hdr-logo-img {
  height: 36px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Aproxima menu + contraste do logo (só um pouco à esquerda) */
#hdrMenu {
  margin-left: -10px;
}

.hdr-right .hdr-vsep {
  margin-left: -4px;
  margin-right: 2px;
}

#hdrContrast {
  margin-left: -2px;
}

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

.hdr-icon-btn:hover {
  background: rgba(214, 18, 125, 0.1);
}

.hdr-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.hdr-icon-btn--contrast svg,
.hdr-icon-btn--ear svg {
  width: 22px;
  height: 22px;
}

/* Font Awesome — ícone fa-deaf no header (CPF / back2) */
.hdr-icon-btn--ear i.fas.fa-deaf {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
  color: var(--hdr-icon);
}

html.theme-dark .hdr-ico-split-contrast circle {
  stroke: #ff8cc4;
}

html.theme-dark .hdr-ico-split-contrast path:nth-of-type(1) {
  fill: #ff8cc4;
}

html.theme-dark .hdr-ico-split-contrast path:nth-of-type(2) {
  fill: #2a2a2a;
}

.hdr-vsep {
  width: 1px;
  height: 18px;
  background: rgba(214, 18, 125, 0.25);
  flex-shrink: 0;
}

.hdr .btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--azul-primario);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 10px;
}

.crumb {
  display: none; /* Barra azul de navegação oculta em todo o funil (pedido gestor) */
  width: 100%;
  background: var(--azul-escuro);
  color: #fff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.crumb a {
  color: inherit;
  text-decoration: none;
}

/* Hero — escondido em rebrand Serasa (substituído pelo card com logo direto) */
.hero-banner {
  width: 100%;
  background: #dde5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  display: none; /* rebrand Serasa: sem banner hero, foco no card */
}

.hero-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

@media (min-width: 480px) {
  .hero-img {
    max-height: 310px;
  }
}

/* Cards */
.card-main {
  background: #fff;
  margin: -20px 16px 24px;
  padding: 28px 22px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centraliza verticalmente o conteudo (logo + headline + botao) */
}

/* Landing: mesma "faixa" cinza em volta (16px) em cima, lados e embaixo + ar interno abaixo do botão */
.card-main.landing {
  margin-top: 12px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 16px;
  padding-top: 26px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 48px;
  flex: 1 0 auto; /* cresce no .page-wrap flex column → empurra footer pro bottom */
}

.stack-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Só ícone + uma faixa de texto (evita sensação de "dois logos" duplicados) */
.stack-logo .ico {
  max-height: 64px;
  width: auto;
  height: auto;
  display: none; /* rebrand Serasa: ícone duplicado escondido, usa só o wordmark */
}

.stack-logo .titulo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-top: 10px;
  display: block;
  object-fit: contain;
}

/* Landing: ícone + imagem "Desenrola Brasil" mais próximos */
.stack-logo-single .titulo-img {
  margin-top: 2px;
}

.stack-logo-single .ico {
  margin-bottom: 0;
}

.headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--azul-primario);
  line-height: 1.42;
  margin-top: 20px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.subline {
  font-size: 15px;
  font-weight: 400;
  color: var(--cinza-texto);
  margin-top: 20px;
  line-height: 1.45;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 15px 20px;
  background: var(--azul-primario);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* Botão pill da landing — mais estreito e arredondado */
.btn-primary.btn-cta-pill {
  width: auto;
  min-width: 204px;
  max-width: min(90vw, 292px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 4px;
  padding: 15px 40px;
  border-radius: 999px;
  font-size: 15px;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.link-legal {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--azul-primario);
  text-decoration: underline;
}

/* CPF page — card fullscreen (card branco ocupa do header ao footer)
   Filhos diretos centralizados em 720px pra leitura confortável. */
.cpf-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px 16px 56px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

/* Na CPF, o body inteiro vira branco pra não sobrar faixa cinza em viewports altos */
.page-wrap.page-wrap--full ~ * {/* nada */}

/* Cada bloco interno do card centralizado em no máximo 720px */
.card-main.cpf-wrap > * {
  max-width: 720px;
  width: 100%;
}

/* Header CPF: sem Entrar; ícones alinhados à direita */
.hdr.hdr--cpf .hdr-right--icons-only {
  margin-left: auto;
}

.hdr.hdr--cpf #hdrContrast {
  margin-left: 0;
}

.hdr.hdr--cpf .hdr-right .hdr-vsep {
  margin-left: 0;
  margin-right: 0;
}

.card-main.cpf-wrap .limpe-logo {
  max-width: 280px;
  max-height: 140px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 22px;
  display: block;
}

.instrucao {
  text-align: center;
  font-size: 14px;
  color: var(--cinza-texto);
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-main.cpf-wrap .instrucao {
  color: #333;
}

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  text-align: left;
}

input.input-cpf {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--borda-input);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 20px;
}

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

.info-box .ico-i {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--azul-primario);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-box p {
  font-size: 13px;
  color: var(--azul-escuro);
  line-height: 1.45;
}

/* Bloco informativo CPF: rosa um pouco mais forte, texto preto */
.card-main.cpf-wrap .info-box {
  background: #ffd6e9;
  border-color: #d6127d;
}

.card-main.cpf-wrap .info-box p {
  color: #0a0a0a;
  font-size: 13px;
}

.btn-primary.btn-cpf-submit {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12px;
  color: #444;
  font-weight: 500;
}

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

.trust-ico {
  flex-shrink: 0;
  color: #4a4a4a;
}

.trust-sub {
  margin-top: 10px;
  font-size: 11px;
  color: #555;
  text-align: center;
  line-height: 1.55;
}

.trust-line {
  margin-top: 24px;
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.6;
}

/* Footer — logo em imagem, alinhado à esquerda */
footer.site-ft {
  background: var(--azul-footer);
  color: #d1d1d1;
  text-align: left;
  font-size: 13px;
  margin-top: auto; /* gruda no fim do .page-wrap flex column */
  flex-shrink: 0;
  overflow-x: hidden;
}

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

.ft-gov-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 2px;
}

footer.site-ft .copy-block {
  background: var(--azul-footer-copy);
  padding: 12px 14px 16px;
  margin: 10px -14px 0;
  width: calc(100% + 28px);
  max-width: none;
  box-sizing: border-box;
  text-align: left;
}

footer.site-ft .copy-block p {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.45;
  padding-left: 0;
  padding-right: 12px;
  max-width: 100%;
}

footer.site-ft .copy-block strong {
  color: #fff;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  padding-left: 0;
  padding-right: 12px;
  max-width: 100%;
}

/* Atendente + chat */
.attendant-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 12px 16px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.attendant-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.attendant-card .nome {
  font-weight: 700;
  font-size: 16px;
}

.attendant-card .cargo {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.typebot-shell {
  flex: 1;
  width: 100%;
  min-height: 50vh;
  padding: 8px 12px 24px;
}

typebot-standard {
  display: block;
  width: 100%;
  min-height: min(560px, 63vh);
}

/* Chat — mesmo rodapé/header que CPF + card branco (cpf-wrap) no cinza */
.page-wrap.page-chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hdr-right--chat-user {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.hdr .btn-chat-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--azul-primario);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 0;
}

.hdr .btn-chat-user svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.page-chat .chat-card.card-main.cpf-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  overflow: hidden;
}

.page-chat .chat-card .attendant-card.attendant-card--in-chat {
  margin: 0;
  max-width: none;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 12px 14px 12px 10px;
}

.page-chat .chat-card .attendant-card.attendant-card--in-chat > div {
  text-align: left;
}

.page-chat .chat-typebot-wrap {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 6px;
}

.page-chat .chat-typebot-wrap typebot-standard.chat-typebot-el {
  display: block;
  width: 100%;
  flex: 0 1 auto;
  min-height: min(560px, 63vh);
}

html.theme-dark .hdr .btn-chat-user {
  background: #a50d60;
  color: #fff;
}

html.theme-dark .page-chat .chat-card .attendant-card.attendant-card--in-chat {
  background: transparent;
  border-bottom-color: #555;
}

/* Back redirect 1 */
.proposta-box {
  border: 2px solid var(--azul-primario);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}

.proposta-box h3 {
  color: var(--azul-primario);
  font-size: 16px;
  margin-bottom: 12px;
}

.proposta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.proposta-grid .strike {
  text-decoration: line-through;
  color: #888;
}

.destaque-preco {
  color: var(--azul-primario);
  font-weight: 700;
}

.banner-sucesso {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--sucesso-bg);
  color: var(--sucesso-texto);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-text {
  font-size: 14px;
  margin: 16px 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .hdr-logo-img {
    height: 32px;
    max-width: 118px;
  }

  .hdr .btn-entrar {
    padding: 9px 14px;
    font-size: 13px;
  }

  .hdr-right {
    gap: 2px;
  }

  .hdr-icon-btn {
    width: 30px;
    height: 30px;
  }

  .hdr-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .hdr-icon-btn--contrast svg,
  .hdr-icon-btn--ear svg {
    width: 20px;
    height: 20px;
  }

  .hdr-icon-btn--ear i.fas.fa-deaf {
    font-size: 1.05rem;
  }
}

/* Correção para Typebot via iframe */
.page-chat .chat-typebot-wrap {
  width: 100%;
  height: 650px;
  padding: 0 6px;
  overflow: hidden;
}

.page-chat .chat-typebot-wrap iframe.chat-typebot-el {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .page-chat .chat-typebot-wrap {
    height: 580px;
  }
}