/* =============================================
   LANDING — Shared Landing Page Styles
   ============================================= */

/* === LANDING SECTIONS === */
.lp-section {
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.lp-section-alt {
  background: var(--ivory);
}
.lp-section-in {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.lp-section-in h2 {
  font-family: var(--fd);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
}
.lp-section-desc {
  font-size: 15px;
  color: var(--mu);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* === PAIN POINTS === */
.lp-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.lp-pain-card {
  background: var(--wh);
  border: 1px solid rgba(220, 53, 69, .1);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all .3s;
}
.lp-pain-card:hover {
  border-color: rgba(220, 53, 69, .2);
  box-shadow: 0 8px 24px rgba(220, 53, 69, .06);
  transform: translateY(-2px);
}
.lp-pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.lp-pain-red {
  background: var(--red-s);
  color: var(--red);
}
.lp-pain-card h3 {
  font-family: var(--fd);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ch);
}
.lp-pain-card p {
  font-size: 14px;
  color: var(--sl);
  line-height: 1.6;
}

/* Pain solution banner */
.lp-pain-solution {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--em-s);
  border: 1px solid rgba(13, 107, 78, .12);
  border-radius: 14px;
  padding: 22px 28px;
  font-size: 14px;
  color: var(--sl);
  line-height: 1.6;
}
.lp-pain-solution strong {
  color: var(--em);
}
.lp-pain-solution-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--em);
  color: var(--wh);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === CHECKLIST / DELIVERABLES === */
.lp-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.lp-check-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--wh);
  border: 1px solid rgba(200, 164, 78, .08);
  border-radius: 12px;
  transition: all .3s;
}
.lp-section-alt .lp-check-card {
  background: var(--cream);
}
.lp-check-card:hover {
  border-color: rgba(13, 107, 78, .15);
  box-shadow: 0 4px 16px rgba(13, 107, 78, .06);
}
.lp-check-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--em-s);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-check-icon svg {
  width: 18px;
  height: 18px;
}
.lp-check-free {
  background: var(--gold-p);
  color: var(--gold);
}
.lp-check-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ch);
  margin-bottom: 4px;
}
.lp-check-card p {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
}

/* === INLINE CTA === */
.lp-cta-inline {
  text-align: center;
}
.lp-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--em);
  color: var(--wh);
  border: none;
  border-radius: 10px;
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all .3s;
}
.lp-btn:hover {
  background: var(--em-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 107, 78, .25);
  text-decoration: none;
}

/* === SUBJECT CARDS === */
.lp-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.lp-subject-card {
  background: var(--wh);
  border: 1px solid rgba(200, 164, 78, .08);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all .3s;
}
.lp-subject-card:hover {
  border-color: rgba(13, 107, 78, .15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  transform: translateY(-2px);
}
.lp-subject-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}
.lp-subject-card h4 {
  font-family: var(--fd);
  font-size: 17px;
  color: var(--ch);
  margin-bottom: 6px;
}
.lp-subject-card p {
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
}
.lp-more {
  font-size: 14px;
  color: var(--mu);
  text-align: center;
}
.lp-more a {
  color: var(--em);
  font-weight: 600;
  text-decoration: none;
}
.lp-more a:hover {
  text-decoration: underline;
}

/* === WRITERS GRID (non-carousel for landing) === */
.lp-writers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.lp-writers-grid .wcard {
  width: auto;
}

/* === LANDING PRICING CARDS — center 2 cards on desktop === */
.pri .pcs {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* === LANDING SECTION DECORATIVE BACKGROUNDS === */

/* Pain section — subtle diagonal stripes */
.lp-section#lp-pain {
  background: var(--wh);
}
.lp-section#lp-pain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 80px,
    rgba(220, 53, 69, .018) 80px,
    rgba(220, 53, 69, .018) 81px
  );
  pointer-events: none;
}
.lp-section#lp-pain::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, .15), transparent);
  pointer-events: none;
}

/* Deliverables / Alt section — dot grid */
.lp-section-alt {
  background: var(--ivory);
  position: relative;
}
.lp-section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(200, 164, 78, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* White sections without alt — subtle cross-hatch on even ones */
.lp-section:not(.lp-section-alt)#lp-subjects,
.lp-section:not(.lp-section-alt)#lp-sources,
.lp-section:not(.lp-section-alt)#lp-turnitin,
.lp-section:not(.lp-section-alt)#lp-revisions,
.lp-section:not(.lp-section-alt)#lp-quality,
.lp-section:not(.lp-section-alt)#lp-financials {
  background: var(--wh);
}
.lp-section:not(.lp-section-alt)#lp-subjects::before,
.lp-section:not(.lp-section-alt)#lp-sources::before,
.lp-section:not(.lp-section-alt)#lp-turnitin::before,
.lp-section:not(.lp-section-alt)#lp-revisions::before,
.lp-section:not(.lp-section-alt)#lp-quality::before,
.lp-section:not(.lp-section-alt)#lp-financials::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 107, 78, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 107, 78, .015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Decorative corner accents for lp-sections */
.lp-section:not(.lp-section-alt) > .lp-section-in::before {
  content: '';
  position: absolute;
  top: 30px;
  right: -40px;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(200, 164, 78, .05);
  border-radius: 50%;
  pointer-events: none;
}

/* Section divider gold line for alt sections */
.lp-section-alt::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .3;
  pointer-events: none;
}

/* === FORM SUCCESS STATE === */
.lp-form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--em-s);
  border: 1px solid rgba(13, 107, 78, .15);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em);
  text-align: center;
  animation: fu .4s ease;
}

/* === RESPONSIVE — LANDING === */
@media (max-width: 900px) {
  .lp-section { padding: 48px 16px }
  .lp-pain-grid { grid-template-columns: 1fr }
  .lp-checklist-grid { grid-template-columns: 1fr }
  .lp-subjects-grid { grid-template-columns: 1fr 1fr }
  .lp-writers-grid { grid-template-columns: 1fr }
  .lp-writers-grid .wcard { width: 100% }
}

@media (max-width: 600px) {
  /* Pain points — compact mobile */
  .lp-section { padding: 36px 16px }
  .lp-section-desc { font-size: 13px; margin-bottom: 24px }
  .lp-pain-card { padding: 18px 16px }
  .lp-pain-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px }
  .lp-pain-icon svg { width: 18px; height: 18px }
  .lp-pain-card h3 { font-size: 15px; margin-bottom: 4px }
  .lp-pain-card p { font-size: 13px; line-height: 1.5 }
  .lp-pain-grid { gap: 10px; margin-bottom: 16px }
  .lp-pain-solution { flex-direction: column; text-align: center; gap: 10px; padding: 16px 18px; font-size: 13px }
  .lp-pain-solution-icon { width: 38px; height: 38px }
  .lp-pain-solution-icon svg { width: 18px; height: 18px }

  /* Checklist / deliverables — compact mobile */
  .lp-checklist-grid { gap: 8px; margin-bottom: 20px }
  .lp-check-card { padding: 14px 12px; gap: 10px }
  .lp-check-icon { width: 28px; height: 28px }
  .lp-check-icon svg { width: 14px; height: 14px }
  .lp-check-card h4 { font-size: 13px; margin-bottom: 2px }
  .lp-check-card p { font-size: 12px; line-height: 1.4 }

  /* Subjects — horizontal scrollable on mobile */
  .lp-subjects-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  .lp-subjects-grid::-webkit-scrollbar { display: none }
  .lp-subject-card {
    flex: 0 0 70%;
    min-width: 0;
    scroll-snap-align: start;
    padding: 20px 16px;
  }
  .lp-subject-icon { font-size: 24px; margin-bottom: 8px }
  .lp-subject-card h4 { font-size: 15px; margin-bottom: 4px }
  .lp-subject-card p { font-size: 12px }

  .lp-btn { width: 100%; text-align: center }
  .lp-more { font-size: 12px }
}
