/* ════════════════════════════════════════════════
   VARIÁVEIS & TEMA
   ════════════════════════════════════════════════ */
:root {
    --primary:        #2563eb;
    --primary-dark:   #1d4ed8;
    --primary-deep:   #1e3a8a;
    --accent:         #7c3aed;
    --success:        #059669;
    --success-light:  #d1fae5;
    --danger:         #dc2626;
    --danger-light:   #fee2e2;
    --warning:        #d97706;
    --warning-light:  #fef3c7;

    --bg:             #f0f4ff;
    --bg-2:           #e8eeff;
    --surface:        #ffffff;
    --surface-2:      #f8fafc;
    --border:         #e2e8f0;
    --border-2:       #cbd5e1;

    --text:           #0f172a;
    --text-2:         #334155;
    --text-muted:     #64748b;
    --text-faint:     #94a3b8;

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.1),  0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-md:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
    --shadow-xl:  0 25px 50px -12px rgba(0,0,0,.18);

    --trans:      all .2s cubic-bezier(.4,0,.2,1);
    --trans-slow: all .35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
    --bg:         #0b1120;
    --bg-2:       #111827;
    --surface:    #1a2235;
    --surface-2:  #1e2b40;
    --border:     #2d3f5a;
    --border-2:   #3d5070;

    --text:       #f1f5f9;
    --text-2:     #cbd5e1;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
    --shadow:     0 4px 6px -1px rgba(0,0,0,.5);
    --shadow-md:  0 10px 15px -3px rgba(0,0,0,.5);
    --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.5);
    --shadow-xl:  0 25px 50px -12px rgba(0,0,0,.6);
}

/* ════════════════════════════════════════════════
   RESET
   ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: var(--trans-slow);
    line-height: 1.6;
}

/* ════════════════════════════════════════════════
   TOGGLE TEMA
   ════════════════════════════════════════════════ */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--trans);
    font-size: 16px;
}
.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--primary);
    color: var(--primary);
}

/* ════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════ */
.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

/* ════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════ */
.header {
    text-align: center;
    margin-bottom: 44px;
    animation: fadeDown .5s ease both;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.logo-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-deep), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,99,235,.35);
    flex-shrink: 0;
}
.logo h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    text-align: left;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    font-size: .875rem;
    color: var(--text-muted);
    font-weight: 400;
    text-align: left;
    margin-top: 2px;
}

/* ════════════════════════════════════════════════
   BUSCA
   ════════════════════════════════════════════════ */
.search-section { animation: fadeUp .5s ease .05s both; }
.search-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.search-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: .3px;
}
.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.input-wrapper {
    flex: 1;
    position: relative;
}
.cnpj-input {
    width: 100%;
    padding: 15px 44px 15px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.15rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-2);
    transition: var(--trans);
    letter-spacing: 1.5px;
    outline: none;
}
.cnpj-input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.cnpj-input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    color: var(--text-faint);
}
.input-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    cursor: pointer;
    font-size: 15px;
    transition: var(--trans);
    line-height: 1;
    border: none;
    background: none;
    padding: 0;
}
.input-clear:hover { color: var(--danger); }

/* ════════════════════════════════════════════════
   BOTÕES
   ════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(.97) !important; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; pointer-events: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 18px rgba(37,99,235,.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,.45);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #0d9488);
    color: #fff;
    box-shadow: 0 4px 18px rgba(5,150,105,.3);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5,150,105,.4);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text-2);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover {
    background: var(--border);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }

/* ════════════════════════════════════════════════
   ALERTA DE ERRO
   ════════════════════════════════════════════════ */
.error-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    border-left: 4px solid var(--danger);
    animation: fadeIn .2s ease;
}

/* ════════════════════════════════════════════════
   LOADER
   ════════════════════════════════════════════════ */
.loader-section {
    margin-top: 32px;
    animation: fadeIn .3s ease;
}
.loader-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    position: relative;
}
.spinner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid var(--border);
    border-top-color: var(--primary);
    animation: spin .75s linear infinite;
}
.loader-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.loader-subtext { font-size: .85rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   RESULTADO — CARTÃO CNPJ
   ════════════════════════════════════════════════ */
.result-section { margin-top: 32px; animation: fadeUp .45s ease both; }

.cnpj-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

/* Cabeçalho do cartão */
.card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #7c3aed 100%);
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}
.card-header::before,
.card-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.card-header::before { width: 280px; height: 280px; top: -100px; right: -60px; }
.card-header::after  { width: 180px; height: 180px; bottom: -80px; left: -40px; }

.card-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.company-name-h {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 4px;
}
.company-fantasy-h {
    font-size: .9rem;
    color: rgba(255,255,255,.8);
    margin-bottom: 10px;
}
.header-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.status-ATIVA     { background: rgba(5,150,105,.25); border: 1px solid rgba(5,150,105,.5); color: #6ee7b7; }
.status-SUSPENSA  { background: rgba(217,119,6,.25);  border: 1px solid rgba(217,119,6,.5);  color: #fcd34d; }
.status-INAPTA    { background: rgba(220,38,38,.25);  border: 1px solid rgba(220,38,38,.5);  color: #fca5a5; }
.status-BAIXADA   { background: rgba(100,116,139,.25);border: 1px solid rgba(100,116,139,.5);color: #cbd5e1; }
.status-NULA      { background: rgba(100,116,139,.2); border: 1px solid rgba(100,116,139,.4);color: #cbd5e1; }

.mf-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    letter-spacing: .3px;
}

.cnpj-pill {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    text-align: center;
    flex-shrink: 0;
}
.cnpj-pill-label {
    font-size: .68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    display: block;
    margin-bottom: 5px;
}
.cnpj-pill-value {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Corpo do cartão */
.card-body { padding: 32px 36px; }

.card-columns {
    display: grid;
    grid-template-columns: 1fr 148px;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

/* Seções de info */
.info-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.info-block:last-child { margin-bottom: 0; }

.info-block-title {
    background: var(--bg-2);
    padding: 9px 16px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-rows { padding: 4px 0; }
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.info-row:last-child { border-bottom: none; }
.info-row.full-row {
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}
.info-label {
    font-size: .79rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.info-value {
    font-size: .875rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.info-row.full-row .info-value { text-align: left; }

/* QR code */
.qr-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.qr-block img {
    border-radius: var(--radius-sm);
    display: block;
}
.qr-block-label {
    font-size: .67rem;
    color: var(--text-faint);
    text-align: center;
    letter-spacing: .4px;
    line-height: 1.5;
}

/* Endereço */
.address-block {
    background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(124,58,237,.05));
    border: 1px solid rgba(37,99,235,.15);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.address-block-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.address-text {
    font-size: .92rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.75;
}

/* QSA */
.qsa-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qsa-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.qsa-item:last-child { border-bottom: none; }
.qsa-role {
    font-size: .76rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.qsa-name {
    font-size: .875rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Rodapé do cartão */
.card-footer-bar {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 14px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-brand {
    font-size: .78rem;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-brand i { color: var(--primary); }
.footer-actions { display: flex; gap: 8px; align-items: center; }

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    cursor: pointer;
    transition: var(--trans);
}
.btn-copy:hover  { background: #eff6ff; color: var(--primary); border-color: var(--primary); }
.btn-copy.copied { background: var(--success-light); color: var(--success); border-color: var(--success); }

/* Badges inline */
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: .72rem;
    font-weight: 600;
}
.badge-blue  { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-gray  { background: #f1f5f9; color: #475569; }

/* ════════════════════════════════════════════════
   DADOS COMPLEMENTARES
   ════════════════════════════════════════════════ */
.complement-section {
    margin-top: 20px;
    animation: fadeUp .4s ease both;
}
.complement-card {
    background: var(--surface);
    border: 1.5px dashed var(--border-2);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
}
.complement-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.complement-header > i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}
.complement-header h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.complement-header p { font-size: .8rem; color: var(--text-muted); }
.complement-tag {
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.complement-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.complement-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.complement-field label i { color: var(--primary); font-size: .78rem; }
.field-hint {
    font-size: .67rem;
    font-weight: 500;
    color: var(--text-faint);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 1px 7px;
    border-radius: 8px;
}
.complement-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    transition: var(--trans);
    outline: none;
}
.complement-field input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.complement-field input::placeholder { color: var(--text-faint); font-weight: 400; }

.complement-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-2);
    transition: var(--trans);
    outline: none;
    cursor: pointer;
    appearance: auto;
}
.complement-select:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* Badges de situação IE dentro do cartão */
.ie-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-left: 6px;
}
.ie-ATIVA      { background: #d1fae5; color: #065f46; }
.ie-BLOQUEADA  { background: #fee2e2; color: #991b1b; }
.ie-INAPTA     { background: #fee2e2; color: #991b1b; }
.ie-CANCELADA  { background: #f1f5f9; color: #475569; }
.ie-ISENTA     { background: #dbeafe; color: #1e40af; }

@media (max-width: 560px) {
    .complement-card    { padding: 18px 16px; }
    .complement-fields  { grid-template-columns: 1fr; }
}

/* Barra de ações */
.action-bar {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    animation: fadeUp .4s ease .1s both;
}

/* ════════════════════════════════════════════════
   RODAPÉ DA PÁGINA
   ════════════════════════════════════════════════ */
.page-footer {
    text-align: center;
    padding: 32px 20px;
    font-size: .8rem;
    color: var(--text-faint);
}

/* ════════════════════════════════════════════════
   UTILITÁRIOS
   ════════════════════════════════════════════════ */
.hidden { display: none !important; }

/* ════════════════════════════════════════════════
   ANIMAÇÕES
   ════════════════════════════════════════════════ */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown  { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(16px);  } to { opacity: 1; transform: none; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes pulse     { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ════════════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════════════ */
@media (max-width: 660px) {
    .container  { padding: 28px 16px 48px; }
    .search-card { padding: 24px 20px; }
    .input-row  { flex-direction: column; align-items: stretch; }
    .btn-primary { justify-content: center; }
    .logo       { flex-direction: column; text-align: center; gap: 12px; }
    .hero-title, .subtitle { text-align: center; }
    .hero-title { font-size: 2rem; }
    .card-header { padding: 24px 20px; }
    .card-header-inner { flex-direction: column; }
    .cnpj-pill  { width: 100%; }
    .card-body  { padding: 24px 20px; }
    .card-columns { grid-template-columns: 1fr; }
    .card-footer-bar { padding: 14px 20px; }
    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar .btn { justify-content: center; }
}

/* ════════════════════════════════════════════════
   SEÇÃO SEO — INFORMACIONAL + FAQ
   ════════════════════════════════════════════════ */
.seo-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 20px 72px;
}
.seo-container {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.seo-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.seo-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -.3px;
    line-height: 1.3;
}
.seo-block p {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 12px;
}
.seo-block p:last-child { margin-bottom: 0; }
.seo-block a { color: var(--primary); text-decoration: none; }
.seo-block a:hover { text-decoration: underline; }

.seo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.seo-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.5;
}
.seo-list li i {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: .85rem;
}

/* ── FAQ Accordion ── */
.faq-wrapper { display: flex; flex-direction: column; gap: 0; }
.faq-wrapper > .seo-heading { margin-bottom: 20px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item[open] { border-color: var(--primary); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 12px;
    transition: color .2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    line-height: 1;
    transition: transform .2s;
}
details[open] > .faq-question { color: var(--primary); }
details[open] > .faq-question::after { content: '−'; }

.faq-answer {
    padding: 0 20px 16px;
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}
.faq-status-list li { line-height: 1.6; }

@media (max-width: 660px) {
    .seo-section { padding: 48px 16px 56px; }
    .seo-cols    { grid-template-columns: 1fr; gap: 32px; }
}

/* ════════════════════════════════════════════════
   CACHE NOTICE
   ════════════════════════════════════════════════ */
.cache-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: #1d4ed8;
    flex-wrap: wrap;
    animation: fadeIn .3s ease;
}
[data-theme="dark"] .cache-notice {
    background: rgba(37,99,235,.12);
    border-color: rgba(37,99,235,.28);
    color: #93c5fd;
}
.cache-notice > i { flex-shrink: 0; }
.cache-notice-text { flex: 1; min-width: 0; }

.btn-force-refresh {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-force-refresh:hover { opacity: .7; }

/* ════════════════════════════════════════════════
   SEÇÃO COMO EMITIR (HOW-TO)
   ════════════════════════════════════════════════ */
.how-to-section {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    padding: 56px 20px 64px;
}

.how-to-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.how-to-steps li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.how-to-steps li > div {
    flex: 1;
    padding-top: 6px;
}

.how-to-steps li p strong {
    font-weight: 700;
    color: var(--text);
}

.how-to-steps li p {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 660px) {
    .how-to-section { padding: 40px 16px 48px; }
    .how-to-steps li { gap: 14px; }
    .step-number { width: 34px; height: 34px; min-width: 34px; font-size: .9rem; }
}

/* ── Header intro paragraph ── */
.header-intro {
    max-width: 680px;
    margin: 16px auto 0;
    font-size: .93rem;
    color: var(--text-2);
    line-height: 1.8;
    text-align: center;
    padding: 0 8px;
}

/* ── H3 inside how-to steps ── */
.how-to-steps h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* ── H3 inside FAQ summary (accordion) ── */
.faq-question h3 {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

/* ── Footer links + legal ── */
.page-footer a {
    color: var(--text-faint);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ════════════════════════════════════════════════
   SEÇÃO DE CONTEÚDO INFORMACIONAL (info-section)
   ════════════════════════════════════════════════ */
.info-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px 20px 72px;
}

.info-container {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Heading dentro do card */
.info-card > .seo-heading {
    margin-bottom: 18px;
}

/* FAQ list dentro do card */
.info-card .faq-list {
    margin-top: 4px;
}

/* Texto dos parágrafos nas seções informacionais */
.seo-text {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 12px;
}
.seo-text:last-child { margin-bottom: 0; }

/* Lista "Para que serve" com span para cor uniforme */
.seo-list li span {
    color: var(--text-2);
    font-size: .92rem;
    line-height: 1.5;
}
.seo-list li span strong {
    color: var(--text);
    font-weight: 700;
}

/* Hero title (visual brand name no topo — não é H1 semântico) */
.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    text-align: left;
    color: var(--text);
    margin: 0;
}

/* H1 semântico dentro do primeiro info-card */
.info-card > h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.4px;
    line-height: 1.25;
    margin: 0 0 14px 0;
}

/* Separador visual entre o parágrafo intro e os passos */
.steps-intro {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px !important;
}

@media (max-width: 720px) {
    .info-section  { padding: 32px 16px 56px; }
    .info-grid     { grid-template-columns: 1fr; }
    .info-card     { padding: 24px 20px; }
    .info-card > h1 { font-size: 1.25rem; }
}
.page-footer a:hover { color: var(--text-2); }

.footer-legal {
    margin-top: 6px;
    font-size: .74rem;
    opacity: .75;
}

/* ════════════════════════════════════════════════
   BARRA FIXA "DESENVOLVIDO POR EGESTOR"
   ════════════════════════════════════════════════ */
.dev-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-muted);
}

[data-theme="dark"] .dev-bar {
    background: rgba(26,34,53,.92);
}

.dev-bar a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.dev-bar-logo {
    height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.dev-bar-fallback {
    display: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: #00a86b;
    letter-spacing: -.3px;
}

.dev-bar a:hover .dev-bar-fallback,
.dev-bar a:hover .dev-bar-logo { opacity: .75; }

body { padding-bottom: 62px; }
