/* ═══════════════════════════════════════════════════
   PRODUCT DEMO — Phone mockup with 6 interactive tabs
   ═══════════════════════════════════════════════════ */

/* ── Section Container ── */
.product-demo-section {
  background: var(--bg);
  padding: 32px 24px 48px;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
  position: relative; overflow: hidden;
}
.product-demo-section .ambient-glow {
  background: radial-gradient(ellipse at 50% 40%, rgba(107,127,94,0.03) 0%, transparent 65%);
}

/* ── Phone Frame ── */
.pd-phone {
  position: relative;
  width: 375px;
  background: #111;
  border-radius: 44px;
  border: 3px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(184,155,110,0.12),
    0 0 180px rgba(184,155,110,0.06);
  overflow: hidden;
  z-index: 2;
}

.pd-notch {
  position: relative;
  height: 32px;
  background: #111;
  display: flex; align-items: center; justify-content: center;
}
.pd-notch::after {
  content: '';
  width: 80px; height: 5px;
  background: #222; border-radius: 10px;
}
.pd-status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px 8px;
  font-size: 0.65rem; font-weight: 500; color: var(--cream-mid);
  font-family: var(--font-body);
}
.pd-status-bar .pd-time { font-weight: 600; }
.pd-status-icons { display: flex; gap: 4px; align-items: center; }
.pd-status-icons span { font-size: 0.6rem; }

/* ── Phone Screen (content area) ── */
.pd-screen {
  position: relative;
  height: 620px;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-deep);
  scrollbar-width: none;
}
.pd-screen::-webkit-scrollbar { display: none; }

/* ── Feature Screens ── */
.pd-feature {
  display: none;
  padding: 16px;
  min-height: 100%;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.pd-feature.active {
  display: block;
  opacity: 1;
}

/* ── Tab Bar ── */
.pd-tabs {
  display: flex;
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 8px 20px;
}
.pd-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  padding: 6px 2px;
  transition: color 0.3s;
  color: var(--cream-faint);
}
.pd-tab.active { color: var(--sage-light); }
.pd-tab-icon { font-size: 1.2rem; line-height: 1; }
.pd-tab-label {
  font-size: 0.55rem; font-weight: 500;
  letter-spacing: 0.3px; text-transform: uppercase;
  font-family: var(--font-body);
}
.pd-tab .pd-tab-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: transparent;
  transition: background 0.3s;
}
.pd-tab.active .pd-tab-dot { background: var(--sage-light); }

/* ── Feature Label (below phone) ── */
.pd-label {
  text-align: center; max-width: 500px;
  font-size: 0.9rem; color: var(--cream-mid);
  font-weight: 300; line-height: 1.6;
  min-height: 48px;
  transition: opacity 0.3s var(--ease);
}

/* ═══════════════════════════════════════════════════
   FEATURE 1: DAILY READING
   ═══════════════════════════════════════════════════ */
.pd-reading-header {
  text-align: center; margin-bottom: 16px;
}
.pd-reading-date {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 400;
  color: var(--cream-faint);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.pd-reading-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400; font-style: italic;
  color: var(--cream); margin-top: 8px;
}
.pd-reading-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.pd-reading-card p {
  font-size: 0.82rem; line-height: 1.75;
  color: var(--cream-mid); font-weight: 300;
  margin-bottom: 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.pd-reading-card p.vis {
  opacity: 1; transform: translateY(0);
}
.pd-reading-phase {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--sage-pale);
  border: 1px solid rgba(107,127,94,0.25);
  font-size: 0.7rem; color: var(--sage-light); font-weight: 400;
  margin-bottom: 12px;
}
.pd-reading-loading {
  text-align: center; padding: 60px 20px;
}
.pd-reading-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--sage);
  animation: pdSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes pdSpin { to { transform: rotate(360deg); } }
.pd-reading-loading-text {
  font-family: var(--font-display);
  font-size: 0.9rem; font-style: italic;
  color: var(--cream-faint);
}

/* ═══════════════════════════════════════════════════
   FEATURE 2: AI CHAT
   ═══════════════════════════════════════════════════ */
.pd-chat-header {
  text-align: center; margin-bottom: 12px;
}
.pd-chat-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 400; color: var(--cream);
}
.pd-chat-sub {
  font-size: 0.7rem; color: var(--cream-faint); font-weight: 300;
  margin-top: 4px;
}
.pd-chat-messages {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 12px; min-height: 300px;
}
.pd-chat-msg {
  display: flex; gap: 8px; max-width: 85%;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pd-chat-msg.vis { opacity: 1; transform: translateY(0); }
.pd-chat-msg.bot { align-self: flex-start; }
.pd-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.pd-chat-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.pd-chat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 0.8rem; line-height: 1.6; font-weight: 300;
}
.pd-chat-msg.bot .pd-chat-bubble {
  background: rgba(107,127,94,0.12);
  border: 1px solid rgba(107,127,94,0.2);
  color: var(--cream);
  border-top-left-radius: 4px;
}
.pd-chat-msg.user .pd-chat-bubble {
  background: rgba(196,149,106,0.15);
  border: 1px solid rgba(196,149,106,0.25);
  color: var(--cream);
  border-top-right-radius: 4px;
}
.pd-chat-typing {
  display: flex; gap: 4px; padding: 12px 16px;
}
.pd-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-muted);
  animation: pdBounce 1.2s infinite;
}
.pd-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.pd-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pdBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.pd-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pd-chat-chip {
  padding: 8px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--cream-mid); font-size: 0.72rem; font-weight: 400;
  cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body);
}
.pd-chat-chip:hover {
  background: var(--sage-pale);
  border-color: rgba(107,127,94,0.3);
  color: var(--cream);
}

/* ═══════════════════════════════════════════════════
   FEATURE 3: COSMIC PROFILE
   ═══════════════════════════════════════════════════ */
.pd-profile-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px; padding: 3px;
}
.pd-profile-tab {
  flex: 1; padding: 8px 4px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 0.65rem; font-weight: 500; color: var(--cream-faint);
  font-family: var(--font-body);
  transition: all 0.3s;
  text-align: center;
}
.pd-profile-tab.active {
  background: var(--sage-pale);
  color: var(--sage-light);
}
.pd-profile-content { min-height: 340px; }
.pd-profile-pane { display: none; }
.pd-profile-pane.active { display: block; }

/* Sign cards */
.pd-sign-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pd-sign-emoji { font-size: 1.8rem; }
.pd-sign-info {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.pd-sign-label {
  display: block;
  font-size: 0.65rem; color: var(--cream-faint);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pd-sign-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--cream); font-weight: 400;
}
.pd-sign-desc {
  display: block;
  font-size: 0.72rem; color: var(--cream-mid);
  font-weight: 300; margin-top: 2px; line-height: 1.4;
}

/* Numerology / HD cards */
.pd-num-card {
  text-align: center; padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 10px;
}
.pd-num-big {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 300;
  color: var(--terra-light);
}
.pd-num-label {
  font-size: 0.75rem; color: var(--cream-faint);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 4px;
}
.pd-num-title {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--cream);
  font-weight: 400; margin-top: 8px;
}
.pd-num-desc {
  font-size: 0.78rem; color: var(--cream-mid);
  font-weight: 300; line-height: 1.6; margin-top: 8px;
}

/* ═══════════════════════════════════════════════════
   FEATURE 4: CYCLE TRACKER
   ═══════════════════════════════════════════════════ */
.pd-cycle-card {
  text-align: center; padding: 20px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.pd-cycle-emoji { font-size: 3rem; margin-bottom: 8px; }
.pd-cycle-phase {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--cream); font-weight: 400;
}
.pd-cycle-season {
  font-size: 0.72rem; color: var(--cream-faint);
  font-weight: 300; margin-top: 2px;
}
.pd-cycle-day-badge {
  display: inline-block; padding: 4px 14px;
  background: var(--sage-pale); border: 1px solid rgba(107,127,94,0.25);
  border-radius: 20px; font-size: 0.7rem; color: var(--sage-light);
  font-weight: 500; margin: 12px 0;
}
.pd-cycle-energy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 500;
  margin-bottom: 12px;
}
.pd-cycle-energy.high { background: rgba(107,127,94,0.15); color: var(--sage-light); border: 1px solid rgba(107,127,94,0.25); }
.pd-cycle-energy.medium { background: rgba(196,149,106,0.15); color: var(--terra-light); border: 1px solid rgba(196,149,106,0.25); }
.pd-cycle-energy.low { background: rgba(212,169,154,0.15); color: var(--blush); border: 1px solid rgba(212,169,154,0.25); }
.pd-cycle-energy.rising { background: rgba(143,166,126,0.12); color: var(--sage-muted); border: 1px solid rgba(143,166,126,0.2); }

.pd-cycle-desc {
  font-size: 0.8rem; color: var(--cream-mid);
  font-weight: 300; line-height: 1.7; margin-bottom: 16px;
}
.pd-cycle-guidance {
  padding: 14px; border-radius: 12px;
  background: rgba(107,127,94,0.08);
  border: 1px solid rgba(107,127,94,0.15);
  text-align: left;
}
.pd-cycle-guidance-label {
  font-size: 0.65rem; color: var(--sage-light);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.pd-cycle-guidance-text {
  font-size: 0.78rem; color: var(--cream-mid);
  font-weight: 300; line-height: 1.6;
}

/* Day slider */
.pd-cycle-slider-wrap {
  margin-top: 16px; padding: 0 8px;
}
.pd-cycle-slider-label {
  font-size: 0.65rem; color: var(--cream-faint);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px; text-align: center;
}
.pd-cycle-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px; outline: none;
  cursor: pointer;
}
.pd-cycle-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage); border: 2px solid var(--sage-light);
  box-shadow: 0 0 10px var(--sage-glow);
  cursor: pointer;
}
.pd-cycle-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage); border: 2px solid var(--sage-light);
  box-shadow: 0 0 10px var(--sage-glow);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   FEATURE 5: SYNERGY MAP
   ═══════════════════════════════════════════════════ */
.pd-synergy-header {
  text-align: center; margin-bottom: 16px;
}
.pd-synergy-people {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 12px;
}
.pd-synergy-person {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pd-synergy-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--border); object-fit: cover;
}
.pd-synergy-name {
  font-size: 0.72rem; color: var(--cream); font-weight: 400;
}
.pd-synergy-and {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--cream-faint); font-style: italic;
}
.pd-synergy-score {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 300;
  color: var(--terra-light);
  line-height: 1;
}
.pd-synergy-rating {
  font-size: 0.72rem; color: var(--terra-light);
  font-weight: 400; margin-top: 4px;
}
.pd-synergy-aspects {
  margin-top: 16px;
}
.pd-aspect-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pd-aspect-icon {
  font-size: 1.2rem; flex-shrink: 0; margin-top: 2px;
}
.pd-aspect-title {
  font-size: 0.78rem; color: var(--cream); font-weight: 400;
}
.pd-aspect-desc {
  font-size: 0.72rem; color: var(--cream-mid);
  font-weight: 300; line-height: 1.5; margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   FEATURE 6: PROACTIVE CHECK-INS
   ═══════════════════════════════════════════════════ */
.pd-checkin-notification {
  margin: 40px 16px 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(-20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.pd-checkin-notification.vis {
  opacity: 1; transform: translateY(0);
}
.pd-checkin-notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--sage-pale); border: 1px solid rgba(107,127,94,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.pd-checkin-notif-text {
  flex: 1;
}
.pd-checkin-notif-title {
  font-size: 0.7rem; font-weight: 600; color: var(--cream);
}
.pd-checkin-notif-msg {
  font-size: 0.72rem; color: var(--cream-mid);
  font-weight: 300; margin-top: 1px;
}
.pd-checkin-notif-time {
  font-size: 0.6rem; color: var(--cream-faint); flex-shrink: 0;
}
.pd-checkin-thread {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.pd-checkin-msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem; line-height: 1.5; font-weight: 300;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.pd-checkin-msg.vis { opacity: 1; transform: translateY(0); }
.pd-checkin-msg.ai {
  align-self: flex-start;
  background: rgba(107,127,94,0.12);
  border: 1px solid rgba(107,127,94,0.2);
  color: var(--cream);
  border-top-left-radius: 4px;
}
.pd-checkin-msg.user {
  align-self: flex-end;
  background: rgba(196,149,106,0.15);
  border: 1px solid rgba(196,149,106,0.25);
  color: var(--cream);
  border-top-right-radius: 4px;
}
.pd-checkin-time {
  font-size: 0.6rem; color: var(--cream-faint);
  text-align: center; margin: 4px 0;
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════ */
/* DFY grid: 3 cols → 1 col on mobile */
@media (max-width: 480px) {
  #pillar-how ~ section div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
}

/* Demo layout: video + phone side by side → stack on mobile */
@media (max-width: 768px) {
  #pillar-what > div[style*="display:flex"] {
    flex-direction: column !important; gap: 20px !important; align-items: center !important;
  }
  .float-video[style] { width: 120px !important; flex-shrink: 1 !important; }
}

@media (max-width: 768px) {
  .product-demo-section { padding: 24px 12px 40px; }
  .pd-phone {
    width: 100%; max-width: 380px;
    border-radius: 32px;
  }
  .pd-screen { height: 580px; }
  .pd-tab-label { font-size: 0.5rem; }
}
@media (max-width: 480px) {
  .pd-phone { border-radius: 24px; }
  .pd-notch { height: 24px; }
  .pd-screen { height: 540px; }
  .pd-tabs { padding: 6px 4px 16px; }
  .pd-tab-icon { font-size: 1rem; }
  .pd-tab-label { display: none; }
  .pd-label { font-size: 0.82rem; padding: 0 8px; }
}
