/* =========================================================
   Integra CRM: seções das páginas de conteúdo (notas fiscais, CDR...)
   Mesmo visual claro do hero (css/integra-hero.css)
   ========================================================= */
.pg-shell {
    --pg-blue: #2563eb;
    --pg-indigo: #4f46e5;
    --pg-ink: #0f172a;
    --pg-text: #475569;
    --pg-muted: #64748b;
    --pg-line: #e2e8f0;
    --pg-soft: #f5f8ff;
    padding-top: 52px;
    background: #ffffff;
    color: var(--pg-text);
}

.pg-section { padding: 76px 0; }
.pg-section.pg-alt { background: var(--pg-soft); border-top: 1px solid #edf1f7; border-bottom: 1px solid #edf1f7; }
.pg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.pg-head { max-width: 760px; margin: 0 0 40px; }
.pg-head.pg-center { margin-left: auto; margin-right: auto; text-align: center; }
.pg-eyebrow {
    display: inline-block; margin-bottom: 12px; color: var(--pg-blue);
    font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.pg-head h2, .pg-split h2 {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
    color: var(--pg-ink); font-size: 34px; line-height: 1.2; margin: 0 0 14px;
}
.pg-head p, .pg-split p { font-size: 17px; line-height: 1.75; color: var(--pg-text); margin: 0 0 14px; }

/* Cartões */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-cards.pg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-cards.pg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card {
    background: #ffffff; border: 1px solid var(--pg-line); border-radius: 18px; padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.pg-alt .pg-card { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.pg-card .pg-ico {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef4ff, #f3f1ff); color: var(--pg-blue); font-size: 20px; margin-bottom: 16px;
}
.pg-card h3 { color: var(--pg-ink); font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.pg-card p { font-size: 15px; line-height: 1.65; margin: 0; color: var(--pg-text); }
a.pg-card { display: block; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.pg-card:hover, a.pg-card:focus { transform: translateY(-4px); border-color: #c7d7fe; box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12); }
a.pg-card .pg-more { display: inline-block; margin-top: 14px; color: var(--pg-blue); font-weight: 600; font-size: 14.5px; }

/* Texto + captura */
.pg-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pg-split.pg-rev > :first-child { order: 2; }
.pg-list { list-style: none; padding: 0; margin: 18px 0 0; }
.pg-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16px; line-height: 1.6; color: var(--pg-text); }
.pg-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--pg-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pg-list li b { color: var(--pg-ink); font-weight: 600; }

.pg-shot { margin: 0; }
.pg-shot .pg-frame {
    border-radius: 14px; overflow: hidden; background: #ffffff; border: 1px solid #dfe6f2;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.25), 0 10px 24px rgba(15, 23, 42, 0.06);
}
.pg-shot .pg-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e8edf5; }
.pg-shot .pg-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.pg-shot .pg-bar i:nth-child(1) { background: #f87171; }
.pg-shot .pg-bar i:nth-child(2) { background: #fbbf24; }
.pg-shot .pg-bar i:nth-child(3) { background: #34d399; }
.pg-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 800; background: #f8fafc; }
.pg-shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--pg-muted); text-align: center; }

/* Passos */
.pg-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: passo; }
.pg-steps.pg-s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-steps li {
    counter-increment: passo; background: #ffffff; border: 1px solid var(--pg-line); border-radius: 16px;
    padding: 20px 18px; font-size: 15px; line-height: 1.6;
}
.pg-steps li::before {
    content: counter(passo); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 10px; margin-bottom: 12px; color: #ffffff; font-weight: 600;
    background: linear-gradient(135deg, var(--pg-blue), var(--pg-indigo));
}
.pg-steps li b { display: block; color: var(--pg-ink); font-weight: 600; font-size: 16px; margin-bottom: 4px; }

/* Aviso honesto: o que o sistema não faz */
.pg-note {
    margin-top: 32px; padding: 18px 22px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a;
    color: #78350f; font-size: 15px; line-height: 1.65;
}
.pg-note b { font-weight: 600; }

/* Perguntas */
.pg-faq { max-width: 860px; margin: 0 auto; }
.pg-faq details { background: #ffffff; border: 1px solid var(--pg-line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.pg-faq summary {
    cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
    color: var(--pg-ink); font-weight: 600; font-size: 16.5px;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--pg-blue); }
.pg-faq details[open] summary::after { content: "−"; }
.pg-faq details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; }

/* Chamada final */
.pg-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 34px 38px; border-radius: 22px; color: #ffffff;
    background: radial-gradient(600px 240px at 90% 0%, rgba(255,255,255,0.14), transparent 60%), linear-gradient(135deg, #1d4ed8, #4f46e5);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.25);
}
.pg-cta h2 { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; color: #ffffff; font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
.pg-cta p { margin: 0; color: rgba(255,255,255,0.88); font-size: 16.5px; line-height: 1.6; max-width: 640px; }
.pg-cta .pg-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 12px;
    background: #ffffff; color: #1d4ed8 !important; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.pg-cta .pg-btn:hover { background: #eef2ff; }

@media (max-width: 1100px) {
    .pg-steps, .pg-steps.pg-s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-cards.pg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .pg-section { padding: 56px 0; }
    .pg-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .pg-split.pg-rev > :first-child { order: 0; }
    .pg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-head h2, .pg-split h2 { font-size: 28px; }
}
@media (max-width: 640px) {
    .pg-wrap { padding: 0 16px; }
    .pg-cards, .pg-cards.pg-2, .pg-cards.pg-4, .pg-steps, .pg-steps.pg-s4 { grid-template-columns: minmax(0, 1fr); }
    .pg-head h2, .pg-split h2 { font-size: 25px; }
    .pg-head p, .pg-split p { font-size: 16px; }
    .pg-cta { padding: 26px 22px; }
    .pg-cta h2 { font-size: 23px; }
    .pg-cta .pg-btn { width: 100%; justify-content: center; }
}

/* ---------- Páginas legais (política de privacidade, termos) ---------- */
.pg-legal-hero { padding: 132px 0 44px; background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%); border-bottom: 1px solid #edf1f7; }
.pg-legal-hero h1 { margin: 6px 0 14px; font-size: 40px; line-height: 1.15; color: var(--pg-ink); font-weight: 700; }
.pg-legal-hero p { max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--pg-text); margin: 0; }
.pg-legal-hero .pg-legal-data { margin-top: 14px; font-size: 13.5px; color: var(--pg-muted); }
.pg-legal { padding-top: 48px; }
.pg-legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.pg-legal-indice { position: sticky; top: 84px; padding: 18px 18px 14px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; }
.pg-legal-indice b { display: block; margin-bottom: 8px; font-size: 13px; color: var(--pg-ink); }
.pg-legal-indice ol { margin: 0; padding-left: 20px; list-style: decimal !important; }
.pg-legal-indice li { display: list-item !important; list-style: decimal !important; margin: 0 0 6px; font-size: 13.5px; line-height: 1.4; color: var(--pg-muted); }
.pg-legal-indice a { color: var(--pg-text); }
.pg-legal-indice a:hover { color: var(--pg-blue); }
.pg-legal-texto { max-width: 780px; }
.pg-legal-texto section { padding-bottom: 8px; scroll-margin-top: 84px; }
.pg-legal-texto h2 { margin: 28px 0 12px; font-size: 22px; line-height: 1.3; color: var(--pg-ink); font-weight: 600; }
.pg-legal-texto section:first-child h2 { margin-top: 0; }
.pg-legal-texto p, .pg-legal-texto li { font-size: 16px; line-height: 1.7; color: var(--pg-text); }
.pg-legal-texto p { margin: 0 0 12px; }
.pg-legal-texto ul { margin: 0 0 14px; padding-left: 20px; list-style: disc !important; }
.pg-legal-texto ul li { display: list-item !important; list-style: disc !important; }
.pg-legal-texto li { margin-bottom: 6px; }
.pg-legal-texto a { color: var(--pg-blue); text-decoration: underline; text-underline-offset: 2px; }
.pg-legal-texto code { font-size: 14px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; color: var(--pg-ink); }
@media (max-width: 900px) {
    .pg-legal-hero { padding: 104px 0 32px; }
    .pg-legal-hero h1 { font-size: 30px; }
    .pg-legal-grid { grid-template-columns: 1fr; gap: 28px; }
    .pg-legal-indice { position: static; }
}

