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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

header {
  background: transparent;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
}

header.blog-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  backdrop-filter: none;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

nav a:hover {
  text-decoration: underline;
}

section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 5;
  background: #f8f9fa;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #007bff;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: white;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  max-width: 700px;
  line-height: 1.6;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #ffffff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.5);
}

.start-button {
  display: inline-block;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 123, 255, 0.4);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.start-button:hover {
  background: rgba(0, 86, 179, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 123, 255, 0.5);
}

.start-button:active {
  transform: translateY(0);
}

/* Start Section */
.start-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.start-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.start-content p {
  margin: 0;
}

/* Guide Section */
.guide-section {
  text-align: left;
}

.guide-section > h2 {
  text-align: center;
}

/* PDF Promotion Sections */
.pdf-promo {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 2rem;
  text-align: center;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pdf-promo.top {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pdf-promo.bottom {
  margin-top: 2rem;
  margin-bottom: 0;
}

.pdf-promo p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pdf-button {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.pdf-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.pdf-button:active {
  transform: translateY(0);
}

.btn-primary {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Stripe Buy Button Styling */
.pdf-promo stripe-buy-button {
  display: inline-block;
  margin: 0 auto;
}

/* Target the button that Stripe renders */
.pdf-promo stripe-buy-button button,
.pdf-promo stripe-buy-button [role="button"] {
  background: #007bff !important;
  color: white !important;
  padding: 1.2rem 3rem !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  border: none !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: auto !important;
}

.pdf-promo stripe-buy-button button:hover,
.pdf-promo stripe-buy-button [role="button"]:hover {
  background: #0056b3 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

.pdf-promo stripe-buy-button button:active,
.pdf-promo stripe-buy-button [role="button"]:active {
  transform: translateY(0) !important;
}

/* Accordion Styles */
.accordion {
  max-width: 900px;
  margin: 2rem auto 0;
}

.accordion details {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.accordion summary {
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background: #f8f9fa;
  color: #007bff;
  user-select: none;
  list-style: none;
  transition: background 0.2s ease;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: '+ ';
  display: inline-block;
  width: 20px;
  font-weight: bold;
  margin-right: 0.5rem;
}

.accordion details[open] summary::before {
  content: '− ';
}

.accordion summary:hover {
  background: #e9ecef;
}

.accordion .panel {
  padding: 1.5rem;
  border-top: 1px solid #ddd;
  background: white;
  line-height: 1.7;
}

.accordion .panel p {
  margin: 0;
  font-size: 1rem;
}

/* Recovery Section */
.recovery-section {
  background: #f8f9fa;
  border-radius: 8px;
}

/* About Section */
.about-section {
  text-align: left;
  padding-top: 10rem;
  min-height: calc(100vh - 120px);
}

.about-section > h2 {
  text-align: center;
}

.about-content {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 2rem auto;
  line-height: 1.8;
  text-align: left;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  height: 100%;
  margin: 0;
}

/* Fix header overlap on pages with fixed header */
main:not(.blog-post main),
.content,
.main-content > section:first-child:not(.hero):not(.about-section):not(.start-section):not(.guide-section),
.blog-index {
  padding-top: 120px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  nav a {
    font-size: 0.95rem;
  }

  .hero {
    padding: 4rem 1.5rem;
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .start-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .start-section {
    padding: 6rem 1.5rem;
  }

  .start-content {
    font-size: 1.2rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .accordion summary {
    padding: 1rem;
    font-size: 1rem;
  }

  .accordion .panel {
    padding: 1rem;
  }

  .pdf-promo {
    padding: 1.5rem 1.5rem;
    margin: 1.5rem auto;
  }

  .pdf-promo p {
    font-size: 1.1rem;
  }

  .pdf-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem;
  }

  header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  nav ul {
    gap: 0.75rem;
    flex-direction: column;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
    max-width: 100%;
  }

  .start-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
  }

  .start-section {
    padding: 5rem 1rem;
  }

  .start-content {
    font-size: 1.1rem;
  }

  .pdf-promo {
    padding: 1.25rem 1rem;
    margin: 1.25rem auto;
  }

  .pdf-promo p {
    font-size: 1rem;
  }

  .pdf-button {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    width: 90%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
  }
}

/* Blog Post Styles */
.blog-post {
  padding: 140px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #f8f9fa;
  min-height: 100vh;
}

.blog-post header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-container h1 {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.blog-date {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.blog-featured-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .blog-featured-image {
    width: 100%;
    max-width: 100%;
  }
}

.blog-content {
  text-align: left;
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  color: #333;
}

.blog-content h2 {
  font-size: 1.8rem;
  color: #007bff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.4rem;
  color: #0056b3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.blog-back-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.blog-back-link a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Blog Post Mobile Styles */
@media (max-width: 768px) {
  .blog-post {
    padding: 120px 1.5rem 3rem;
  }

  .blog-container {
    padding: 2rem 1.5rem;
  }

  .blog-container h1 {
    font-size: 2rem;
  }

  .blog-featured-image {
    margin-bottom: 2rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-post {
    padding: 110px 1rem 2rem;
  }

  .blog-container {
    padding: 1.5rem 1rem;
  }

  .blog-container h1 {
    font-size: 1.6rem;
  }

  .blog-date {
    font-size: 0.9rem;
  }

  .blog-content {
    font-size: 0.95rem;
  }

  .blog-content h2 {
    font-size: 1.3rem;
  }

  .blog-content h3 {
    font-size: 1.1rem;
  }
}

/* Light gray background for everything below hero section */
body {
  background-color: #e2e8f0 !important;
}

body > *:not(.hero):not(header):not(.video-container) {
  background-color: #e2e8f0 !important;
}

section:not(.hero) {
  background-color: #e2e8f0 !important;
}

/* Footer Styles */
footer {
  background: #e9ecef;
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid #dee2e6;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-column {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links {
  flex: 1;
  justify-content: flex-start;
}

.footer-legal {
  flex: 1;
  justify-content: flex-end;
}

.footer-column a {
  color: #495057;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #007bff;
  text-decoration: underline;
}

.footer-separator {
  color: #adb5bd;
  margin: 0 0.25rem;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
  margin-top: 1.5rem;
}

.footer-copyright p {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-links,
  .footer-legal {
    justify-content: flex-start;
    width: 100%;
  }

  .footer-column {
    flex-wrap: wrap;
  }

  .footer-copyright {
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.5rem 1rem 0.75rem;
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-copyright p {
    font-size: 0.85rem;
  }
}

/* Footer Visibility Fix - Ensure footer stays at bottom */
/* Make main content areas grow to fill space */
section:not(.hero),
article,
.blog-post,
.about-section {
  flex: 1;
}

html, body { height: 100%; margin: 0; }

body { display: flex; flex-direction: column; min-height: 100vh; }

footer { margin-top: auto; background: #e9ecef !important; padding: 40px 20px !important; }

.main-content { flex: 1; }

footer {
  position: relative !important;
  z-index: 1000 !important;
  background: #e9ecef !important;
}

/* Exit-Intent Lightbox Styles */
.exit-intent-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exit-intent-overlay.active {
  display: flex;
  opacity: 1;
}

.exit-intent-modal {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(44, 123, 229, 0.15);
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.exit-intent-overlay.active .exit-intent-modal {
  transform: scale(1);
}

.exit-intent-modal h2 {
  color: #333;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.exit-intent-modal p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.exit-intent-modal .price {
  color: #2c7be5;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.exit-intent-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.exit-intent-btn-primary {
  background: #2c7be5;
  color: white;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(44, 123, 229, 0.3);
}

.exit-intent-btn-primary:hover {
  background: #1e5fb8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 123, 229, 0.4);
}

.exit-intent-btn-primary:active {
  transform: translateY(0);
}

.exit-intent-btn-secondary {
  background: transparent;
  color: #999999;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.exit-intent-btn-secondary:hover {
  color: #999999;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .exit-intent-modal {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .exit-intent-modal h2 {
    font-size: 1.5rem;
  }

  .exit-intent-modal p {
    font-size: 1rem;
  }

  .exit-intent-btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .exit-intent-modal {
    padding: 1.5rem 1.25rem;
  }

  .exit-intent-modal h2 {
    font-size: 1.3rem;
  }

  .exit-intent-modal p {
    font-size: 0.95rem;
  }

  .exit-intent-btn-primary {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }
}