/* Product pages have their own visual system while reusing site typography. */
.products-page {
  background: #f7f8fa;
  overflow-x: hidden;
}

.products-page .brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.products-page .product-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
}

.products-page .nav-links .active {
  color: var(--ink);
  font-weight: 700;
}

.products-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #edf3f6;
  border-bottom: 1px solid #d4dfe4;
}

.products-hero::after {
  content: "";
  position: absolute;
  top: -190px;
  right: 12%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(66, 133, 244, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(251, 188, 4, .08), 0 0 0 35px rgba(66, 133, 244, .06);
  pointer-events: none;
}

.products-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: 58px 0 68px;
}

.products-hero-copy {
  position: relative;
  z-index: 2;
}

.products-hero-visual {
  position: relative;
  min-height: 360px;
  isolation: isolate;
}

.hero-feature {
  display: grid;
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: min(250px, 62%);
  aspect-ratio: 1 / 1.12;
  padding: 22px;
  place-items: center;
  transform: translate(-50%, -50%) rotate(3deg);
  border: 1px solid rgba(32, 33, 36, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 24px 48px rgba(32, 33, 36, .13);
  backdrop-filter: blur(10px);
}

.hero-feature-label {
  align-self: start;
  justify-self: start;
  color: #697078;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-feature-image {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(32, 33, 36, .18));
}

.hero-feature-name {
  align-self: end;
  max-width: 150px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.05;
  text-align: center;
}

.hero-product {
  display: grid;
  position: absolute;
  z-index: 1;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(32, 33, 36, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 26px rgba(32, 33, 36, .09);
  transform: rotate(-8deg);
}

.hero-product img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.hero-product-search {
  top: 7%;
  left: 8%;
  background: #e8f0fe;
  transform: rotate(-10deg);
}

.hero-product-drive {
  right: 4%;
  bottom: 10%;
  background: #fbf1dd;
  transform: rotate(9deg);
}

.hero-product-news {
  right: 9%;
  top: 11%;
  background: #e5f2e8;
  transform: rotate(8deg);
}

.products-page.is-detail .products-hero-inner {
  padding-top: 42px;
  padding-bottom: 54px;
}

.products-hero .back-link,
.product-detail .back-link {
  display: inline-block;
  color: #697078;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 44px;
}

.back-link:hover {
  color: var(--blue);
}

.products-hero h1,
.product-detail h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.075em;
  margin: 0;
}

.products-hero h1 {
  max-width: 700px;
  font-size: clamp(44px, 7vw, 78px);
}

.products-page.is-detail .products-hero h1 {
  font-size: clamp(38px, 5vw, 72px);
}

.products-hero h1 em,
.product-detail h2 em {
  color: var(--blue);
  font-style: normal;
}

.products-lead {
  max-width: 540px;
  margin: 26px 0 0;
  color: #596168;
  font-size: 19px;
}

.products-page.is-detail .products-lead {
  margin-top: 18px;
}

.products-catalog {
  padding-top: 66px;
  background: #f7f8fa;
}

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-heading .eyebrow,
.catalog-count {
  margin: 0;
}

.catalog-count {
  color: var(--muted);
  font-size: 13px;
}

.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 206px;
  gap: 12px;
}

.product-catalog-grid .product-card.featured {
  grid-column: span 1;
}

.product-catalog-grid .product-card {
  min-height: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(32, 33, 36, .08);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(32, 33, 36, .035);
}

.product-catalog-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(32, 33, 36, .1);
}

.product-catalog-grid .product-card h3 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 19px;
}

.product-catalog-grid .product-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-catalog-grid .product-card > a {
  margin-top: auto;
}

.product-catalog-grid .product-card .product-action {
  display: grid;
  align-self: end;
  justify-self: end;
  width: 32px;
  height: 32px;
  margin: 0 2px 2px 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(32, 33, 36, .16);
  border-radius: 50%;
  color: var(--ink);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.product-catalog-grid .product-card .action-icon {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
  margin: 0;
  line-height: 0;
}

.action-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 1px;
  width: 11px;
  height: 2px;
  background: currentColor;
}

.action-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.product-action:hover {
  transform: translate(2px, -2px);
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-badges {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-live {
  color: #188038;
}

.status-in-progress {
  color: #b06000;
}

.status-upcoming {
  color: #667078;
}

.product-catalog-grid .product-card:nth-child(3n + 1) {
  background: #e8f0fe;
}

.product-catalog-grid .product-card:nth-child(3n + 2) {
  background: #fff;
}

.product-catalog-grid .product-card:nth-child(3n) {
  background: #f5f1e9;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  padding: 30px 0 20px;
}

.product-detail[hidden],
.catalog-heading[hidden],
.product-catalog-grid[hidden] {
  display: none;
}

.detail-visual {
  display: grid;
  min-height: 420px;
  position: relative;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background-size: cover !important;
}

.detail-visual img {
  display: block;
  width: min(240px, 55%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(32, 33, 36, .15));
}

.detail-copy .back-link {
  margin-bottom: 54px;
}

.product-detail h2 {
  margin-bottom: 26px;
  font-size: clamp(48px, 6vw, 82px);
}

.detail-copy > p:not(.eyebrow):not(.detail-description):not(.download-meta) {
  margin: 0 0 18px;
  color: #4d555c;
  font-size: 22px;
}

.detail-description {
  max-width: 520px;
  margin: 0 0 28px;
  color: var(--muted);
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 21px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.download-meta {
  margin: 11px 0 0;
  color: #8a9298;
  font-size: 11px;
}

.products-page .footer {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .products-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    gap: 24px;
  }

  .products-hero-visual {
    min-height: 300px;
  }

  .product-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
  }

  .product-catalog-grid .product-card.featured {
    grid-column: span 1;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .detail-visual {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .products-hero-inner,
  .products-page.is-detail .products-hero-inner {
    display: block;
    min-height: 0;
    padding: 36px 0 48px;
  }

  .products-hero-visual {
    min-height: 280px;
    margin-top: 24px;
  }

  .hero-feature {
    width: 190px;
  }

  .hero-product {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .hero-product img {
    width: 38px;
    height: 38px;
  }

  .products-hero::after {
    top: -120px;
    right: -165px;
    width: 280px;
    height: 280px;
  }

  .products-hero h1,
  .products-page.is-detail .products-hero h1 {
    font-size: 50px;
  }

  .products-lead {
    font-size: 17px;
  }

  .products-catalog {
    padding-top: 54px;
  }

  .product-catalog-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 194px;
  }

  .product-catalog-grid .product-card.featured {
    grid-column: span 1;
  }

  .detail-visual {
    min-height: 250px;
  }

  .product-detail h2 {
    font-size: 54px;
  }

  .detail-copy > p:not(.eyebrow):not(.detail-description):not(.download-meta) {
    font-size: 19px;
  }

  .download-button {
    width: 100%;
    justify-content: center;
  }
}
