/* ============================================================
   PHONE DEMO styles
   ============================================================ */

.pd { display: flex; flex-direction: column; align-items: center; }

.pd__frame {
  width: 300px;
  max-width: 84vw;
  background: #0C0D0F;
  border-radius: 38px;
  padding: 10px;
  border: 2px solid #34383D;
  box-shadow:
    0 0 0 2px #000,
    0 30px 60px -20px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
/* notch */
.pd__frame::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #0C0D0F;
  border-radius: 0 0 14px 14px;
  z-index: 6;
}

.pd__status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 22px 8px;
  font-family: var(--body);
  font-size: 12px; font-weight: 700; color: #fff;
  background: #1B1D20;
  border-radius: 30px 30px 0 0;
}
.pd__status-right { display: flex; align-items: center; gap: 6px; }
.pd__bars { width: 16px; height: 10px; background:
  linear-gradient(to right, #fff 0 3px, transparent 3px 4px, #fff 4px 7px, transparent 7px 8px, #fff 8px 11px, transparent 11px 12px, #fff 12px 16px); }
.pd__batt { width: 20px; height: 10px; border: 1px solid #fff; border-radius: 2px; position: relative; }
.pd__batt::after { content:""; position:absolute; inset:1.5px; right: 5px; background:#fff; border-radius:1px; }

.pd__header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: #1B1D20;
  border-bottom: 1px solid #2A2E33;
}
.pd__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--display); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pd__contact { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.pd__contact strong { color: #fff; font-size: 14px; font-weight: 700; font-family: var(--body); }
.pd__contact span { color: #7E858C; font-size: 11px; }
.pd__phoneicon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); position: relative; flex-shrink: 0; }
.pd__phoneicon::after { content:""; position:absolute; width:7px; height:7px; border:2px solid var(--accent); border-top:0; border-left:0; top:4px; left:4px; transform: rotate(45deg); }

.pd__thread {
  background: #0F1113;
  height: 360px;
  overflow-y: auto;
  padding: 14px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}
.pd__date, .pd__contact { font-family: var(--body); }
.pd__date { text-align: center; color: #5C636A; font-size: 11px; font-weight: 700; margin: 2px 0 4px; }

/* call event */
.pd-call {
  align-self: center;
  display: none; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--body);
}
.pd-call.in { display: flex; animation: pdSlide .35s ease both; }
.pd-call__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* message rows */
.pd-row { display: none; }
.pd-row.in { display: flex; animation: pdSlide .32s ease both; }
@keyframes pdSlide { from { transform: translateY(9px); } to { transform: none; } }
.pd-row--biz  { justify-content: flex-end; }
.pd-row--lead { justify-content: flex-start; }

.pd-bubble {
  max-width: 82%;
  padding: 9px 12px 7px;
  border-radius: 16px;
  font-family: var(--body);
  position: relative;
}
.pd-bubble p { font-size: 13px; line-height: 1.4; margin: 0; }
.pd-bubble__time { display: block; font-size: 10px; margin-top: 3px; opacity: 0.6; }
.pd-bubble__tag {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 9px; font-weight: 600; color: var(--accent-ink); white-space: nowrap;
  background: rgba(0,0,0,0.16); display: inline-block; padding: 2px 6px; border-radius: 3px; margin-bottom: 5px;
}
.pd-bubble--biz  { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.pd-bubble--lead { background: #2A2E33; color: #ECEEF0; border-bottom-left-radius: 5px; }

/* review card (review-request demo) */
.pd-reviewcard {
  background: #fff; color: var(--ink); max-width: 82%;
  border-radius: 16px; border-bottom-right-radius: 5px;
  padding: 11px 14px 12px; box-shadow: 0 6px 16px -8px rgba(0,0,0,0.5);
}
.pd-reviewcard__stars { color: #F5A623; letter-spacing: 2px; font-size: 15px; line-height: 1; }
.pd-reviewcard__name { font-family: var(--body); font-weight: 700; font-size: 13px; margin: 5px 0 7px; color: var(--ink); }
.pd-reviewcard__cta { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 11px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }

/* typing indicator */
.pd-typing { display: flex; gap: 4px; padding: 13px 14px; }
.pd-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(23,25,28,0.5); animation: pdblink 1.2s infinite; }
.pd-typing span:nth-child(2) { animation-delay: .2s; }
.pd-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes pdblink { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-2px);} }

.pd__inputbar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; background: #1B1D20; }
.pd__input { flex: 1; background: #0F1113; border: 1px solid #2A2E33; color: #6B7178; font-size: 12px; padding: 9px 14px; border-radius: 999px; font-family: var(--body); }
.pd__send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }

.pd__caption { margin-top: 18px; }
.pd__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600; color: var(--paper-soft); }
.pd__livedot { width: 9px; height: 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,0.6); animation: pdlive 1.8s infinite; }
@keyframes pdlive { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.5);} 70% { box-shadow: 0 0 0 8px rgba(52,199,89,0);} 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0);} }
