.ws-product-stack {
  --wsps-blue: #0b63f6;
  --wsps-navy: #071735;
  --wsps-text: #0b1733;
  --wsps-muted: #5e6d85;
  --wsps-border: #dce5f2;
  width: 100%;
  padding: 78px 24px 110px;
  overflow: clip;
  background: #f8fafc;
  color: var(--wsps-text);
  font-family: "DM Sans", "Inter", Arial, sans-serif;
}

.ws-product-stack,
.ws-product-stack * {
  box-sizing: border-box;
}

.ws-product-stack-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.ws-product-stack-eyebrow {
  color: var(--wsps-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ws-product-stack-heading h2 {
  margin: 14px 0 16px;
  color: var(--wsps-text);
  font-size: clamp(36px, 3.2vw, 50px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ws-product-stack-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--wsps-muted);
  font-size: 18px;
  line-height: 1.65;
}

.ws-product-stack-cards {
  max-width: 1220px;
  margin: 0 auto;
}

.ws-product-card {
  position: sticky;
  top: 92px;
  z-index: calc(10 + var(--stack-order));
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--wsps-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 35, 70, 0.08);
  transform-origin: center top;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ws-product-card.is-stuck {
  border-color: #c6d7ee;
  box-shadow: 0 28px 70px rgba(15, 35, 70, 0.16);
}

.ws-product-copy {
  align-self: center;
  padding: 46px 56px;
}

.ws-product-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #d7e4f6;
  border-radius: 999px;
  background: #f5f8fc;
  color: #52627a;
  font-size: 13px;
  font-weight: 700;
}

.ws-product-copy h3 {
  max-width: 510px;
  margin: 16px 0 12px;
  color: var(--wsps-text);
  font-size: clamp(32px, 2.45vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ws-product-copy > p {
  max-width: 510px;
  margin: 0;
  color: var(--wsps-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ws-product-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.ws-product-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #253652;
  font-size: 15px;
  font-weight: 600;
}

.ws-product-points svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 4px;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--wsps-blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ws-product-link {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 7px;
  background: var(--wsps-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ws-product-link:hover {
  background: #084fc3;
  color: #fff !important;
  transform: translateY(-2px);
}

.ws-product-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ws-product-visual {
  min-width: 0;
  min-height: 498px;
  overflow: hidden;
  background: #fff;
}

.ws-product-visual img {
  width: 100%;
  height: 100%;
  min-height: 498px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.ws-product-card:hover .ws-product-visual img {
  transform: scale(1.01);
}

.ws-product-card-reverse .ws-product-copy {
  grid-column: 2;
  grid-row: 1;
}

.ws-product-card-reverse .ws-product-visual {
  grid-column: 1;
  grid-row: 1;
}

@media (max-width: 991px) {
  .ws-product-stack {
    padding: 64px 18px 82px;
  }

  .ws-product-card {
    position: relative;
    top: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 20px;
    transform: none !important;
  }

  .ws-product-copy,
  .ws-product-card-reverse .ws-product-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 30px;
  }

  .ws-product-visual,
  .ws-product-card-reverse .ws-product-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 1.22 / 1;
  }

  .ws-product-visual img {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .ws-product-stack {
    padding: 54px 18px 68px;
  }

  .ws-product-stack-heading {
    margin-bottom: 28px;
  }

  .ws-product-stack-heading h2 {
    margin-top: 10px;
    font-size: 31px;
  }

  .ws-product-stack-heading p {
    font-size: 15px;
    line-height: 1.55;
  }

  .ws-product-copy,
  .ws-product-card-reverse .ws-product-copy {
    padding: 24px 22px 28px;
  }

  .ws-product-copy h3 {
    margin: 13px 0 9px;
    font-size: 27px;
    line-height: 1.12;
  }

  .ws-product-copy > p {
    font-size: 14px;
    line-height: 1.55;
  }

  .ws-product-points {
    gap: 6px;
    margin: 14px 0 18px;
  }

  .ws-product-points li {
    font-size: 13px;
  }

  .ws-product-link {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-product-card,
  .ws-product-visual img,
  .ws-product-link {
    transition: none !important;
  }
}
