/* =========================================================
   IH PAYROLL — LANDING PAGE (/payroll)
   Prefix: ihpl-
   Palette (hardcoded, no custom properties per site convention):
     Brand blue   #2548f5
     Mint/teal    #16d9b0
     Deep navy    #0b1130
     Navy layer   #131b3f
     Light bg     #f6f8ff
     Ink          #12163a
     Ink muted    #5b6178
   Type: Space Grotesk (display) / Inter (body) — loaded sitewide via global_head.php
   ========================================================= */

.ihpl-page {
  color: #12163a;
  overflow-x: hidden;
}

.ihpl-page h1,
.ihpl-page h2,
.ihpl-page h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.ihpl-page p,
.ihpl-page a,
.ihpl-page span,
.ihpl-page div {
  font-family: 'Inter', sans-serif;
}

/* ---------- shared eyebrow ---------- */
.ihpl-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16d9b0;
  background: rgba(22, 217, 176, 0.12);
  border: 1px solid rgba(22, 217, 176, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.ihpl-eyebrow-dark {
  color: #2548f5;
  background: rgba(37, 72, 245, 0.08);
  border: 1px solid rgba(37, 72, 245, 0.2);
}

/* =========================================================
   1. HERO
   ========================================================= */
.ihpl-hero {
  position: relative;
  background: linear-gradient(180deg, #f6f8ff 0%, #eef1fd 60%, #ffffff 100%);
  padding: 150px 0 110px;
  overflow: hidden;
}

.ihpl-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ihpl-hero .ihpl-hero-glow-a {
  width: 520px;
  height: 520px;
  background: rgba(37, 72, 245, 0.16);
  top: -160px;
  left: -140px;
}

.ihpl-hero .ihpl-hero-glow-b {
  width: 460px;
  height: 460px;
  background: rgba(22, 217, 176, 0.16);
  bottom: -180px;
  right: -120px;
}

.ihpl-hero .ihpl-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 22, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 58, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.ihpl-hero .container {
  z-index: 1;
}

.ihpl-breadcrumb-bar {
  margin-bottom: 34px;
}

.ihpl-breadcrumb-bar .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
}

.ihpl-breadcrumb-bar .breadcrumb-item,
.ihpl-breadcrumb-bar .breadcrumb-item a {
  color: #5b6178;
  font-size: 13px;
  text-decoration: none;
}

.ihpl-breadcrumb-bar .breadcrumb-item.active {
  color: #12163a;
  font-weight: 600;
}

.ihpl-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(18, 22, 58, 0.25);
}

.ihpl-hero-heading {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.08;
  color: #12163a;
  margin-bottom: 22px;
}

.ihpl-hero-heading br {
  display: inline;
}

.ihpl-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #5b6178;
  max-width: 480px;
  margin-bottom: 34px;
}

.ihpl-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ihpl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  box-shadow: 0 12px 30px rgba(37, 72, 245, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ihpl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 72, 245, 0.45);
  color: #ffffff;
}

.ihpl-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #12163a;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(18, 22, 58, 0.12);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ihpl-btn-ghost:hover {
  background: #f6f8ff;
  border-color: rgba(37, 72, 245, 0.3);
  transform: translateY(-2px);
  color: #12163a;
}

.ihpl-trust-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.ihpl-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.ihpl-hero .ihpl-trust-item {
  color: #5b6178;
}

.ihpl-check {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 217, 176, 0.18);
  color: #16d9b0;
  font-size: 11px;
}

/* ---------- payslip card (signature element) ---------- */
.ihpl-payslip-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 30px;
}

.ihpl-payslip-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #eceffb;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(37, 72, 245, 0.16);
  animation: ihpl-float 5s ease-in-out infinite;
}

@keyframes ihpl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.ihpl-payslip-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.ihpl-payslip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.ihpl-payslip-name {
  font-weight: 700;
  font-size: 15px;
  color: #12163a;
}

.ihpl-payslip-role {
  font-size: 12px;
  color: #5b6178;
}

.ihpl-payslip-stamp {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #16d9b0;
  border: 2px solid #16d9b0;
  border-radius: 8px;
  padding: 4px 10px;
  transform: rotate(-8deg);
}

.ihpl-payslip-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #12163a;
  line-height: 1;
}

.ihpl-payslip-amount-mini {
  font-size: 32px;
}

.ihpl-payslip-currency {
  font-size: 24px;
  color: #5b6178;
  margin-right: 2px;
}

.ihpl-payslip-amount-label {
  font-size: 12px;
  color: #5b6178;
  margin: 6px 0 20px;
}

.ihpl-payslip-lines {
  border-top: 1px dashed #e2e5f5;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ihpl-payslip-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #5b6178;
}

.ihpl-payslip-line-minus span:last-child {
  color: #e0507a;
}

.ihpl-payslip-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f1fa;
  font-size: 12px;
  color: #2548f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ihpl-payslip-card-mini {
  max-width: 320px;
  margin: 0 auto;
}

.ihpl-float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #12163a;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(5, 10, 40, 0.3);
}

.ihpl-float-chip i {
  color: #2548f5;
}

.ihpl-float-chip-a {
  top: 10px;
  right: 0;
  animation: ihpl-float 6s ease-in-out infinite;
}

.ihpl-float-chip-b {
  bottom: 30px;
  left: -10px;
  animation: ihpl-float 5.5s ease-in-out infinite reverse;
}

/* dark-section variants of the glow/grid decoration (stats + CTA stay dark) */
.ihpl-stats-section .ihpl-hero-grid,
.ihpl-cta-section .ihpl-hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

.ihpl-cta-section .ihpl-hero-glow-a {
  width: 520px;
  height: 520px;
  background: rgba(37, 72, 245, 0.45);
  top: -160px;
  left: -140px;
}

.ihpl-cta-section .ihpl-hero-glow-b {
  width: 460px;
  height: 460px;
  background: rgba(22, 217, 176, 0.28);
  bottom: -180px;
  right: -120px;
}

/* =========================================================
   SECTION SHELLS
   ========================================================= */
.ihpl-section {
  padding: 100px 0;
}

.ihpl-section-tinted {
  background: #f6f8ff;
}

.ihpl-section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.ihpl-section-title {
  font-size: 34px;
  font-weight: 700;
  color: #12163a;
  margin-bottom: 12px;
}

.ihpl-section-sub {
  font-size: 16px;
  color: #5b6178;
  line-height: 1.6;
}

/* =========================================================
   2. INDUSTRY CARDS
   ========================================================= */
.ihpl-industry-card {
  display: block;
  height: 100%;
  background: #ffffff;
  border: 1px solid #eceffb;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ihpl-industry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 72, 245, 0.12);
  border-color: rgba(37, 72, 245, 0.25);
}

.ihpl-industry-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef1fd, #f6f8ff);
}

.ihpl-industry-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ihpl-industry-card:hover .ihpl-industry-img {
  transform: scale(1.06);
}

.ihpl-industry-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 48, 0) 55%, rgba(11, 17, 48, 0.45) 100%);
}

.ihpl-industry-icon {
  position: absolute;
  left: 20px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(37, 72, 245, 0.35);
  z-index: 1;
}

.ihpl-industry-body {
  padding: 34px 26px 26px;
}

.ihpl-industry-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #12163a;
  margin-bottom: 8px;
}

.ihpl-industry-card p {
  font-size: 14px;
  color: #5b6178;
  line-height: 1.55;
  margin-bottom: 16px;
}

.ihpl-industry-link {
  font-size: 13px;
  font-weight: 600;
  color: #2548f5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ihpl-industry-card:hover .ihpl-industry-link i {
  transform: translateX(3px);
}

.ihpl-industry-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

/* =========================================================
   3. FEATURE CARDS
   ========================================================= */
.ihpl-feature-card {
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;
  border: 1px solid #eceffb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ihpl-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 22, 58, 0.08);
}

.ihpl-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 16px;
}

.ihpl-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ihpl-feature-card p {
  font-size: 13.5px;
  color: #5b6178;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   4. STEPS
   ========================================================= */
.ihpl-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.ihpl-step {
  background: #ffffff;
  border: 1px solid #eceffb;
  border-radius: 16px;
  padding: 28px 22px;
  position: relative;
}

.ihpl-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.ihpl-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #12163a;
}

.ihpl-step p {
  font-size: 13.5px;
  color: #5b6178;
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   5. STATS
   ========================================================= */
.ihpl-stats-section {
  position: relative;
  background: #0b1130;
  padding: 90px 0;
  overflow: hidden;
}

.ihpl-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #16d9b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.ihpl-stat-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* =========================================================
   6. TESTIMONIALS
   ========================================================= */
.ihpl-testimonial-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #eceffb;
  border-radius: 18px;
  padding: 30px;
}

.ihpl-quote-icon {
  color: rgba(37, 72, 245, 0.2);
  font-size: 22px;
  margin-bottom: 14px;
}

.ihpl-testimonial-card p {
  font-size: 15px;
  color: #33375a;
  line-height: 1.6;
  margin-bottom: 22px;
}

.ihpl-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ihpl-testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2548f5, #16d9b0);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ihpl-testimonial-author strong {
  display: block;
  font-size: 13.5px;
  color: #12163a;
}

.ihpl-testimonial-author span {
  font-size: 12px;
  color: #5b6178;
}

/* =========================================================
   7. CTA BANNER
   ========================================================= */
.ihpl-cta-section {
  position: relative;
  background: linear-gradient(135deg, #0b1130, #131b3f);
  padding: 100px 0;
  overflow: hidden;
}

.ihpl-cta-title {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.ihpl-cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 460px;
}

.ihpl-trust-row-cta {
  margin-top: 22px;
}

/* ==========================================================================
   TRUSTED SECTION — Rating badge + Logo carousel
   ========================================================================== */
.trusted-section {
    margin-top: 60px;
    text-align: center;
}

.trusted-text {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Row that holds the rating badge + carousel side by side */
.trusted-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
}

/* --- G2 Rating Badge --- */
.rating-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.rating-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.rating-score {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    white-space: nowrap;
}

.rating-stars {
    color: #ff7a00;
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.rating-divider {
    width: 1px;
    height: 40px;
    background-color: #d1d5db;
    flex: 0 0 auto;
}

/* --- Logo Carousel --- */
.logo-carousel-wrapper {
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 0;
    position: relative;
}

/* Gradient mask for smooth fade on edges */
.logo-carousel-wrapper::before,
.logo-carousel-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #edf0fde8, transparent);
}

.logo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    /* Animated via JS */
}

.logo-item {
    width: 140px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) opacity(1);
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .trusted-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .rating-badge {
        order: 1;
    }

    .rating-divider {
        display: none;
    }

    .logo-carousel-wrapper {
        flex: 1 1 100%;
        order: 2;
    }

    .logo-item {
        width: 110px;
        height: 42px;
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: calc(1.6rem + 1vw) !important;
    }
    .illustration-container {
        margin-top: 50px;
    }
    .hero-section {
        text-align: center;
        min-height: 90vh;
        padding: 120px 0 0px 0;
    }
    .hero-subtitle {
        margin: 0 auto 30px auto;
    }
    .btn-group-custom, .feature-list {
        justify-content: center;
    }
}

.btn-group-custom, .feature-list {
    justify-content: left;
}