/* ===== See it in action — workspace previews (theme-aligned) ===== */

.slider-section.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 52px max(22px, calc((100% - 1140px) / 2)) 64px;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(8, 104, 222, 0.07), transparent 60%),
    radial-gradient(ellipse 55% 50% at 92% 18%, rgba(24, 142, 61, 0.06), transparent 62%),
    linear-gradient(180deg, #f5f9ff 0%, #eef5ff 48%, #f7fafc 100%);
  border-block: 1px solid #dce5ef;
  box-sizing: border-box;
}

.slider-section .slider-title {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.slider-section .slider-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #0868de;
}

/* One brand accent bar only (drop the duplicate h2::after) */
.slider-section .slider-title h2::after {
  display: none !important;
  content: none !important;
}
.slider-section .slider-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #0868de 0 48%, #e52535 48% 70%, #1eab46 70%);
}

.slider-section .slider-title p {
  margin: 12px auto 0;
  max-width: 46ch;
  color: #566b7c;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Product workspace cards */
.product-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 22px;
  align-items: stretch;
}

.product-screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #d4e2f2;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 57, 59, 0.07);
  position: relative;
  min-width: 0;
}

.product-screen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 2;
  background: #0868de;
}
.product-screen:nth-child(3n+2)::before { background: #e52f37; }
.product-screen:nth-child(3n)::before { background: #188e3d; }

.product-screen .ps-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border-bottom: 1px solid #e3ebf5;
}
.product-screen .ps-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9d7ea;
}
.product-screen .ps-chrome span:nth-child(1) { background: #ff6b6b; }
.product-screen .ps-chrome span:nth-child(2) { background: #ffd166; }
.product-screen .ps-chrome span:nth-child(3) { background: #06d6a0; }
.product-screen .ps-chrome-label {
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8fa3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-screen .ps-media {
  position: relative;
  background: linear-gradient(165deg, #edf4ff 0%, #e8f0fa 100%);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.product-screen:nth-child(3n+2) .ps-media {
  background: linear-gradient(165deg, #fff4f5 0%, #f5f0f2 100%);
}
.product-screen:nth-child(3n) .ps-media {
  background: linear-gradient(165deg, #effaf2 0%, #eef4f8 100%);
}
.product-screen .ps-media img,
.product-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-screen.is-illus .ps-media img,
.product-screen .ps-media img[src$=".svg"],
.product-screen > img[src$=".svg"] {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  background: transparent;
}
.product-screen.is-illus .ps-chrome {
  display: none !important;
}

/* When chrome/media wrappers exist, hide bare > img height rules from base */
.product-screen > img { height: auto; max-height: none; }
.product-screen:not(.is-polished) > img {
  height: 190px;
  object-fit: cover;
  object-position: top center;
}

.product-screen figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
  background: #fff;
  border-top: 1px solid #eef2f7;
}
.product-screen figcaption .ps-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0868de;
}
.product-screen:nth-child(3n+2) figcaption .ps-kicker { color: #d92736; }
.product-screen:nth-child(3n) figcaption .ps-kicker { color: #16883c; }
.product-screen figcaption .ps-title,
.product-screen figcaption {
  font-size: 0.98rem;
  font-weight: 750;
  color: #18314e;
  line-height: 1.3;
}
.product-screen figcaption .ps-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Illustrative slider — horizontal slide (no fade) */
.slider-section .slider-cards {
  gap: 0;
  margin-top: 4px;
  display: block;
  overflow: hidden;
  width: 100%;
}
.slider-section .slider-pane {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  flex: 0 0 50%;
  min-width: 50%;
  box-sizing: border-box;
}
.slider-section .slider-cards > .slider-pane {
  flex: none;
  min-width: 0;
  width: 100%;
}
.slider-section .slider-track {
  display: flex;
  width: 200%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.slider-section .slider-track.is-animating {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.slider-section .slider-cards.is-sliding {
  pointer-events: none;
}
.slider-section .visual-card {
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(16, 57, 59, 0.1);
  height: 320px;
}
.slider-section .visual-card img {
  filter: saturate(0.95) contrast(1.02);
}
.slider-section .visual-copy h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.slider-section .slider-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.slider-section .slider-controls .ctrl,
.slider-section .slider-controls #previous,
.slider-section .slider-controls #next {
  width: auto;
  min-width: 44px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.slider-section .slider-controls .ctrl:hover,
.slider-section .slider-controls #previous:hover,
.slider-section .slider-controls #next:hover {
  transform: scale(1.04);
  background: var(--tint, #f1f6fd);
}
.slider-section .slider-controls .ctrl:active,
.slider-section .slider-controls #previous:active,
.slider-section .slider-controls #next:active {
  transform: scale(0.97);
}
.slider-section .dot {
  transition: width 0.28s ease, background-color 0.28s ease, transform 0.2s ease;
}
.slider-section .dot.active {
  width: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .slider-section .slider-track.is-animating,
  .slider-section .slider-controls .ctrl,
  .slider-section .dot {
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .product-screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-screens .product-screen:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .slider-section.container {
    padding: 40px 15px 48px;
  }
  .product-screens {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-screens .product-screen:last-child:nth-child(odd) {
    max-width: none;
  }
  .product-screen .ps-media {
    aspect-ratio: 16 / 11;
  }
  .product-screen:not(.is-polished) > img {
    height: 180px;
  }
  .slider-section .slider-pane {
    grid-template-columns: 1fr;
  }
  .slider-section .slider-pane .visual-card:nth-child(2) {
    display: none;
  }
  .slider-section .visual-card {
    height: 260px;
  }
}
