/* Ajuda: resumo do menu, botão ⓘ das telas e tutorial guiado (help.js). Carregado por último. */

/* ---- resumo ao passar o mouse no menu ---- */
.nav-tooltip {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  background: #16182b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .25);
  pointer-events: none;
  display: grid;
  gap: 2px;
}
.nav-tooltip[hidden] { display: none; }
.nav-tooltip strong { font-size: 13px; }
.nav-tooltip span { color: #cfd3e6; }
.nav-tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left: 0;
  border-right-color: #16182b;
}

/* ---- botão ⓘ ao lado do título de cada tela ---- */
.heading-with-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.heading-with-info > h1, .heading-with-info > h2 { margin-bottom: 0; }
.section-heading .heading-with-info { margin-bottom: 6px; }
.info-button {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--primary, #4338ca);
  background: var(--primary-soft, #eef2ff);
  color: var(--primary, #4338ca);
  font: italic 800 13px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: background .15s, color .15s;
}
.info-button:hover, .info-button:focus-visible { background: var(--primary, #4338ca); color: #fff; outline: none; }

/* ---- janela de explicação ---- */
.help-dialog {
  border: 0;
  border-radius: 16px;
  padding: 22px 24px;
  width: min(520px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  color: var(--ink, #16182b);
}
.help-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.help-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.help-head h2 { margin: 0; font-size: 20px; flex: 1; }
.help-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary, #4338ca); color: #fff;
  font: italic 800 15px/1 Georgia, serif;
}
.help-close { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted, #6c7186); padding: 4px 8px; }
.help-purpose { margin: 0 0 12px; line-height: 1.55; }
.help-dialog h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #6c7186); margin: 0 0 6px; }
.help-dialog ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.help-tip { background: var(--primary-soft, #eef2ff); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; line-height: 1.5; }
.help-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- tutorial ---- */
.tutorial-button {
  border: 1px solid var(--line, #e4e6ef);
  background: #fff;
  color: var(--primary, #4338ca);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.tutorial-button::before { content: "?"; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 6px; border-radius: 50%; background: var(--primary, #4338ca); color: #fff; font-size: 11px; }
.tour-layer { position: fixed; inset: 0; z-index: 70; }
.tour-layer[hidden] { display: none; }
.tour-shade { position: absolute; inset: 0; }
.tour-spot {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .55), 0 0 0 3px #a5b4fc;
  pointer-events: none;
  transition: all .25s ease;
}
.tour-spot[hidden] { display: none; }
.tour-layer.no-spot .tour-shade { background: rgba(15, 23, 42, .55); }
.tour-card {
  position: fixed;
  width: min(340px, calc(100vw - 24px));
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
  transition: top .25s ease, left .25s ease;
}
.tour-card.centered { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.tour-card h2 { margin: 2px 0 6px; font-size: 18px; }
.tour-card p { margin: 0 0 14px; line-height: 1.55; }
.tour-progress { font-size: 11px; font-weight: 800; color: var(--primary, #4338ca); text-transform: uppercase; letter-spacing: .06em; }
.tour-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.tour-skip { margin-right: auto; border: 0; background: none; color: var(--muted, #6c7186); cursor: pointer; font-size: 13px; padding: 0; }

/* sem mouse (celular/tablet): nada de resumo flutuante */
@media (hover: none) { .nav-tooltip { display: none !important; } }
