/* Homepage redesign — modern section system, theme colors only.
   Loaded on the front page only (see emc_homepage_redesign_assets).
   The hero itself is left structurally untouched; only its eyebrow,
   popular pills and rating stars get bg-agnostic polish. */

.ef-steps,
.ef-tsection,
.ef-faq {
  padding: 2.5rem 0;
}
.ef-props,
.ef-trustbar {
  padding: 2rem 0;
}

/* Shared section headers: centered, pill eyebrow, strong title. */
body.home .ef-sec-head {
  text-align: center;
  margin-bottom: 2rem;
}
body.home .ef-sec-head .ef-eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: #6366f1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.home .ef-sec-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0.75rem 0 0.5rem;
}
body.home .ef-sec-head p {
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
}

/* 3 steps: white cards, gradient number badges (overrides saved
   widget colors so every step matches the theme scheme). */
.ef-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ef-step {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ef-step__num {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.ef-step__line {
  display: none;
}
.ef-step h3 {
  color: #1e293b;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
.ef-step p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* Why buy from us: value-prop cards with tinted icon tiles. */
.ef-props__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 2rem;
}
.ef-props__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.ef-prop {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ef-prop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eef2ff;
  font-size: 1.75rem;
}
.ef-prop h3 {
  color: #1e293b;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}
.ef-prop p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* Testimonials: card styling only — the slider track is untouched
   so the slider keeps working exactly as before. */
.ef-tslider__slide {
  padding: 0.5rem;
}
.ef-testimonial {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.ef-testimonial__quote {
  color: #c7d2fe;
  font-size: 3rem;
  line-height: 1;
}

/* FAQ: bordered cards, indigo highlight when open. */
.ef-faq__item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.ef-faq__item.is-open {
  border-color: #c7d2fe;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.ef-faq__q {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: #1e293b;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.ef-faq__a {
  padding: 0 1.25rem 1.25rem;
  color: #475569;
  line-height: 1.7;
}
.ef-faq__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
  color: #6366f1;
}

/* Trust bar: icon tints forced to the theme scheme (overrides
   saved widget colors); layout untouched. */
.ef-trustbar__icon {
  background: rgba(99, 102, 241, 0.1) !important;
  color: #6366f1 !important;
}

/* Hero touches (bg-agnostic: safe on dark or light hero). */
.ef-hero-pakka__eyebrow {
  display: inline-block;
  background: #eef2ff;
  color: #6366f1;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}
.ef-hero-pakka__popular a {
  border: 1px solid #c7d2fe;
  padding: 6px 14px;
  border-radius: 999px;
}
.ef-hero-pakka__popular a:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}
.ef-hero-pakka__rating .ef-stars {
  color: #f59e0b;
}

@media (max-width: 768px) {
  .ef-steps__grid {
    grid-template-columns: 1fr;
  }
  .ef-steps,
  .ef-tsection,
  .ef-faq {
    padding: 1.5rem 0;
  }
}

/* Testimonial avatar letter: clearly visible white initial (5.9.54).
   The live theme's fallback letter rendered faint against the violet
   circle, so force white, bold and slightly larger. */
body.home .ef-testimonial__avatar-fallback {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  font-weight: 800;
  font-size: 1.3rem;
  opacity: 1 !important;
}

/* Hero right-side visual: modern browser-window mockups (5.9.54).
   The collage was flat empty rectangles; the main mockup becomes a
   browser window (chrome bar with theme-color dots + skeleton content)
   and the side mockup becomes a mini app card with a sheen. Pure CSS,
   theme colors only, no new assets, no text claims. */
body.home .ef-hero-pakka__mockup--main {
  box-shadow: 0 30px 80px rgba(109, 40, 217, 0.22);
}
body.home .ef-hero-pakka__mockup--main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  border-radius: 1.25rem 1.25rem 0 0;
  background:
    radial-gradient(circle at 16px 16px, #6366f1 5px, transparent 6px),
    radial-gradient(circle at 32px 16px, #8b5cf6 5px, transparent 6px),
    radial-gradient(circle at 48px 16px, #f59e0b 5px, transparent 6px),
    linear-gradient(#ede9fe, #ede9fe) 64px 10px / 32% 12px no-repeat,
    rgba(255, 255, 255, 0.9);
  background-repeat: no-repeat;
}
body.home .ef-hero-pakka__mockup--main::after {
  inset: 46px 18px 18px 18px;
  background:
    linear-gradient(#6366f1, #6366f1) 8% 12% / 55% 7% no-repeat,
    linear-gradient(#c7d2fe, #c7d2fe) 8% 26% / 72% 4% no-repeat,
    linear-gradient(#ddd6fe, #ddd6fe) 8% 35% / 58% 4% no-repeat,
    linear-gradient(135deg, #a5b4fc, #c7d2fe) 8% 47% / 84% 30% no-repeat,
    linear-gradient(135deg, #6366f1, #8b5cf6) 8% 86% / 28% 10% no-repeat,
    linear-gradient(135deg, #ddd6fe 0%, #f5f3ff 50%, #ede9fe 100%);
}
body.home .ef-hero-pakka__mockup--side {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 30px 80px rgba(109, 40, 217, 0.25);
}
body.home .ef-hero-pakka__mockup--side::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.4) 0 26px, transparent 28px);
}
body.home .ef-hero-pakka__mockup--side::after {
  background:
    linear-gradient(#8b5cf6, #8b5cf6) 16px 16px / 45% 12px no-repeat,
    linear-gradient(#ddd6fe, #ddd6fe) 16px 42px / 68% 8px no-repeat,
    linear-gradient(#ede9fe, #ede9fe) 16px 58px / 50% 8px no-repeat,
    linear-gradient(#f59e0b, #f59e0b) 16px 82px / 32% 10px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97));
}
