/*
 * Custom Design System for yusleepdrops.com
 * Premium Night Calming & Deep Sleep Aesthetic (Dark Mode)
 */

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

:root {
  /* Color Palette */
  --primary-night: #0b0f19;
  --bg-dark-gradient: linear-gradient(185deg, #070913 0%, #0f172a 100%);
  --accent-cyan: #06b6d4;
  --accent-cyan-hover: #0891b2;
  --accent-indigo: #6366f1;
  --text-bright: #f8fafc;
  --text-medium: #cbd5e1;
  --text-muted: #64748b;
  --star-gold: #fbbf24;
  --border-color: #1e293b;
  
  /* Fonts */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 980px;
  --shadow-neon: 0 4px 20px rgba(6, 182, 212, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-medium);
  background: var(--primary-night);
  background-image: var(--bg-dark-gradient);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-bright);
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 25px;
  text-align: center;
}

p {
  margin-bottom: 1.6rem;
}

.highlight-cyan {
  color: var(--accent-cyan);
}

.highlight-indigo {
  color: var(--accent-indigo);
}

/* Header Banner Section */
.header-banner {
  background-color: rgba(11, 15, 25, 0.8);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  backdrop-filter: blur(10px);
}

.header-banner h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

.header-banner h1 span.logo-accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* Hero Section */
.hero {
  padding: 70px 0 40px 0;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 25px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero h2 span.gradient-text {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 25px;
}

.rating-stars svg {
  fill: var(--star-gold);
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.4));
}

/* Bullet Lists */
.bullet-list {
  list-style: none;
  max-width: 650px;
  margin: 0 auto 35px auto;
  text-align: left;
}

.bullet-list li {
  font-family: var(--font-header);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  color: var(--text-bright);
}

.bullet-list li svg {
  color: var(--accent-cyan);
  margin-right: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.5));
}

/* CTA Buttons */
.cta-container {
  text-align: center;
  margin: 50px 0;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
  color: #0b0f19;
  padding: 22px 50px;
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: -0.2px;
}

.btn-cta:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.5);
}

.btn-subtext {
  display: block;
  margin-top: 15px;
  font-family: var(--font-header);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Two Column Content Wrapper */
.content-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.content-section.dark-overlay {
  background-color: rgba(15, 23, 42, 0.4);
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.grid-image {
  text-align: center;
}

.grid-image img {
  max-width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.grid-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-neon);
}

.grid-content h3 {
  font-size: 1.9rem;
  margin-bottom: 25px;
  color: var(--text-bright);
}

/* Checkmark List Item Style */
.checkmark-list {
  list-style: none;
  margin-bottom: 25px;
  margin-top: 20px;
}

.checkmark-list li {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  font-size: 1.15rem;
}

.checkmark-list li svg {
  color: var(--accent-cyan);
  margin-right: 15px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Trust Badges Grid */
.badges-section {
  padding: 70px 0;
  text-align: center;
}

.badges-section h2 {
  margin-bottom: 50px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.badge-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  transition: var(--transition);
}

.badge-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon);
}

.badge-icon {
  margin-bottom: 20px;
}

.badge-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--accent-cyan);
}

.badge-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-bright);
}

.badge-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Guarantee Box */
.guarantee-box {
  background-color: rgba(30, 41, 59, 0.3);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 45px;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 60px 0;
}

.guarantee-badge {
  flex-shrink: 0;
  width: 140px;
  text-align: center;
}

.guarantee-badge svg {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
}

.guarantee-text h3 {
  font-size: 1.7rem;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.guarantee-text p {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--text-medium);
}

/* Legal Footer & Disclaimers */
.disclaimer-section {
  background-color: rgba(11, 15, 25, 0.9);
  padding: 60px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  line-height: 1.8;
}

.disclaimer-section p {
  margin-bottom: 1.5rem;
}

.disclaimer-section a {
  color: var(--text-medium);
  text-decoration: underline;
  font-weight: 600;
}

.footer-nav {
  text-align: center;
  margin-bottom: 35px;
  font-weight: 700;
  font-family: var(--font-header);
}

.footer-nav a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--text-medium);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

/* Exit Intent Popup */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
}

.popup-content {
  background: var(--primary-night);
  max-width: 550px;
  width: 90%;
  padding: 45px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.25);
  animation: popupScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupScale {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.popup-content h3.popup-alert {
  color: var(--accent-cyan);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.popup-content h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-bright);
}

.popup-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.popup-discount-box {
  background: rgba(30, 41, 59, 0.5);
  border: 2px dashed var(--accent-cyan);
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.popup-discount-box h2 {
  color: var(--accent-cyan);
  font-size: 2.3rem;
  margin-bottom: 5px;
  font-weight: 800;
}

.popup-discount-box p {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-bright);
}

.popup-btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
  color: #0b0f19;
  padding: 18px;
  font-family: var(--font-header);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.popup-btn:hover {
  background: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.popup-decline {
  display: inline-block;
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.popup-decline:hover {
  color: var(--text-medium);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  .hero h2 {
    font-size: 2.1rem;
  }
  
  .bullet-list li {
    font-size: 1.1rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .badges-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .guarantee-badge {
    width: 110px;
  }
}
@media (max-width: 480px) {
  .badges-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SEO FAQ & INGREDIENTS SECTION (Added for Bing/Google 1500+ Words Ranking)
   ========================================================================== */

.seo-faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  background-color: rgba(30, 41, 59, 0.02);
}

.seo-faq-section.dark-mode {
  background-color: rgba(30, 41, 59, 0.2);
}

.seo-faq-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 60px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
}

.faq-item h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-bright, #0f172a);
}

body[class*="dark"] .faq-item h4, 
.yusleep .faq-item h4, 
.lostfrontier .faq-item h4 {
  color: #f8fafc !important;
}

.faq-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.ingredients-detail {
  margin-top: 60px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  border-top: 2px solid var(--border-color);
  padding-top: 50px;
}

.ingredients-detail h3 {
  font-size: 1.7rem;
  margin-bottom: 30px;
  text-align: center;
}

.ingredient-row {
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.ingredient-row strong {
  color: var(--text-bright, #0f172a);
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: 5px;
}

body[class*="dark"] .ingredient-row strong,
.yusleep .ingredient-row strong,
.lostfrontier .ingredient-row strong {
  color: #f8fafc !important;
}
