/* ============================================================
   FUNNEL.CSS — Shell unificado index → serviços → checkout
   Baseado no tema gov.br da landing (Open Sans + max-w-5xl)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

body.funnel-page {
    font-family: 'Open Sans', system-ui, sans-serif !important;
    color: #555;
    background: #fff !important;
    overflow-x: hidden;
}

/* Hero serviços — card compacto estilo index */
.pro-funnel-hero {
    background: linear-gradient(135deg, #071D41 0%, #0c326f 50%, #1351B4 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 24px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(7, 29, 65, 0.15);
}
.pro-funnel-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(circle at 20% 80%, #fff 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.pro-funnel-hero-inner {
    position: relative;
    z-index: 1;
}
.pro-funnel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 12px;
}
.pro-funnel-badge i { color: #FFCD07; }
.pro-funnel-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
}
.pro-funnel-greeting {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFCD07;
    margin: 0 0 6px;
}
.pro-funnel-lead {
    font-size: 0.9375rem;
    opacity: 0.92;
    margin: 0 0 16px;
    line-height: 1.55;
    max-width: 540px;
}
.pro-funnel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pro-funnel-tags li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 5px 12px;
}
.pro-funnel-tags i { color: #FFCD07; font-size: 0.75rem; }

/* Hero compacto — sem gradiente pesado */
.pro-funnel-hero--lite {
    background: #f7f9fc;
    color: #333;
    border: 1px solid #e3ebf5;
    border-left: 4px solid #1351B4;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: none;
}
.pro-funnel-hero--lite::before {
    display: none;
}
.pro-funnel-hero--lite h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c326f;
    margin: 0 0 6px;
}
.pro-funnel-hero--lite .pro-funnel-greeting {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #444;
    margin: 0 0 6px;
    line-height: 1.5;
}
.pro-funnel-hero--lite .pro-funnel-greeting strong {
    font-weight: 700;
    color: #0c326f;
}
.pro-funnel-hero--lite .pro-funnel-lead {
    font-size: 0.8125rem;
    color: #666;
    opacity: 1;
    margin: 0;
    line-height: 1.5;
}
.pro-funnel-section-desc--top {
    margin: 0 0 14px;
}

/* Lista de serviços */
.pro-funnel-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c326f;
    margin: 0 0 4px;
}
.pro-funnel-section-desc {
    font-size: 0.875rem;
    color: #777;
    margin: 0 0 16px;
}
.pro-funnel-services {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pro-funnel-servico {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pro-funnel-servico:hover {
    border-color: #1351B4;
    box-shadow: 0 6px 20px rgba(19, 81, 180, 0.1);
    transform: translateY(-2px);
}
.pro-funnel-servico-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1351B4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.pro-funnel-servico-body {
    flex: 1;
    min-width: 0;
}
.pro-funnel-servico-body strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0c326f;
    margin-bottom: 2px;
}
.pro-funnel-servico-body span {
    display: block;
    font-size: 0.8125rem;
    color: #777;
    line-height: 1.4;
}
.pro-funnel-servico-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.pro-funnel-servico-valor {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1351B4;
    white-space: nowrap;
}
.pro-funnel-servico-meta > i {
    color: #1351B4;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Passos — grid estilo index */
.pro-funnel-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}
.pro-funnel-step {
    background: #e8f0fe;
    border: 1px solid #c5d9f7;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pro-funnel-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(19, 81, 180, 0.1);
}
.pro-funnel-step-icon {
    width: 40px;
    height: 40px;
    background: #1351B4;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 0.9375rem;
}
.pro-funnel-step h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0c326f;
    margin: 0 0 6px;
}
.pro-funnel-step p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    line-height: 1.45;
}

/* FAQ accordion */
.pro-funnel-faq h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c326f;
    margin: 0 0 14px;
}
.pro-funnel-faq-item {
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.pro-funnel-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.pro-funnel-faq-item summary::-webkit-details-marker { display: none; }
.pro-funnel-faq-item summary i {
    color: #1351B4;
    font-size: 0.75rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.pro-funnel-faq-item[open] summary i { transform: rotate(180deg); }
.pro-funnel-faq-item[open] summary {
    background: #f8faff;
    border-bottom: 1px solid #e3e8ef;
}
.pro-funnel-faq-item p {
    margin: 0;
    padding: 12px 16px 16px;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.55;
}

/* Checkout — alinhar ao shell index */
body.funnel-page .pro-checkout-wrap {
    max-width: 720px !important;
    padding: 24px 16px 48px;
}

@media (max-width: 767px) {
    .pro-funnel-steps {
        grid-template-columns: 1fr;
    }
    .pro-funnel-servico {
        flex-wrap: wrap;
    }
    .pro-funnel-servico-meta {
        width: 100%;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #eef2f7;
        margin-top: 4px;
    }
    .pro-exit-btn {
        top: auto;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        right: calc(10px + env(safe-area-inset-right, 0px));
        width: 44px;
        height: 44px;
        font-size: 0.9375rem;
        opacity: 0.55;
    }
    a[aria-label="VLibras"] {
        top: auto !important;
        bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important;
        transform: none !important;
    }
    button[aria-label="Voltar ao topo"] {
        bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .pro-oferta-copy-btn {
        min-height: 44px;
        padding: 12px 14px;
    }
    .pro-oferta-copy-row input {
        font-size: 16px;
    }
}

/* Botão X sutil de saída */
.pro-exit-btn {
    position: fixed;
    top: 72px;
    right: 14px;
    z-index: 45;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(19, 81, 180, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #8a96a8;
    font-size: 0.8125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.42;
    box-shadow: 0 2px 8px rgba(7, 29, 65, 0.06);
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pro-exit-btn:hover {
    opacity: 1;
    color: #1351B4;
    border-color: rgba(19, 81, 180, 0.28);
    background: #fff;
}

/* Página de oferta (exit intent) */
.pro-oferta-hero {
    background: linear-gradient(135deg, #071D41 0%, #1351B4 100%);
    color: #fff;
    border-radius: 14px;
    padding: 22px 20px;
}
.pro-oferta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 205, 7, 0.18);
    color: #FFCD07;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 10px;
}
.pro-oferta-hero h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
}
.pro-oferta-lead {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.92;
    line-height: 1.5;
    max-width: 520px;
}
.pro-oferta-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(7, 29, 65, 0.06);
}
.pro-oferta-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.pro-oferta-card-head > i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1351B4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.pro-oferta-card-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 2px;
}
.pro-oferta-card-head h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0c326f;
    margin: 0;
}
.pro-oferta-prices {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f7f9fc;
    border-radius: 10px;
}
.pro-oferta-price-label {
    display: block;
    font-size: 0.6875rem;
    color: #888;
    margin-bottom: 2px;
}
.pro-oferta-price-old {
    font-size: 0.9375rem;
    color: #999;
}
.pro-oferta-price-new {
    font-size: 1.5rem;
    font-weight: 800;
    color: #168821;
    letter-spacing: -0.02em;
}
.pro-oferta-cta {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #1351B4;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(19, 81, 180, 0.28);
    transition: background 0.2s ease, transform 0.15s ease;
}
.pro-oferta-cta:hover { background: #0c326f; }
.pro-oferta-cta:active { transform: scale(0.98); }
.pro-oferta-cta:disabled { opacity: 0.7; cursor: wait; }
.pro-oferta-footnote {
    margin: 12px 0 0;
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}
.pro-oferta-footnote i { color: #1351B4; margin-right: 4px; }
.pro-oferta-catalog-intro {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 12px;
}
.pro-oferta-catalog {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pro-oferta-catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pro-oferta-catalog-item:hover {
    border-color: #1351B4;
    box-shadow: 0 4px 16px rgba(19, 81, 180, 0.08);
}
.pro-oferta-catalog-body strong {
    display: block;
    font-size: 0.9375rem;
    color: #0c326f;
    margin-bottom: 2px;
}
.pro-oferta-catalog-desc {
    font-size: 0.75rem;
    color: #888;
}
.pro-oferta-catalog-price {
    text-align: right;
    flex-shrink: 0;
}
.pro-oferta-catalog-price s {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
}
.pro-oferta-catalog-price strong {
    font-size: 1rem;
    color: #168821;
}
.pro-oferta-pix {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(7, 29, 65, 0.06);
}
.pro-oferta-pix-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #071D41, #1351B4);
    color: #fff;
}
.pro-oferta-pix-head i { font-size: 1.5rem; color: #32BCAD; }
.pro-oferta-pix-head span { display: block; font-size: 0.6875rem; opacity: 0.85; }
.pro-oferta-pix-head h3 { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.pro-oferta-pix-head > strong {
    margin-left: auto;
    font-size: 1.125rem;
    color: #FFCD07;
}
.pro-oferta-pix-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.pro-oferta-qr {
    border: 1.5px dashed #d5dde8;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
}
.pro-oferta-qr img {
    max-width: 148px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.pro-oferta-copy label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0c326f;
    margin-bottom: 6px;
}
.pro-oferta-copy-row {
    display: flex;
    gap: 8px;
}
.pro-oferta-copy-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dde4ee;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    background: #f8faff;
}
.pro-oferta-copy-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #1351B4;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .pro-oferta-pix-body { grid-template-columns: 1fr; }
}

/* Página PIX da oferta — QR sempre visível (1 container só) */
.oferta-pix-page .pro-pix-qr-panel [id^="qrcode-container"] {
    display: flex !important;
}
.oferta-pix-page .pro-oferta-pix-card {
    margin-top: 0;
}
