/* ============================================
   Homepage Conversion Funnel Styles
   ============================================ */

/* Hero Funnel */
.hero-funnel {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 50%, #4a5568 100%);
  padding: 6rem 0 5rem;
  text-align: center;
  color: white;
}

.hero-funnel h1 {
  color: white;
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.15;
}

.hero-funnel .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Hero Trust Strip */
.hero-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-strip strong {
  color: white;
}

.trust-divider {
  color: rgba(255, 255, 255, 0.3);
}

/* Hero Social Proof */
.hero-social-proof {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-funnel .hero-stats,
.hero-funnel .hero-social-proof {
  margin-top: 1rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-funnel .hero-stat-number {
  color: var(--color-accent);
}

.hero-funnel .hero-stat-label {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .hero-funnel {
    padding: 4rem 0 3rem;
  }

  .hero-funnel h1 {
    font-size: 1.75rem;
  }

  .hero-funnel .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-trust-strip {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .trust-divider {
    display: none;
  }

  .hero-social-proof {
    gap: 2rem;
  }
}

/* Trust Badges */
.trust-badges {
  background: var(--color-bg);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.trust-icon {
  color: var(--color-success);
  font-weight: bold;
}

@media (max-width: 768px) {
  .trust-badges-grid {
    gap: 1rem 1.5rem;
  }

  .trust-badge {
    font-size: 0.85rem;
  }
}

/* Problems Section */
.problems-section {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.problem-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.problem-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.problem-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.problem-content > p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.problem-solution {
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.problem-solution strong {
  color: var(--color-accent);
}

.problem-solution a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .problem-card {
    flex-direction: column;
  }

  .problem-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.25rem;
  }
}

/* Flagship Section */
.flagship-section {
  padding: 5rem 0;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.flagship-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: var(--transition);
  position: relative;
  margin-top: 0.75rem;
}

.flagship-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.flagship-badge {
  position: absolute;
  top: -0.6rem;
  right: 1.5rem;
  background: var(--color-success);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.flagship-content {
  padding: 2rem;
  padding-top: 1.5rem;
}

.flagship-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.flagship-tagline {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.flagship-description {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.flagship-features {
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.feature-row {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-label {
  font-weight: 600;
  color: var(--color-primary);
  min-width: 70px;
}

.flagship-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flagship-buttons .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
}

@media (max-width: 768px) {
  .flagship-grid {
    grid-template-columns: 1fr;
  }

  .flagship-buttons {
    flex-direction: column;
  }

  .flagship-buttons .btn {
    width: 100%;
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonial-content {
  flex: 1;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Client Logos (optional) */
.client-logos {
  margin-top: 3rem;
  text-align: center;
}

.client-logos-label {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.client-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.client-logos-grid img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  transition: var(--transition);
}

.client-logos-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .client-logos-grid {
    gap: 2rem;
  }
}

/* Comparison Table */
.comparison-section {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table th.highlight {
  background: var(--color-accent);
}

.comparison-table td.highlight {
  background: rgba(135, 87, 199, 0.08);
  color: var(--color-primary);
  font-weight: 500;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(135, 87, 199, 0.12);
}

/* Wide table for 4 columns */
.comparison-table-wide {
  min-width: 650px;
}

@media (max-width: 768px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* All Plugins Link */
.all-plugins-section {
  padding: 4rem 0;
}

.all-plugins-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.all-plugins-text h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.all-plugins-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.all-plugins-box .btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .all-plugins-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .all-plugins-box .btn {
    width: 100%;
  }
}

/* Blog Preview */
.blog-preview-section {
  padding: 5rem 0;
  background: var(--color-bg-alt);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-preview-card {
  background: var(--color-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.blog-preview-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.blog-preview-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-preview-card h4 a {
  color: var(--color-primary);
}

.blog-preview-card h4 a:hover {
  color: var(--color-accent);
}

.blog-preview-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-read-more:after {
  content: " \2192";
}

/* Email Capture Section */
.email-capture-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.email-capture-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.email-capture-box h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.email-capture-box > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.email-capture-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto 1rem;
}

.email-capture-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.email-capture-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.email-capture-form input[type="email"]:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

.email-capture-form .btn {
  background: white;
  color: var(--color-accent);
  white-space: nowrap;
}

.email-capture-form .btn:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
}

.email-disclaimer {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 576px) {
  .email-capture-form {
    flex-direction: column;
  }

  .email-capture-form .btn {
    width: 100%;
  }
}

/* CTA Section Updates */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary-dark {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* Email Popup */
.email-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.email-popup-content {
  position: relative;
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.email-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.email-popup-close:hover {
  color: var(--color-primary);
}

.email-popup-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.email-popup-content > p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-popup-form input[type="email"] {
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.email-popup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.email-popup-content .email-disclaimer {
  color: var(--color-text-light);
  margin-top: 1rem;
}

@media (max-width: 576px) {
  .email-popup-content {
    padding: 2rem;
  }
}
