/* ============================================================
   Kratos — camada de demonstração (guia + selo)
   Componente injetado em todas as telas do mockup.
   Explica cada funcionalidade em linguagem simples.
   ============================================================ */

/* Selo "demonstração" — canto superior */
.kd-badge {
  position: fixed;
  top: 10px;
  right: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5a10;
  background: #f5d59c;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.92;
}
.kd-badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #c98a1e;
}

/* Botão flutuante "Sobre esta tela" */
.kd-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--coral, #dc5b48);
  border: none;
  padding: 11px 17px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220,91,72,0.32);
  transition: transform 150ms cubic-bezier(0.16,1,0.3,1), background 150ms;
}
.kd-fab:hover { background: #c94e3c; transform: translateY(-1px); }
.kd-fab:focus-visible { outline: 2px solid #101010; outline-offset: 2px; }
.kd-fab svg { width: 16px; height: 16px; }

/* Painel de explicação */
.kd-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16,16,16,0.42);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 22px;
}
.kd-overlay.open { display: flex; }
.kd-panel {
  font-family: var(--font, "Plus Jakarta Sans", sans-serif);
  background: var(--white, #fdf9f6);
  border: 1px solid var(--border, #eee0da);
  border-radius: 20px;
  width: 380px;
  max-width: calc(100vw - 44px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 60px rgba(16,16,16,0.28);
  animation: kdrise 260ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes kdrise { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .kd-panel { animation: none; } }

.kd-panel .kd-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral, #dc5b48); margin-bottom: 8px;
}
.kd-panel h3 {
  font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--texto, #1c1c1c);
  margin-bottom: 12px;
}
.kd-panel p {
  font-size: 14px; line-height: 1.6; color: var(--texto, #1c1c1c); margin-bottom: 12px;
}
.kd-panel .kd-agent {
  display:inline-block; font-size: 11px; font-weight: 600; color: var(--muted, #8a7a76);
  background: var(--base, #f6ede9); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px;
}
.kd-panel .kd-list { list-style: none; padding: 0; margin: 4px 0 16px; }
.kd-panel .kd-list li {
  position: relative; padding-left: 20px; font-size: 13.5px; line-height: 1.55;
  color: var(--texto, #1c1c1c); margin-bottom: 8px;
}
.kd-panel .kd-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--coral, #dc5b48);
}
.kd-panel .kd-close {
  width: 100%; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--texto, #1c1c1c); background: transparent; border: 1px solid var(--border, #eee0da);
  border-radius: 999px; padding: 10px; cursor: pointer; transition: border-color 150ms;
}
.kd-panel .kd-close:hover { border-color: var(--coral-suave, #eaa89b); }

/* Intro de boas-vindas (só na home, primeira visita) */
.kd-intro-card { text-align: left; }
.kd-intro-card .kd-nav-hint {
  display:flex; align-items:center; gap:8px; font-size: 12.5px; color: var(--muted,#8a7a76);
  background: var(--base,#f6ede9); border-radius: 12px; padding: 10px 12px; margin: 4px 0 16px;
}
.kd-intro-card .kd-nav-hint svg { width:16px; height:16px; flex:none; color: var(--coral,#dc5b48); }

@media (max-width: 640px) {
  .kd-fab span { display: none; }
  .kd-fab { padding: 13px; }
  .kd-overlay { align-items: stretch; justify-content: stretch; padding: 0; }
  .kd-panel { width: 100%; max-width: 100%; max-height: 100vh; border-radius: 0; }
}
