:root,
[data-theme="dark"] {
  --bg: #04101e;
  --bg-soft: #0B1930;
  --bg-card: #0F2038;
  --line: #1D3654;
  --text: #F5EFE3;
  --text-soft: #AEBBCC;
  --text-faint: #7C8AA0;
  --accent: #E8A33D;
  --accent-dark: #C9821F;
  --cta: #D9622B;
  --cta-dark: #B84E1E;
  --cta-text: #FFF6EC;
  --urgency-text: #04101e;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-soft: #F3F6FB;
  --bg-card: #FFFFFF;
  --line: #D7E1F0;
  --text: #0B1930;
  --text-soft: #3C5170;
  --text-faint: #7688A3;
  --accent: #1D4ED8;
  --accent-dark: #1738A6;
  --cta: #DC2626;
  --cta-dark: #B91C1C;
  --cta-text: #FFFFFF;
  --urgency-text: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: 3.25rem; line-height: 1.1; }
h2 { font-size: 2.25rem; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 700px; }

.section { padding: 80px 24px; }

.center { text-align: center; }
.light { color: var(--text); }
.accent-light { color: var(--accent) !important; }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.center { text-align: center; }
.eyebrow-inline {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.sub {
  color: var(--text-faint);
  font-size: 1rem;
  margin-top: -12px;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.fine-print.light { color: var(--text-soft); }

.lede {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* Language + theme toggle */
.toggle-row {
  position: fixed;
  top: 44px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang-sep { color: var(--text-faint); }
.lang-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 4px;
  font-family: inherit;
}
.lang-btn.active { color: var(--accent); }

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
}
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }

/* Urgency bar */
.urgency-bar {
  background: var(--accent);
  color: var(--urgency-text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Hero */
.hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 56px;
  text-align: center;
}

/* Buttons */
.btn {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--cta);
  color: var(--cta-text);
}
.btn-primary:hover { background: var(--cta-dark); }
.btn-primary:active { transform: scale(0.98); }

/* Offer urgency widget */
.offer-widget-section { padding-top: 0; padding-bottom: 56px; }
.offer-widget {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.proof-item .icon { color: var(--text-faint); }

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
}
.limited-offer {
  color: var(--cta);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.price-old {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 1.3rem;
  font-weight: 700;
}
.price-new {
  color: var(--cta);
  font-size: 2.4rem;
  font-weight: 800;
}

.mini-countdown {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
}
.mini-countdown-label {
  display: inline-block;
  background: var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  margin: -44px 0 22px;
}
.mini-countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mini-countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; }
.mini-countdown-num { font-size: 1.9rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mini-countdown-caption { font-size: 0.7rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; }
.mini-countdown-colon { font-size: 1.6rem; font-weight: 800; color: var(--text-faint); margin-bottom: 18px; }

@media (max-width: 480px) {
  .offer-widget { padding: 24px 18px; }
  .mini-countdown-grid { gap: 8px; }
  .mini-countdown-num { font-size: 1.4rem; }
  .mini-countdown-unit { min-width: 36px; }
}

/* Grid / cards */
.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

.pain-section { background: var(--bg-soft); }

/* Story */
.story-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.story-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 36px;
}
.story-section p:not(.eyebrow):not(figcaption) {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* Proof */
.proof-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.proof-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.proof-card figcaption {
  font-size: 0.8rem;
  color: var(--text-faint);
  padding: 14px 16px;
}

/* Offer stack */
.stack-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack-list { margin-top: 36px; }
.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.stack-name { display: flex; align-items: flex-start; gap: 12px; }
.check { color: var(--accent); margin-top: 4px; }
.stack-price {
  color: var(--text-faint);
  text-decoration: line-through;
  white-space: nowrap;
}
.stack-total { text-align: center; margin-top: 36px; }
.total-was {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 1rem;
}
.total-now {
  font-size: 3rem;
  font-weight: 800;
  margin: 6px 0 20px;
  color: var(--text);
}

/* Fit section */
.fit-section ul {
  font-size: 0.95rem;
  color: var(--text-soft);
  padding-left: 20px;
  margin: 0;
}
.fit-section li { margin-bottom: 10px; }

/* FAQ */
.faq-section { background: var(--bg-soft); }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 22px;
}
.faq-item summary {
  font-weight: 700;
  font-size: 1.02rem;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-size: 1.4rem;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  padding-bottom: 18px;
}

/* Final CTA */
.final-cta { padding-bottom: 110px; }

/* Footer */
.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding: 36px 24px 110px;
}
.footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Sticky bottom bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 40;
}
.sticky-price { font-size: 1rem; }
.sticky-price .was { text-decoration: line-through; color: var(--text-faint); margin-right: 8px; }
.btn-sticky { padding: 13px 26px; font-size: 0.95rem; }

@media (max-width: 720px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  .lede { font-size: 1.05rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sticky-price { display: none; }
  .sticky-bar { justify-content: center; }
  .toggle-row { top: auto; bottom: 84px; right: 12px; }
}

/* =====================================================================
   LIVE PURCHASE NOTIFICATION POPUP
   ===================================================================== */
.purchase-notification-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  pointer-events: none;
}

.purchase-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transform: translateX(-130%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.purchase-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.purchase-toast.hide {
  transform: translateX(-130%);
  opacity: 0;
}

.purchase-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
}

.purchase-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.purchase-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid var(--bg-card);
  animation: purchase-pulse 1.6s infinite;
}

@keyframes purchase-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.purchase-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.purchase-line1 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.3;
}

.purchase-line2 {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.purchase-badge {
  color: var(--accent);
  font-weight: 600;
}

.purchase-close {
  pointer-events: auto;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
  align-self: flex-start;
}

@media (max-width: 480px) {
  .purchase-notification-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .purchase-toast {
    max-width: none;
  }
}
