/* Hero demo card.
 *
 * The call widget lives inline in the hero now instead of in a modal, so this
 * sheet styles a card rather than dialog contents. The audio logic is in
 * _DEMO_JS in app/landing.py and is unchanged: same WebSocket protocol, same
 * mu-law encode/decode, same per-device daily budget.
 *
 * .demo-call and .demo-hang are modifiers over the ported .btn-primary and
 * .btn-danger, so they inherit the brand colors and hover states. Only layout
 * is overridden here.
 */

.demo-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 16px 40px rgba(15,23,42,.08);
  /* Clears the sticky header when a "Talk to it now" link jumps here. */
  scroll-margin-top: 84px;
}

.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo-head-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #64748b;
}

.demo-orb {
  position: relative; width: 104px; height: 104px; margin: 24px auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 32%, #fff, #e8f0fe);
  border: 1px solid #aecbfa; color: var(--color-brand);
  transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.demo-orb svg { width: 40px; height: 40px; }

/* Ring that expands while the agent is actually speaking. */
.demo-orb::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid rgba(20,184,166,.55); opacity: 0; pointer-events: none;
}
.demo-orb.speaking {
  transform: scale(1.05); color: #0f766e;
  box-shadow: 0 0 0 6px rgba(20,184,166,.16), 0 0 30px rgba(20,184,166,.32);
}
.demo-orb.speaking::after { animation: demoRing 1.6s ease-out infinite; }

@keyframes demoRing {
  0%   { opacity: .9; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.45); }
  100% { opacity: 0;  transform: scale(1.45); }
}

.demo-hint {
  margin: 0 auto; max-width: 24em; text-align: center;
  color: #64748b; font-size: 14.5px; line-height: 1.6;
}
.demo-status {
  text-align: center; color: #0f172a; font-size: 14px; font-weight: 600;
  margin: 12px 0 0; min-height: 21px;
}
.demo-controls { display: flex; gap: 10px; margin-top: 16px; }
.demo-controls .btn { flex: 1; min-height: 48px; font-size: 15px; border-radius: 12px; }
.demo-fine {
  margin: 14px 0 0; text-align: center;
  color: #94a3b8; font-size: 12.5px; line-height: 1.55;
}

@media (max-width: 560px) {
  .demo-card { padding: 22px 18px 18px; }
  .demo-orb { width: 88px; height: 88px; margin: 20px auto 14px; }
  .demo-orb svg { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-orb, .demo-orb.speaking { transition: none; transform: none; }
  .demo-orb.speaking::after { animation: none; opacity: .5; }
  .demo-orb::after { display: none; }
}
