/* ============================================
   LaraPush OneSignal Alternative – Google Ads LP
   Brand: #6B46C1 → #9333EA, Accent: #FF6B35
   ============================================ */

:root {
  --purple-start: #6B46C1;
  --purple-end: #9333EA;
  --purple-gradient: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
  --accent-orange: #FF6B35;
  --accent-orange-hover: #e55a2b;
  --dark-bg: #1A1A2E;
  --white: #FFFFFF;
  --gray-bg: #f5f5f8;
  --light-purple-bg: #f3eef9;
  --text-dark: #1A1A2E;
  --text-muted: #5a5a72;
  --shadow: 0 4px 20px rgba(107, 70, 193, 0.15);
  --shadow-lg: 0 10px 40px rgba(107, 70, 193, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}
.btn-primary:hover { background: var(--accent-orange-hover); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-secondary {
  background: var(--white);
  color: var(--purple-start);
  border: 2px solid var(--purple-start);
}
.btn-secondary:hover { background: var(--light-purple-bg); }
.btn-block { width: 100%; text-align: center; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ----- Section base ----- */
.section {
  padding: 80px 0;
  position: relative;
}
.section-white { background: var(--white); }
.section-gray { background: var(--gray-bg); }
.section-light-purple { background: var(--light-purple-bg); }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 48px;
  line-height: 1.25;
}
.section-title .sub { font-size: 0.85em; font-weight: 600; color: var(--text-muted); }
.section-title-light { color: var(--white); }
.section-title-light .sub { color: rgba(255,255,255,0.9); }
.section-intro { text-align: center; margin: -32px 0 40px; color: var(--text-muted); }
.section-cta-text { text-align: center; margin: 24px 0 16px; font-size: 1.2rem; }
.section-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0 100px;
  background: var(--dark-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--purple-gradient);
  opacity: 0.92;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 20px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 32px;
  line-height: 1.5;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.hero-form-wrap { display: flex; justify-content: flex-end; }
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}
.hero-form-card h3 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}
.form-label { margin: 0 0 8px; font-size: 0.95rem; color: var(--text-muted); }
.lead-form input[type="email"],
.lead-form input[type="number"],
.lead-form input[type="text"],
.lead-form select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid #e0e0e8;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--purple-start);
}
.lead-form button { margin-top: 8px; }
.form-note { font-size: 0.9rem; color: var(--text-muted); margin: 8px 0 0; }
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.trust-badges.dark { color: rgba(255,255,255,0.9); }
.hero-trust { padding-top: 16px; border-top: 1px solid #eee; }

/* Wave dividers */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  color: var(--white);
}
.wave-hero { bottom: 0; }
.wave-hero svg { width: 100%; height: 100%; display: block; }
.wave-purple-bottom { bottom: 0; color: var(--gray-bg); }
.wave-to-white { bottom: 0; color: var(--white); }
.wave svg { width: 100%; height: 100%; display: block; fill: currentColor; }

/* ----- Cards (OneSignal Trap) ----- */
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.card h3 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 700; }
.card ul { margin: 0 0 12px; padding-left: 20px; }
.card p, .card li { margin: 0 0 8px; color: var(--text-muted); font-size: 0.95rem; }
.card-punch { font-weight: 700; color: var(--text-dark) !important; }
.card-red { border-top-color: #dc2626; }
.card-orange { border-top-color: var(--accent-orange); }
.card-purple { border-top-color: var(--purple-start); }

/* ----- Calculator ----- */
.section-purple {
  background: var(--purple-gradient);
  padding: 80px 0 120px;
  color: var(--white);
}
.calculator-widget {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.2);
}
.calculator-widget label { display: block; margin-bottom: 12px; font-weight: 600; }
.calc-slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.calc-slider-row input[type="range"] {
  flex: 1;
  height: 10px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 5px;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--accent-orange);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#calc-subscribers-value {
  min-width: 90px;
  font-weight: 700;
  font-size: 1.1rem;
}
.calc-divider {
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 20px 0;
}
.calc-row { margin: 8px 0; }
.calc-label { margin: 0 0 4px; font-size: 0.95rem; opacity: 0.95; }
.calc-value { margin: 4px 0; font-weight: 600; }
.calc-onesignal .calc-value { color: #fecaca; }
.calc-larapush .calc-value { color: #bbf7d0; }
.calc-savings {
  font-size: 1.35rem;
  font-weight: 800;
  color: #86efac;
  margin: 16px 0 24px;
  text-align: center;
}
.calc-form input { margin-bottom: 12px; background: var(--white); color: var(--text-dark); }
.calc-note { font-size: 0.85rem; opacity: 0.9; margin: 8px 0 0; text-align: center; }
.calc-disclaimers { font-size: 0.85rem; opacity: 0.85; margin: 20px 0 0; text-align: center; }

/* ----- Social proof ----- */
.logo-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 24px 0 40px;
  padding: 24px 0;
}
.logo-item {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--gray-bg);
  border-radius: var(--radius);
}
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ----- Comparison table ----- */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
.comparison-table th,
.comparison-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #eee; }
.comparison-table th { background: var(--dark-bg); color: var(--white); font-weight: 700; }
.comparison-table tbody tr:hover { background: var(--gray-bg); }
.comparison-table td:last-child { color: #166534; font-weight: 600; }

/* ----- Demo video ----- */
.demo-video-block { max-width: 640px; margin: 0 auto; }
.video-thumb {
  position: relative;
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.video-play {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.video-play:hover { transform: scale(1.08); }
.video-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.5;
}
.video-gate {
  background: rgba(255,255,255,0.12);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
}
.video-gate p { margin: 0 0 16px; }
.video-gate input { background: var(--white); color: var(--text-dark); margin-bottom: 12px; }
.video-benefits { list-style: none; padding: 0; margin: 16px 0 0; }
.video-benefits li { margin: 6px 0; }

/* ----- Migration steps ----- */
.migration-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 40px;
}
.migration-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 140px;
  border: 2px solid var(--purple-start);
}
.step-num { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; color: var(--purple-start); margin-bottom: 8px; }
.step-icon { font-size: 2rem; margin-bottom: 8px; }
.step-label { font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 0.85rem; color: var(--text-muted); }
.step-arrow { font-size: 1.5rem; color: var(--purple-start); }
.guarantees-list {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid #eee;
  text-align: center;
}
.guarantees-list h3 { margin: 0 0 16px; font-size: 1.1rem; }
.guarantees-list ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
.guarantees-list li { margin: 8px 0; }

/* ----- Testimonials ----- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { margin-bottom: 12px; font-size: 1.1rem; }
.testimonial-text { font-style: italic; color: var(--text-dark); margin: 0 0 16px; line-height: 1.6; }
.testimonial-author { font-weight: 700; margin: 0 0 4px; }
.testimonial-role { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ----- Final CTA ----- */
.final-cta-sub,
.final-cta-steps { text-align: center; margin: 0 0 12px; font-size: 1.1rem; opacity: 0.95; }
.final-cta-list {
  max-width: 400px;
  margin: 0 auto 32px;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.8;
}
.final-cta-email-label { text-align: center; margin: 0 0 20px; font-weight: 700; font-size: 1.1rem; }
.final-form {
  max-width: 420px;
  margin: 0 auto;
}
.final-form input,
.final-form select {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
}
.final-form select { cursor: pointer; }
.form-notes-inline { text-align: center; margin: 16px 0 24px; font-size: 0.9rem; opacity: 0.9; }
.final-cta .trust-badges { justify-content: center; }

/* ----- Exit popup ----- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.popup-overlay[hidden] { display: none !important; }
.popup {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #eee;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.popup-close:hover { background: #ddd; color: var(--text-dark); }
.popup h2 { margin: 0 0 16px; font-size: 1.35rem; color: var(--text-dark); }
.popup p { margin: 0 0 12px; color: var(--text-muted); }
.popup .lead-form input { margin-bottom: 12px; }
.popup-benefits { list-style: none; padding: 0; margin: 16px 0 24px; font-size: 0.9rem; }
.popup-dismiss {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}
.popup-dismiss:hover { color: var(--text-dark); }

/* ----- Sticky mobile CTA ----- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
}
.sticky-cta[hidden] { display: none !important; }


/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-form-wrap { justify-content: center; }
  .hero-form-card { max-width: 420px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .cards-three { grid-template-columns: 1fr; }
  .migration-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; padding: 40px 0 80px; }
  .hero-title { font-size: 1.75rem; }
  .stats-bar { flex-direction: column; align-items: center; }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .section-ctas { flex-direction: column; }
  .section-ctas .btn { width: 100%; text-align: center; }
  .form-notes-inline { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .calculator-widget { padding: 24px; }
  .migration-step { min-width: 100%; }
}
