/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE — Soft Professional Theme
   Light backgrounds, dark text, alternating sections, emerald accents.
   Designed for the "Math + Metabolism" narrative.
   NO dark-theme rules here. NO white text on light backgrounds.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Palette (matches mp.css :root) ─── */
/* --soft-bg: #f8fafc   --soft-bg-alt: #f1f5f9   --mp-bg: #ffffff
   --soft-text: #1e293b  --soft-text-body: #334155  --mp-text-muted: #475569
   --mp-accent: #059669  --mp-accent-hover: #047857
   Dark section: #0f172a text on that: #e2e8f0  */

/* ─── Hero ─── */
.landing-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  z-index: 1;
  background: #f8fafc;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #1e293b;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #334155;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta-row .btn {
  text-decoration: none;
}

.hero-trust-row {
  color: #475569;
  font-size: 0.9rem;
}
.hero-trust-row i {
  color: #059669;
}

.hero-trust-line {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  opacity: 0.7;
  margin-bottom: 0;
}

/* Hero visual (leaf + rings) */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.hero-visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(5, 150, 105, 0.12);
  animation: ring-rotate 25s linear infinite;
}
.hero-visual-ring-1 { width: 320px; height: 320px; }
.hero-visual-ring-2 { width: 240px; height: 240px; opacity: 0.6; animation-duration: 20s; animation-direction: reverse; }
.hero-visual-ring-3 { width: 160px; height: 160px; border-color: rgba(5, 150, 105, 0.25); animation-duration: 15s; }

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.hero-visual-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
  animation: leaf-float 4s ease-in-out infinite;
}

/* Floating leaf: gentle up-down drift */
@keyframes leaf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ─── Shared section typography ─── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Problem section (alternate bg) ─── */
.landing-problem {
  padding: 5rem 0;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}
.landing-problem h2 { color: #1e293b; }
.landing-problem p { color: #334155; }
.problem-content {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ─── How it works — DARK NAVY SECTION for contrast ─── */
.landing-steps {
  padding: 5rem 0;
  background: #0f172a;
  position: relative;
  z-index: 1;
}
.landing-steps .section-title { color: #f1f5f9; }
.landing-steps .section-lead { color: #94a3b8; }

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.25rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.step-card h4 { color: #f1f5f9; margin-bottom: 0.75rem; }
.step-card p { color: #cbd5e1; font-size: 0.95rem; margin-bottom: 0; line-height: 1.7; }

/* ─── Why Us / Trust (back to light) ─── */
.landing-trust {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
  z-index: 1;
}
.landing-trust h2 { color: #1e293b; }
.why-us-content {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.why-us-content p { color: #334155; }
.why-us-content p:first-child {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
}

.why-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #059669;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-block:last-child {
  margin-bottom: 0;
}
.why-block:hover {
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  border-left-color: #059669;
}
.why-block p {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.trust-quote {
  max-width: 600px;
  padding: 1.75rem 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  border-left: 4px solid #059669;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

/* ─── Features grid (alternate bg) ─── */
.landing-features {
  padding: 5rem 0;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid transparent;
  border-radius: 20px;
  padding: 2.25rem;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}
.feature-card:hover {
  border-color: rgba(5, 150, 105, 0.3);
  border-top-color: #059669;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-included {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.feature-card h5 { color: #1e293b; margin-bottom: 0.5rem; }
.feature-card p { color: #475569; font-size: 0.95rem; margin-bottom: 0; line-height: 1.65; }

/* ─── FAQ Accordion (light) ─── */
.landing-faq {
  padding: 5rem 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}
.landing-faq .section-title { color: #1e293b; }

.faq-accordion .accordion-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.faq-accordion .accordion-button {
  background: transparent !important;
  color: #1e293b;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
  border: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: #059669;
  background: rgba(5, 150, 105, 0.05) !important;
}
.faq-accordion .accordion-button::after {
  /* Default Bootstrap arrow is fine for light theme */
  filter: none;
  opacity: 0.6;
}
.faq-accordion .accordion-body {
  background: #fafbfc;
  color: #334155;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  line-height: 1.7;
}
.faq-accordion .accordion-body a.hover-emerald {
  color: #059669;
}
.faq-accordion .accordion-body a.hover-emerald:hover {
  color: #047857;
}

/* ─── Pricing (light, compact) ─── */
.landing-pricing {
  padding: 4rem 0;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}
.landing-pricing .section-title { color: #1e293b; }
.landing-pricing .section-lead { color: #475569; max-width: 560px; }

.price-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.price-card.popular {
  border: 2px solid #059669;
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.12);
}
.price-card.popular:hover {
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.18);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.price-card h3 { color: #1e293b; margin-bottom: 0.25rem; font-size: 1.35rem; }

.price-card .price-tag {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}
.price-card .price-tag small {
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
}

.price-desc {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.price-features li {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.price-features li i {
  color: #059669;
  flex-shrink: 0;
}
.price-card .btn {
  text-decoration: none;
  margin-top: auto;
}

/* ─── CTA buttons on landing ─── */
.btn-primary-glow {
  background: #059669;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}
.btn-primary-glow:hover {
  background: #047857;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-secondary-glass {
  background: transparent;
  color: #1e293b;
  font-weight: 600;
  border: 2px solid #059669;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.btn-secondary-glass:hover {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

/* ─── Final CTA ─── */
.landing-cta {
  padding: 5rem 0;
  background: #f8fafc;
  position: relative;
  z-index: 1;
}
.cta-box {
  background: linear-gradient(145deg, rgba(5, 150, 105, 0.06) 0%, rgba(5, 150, 105, 0.02) 100%);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.cta-box h2 { color: #1e293b; margin-bottom: 0.75rem; }
.cta-box .cta-lead {
  color: #334155;
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ─── Project Journal ─── */
.landing-journal {
  padding: 4.5rem 0;
  background: #0f172a;
  position: relative;
  z-index: 1;
}
.landing-journal .section-title { color: #f1f5f9; }
.journal-content {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.journal-content p { color: #cbd5e1; }
.journal-content p:first-child {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
}
.journal-cta-text {
  color: #94a3b8 !important;
  font-style: italic;
  margin-bottom: 1.25rem !important;
}
.landing-journal .btn-secondary-glass {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.25);
}
.landing-journal .btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto 2rem;
}
.journal-post {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.journal-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(16, 185, 129, 0.3);
}
.journal-post-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}
.journal-post-title {
  color: #f1f5f9;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.4;
}
.journal-post-summary {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}
.journal-footer {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.journal-human-text {
  color: #94a3b8;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* ─── Animations ─── */
.landing-page .fade-in {
  opacity: 0;
  animation: landingFadeIn 0.7s ease forwards;
}
.landing-page .delay-1 { animation-delay: 0.15s; }
.landing-page .delay-2 { animation-delay: 0.25s; }
.landing-page .delay-3 { animation-delay: 0.4s; }

@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .landing-hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }
  .hero-visual-wrap {
    min-height: 240px;
    margin-top: 2rem;
  }
  .hero-visual-ring-1 { width: 240px; height: 240px; }
  .hero-visual-ring-2 { width: 180px; height: 180px; }
  .hero-visual-ring-3 { width: 120px; height: 120px; }
}

@media (max-width: 768px) {
  .landing-problem,
  .landing-steps,
  .landing-features,
  .landing-trust,
  .landing-faq,
  .landing-pricing,
  .landing-cta {
    padding: 3.5rem 0;
  }
  .landing-journal {
    padding: 3.5rem 0;
  }
  .journal-grid {
    grid-template-columns: 1fr;
  }
}
