* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #1a1a2e;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 4px;
  background: #e8edf2;
  z-index: 100;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* Screen Container */
#screen-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 60px 24px 40px;
  animation: fadeSlideIn 0.4s ease;
}

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

@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

.screen-exit {
  animation: fadeSlideOut 0.3s ease forwards;
}

/* Back Button */
.back-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.2s;
}
.back-btn:hover { color: #1a1a2e; }
.back-btn svg { width: 16px; height: 16px; }

/* Typography */
.screen-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.screen-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.screen-subtitle {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 28px;
}

.screen-detail {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 12px;
}

/* Choice Options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.option-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-tap-highlight-color: transparent;
}

.option-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.option-card.selected {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
}

.option-card .option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-card.selected .option-check {
  background: #2563eb;
  border-color: #2563eb;
}

.option-card.selected .option-check::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* Multi-select checkbox style */
.option-card .option-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-card.selected .option-checkbox {
  background: #2563eb;
  border-color: #2563eb;
}

.option-card.selected .option-checkbox::after {
  content: '\2713';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Text Input */
.text-input-wrap {
  margin-bottom: 24px;
}

.text-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  color: #0f172a;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.text-input::placeholder {
  color: #94a3b8;
}

textarea.text-input {
  min-height: 120px;
  resize: vertical;
}

/* Color Picker */
.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.color-swatch {
  aspect-ratio: 1;
  border-radius: 14px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.selected {
  border-color: #0f172a;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37,99,235,0.2);
}

.color-swatch.selected::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Buttons */
.btn-next {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
  margin-top: auto;
  -webkit-tap-highlight-color: transparent;
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.3);
}

.btn-next:active {
  transform: translateY(0);
}

.btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-next.btn-pay {
  background: linear-gradient(135deg, #16a34a, #15803d);
  font-size: 20px;
  font-weight: 800;
  padding: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(22,163,74,0.4);
  margin-bottom: 10px;
}

.btn-next.btn-pay:hover {
  box-shadow: 0 8px 25px rgba(22,163,74,0.5);
}

.btn-next.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  margin-top: 10px;
}

.btn-next.btn-secondary:hover {
  background: #e2e8f0;
  box-shadow: none;
}

/* Info Screen */
.info-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.info-card .info-stat {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.info-card .info-label {
  font-size: 14px;
  color: #64748b;
}

/* Loading Screen */
.loading-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  transition: color 0.3s;
}

.loading-step.active {
  color: #2563eb;
}

.loading-step.done {
  color: #64748b;
}

.loading-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  transition: background 0.3s;
}

.loading-step.active .step-dot {
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37,99,235,0.4);
}

.loading-step.done .step-dot {
  background: #94a3b8;
}

/* Social Proof */
.social-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.social-card .social-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-card .social-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.social-card .social-avatar:first-child { margin-left: 0; }

.social-stat-big {
  font-size: 48px;
  font-weight: 800;
  color: #2563eb;
  margin-bottom: 4px;
}

.social-stat-label {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 16px;
}

.social-testimonial {
  font-size: 14px;
  color: #475569;
  font-style: italic;
  line-height: 1.6;
}

/* Mockup */
.mockup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.phone-frame {
  width: 240px;
  background: #f1f5f9;
  border-radius: 32px;
  border: 3px solid #cbd5e1;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
  position: relative;
}

.phone-notch {
  width: 100%;
  height: 28px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.phone-notch-pill {
  width: 60px;
  height: 6px;
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

/* App Store Preview */
.appstore-preview {
  background: #f8fafc;
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  border: 1px solid #e2e8f0;
}

.appstore-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.appstore-icon {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.appstore-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.appstore-info p {
  font-size: 12px;
  color: #94a3b8;
}

.appstore-get {
  margin-left: auto;
  background: #2563eb;
  border: none;
  border-radius: 20px;
  padding: 6px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.appstore-screenshots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.appstore-screenshots::-webkit-scrollbar { display: none; }

.appstore-screenshot {
  min-width: 120px;
  height: 220px;
  border-radius: 12px;
  flex-shrink: 0;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
}

.appstore-screenshot .ss-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  gap: 8px;
}

.appstore-screenshot .ss-title {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.appstore-screenshot .ss-mock {
  width: 60px;
  height: 100px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 4px;
}

.appstore-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
}

.appstore-stars { color: #f59e0b; letter-spacing: 2px; }

/* Paywall */
.paywall-wrap {
  text-align: center;
}

.paywall-price {
  font-size: 56px;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 4px;
}

.paywall-price-sub {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 28px;
}

.paywall-features {
  text-align: left;
  margin-bottom: 28px;
}

.paywall-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
}

.paywall-feature .pf-check {
  width: 24px;
  height: 24px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 13px;
  flex-shrink: 0;
}

.paywall-guarantee {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
  line-height: 1.5;
}

.paywall-urgency {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
}

/* Results Summary */
.result-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
}

.result-section h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.result-section p {
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

.result-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 3px 4px 3px 0;
}

.result-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
}

.timeline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: #e2e8f0;
  margin-top: 4px;
}

.timeline-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 13px;
  color: #64748b;
}

/* Slider */
.slider-wrap {
  margin-bottom: 24px;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37,99,235,0.4);
}

.slider-value {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #2563eb;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

/* Email capture */
.email-benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.email-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
}

.email-benefit .eb-icon {
  color: #2563eb;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 480px) {
  #screen-container {
    padding: 50px 20px 32px;
  }
  .screen-title {
    font-size: 23px;
  }
  .phone-frame {
    width: 200px;
  }
}

/* Utility */
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.fade-in { animation: fadeSlideIn 0.4s ease; }
