/* Ajeita AI — correções críticas pré-lançamento. Escopo: somente bloqueadores auditados. */

/* /empresas: restaura superfícies, contraste e continuidade sem alterar a estrutura. */
body.g7-ref-public .g7-ref-company-hero{padding:64px 0;background:#fff;color:#101421;}
body.g7-ref-public .g7-ref-company-hero h1{color:#101421!important;}
body.g7-ref-public .g7-ref-company-hero p{color:#5f6d80!important;}
body.g7-ref-public .g7-company-flow-card{background:#f7f9fc!important;border-color:#dbe4ef!important;color:#172033!important;box-shadow:0 12px 30px rgba(17,42,75,.06);}
body.g7-ref-public .g7-company-flow-card .g7-ref-eyebrow{color:#1b5fba!important;}
body.g7-ref-public .g7-company-flow-card b{background:#fff!important;border:1px solid #e0e7f0;color:#172033!important;}
body.g7-ref-public .g7-company-flow-card small{color:#637288!important;}
body.g7-ref-public .g7-company-process{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
body.g7-ref-public .g7-company-process article{min-width:0;border:1px solid #e0e6ee;border-radius:12px;background:#fff;padding:20px;}
body.g7-ref-public .g7-company-process article>span{display:inline-flex;color:#1b67d7;font-weight:800;font-size:11px;margin-bottom:10px;}
body.g7-ref-public .g7-company-process h3{color:#172033!important;font-size:15px;margin:0 0 8px;}
body.g7-ref-public .g7-company-process p{color:#667488!important;font-size:13px;line-height:1.55;margin:0;}
body.g7-ref-public .g7-company-dashboard-mock{min-height:280px;border:1px solid #dce4ed;border-radius:16px;background:#fff;padding:18px;box-shadow:0 14px 34px rgba(16,42,78,.06);}
body.g7-ref-public .g7-company-dashboard-mock header{display:flex;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid #edf1f5;color:#172033;}
body.g7-ref-public .g7-company-dashboard-mock header>span{width:10px;height:10px;border-radius:50%;background:#2477f3;}
body.g7-ref-public .g7-company-mock-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0;}
body.g7-ref-public .g7-company-mock-kpis i{height:62px;border-radius:10px;background:#f0f5fb;border:1px solid #e1e8f0;}
body.g7-ref-public .g7-company-mock-table{display:grid;gap:9px;}
body.g7-ref-public .g7-company-mock-table span{height:20px;border-radius:6px;background:#f4f7fa;border:1px solid #e7ecf2;}
body.g7-ref-public .g7-company-plan-card{min-height:180px;border:1px solid #dce4ed;border-radius:16px;background:#fff;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:10px;color:#172033;box-shadow:0 12px 30px rgba(16,42,78,.05);}
body.g7-ref-public .g7-company-plan-card>i{font-size:24px;color:#2477f3;}
body.g7-ref-public .g7-company-plan-card>strong{font-size:18px;}
body.g7-ref-public .g7-company-plan-card>span,body.g7-ref-public .g7-company-plan-card>small{color:#667488;}

/* Legal: cor é definida pela superfície do card, não apenas pelo tema global. */
html[data-resolved-theme="light"] body.g7-ref-public .g7-ref-legal-sections,
html:not([data-resolved-theme]) body.g7-ref-public .g7-ref-legal-sections{background:#fff!important;color:#101421!important;}
html[data-resolved-theme="light"] body.g7-ref-public .g7-ref-legal-sections section,
html:not([data-resolved-theme]) body.g7-ref-public .g7-ref-legal-sections section{background:#fbfcfd!important;border-color:#e1e6ec!important;color:#101421!important;}
html[data-resolved-theme="light"] body.g7-ref-public .g7-ref-legal-sections h2,
html:not([data-resolved-theme]) body.g7-ref-public .g7-ref-legal-sections h2{color:#172033!important;}
html[data-resolved-theme="light"] body.g7-ref-public .g7-ref-legal-sections p,
html:not([data-resolved-theme]) body.g7-ref-public .g7-ref-legal-sections p{color:#606c7c!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-card{background:#0d1d31!important;border-color:#29415f!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-sections{background:#0d1d31!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-sections section{background:#102139!important;border-color:#29415f!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-sections h2{color:#f2f6ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-legal-sections p{color:#b5c2d5!important;}

/* Login: permitir rolagem em qualquer altura/zoom. */
body.g7-ref-auth-body.g7-auth-login-v20{min-height:100vh!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;}
body.g7-auth-login-v20 .g7-ref-auth-shell{min-height:100vh!important;height:auto!important;overflow:visible!important;}
body.g7-auth-login-v20 .g7-ref-auth-main{height:auto!important;overflow:visible!important;}
body.g7-auth-login-v20 .g7-ref-auth-card{max-height:none!important;overflow:visible!important;}
@media (min-width:992px) and (max-height:900px){
  body.g7-auth-login-v20 .g7-ref-auth-main{padding-top:44px!important;padding-bottom:44px!important;}
  body.g7-auth-login-v20 .g7-ref-auth-copy{top:18%!important;}
}
@media (min-width:992px) and (max-height:760px){
  body.g7-auth-login-v20 .g7-ref-auth-main{padding-top:28px!important;padding-bottom:36px!important;}
  body.g7-auth-login-v20 .g7-ref-auth-copy{top:12%!important;}
  body.g7-auth-login-v20 .g7-ref-brand-auth{margin-bottom:26px!important;}
  body.g7-auth-login-v20 .g7-ref-auth-copy h2{margin-top:18px!important;}
}

/* Login dark: uma única superfície coerente no lado do formulário. */
html[data-resolved-theme="dark"] body.g7-ref-auth-body.g7-auth-login-v20{background:#07111f!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-ref-auth-shell,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-ref-auth-main{background:#081421!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-ref-auth-card{background:transparent!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-heading-v20 h1,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-field-v20 label{color:#f3f7ff!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-heading-v20 p,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-legal-v20,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-switch-v20{color:#aebdd1!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-input-v20 .form-control{background:#102139!important;border-color:#304765!important;color:#f2f6ff!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-input-v20 .form-control::placeholder{color:#8294ab!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-input-icon-v20,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-password-toggle-v20{background:#162a45!important;border-color:#2b4260!important;color:#dce8f8!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-google-button-v20,
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-benefits-v20{background:#102139!important;border-color:#304765!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-auth-login-v20 .g7-login-benefits-v20 span+span{border-color:#304765!important;}

/* Header: tema não pode ocultar funções; regras de exibição continuam apenas responsivas. */
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-header-actions,
html[data-resolved-theme="light"] body.g7-ref-public .g7-ref-header-actions{visibility:visible!important;opacity:1!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-public-search,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-public-theme{color:#eef4ff!important;border-color:#2d4260!important;background:#102139!important;}

/* Falsa Central/categorias: dark nunca pode cortar o fluxo antes do footer. */
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-common-section,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-how-section,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-result-section,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-final-cta{height:auto!important;max-height:none!important;overflow:visible!important;}

html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-company-hero{background:#081421!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-company-hero h1{color:#f2f6ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-ref-company-hero p{color:#aab9cc!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-flow-card,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-process article,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-dashboard-mock,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-plan-card{background:#102139!important;border-color:#29415f!important;color:#eef4ff!important;box-shadow:none;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-flow-card b{background:#162a45!important;border-color:#304765!important;color:#eef4ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-flow-card small,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-process p,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-plan-card>span,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-plan-card>small{color:#aab9cc!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-process h3,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-dashboard-mock header{color:#f2f6ff!important;}
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-mock-kpis i,
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-mock-table span{background:#162a45!important;border-color:#29415f!important;}

@media(max-width:991.98px){body.g7-ref-public .g7-company-process{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){body.g7-ref-public .g7-company-process{grid-template-columns:1fr;}}
/* /empresas dark: kicker sobre superfície azul precisa manter contraste suficiente. */
html[data-resolved-theme="dark"] body.g7-ref-public .g7-company-flow-card .g7-ref-eyebrow{color:#8fc1ff!important;}
