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

:root {
  --primary-color: #0b233a;
  --secondary-color: #e63946;
  --accent-color: #fca311;
  --text-color: #2b2d42;
  --bg-color: #f4f6f8;
  --white: #ffffff;
  --light-gray: #edf2f4;
  --dark-gray: #8d99ae;
  --success-color: #2a9d8f;
  --font-main: 'Merriweather', serif;
  --font-heading: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 18px;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

.nav-cta {
  background: linear-gradient(135deg, var(--secondary-color), #c0392b);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  animation: pulse 2s infinite;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.6);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Main Advertorial Container */
main {
  max-width: 1000px;
  margin: 40px auto;
  background-color: var(--white);
  padding: 50px 60px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-radius: 12px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  color: #111;
}

.breaking-badge {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5px 12px;
  font-size: 14px;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: 15px;
  display: inline-block;
}

.meta-info {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--dark-gray);
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
}

.author {
  font-weight: bold;
  color: var(--primary-color);
}

p {
  margin-bottom: 24px;
  font-size: 19px;
}

.lead-paragraph {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  border-left: 4px solid var(--secondary-color);
  padding-left: 15px;
}

/* Images & Placeholders */
.image-placeholder {
  background-color: #e1e8ed;
  border: 2px dashed #95a5a6;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #7f8c8d;
  font-family: var(--font-heading);
  margin: 30px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  opacity: 0; /* Hidden by default until real image loads */
}

.image-placeholder.hero-ph { height: 400px; }
.image-placeholder.ingredient-ph { height: 250px; margin: 15px 0; }
.image-placeholder.guarantee-ph { height: 200px; max-width: 300px; margin: 30px auto; }
.image-placeholder.review-ph { height: 300px; }
.image-placeholder.certificate-ph { height: 150px; max-width: 200px; margin: 20px auto; }

.placeholder-text {
  position: absolute;
  text-align: center;
}

/* Highlighting and Callouts */
.highlight {
  background-color: #fff3cd;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: bold;
}

.alert-box {
  background-color: #fdf2f2;
  border-left: 4px solid var(--secondary-color);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.alert-title {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Ingredients Grid */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.ingredient-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  border-color: rgba(42, 157, 143, 0.3);
}

.ingredient-card h4 {
  margin-bottom: 10px;
  color: var(--success-color);
}

/* Pricing Section */
.pricing-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 30px;
  border-radius: 12px;
  margin: 50px 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

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

.pricing-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,0,0,0.03);
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.pricing-card.best-value {
  border: 3px solid var(--accent-color);
  transform: scale(1.05);
}

.pricing-card.best-value:hover {
  transform: scale(1.05) translateY(-10px);
}

.best-value-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 14px;
}

.price {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin: 20px 0;
}

.price span {
  font-size: 20px;
  color: var(--dark-gray);
}

.cta-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--success-color), #1f7a6f);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-top: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(42, 157, 143, 0.6);
}

/* FAQ Section */
.faq-section {
  margin: 50px 0;
}

.faq-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 20px 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-answer {
  color: #555;
}

/* References */
.references {
  font-size: 14px;
  color: var(--dark-gray);
  border-top: 1px solid var(--light-gray);
  padding-top: 30px;
  margin-top: 50px;
}

.references h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.references ol {
  padding-left: 20px;
}

.references li {
  margin-bottom: 5px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-heading);
  font-size: 12px;
}

footer a {
  color: var(--light-gray);
  margin: 0 10px;
}

.disclaimer {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 10px;
  color: #bdc3c7;
  line-height: 1.6;
}

.disclaimer p {
  font-size: 10px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    margin: 0;
    padding: 20px;
    border-radius: 0;
  }
  
  h1 { font-size: 32px; }
  
  .pricing-card.best-value {
    transform: scale(1);
  }
  
  .pricing-card.best-value:hover {
    transform: translateY(-5px);
  }
}

/* Slimmetrix Additions */
.review-bar {
  background-color: #f1f8ff;
  border-bottom: 1px solid #cce5ff;
  padding: 8px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #004085;
  font-family: var(--font-heading);
}

.review-bar span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.review-bar .chk {
  color: #28a745;
  font-weight: bold;
}

.quick-facts {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0 30px;
  font-family: var(--font-heading);
}

.quick-facts h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 18px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.qf-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #ccc;
  padding: 8px 0;
  font-size: 15px;
}

.qf-item:last-child {
  border-bottom: none;
}

.qf-item b {
  color: var(--primary-color);
  min-width: 130px;
}

.qf-item span {
  text-align: right;
  color: #555;
}

/* Exit Intent Popup */
.exit-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.exit-popup-content {
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.exit-popup-content h2 {
  color: var(--secondary-color);
  font-size: 28px;
  margin-bottom: 15px;
}

.exit-popup-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--dark-gray);
}

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