/* ============================================================
   4PL Aggregation Page
   Prefix: fpl-
   ============================================================ */

:root {
  --fpl-font: "Poppins", sans-serif;
  --fpl-blue: #2f55d4;
  --fpl-blue-light: #eef2ff;
  --fpl-orange: #ea6425;
  --fpl-dark: #1a1a2e;
  --fpl-gray-50: #f9fafb;
  --fpl-gray-100: #f3f4f6;
  --fpl-gray-200: #e5e7eb;
  --fpl-gray-400: #9ca3af;
  --fpl-gray-600: #4b5563;
  --fpl-gray-900: #111827;
  --fpl-radius: 16px;
  --fpl-radius-sm: 12px;
}

/* ── Hero ── */
.fpl-hero {
  background: linear-gradient(135deg, var(--fpl-dark) 0%, #0f172a 100%);
  padding: 120px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fpl-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(47, 85, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fpl-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.fpl-hero__eyebrow {
  display: inline-block;
  font-family: var(--fpl-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fpl-orange);
  margin-bottom: 16px;
}

.fpl-hero__title {
  font-family: var(--fpl-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 800px;
}

.fpl-hero__subtitle {
  font-family: var(--fpl-font);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 0 40px;
}

.fpl-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fpl-font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--fpl-orange);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.fpl-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 100, 37, 0.35);
  color: #fff;
  text-decoration: none;
}

/* ── Stats Bar ── */
.fpl-stats {
  background: #fff;
  padding: 0;
  position: relative;
  z-index: 2;
}

.fpl-stats__inner {
  max-width: 1200px;
  margin: -48px auto 0;
  padding: 0 24px;
}

.fpl-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--fpl-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.fpl-stats__item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--fpl-gray-100);
}

.fpl-stats__item:last-child {
  border-right: none;
}

.fpl-stats__number {
  display: block;
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-blue);
  line-height: 1.1;
}

.fpl-stats__label {
  display: block;
  font-family: var(--fpl-font);
  font-size: 14px;
  color: var(--fpl-gray-600);
  margin-top: 6px;
}

/* ── What Is 4PL (Visual Explainer) ── */
.fpl-explainer {
  padding: 96px 0;
  background: #fff;
}

.fpl-explainer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-explainer__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 12px;
}

.fpl-explainer__subheading {
  font-family: var(--fpl-font);
  font-size: 17px;
  color: var(--fpl-gray-600);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

.fpl-explainer__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.fpl-explainer__side {
  padding: 40px;
  border-radius: var(--fpl-radius);
  position: relative;
}

.fpl-explainer__side--without {
  background: var(--fpl-gray-50);
  border: 2px solid var(--fpl-gray-200);
}

.fpl-explainer__side--with {
  background: var(--fpl-blue-light);
  border: 2px solid var(--fpl-blue);
}

.fpl-explainer__side-label {
  display: inline-block;
  font-family: var(--fpl-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.fpl-explainer__side--without .fpl-explainer__side-label {
  background: var(--fpl-gray-200);
  color: var(--fpl-gray-600);
}

.fpl-explainer__side--with .fpl-explainer__side-label {
  background: var(--fpl-blue);
  color: #fff;
}

.fpl-explainer__side-title {
  font-family: var(--fpl-font);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.fpl-explainer__side--without .fpl-explainer__side-title {
  color: var(--fpl-gray-600);
}

.fpl-explainer__side--with .fpl-explainer__side-title {
  color: var(--fpl-blue);
}

.fpl-explainer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fpl-explainer__list li {
  font-family: var(--fpl-font);
  font-size: 15px;
  line-height: 1.6;
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fpl-explainer__list li:last-child {
  border-bottom: none;
}

.fpl-explainer__list li i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.fpl-explainer__side--without .fpl-explainer__list li {
  color: var(--fpl-gray-600);
}

.fpl-explainer__side--without .fpl-explainer__list li i {
  color: #ef4444;
}

.fpl-explainer__side--with .fpl-explainer__list li {
  color: var(--fpl-gray-900);
}

.fpl-explainer__side--with .fpl-explainer__list li i {
  color: #10b981;
}

.fpl-explainer__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.fpl-explainer__arrow i {
  font-size: 32px;
  color: var(--fpl-blue);
}

/* ── How It Works ── */
.fpl-how {
  padding: 96px 0;
  background: var(--fpl-gray-50);
}

.fpl-how__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-how__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 56px;
}

.fpl-how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.fpl-how__step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

/* connector line between steps */
.fpl-how__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -2px;
  width: calc(100% - 64px);
  height: 2px;
  background: linear-gradient(90deg, var(--fpl-blue), var(--fpl-blue-light));
  transform: translateX(50%);
}

.fpl-how__step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fpl-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  position: relative;
  z-index: 1;
}

.fpl-how__step-num {
  display: block;
  font-family: var(--fpl-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--fpl-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fpl-how__step-title {
  font-family: var(--fpl-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  margin: 0 0 8px;
  line-height: 1.3;
}

.fpl-how__step-desc {
  font-family: var(--fpl-font);
  font-size: 14px;
  color: var(--fpl-gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ── Tech Stack (What Gets Deployed) ── */
.fpl-tech {
  padding: 96px 0;
  background: #fff;
}

.fpl-tech__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-tech__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 12px;
}

.fpl-tech__subheading {
  font-family: var(--fpl-font);
  font-size: 17px;
  color: var(--fpl-gray-600);
  text-align: center;
  margin: 0 auto 56px;
  max-width: 560px;
}

.fpl-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fpl-tech__card {
  background: var(--fpl-gray-50);
  border: 1px solid var(--fpl-gray-200);
  border-radius: var(--fpl-radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.fpl-tech__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.fpl-tech__card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fpl-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--fpl-blue);
}

.fpl-tech__card-name {
  font-family: var(--fpl-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  margin: 0 0 4px;
}

.fpl-tech__card-product {
  font-family: var(--fpl-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--fpl-blue);
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

.fpl-tech__card-points {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.fpl-tech__card-points li {
  font-family: var(--fpl-font);
  font-size: 14px;
  color: var(--fpl-gray-600);
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid var(--fpl-gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fpl-tech__card-points li:last-child {
  border-bottom: none;
}

.fpl-tech__card-points li i {
  color: #10b981;
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Benefits ── */
.fpl-benefits {
  padding: 96px 0;
  background: var(--fpl-dark);
  color: #fff;
}

.fpl-benefits__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-benefits__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 56px;
}

.fpl-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fpl-benefits__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fpl-radius-sm);
  padding: 32px 28px;
  transition: background 0.25s;
}

.fpl-benefits__card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.fpl-benefits__card-icon {
  font-size: 28px;
  color: var(--fpl-orange);
  margin-bottom: 16px;
  display: block;
}

.fpl-benefits__card-stat {
  display: block;
  font-family: var(--fpl-font);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.fpl-benefits__card-title {
  font-family: var(--fpl-font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.fpl-benefits__card-desc {
  font-family: var(--fpl-font);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}

/* ── Who It's For ── */
.fpl-for {
  padding: 96px 0;
  background: #fff;
}

.fpl-for__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-for__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 48px;
}

.fpl-for__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.fpl-for__card {
  background: var(--fpl-gray-50);
  border-radius: var(--fpl-radius-sm);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--fpl-gray-100);
}

.fpl-for__card-icon {
  font-size: 32px;
  color: var(--fpl-blue);
  margin-bottom: 16px;
  display: block;
}

.fpl-for__card-title {
  font-family: var(--fpl-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  margin: 0 0 8px;
}

.fpl-for__card-desc {
  font-family: var(--fpl-font);
  font-size: 14px;
  color: var(--fpl-gray-600);
  line-height: 1.5;
  margin: 0;
}

/* ── FAQ ── */
.fpl-faq {
  padding: 96px 0;
  background: var(--fpl-gray-50);
}

.fpl-faq__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-faq__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 48px;
}

.fpl-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fpl-faq__item {
  background: #fff;
  border: 1px solid var(--fpl-gray-200);
  border-radius: var(--fpl-radius-sm);
  overflow: hidden;
}

.fpl-faq__q {
  font-family: var(--fpl-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--fpl-gray-900);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fpl-faq__q::-webkit-details-marker {
  display: none;
}

.fpl-faq__q::after {
  content: "\F0140";
  font-family: "Material Design Icons";
  font-size: 22px;
  color: var(--fpl-gray-400);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.fpl-faq__item[open] .fpl-faq__q::after {
  transform: rotate(180deg);
  color: var(--fpl-blue);
}

.fpl-faq__a {
  font-family: var(--fpl-font);
  font-size: 15px;
  color: var(--fpl-gray-600);
  line-height: 1.7;
  padding: 0 24px 20px;
  margin: 0;
}

/* ── Related ── */
.fpl-related {
  padding: 96px 0;
  background: #fff;
}

.fpl-related__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-related__heading {
  font-family: var(--fpl-font);
  font-size: 36px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  text-align: center;
  margin: 0 0 48px;
}

.fpl-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fpl-related__card {
  background: var(--fpl-gray-50);
  border: 1px solid var(--fpl-gray-200);
  border-radius: var(--fpl-radius);
  padding: 32px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.fpl-related__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--fpl-blue);
  text-decoration: none;
}

.fpl-related__card-name {
  font-family: var(--fpl-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--fpl-gray-900);
  margin: 0 0 8px;
}

.fpl-related__card-desc {
  font-family: var(--fpl-font);
  font-size: 14px;
  color: var(--fpl-gray-600);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.fpl-related__card-link {
  font-family: var(--fpl-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--fpl-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fpl-related__card:hover .fpl-related__card-link {
  color: var(--fpl-orange);
}

/* ── CTA ── */
.fpl-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--fpl-blue) 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
}

.fpl-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

.fpl-cta__title {
  font-family: var(--fpl-font);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px;
}

.fpl-cta__text {
  font-family: var(--fpl-font);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 0 32px;
}

.fpl-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fpl-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--fpl-blue);
  background: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fpl-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--fpl-blue);
  text-decoration: none;
}

/* ── Contact ── */
.fpl-contact {
  padding: 96px 0;
  background: var(--fpl-gray-50);
}

.fpl-contact__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .fpl-hero__title {
    font-size: 40px;
  }

  .fpl-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fpl-stats__item:nth-child(2) {
    border-right: none;
  }

  .fpl-how__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .fpl-how__step:not(:last-child)::after {
    display: none;
  }

  .fpl-tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fpl-tech__grid > :last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .fpl-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fpl-for__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fpl-explainer__compare {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fpl-explainer__arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }
}

@media (max-width: 768px) {
  .fpl-hero {
    padding: 100px 0 64px;
  }

  .fpl-hero__title {
    font-size: 32px;
  }

  .fpl-hero__subtitle {
    font-size: 16px;
  }

  .fpl-stats__inner {
    margin-top: -32px;
  }

  .fpl-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fpl-stats__number {
    font-size: 28px;
  }

  .fpl-explainer,
  .fpl-how,
  .fpl-tech,
  .fpl-benefits,
  .fpl-for,
  .fpl-faq,
  .fpl-related {
    padding: 64px 0;
  }

  .fpl-explainer__heading,
  .fpl-how__heading,
  .fpl-tech__heading,
  .fpl-benefits__heading,
  .fpl-for__heading,
  .fpl-faq__heading,
  .fpl-related__heading {
    font-size: 28px;
  }

  .fpl-how__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .fpl-tech__grid {
    grid-template-columns: 1fr;
  }

  .fpl-tech__grid > :last-child {
    max-width: 100%;
  }

  .fpl-benefits__grid {
    grid-template-columns: 1fr;
  }

  .fpl-for__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fpl-related__grid {
    grid-template-columns: 1fr;
  }

  .fpl-cta__title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .fpl-hero {
    padding: 88px 0 56px;
  }

  .fpl-hero__title {
    font-size: 26px;
  }

  .fpl-stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .fpl-stats__item {
    padding: 24px 16px;
  }

  .fpl-stats__number {
    font-size: 24px;
  }

  .fpl-how__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fpl-for__grid {
    grid-template-columns: 1fr;
  }

  .fpl-explainer__side {
    padding: 28px 20px;
  }

  .fpl-cta {
    padding: 56px 0;
  }

  .fpl-cta__title {
    font-size: 22px;
  }
}
