/* desenrola — estilos base (neutro)
 *
 * 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).
 *
 * Versão: 2026-07-10 (consolidado)
 */

:root {
    --azul-primario: #475569;
    --azul-escuro: #334155;
    --azul-footer: #1e293b;
    --azul-footer-copy: #0f172a;
    --cinza-bg: #f0f2f5;
    --cinza-texto: #333;
    --borda-input: #ccc;
    --info-bg: #e3eeff;
    --info-borda: #2f65bd;
    --beneficio-bg: #e7f0fd;
    --alerta-amarelo-bg: #fff9db;
    --alerta-amarelo-borda: #ffe066;
    --sucesso-bg: #d4edda;
    --sucesso-texto: #155724;
    /* Ícones do cabeçalho (neutro) */
    --hdr-icon: #475569;
}

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

html {
    -webkit-text-size-adjust: 100%;
    /* Evita faixa clara abaixo do rodapé em telas altas */
    background: var(--azul-footer-copy);
    overflow-x: hidden;
}

body {
    font-family: "Rawline", "Open Sans", system-ui, sans-serif;
    background: var(--cinza-bg);
    color: #1a1a1a;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 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-logo-text {
    color: #e2e8f0;
}

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

html.theme-dark .crumb {
    background: #0a1f40;
}

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

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

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: #2a3f56;
    border-color: #4a7ab8;
}

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;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    margin: 0 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-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--azul-primario);
    line-height: 1;
}

.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(71, 85, 105, 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: #9ec5ff;
}

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

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

.hdr-vsep {
    width: 1px;
    height: 18px;
    background: rgba(71, 85, 105, 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 — imagem inteira visível (100% do quadro, sem corte) */

.hero-banner {
    width: 100%;
    background: #dde5ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

/* 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;
}

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

.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 */

.cpf-wrap {
    padding: 20px 18px 36px;
}

/* Card não invade o breadcrumb (remove margem negativa do .card-main) */

.card-main.cpf-wrap {
    margin-top: 12px;
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
}

/* 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: 100%;
    max-height: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
}

.form-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--azul-escuro);
    margin: 4px auto 14px;
}

html.theme-dark .form-title {
    color: #e2e8f0;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    margin: 4px 0 18px;
    cursor: pointer;
}

.consent input {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--azul-primario);
}

.consent a {
    color: var(--azul-primario);
    text-decoration: underline;
}

html.theme-dark .consent {
    color: #b8b8b8;
}

.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: azul um pouco mais forte, texto preto */

.card-main.cpf-wrap .info-box {
    background: #bdd4ef;
    border-color: #2467b8;
}

.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 — alinhado à esquerda */

footer.site-ft {
    background: var(--azul-footer);
    color: #d1d1d1;
    text-align: left;
    font-size: 13px;
    margin-top: auto;
    overflow-x: hidden;
}

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

footer.site-ft .copy-block {
    background: var(--azul-footer-copy);
    padding: 12px 14px 16px;
    margin: 10px -14px 0;
    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: #2467b8;
    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;
    }
}