/* Product navigation v8: fixed product stage, full-width visuals, and motion. */
.smart-products-section {
  background: transparent;
}

.smart-products-section .glow-orb {
  display: none;
}
.smart-products-head {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.smart-products-head .section-title {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.smart-products-head .section-sub {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.smart-products {
  position: relative;
  z-index: 2;
  overflow-anchor: none;
}

.smart-products-scroll-track {
  position: relative;
}

@media (min-width: 961px) and (min-height: 720px) {
  html.smart-products-scroll-enabled,
  body.smart-products-scroll-enabled {
    overflow-x: clip !important;
  }

  .smart-products-section.has-scroll-story {
    overflow: visible;
  }

  .smart-products-scroll-track.is-scroll-story > .smart-products {
    position: sticky;
    top: var(--smart-sticky-top, 92px);
    opacity: 1;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .smart-products-scroll-track.is-scroll-story .smart-product-tabs,
  .smart-products-scroll-track.is-scroll-story .smart-product-panel {
    will-change: transform;
  }
}

.smart-product-tabs {
  display: flex;
  width: min(100%, 820px);
  margin: 0 auto 42px;
  padding: 0 18px;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 45px -38px rgba(var(--accent-rgb), 0.55);
}

.smart-product-tabs::-webkit-scrollbar {
  display: none;
}

.smart-product-tab {
  position: relative;
  display: flex;
  flex: 1 0 190px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.smart-product-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--gradient-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.smart-product-tab:hover,
.smart-product-tab:focus-visible {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.05);
}

.smart-product-tab.is-active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.smart-product-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.smart-product-tab-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  color: var(--accent-2);
  background: var(--bg-2);
}

.smart-product-tab-icon .icon-white,
.smart-product-tab-icon svg {
  width: 19px;
  height: 19px;
}

.smart-product-tab.is-active .smart-product-tab-icon {
  color: #fff;
  border-color: transparent;
  background: var(--gradient-accent);
}

.smart-product-tab:not(.is-active) .smart-product-tab-icon .icon-white {
  color: var(--text-muted);
}

body.theme-light .smart-product-tab:not(.is-active) .smart-product-tab-icon .icon-white {
  color: var(--accent-2);
}

.smart-product-tab-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.smart-product-tab-copy strong {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.25;
}

.smart-product-tab-copy small {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
}

.smart-product-tab.is-active .smart-product-tab-copy small {
  color: var(--text-muted);
}

.smart-product-panel {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(360px, 0.96fr) minmax(390px, 1.04fr);
  gap: clamp(18px, 2.2vw, 34px);
  height: 520px;
  min-height: 520px;
  padding: 18px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.smart-product-panel[hidden] {
  display: none;
}

.smart-product-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 452px;
  min-height: 452px;
  align-self: start;
  padding: 8px 22px 8px 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.smart-product-sidebar::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: var(--border-2);
  content: "";
}

.smart-product-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 84px;
  min-height: 84px;
  padding: 12px 14px 12px 16px;
  border: 0;
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.smart-product-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.55;
}

.smart-product-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.smart-product-item-copy strong {
  color: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.smart-product-item:hover,
.smart-product-item:focus-visible {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.05);
}

.smart-product-item.is-active {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.055) 72%, transparent);
  box-shadow: none;
}

.smart-product-item.is-active svg {
  color: var(--accent-2);
  opacity: 1;
}

.smart-product-visual {
  display: flex;
  min-width: 0;
  height: 520px;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.smart-product-visual > img {
  display: block;
  width: 100%;
  height: 430px;
  max-width: 500px;
  max-height: 430px;
  object-fit: contain;
  filter: none;
  transform: none;
}

.smart-product-visual > img[data-product-key="apps-contact-center"],
.smart-product-visual > img[data-product-key="collection"],
.smart-product-visual > img[data-product-key="hospital"],
.smart-product-visual > img[data-product-key="education"],
.smart-product-visual > img[data-product-key="other-customized-system"] {
  width: 128%;
  max-width: 520px;
  transform: translateX(-56px);
}

/* These two illustrations use the service/industry slug as their runtime key.
   Give them the same visual presence as the larger Hub illustrations while
   borrowing space toward the sidebar, away from the description column. */
.smart-product-visual > img[data-product-key="apps-desk-collection"],
.smart-product-visual > img[data-product-key="healthcare"] {
  width: 148%;
  height: 460px;
  max-width: 600px;
  max-height: 460px;
  transform: translateX(-70px);
}

.smart-product-visual > img[hidden],
.smart-product-visual-placeholder[hidden] {
  display: none;
}

.smart-product-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.smart-product-visual-icon {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 30px;
  color: #fff;
  background: var(--gradient-accent);
  box-shadow: 0 20px 50px rgba(var(--accent-rgb), 0.24);
}

.smart-product-visual-icon .icon-white,
.smart-product-visual-icon svg {
  width: 48px;
  height: 48px;
}

.smart-product-visual strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.smart-product-visual > span:last-child {
  max-width: 220px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.smart-product-detail {
  display: flex;
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 520px;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.smart-product-detail h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.65vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.smart-product-copy {
  display: grid;
  gap: 10px;
  width: 100%;
}

.smart-product-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.58;
}

.smart-product-features {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.smart-product-features li::before {
  margin-right: 9px;
  color: var(--accent-2);
  content: "✓";
  font-weight: 800;
}

.smart-product-emphasis {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.98rem;
}

.smart-product-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--accent-2);
}

.smart-product-highlight[hidden] {
  display: none;
}

.smart-product-highlight strong {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 0.95;
}

.smart-product-highlight span {
  max-width: 74px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.05;
}

.smart-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.smart-product-actions .btn {
  min-width: 138px;
  justify-content: center;
}

.smart-product-more[hidden] {
  display: none;
}

.smart-product-more-fallback {
  display: none;
}

.smart-products.reveal.is-visible .smart-product-tabs {
  animation: smartProductEnter 0.55s 0.08s both cubic-bezier(0.22, 1, 0.36, 1);
}

.smart-products.reveal.is-visible .smart-product-panel.is-active {
  animation: smartProductEnter 0.62s 0.16s both cubic-bezier(0.22, 1, 0.36, 1);
}

.smart-product-panel.is-switching {
  animation: smartProductSwitch 0.38s both cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.smart-product-visual.is-switching,
.smart-product-detail.is-switching {
  animation: smartProductContentSwitch 0.36s both cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes smartProductEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes smartProductSwitch {
  from { opacity: 0.35; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes smartProductContentSwitch {
  from { opacity: 0.2; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 960px) {
  .smart-products-head .section-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .smart-product-tabs {
    justify-content: flex-start;
  }

  .smart-product-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    min-height: 0;
    padding: 10px 0 0;
  }

  .smart-product-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
    height: auto;
    min-height: 0;
  }

  .smart-product-detail {
    height: auto;
    min-height: 360px;
    padding-inline: 12px;
  }

  .smart-product-visual {
    height: auto;
    min-height: 360px;
    padding-inline: 12px;
    overflow: hidden;
  }

  .smart-product-visual > img {
    width: 100%;
    height: 340px;
    max-width: 460px;
    max-height: 340px;
  }
}

@media (max-width: 640px) {
  .smart-products-head {
    margin-bottom: 28px;
  }

  .smart-product-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 24px;
    padding: 4px;
    gap: 2px;
    overflow: visible;
    border-radius: 15px;
  }

  .smart-product-tab {
    min-width: 0;
    min-height: 66px;
    flex-direction: column;
    gap: 5px;
    padding: 8px 3px;
    font-size: 0.75rem;
  }

  .smart-product-tab::after {
    right: 8px;
    left: 8px;
  }

  .smart-product-tab-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .smart-product-tab-icon .icon-white,
  .smart-product-tab-icon svg {
    width: 16px;
    height: 16px;
  }

  .smart-product-tab-copy {
    width: 100%;
    text-align: center;
  }

  .smart-product-tab-copy strong {
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .smart-product-tab-copy small {
    display: none;
  }

  .smart-product-sidebar {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 0 0 10px;
  }

  .smart-product-panel {
    grid-template-columns: 1fr;
  }

  .smart-product-sidebar {
    grid-column: auto;
  }

  .smart-product-sidebar::before {
    top: 0;
    bottom: 10px;
  }

  .smart-product-item {
    height: 54px;
    min-height: 54px;
    padding: 8px 14px 8px 16px;
    border-radius: 0;
  }

  .smart-product-item-copy strong {
    font-size: 0.86rem;
  }

  .smart-product-visual {
    min-height: 245px;
    padding: 8px 10px 0;
    overflow: hidden;
  }

  .smart-product-detail {
    min-height: 0;
    padding: 20px 18px 28px;
  }

  .smart-product-visual > img {
    width: 100%;
    height: 240px;
    max-width: 320px;
    max-height: 240px;
    transform: none;
  }

  .smart-product-visual > img[data-product-key] {
    width: 100%;
    height: 240px;
    max-width: 320px;
    max-height: 240px;
    transform: none;
  }

  .smart-product-detail h3 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .smart-product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 9px;
  }

  .smart-product-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding-inline: 6px;
    font-size: clamp(0.68rem, 3.2vw, 0.78rem);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .smart-product-more-fallback:not([hidden]) {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-products.reveal.is-visible .smart-product-tabs,
  .smart-products.reveal.is-visible .smart-product-panel.is-active,
  .smart-product-panel.is-switching,
  .smart-product-visual.is-switching,
  .smart-product-detail.is-switching {
    animation: none !important;
  }
}
