/* ==========================================================================
   SWINOTAS - PÁGINA INSTITUCIONAL
   Variáveis e componentes compartilhados em: components.css
   ========================================================================== */

/* ==========================================================================
   HERO SWINOTAS
   ========================================================================== */
.swinotas-hero-section {
    padding: 40px 0 60px;
    min-height: auto;
    background: var(--app-white);
    position: relative;
}

.swinotas-hero-section .page-header {
    max-width: 100%;
}

.swinotas-hero-section .page-title {
    font-size: 2.2rem;
    line-height: 1.25;
}

.swinotas-hero-section .page-subtitle {
    max-width: 100%;
    font-size: 1rem;
    color: var(--app-text-secondary);
    line-height: 1.7;
}

/* ========== GRID DOS CARDS HERO (lado direito) ========== */
.swinotas-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 400px;
    margin-left: auto;
}

.doc-card-hero {
    background: var(--app-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--app-transition);
}

.doc-card-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-lg);
    border-color: transparent;
}

/* ========== ÍCONES DOS CARDS HERO ========== */
.doc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--app-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.doc-card-icon.nfe {
    background: rgba(33, 115, 197, 0.08);
    color: var(--app-blue);
}

.doc-card-icon.nfce {
    background: rgba(23, 162, 184, 0.08);
    color: #17a2b8;
}

.doc-card-icon.cte {
    background: rgba(245, 158, 11, 0.08);
    color: var(--app-orange);
}

.doc-card-icon.mdfe {
    background: rgba(111, 66, 193, 0.08);
    color: var(--app-purple);
}

/* ========== TEXTOS DOS CARDS HERO ========== */
.doc-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.doc-card-info strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--app-text-primary);
    line-height: 1.2;
}

.doc-card-info span {
    font-size: 12px;
    color: var(--app-text-muted);
    font-weight: 400;
    line-height: 1.3;
}

/* ==========================================================================
   DOCUMENTOS SUPORTADOS (barra abaixo do hero)
   ========================================================================== */
.section-swinotas-docs {
    background: var(--app-light);
    padding: 32px 0;
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
}

.doc-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 8px;
}

.doc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--app-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--app-blue);
    margin-bottom: 4px;
}

.doc-stat-card strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--app-text-primary);
}

.doc-stat-card span {
    font-size: 12px;
    color: var(--app-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   RECURSOS SWINOTAS
   Reutiliza .recurso-card do home.css
   ========================================================================== */
.section-swinotas-recursos {
    padding: 80px 0;
    background: var(--app-white);
}

/* ==========================================================================
   OPERAÇÕES SWINOTAS
   Reutiliza .passo-card do home.css
   ========================================================================== */
.section-swinotas-operacoes {
    padding: 80px 0;
    background: var(--app-light);
}

/* ==========================================================================
   TECNOLOGIA SWINOTAS
   ========================================================================== */
.section-swinotas-tech {
    padding: 80px 0;
    background: var(--app-white);
}

.tech-card {
    background: var(--app-light);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    height: 100%;
    transition: var(--app-transition);
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow-md);
    border-color: transparent;
    background: var(--app-white);
}

.tech-card i {
    font-size: 24px;
    color: var(--app-blue);
    margin-bottom: 4px;
    opacity: 0.8;
}

.tech-card strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--app-text-primary);
}

.tech-card span {
    font-size: 12px;
    color: var(--app-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   CTA FINAL SWINOTAS
   ========================================================================== */
.section-swinotas-cta {
    padding: 80px 0;
    background: linear-gradient(160deg, #0f172a 0%, var(--app-dark) 40%, var(--app-dark-secondary) 100%);
    position: relative;
}

.section-swinotas-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(51, 219, 200, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(33, 115, 197, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.swinotas-cta-box {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.section-swinotas-cta .section-badge {
    background: rgba(33, 115, 197, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-swinotas-cta .section-title {
    color: var(--app-white);
    font-size: 1.85rem;
}

.section-swinotas-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 auto;
}

/* ==========================================================================
   BOTÃO OUTLINE PARA PÁGINAS INTERNAS
   ========================================================================== */

/* Na seção CTA (fundo escuro), sobrescrever para outline branco */
.section-swinotas-cta .btn-outline-page {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-swinotas-cta .btn-outline-page:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--app-white);
    box-shadow: none;
}

/* ==========================================================================
   RESPONSIVO - SWINOTAS
   ========================================================================== */
@media (max-width: 991px) {
    .swinotas-hero-section {
        padding: 32px 0 48px;
    }

    .swinotas-hero-section .page-title {
        font-size: 1.75rem;
    }

    .swinotas-docs-grid {
        display: none;
    }

    .section-swinotas-recursos,
    .section-swinotas-operacoes,
    .section-swinotas-tech,
    .section-swinotas-cta {
        padding: 60px 0;
    }

    .section-swinotas-cta .section-title {
        font-size: 1.55rem;
    }
}

@media (max-width: 575px) {
    .swinotas-hero-section {
        padding: 24px 0 36px;
    }

    .swinotas-hero-section .page-title {
        font-size: 1.4rem;
    }

    .swinotas-hero-section .hero-actions {
        flex-direction: column;
    }

    .swinotas-hero-section .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .doc-stat-card {
        padding: 12px 4px;
    }

    .doc-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .doc-stat-card strong {
        font-size: 12px;
    }

    .doc-stat-card span {
        font-size: 10px;
    }

    .section-swinotas-recursos,
    .section-swinotas-operacoes,
    .section-swinotas-tech,
    .section-swinotas-cta {
        padding: 48px 0;
    }

    .tech-card {
        padding: 18px 14px;
    }

    .tech-card i {
        font-size: 20px;
    }
}

/* ==========================================================================
   INTEGRAÇÃO ENTRE MÓDULOS
   ========================================================================== */
.section-swinotas-integracao {
    padding: 80px 0;
    background: var(--app-white);
    border-top: 1px solid var(--app-border);
}

.integracao-card {
    background: var(--app-light);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-xl);
    padding: 32px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--app-transition);
}

.integracao-card:hover {
    box-shadow: var(--app-shadow-lg);
    border-color: transparent;
}

.integracao-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--app-radius-lg);
    background: var(--app-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--app-blue);
    flex-shrink: 0;
}

.integracao-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-text-primary);
    margin-bottom: 8px;
}

.integracao-info p {
    font-size: 0.875rem;
    color: var(--app-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.integracao-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integracao-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--app-blue);
    background: var(--app-blue-light);
    padding: 4px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 991px) {
    .section-swinotas-integracao {
        padding: 60px 0;
    }
}

@media (max-width: 575px) {
    .section-swinotas-integracao {
        padding: 48px 0;
    }

    .integracao-card {
        flex-direction: column;
        padding: 24px 20px;
    }

    .integracao-tags {
        gap: 6px;
    }

    .integracao-tag {
        font-size: 10px;
    }
}









/* ==========================================================================
   DORES OPERACIONAIS — seção de reconhecimento do problema
   ========================================================================== */
.section-swinotas-dores {
    padding: 72px 0;
    background: var(--app-light);
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
}

.dor-card {
    background: var(--app-white);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--app-transition);
    position: relative;
    overflow: hidden;
}

.dor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ef4444 0%, #f97316 100%);
    border-radius: 3px 0 0 3px;
}

.dor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--app-shadow-lg);
    border-color: transparent;
}

.dor-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--app-radius);
    background: rgba(239, 68, 68, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ef4444;
    flex-shrink: 0;
}

.dor-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--app-text-primary);
    margin: 0;
    line-height: 1.3;
}

.dor-card p {
    font-size: 0.875rem;
    color: var(--app-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   INTEGRAÇÃO — bridge SwiNotas → SwiEstoque (clímax narrativo)
   Sobrescreve o .section-swinotas-integracao existente
   ========================================================================== */
.section-swinotas-integracao {
    padding: 80px 0;
    background: linear-gradient(160deg, #0c1628 0%, #0f1f3d 60%, #0d1b35 100%);
    border-top: none;
    position: relative;
    overflow: hidden;
}

.section-swinotas-integracao::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(33, 115, 197, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(51, 219, 200, 0.05) 0%, transparent 55%);
    pointer-events: none;
}

.section-swinotas-integracao .section-badge {
    background: rgba(33, 115, 197, 0.15);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-swinotas-integracao .section-title {
    color: #ffffff;
}

.section-swinotas-integracao .section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

/* Pipeline visual SwiNotas → SwiEstoque */
.integracao-pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    z-index: 1;
    margin-top: 12px;
}

.integracao-pipeline-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--app-radius-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--app-transition);
}

.integracao-pipeline-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.integracao-pipeline-card.card-disponivel {
    border-color: rgba(33, 115, 197, 0.35);
}

.integracao-pipeline-card.card-em-breve {
    border-color: rgba(245, 158, 11, 0.25);
}

.integracao-pipeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.integracao-pipeline-arrow i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.25);
}

.pipeline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pipeline-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--app-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pipeline-card-icon.icon-blue {
    background: rgba(33, 115, 197, 0.15);
    color: #60a5fa;
}

.pipeline-card-icon.icon-orange {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.pipeline-card-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pipeline-card-status.status-disponivel {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.pipeline-card-status.status-breve {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.20);
}

.pipeline-card-nome {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.pipeline-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
}

.pipeline-card-itens {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pipeline-card-itens li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.5;
}

.pipeline-card-itens li i {
    font-size: 11px;
    margin-top: 3px;
    flex-shrink: 0;
}

.pipeline-card-itens li i.fa-check {
    color: #4ade80;
}

.pipeline-card-itens li i.fa-clock {
    color: #fbbf24;
}

/* Responsivo pipeline */
@media (max-width: 991px) {
    .section-swinotas-integracao {
        padding: 60px 0;
    }

    .integracao-pipeline {
        flex-direction: column;
        gap: 0;
    }

    .integracao-pipeline-arrow {
        padding: 16px 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 575px) {
    .section-swinotas-integracao {
        padding: 48px 0;
    }

    .integracao-pipeline-card {
        padding: 24px 20px;
    }

    .pipeline-card-nome {
        font-size: 1rem;
    }
}



/* ==========================================================================
   DORES — RESPONSIVO
   ========================================================================== */
@media (max-width: 991px) {
    .section-swinotas-dores {
        padding: 56px 0;
    }
}

@media (max-width: 575px) {
    .section-swinotas-dores {
        padding: 44px 0;
    }

    .dor-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   PROVA DE USO NO HERO — "+12 mil documentos fiscais processados"
   Numero MEDIDO em producao (25/08/2026; COUNT = 12.293). A enfase vai no
   NUMERO e o resto fica em texto de apoio: e' o algarismo que sustenta a
   afirmacao, e era ele que faltava quando a pagina usava "cobertura completa".
   ========================================================================== */
.swinotas-prova {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--app-text-secondary);
    font-size: 0.95rem;
}

.swinotas-prova strong {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--app-blue);
    letter-spacing: -0.5px;
}

@media (max-width: 480px) {
    .swinotas-prova strong {
        font-size: 1.45rem;
    }
}