/* EVA, the live demo's AI guide (js/guide/*): the presenter dock that takes
 * over the tour's caption bar — his face on the left, what he says on the
 * right, a box to ask her anything underneath. Brand dark, cyan → azure; no
 * green. */

.gd-dock {
  width: min(860px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-areas: "face body" "foot foot";
  column-gap: 22px;
  row-gap: 14px;
  padding: 20px 22px 16px;
}
.gd-dock .tour-close { top: 12px; right: 12px; }

/* ── the face ─────────────────────────────────────────────── */
.gd-face { grid-area: face; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ava {
  --lvl: 0;
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px rgba(60, 204, 252, 0.25), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.ava svg { display: block; width: 100%; height: 100%; }
.ava-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(60, 204, 252, calc(0.15 + var(--lvl) * 0.85)),
    inset 0 0 calc(14px + var(--lvl) * 26px) rgba(60, 204, 252, calc(var(--lvl) * 0.45));
  transition: box-shadow 80ms linear;
}
.ava[data-state="think"] .ava-ring { animation: gd-think 1.1s ease-in-out infinite; }
@keyframes gd-think {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(24, 152, 252, 0.25); }
  50% { box-shadow: inset 0 0 0 2px rgba(60, 204, 252, 0.9), inset 0 0 22px rgba(60, 204, 252, 0.35); }
}
.gd-who { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.gd-name { font: 600 15px/1 var(--font-heading); letter-spacing: 0.14em; color: var(--text); }
.gd-ai {
  padding: 2px 6px;
  border-radius: 6px;
  font: 600 10px/1.3 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  color: #031019;
  background: linear-gradient(90deg, var(--cyan, #3cccfc), var(--azure, #1898fc));
}
.gd-live { font-size: 10.5px; color: var(--text-secondary, #8595b2); }
.gd-live:empty { display: none; }
.gd-role { margin: 0; font-size: 11.5px; line-height: 1.3; text-align: center; color: var(--text-secondary, #8595b2); }

/* ── what she says ─────────────────────────────────────────── */
.gd-body { grid-area: body; min-width: 0; padding-right: 30px; }
.gd-body .tour-text { min-height: 3.1em; }

.gd-answer {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(60, 204, 252, 0.22);
  background: rgba(60, 204, 252, 0.05);
  animation: gd-pop 260ms cubic-bezier(.2, .8, .2, 1);
}
.gd-answer[hidden] { display: none; }
@keyframes gd-pop { from { opacity: 0; transform: translateY(6px); } }
.gd-q { margin: 0 0 6px; font-size: 13px; color: var(--text-secondary, #8595b2); }
.gd-q::before { content: "You asked · "; color: var(--cyan, #3cccfc); }
.gd-a { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.gd-thinking { color: var(--text-dim); }
.gd-thinking::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: gd-dots 1.2s steps(4) infinite; }
@keyframes gd-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.gd-answer-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gd-answer-actions .tour-btn-primary { margin-left: 0; }

.gd-mute { min-width: 92px; }
.gd-mute.is-off { color: var(--text-secondary, #8595b2); border-style: dashed; }
.gd-dock .tour-btn-primary { margin-left: 0; }
.gd-dock .tour-controls .tour-btn-primary { order: 3; }
.gd-dock .tour-controls .gd-mute { order: 4; margin-left: auto; }

/* ── ask her ──────────────────────────────────────────────── */
.gd-foot { grid-area: foot; border-top: 1px solid rgba(255, 255, 255, 0.064); padding-top: 12px; }
.gd-ask { display: flex; gap: 8px; }
.gd-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 400 14px/1 var(--font-body);
}
.gd-input::placeholder { color: var(--text-secondary, #8595b2); }
.gd-input:focus { outline: none; border-color: rgba(60, 204, 252, 0.6); box-shadow: 0 0 0 3px rgba(60, 204, 252, 0.12); }
.gd-send {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #031019;
  background: linear-gradient(90deg, var(--cyan, #3cccfc), var(--azure, #1898fc));
}
.gd-send svg { width: 16px; height: 16px; display: block; margin: auto; }
.gd-send:focus-visible, .gd-chip:focus-visible { outline: 2px solid var(--cyan, #3cccfc); outline-offset: 2px; }
.gd-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.gd-chips:empty { display: none; }
.gd-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(60, 204, 252, 0.25);
  background: transparent;
  color: var(--text-dim);
  font: 400 12.5px/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.gd-chip:hover { color: var(--text); border-color: rgba(60, 204, 252, 0.6); background: rgba(60, 204, 252, 0.08); }

body.is-touring #main .stage { padding-bottom: 340px; }

@media (max-width: 700px) {
  .gd-dock { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; padding: 14px 14px 12px; }
  .ava { width: 72px; border-radius: 16px; }
  .gd-role, .gd-live { display: none; }
  .gd-name { font-size: 12px; }
  .gd-body { padding-right: 26px; }
  .gd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gd-chip { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ava[data-state="think"] .ava-ring, .gd-answer { animation: none; }
}

/* ── EVA on call (header "Ask EVA"): her card on the visitor's own screen, nothing dimmed ── */
.tour.is-chat .tour-shade { opacity: 0; }
.gd-dock.is-chat .tour-progress { display: none; }
.gd-dock.is-chat .tour-end .tour-btn-primary { margin-left: 0; }
/* The floating "Ask EVA" button, bottom right of every screen. */
.eva-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(60, 204, 252, 0.4);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.96), rgba(8, 10, 13, 0.96));
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9), 0 0 0 4px rgba(60, 204, 252, 0.06);
  color: var(--text);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease;
}
.eva-fab:hover { border-color: rgba(60, 204, 252, 0.8); transform: translateY(-1px); }
.eva-fab:focus-visible { outline: 2px solid var(--cyan, #3cccfc); outline-offset: 3px; }
.eva-fab-face {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 14px/1 var(--font-heading); letter-spacing: 0.04em;
  color: #031019;
  background: linear-gradient(135deg, var(--cyan, #3cccfc), var(--azure, #1898fc));
  animation: gd-breathe 2.6s ease-in-out infinite;
}
@keyframes gd-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(60, 204, 252, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(60, 204, 252, 0); } }
body.is-touring .eva-fab { display: none; }
@media (max-width: 600px) { .eva-fab { right: 14px; bottom: 14px; } .eva-fab-text { display: none; } .eva-fab { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .eva-fab-face { animation: none; } }
@media print { .eva-fab { display: none; } }
