.product-menu {
  position: relative;
}

.product-menu-toggle {
  cursor: pointer;
  border: 0;
  background: transparent;
}

.product-menu-toggle .nav-chevron {
  width: 7px;
  height: 7px;
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  border-right: 1.5px solid #9a9a9a;
  border-bottom: 1.5px solid #9a9a9a;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform .18s ease;
}

.product-menu.is-open .product-menu-toggle .nav-chevron {
  transform: rotate(225deg);
}

.product-mega {
  position: fixed;
  top: 72px;
  left: 50%;
  width: min(900px, calc(100vw - 40px));
  padding: 28px;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 24px;
  box-shadow: 0 1px 10px rgba(0,0,0,.15);
}

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

.product-mega-label {
  margin-bottom: 20px;
  color: #77787a;
  font-size: 12.25px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.product-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.product-mega-grid > a {
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 16px;
  transition: background .18s ease;
}

.product-mega-grid > a:hover {
  background: #f6f5f7;
}

.product-mega-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: #f0eff1;
}

.product-mega-icon img {
  width: 22px;
  height: 22px;
}

.product-mega-blue { background: #e7f4ff; }
.product-mega-pink { background: #fde8f2; }
.product-mega-violet { background: #edeaff; }
.product-mega-yellow { background: #fff3d7; }
.product-mega-green { background: #e5f6ec; }

.product-mega-grid strong,
.product-mega-grid small {
  display: block;
}

.product-mega-grid strong {
  font-size: 15px;
  line-height: normal;
}

.product-mega-grid small {
  margin-top: 3px;
  color: #77787a;
  font-size: 13.5px;
  line-height: 19px;
}

.product-mega-footer {
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #f5f5f5;
  font-size: 14px;
}

.product-mega-overview,
.product-mega-update {
  color: #141414;
  font-weight: 500;
}

.product-mega-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-mega-pricing {
  color: #77787a;
}

.product-mega-cta {
  min-height: 40px;
  margin-left: auto;
  padding: 0 20px;
}

/* Product pages */
.product-page {
  max-width: none;
  background: #fff;
}

.product-page .site-header {
  height: auto;
  padding: 0;
  background: rgba(255,255,255,.96);
  border-bottom-color: #f5f5f5;
}

.product-page .header-inner {
  width: 100%;
  max-width: 1200px;
  min-height: 64px;
  height: auto;
  padding: 12px clamp(20px, 5vw, 84px);
  gap: 16px;
}

.product-page .site-nav {
  gap: 12px;
}

.product-page .nav-items {
  gap: 2px;
}

.product-page .product-menu-toggle {
  gap: 8px;
}

.product-page .header-cta {
  width: auto;
  min-height: 40px;
  padding: 0 20px;
}

.product-page .site-header,
.product-page .header-inner,
.product-page .site-nav,
.product-page .nav-items,
.product-page .product-menu-toggle,
.product-page .header-cta {
  box-sizing: border-box;
}

.product-page .site-header {
  padding-right: 0;
  padding-left: 0;
}

.product-page .header-inner {
  margin-right: auto;
  margin-left: auto;
}

.product-page .site-nav {
  column-gap: 12px;
}

.product-page .nav-items {
  column-gap: 2px;
}

.product-page .product-menu-toggle {
  display: flex;
  align-items: center;
  column-gap: 8px;
  line-height: normal;
}

.product-page .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: normal;
}

.nav-item-updates {
  gap: 7px;
}

.nav-update-dot {
  width: 6px;
  height: 6px;
  display: block;
  flex-shrink: 0;
  border-radius: 999px;
  background: #141414;
}

.mobile-nav-divider {
  height: 1px;
  margin: 8px 0;
  background: #f5f5f5;
}

.product-page-main {
  min-height: 70vh;
}

.product-overview-hero,
.product-detail-hero {
  padding: 104px var(--container-px) 96px;
  background:
    radial-gradient(circle at 10% 60%, rgba(255,157,207,.26), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(139,172,255,.32), transparent 34%),
    linear-gradient(135deg, #fff9fb, #f5effb 48%, #eef2ff);
}

.product-overview-hero-inner,
.product-detail-hero-inner,
.product-detail-body,
.product-overview-grid,
.product-next {
  max-width: 1120px;
  margin: 0 auto;
}

.product-page-kicker {
  margin-bottom: 24px;
  color: #6658d5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.product-overview-hero h1,
.product-detail-hero h1 {
  max-width: 900px;
  font-size: 62px;
  line-height: 1;
  letter-spacing: -2.7px;
}

.product-overview-hero p:last-child,
.product-detail-hero-copy > p:last-of-type {
  max-width: 620px;
  margin-top: 28px;
  color: #6f6c74;
  font-size: 18px;
  line-height: 1.55;
}

.product-overview-grid {
  padding: 84px 0 112px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.product-overview-card {
  min-height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e7e5e9;
  border-radius: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(53,44,80,.09);
}

.product-overview-card .product-mega-icon {
  margin-bottom: auto;
}

.product-overview-card h2 {
  margin: 48px 0 10px;
  font-size: 27px;
}

.product-overview-card p {
  color: #77737f;
}

.product-overview-card-blue { background: linear-gradient(145deg, #eaf7ff, #fff 65%); }
.product-overview-card-pink { background: linear-gradient(145deg, #fdebf4, #fff 65%); }
.product-overview-card-violet { background: linear-gradient(145deg, #efecff, #fff 65%); }
.product-overview-card-yellow { background: linear-gradient(145deg, #fff5dc, #fff 65%); }
.product-overview-card-green { background: linear-gradient(145deg, #e8f7ee, #fff 65%); }
.product-overview-card-gray { background: linear-gradient(145deg, #f1f0f2, #fff 65%); }

.product-detail-hero-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.product-detail-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 32px;
  display: grid;
  place-items: center;
  border-radius: 22px;
}

.product-detail-icon img {
  width: 40px;
  height: 40px;
}

.product-detail-actions {
  margin-top: 34px;
  display: flex;
  gap: 8px;
}

.product-detail-visual {
  min-height: 480px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 32px;
  background: rgba(255,255,255,.6);
  box-shadow: 0 28px 80px rgba(58,47,94,.13);
}

.product-ui-row {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(80px, max-content) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(48,41,70,.07);
}

.product-ui-row > span:first-child {
  min-width: 80px;
  min-height: 46px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #efedff;
  color: #6258be;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.product-ui-row strong,
.product-ui-row small {
  display: block;
}

.product-ui-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-ui-row small,
.product-ui-row > span:last-child {
  color: #8b8890;
  font-size: 11px;
}

.product-detail-body {
  padding: 112px 0;
}

.product-detail-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  margin-bottom: 72px;
}

.product-detail-intro h2 {
  font-size: 42px;
  letter-spacing: -1.3px;
}

.product-detail-intro p {
  color: #6f6c74;
  font-size: 17px;
  line-height: 1.6;
}

.product-feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-feature-list article {
  min-height: 250px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e6ea;
  border-radius: 24px;
}

.product-feature-list article span {
  margin-bottom: auto;
  color: #6a5ed2;
  font-size: 11px;
  font-weight: 600;
}

.product-feature-list h3 {
  margin: 34px 0 10px;
  font-family: var(--font-body);
  font-size: 17px;
}

.product-feature-list p {
  color: #77737f;
  font-size: 13px;
}

.product-next {
  margin-bottom: 96px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fbeef5, #eef1ff);
}

.product-next h2 {
  font-size: 28px;
}

@media (max-width: 900px) {
  .product-mega {
    display: none;
  }

  .product-overview-hero,
  .product-detail-hero {
    padding: 72px 20px;
  }

  .product-overview-hero h1,
  .product-detail-hero h1 {
    font-size: 42px;
  }

  .product-overview-grid,
  .product-detail-body {
    padding: 64px 20px 80px;
  }

  .product-detail-hero-inner,
  .product-detail-intro {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .product-detail-visual {
    min-height: 380px;
  }

  .product-feature-list {
    grid-template-columns: 1fr;
  }

  .product-next {
    margin: 0 20px 72px;
    padding: 32px 24px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .product-overview-grid {
    grid-template-columns: 1fr;
  }

  .product-overview-card {
    min-height: 260px;
  }

  .product-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-detail-actions .btn {
    width: 100%;
  }

  .product-ui-row {
    padding: 16px;
    grid-template-columns: minmax(80px, max-content) minmax(0, 1fr);
    gap: 12px;
  }

  .product-ui-row > span:last-child {
    display: none;
  }
}
