/* Home and product share the same prelude, headline, copy and action rows. */
body:is(.ai-home-page, .product-clean-page) {
  --hero-heading-font: clamp(3.5rem, 6.1vw, 6.25rem);
  --hero-headline-height: calc(var(--hero-heading-font) * 1.2);
  --hero-prelude-height: calc(19rem * 36 / 174);
  --hero-row-gap: 1.5rem;
}
body.ai-home-page .ai-hero--editorial .ai-hero__heading,
body.site-refined-page.product-clean-page .overview-product-hero {
  min-height: 100svh;
  padding: calc(5.25rem + 2rem) max(6vw, var(--site-gutter)) 4rem;
}
body.site-refined-page.product-clean-page .overview-product-hero .overview-inner {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
}
body.ai-home-page .ai-hero--editorial .ai-hero__heading h1,
body.product-clean-page .overview-product-title-group {
  display: grid;
  grid-template-rows: var(--hero-prelude-height) minmax(var(--hero-headline-height), auto);
  gap: var(--hero-row-gap);
  width: 100%;
  max-width: none;
  margin: 0;
}
body.ai-home-page .ai-hero--editorial .ai-hero__heading h1,
body.site-refined-page.product-clean-page .overview-product-title {
  font-size: var(--hero-heading-font);
  line-height: 1.2;
}
body.ai-home-page .ai-hero--editorial .ai-hero__line.ai-hero__line--message,
body.site-refined-page.product-clean-page .overview-product-title {
  min-height: var(--hero-headline-height);
  margin: 0;
}
body.ai-home-page .ai-hero--editorial .ai-hero__line--brand { align-self: center; }
body.ai-home-page .ai-hero--editorial .ai-hero__intro,
body.product-clean-page .overview-product-intro {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: var(--hero-row-gap);
  width: min(48rem, 100%);
  margin: 1.25rem 0 0;
}
body.ai-home-page .ai-hero--editorial .ai-hero__intro > p,
body.site-refined-page.product-clean-page .overview-product-summary {
  min-height: 1.8em;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}
body.ai-home-page .ai-hero--editorial .ai-panel__actions,
body.product-clean-page .overview-product-intro .overview-actions {
  min-height: 3rem;
  margin: 0;
  gap: 1.25rem;
}
body.product-clean-page .overview-product-intro .overview-actions > .site-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  height: 3rem;
  padding-block: 0;
}
body.product-clean-page .overview-product-intro .overview-hero-note {
  position: absolute;
  top: calc(100% + 1.5rem);
  width: 100%;
  margin: 0;
  line-height: 1.8;
}
/* Capability shortcuts fill the same space as the homepage brand row. */
body.product-clean-page .overview-product-preface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-width: 0;
}
body.product-clean-page .overview-product-preface .overview-product-preface__eyebrow {
  margin: 0;
  color: var(--brand-muted);
  font-size: .625rem;
  line-height: 1.3;
  letter-spacing: .16em;
}
.overview-product-preface__links { display: flex; align-items: center; justify-content: center; gap: 1.25rem; }
.overview-product-preface__links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  color: var(--brand-muted);
  font-size: .875rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.overview-product-preface__links svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--brand-primary); }
.overview-product-preface__links a:hover { color: var(--brand-primary); }
.overview-product-preface__links a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 4px; border-radius: .25rem; }
@media (min-width: 768px) and (max-width: 1023px) {
  html[lang="en"] body:is(.ai-home-page, .product-clean-page) { --hero-headline-height: calc(var(--hero-heading-font) * 2.4); }
  html[lang="en"] body.product-clean-page .overview-product-title > :is(span, em) { display: block; }
}
@media (max-width: 767px) {
  body:is(.ai-home-page, .product-clean-page) {
    --hero-heading-font: clamp(2.125rem, 11vw, 3.875rem);
    --hero-headline-height: calc(var(--hero-heading-font) * 2.55);
    --hero-prelude-height: calc(14rem * 36 / 174);
  }
  body.ai-home-page .ai-hero--editorial .ai-hero__heading,
  body.site-refined-page.product-clean-page .overview-product-hero { padding: calc(4.5rem + 1.25rem) 1.5rem 3.5rem; }
  body.site-refined-page.product-clean-page .overview-product-title > :is(span, em) { display: block; }
  body.site-refined-page.product-clean-page .overview-product-title > em { margin-top: .15em; }
  body.ai-home-page .ai-hero--editorial .ai-hero__intro > p,
  body.site-refined-page.product-clean-page .overview-product-summary { font-size: .8125rem; }
  body.ai-home-page .ai-hero--editorial .ai-panel__actions,
  body.product-clean-page .overview-product-intro .overview-actions {
    flex-direction: column;
    gap: .375rem;
    min-height: 6.375rem;
  }
  body.product-clean-page .overview-product-intro .overview-text-link { display: inline-flex; min-height: 3rem; align-items: center; }
  body.product-clean-page .overview-product-preface .overview-product-preface__eyebrow { display: none; }
  .overview-product-preface__links { gap: .75rem; }
  .overview-product-preface__links a { gap: .375rem; font-size: .75rem; }
  .overview-product-preface__links svg { width: 1rem; height: 1rem; }
}
