/* Product pages inherit the home page's scale and object-led rhythm without
   painting its alignment grid. The guide is spacing here, not decoration. */
.product-page main {
  --product-pad: clamp(1.5rem, 4.5vw, 4.5rem);
  --product-gap: clamp(1.5rem, 4vw, 4rem);
  overflow: clip;
}

.product-page main > section {
  border-inline: 0;
}

.product-page h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.product-hero {
  padding: 0 var(--product-pad) clamp(3rem, 6vw, 6rem);
  border: 0;
}

.product-breadcrumbs {
  min-height: 56px;
  padding-inline: 0;
  border-bottom-color: var(--line-strong);
}

.product-hero-grid {
  min-height: min(640px, calc(100dvh - 150px));
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: var(--product-gap);
  padding-top: clamp(1.5rem, 3vw, 3rem);
}

.product-page--messaging .product-hero-grid {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
}

.product-hero-copy {
  min-width: 0;
  padding: clamp(2.5rem, 6vw, 6rem) 0;
  border: 0;
}

.product-hero-copy::before {
  width: clamp(4rem, 8vw, 7rem);
  height: 10px;
  margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--brand);
  content: "";
}

.product-hero-copy h1 {
  max-width: 17ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 3.55vw, 4.3rem);
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.product-hero-copy > p {
  max-width: 44ch;
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.product-hero-visual {
  min-width: 0;
  align-self: stretch;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgb(11 17 19 / 14%);
}

.product-hero-visual img {
  min-height: 100%;
}

.product-section-nav {
  min-height: 64px;
  gap: clamp(1rem, 3vw, 3rem);
  padding-inline: var(--product-pad);
  border: 0;
  border-block: 1px solid var(--line-strong);
}

.product-section-nav a {
  position: relative;
  padding: 1rem 0;
  border: 0;
}

.product-section-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 160ms cubic-bezier(0.2, 0, 0, 1), transform 160ms cubic-bezier(0.2, 0, 0, 1);
}

.product-section-nav a:hover,
.product-section-nav a:focus-visible {
  background: transparent;
  color: var(--ink);
}

.product-section-nav a:hover::after,
.product-section-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.product-definition,
.product-capabilities,
.product-deployment,
.product-faq,
.product-related {
  padding: clamp(6rem, 11vw, 10rem) var(--product-pad);
  border: 0;
}

.product-definition {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: var(--product-gap);
  align-items: start;
}

.product-definition h2 {
  position: sticky;
  top: 2rem;
  max-width: 9ch;
}

.product-prose {
  max-width: 62ch;
  padding-top: clamp(0.25rem, 2vw, 1.5rem);
}

.product-prose p:first-child {
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.5;
}

.product-capabilities {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.product-capabilities h2 {
  max-width: 10ch;
  margin-left: clamp(0rem, 8vw, 7rem);
}

.product-capability-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 0 var(--product-gap);
  border: 0;
}

.product-capability-grid li,
.product-capability-grid li:nth-child(odd),
.product-capability-grid li:nth-child(4n + 2),
.product-capability-grid li:nth-child(4n + 3) {
  min-height: 132px;
  padding: 1.5rem 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.35;
}

.product-capability-grid li:nth-child(4n + 2),
.product-capability-grid li:nth-child(4n + 3) {
  color: var(--legacy-muted);
}

.product-packages {
  padding-inline: var(--product-pad);
}

.product-packages__head {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-top: 1.75rem;
}

.product-packages__head h2 {
  max-width: 10ch;
}

.product-packages__head p {
  max-width: 48ch;
}

.product-package-track {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.product-package {
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1);
}

.product-package:hover,
.product-package:focus-within {
  background: var(--surface);
}

.product-fit {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: var(--product-gap);
  padding: clamp(6rem, 11vw, 10rem) var(--product-pad);
  border: 0;
}

.product-fit > div {
  align-self: center;
  padding: 0;
  border: 0;
}

.product-fit-list {
  border-top: 10px solid var(--brand);
}

.product-fit-list li {
  padding-block: 1.25rem;
}

.product-fit figure,
.product-fit figure.product-fit-console {
  min-height: 580px;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgb(11 17 19 / 12%);
}

.product-deployment {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.product-deployment h2 {
  max-width: 11ch;
}

.product-step-list {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  border: 0;
}

.product-step-list::before {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0 26%, var(--line-strong) 26% 100%);
  content: "";
}

.product-step-list li {
  min-height: 220px;
  padding: 3.5rem 0 0;
  border: 0;
  color: var(--ink);
  line-height: 1.55;
}

.product-step-list li::before {
  width: 14px;
  height: 14px;
  margin: -3.05rem 0 2.3rem;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.product-step-list li:not(:first-child)::before {
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.product-operation {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: var(--product-gap);
  padding: clamp(5rem, 9vw, 8rem) var(--product-pad) clamp(7rem, 12vw, 11rem);
  border: 0;
}

.product-operation article {
  min-height: 0;
  padding: 0;
}

.product-operation article + article {
  align-self: end;
  margin-top: clamp(5rem, 10vw, 10rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 0;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 8px 24px rgb(11 17 19 / 7%);
}

.product-operation h2 {
  max-width: 8ch;
}

.product-operation article + article h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.product-faq {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--product-gap);
}

.product-faq details:first-child {
  border-top-color: var(--brand);
  border-top-width: 10px;
}

.product-related > div {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: var(--product-gap);
  border: 0;
}

.product-related article,
.product-related article + article {
  min-height: 300px;
  padding: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  transition: background 160ms cubic-bezier(0.2, 0, 0, 1), padding 160ms cubic-bezier(0.2, 0, 0, 1);
}

.product-related article:has(a:hover),
.product-related article:focus-within {
  padding-inline: 1.5rem;
  background: var(--surface);
}

.product-related h3 {
  font-size: clamp(2rem, 3.4vw, 3.8rem);
  line-height: 0.95;
}

.product-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--product-gap);
  padding: clamp(5rem, 9vw, 8rem) var(--product-pad);
  border: 0;
  border-top: 1px solid var(--ink);
}

.product-cta h2 {
  max-width: 16ch;
}

@media (max-width: 920px) {
  .product-hero-grid,
  .product-page--messaging .product-hero-grid,
  .product-definition,
  .product-fit,
  .product-faq,
  .product-operation {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero-grid {
    min-height: auto;
  }

  .product-hero-copy {
    min-height: 430px;
    padding-block: 3rem;
  }

  .product-hero-visual {
    min-height: 460px;
  }

  .product-definition h2 {
    position: static;
  }

  .product-fit > div {
    padding: 0;
    border: 0;
  }

  .product-operation article + article {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .product-page main {
    --product-pad: 1.25rem;
    --product-gap: 2rem;
  }

  .product-page h2,
  .product-hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .product-hero-copy {
    min-height: 0;
    padding-block: 2.5rem 1.5rem;
  }

  .product-hero-copy::before {
    height: 8px;
    margin-bottom: 2rem;
  }

  .product-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-hero-visual {
    min-height: 320px;
  }

  .product-section-nav {
    gap: 1.5rem;
  }

  .product-capabilities h2 {
    margin-left: 0;
  }

  .product-capability-grid,
  .product-related > div,
  .product-step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-capability-grid li {
    min-height: auto;
  }

  .product-fit figure,
  .product-fit figure.product-fit-console {
    min-height: 430px;
  }

  .product-step-list {
    gap: 0;
  }

  .product-step-list::before {
    top: 0;
    bottom: 0;
    left: 6px;
    width: 3px;
    height: auto;
    background: var(--line-strong);
  }

  .product-step-list li {
    position: relative;
    min-height: 0;
    padding: 0 0 2.5rem 2.5rem;
  }

  .product-step-list li::before {
    position: absolute;
    left: 0;
    width: 14px;
    height: 14px;
    margin: 0;
  }

  .product-operation article + article {
    padding: 2rem;
  }

  .product-related article,
  .product-related article + article {
    min-height: 230px;
  }

  .product-cta {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-section-nav a::after,
  .product-package,
  .product-related article {
    transition: none;
  }
}
