/* Step2Success — lively touches (inspired by roojh.com), kept light for speed.
   Uses the site's existing colours: --accent-color #077f52, --heading-color #2d465e. */

/* ---------- Hero: second button + floating chips ---------- */
#hero-4 .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#hero-4 .btn-primary { position: relative; overflow: hidden; }
#hero-4 .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: pep-shine 3.2s ease-in-out infinite 1.5s;
}
@keyframes pep-shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }

#hero-4 .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.75); color: #fff; font-weight: 600; font-family: var(--nav-font);
  transition: background .25s, color .25s, transform .25s;
}
#hero-4 .btn-ghost:hover { background: #fff; color: #077f52; transform: translateY(-2px); }

.hero-chips { list-style: none; padding: 0; margin: 22px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff;
  font: 500 14px/1.2 var(--nav-font); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(14px);
  animation: pep-chip-in .6s cubic-bezier(.2,.8,.2,1) forwards, pep-float 5s ease-in-out infinite;
}
.hero-chips li i { color: #5fe0a8; }
.hero-chips li:nth-child(1) { animation-delay: .3s, 1.0s; }
.hero-chips li:nth-child(2) { animation-delay: .45s, 1.6s; }
.hero-chips li:nth-child(3) { animation-delay: .6s, 2.2s; }
.hero-chips li:nth-child(4) { animation-delay: .75s, 2.8s; }
@keyframes pep-chip-in { to { opacity: 1; transform: translateY(0); } }
@keyframes pep-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

/* ---------- Stats + "learners work at" strip ---------- */
.pep-strip { padding: 0 0 10px; background: var(--background-color, #f1f5f4); position: relative; z-index: 2; }
.pep-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -48px;
  background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(45,70,94,.14); overflow: hidden;
}
.pep-stat { padding: 26px 18px; text-align: center; position: relative; }
.pep-stat + .pep-stat::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: #e3ebe8; }
.pep-stat strong { display: block; font: 800 40px/1 var(--heading-font); color: #077f52; letter-spacing: -.5px; }
.pep-stat span { display: block; margin-top: 8px; font: 500 14px/1.3 var(--nav-font); color: #2d465e; }

.pep-marquee { margin-top: 28px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.pep-marquee-label { flex: 0 0 auto; font: 600 13px/1 var(--nav-font); letter-spacing: 1.5px; text-transform: uppercase; color: #5b6b7a; }
.pep-marquee-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pep-marquee-track { display: flex; gap: 14px; width: max-content; animation: pep-marquee 22s linear infinite; }
.pep-marquee-track span {
  padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid #dfe8e4;
  font: 700 16px/1 var(--heading-font); color: #2d465e; white-space: nowrap;
}
.pep-marquee:hover .pep-marquee-track { animation-play-state: paused; }
@keyframes pep-marquee { to { transform: translateX(-50%); } }

/* ---------- Cards lift on hover ---------- */
.why-card, #roadmap .timeline-content, .pricing-2 .pricing-item,
#learning-guides article, .faq-item {
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.why-card:hover, #roadmap .timeline-content:hover, .pricing-2 .pricing-item:hover,
#learning-guides article:hover {
  transform: translateY(-6px); box-shadow: 0 16px 36px rgba(45,70,94,.14);
}
.faq-item:hover { transform: translateX(4px); }

/* ---------- Floating WhatsApp button ---------- */
.pep-wa {
  position: fixed; left: 18px; bottom: 18px; z-index: 99999; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; font-size: 28px;
  box-shadow: 0 10px 24px rgba(37,211,102,.45); transition: transform .25s;
}
.pep-wa:hover { color: #fff; transform: scale(1.08); }
.pep-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pep-ping 2.2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pep-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .pep-stats { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .pep-stat:nth-child(3)::before { display: none; }
  .pep-stat { padding: 18px 12px; }
  .pep-stat strong { font-size: 32px; }
  .pep-marquee { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pep-marquee-viewport { width: 100%; }
  .hero-chips { gap: 8px; margin-top: 16px; }
  .hero-chips li { font-size: 13px; padding: 6px 11px; }
  #hero-4 .btn-ghost { width: 100%; justify-content: center; }
  .pep-wa { width: 50px; height: 50px; font-size: 24px; left: 14px; bottom: 14px; }
}

/* ---------- Respect people who turn animation off ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-chips li { animation: none; opacity: 1; transform: none; }
  #hero-4 .btn-primary::after, .pep-wa::before, .pep-marquee-track { animation: none; }
  .why-card, #roadmap .timeline-content, .faq-item { transition: none; }
}

/* ---------- Readability: text colours that pass WCAG AA contrast (4.5:1) ---------- */
.hero-badge, .pricing-2 .plan-badge span, .pricing-2 .btn-select, .questions-count { color: #05613e !important; }
.pricing-2 .billing-note, .pricing-2 .billing-cycle, .instructor-rating span,
.module-meta, .faq .category-card .category-info span { color: #5c6064 !important; }
.pricing-2 .featured .billing-note, .pricing-2 .trial-text,
.faq .category-card.active .category-info span { color: #ffffff !important; }
.pricing-2 .original-price { color: #ffffff !important; opacity: .9 !important; }
.pricing-2 .featured-tag, .pricing-2 .featured .plan-badge span { background: #05613e !important; color: #fff !important; }

/* ---------- Gentler scroll animations: short travel so content appears almost instantly ---------- */
html:not(.no-js) [data-aos=fade-up] { transform: translate3d(0, 24px, 0); }
html:not(.no-js) [data-aos=fade-down] { transform: translate3d(0, -24px, 0); }
html:not(.no-js) [data-aos=fade-right] { transform: translate3d(-24px, 0, 0); }
html:not(.no-js) [data-aos=fade-left] { transform: translate3d(24px, 0, 0); }
html:not(.no-js) [data-aos=zoom-in] { transform: scale(.94); }
html:not(.no-js) [data-aos=zoom-in-up] { transform: translate3d(0, 24px, 0) scale(.94); }
html:not(.no-js) [data-aos^=fade].aos-animate, html:not(.no-js) [data-aos^=zoom].aos-animate { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   Hero clean-up: smaller type, tighter spacing, light CSS-only motion
   ===================================================================== */
#hero-4 { min-height: 88vh; min-height: 88svh; padding: 112px 0 84px; }
#hero-4 .hero-4-content { max-width: 720px; }
#hero-4 .hero-title {
  font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -1px; margin: 0 0 14px;
}
#hero-4 .s2s-rotator { height: 1.2em; }
#hero-4 .s2s-rotator > span { white-space: nowrap; }
#hero-4 .hero-description {
  max-width: 560px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: rgba(241,245,249,.92); margin: 0 0 22px;
}
#hero-4 .hero-actions { gap: 12px; }
#hero-4 .hero-actions .btn-primary { padding: 13px 22px; font-size: 15px; font-weight: 700; border-radius: 10px; }
#hero-4 .btn-ghost { padding: 11px 20px; font-size: 15px; border-radius: 10px; border-width: 1.5px; }
.hero-chips { margin: 18px 0 0; gap: 8px; }
.hero-chips li { padding: 6px 12px; font-size: 13px; }
#hero-4 .hero-proof {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.78);
}
#hero-4 .hero-proof img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; flex: none; }
#hero-4 .hero-proof strong { color: #fff; font-weight: 600; }

/* Motion (GPU-only transforms/opacity; the headline itself is never hidden, so it paints instantly) */
#hero-4 .hero-description, #hero-4 .hero-actions, #hero-4 .hero-chips, #hero-4 .hero-proof {
  animation: pep-rise .6s cubic-bezier(.2,.8,.2,1) both;
}
#hero-4 .hero-description { animation-delay: .05s; }
#hero-4 .hero-actions { animation-delay: .15s; }
#hero-4 .hero-chips { animation-delay: .25s; }
#hero-4 .hero-proof { animation-delay: .35s; }
@keyframes pep-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#hero-4 .video-background { animation: pep-kenburns 24s ease-in-out infinite alternate; }
@keyframes pep-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
#hero-4 .overlay { background: linear-gradient(100deg, rgba(4,20,14,.86) 0%, rgba(4,20,14,.62) 55%, rgba(0,0,0,.35) 100%); }
#hero-4 .overlay::after {
  content: ""; position: absolute; width: 520px; height: 520px; left: -120px; top: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(7,127,82,.35), transparent 65%);
  animation: pep-glow 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes pep-glow { from { transform: translate3d(0,0,0); } to { transform: translate3d(80px,-40px,0); } }

@media (max-width: 767px) {
  #hero-4 { min-height: auto; padding: 96px 0 76px; }
  #hero-4 .hero-title { font-size: clamp(28px, 7.6vw, 34px); }
  #hero-4 .s2s-rotator { height: 1.2em; }
  #hero-4 .s2s-rotator > span { white-space: normal; }
  #hero-4 .hero-description { font-size: 15px; margin-bottom: 18px; }
  #hero-4 .hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  #hero-4 .hero-actions .btn-primary { width: 100%; padding: 13px 14px; font-size: 14px; }
  #hero-4 .btn-ghost { width: auto; padding: 11px 14px; font-size: 14px; }
  .hero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .hero-chips::-webkit-scrollbar { display: none; }
  .hero-chips li { flex: none; font-size: 12.5px; }
  #hero-4 .hero-proof { font-size: 12px; margin-top: 18px; }
  #hero-4 .overlay::after { width: 320px; height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  #hero-4 .hero-description, #hero-4 .hero-actions, #hero-4 .hero-chips, #hero-4 .hero-proof,
  #hero-4 .video-background, #hero-4 .overlay::after { animation: none !important; }
}
