/* ===== White Label Page ===== */
.page-white-label {
  background: var(--color-white);
  color: var(--color-text);
}

.wl-section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  color: var(--color-text);
}

.wl-section__title--light {
  color: var(--color-white);
}

/* Hero */
.wl-hero {
  position: relative;
  background: var(--color-dark);
  color: var(--color-white);
  min-height: 520px;
  overflow: hidden;
}

.wl-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://assets.cmcinvest.com/invest-sg/hero-sg-city-skyline.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  pointer-events: none;
}

.wl-hero__inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + 48px) 0 80px;
  max-width: 58%;
}

.wl-hero__title {
  display: block;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.wl-hero__subtitle {
  display: block;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 28px;
}

.wl-hero__skyline--mobile {
  display: none;
  background-image: url('https://assets.cmcinvest.com/invest-sg/hero-sg-city-skyline-mobile.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 500px auto;
  padding-bottom: 85%;
  margin-top: -200px;
}

/* Why Averion Stats */
.wl-stats {
  padding: 80px 0;
  background: var(--color-white);
}

.wl-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.wl-stat {
  text-align: center;
  line-height: 1.3;
}

.wl-stat__icon {
  width: 80px;
  height: 68px;
  margin: 0 auto 16px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.wl-stat__icon--ftse {
  background-image: url('https://assets.cmcinvest.com/invest-sg/icon-checklist-inkp-rose.svg');
}

.wl-stat__icon--experience {
  background-image: url('https://assets.cmcinvest.com/invest-sg/icon-stair-climb-inkp-rose.svg');
}

.wl-stat__icon--offices {
  background-image: url('https://assets.cmcinvest.com/invest-sg/icon-globe-pin-inkp-rose.svg');
}

.wl-stat strong {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--color-text);
}

.wl-stat span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--color-text-light);
}

/* Features scroll spy */
.wl-features {
  padding: 40px 0 80px;
  background: var(--color-white);
}

.wl-features__layout {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 0 48px;
  align-items: start;
}

.wl-features__nav {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 48px;
}

.wl-features__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d4de;
  transition: background var(--transition);
  cursor: pointer;
}

.wl-features__dot.active {
  background: var(--color-accent);
}

.wl-features__phone {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  text-align: center;
}

.wl-features__phone img {
  max-width: 340px;
  margin: 0 auto;
}

.wl-features__list {
  padding-top: 24px;
}

.wl-feature {
  padding: 48px 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.wl-feature.active {
  opacity: 1;
}

.wl-feature h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-text);
}

.wl-feature p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-light);
  max-width: 520px;
}

/* Comparison table */
.wl-compare {
  padding: 80px 0;
  background: var(--color-dark);
}

.wl-compare__tabs {
  display: none;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 24px;
}

.wl-compare__tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition);
}

.wl-compare__tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.wl-compare__table-wrap {
  margin-top: 40px;
  overflow-x: auto;
}

.wl-compare__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0;
}

.wl-compare__table th,
.wl-compare__table td {
  padding: 16px 20px;
  text-align: center;
  vertical-align: middle;
}

.wl-compare__th-label {
  width: 28%;
}

.wl-compare__th {
  background: var(--color-dark-alt);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-white);
  padding: 20px 16px;
}

.wl-compare__th-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.wl-compare__th-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.wl-compare__table tbody td {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wl-compare__table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.wl-compare__check {
  width: 20px;
  margin: 0 auto;
}

/* Value chain */
.wl-chain {
  padding: 80px 0;
  background: var(--color-gray-bg);
}

.wl-chain__slider {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}

.wl-chain__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.wl-chain__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity var(--transition);
}

.wl-chain__arrow:disabled {
  opacity: 0.25;
}

.wl-chain__arrow img {
  width: 20px;
}

.wl-chain__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.wl-chain__card {
  flex: 0 0 calc(50% - 12px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8ebf2;
  overflow: hidden;
}

.wl-chain__card-image {
  padding: 8px 8px 0;
}

.wl-chain__card-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.wl-chain__card-body {
  padding: 24px 28px 32px;
}

.wl-chain__card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.wl-chain__card-body ul {
  list-style: disc;
  padding-left: 20px;
}

.wl-chain__card-body li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.wl-chain__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  list-style: none;
  padding-left: 0;
}

.wl-chain__tags span {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-gray-bg);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-text);
}

.wl-chain__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.wl-chain__dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  transition: background var(--transition);
}

.wl-chain__dots button.active {
  background: rgba(0, 0, 0, 0.75);
}

/* Intermediaries */
.wl-intermediaries {
  position: relative;
  padding: 80px 0;
  color: var(--color-white);
  text-align: center;
}

.wl-intermediaries__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://assets.cmcinvest.com/invest-sg/bg-digital-lightbulb-2.webp');
  background-size: cover;
  background-position: center;
}

.wl-intermediaries .container {
  position: relative;
  z-index: 1;
}

.wl-intermediaries__text {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 32px;
}

.wl-intermediaries__text strong {
  color: var(--color-accent);
}

.wl-intermediaries__logos {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
  background: var(--color-white);
  padding: 24px 40px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.wl-intermediaries__logos img {
  height: 27px;
  width: auto;
}

/* Partner section */
.wl-partner {
  padding: 80px 0 100px;
  background: var(--color-white);
}

.wl-partner__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.wl-partner__subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 40px;
}

.wl-partner__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.wl-step {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
}

.wl-step__image {
  padding-bottom: 90%;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
}

.wl-step__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.wl-step__num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.wl-step__text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.wl-step--1 {
  background: #040533;
  color: var(--color-white);
}

.wl-step--2 {
  background: #f68f92;
  color: var(--color-text);
}

.wl-step--3 {
  background: #37375b;
  color: var(--color-white);
}

.wl-step--4 {
  background: var(--color-primary);
  color: var(--color-white);
}

.wl-step--4 .wl-step__image {
  background-position: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .wl-features__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wl-features__nav {
    display: none;
  }

  .wl-features__phone {
    position: relative;
    top: auto;
    margin-bottom: 24px;
  }

  .wl-features__phone img {
    max-width: 250px;
  }

  .wl-feature {
    opacity: 1;
    padding: 24px 0;
  }

  .wl-chain__card {
    flex: 0 0 calc(100% - 48px);
  }

  .wl-partner__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .wl-stats__grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .wl-hero__bg {
    display: none;
  }

  .wl-hero__inner {
    max-width: 100%;
    padding-bottom: 0;
  }

  .wl-hero__skyline--mobile {
    display: block;
  }

  .wl-compare__tabs {
    display: flex;
  }

  .wl-compare__table .wl-compare__th--ib,
  .wl-compare__table tbody td[data-col="ib"] {
    display: none;
  }

  .wl-compare__table[data-active-col="ib"] .wl-compare__th--wl,
  .wl-compare__table[data-active-col="ib"] tbody td[data-col="wl"] {
    display: none;
  }

  .wl-compare__table[data-active-col="ib"] .wl-compare__th--ib,
  .wl-compare__table[data-active-col="ib"] tbody td[data-col="ib"] {
    display: table-cell;
  }

  .wl-compare__th-label,
  .wl-compare__table tbody td:first-child {
    width: 40%;
  }

  .wl-intermediaries__logos {
    border-radius: var(--radius-lg);
    padding: 20px 24px;
  }

  .wl-intermediaries__logos img {
    height: 18px;
  }
}

@media (max-width: 480px) {
  .wl-partner__steps {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .wl-step__text {
    font-size: 13px;
  }
}
