:root {
    /* Paleta Salesforce Lightning (SLDS) — azul + tema claro */
    --primary: #0176d3;
    --primary-dark: #014486;
    --primary-soft: rgba(1, 118, 211, 0.10);
    --navy: #032d60;
    --bg: #f3f3f3;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --border: #dddbda;
    --text: #181818;
    --text-muted: #5c5c66;
    --success: #2e844a;
    --success-soft: rgba(46, 132, 74, 0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 14px 36px rgba(1, 55, 96, 0.16);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: white;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 2000;
}

.skip-link:focus {
    left: 0;
}

a {
    color: inherit;
}

code {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.9em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    color: var(--text);
}

.brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), #4fa8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-badge svg {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: white !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 6px;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* Hero */
.hero {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -160px;
    right: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(1, 118, 211, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero-lede {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.stat span {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 72px 24px;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-kicker {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.section h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.section > .section-inner > p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 680px;
}

/* Projects: grid built to grow, not two isolated blocks */
.section-heading-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.project-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.project-count-badge strong {
    color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(1, 118, 211, 0.4);
}

.project-card-more {
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: var(--text-muted);
    min-height: 220px;
}

.project-card-more svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.project-card-more strong {
    color: var(--text);
    font-size: 15px;
}

.project-card-more span {
    font-size: 13px;
    max-width: 220px;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.project-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #4fa8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.project-icon-alt {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.project-icon-alt2 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.project-icon-alt3 {
    background: linear-gradient(135deg, #a855f7, #c084fc);
}

.project-icon-alt4 {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.project-icon-alt5 {
    background: linear-gradient(135deg, #14b8a6, #5eead4);
}

.project-icon-alt6 {
    background: linear-gradient(135deg, #6366f1, #a5b4fc);
}

.project-icon-alt7 {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.project-icon-alt8 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.project-icon-alt9 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.project-icon-alt10 {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.project-icon-alt11 {
    background: linear-gradient(135deg, #059669, #34d399);
}

.project-icon svg {
    width: 26px;
    height: 26px;
}

.project-card h3 {
    margin: 0 0 4px;
    font-size: 20px;
}

.project-tagline {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.project-desc {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 18px;
}

.project-highlights {
    margin: 0 0 20px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.project-highlights li {
    margin-bottom: 6px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 22px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.project-metrics span::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 800;
}

.project-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Stack */
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stack-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* CTA */
.section-cta {
    text-align: center;
}

.section-cta h2 {
    margin-bottom: 12px;
}

.section-cta p {
    margin: 0 auto 28px;
}

.section-cta .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 720px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 24px 20px;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 11px 6px;
    }

    .nav-links a.nav-cta {
        width: auto;
        display: inline-block;
        margin-top: 8px;
        padding: 10px 22px;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 56px 20px 56px;
    }

    .section {
        padding: 48px 20px;
    }

    .project-card {
        padding: 22px;
    }

    .hero-stats {
        gap: 24px;
    }
}

/* ===== Serviços (conversão) ===== */
.section-lead {
    max-width: 640px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.service-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #4fa8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon svg { width: 24px; height: 24px; }
.service-icon-alt { background: linear-gradient(135deg, #10b981, #34d399); }
.service-icon-alt2 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.service-icon-alt3 { background: linear-gradient(135deg, #a855f7, #c084fc); }

.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.services-cta {
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.services-cta p { margin: 0; color: var(--text-muted); font-size: 15px; max-width: 560px; }
.services-cta .btn { flex-shrink: 0; }

/* ===== Formulário de lead ===== */
.lead-form {
    margin: 28px 0 20px;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-raised);
    color: inherit;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--text-muted); }

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.lead-form .btn { align-self: flex-start; }

.contact-alt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-alt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .lead-row { grid-template-columns: 1fr; }
    .services-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== Artigo / blog ===== */
.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.article-kicker {
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.article h1 {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.article-lede {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}

.article h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
}

.article h3 { font-size: 19px; margin: 0 0 10px; }

.article p { font-size: 16px; line-height: 1.75; margin: 0 0 16px; color: #3e3e3c; }

.article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { font-size: 16px; line-height: 1.7; margin-bottom: 8px; color: #3e3e3c; }

.article pre {
    background: #0b2338;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    overflow-x: auto;
    margin: 0 0 20px;
}

.article pre code {
    background: none;
    color: #e6e6ea;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.6;
    font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

.article-cta {
    margin-top: 48px;
    padding: 28px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.article-cta h3 { margin: 0 0 8px; font-size: 20px; }
.article-cta p { color: var(--text-muted); margin: 0 0 18px; }
.article-cta .btn { margin-right: 12px; margin-bottom: 8px; }

.article-card { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease; }
.article-card:hover { border-color: rgba(1, 118, 211, 0.45); transform: translateY(-3px); }
.article-card-link { margin-top: 14px; color: var(--primary); font-weight: 700; font-size: 14px; }

/* ===== Layout de blog (post individual) ===== */
.article-hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.article-hero-inner { max-width: 760px; }

.article-hero .article-kicker { margin-bottom: 12px; }

.article-hero h1 {
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-author {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.article-author:hover { text-decoration: underline; }

.article-banner {
    position: relative;
    height: 240px;
    margin-top: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #032d60 0%, #0176d3 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.20), transparent 60%);
}
.article-banner svg {
    width: 92px;
    height: 92px;
    stroke: #ffffff;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}
.article-banner img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }

.article-layout {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
    align-items: start;
}

.article-layout .article { max-width: 720px; }

.article-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-block {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    padding: 18px 20px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 8px;
}
.sidebar-title::before {
    content: "";
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

.sidebar-article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.sidebar-article:last-child { border-bottom: none; padding-bottom: 4px; }
.sidebar-article .sa-num {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgba(1, 118, 211, 0.38);
    min-width: 24px;
    transition: color 0.15s ease;
}
.sidebar-article .sa-body { display: block; flex: 1; min-width: 0; }
.sidebar-article .sa-kicker {
    display: block;
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.sidebar-article .sa-title {
    display: block;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.15s ease;
}
.sidebar-article .sa-arrow {
    align-self: center;
    color: var(--primary);
    font-size: 15px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.sidebar-article:hover .sa-title { color: var(--primary); }
.sidebar-article:hover .sa-num { color: var(--primary); }
.sidebar-article:hover .sa-arrow { opacity: 1; transform: translateX(0); }

.sidebar-cta p { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 880px) {
    .article-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-sidebar { position: static; }
    .article-layout .article { max-width: none; }
}

/* ===== Botão flutuante de WhatsApp (gatilho persistente) ===== */
.wa-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, background 0.15s ease;
}
.wa-fab:hover { transform: translateY(-2px); background: var(--primary-dark); }
.wa-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 560px) {
    .wa-fab { padding: 14px; }
    .wa-fab-text { display: none; }
}

/* ===== Como funciona (3 passos) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.step-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 18px; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    padding: 4px 20px;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 700;
    font-size: 15.5px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ===== Índice do blog ===== */
/* ---- Carrossel de destaques do blog ---- */
.blog-hero {
    position: relative;
    margin-top: 32px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(3, 45, 96, 0.16);
    background: var(--navy);
}
.blog-hero-viewport { overflow: hidden; }
.blog-hero-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-hero-slide {
    position: relative;
    min-width: 100%;
    aspect-ratio: 2.6 / 1;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    overflow: hidden;
}
.blog-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}
.blog-hero-slide:hover .blog-hero-img { transform: scale(1.05); }
.blog-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 40px 44px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(to top, rgba(3, 20, 44, 0.92) 0%, rgba(3, 20, 44, 0.55) 45%, rgba(3, 20, 44, 0) 100%);
}
.blog-hero-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 999px;
}
.blog-hero-title {
    color: #ffffff;
    font-size: clamp(20px, 3.2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    max-width: 80%;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.blog-hero-cta {
    color: #9fd0ff;
    font-weight: 700;
    font-size: 14px;
    margin-top: 2px;
}
.blog-hero-dots {
    position: absolute;
    bottom: 16px;
    right: 44px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.blog-hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}
.blog-hero-dot.is-active { background: #ffffff; width: 22px; border-radius: 999px; }

/* ---- Termo com link pro glossário (dentro dos artigos) ---- */
.glossary-term {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
    cursor: help;
    transition: color 0.15s ease, background 0.15s ease;
}
.glossary-term:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

/* ---- Glossário ---- */
.glossary-cat {
    margin: 40px 0 4px;
    font-size: 20px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}
.glossary-cat::before {
    content: "";
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}
.glossary { margin: 0; }
.glossary dt {
    font-weight: 700;
    color: var(--text);
    font-size: 17px;
    margin-top: 22px;
    padding-left: 14px;
    border-left: 3px solid var(--primary);
    scroll-margin-top: 90px;
}
.glossary dt:target {
    animation: glossary-flash 1.6s ease;
}
@keyframes glossary-flash {
    0%, 30% { background: var(--primary-soft); }
    100% { background: transparent; }
}
.glossary dd {
    margin: 6px 0 0 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.glossary dd a { color: var(--primary); font-weight: 600; }

.blog-all-heading {
    margin: 44px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-all-heading::before {
    content: "";
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--primary);
}

/* ---- Grade de artigos com miniatura ---- */
.blog-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    border-color: rgba(1, 118, 211, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(3, 45, 96, 0.12);
}
.blog-card-img {
    aspect-ratio: 1.91 / 1;
    background-size: cover;
    background-position: center;
    background-color: var(--navy);
}
.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.blog-card-kicker {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-card-title {
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.blog-card-link {
    margin-top: auto;
    padding-top: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}
.blog-card:hover .blog-card-link { text-decoration: underline; }

@media (max-width: 640px) {
    .blog-hero-slide { aspect-ratio: 1.6 / 1; }
    .blog-hero-overlay { padding: 24px 22px 22px; }
    .blog-hero-title { max-width: 100%; }
    .blog-hero-dots { right: 22px; }
}

/* ===== Blog home 2.0 (13/07/2026): mosaico de destaque + filtros + busca ===== */
.bft {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    margin-top: 34px;
}
.bft-side { display: grid; gap: 18px; }
.bft-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 200px;
    background: var(--navy);
    box-shadow: 0 10px 30px rgba(3, 45, 96, 0.18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.bft-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(3, 45, 96, 0.28); }
.bft-main { min-height: 418px; }
.bft-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .4s ease;
    opacity: .92;
}
.bft-card:hover .bft-img { transform: scale(1.04); }
.bft-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    padding: 22px 24px;
    background: linear-gradient(180deg, rgba(3,45,96,0) 30%, rgba(3,45,96,.88) 100%);
}
.bft-new {
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: #ffffff; color: var(--primary-dark);
    padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.bft-kicker {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #9fd0f5; margin-bottom: 6px;
}
.bft-title { color: #ffffff; font-weight: 700; line-height: 1.25; font-size: 18px; }
.bft-main .bft-title { font-size: clamp(20px, 2.6vw, 28px); }
.bfc-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    margin-top: 40px;
    justify-content: space-between;
}
.bfc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bfc-chip {
    border: 1px solid rgba(3, 45, 96, 0.15);
    background: #ffffff; color: var(--navy);
    font: inherit; font-size: 13.5px; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; cursor: pointer;
    transition: all .18s ease;
}
.bfc-chip span { color: var(--primary); font-weight: 700; margin-left: 4px; font-size: 12px; }
.bfc-chip:hover { border-color: var(--primary); }
.bfc-chip.is-active { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.bfc-chip.is-active span { color: #cfe9fb; }
.bfs {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ffffff; border: 1px solid rgba(3, 45, 96, 0.15); border-radius: 999px;
    padding: 7px 14px; color: var(--navy);
}
.bfs:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.bfs svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--primary); }
.bfs input {
    border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px;
    width: 170px; color: inherit;
}
.blog-index-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 22px;
}
.bf-empty { margin-top: 28px; color: var(--navy); opacity: .7; }
.bf-glossario {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 48px; padding: 22px 26px;
    background: linear-gradient(120deg, var(--navy), var(--primary-dark));
    border-radius: 16px; color: #ffffff;
}
.bf-glossario h3 { margin: 0 0 4px; font-size: 18px; }
.bf-glossario p { margin: 0; font-size: 14px; opacity: .85; max-width: 60ch; }
.bf-glossario a {
    background: #ffffff; color: var(--primary-dark); font-weight: 700; font-size: 14px;
    padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
@media (max-width: 820px) {
    .bft { grid-template-columns: 1fr; }
    .bft-main { min-height: 260px; }
    .bfc-bar { flex-direction: column; align-items: stretch; }
    .bfs { width: 100%; }
    .bfs input { width: 100%; }
}

/* Sumário automático dos posts (3+ seções) */
.post-toc {
    background: #ffffff;
    border: 1px solid rgba(3, 45, 96, 0.12);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 22px 0 6px;
}
.post-toc-title {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 8px;
}
.post-toc ol { margin: 0; padding-left: 20px; }
.post-toc li { margin: 4px 0; font-size: 14.5px; }
.post-toc a { color: var(--navy); text-decoration: none; }
.post-toc a:hover { color: var(--primary); text-decoration: underline; }

/* Placeholder das miniaturas antes do lazy-load */
.blog-card-img { background-color: #dce8f5; }

/* ===== Revisao estrutural 25/07/2026: footer rico + h1 do blog ===== */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    margin-bottom: 12px;
}
.footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 13.5px;
    opacity: .8;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.page-title {
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.2;
    margin: 0 0 10px;
}

/* ===== Tabelas dos artigos (25/07/2026 — antes renderizavam sem estilo nenhum) ===== */
.table-scroll { overflow-x: auto; margin: 20px 0; }
.article table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid rgba(3, 45, 96, 0.14);
    border-radius: 10px;
    overflow: hidden;
}
.article th {
    background: #eaf3fb;
    color: var(--navy);
    text-align: left;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(1, 118, 211, 0.35);
    white-space: nowrap;
}
.article td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(3, 45, 96, 0.10);
    vertical-align: top;
}
.article tbody tr:nth-child(even) { background: #f7fafd; }
.article tbody tr:last-child td { border-bottom: 0; }
.article td:first-child, .article th:first-child { padding-left: 16px; }
.article tbody td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
@media (max-width: 640px) {
    .article tbody td:first-child { white-space: normal; }
}

/* ===== Refresh visual 2026 (14/07): profundidade no hero, polish nos cards ===== */
.hero {
    background:
        radial-gradient(circle at 88% 6%, rgba(1, 118, 211, 0.10), transparent 42%),
        radial-gradient(circle at 4% 94%, rgba(3, 45, 96, 0.07), transparent 46%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(3, 45, 96, 0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(circle at 72% 26%, #000, transparent 68%);
    mask-image: radial-gradient(circle at 72% 26%, #000, transparent 68%);
    pointer-events: none;
}
.hero-content { z-index: 1; }
.hero-content h1 { text-wrap: balance; letter-spacing: -0.02em; }
.hero-glow {
    background: radial-gradient(circle, rgba(1, 118, 211, 0.22), transparent 68%);
    filter: blur(4px);
}

/* Kicker com traço-marcador */
.section-kicker::before {
    content: "";
    display: inline-block;
    width: 16px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 3px;
}

/* Cards: elevacao no hover */
.service-card, .step-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover, .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(3, 45, 96, 0.14);
    border-color: rgba(1, 118, 211, 0.35);
}

/* Botao primario com profundidade */
.btn-primary {
    background: linear-gradient(180deg, #128ce8, var(--primary));
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(1, 118, 211, 0.35);
    filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .service-card, .step-card, .btn-primary { transition: none; }
    .service-card:hover, .step-card:hover, .btn-primary:hover { transform: none; }
}
