/* Product detail pages. Flexbox is the baseline so IE 11 keeps a readable layout. */
.product-detail-page {
  background: #f6f8fc;
  color: #091221;
}

.product-detail-page main {
  position: relative;
  overflow: hidden;
}

.product-detail-page main::after {
  display: none;
}

.product-detail-page .desktop-nav a[aria-current="page"] {
  color: #2450ff;
}

.product-detail-page .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.detail-shell {
  width: calc(100% - 64px);
  max-width: 1380px;
  margin-right: auto;
  margin-left: auto;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
  color: #7a8496;
  font-size: 13px;
}

.detail-breadcrumb a {
  color: #4b5870;
}

.detail-breadcrumb span {
  margin: 0 10px;
  color: #b2bac8;
}

.detail-hero {
  position: relative;
  padding: 72px 0 92px;
  background:
    radial-gradient(circle at 88% 16%, rgba(124, 83, 255, 0.18), transparent 28%),
    radial-gradient(circle at 58% 38%, rgba(36, 128, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
}

.detail-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-hero-copy {
  position: relative;
  z-index: 2;
  width: 47%;
}

.detail-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #091221;
  font-size: 58px;
  font-size: clamp(44px, 4.5vw, 68px);
  font-weight: 820;
  line-height: 1.08;
}

.detail-hero h1 strong {
  display: block;
  margin-top: 8px;
  background: linear-gradient(100deg, #2450ff 0%, #8253ff 72%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #2450ff;
  -webkit-text-fill-color: transparent;
}

.detail-hero h1 > strong:first-child {
  margin-top: 0;
}

.detail-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #59667d;
  font-size: 18px;
  line-height: 1.9;
}

.detail-points {
  display: flex;
  flex-wrap: wrap;
  margin: 28px -6px 0;
  padding: 0;
  list-style: none;
}

.detail-points li {
  margin: 6px;
  border: 1px solid rgba(36, 80, 255, 0.14);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #3b4963;
  font-size: 13px;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.detail-actions a {
  margin: 0 14px 12px 0;
}

.detail-hero-media {
  position: relative;
  z-index: 1;
  width: 49%;
  margin: 0;
  border: 1px solid rgba(36, 80, 255, 0.12);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 70px rgba(36, 80, 255, 0.16);
}

.detail-hero-slides {
  position: relative;
}

.detail-hero-slide {
  width: 100%;
  margin: 0;
}

.detail-hero-media.is-slider-ready .detail-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0s linear 0.65s;
}

.detail-hero-media.is-slider-ready .detail-hero-slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.detail-hero-media picture,
.detail-feature-media picture {
  display: block;
  width: 100%;
}

.detail-hero-media img,
.detail-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.detail-hero-media figcaption {
  padding: 13px 4px 0;
  color: #7b8699;
  font-size: 12px;
}

.detail-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 10px 2px 0;
}

.detail-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(36, 80, 255, 0.16);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #3d55e8;
  font: 700 22px/1 Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.detail-slider-arrow:hover,
.detail-slider-arrow:focus {
  border-color: rgba(36, 80, 255, 0.42);
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

.detail-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.detail-slider-dot {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #c6cde1;
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.detail-slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: #5264f4;
}

.detail-slider-dot:focus {
  outline: 2px solid rgba(36, 80, 255, 0.35);
  outline-offset: 3px;
}

.detail-section {
  padding: 104px 0;
}

.detail-section + .detail-section {
  border-top: 1px solid #e3e8f2;
}

.detail-section-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 46px;
}

.detail-section-heading h2 {
  margin: 0;
  color: #0b1425;
  font-size: 42px;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.2;
  text-align: center;
}

.detail-section-heading > p:last-child {
  margin: 18px 0 0;
  color: #68748a;
  font-size: 17px;
  line-height: 1.85;
}

.detail-value-grid,
.detail-feature-grid,
.detail-faq-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.detail-value-card {
  width: calc(50% - 20px);
  margin: 10px;
  border: 1px solid #e1e7f1;
  border-radius: 18px;
  padding: 34px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 52, 91, 0.07);
}

.detail-value-card.is-challenge {
  border-left: 4px solid #f0a24c;
  background: linear-gradient(135deg, #fff 65%, #fff8ef 100%);
}

.detail-value-card.is-value {
  border-left: 4px solid #4f67ff;
  background: linear-gradient(135deg, #fff 58%, #f1f3ff 100%);
}

.detail-value-card h3 {
  margin: 0 0 22px;
  color: #111a2b;
  font-size: 25px;
}

.detail-value-card.is-value h3 {
  color: #3758ff;
}

.detail-value-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-value-card li {
  position: relative;
  margin-top: 14px;
  padding-left: 30px;
  color: #5d687b;
  font-size: 16px;
  line-height: 1.75;
}

.detail-value-card li::before {
  position: absolute;
  top: 5px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1px solid #f0a24c;
  border-radius: 50%;
  color: #d68025;
  content: "!";
  font-size: 11px;
  font-weight: 900;
}

.detail-value-card.is-value li::before {
  border-color: #69c99b;
  color: #18a76b;
  content: "✓";
}

.detail-features {
  background: #f0f4fb;
}

.detail-feature-card {
  isolation: isolate;
  display: block;
  width: calc(50% - 20px);
  height: 480px;
  height: clamp(480px, 34vw, 500px);
  min-height: 0;
  margin: 10px;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  border-radius: 20px;
  background: #f8faff;
  box-shadow: 0 18px 44px rgba(31, 52, 91, 0.07);
}

.detail-feature-copy {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 28px 30px 48px;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #fff calc(100% - 34px),
    rgba(255, 255, 255, 0.84) calc(100% - 20px),
    rgba(255, 255, 255, 0) 100%
  );
}

.detail-feature-copy h3 {
  margin: 0;
  color: #111a2b;
  font-size: 23px;
  line-height: 1.35;
}

.detail-feature-copy p {
  margin: 13px 0 0;
  color: #657087;
  font-size: 15px;
  line-height: 1.75;
}

.detail-feature-media {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  height: calc(100% - 94px);
  overflow: hidden;
  margin: 0;
  background: #f9fbff;
  padding: 0;
  pointer-events: none;
}

.detail-feature-media::after {
  display: none;
}

.detail-feature-media picture {
  height: 100%;
}

.detail-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
}

.detail-faq {
  background: #fff;
}

.detail-faq-item {
  width: calc(50% - 20px);
  margin: 10px;
  border: 1px solid #e0e6f0;
  border-radius: 16px;
  padding: 30px;
  background: #f9fbff;
}

.detail-faq-item h3 {
  margin: 0;
  color: #111a2b;
  font-size: 19px;
  line-height: 1.5;
}

.detail-faq-item p {
  margin: 15px 0 0;
  color: #606d82;
  font-size: 15px;
  line-height: 1.85;
}

/* Mouse-hover feedback shared by all detail-page cards. */
.detail-value-card,
.detail-feature-card,
.detail-faq-item {
  position: relative;
  transform: translateY(0);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.detail-value-card,
.detail-faq-item {
  overflow: hidden;
}

.detail-value-card::after {
  position: absolute;
  z-index: 0;
  top: -55%;
  left: -48%;
  width: 28%;
  height: 210%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  content: "";
  opacity: 0.55;
  pointer-events: none;
  transform: translateX(-180%) rotate(16deg);
  transition: transform 520ms ease;
}

.detail-value-card > * {
  position: relative;
  z-index: 1;
}

.detail-feature-card::before,
.detail-faq-item::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2450ff, #8253ff);
  content: "";
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.detail-feature-card {
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-feature-media img {
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .detail-value-card:hover,
  .detail-feature-card:hover,
  .detail-faq-item:hover {
    transform: translateY(-6px);
  }

  .detail-feature-card:hover {
    transform: translateY(-3px);
  }

  .detail-value-card:hover {
    box-shadow: 0 24px 58px rgba(31, 52, 91, 0.14);
  }

  .detail-value-card.is-challenge:hover {
    box-shadow: 0 24px 58px rgba(222, 139, 48, 0.16);
  }

  .detail-value-card.is-value:hover,
  .detail-feature-card:hover,
  .detail-faq-item:hover {
    border-color: #cbd5ff;
    box-shadow: 0 24px 58px rgba(47, 75, 190, 0.14);
  }

  .detail-feature-card:hover {
    box-shadow: 0 20px 48px rgba(47, 75, 190, 0.12);
  }

  .detail-value-card:hover::after {
    transform: translateX(660%) rotate(16deg);
  }

  .detail-feature-card:hover::before,
  .detail-faq-item:hover::before {
    transform: scaleX(1);
  }

  .detail-feature-card:hover .detail-feature-media img {
    transform: scale(1.012);
  }
}

/* IE 11 has no object-fit support: use a flex fallback while keeping every image bottom-aligned. */
.ie11 .detail-feature-card {
  display: flex;
  height: auto;
  min-height: 520px;
  flex-direction: column;
}

.ie11 .detail-feature-copy {
  min-height: 0;
  padding-bottom: 28px;
  background: #fff;
}

.ie11 .detail-feature-media {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  margin-top: auto;
}

.ie11 .detail-feature-media picture,
.ie11 .detail-feature-media img {
  height: auto;
}

/* IE 11 does not understand the hover/pointer media query, so keep its mouse feedback explicit. */
.ie11 .detail-value-card:hover,
.ie11 .detail-feature-card:hover,
.ie11 .detail-faq-item:hover {
  transform: translateY(-6px);
}

.ie11 .detail-feature-card:hover {
  transform: translateY(-3px);
}

.ie11 .detail-value-card:hover {
  box-shadow: 0 24px 58px rgba(31, 52, 91, 0.14);
}

.ie11 .detail-value-card.is-challenge:hover {
  box-shadow: 0 24px 58px rgba(222, 139, 48, 0.16);
}

.ie11 .detail-value-card.is-value:hover,
.ie11 .detail-feature-card:hover,
.ie11 .detail-faq-item:hover {
  border-color: #cbd5ff;
  box-shadow: 0 24px 58px rgba(47, 75, 190, 0.14);
}

.ie11 .detail-feature-card:hover {
  box-shadow: 0 20px 48px rgba(47, 75, 190, 0.12);
}

.ie11 .detail-value-card:hover::after {
  transform: translateX(660%) rotate(16deg);
}

.ie11 .detail-feature-card:hover::before,
.ie11 .detail-faq-item:hover::before {
  transform: scaleX(1);
}

.ie11 .detail-feature-card:hover .detail-feature-media img {
  transform: scale(1.012);
}

@media (prefers-reduced-motion: reduce) {
  .detail-value-card,
  .detail-feature-card,
  .detail-faq-item,
  .detail-value-card::after,
  .detail-feature-card::before,
  .detail-faq-item::before,
  .detail-feature-media img,
  .detail-hero-slide,
  .detail-slider-arrow,
  .detail-slider-dot {
    transition: none;
  }

  .detail-value-card:hover,
  .detail-feature-card:hover,
  .detail-faq-item:hover,
  .detail-feature-card:hover .detail-feature-media img {
    transform: none;
  }

  .detail-value-card::after,
  .detail-feature-card::before,
  .detail-faq-item::before {
    display: none;
  }
}

.detail-cta {
  padding: 54px 0 100px;
}

.detail-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 24px;
  padding: 48px 54px;
  background:
    radial-gradient(circle at 82% 22%, rgba(164, 120, 255, 0.72), transparent 32%),
    linear-gradient(110deg, #1f4ff5 0%, #594fff 56%, #8755f7 100%);
  box-shadow: 0 24px 60px rgba(55, 69, 220, 0.24);
  color: #fff;
}

.detail-cta-card::before,
.detail-cta-card::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.detail-cta-card::before {
  top: -118px;
  right: 18%;
  width: 230px;
  height: 230px;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.detail-cta-card::after {
  right: -34px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border: 18px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.detail-cta-card > * {
  position: relative;
  z-index: 1;
}

.detail-cta-card h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.3;
}

.detail-cta-card p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.detail-cta-card .primary-button {
  flex: 0 0 auto;
  margin-left: 36px;
  background: #fff;
  color: #3153ee;
  box-shadow: 0 14px 32px rgba(26, 36, 112, 0.2);
}

.product-detail-page .footer-main {
  grid-template-columns: 1fr auto;
}

@media (max-width: 900px) {
  .product-detail-page .footer-main {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    width: calc(100% - 40px);
  }

  .detail-hero {
    padding: 54px 0 72px;
  }

  .detail-hero-grid,
  .detail-cta-card {
    display: block;
  }

  .detail-hero-copy,
  .detail-hero-media {
    width: 100%;
  }

  .detail-hero-media {
    margin-top: 48px;
  }

  .detail-section {
    padding: 78px 0;
  }

  .detail-feature-copy {
    min-height: 0;
  }

  .detail-cta-card .primary-button {
    margin: 28px 0 0;
  }
}

@media (max-width: 680px) {
  .detail-shell {
    width: calc(100% - 28px);
  }

  .detail-breadcrumb {
    margin-bottom: 30px;
    font-size: 12px;
  }

  .detail-hero {
    padding: 40px 0 58px;
  }

  .detail-hero h1 {
    font-size: 40px;
    font-size: clamp(36px, 11vw, 46px);
  }

  .detail-lead {
    font-size: 16px;
    line-height: 1.8;
  }

  .detail-points li {
    width: calc(100% - 12px);
    border-radius: 9px;
  }

  .detail-actions {
    display: block;
  }

  .detail-actions a {
    width: 100%;
    margin-right: 0;
  }

  .detail-hero-media {
    margin-top: 34px;
    border-radius: 15px;
    padding: 10px;
  }

  .detail-section {
    padding: 62px 0;
  }

  .detail-section-heading {
    margin-bottom: 30px;
  }

  .detail-section-heading h2 {
    font-size: 32px;
  }

  .detail-value-card,
  .detail-feature-card,
  .detail-faq-item {
    width: calc(100% - 20px);
  }

  .detail-value-card,
  .detail-faq-item {
    padding: 24px 22px;
  }

  .detail-feature-copy {
    min-height: 0;
    padding: 24px 22px 44px;
  }

  .detail-feature-card {
    height: 410px;
    height: clamp(410px, 108vw, 440px);
  }

  .detail-feature-media {
    height: calc(100% - 140px);
    padding: 0;
  }

  .detail-cta {
    padding: 34px 0 72px;
  }

  .detail-cta-card {
    border-radius: 17px;
    padding: 34px 24px;
  }

  .detail-cta-card::before {
    top: -74px;
    right: -24px;
    width: 150px;
    height: 150px;
  }

  .detail-cta-card::after {
    right: 38px;
    bottom: -38px;
    width: 82px;
    height: 82px;
    border-width: 13px;
  }

  .detail-cta-card h2 {
    font-size: 28px;
  }
}

/* English copy needs slightly tighter display type on compact screens. */
html.lang-en .detail-hero h1 {
  font-size: 54px;
  font-size: clamp(42px, 4vw, 62px);
}

html.lang-en .detail-hero h1 strong {
  display: inline;
  margin-top: 0;
}

html.lang-en .detail-feature-copy h3,
html.lang-en .detail-value-card h3 {
}

@media (max-width: 680px) {
  html.lang-en .detail-hero h1 {
    font-size: 38px;
    font-size: clamp(34px, 10vw, 42px);
  }
}
