/**
 * Landing Page CSS - Earth-Toned Palette
 * Soft, warm, emotionally safe design for selling readiness quiz
 */

:root {
  /* Primary earth tones */
  --clay-taupe: #D9C8B4;
  --soft-sand: #F3EDE5;
  
  /* Accent colors */
  --muted-blue: #8DBEEA;
  --muted-green: #A8C9A4;
  --muted-amber: #F0D79B;
  
  /* Text colors */
  --deep-charcoal: #4A4A4A;
  --warm-grey: #6B6B6B;
  
  /* Spacing */
  --section-spacing: 4rem;
  --section-spacing-sm: 2.5rem;
}

/* Body and general layout */
.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--deep-charcoal);
  background-color: var(--soft-sand);
  line-height: 1.7;
}

/* Header */
.landing-header {
  padding: 1.5rem 0 0;
  background: #F2EDE6;
  border-bottom: 1px solid rgba(217, 200, 180, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.landing-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.landing-logo {
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.landing-logo:hover {
  opacity: 1;
}

/* Progress bar in header */
.landing-header .quiz-progress {
  flex: 1;
  height: 6px;
  background: rgba(217, 200, 180, 0.3);
  border-radius: 3px;
  margin: 0;
  overflow: hidden;
}

.landing-header .quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--muted-blue) 0%, var(--muted-green) 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Main content sections */
main {
  min-height: 60vh;
}

.landing-section {
  padding: var(--section-spacing) 0;
}

@media (max-width: 768px) {
  .landing-section {
    padding: var(--section-spacing-sm) 0;
  }
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #F3EDE5 0%, #E8DFD5 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--deep-charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section .subheading {
  font-size: 1.25rem;
  color: var(--warm-grey);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-section .cta-note {
  font-size: 0.95rem;
  color: var(--warm-grey);
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .subheading {
    font-size: 1.1rem;
  }
}

/* Content sections */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* White sections with fixed background image */
.landing-section[style*="background: white"],
.landing-section[style*="background:white"] {
  position: relative;
  overflow: hidden;
}

.landing-section[style*="background: white"]::before,
.landing-section[style*="background:white"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* Hide background images on iOS devices to avoid rendering issues */
@supports (-webkit-touch-callout: none) {
  .landing-section[style*="background: white"]::before,
  .landing-section[style*="background:white"]::before {
    display: none;
  }
}

/* Background images are defined inline in the view for dynamic selection */

.content-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--deep-charcoal);
  margin-bottom: 1.5rem;
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-charcoal);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.content-section p {
  margin-bottom: 1.25rem;
}

/* Reassurance list */
.reassurance-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.reassurance-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  color: var(--deep-charcoal);
}

.reassurance-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--muted-green);
  font-weight: bold;
  font-size: 1.25rem;
}

/* Highlight boxes */
.highlight-box {
  background: white;
  border-left: 4px solid var(--muted-blue);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-box.warm {
  border-left-color: var(--muted-amber);
  background: linear-gradient(135deg, #FFFCF7 0%, #FFF9F0 100%);
}

.highlight-box.calm {
  border-left-color: var(--muted-green);
  background: linear-gradient(135deg, #F8FBF8 0%, #F2F9F2 100%);
}

/* Buttons */
.btn-landing {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #4A9FDB 0%, #2E8BC9 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 159, 219, 0.4);
}

.btn-landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(141, 190, 234, 0.4);
  color: white;
}

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

/* Social proof badges */
.social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 8px;
}

.social-proof-item {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
  text-align: center;
  color: var(--warm-grey);
  font-size: 0.95rem;
}

.social-proof-item strong {
  display: block;
  color: var(--deep-charcoal);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.landing-footer {
  background: white;
  border-top: 1px solid rgba(217, 200, 180, 0.3);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  text-align: center;
}

.landing-footer .powered-by {
  font-size: 1rem;
  color: var(--warm-grey);
  margin-bottom: 0.5rem;
}

.landing-footer .powered-by a {
  color: var(--deep-charcoal);
  text-decoration: none;
  font-weight: 500;
}

.landing-footer .powered-by a:hover {
  color: var(--muted-blue);
}

.landing-footer .tagline {
  font-size: 0.9rem;
}

.landing-footer .separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.landing-footer .footer-links {
  font-size: 0.9rem;
  color: var(--warm-grey);
  margin: 0;
}

.landing-footer .footer-links a {
  color: var(--warm-grey);
  text-decoration: none;
}

.landing-footer .footer-links a:hover {
  color: var(--muted-blue);
}

/* Quote/testimonial style */
.quote-block {
  font-style: italic;
  color: var(--warm-grey);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid var(--clay-taupe);
  background: rgba(217, 200, 180, 0.1);
  border-radius: 0 8px 8px 0;
}

/* Quiz placeholder styles */
.quiz-container {
  max-width: 700px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Quiz progress in content (not used when in header) */
.quiz-container .quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--soft-sand);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-container .quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--muted-blue) 0%, var(--muted-green) 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-charcoal);
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  padding: 1.25rem 1.5rem;
  padding-right: 3.5rem;
  background: var(--soft-sand);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.quiz-option:hover {
  border-color: var(--muted-green);
  background: white;
}

.quiz-option.selected {
  border-color: var(--muted-green);
  background: var(--soft-sand);
}

.quiz-option.selected::after {
  content: '✓';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-green);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

/* Results placeholder */
.results-container {
  max-width: 800px;
  margin: 0.5rem auto;
  padding: 0.5rem 2rem;
}

.readiness-score {
  text-align: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #F8FBF8 0%, #F2F9F2 100%);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.readiness-score .score-number {
  font-size: 4rem;
  font-weight: bold;
  color: var(--muted-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.readiness-score .score-label {
  font-size: 1.25rem;
  color: var(--deep-charcoal);
}

/* Responsive utilities */
@media (max-width: 576px) {
  .landing-footer .powered-by {
    font-size: 0.9rem;
  }
  
  .landing-footer .tagline {
    display: block;
    margin-top: 0.5rem;
  }
  
  .landing-footer .separator {
    display: none;
  }
}
