/* =====================================================================
   O diagnóstico do EXIT OS dentro do hub (1.03.135).
   Só o que o hub acrescenta às páginas do protótipo v97, no mesmo
   desenho delas (system-ui, névoa azul, botões em pílula escura):
   a entrada com nome e WhatsApp, os horários livres da agenda e a
   barra de volta ao Comercial nas páginas do gestor.
   ===================================================================== */

#clientIntro[hidden], #hubLead[hidden] { display: none !important; }

/* ---- a entrada: nome e WhatsApp, antes da apresentação ---------------- */
.capture-app .hub-lead { max-width: 560px; margin: 0 auto; padding: 14px 4px 56px; text-align: center; animation: hub-lead-entra .5s ease-out both; }
.hub-lead > small { display: block; font-size: 10px; letter-spacing: 2px; color: #788fa3; font-weight: 700; }
.hub-lead h2 { margin: 18px auto 8px; font-size: clamp(24px, 5vw, 32px); font-weight: 400; line-height: 1.35; color: #384c60; }
.hub-lead h2::first-line { font-weight: 400; }
.hub-lead > p { margin: 0 auto 18px; max-width: 470px; font-size: clamp(16px, 3.8vw, 18px); line-height: 1.6; color: #4a6074; }
.hub-lead form { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; text-align: left; }
.hub-lead label { font-size: 13px; font-weight: 600; color: #52748c; letter-spacing: .2px; margin-top: 6px; }
.hub-lead input { width: 100%; box-sizing: border-box; min-height: 54px; font-size: 17px; padding: 12px 16px; border-radius: 16px; border: 1px solid #d3e0ea; background: #ffffffd9; color: #253d50; }
.hub-lead input:focus { outline: none; border-color: #7fb4dc; box-shadow: 0 0 0 4px #bfe0f855; }
.hub-lead .hub-lead__aceite { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: #7a8fa1; text-align: center; }
.hub-lead .hub-lead__erro { min-height: 20px; margin: 4px 0 0; font-size: 14px; color: #b42318; text-align: center; }
.hub-lead button[type=submit] { justify-self: center; margin-top: 6px; background: #111b23; color: #fff; border: 0; border-radius: 999px; padding: 16px 30px; font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px #0f203226; }
.hub-lead button[type=submit]:disabled { opacity: .55; cursor: progress; }
.hub-lead button[type=submit]:focus-visible { outline: 3px solid #7fb4dc; outline-offset: 3px; }
@keyframes hub-lead-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .capture-app .hub-lead { animation: none; } }
@media (max-width: 440px) {
  .capture-app .hub-lead { padding-top: 18px; }
  .hub-lead h2 { margin-top: 18px; }
  .hub-lead > p { margin-bottom: 18px; }
}

/* ---- os horários livres da agenda ------------------------------------ */
.hub-slots { margin: 4px 0 10px; }
.hub-slots__msg { margin: 6px 0; font-size: 14px; line-height: 1.5; color: #5d7486; }
.hub-slots__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.hub-slot { min-height: 44px; border-radius: 12px; border: 1px solid #cfdeea; background: #ffffffd9; color: #253d50; font-size: 15px; font-weight: 600; cursor: pointer; padding: 0; box-shadow: none; }
.hub-slot:hover { border-color: #7fb4dc; background: #f1f8fd; }
.hub-slot.is-escolhido { background: #111b23; border-color: #111b23; color: #fff; }
.hub-slot:focus-visible { outline: 3px solid #7fb4dc; outline-offset: 2px; }
.hub-slots__aviso { margin: 6px 0 0; font-size: 14px; color: #b42318; }

/* ---- a barra de volta (painel e briefing do gestor) -------------------- */
.hub-barra { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 20px; background: #0b0e1af2; color: #c7cedc; font: 14px/1.4 system-ui, sans-serif; backdrop-filter: blur(6px); }
.hub-barra a { color: #fff; text-decoration: none; font-weight: 600; }
.hub-barra a:hover { text-decoration: underline; }
.hub-barra span { margin-left: auto; color: #9aa6bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
@media (max-width: 440px) { .hub-barra span { margin-left: 0; max-width: 100%; } }

/* ---- 1.03.145: a agenda que não está pronta, o próximo dia livre ------- */
.hub-slots__acao { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 0 4px; padding: 10px 18px; border-radius: 999px; border: 0; background: #111b23; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: none; width: auto; }
.hub-slots__acao:disabled { opacity: .6; cursor: progress; }
.hub-slots__acao:focus-visible { outline: 3px solid #7fb4dc; outline-offset: 3px; }
.hub-slots__msg--dia { font-weight: 600; color: #253d50; }
.hub-slots__ok { margin: 6px 0; font-size: 14px; color: #146c43; font-weight: 600; }

/* ---- 1.03.145: o link de cadastro ------------------------------------- */
.hub-cadastro input { width: 100%; box-sizing: border-box; margin-bottom: 12px; }
.hub-cadastro__botoes { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 4px 0; }
.hub-cadastro__botoes button, .hub-cadastro__botoes a { width: auto; margin: 0; }
.hub-cadastro__botoes a { font-weight: 600; color: #1f4f73; }
.hub-cadastro__copiado { min-height: 20px; margin: 6px 0 0; font-size: 14px; color: #146c43; }
.hub-cadastro__passos { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hub-cadastro__passos li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #5d7486; }
.hub-cadastro__passos li.is-ok { color: #1d3b2c; font-weight: 600; }
.hub-cadastro__marca { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9cad7; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: #fff; box-sizing: border-box; }
.hub-cadastro__passos li.is-ok .hub-cadastro__marca { background: #1f8a5b; border-color: #1f8a5b; }
.hub-cadastro-cta { margin: 14px 0 4px; padding: 16px 18px; border-radius: 16px; background: #eef7f1; border: 1px solid #b7dcc6; color: #23402f; text-align: left; }
.hub-cadastro-cta strong { display: block; font-size: 16px; margin-bottom: 4px; }
.hub-cadastro-cta p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
.hub-cadastro-cta .hub-cadastro__botoes button, .hub-cadastro-cta .hub-cadastro__botoes a { font-size: 14px; }
.hub-cadastro-cta__botao, .hub-cadastro-final { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border-radius: 999px; background: #111b23; color: #fff !important; font-weight: 600; text-decoration: none; }
.hub-cadastro-final { margin-top: 10px; background: #1f8a5b; }
.hub-cadastro-cta__botao:focus-visible, .hub-cadastro-final:focus-visible { outline: 3px solid #7fb4dc; outline-offset: 3px; }

/* ---- 1.03.145: o briefing do gestor na ordem --------------------------- */
#briefing .is-locked { opacity: .4; filter: saturate(.3); transition: opacity .2s; }
#briefing .is-next { position: relative; }
#briefing .field.is-next::before { content: ''; position: absolute; left: -10px; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: #2f6f9f; }
.gate-intro { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { #briefing .is-locked { transition: none; } }
.hub-cadastro-cta .hub-cadastro__copiado:empty { display: none; }
