/* Base Styles */
:root {
  --primary-color: #0A1F44;
  --secondary-color: #4F5D75;
  --accent-color: #FF6B6B;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-bg: #f8f9fa;
  --dark-bg: #343a40;
  --text-color: #333;
  --light-text: #f8f9fa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: #f5f5f5;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
  font-weight: 700;
}

h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.4rem;
  margin-top: 1.2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* Sales Letter Container */
.sales-letter {
  max-width: 1100px; /* Increased from 900px for wider desktop view */
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.container {
  padding: 2rem 3rem;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 5px solid var(--accent-color);
}

.hero h1 {
  color: white;
  font-size: 2.8rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.2;
}

.pre-headline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--light-text);
  font-weight: 400;
}

.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  color: var(--light-text);
  font-weight: 400;
}

/* Callout Box */
.callout {
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.callout p {
  margin: 0;
}

/* Headline Box */
.headline-box {
  background-color: var(--light-bg);
  border-left: 5px solid var(--accent-color);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center; /* Center the headline box content */
}

.headline-box h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 2rem;
  text-align: center; /* Ensure heading text is centered */
  line-height: 1.3; /* Improve readability for long headings */
}

/* Subheads */
.subhead {
  border-bottom: 3px solid var(--accent-color);
  margin: 3rem 0 2rem;
  text-align: center; /* Center the subhead section */
}

.subhead h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  text-align: center; /* Ensure heading text is centered */
  line-height: 1.3; /* Improve readability for long headings */
}

/* Lists */
.benefit-list, .feature-list {
  list-style: none;
  padding-left: 0.5rem;
}

.benefit-list li, .feature-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.benefit-list li:before {
  content: "✓";
  color: var(--success-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feature-list li:before {
  content: "→";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.pain-list {
  list-style: none;
  padding-left: 0.5rem;
}

.pain-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.pain-list li:before {
  content: "✗";
  color: var(--danger-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.solution-steps {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0.5rem;
}

.solution-steps li {
  padding-left: 2.5rem;
  position: relative;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.solution-steps li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  color: white;
  background-color: var(--accent-color);
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Emphasis */
.emphasis {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.highlight {
  background-color: #fff3cd;
  padding: 0 0.3rem;
}

.big-benefit {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
}

/* Pattern Interrupt */
.pattern-interrupt {
  background-color: var(--light-bg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 5px;
  border-left: 5px solid var(--accent-color);
}

.pattern-interrupt h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.pattern-interrupt p {
  margin-bottom: 0;
}

/* Stat Box */
.stat-box {
  background-color: var(--light-bg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 5px;
}

.stat-box.danger {
  background-color: #fff5f5;
  border-left: 5px solid var(--danger-color);
}

.stat-box ul {
  margin-bottom: 0;
}

/* Premium Box */
.premium-box {
  background-color: #f8f9fa;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.premium-box h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

.premium-box ul {
  margin-bottom: 1.5rem;
}

.premium-box li {
  margin-bottom: 0.5rem;
}

/* Comparison Table Placeholder */
.comparison-placeholder {
  background-color: #f8f9fa;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px dashed #dee2e6;
}

/* Guarantee Box */
.guarantee-box {
  background-color: #f0f9ff;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 5px;
  border: 1px solid #bee5eb;
  position: relative;
}

.guarantee-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.guarantee-badge {
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}

.guarantee-text {
  flex: 1;
}

.guarantee-text h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Responsive adjustments for guarantee section */
@media (max-width: 768px) {
  .guarantee-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .guarantee-badge {
    max-width: 150px;
    margin: 0 auto;
  }
  
  .guarantee-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .guarantee-badge {
    max-width: 120px;
  }
  
  .guarantee-box {
    padding: 1rem;
  }
}

/* Decision Box */
.decision-box {
  margin: 3rem 0;
}

.decision-box h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.choice {
  background-color: #f8f9fa;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  border: 1px solid #dee2e6;
}

.choice h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.choice p {
  margin-bottom: 0;
}

.highlight-choice {
  background-color: #f0fff4;
  border: 1px solid #c3e6cb;
  border-left: 5px solid var(--success-color);
}

.price-tag {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-top: 1.5rem;
}

/* Belcher Button - CTA Button */
.cta-button {
  background-color: #FFA500; /* Orange background */
  color: #FFFFFF; /* White text */
  font-weight: bold;
  font-size: 24px;
  border-radius: 7px;
  padding: 7px 40px;
  text-align: center;
  text-decoration: none;
  border: 2px solid #333; /* Dark border */
  box-shadow: 0 4px 0 #333; /* Dark shadow for 3D effect */
  font-family: "Montserrat", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin: 2rem auto;
  max-width: 400px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #FF8C00; /* Darker orange on hover */
}

.cta-button:active {
  top: 2px;
  box-shadow: 0 2px 0 #333;
}

.cta-button small {
  display: block;
  font-size: 16px;
  color: #FFFF00; /* Yellow text for urgency */
  margin-top: 5px;
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
  .cta-button {
    font-size: 20px;
    padding: 7px 30px;
    max-width: 90%;
  }
  
  .cta-button small {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 18px;
    padding: 7px 20px;
  }
  
  .cta-button small {
    font-size: 12px;
  }
}

/* Final CTA Section */
.final-cta, .cta-section {
  text-align: center;
  margin: 4rem 0 2rem;
}

.final-cta h2, .cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.final-cta .cta-button, .cta-section .cta-button {
  display: block;
  margin: 2rem auto;
}

/* PS Section */
.ps-section {
  border-top: 1px solid #dee2e6;
  margin-top: 3rem;
  padding-top: 2rem;
}

.ps {
  font-style: italic;
}

/* Opening Statement */
.opening-statement {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 2rem 0;
  text-align: center;
  color: var(--primary-color);
}

/* Animation Effects */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .sales-letter {
    max-width: 90%; /* Fluid width on medium screens */
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .pre-headline, .subheadline {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .emphasis, .big-benefit {
    font-size: 1.1rem;
  }
}

/* Letter styling */
.salutation {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.stat-highlight {
  font-weight: bold;
  color: var(--danger-color);
}

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

.table-placeholder {
  padding: 2rem;
  border: 2px dashed #ccc;
  text-align: center;
  margin: 2rem 0;
  background-color: #f9f9f9;
}

/* Feature Table */
.feature-table {
  overflow-x: auto;
  margin-top: 2em;
}

.feature-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}

.feature-table th, .feature-table td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: center;
}

.feature-table th {
  background-color: var(--primary-color);
  color: #ffffff;
}

.feature-table td {
  background-color: #f9f9f9;
}

/* Highlight OptiBlog Column */
.feature-table td:nth-child(2),
.feature-table th:nth-child(2) {
  background-color: #e8f4fd;
  font-weight: bold;
}

/* Badge Styling */
.badge {
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
  .feature-table {
    font-size: 0.8rem;
  }
  
  .feature-table th, .feature-table td {
    padding: 0.5em;
  }
}

/* Footer Styling */
.footer {
    background-color: #f5f5f5;
    padding: 1rem 0;
    margin-top: 3rem;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.copyright, .legal-links {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
}

.legal-links a {
    color: #999;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* Responsive footer */
@media (max-width: 480px) {
    .footer-content {
        gap: 0.8rem;
    }
    
    .copyright, .legal-links {
        font-size: 0.65rem;
    }
}
