/* =====================================================================
   GerenciaCar — páginas públicas (site, ajuda, institucional e acesso).
   Carregado pelos layouts site.php e auth.php. O painel (/app) não usa.
   ===================================================================== */
.pub {
    --p-bg: #ffffff;
    --p-bg-2: #f6f7f9;
    --p-line: #e4e7ec;
    --p-line-2: #d0d5dd;
    --p-ink: #101828;
    --p-text: #344054;
    --p-muted: #667085;
    --p-blue: #006eee;
    --p-blue-dark: #0058c0;
    --p-blue-soft: #eaf2ff;
    --p-navy: #022755;
    --p-dark: #0b1220;
    --p-on-dark: #c4ccd9;
    --p-accent-dark: #6aaeff;
    --p-green: #12805c;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
.pub h1, .pub h2, .pub h3, .pub h4, .pub h5, .pub h6 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--p-ink); letter-spacing: -.015em; }
.pub a { color: var(--p-blue); }
.pub a:hover { color: var(--p-blue-dark); text-decoration: none; }
.pub .container { max-width: 1160px; }

/* ---------------- Botões ---------------- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; font-size: 16px; padding: 13px 28px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.p-btn-lg { font-size: 17px; padding: 16px 34px; }
.p-btn-sm { font-size: 14px; padding: 9px 18px; }
.p-btn-primary { background: var(--p-blue); color: #fff !important; }
.p-btn-primary:hover { background: var(--p-blue-dark); }
.p-btn-outline { border-color: var(--p-line-2); color: var(--p-ink) !important; background: #fff; }
.p-btn-outline:hover { border-color: var(--p-ink); }
.p-btn-white { background: #fff; color: var(--p-ink) !important; }
.p-btn-white:hover { background: #e9edf3; }
.p-btn-ghost-dark { border-color: rgba(255,255,255,.3); color: #fff !important; }
.p-btn-ghost-dark:hover { border-color: #fff; }

/* Botões do Bootstrap nas páginas públicas (formulários de acesso etc.) */
.pub .btn { border-radius: 999px; font-weight: 600; }
.pub .btn-primary { background: var(--p-blue); border-color: var(--p-blue); }
.pub .btn-primary:hover, .pub .btn-primary:focus { background: var(--p-blue-dark); border-color: var(--p-blue-dark); }

/* ---------------- Navegação ---------------- */
.pub .site-nav { background: #fff; border-bottom: 1px solid var(--p-line); box-shadow: none; padding-top: 12px; padding-bottom: 12px; }
.pub .site-nav .navbar-brand img { height: 32px; }
.pub .site-nav .nav-link { color: var(--p-text) !important; font-weight: 500; font-size: 15px; }
.pub .site-nav .nav-link:hover, .pub .site-nav .nav-link:focus { color: var(--p-ink) !important; }
.pub .site-nav .dropdown-menu { border: 1px solid var(--p-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.08); padding: 6px; margin-top: 8px; }
.pub .site-nav .dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: 15px; color: var(--p-text); }
.pub .site-nav .dropdown-item:hover { background: var(--p-bg-2); color: var(--p-ink); }
.nav-free { font-size: 13px; font-weight: 600; color: var(--p-green); white-space: nowrap; }
@media (min-width: 992px) { .pub .site-nav .nav-link { padding-left: 14px !important; padding-right: 14px !important; } }
@media (max-width: 991px) { .pub .site-nav .navbar-nav { padding: 12px 0 6px; } .pub .site-nav .p-btn { margin-top: 8px; } }

/* ---------------- Seções ---------------- */
.p-section { padding: 96px 0; }
.p-section-sm { padding: 64px 0; }
.p-alt { background: var(--p-bg-2); }
.p-title { font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.p-sub { font-size: 1.1rem; color: var(--p-muted); max-width: 620px; line-height: 1.6; }
.p-center { text-align: center; }
.p-center .p-sub { margin-left: auto; margin-right: auto; }
.p-label { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--p-blue); margin-bottom: 14px; }
.p-hl { color: var(--p-blue); }
.p-note { font-size: 14px; color: var(--p-muted); }

/* ---------------- Hero com foto ---------------- */
.p-hero { position: relative; overflow: hidden; background: var(--p-dark); color: var(--p-on-dark); }
.p-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.p-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,32,.94) 0%, rgba(11,18,32,.82) 45%, rgba(11,18,32,.55) 100%); }
.p-hero .container { position: relative; padding-top: 104px; padding-bottom: 104px; }
.p-hero h1 { color: #fff; font-size: 3.5rem; font-weight: 800; line-height: 1.05; letter-spacing: -.025em; margin-bottom: 26px; }
.p-hero h1 .p-hl { color: var(--p-accent-dark); }
.p-hero .p-lead { font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 36px; font-weight: 400; }
.p-hero .p-note { color: rgba(255,255,255,.5); margin-top: 16px; }
.p-hero .breadcrumb { background: none; padding: 0; margin-bottom: 22px; font-size: 14px; }
.p-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.p-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.p-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.p-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Cabeçalho claro das páginas internas */
.p-page-head { background: var(--p-bg-2); border-bottom: 1px solid var(--p-line); padding: 64px 0 56px; }
.p-page-head h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.p-page-head .p-sub { margin-bottom: 0; }
.p-page-head .breadcrumb { background: none; padding: 0; margin-bottom: 18px; font-size: 14px; }
.p-page-head .breadcrumb a { color: var(--p-muted); }
.p-page-head .breadcrumb-item.active { color: var(--p-ink); }

/* ---------------- Tela do sistema (demonstração) ---------------- */
.p-shot { background: #fff; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); overflow: hidden; color: var(--p-text); font-size: 13px; }
.p-alt .p-shot, .p-page-head .p-shot, .p-light .p-shot { border-color: var(--p-line); box-shadow: 0 24px 48px -24px rgba(16,24,40,.25); }
.p-shot-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--p-navy); color: #fff; }
.p-shot-top img { height: 18px; }
.p-shot-top span { font-size: 11px; color: rgba(255,255,255,.6); }
.p-shot-body { padding: 16px; }
.p-shot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.p-shot-head strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--p-ink); }
.p-shot-head small { color: var(--p-muted); font-size: 11.5px; }
.p-shot-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.p-shot-kpis div { border: 1px solid var(--p-line); border-radius: 8px; padding: 9px 10px; }
.p-shot-kpis b { display: block; font-size: 16px; color: var(--p-ink); font-weight: 700; }
.p-shot-kpis small { font-size: 10.5px; color: var(--p-muted); }
.p-shot table { width: 100%; border-collapse: collapse; }
.p-shot th { font-size: 10.5px; font-weight: 600; color: var(--p-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--p-line); text-align: left; }
.p-shot td { padding: 9px 8px; border-bottom: 1px solid #f0f2f5; color: var(--p-ink); white-space: nowrap; }
.p-shot tr:last-child td { border-bottom: 0; }
.p-shot .tag { font-size: 10.5px; font-weight: 600; border-radius: 4px; padding: 2px 7px; }
.p-shot .tag-blue { background: #e6f0ff; color: #0058c0; }
.p-shot .tag-green { background: #e3f6ee; color: #0f6b4c; }
.p-shot .tag-amber { background: #fff2d9; color: #95580a; }
.p-shot-foot { padding: 8px 16px; background: var(--p-bg-2); border-top: 1px solid var(--p-line); font-size: 11px; color: var(--p-muted); }
.pub .plate { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 11px; letter-spacing: .04em; border: 1px solid var(--p-line-2); border-top: 3px solid #1d4fa8; border-radius: 3px; padding: 0 5px; background: #fff; color: var(--p-ink); }

/* ---------------- Faixa de segmentos ---------------- */
.p-strip { border-bottom: 1px solid var(--p-line); padding: 40px 0; }
.p-strip p { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--p-muted); margin-bottom: 18px; }
.p-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 48px; }
.p-strip li a { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.25rem; font-weight: 700; color: #98a2b3; transition: color .2s; }
.p-strip li a:hover { color: var(--p-ink); }

/* ---------------- Bloco "grátis" ---------------- */
.p-free { border: 1px solid #b9d5ff; background: #f5f9ff; border-radius: 24px; padding: 44px; }
.p-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.p-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--p-ink); }
.p-checks i { color: var(--p-blue); margin-top: 4px; flex-shrink: 0; }
.p-free-foot { margin-top: 32px; padding-top: 28px; border-top: 1px solid #d6e5fb; text-align: center; }
.p-free-foot strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--p-ink); }

/* ---------------- Módulos ---------------- */
.p-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-module { border: 1px solid var(--p-line); border-radius: 16px; padding: 26px; background: #fff; transition: border-color .2s; }
.p-module:hover { border-color: #a9c8f5; }
.p-module-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.p-module-head i { color: var(--p-blue); font-size: 18px; }
.p-module-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.p-module ul { list-style: none; padding: 0; margin: 0; }
.p-module li { position: relative; padding-left: 18px; font-size: 15px; color: var(--p-muted); line-height: 1.5; margin-bottom: 8px; }
.p-module li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #9cc3f7; }
.p-module p { font-size: 15px; color: var(--p-muted); margin: 0; line-height: 1.55; }

/* ---------------- Segmentos (lista com link) ---------------- */
.p-seg-list { border-top: 1px solid var(--p-line); }
.p-seg-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--p-line); color: inherit !important; }
.p-seg-row:hover h3 { color: var(--p-blue); }
.p-seg-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--p-blue-soft); color: var(--p-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.p-seg-row h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; transition: color .2s; }
.p-seg-row p { margin: 0; color: var(--p-muted); font-size: 15px; }
.p-seg-row .icon-arrow-right { color: var(--p-muted); font-size: 20px; transition: transform .2s; }
.p-seg-row:hover .icon-arrow-right { transform: translateX(4px); color: var(--p-blue); }

/* ---------------- Passos ---------------- */
.p-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: passo; }
.p-step { border-top: 2px solid var(--p-ink); padding-top: 22px; }
.p-step span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 700; color: var(--p-blue); }
.p-step h3 { font-size: 1.25rem; font-weight: 700; margin: 8px 0 10px; }
.p-step p { color: var(--p-muted); margin: 0; line-height: 1.6; }

/* ---------------- FAQ (lista com linhas) ---------------- */
.pub .faq .card { border: 0; border-bottom: 1px solid var(--p-line); border-radius: 0 !important; box-shadow: none; background: transparent; margin: 0 !important; }
.pub .faq .card-header { background: transparent; border: 0; padding: 0 !important; }
.pub .faq .card-header button { position: relative; color: var(--p-ink); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1.1rem; text-decoration: none; white-space: normal; text-align: left; padding: 24px 48px 24px 0 !important; border-radius: 0; }
.pub .faq .card-header button:hover { color: var(--p-blue); }
.pub .faq .card-header button:focus { box-shadow: none; }
.pub .faq .card-header button::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: 'Inter', sans-serif; font-weight: 300; font-size: 26px; color: var(--p-muted); transition: transform .2s; }
.pub .faq .card-header button[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }
.pub .faq .card-body { padding: 0 0 24px !important; color: var(--p-muted) !important; line-height: 1.65; max-width: 720px; }
.pub .faq { border-top: 1px solid var(--p-line); }

/* ---------------- Parceiro ---------------- */
.pub .partner-banner { border: 1px solid var(--p-line); border-radius: 16px; background: #fff; padding: 22px 26px; }
.pub .partner-banner .partner-tag { font-size: 12px; color: var(--p-muted); letter-spacing: .08em; }
.pub .partner-banner h3 { color: var(--p-ink) !important; }
.pub .partner-banner .btn { border-radius: 999px; }

/* ---------------- CTA final ---------------- */
.p-final { background: var(--p-dark); color: var(--p-on-dark); text-align: center; padding: 104px 0; }
.p-final h2 { color: #fff; font-size: 2.8rem; font-weight: 800; line-height: 1.12; max-width: 760px; margin: 0 auto 18px; }
.p-final h2 .p-hl { color: var(--p-accent-dark); }
.p-final p { font-size: 1.15rem; color: rgba(255,255,255,.65); margin-bottom: 34px; }
.p-final .p-note { color: rgba(255,255,255,.45); margin: 18px 0 0; }

/* ---------------- Páginas de conteúdo ---------------- */
.p-prose { max-width: 760px; }
.p-prose h2 { font-size: 1.45rem; font-weight: 700; margin: 40px 0 12px; }
.p-prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.p-prose p, .p-prose li { font-size: 1.05rem; line-height: 1.75; color: var(--p-text); }
.p-prose ul, .p-prose ol { padding-left: 22px; }
.p-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.p-prose a { text-decoration: underline; text-underline-offset: 3px; }
.p-meta { font-size: 14px; color: var(--p-muted); }

.p-card { border: 1px solid var(--p-line); border-radius: 16px; background: #fff; padding: 26px; }
.p-card h2, .p-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.p-sticky { position: sticky; top: 96px; }
.p-link-list { list-style: none; padding: 0; margin: 0; }
.p-link-list li { border-top: 1px solid var(--p-line); }
.p-link-list li:first-child { border-top: 0; }
.p-link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--p-ink); font-weight: 500; font-size: 15px; }
.p-link-list a:hover { color: var(--p-blue); }
.p-link-list i { color: var(--p-muted); }

.p-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-article { display: flex; flex-direction: column; border: 1px solid var(--p-line); border-radius: 16px; padding: 24px; background: #fff; color: inherit !important; transition: border-color .2s; }
.p-article:hover { border-color: #a9c8f5; }
.p-article h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; line-height: 1.35; }
.p-article p { color: var(--p-muted); font-size: 15px; margin: 0 0 16px; flex: 1; line-height: 1.55; }
.p-article span { font-size: 14px; font-weight: 600; color: var(--p-blue); }
.p-group-title { font-size: 1.15rem; font-weight: 700; margin: 48px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--p-line); }
.p-group-title:first-child { margin-top: 0; }
.p-empty { border: 1px dashed var(--p-line-2); border-radius: 16px; padding: 40px; text-align: center; color: var(--p-muted); }

/* ---------------- Rodapé ---------------- */
.pub .site-footer { background: var(--p-dark); color: #8c96a8; padding: 72px 0 28px; font-size: 14.5px; }
.pub .site-footer h6 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.pub .site-footer a { color: #b8c0cd; }
.pub .site-footer a:hover { color: #fff; }
.pub .site-footer li { margin-bottom: 8px; }
.pub .site-footer .footer-free { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #7fd1a8; }
.pub .site-footer hr { border-color: rgba(255,255,255,.08) !important; margin: 32px 0 20px; }

/* ---------------- Acesso (login e cadastro) ---------------- */
.p-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.p-auth-form { display: flex; flex-direction: column; padding: 32px 24px; }
.p-auth-form > .p-auth-brand img { height: 32px; }
.p-auth-inner { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; }
.p-auth.wide .p-auth-inner { max-width: 640px; }
.p-auth-inner h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.p-auth-inner .p-sub { font-size: 1rem; margin-bottom: 28px; }
.p-auth-inner label { font-size: 14px; font-weight: 600; color: var(--p-ink); margin-bottom: 6px; }
.p-auth-inner .form-control { height: 46px; border-radius: 10px; border-color: var(--p-line-2); font-size: 15px; padding: 10px 14px; }
.p-auth-inner select.form-control { padding: 8px 10px; }
.p-auth-inner .form-control:focus { border-color: var(--p-blue); box-shadow: 0 0 0 3px rgba(0,110,238,.15); }
.p-auth-inner .btn-primary { height: 48px; font-size: 16px; }
.p-auth-inner .btn-lg { height: 52px; }
.p-auth-inner hr { border-color: var(--p-line); margin: 24px 0; }
.p-auth-inner h2 { font-size: 15px; font-weight: 700; margin: 8px 0 14px; }
.p-auth-alt { font-size: 15px; color: var(--p-muted); }
.p-auth-legal { font-size: 13px; color: var(--p-muted); text-align: center; }
.p-auth-legal a { color: var(--p-muted); }
.p-auth-side { position: relative; background: var(--p-dark); color: var(--p-on-dark); overflow: hidden; display: flex; align-items: flex-end; padding: 56px; }
.p-auth-side .p-hero-photo::after { background: linear-gradient(180deg, rgba(11,18,32,.35) 0%, rgba(11,18,32,.92) 70%); }
.p-auth-side-inner { position: relative; max-width: 460px; }
.p-auth-side h2 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.p-auth-side h2 .p-hl { color: var(--p-accent-dark); }
.p-auth-side p { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.6; }
.p-auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.p-auth-side li { padding: 6px 0; color: #fff; }
.p-auth-side li i { color: var(--p-accent-dark); margin-right: 10px; }
.pub .segment-check .custom-control { display: inline-block; margin-right: 18px; margin-bottom: 8px; }
.pub .segment-check .custom-control-label { font-weight: 500; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 991px) {
    .p-hero .container { padding-top: 72px; padding-bottom: 72px; }
    .p-hero h1 { font-size: 2.8rem; }
    .p-modules, .p-articles { grid-template-columns: 1fr 1fr; }
    .p-steps { grid-template-columns: 1fr; gap: 28px; }
    .p-auth { grid-template-columns: 1fr; }
    .p-auth-side { display: none; }
}
@media (max-width: 767px) {
    .pub { font-size: 15px; }
    .p-section { padding: 64px 0; }
    .p-hero .container { padding-top: 56px; padding-bottom: 56px; }
    .p-hero h1 { font-size: 2.2rem; }
    .p-hero .p-lead { font-size: 1.05rem; }
    .p-hero .p-btn, .p-final .p-btn { width: 100%; }
    .p-hero-photo::after { background: rgba(11,18,32,.86); }
    .p-title, .p-final h2 { font-size: 1.85rem; }
    .p-page-head { padding: 44px 0 40px; }
    .p-page-head h1 { font-size: 1.9rem; }
    .p-free { padding: 28px 22px; }
    .p-checks { grid-template-columns: 1fr; }
    .p-free-foot strong { font-size: 1.5rem; }
    .p-modules, .p-articles { grid-template-columns: 1fr; }
    .p-seg-row { grid-template-columns: 48px 1fr; }
    .p-seg-row .icon-arrow-right { display: none; }
    .p-strip li a { font-size: 1.05rem; }
    .p-shot-kpis { grid-template-columns: 1fr 1fr; }
    .p-shot .hide-xs { display: none; }
    .p-final { padding: 72px 0; }
    .p-auth-inner { padding: 24px 0; }
}

/* Cadastro usa a coluna mais larga */
.p-auth-inner:has(.p-auth-wide) { max-width: 640px; }
.pub .container { padding-left: 20px; padding-right: 20px; }
@media (max-width: 575px) {
    .pub .site-nav .navbar-brand img { height: 24px; }
    .p-hero .breadcrumb, .p-page-head .breadcrumb { display: none; }
}
