/* ============================================================
   RECORDED DEMO CALLS — homepage proof of call handling and memory.
   Scoped to .recorded-demo so it cannot affect shared product cards.
   ============================================================ */

.recorded-demo {
  --recorded-demo-teal: #38bfa1;
  --recorded-demo-cyan: #22d3ee;
  padding: 28px 0 10px;
}

.recorded-demo-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 87% 12%, rgba(34, 211, 238, 0.13), transparent 26%),
    radial-gradient(circle at 10% 100%, rgba(56, 191, 161, 0.1), transparent 25%),
    linear-gradient(135deg, rgba(14, 35, 56, 0.86), rgba(5, 17, 34, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.recorded-demo-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 70%);
}

.recorded-demo-intro,
.recorded-demo-flow,
.recorded-demo-cta { position: relative; z-index: 1; }

.recorded-demo-intro {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.recorded-demo-eyebrow,
.recorded-demo-badge,
.recorded-demo-memory-badge {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.recorded-demo-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: var(--recorded-demo-cyan);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
}

.recorded-demo-intro h2 {
  max-width: 690px;
  margin: 15px auto 12px;
  color: #fff;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.recorded-demo-intro > p:not(.recorded-demo-eyebrow):not(.recorded-demo-disclosure) {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 1.05rem;
  line-height: 1.65;
}

.recorded-demo-disclosure {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 0.8rem;
  line-height: 1.45;
}

.recorded-demo-live-proof-label {
  margin: 20px 0 8px;
  color: var(--recorded-demo-cyan);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.recorded-demo-live-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 740px;
  margin: 0 auto;
}

.recorded-demo-live-proof span {
  display: grid;
  min-height: 68px;
  padding: 12px 14px;
  place-items: center;
  color: #e7fdff;
  border: 1px solid rgba(34, 211, 238, 0.42);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(56, 191, 161, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 7px 20px rgba(0, 0, 0, 0.12);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.recorded-demo-live-proof span::before {
  content: '✓';
  margin-right: 6px;
  color: var(--recorded-demo-cyan);
}

.recorded-demo-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  align-items: start;
}

.recorded-demo-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(3, 13, 28, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(0, 0, 0, 0.14);
}

.recorded-demo-card--memory {
  position: relative;
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(150deg, rgba(15, 51, 72, 0.68), rgba(3, 15, 30, 0.77));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.22), 0 0 30px rgba(34, 211, 238, 0.08);
}

.recorded-demo-card--memory::after {
  content: '';
  position: absolute;
  top: -1px;
  right: 19%;
  left: 19%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--recorded-demo-cyan), transparent);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.65);
}

.recorded-demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recorded-demo-badge { color: var(--recorded-demo-teal); }
.recorded-demo-card--memory .recorded-demo-badge { color: var(--recorded-demo-cyan); }

.recorded-demo-memory-badge {
  padding: 6px 8px;
  color: #b9f7ff;
  border: 1px solid rgba(34, 211, 238, 0.31);
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.1);
  font-size: 0.63rem;
  white-space: nowrap;
}

.recorded-demo-call-type {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.79rem;
  letter-spacing: 0.02em;
}

.recorded-demo-card-head + .recorded-demo-call-type { margin-top: 12px; }
.recorded-demo-card:not(.recorded-demo-card--memory) .recorded-demo-call-type { margin: 0; }

.recorded-demo-card h3 {
  margin: 20px 0 9px;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.recorded-demo-scenario {
  min-height: 51px;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.93rem;
  line-height: 1.55;
}

.recorded-demo-player {
  margin: 22px 0 20px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.recorded-demo-card--memory .recorded-demo-player {
  border-color: rgba(34, 211, 238, 0.19);
  background: rgba(34, 211, 238, 0.055);
}

.recorded-demo-player audio { display: none; }

.recorded-demo-player-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recorded-demo-play {
  display: inline-grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #051122;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--recorded-demo-teal), var(--recorded-demo-cyan));
  box-shadow: 0 5px 17px rgba(34, 211, 238, 0.19);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.recorded-demo-play:hover {
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 7px 21px rgba(34, 211, 238, 0.28);
}

.recorded-demo-play:focus-visible,
.recorded-demo-seek:focus-visible,
.recorded-demo-trial-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.recorded-demo-play svg { width: 21px; height: 21px; fill: currentColor; }
.recorded-demo-icon-pause { display: none; }
.recorded-demo-player.is-playing .recorded-demo-icon-play { display: none; }
.recorded-demo-player.is-playing .recorded-demo-icon-pause { display: block; }

.recorded-demo-audio-meta { min-width: 0; display: grid; gap: 2px; }

.recorded-demo-now-playing {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.85rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recorded-demo-player.is-playing .recorded-demo-now-playing { color: var(--recorded-demo-cyan); }
.recorded-demo-times { color: rgba(255, 255, 255, 0.45); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

.recorded-demo-track-wrap { position: relative; height: 34px; margin-top: 7px; }
.recorded-demo-track-wrap:focus-within { border-radius: 7px; box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.82); }

.recorded-demo-waveform {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  pointer-events: none;
}

.recorded-demo-waveform::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: var(--recorded-demo-progress, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(56, 191, 161, 0.13), rgba(34, 211, 238, 0.18));
  transition: width 100ms linear;
}

.recorded-demo-waveform span {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform-origin: center;
}

.recorded-demo-waveform span:nth-child(4n + 1) { height: 22%; }
.recorded-demo-waveform span:nth-child(4n + 2) { height: 58%; }
.recorded-demo-waveform span:nth-child(4n + 3) { height: 86%; }
.recorded-demo-waveform span:nth-child(4n) { height: 43%; }
.recorded-demo-player.is-playing .recorded-demo-waveform span { background: rgba(34, 211, 238, 0.82); animation: recorded-demo-wave 750ms ease-in-out infinite alternate; }
.recorded-demo-player.is-playing .recorded-demo-waveform span:nth-child(2n) { animation-delay: -300ms; }
.recorded-demo-player.is-playing .recorded-demo-waveform span:nth-child(3n) { animation-delay: -560ms; }

@keyframes recorded-demo-wave { to { transform: scaleY(1.35); } }

.recorded-demo-seek {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.recorded-demo-seek:disabled { cursor: wait; }

.recorded-demo-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recorded-demo-outcomes li {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  color: rgba(230, 255, 251, 0.85);
  border: 1px solid rgba(56, 191, 161, 0.18);
  border-radius: 999px;
  background: rgba(56, 191, 161, 0.07);
  font-size: 0.72rem;
  line-height: 1.25;
}

.recorded-demo-outcomes li::before { content: '✓'; margin-right: 6px; color: var(--recorded-demo-teal); font-weight: 700; }
.recorded-demo-card--memory .recorded-demo-outcomes li::before { color: var(--recorded-demo-cyan); }

.recorded-demo-connector {
  display: flex;
  position: relative;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100%;
  color: rgba(201, 249, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.recorded-demo-connector::before,
.recorded-demo-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  z-index: 0;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 191, 161, 0.12), rgba(34, 211, 238, 0.75));
}

.recorded-demo-connector::before { left: 0; }
.recorded-demo-connector::after { right: 0; transform: rotate(180deg); }
.recorded-demo-connector span { position: relative; z-index: 1; max-width: 72px; }

.recorded-demo-connector i {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 50%;
  background: #0b2338;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.14);
}

.recorded-demo-connector i::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--recorded-demo-cyan);
  border-right: 2px solid var(--recorded-demo-cyan);
  transform: rotate(45deg);
}

.recorded-demo-memory-moment {
  position: relative;
  margin: 18px 0 0;
  padding: 13px 15px 14px 18px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.065);
}

.recorded-demo-memory-moment::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--recorded-demo-teal), var(--recorded-demo-cyan));
}

.recorded-demo-memory-moment p {
  margin: 0 0 5px;
  color: var(--recorded-demo-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recorded-demo-memory-moment blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.48;
}

.recorded-demo-card--memory .recorded-demo-player { margin-top: 16px; }

.recorded-demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 34px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recorded-demo-cta h3 { margin: 0; color: #fff; font-size: 1.12rem; letter-spacing: -0.02em; }
.recorded-demo-cta-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; }
.recorded-demo-cta .btn { white-space: nowrap; }

.recorded-demo-trial-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.recorded-demo-trial-link:hover { color: var(--recorded-demo-cyan); }
.recorded-demo-trial-link span { color: var(--recorded-demo-cyan); }

@media (max-width: 1024px) {
  .recorded-demo-flow { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); }
  .recorded-demo-card { padding: 24px; }
  .recorded-demo-connector::before, .recorded-demo-connector::after { width: 8px; }
}

@media (max-width: 800px) {
  .recorded-demo { padding-top: 20px; }
  .recorded-demo-shell { border-radius: 20px; }
  .recorded-demo-intro { margin-bottom: 28px; }
  .recorded-demo-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .recorded-demo-connector { min-height: 72px; flex-direction: row; gap: 11px; }
  .recorded-demo-connector::before, .recorded-demo-connector::after { top: auto; right: 50%; left: auto; width: 1px; height: 17px; background: linear-gradient(rgba(56, 191, 161, 0.12), rgba(34, 211, 238, 0.75)); }
  .recorded-demo-connector::before { bottom: calc(50% + 14px); transform: none; }
  .recorded-demo-connector::after { top: calc(50% + 14px); transform: none; }
  .recorded-demo-connector span { max-width: none; }
  .recorded-demo-connector i { width: 26px; height: 26px; transform: rotate(90deg); }
}

@media (max-width: 580px) {
  .recorded-demo-shell { padding: 28px 18px; }
  .recorded-demo-intro h2 { font-size: 1.8rem; }
  .recorded-demo-intro > p:not(.recorded-demo-eyebrow):not(.recorded-demo-disclosure) { font-size: 0.96rem; }
  .recorded-demo-live-proof { grid-template-columns: 1fr; gap: 7px; }
  .recorded-demo-live-proof span { min-height: 0; padding: 12px 14px; font-size: 0.96rem; }
  .recorded-demo-card { padding: 21px 16px; border-radius: 15px; }
  .recorded-demo-card h3 { margin-top: 18px; }
  .recorded-demo-scenario { min-height: auto; }
  .recorded-demo-player { padding: 13px 12px 11px; }
  .recorded-demo-outcomes { gap: 6px; }
  .recorded-demo-outcomes li { font-size: 0.68rem; }
  .recorded-demo-cta { flex-direction: column; gap: 17px; text-align: center; }
  .recorded-demo-cta-actions { width: 100%; flex-direction: column; gap: 13px; }
  .recorded-demo-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .recorded-demo *, .recorded-demo *::before, .recorded-demo *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
