/* ===== LANDING PAGE ===== */
/* Uses the existing Temple palette from main.css :root variables */

/* Body background — IDENTICAL recipe to the blog (css/blog.css) for site-wide
   consistency: soft spread crimson gradient + seamless linked-octagon tile,
   with a solid base color so nothing can ever fall through to white.
   IMPORTANT: background-attachment: fixed was REMOVED — fixed pins the
   gradient to one viewport, so everything below the fold painted white
   (body had no background-color). scroll + tiling = seamless full page. */
body {
  background-color: #3A0000; /* base under everything — never white */
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20viewBox%3D%220%200%2054.627%2054.627%22%20width%3D%2254.627%22%20height%3D%2254.627%22%3E%3Cg%20stroke%3D%22rgba(212,160,23,0.07)%22%20stroke-width%3D%221%22%3E%3Cpath%20d%3D%22M%2046.627,35.314%20L%2035.314,46.627%20L%2019.314,46.627%20L%208.000,35.314%20L%208.000,19.314%20L%2019.314,8.000%20L%2035.314,8.000%20L%2046.627,19.314%20Z%22%20fill%3D%22none%22/%3E%3Cline%20x1%3D%228.000%22%20y1%3D%2227.314%22%20x2%3D%220.000%22%20y2%3D%2227.314%22/%3E%3Cline%20x1%3D%2246.627%22%20y1%3D%2227.314%22%20x2%3D%2254.627%22%20y2%3D%2227.314%22/%3E%3Cline%20x1%3D%2227.314%22%20y1%3D%228.000%22%20x2%3D%2227.314%22%20y2%3D%220.000%22/%3E%3Cline%20x1%3D%2227.314%22%20y1%3D%2246.627%22%20x2%3D%2227.314%22%20y2%3D%2254.627%22/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(170deg, #3A0000 0%, #4E0606 30%, #5C0000 50%, #4E0606 70%, #3A0000 100%);
  background-size: 54.627px 54.627px, 100% 300vh;
  background-repeat: repeat, repeat-y;
  background-attachment: scroll, scroll;
}

.landing-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 145px 24px 0; /* Top padding clears the fixed logo overlay (same as .main) */
  position: relative;
  z-index: 1; /* Above .bg-grid */
}

/* ===== HERO ===== */
.landing-hero {
  text-align: center;
  padding: 20px 0 48px;
  animation: temple-reveal 0.8s ease-out;
}

.landing-hero-title {
  font-family: var(--font-cn);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--parchment);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.landing-hero-sub {
  color: var(--gold-dark);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

.landing-hero-trust {
  color: var(--parchment);
  font-size: 12px;
  opacity: 0.75; /* light parchment on dark crimson — visible micro-line */
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.landing-cta-btn {
  display: inline-block;
  width: auto;
  padding: 14px 40px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ===== DIVIDER ===== */
.landing-divider {
  text-align: center;
  color: var(--gold-dark);
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.5;
  margin: 24px 0;
}

/* ===== SECTIONS ===== */
.landing-section {
  padding: 40px 0;
  text-align: center;
}

.landing-section-title {
  font-family: var(--font-cn);
  font-size: 24px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 20px;
  line-height: 1.4;
}

.landing-section-text {
  color: var(--parchment);
  opacity: 0.92; /* light parchment on dark crimson — same as blog body text */
  font-size: 14px;
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 16px;
}

/* ===== CHAT DEMO ===== */
.landing-chat-demo {
  margin: 32px auto;
  max-width: 480px;
  text-align: left;
}

.landing-chat-message {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  position: relative;
}

.landing-chat-user {
  background: rgba(155, 27, 27, 0.15);
  border: 1px solid rgba(165, 124, 0, 0.15);
  margin-left: 40px;
}

.landing-chat-master {
  background: rgba(255, 248, 220, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.2);
  margin-right: 40px;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.06);
}

.landing-chat-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.landing-chat-user .landing-chat-role {
  color: var(--gold-dark);
}

.landing-chat-master .landing-chat-role {
  color: var(--gold);
}

.landing-chat-message p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.landing-chat-user p {
  color: var(--parchment);
}

.landing-chat-master p {
  color: var(--parchment);
  opacity: 0.9; /* light parchment on dark crimson — same as blog body */
  font-style: italic;
}

.landing-chat-cta {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  font-size: 14px;
}

/* ===== FEATURES GRID ===== */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.landing-feature-card {
  background: rgba(255, 248, 220, 0.05);
  border: 1px solid rgba(165, 124, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.4s ease;
}

.landing-feature-card:hover {
  border-color: var(--gold-dark);
  background: rgba(255, 248, 220, 0.08);
  box-shadow: 0 0 16px var(--incense-glow);
  animation: incense-glow 3s ease-in-out infinite;
}

.landing-feature-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.landing-feature-card h3 {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 6px;
}

.landing-feature-card p {
  font-size: 11px;
  color: var(--parchment);
  opacity: 0.8; /* light parchment on dark crimson */
  line-height: 1.5;
}

/* ===== PRICING ROW ===== */
.landing-pricing-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 16px;
}

.landing-pricing-tier {
  background: rgba(255, 248, 220, 0.05);
  border: 1px solid rgba(165, 124, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  position: relative;
}

.landing-pricing-highlight {
  border-color: var(--gold);
  background: rgba(212, 160, 23, 0.08);
  box-shadow: 0 0 12px var(--incense-glow);
}

.landing-pricing-name {
  display: block;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 4px;
}

.landing-pricing-price {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.landing-pricing-tier p {
  font-size: 11px;
  color: var(--parchment);
  opacity: 0.8; /* light parchment on dark crimson */
  line-height: 1.5;
}

.landing-pricing-note {
  font-size: 11px;
  color: var(--parchment);
  opacity: 0.7;
  font-style: italic;
}

/* ===== FINAL CTA ===== */
.landing-cta {
  text-align: center;
  padding: 48px 0 64px;
}

.landing-cta h2 {
  font-family: var(--font-cn);
  font-size: 24px;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 8px;
}

.landing-cta p {
  color: var(--parchment);
  opacity: 0.85; /* light parchment on dark crimson */
  font-size: 13px;
  margin-bottom: 24px;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  /* Reduce top padding — no nav bar on landing, just the logo overlay */
  .landing-page {
    padding-top: 90px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-hero {
    padding: 10px 0 32px;
  }

  .landing-hero-title {
    font-size: 26px;
  }

  .landing-hero-sub {
    font-size: 14px;
  }

  .landing-section {
    padding: 28px 0;
  }

  .landing-section-title {
    font-size: 20px;
  }

  .landing-section-text {
    font-size: 13px;
  }

  /* Feature cards stack vertically */
  .landing-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-feature-card {
    padding: 16px 14px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .landing-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .landing-feature-card h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .landing-feature-card p {
    font-size: 11px;
  }

  /* Pricing stacks vertically */
  .landing-pricing-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-pricing-tier {
    padding: 18px 14px;
  }

  /* Chat demo tighter margins */
  .landing-chat-user {
    margin-left: 12px;
  }

  .landing-chat-master {
    margin-right: 12px;
  }

  .landing-chat-message {
    padding: 12px 14px;
  }

  .landing-chat-message p {
    font-size: 12px;
  }

  /* CTA button */
  .landing-cta-btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .landing-cta {
    padding: 32px 0 48px;
  }

  .landing-divider {
    font-size: 12px;
    margin: 16px 0;
  }
}

/* ===== FOOTER (landing-specific override) ===== */
/* main.css .footer uses parchment-muted brown + gold-dark links — readable on
   the calculator's parchment, LOW contrast on dark crimson. Landing overrides
   to light parchment text + gold links, matching the blog's light-on-dark. */
.landing-page .footer {
  color: var(--parchment);
  opacity: 0.8;
  border-top: 1px solid rgba(165, 124, 0, 0.25);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.landing-page .footer a {
  color: var(--gold) !important; /* overrides the inline style="color:var(--gold-dark)" */
}

.landing-page .footer a:hover {
  color: var(--gold-bright) !important;
}

.landing-page .footer-small {
  opacity: 1;
}
