/* ==========================================================================
   zento — 재사용 컴포넌트
   ========================================================================== */

/* ---- Pill: 가이드 배지 ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  text-align: center;
  text-wrap: balance;
  border-radius: var(--radius-full);
}

.pill--guide {
  background: var(--grey-black);
  border: 1.5px solid var(--brand-lime);
  color: var(--brand-lime);
  font-size: 14px;
  font-weight: var(--weight-bold);
}

.pill--guide.is-bouncing {
  animation: guide-bounce 1.6s ease-in-out infinite;
}

/* ---- Pill: 결과 말풍선 (흰 배경, 빨간 글씨) ---- */
.pill--result {
  padding: 10px 20px;
  background: var(--grey-white);
  color: var(--status-red);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-menu);
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--choice {
  height: 46px;
  padding: 0 22px;
  background: var(--grey-800);
  border: 1.5px solid var(--grey-600);
  color: var(--grey-white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--weight-bold);
}

.btn--cta {
  height: 50px;
  padding: 0 26px;
  background: var(--brand-lime);
  color: var(--grey-black);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 24px var(--neon-lime-glow);
}

/* ---- Button: App Store (섹션 4) ---- */
.store-btn {
  gap: 12px;
  margin-top: 6px;
  padding: 10px 22px;
  background: var(--grey-black);
  border: 1.5px solid var(--grey-white);
  border-radius: var(--radius-md);
  color: var(--grey-white);
}

.store-btn__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-btn__text {
  text-align: left;
  line-height: 1.15;
}

.store-btn__label {
  display: block;
  font-size: 9px;
}

.store-btn__name {
  display: block;
  font-size: 17px;
  font-weight: var(--weight-semibold);
}

/* ---- Chat bubble (섹션 3) ---- */
.bubble {
  max-width: 82%;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bubble--friend {
  align-self: flex-end;
  background: var(--grey-white);
  color: var(--grey-800);
  box-shadow: var(--shadow-menu);
}

.bubble--me {
  align-self: flex-start;
  background: rgba(128, 255, 0, 0.15);
  border: 1px solid rgba(128, 255, 0, 0.4);
  color: var(--grey-white);
}

.bubble--thought {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  color: var(--grey-400);
  font-size: 14px;
  font-weight: var(--weight-medium);
  font-style: italic;
}

/* ---- Demo video (섹션 3 화면 시연) ----
   영상 비율 404:876(폰 402×874 + 사방 1px 검정 여백), 모서리 반지름은 영상 폭의 11.14% (폰 모서리 44px + 여백 1px / 404px). */
.demo-video {
  position: relative;
  width: var(--demo-w, 150px);
  aspect-ratio: 404 / 876;
  overflow: hidden;
  border-radius: calc(var(--demo-w, 150px) * var(--demo-radius-ratio));
  background: var(--grey-black);
  box-shadow:
    0 0 0 1px var(--demo-ring-color),
    0 0 var(--demo-glow-blur) var(--demo-glow-color),
    0 30px 60px rgba(0, 0, 0, 0.5);
}

.demo-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}