/* =====================================================
   GLOBAL RESET & SAFETY
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f4f1fb;
  color: #1f2937;
  line-height: 1.7;
}

/* Media safety */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text wrapping */
p,
li,
a,
span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* =====================================================
   CONTAINERS & SECTIONS
===================================================== */

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

.container.narrow {
  max-width: 900px;
}

.section {
  padding: 80px 0;
}

.bg-white {
  background: #ffffff;
}

.bg-secondary {
  background: #f4f1fb;
}

.bg-dark {
  background: #1f1f2e;
  color: #ffffff;
}

.center {
  text-align: center;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1,
h2,
h3,
h4 {
  color: #1f2937;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.05rem;
  color: #374151;
}

.small {
  font-size: 0.85rem;
  color: #6b7280;
}

.tiny {
  font-size: 0.8rem;
  color: #9ca3af;
}

.h2-center {
  text-align: center;
  margin-bottom: 30px;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background: #424494;
  color: #ffffff;
  border: 2px solid #424494;
}

.btn-primary:hover {
  background: #ffffff;
  color: #424494;
}

.btn-secondary {
  background: #d9caf4;
  color: #424494;
  border: 2px solid #d9caf4;
}

.btn-outline {
  background: transparent;
  border: 2px solid #424494;
  color: #424494;
}

.btn-lg {
  font-size: 1.05rem;
}

.btn-wide {
  width: 100%;
}

/* =====================================================
   TOP BAR
===================================================== */

.topbar {
  background: #424494;
  color: #ffffff;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-badge {
  background: #ffffff;
  color: #424494;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* =====================================================
   NAVIGATION
===================================================== */

.nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}

.nav-logo {
  height: 64px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #374151;
}

.nav-links a:hover {
  color: #424494;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  padding: 60px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-checks {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

.hero-checks li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.hero-checks li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #424494;
  font-weight: 700;
}

.hero-product-wrap {
  display: flex;
  justify-content: center;
}

.hero-product {
  max-width: 320px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-mini-product {
  width: 56px;
}

.hero-stars {
  color: #facc15;
}

/* MOBILE HERO FIX */
.hero-right-mobile {
  display: none;
}

/* =====================================================
   TRUST GRID
===================================================== */

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.trust-item {
  display: flex;
  gap: 10px;
}

.trust-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b7280;
}

/* =====================================================
   GRIDS
===================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card,
.panel,
.price-card,
.review-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
}

.panel {
  background: #f4f1fb;
}

/* =====================================================
   PRICING
===================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.price-card {
  text-align: center;
  position: relative;
}

.price-highlight {
  border: 3px solid #424494;
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-primary {
  background: #424494;
  color: #ffffff;
}

.badge-orange {
  background: #f59e0b;
  color: #ffffff;
}

.badge-blue {
  background: #2563eb;
  color: #ffffff;
}

.badge-red {
  background: #ef4444;
  color: #ffffff;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 10px 0;
}

.price-now {
  font-size: 1.8rem;
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: #9ca3af;
}

/* =====================================================
   REVIEWS
===================================================== */

.reviews-grid {
  margin-top: 40px;
}

.review-card h3 {
  margin-bottom: 10px;
}

.quote {
  font-style: italic;
}

/* =====================================================
   FAQ
===================================================== */

.faq details {
  background: #f4f1fb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer a {
  color: #c7c7ff;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid #374151;
  padding-top: 20px;
}

/* =====================================================
   MOBILE RESPONSIVE (CRITICAL)
===================================================== */

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right-desktop {
    display: none;
  }

  .hero-right-mobile {
    display: block;
    margin: 20px 0;
    text-align: center;
  }

  .pricing-grid,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }

}

/* ============================
   EXIT POPUP – MODERN DESIGN
============================ */

#exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.exit-popup-card {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  padding: 28px 26px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.exit-product {
  max-width: 120px;
  margin: 0 auto 14px;
}

.exit-popup-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.exit-popup-card h3 {
  color: #424494;
  margin-bottom: 16px;
}

.exit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
}

.exit-list li {
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
}

.exit-list li.ok::before {
  content: "✔";
  color: #22c55e;
  position: absolute;
  left: 0;
}

.exit-list li.warn::before {
  content: "✖";
  color: #ef4444;
  position: absolute;
  left: 0;
}

.exit-list li.alert::before {
  content: "📦";
  position: absolute;
  left: 0;
}

.exit-timer {
  background: #ddd6fe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.exit-timer span {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 6px;
}

.exit-timer .time {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.exit-timer strong {
  font-size: 2rem;
  color: #3730a3;
}

.exit-timer small {
  display: block;
  font-size: 0.65rem;
  color: #6b7280;
}

.exit-timer .colon {
  font-size: 1.8rem;
  font-weight: bold;
  color: #3730a3;
}

.exit-cta {
  margin-bottom: 14px;
}

.exit-trust {
  font-size: 0.8rem;
  color: #6b7280;
}

.review-avatar {
  border-radius: 50%;
  margin-bottom: 12px;
}
