:root {
  --pink: #ff4d7d;
  --pink-dark: #e63368;
  --pink-light: #ffe4ec;
  --bg-chat: #f4eef1;
  --text-dark: #2b2130;
  --text-muted: #857a83;
  --bubble-bot: #ffffff;
  --bubble-user: linear-gradient(135deg, #ff4d7d, #ff7ea3);
  --radius: 18px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-chat);
  -webkit-font-smoothing: antialiased;
}

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ===== LANDING ===== */
#landing {
  background: linear-gradient(180deg, #fff5f8 0%, #ffffff 60%);
  justify-content: flex-start;
}

.landing-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

#landing h1 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--text-dark);
}

.sub {
  font-weight: 700;
  color: var(--pink-dark);
  margin: 0 0 14px;
}

.lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.img-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f3d9e2, #f3d9e2 10px, #f7e5ec 10px, #f7e5ec 20px);
  border: 2px dashed #e2a4bb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b05678;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
}

.img-placeholder.tall { height: 260px; }
.img-placeholder.small { height: 140px; margin-bottom: 12px; }

.img-placeholder::before {
  content: attr(data-label);
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.chat-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.cta-btn {
  display: block;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #ff4d7d, #ff2f6b);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 16px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 45, 107, 0.35);
  margin: 10px 0 12px;
  letter-spacing: 0.3px;
}

.cta-btn:active { transform: scale(0.98); }

.pulse {
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 125, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(255, 77, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 125, 0); }
}

.warning {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== CHAT HEADER ===== */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff4d7d, #ff2f6b);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chat-name {
  font-weight: 700;
  font-size: 15.5px;
}

.chat-status {
  font-size: 12px;
  opacity: 0.9;
}

.progress-track {
  height: 5px;
  background: #f1dbe3;
  width: 100%;
  position: sticky;
  top: 66px;
  z-index: 9;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d7d, #ff8fb0);
  transition: width 0.4s ease;
}

/* ===== CHAT WINDOW ===== */
.chat-window {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

.row.bot { justify-content: flex-start; }
.row.user { justify-content: flex-end; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble {
  max-width: 82%;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.45;
  border-radius: var(--radius);
}

.bubble.bot-bubble {
  background: var(--bubble-bot);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.bubble.user-bubble {
  background: var(--bubble-user);
  color: #fff;
  border-bottom-right-radius: 4px;
  font-weight: 600;
}

.bubble img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

/* typing indicator */
.typing-bubble {
  background: var(--bubble-bot);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  padding: 14px 16px;
  display: inline-flex;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d99bb0;
  animation: blink 1.2s infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* options */
.options-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 88%;
  margin-top: 2px;
}

.option-btn {
  background: #fff;
  border: 1.5px solid var(--pink);
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.option-btn:hover { background: var(--pink-light); }
.option-btn:active { transform: scale(0.98); }

/* inline cta buttons inside chat */
.inline-cta-wrap {
  max-width: 88%;
}

.inline-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ff4d7d, #ff2f6b);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 45, 107, 0.3);
}

.inline-cta:active { transform: scale(0.98); }

/* checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}

.checklist li {
  padding: 4px 0;
  font-size: 14.5px;
}

/* offer box */
.offer-box {
  background: #fff;
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 16px;
  max-width: 92%;
  font-size: 14.5px;
  line-height: 1.55;
}

.offer-box .price {
  font-size: 40px;
  font-weight: 900;
  color: var(--pink-dark);
  margin: 2px 0 0;
  line-height: 1.15;
}

.offer-box .price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
}

.bonus-list {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.bonus-list li {
  padding: 5px 0;
  font-size: 14px;
}

/* testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  border-left: 3px solid var(--pink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 14px 16px;
  max-width: 82%;
}

.testimonial-quote {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-author {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-dark);
}

hr.sep {
  border: none;
  border-top: 1px dashed #eec7d5;
  margin: 12px 0;
}

@media (min-width: 560px) {
  .chat-window { padding: 20px 16px 50px; }
}
