/* ==========================================================================
   COCKTAIL LOLLIPOPS - EXACT DESIGN SYSTEM & STYLESHEET
   Replicating original inlead design with high-fidelity components
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --theme-accent-color: #526B3A;
  --theme-accent-contrast-1: #394c28;
  --theme-accent-contrast-2: #2d3c1e;
  --theme-accent-hover: #637A4E;
  --theme-accent-light: rgba(82, 107, 58, 0.1);
  --theme-accent-light-border: rgba(82, 107, 58, 0.3);

  --theme-heading-color: #C65A24;
  --theme-background-color: #FFFAF1;
  --theme-text-color: #1F2937;
  
  --theme-border-color-xs: #E6E1D9;
  --theme-border-color-sm: #BFBCB5;

  --theme-radius: 16px;
  --theme-radius-sm: 10px;
  --theme-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --color-green-primary: #16A34A;
  --color-green-dark: #0b6e2d;
  --color-green-bg: #cafcd0;
  --color-green-border: #9af3a8;

  --color-red-primary: #ec1129;
  --color-red-bg: #ffe6e3;
  --color-red-border: #fecdc8;

  --color-peach-primary: #dc6344;
  --color-peach-bg: #fee7e1;
  --color-peach-border: #fecec1;

  --color-yellow-bg: #fff6e6;
  --color-yellow-primary: #cf9600;
  --color-yellow-border: #ffeac7;

  --container-max-width: 448px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--theme-background-color);
  color: var(--theme-text-color);
  font-family: var(--theme-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.app-wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: var(--theme-background-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
}

.funnel-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

/* Header & Progress Bar */
.top-nav {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  background-color: var(--theme-background-color);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
}

.back-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--theme-heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: rgba(198, 90, 36, 0.1);
}

.back-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.nav-spacer {
  width: 28px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: #E6E1D9;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--theme-accent-color);
  border-radius: 9999px;
  width: 12%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step wrapper & Transitions */
.step-pane {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease-out forwards;
}

.step-pane.active {
  display: flex;
}

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

/* Timers */
.timer-banner {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--theme-radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timer-banner.warning {
  background-color: #FFF3DB;
  color: #C65A24;
  border: 1px solid #FFE0A6;
}

.timer-banner.danger {
  background-color: var(--color-red-bg);
  color: var(--color-red-primary);
  border: 1px solid var(--color-red-border);
}

/* Typography elements */
.headline-title {
  color: var(--theme-heading-color);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.headline-sub {
  color: var(--theme-accent-color);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  margin-top: -6px;
}

.section-h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #111827;
}

.section-h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.body-p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #1F2937;
}

.text-terracotta {
  color: var(--theme-heading-color);
}

.text-olive {
  color: var(--theme-accent-color);
}

.badge-green {
  background-color: var(--color-green-primary);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92em;
  display: inline-block;
}

.badge-pink {
  background-color: #fbaca9;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92em;
  display: inline-block;
}

/* Feature Checklists */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #111827;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Responsive Image Containers */
.media-container {
  width: 100%;
  border-radius: var(--theme-radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  background-color: #fff;
}

.media-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Option Cards (Questions) */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.option-card {
  width: 100%;
  min-height: 56px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--theme-border-color-xs);
  border-radius: var(--theme-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.option-card:hover {
  border-color: var(--theme-accent-color);
  background-color: rgba(82, 107, 58, 0.04);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: var(--theme-accent-color);
  background-color: rgba(82, 107, 58, 0.08);
  box-shadow: 0 0 0 1px var(--theme-accent-color);
}

.option-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.option-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.option-label {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--theme-border-color-sm);
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.option-card.selected .option-indicator {
  border-color: var(--theme-accent-color);
  background-color: var(--theme-accent-color);
}

.option-card.selected .option-indicator::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

/* Primary CTA Buttons */
.btn-primary {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  background-color: var(--theme-accent-color);
  color: #FFFFFF;
  border: none;
  border-radius: var(--theme-radius);
  font-size: 1.08rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(82, 107, 58, 0.25);
}

.btn-primary:hover {
  background-color: var(--theme-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(82, 107, 58, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-green {
  background-color: var(--color-green-primary);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}

.btn-green:hover {
  background-color: #15803d;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.pulse-anim {
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* Alert Boxes */
.alert-box {
  width: 100%;
  padding: 16px;
  border-radius: var(--theme-radius);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-box.success-theme {
  background-color: var(--color-green-bg);
  border-color: var(--color-green-border);
  color: var(--color-green-dark);
}

.alert-box.peach-theme {
  background-color: var(--color-peach-bg);
  border-color: var(--color-peach-border);
  color: var(--color-peach-primary);
}

.alert-box.yellow-theme {
  background-color: var(--color-yellow-bg);
  border-color: var(--color-yellow-border);
  color: var(--color-yellow-primary);
}

.alert-box.red-light {
  background-color: var(--color-red-bg);
  border-color: var(--color-red-border);
  color: var(--color-red-primary);
}

/* Carousels */
.carousel-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--theme-radius);
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  background-color: #ffffff;
  width: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 12px;
  background-color: #ffffff;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D1D5DB;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background-color: var(--theme-accent-color);
  width: 20px;
  border-radius: 4px;
}

/* Loading Screen (Step 7) */
.loading-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 20px;
  text-align: center;
}

.loading-progress-container {
  width: 100%;
  height: 12px;
  background-color: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.loading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #526B3A 0%, #16A34A 100%);
  border-radius: 9999px;
  transition: width 0.1s linear;
}

.loading-percent {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--theme-accent-color);
}

.loading-status-text {
  font-size: 1rem;
  font-weight: 600;
  color: #4B5563;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(82, 107, 58, 0.15);
  border-top-color: var(--theme-accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Price Cards (Step 8) */
.pricing-card {
  width: 100%;
  background: #FFFFFF;
  border: 3px solid var(--color-green-primary);
  border-radius: var(--theme-radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.12);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.2);
}

.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
}

.pricing-badge-promo {
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #FEF3C7;
  color: #B45309;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #FCD34D;
}

.pricing-numbers {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.pricing-original {
  font-size: 0.95rem;
  color: #6B7280;
  text-decoration: line-through;
}

.pricing-current {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-green-primary);
  line-height: 1;
}

.pricing-installments {
  font-size: 0.88rem;
  color: #4B5563;
  font-weight: 500;
}

.pricing-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-green-primary);
  background-color: var(--color-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 18px;
  right: 18px;
}

.pricing-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

/* Reviews / Quotes */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.quote-card {
  background-color: #FFFFFF;
  border: 1px solid var(--theme-border-color-xs);
  border-radius: var(--theme-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-user {
  display: flex;
  flex-direction: column;
}

.quote-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.quote-handle {
  font-size: 0.8rem;
  color: #6B7280;
}

.quote-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.quote-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #374151;
}

/* Live Buyer Social Proof Toast */
.social-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  max-width: 320px;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.social-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C65A24, #526B3A);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
}

.toast-sub {
  font-size: 0.75rem;
  color: #6B7280;
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--theme-border-color-xs);
  text-align: center;
  font-size: 0.78rem;
  color: #6B7280;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer a {
  color: #6B7280;
  text-decoration: underline;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .app-wrapper {
    padding: 0 12px 30px;
  }
  
  .headline-title {
    font-size: 1.65rem;
  }
  
  .headline-sub {
    font-size: 0.98rem;
  }
  
  .social-toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
