/* ===================================
   Niche Landing Page Styles
   /css/niche.css
   =================================== */

/* --- Pain Points Section --- */
.niche-pains__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.niche-pains__card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.niche-pains__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.niche-pains__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.niche-pains__card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #05004E;
  margin: 0 0 8px;
}

.niche-pains__card p {
  font-size: 0.95rem;
  color: #6E7191;
  line-height: 1.55;
  margin: 0;
}

/* --- Features Section --- */
.niche-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.niche-features__card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.niche-features__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.niche-features__card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #05004E;
  margin: 0 0 8px;
}

.niche-features__card p {
  font-size: 0.9rem;
  color: #6E7191;
  line-height: 1.55;
  margin: 0;
}

/* --- Timeline Section --- */
.niche-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 0;
  margin: 50px auto 0;
  max-width: 960px;
}

.niche-timeline__step {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  text-align: center;
  position: relative;
  padding: 0 16px;
  box-sizing: border-box;
}

.niche-timeline__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #0027F3;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.niche-timeline__line {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

/* Hide line on last item of each row (3rd and 6th) */
.niche-timeline__step:nth-child(3) .niche-timeline__line,
.niche-timeline__step:last-child .niche-timeline__line {
  display: none;
}

.niche-timeline__step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #05004E;
  line-height: 1.3;
}

.niche-timeline__step p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6E7191;
}

@media (max-width: 768px) {
  .niche-timeline__step {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .niche-timeline__step:nth-child(3) .niche-timeline__line {
    display: block;
  }

  .niche-timeline__step:nth-child(2) .niche-timeline__line,
  .niche-timeline__step:nth-child(4) .niche-timeline__line,
  .niche-timeline__step:last-child .niche-timeline__line {
    display: none;
  }
}

@media (max-width: 500px) {
  .niche-timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .niche-timeline__step {
    flex: none;
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 0 0 28px;
  }

  .niche-timeline__num {
    margin: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .niche-timeline__line {
    display: none !important;
  }

  .niche-timeline__step h3 {
    font-size: 0.95rem;
  }
}

/* --- Pricing Section --- */
.niche-pricing__card {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.niche-pricing__price {
  font-size: 2rem;
  font-weight: 700;
  color: #05004E;
  margin-bottom: 24px;
}

.niche-pricing__includes {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  text-align: left;
  max-width: 300px;
}

.niche-pricing__includes li {
  padding: 8px 0 8px 28px;
  color: #333;
  font-size: 1rem;
  position: relative;
  line-height: 1.4;
}

.niche-pricing__includes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.niche-pricing__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Niche direction badge (for carousel) --- */
.fp-compare-badge--niche {
  background: #EEF2FF;
  color: #4338CA;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .niche-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .niche-pains__grid {
    grid-template-columns: 1fr;
  }

  .niche-features__grid {
    grid-template-columns: 1fr;
  }

  .niche-pains__card,
  .niche-features__card {
    padding: 24px 20px;
  }

  .niche-pricing__card {
    padding: 32px 24px;
  }

  .niche-pricing__price {
    font-size: 1.6rem;
  }
}
