/*
 * SPDX-FileCopyrightText: 2026 Arnold Bagabaldo
 * SPDX-License-Identifier: LicenseRef-GoOffice-Proprietary
 */

.product-detail-body {
  color: var(--go-ink);
  background: var(--go-white);
}

.product-detail-page {
  overflow: clip;
}

.product-detail-hero {
  position: relative;
  display: grid;
  min-height: clamp(600px, 76svh, 820px);
  place-items: center start;
  overflow: hidden;
  padding: 118px max(5vw, calc((100vw - var(--go-wide-width)) / 2)) 64px;
  color: #fff;
  background: var(--go-navy-950);
}

.product-detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.02);
}

.product-detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 22, 39, .96) 0%, rgba(4, 31, 54, .88) 36%, rgba(4, 31, 54, .42) 68%, rgba(4, 31, 54, .15) 100%),
    linear-gradient(180deg, rgba(4, 22, 39, .18), rgba(4, 22, 39, .6));
}

.product-detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(660px, 58vw);
}

.product-detail-hero .eyebrow {
  color: #f7c75f;
}

.product-detail-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 6.4vw, 6.8rem);
  line-height: .94;
  letter-spacing: 0;
}

.platform-detail-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 5.6vw, 5.8rem);
}

.product-detail-hero-content > p:not(.eyebrow):not(.product-version) {
  max-width: 60ch;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}

.product-detail-hero .hero-actions {
  margin-top: 1.75rem;
}

.product-detail-hero .button.secondary {
  color: var(--go-navy-900);
  border-color: var(--go-line-strong);
  background: linear-gradient(180deg, #fff 0%, #f4f8fb 100%);
  box-shadow: 0 3px 0 var(--go-action-light-edge), 0 9px 18px rgba(4, 22, 39, .24);
}

.product-detail-hero .button.secondary:hover,
.product-detail-hero .button.secondary:focus-visible {
  border-color: #96b2c7;
  color: var(--go-navy-950);
  background: #fff;
}

.product-version {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
}

.product-version a {
  color: #fff;
  font-weight: 800;
  text-underline-offset: .22em;
}

.product-benefit-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 2rem), var(--go-page-width));
  margin: -34px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--go-shadow-md);
}

.product-benefit-strip article {
  position: relative;
  min-height: 178px;
  padding: 1.65rem 1.5rem 1.5rem;
}

.product-benefit-strip article + article {
  border-left: 1px solid var(--go-line);
}

.product-benefit-strip article > span,
.product-workflow li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  background: var(--go-blue-700);
  font-weight: 900;
}

.product-benefit-strip strong {
  display: block;
  color: var(--go-navy-950);
  font-size: 1.08rem;
}

.product-benefit-strip p,
.product-feature-group p,
.platform-area-grid p,
.product-detail-shot figcaption span,
.related-app-links small,
.platform-capability-links span {
  color: var(--go-copy);
  line-height: 1.55;
}

.product-benefit-strip p {
  margin: .5rem 0 0;
}

.product-detail-page > .section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4.5rem, 7vw, 7rem) max(5vw, calc((100vw - var(--go-page-width)) / 2));
}

.product-detail-page > .section.muted,
.product-governance {
  background: var(--go-sky);
}

.product-detail-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-detail-shot {
  min-width: 0;
  margin: 0;
}

.product-detail-shot:only-child,
.product-detail-shot.is-primary:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.product-detail-shot-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--go-line-strong);
  border-radius: 8px;
  background: #eaf3f8;
  box-shadow: var(--go-shadow-md);
}

.product-detail-shot-frame::before {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #df8c33;
  box-shadow: 12px 0 #e6bd3f, 24px 0 #27a283;
  content: "";
}

.product-detail-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #edf6fa;
}

.product-detail-shot figcaption {
  display: grid;
  gap: .35rem;
  padding: 1.15rem .1rem 0;
}

.product-detail-shot figcaption strong {
  color: var(--go-navy-950);
  font-size: 1.2rem;
}

.product-workflow ol {
  display: grid;
  margin: 2.25rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.product-workflow li {
  min-height: 230px;
  padding: 1.75rem;
  border-top: 3px solid var(--go-blue-700);
  background: #fff;
}

.product-workflow li + li {
  margin-left: 1rem;
}

.product-workflow li strong {
  color: var(--go-navy-950);
  font-size: 1.2rem;
}

.product-workflow li p {
  color: var(--go-copy);
  line-height: 1.6;
}

.product-feature-groups {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-feature-group {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--go-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--go-shadow-sm);
}

.product-feature-group h3 {
  margin: 0 0 1rem;
  color: var(--go-navy-950);
  font-size: 1.45rem;
}

.product-feature-group article {
  display: grid;
  gap: .3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--go-line);
}

.product-feature-group article strong {
  color: var(--go-blue-700);
}

.product-feature-group p,
.platform-area-grid p {
  margin: 0;
}

.platform-capability-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.platform-capability-links a {
  display: grid;
  min-height: 168px;
  gap: .6rem;
  align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--go-line-strong);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  box-shadow: var(--go-shadow-sm);
  text-decoration: none;
}

.platform-capability-links a:hover,
.platform-capability-links a:focus-visible,
.platform-capability-links a[aria-current="page"] {
  border-color: var(--go-blue-600);
  box-shadow: 0 16px 36px rgba(3, 101, 172, .14);
  outline: none;
  transform: translateY(-2px);
}

.platform-capability-links strong {
  color: var(--go-navy-950);
}

.related-app-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-app-links a {
  display: grid;
  min-width: 0;
  min-height: 152px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--go-line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.related-app-links a:hover,
.related-app-links a:focus-visible {
  border-color: var(--go-blue-600);
  box-shadow: var(--go-shadow-sm);
  outline: none;
}

.related-app-links a > span:last-child {
  display: grid;
  min-width: 0;
  gap: .45rem;
}

.related-app-links strong {
  color: var(--go-navy-950);
}

.related-app-links small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-source-note,
.product-final-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.product-source-note {
  border-top: 1px solid var(--go-line);
  border-bottom: 1px solid var(--go-line);
  background: #fff;
}

.product-source-note h2,
.product-final-cta h2 {
  max-width: 19ch;
  margin: 0;
}

.product-final-cta {
  color: #fff;
  background: var(--go-navy-950);
}

.product-final-cta .eyebrow {
  color: #f7c75f;
}

.product-final-cta h2 {
  color: #fff;
}

.product-final-cta .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.platform-area-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-area-grid article {
  min-height: 190px;
  padding: 1.75rem;
  border-left: 4px solid var(--go-green-600);
  background: #fff;
  box-shadow: var(--go-shadow-sm);
}

.platform-area-grid strong {
  display: block;
  margin-bottom: .65rem;
  color: var(--go-navy-950);
  font-size: 1.2rem;
}

@media (max-width: 1080px) {
  .platform-capability-links,
  .related-app-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-hero-content {
    width: min(720px, 76vw);
  }
}

@media (max-width: 760px) {
  .product-detail-hero {
    min-height: 620px;
    align-items: end;
    padding: 104px 1.25rem 2.5rem;
  }

  .product-detail-hero > img {
    object-position: 58% center;
  }

  .product-detail-hero-shade {
    background: linear-gradient(180deg, rgba(4, 22, 39, .32), rgba(4, 22, 39, .94) 58%, rgba(4, 22, 39, .99));
  }

  .product-detail-hero-content {
    width: 100%;
  }

  .product-detail-hero h1,
  .platform-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .product-detail-hero-content > p:not(.eyebrow):not(.product-version) {
    font-size: 1.02rem;
  }

  .product-benefit-strip {
    width: calc(100% - 1.5rem);
    margin-top: -20px;
    grid-template-columns: 1fr;
  }

  .product-benefit-strip article {
    min-height: 0;
    padding: 1.2rem;
  }

  .product-benefit-strip article + article {
    border-top: 1px solid var(--go-line);
    border-left: 0;
  }

  .product-benefit-strip article > span {
    float: left;
    margin: 0 1rem .75rem 0;
  }

  .product-detail-page > .section {
    padding: 3.75rem 1rem;
  }

  .product-detail-gallery,
  .product-feature-groups,
  .platform-capability-links,
  .related-app-links,
  .platform-area-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-shot-frame {
    aspect-ratio: 4 / 3;
  }

  .product-workflow ol {
    grid-template-columns: 1fr;
  }

  .product-workflow li {
    min-height: 0;
  }

  .product-workflow li + li {
    margin: 1rem 0 0;
  }

  .platform-capability-links a,
  .related-app-links a,
  .platform-area-grid article {
    min-height: 0;
  }

  .product-source-note,
  .product-final-cta {
    display: grid;
    align-items: start;
  }

  .product-source-note h2,
  .product-final-cta h2 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-capability-links a {
    transition: none;
  }
}
