/* Match each text role to the existing home-fit.css / style.css homepage.
   Applied only to product and error pages; homepage files remain unchanged. */
:is(.product-page, .error-page) {
  --type-title: clamp(38px, min(4.5vw, 8svh), 63px);
  --type-heading: clamp(22px, 3.7svh, 30px);
  --type-intro: clamp(13px, 1.12vw, 16px);
  --type-body: clamp(13px, 1.9svh, 16px);
  --type-action: clamp(12px, 1.9svh, 16px);
  --type-caption: 11px;
  --title-leading: 1.045;
  --intro-leading: 1.4;
  --body-leading: 1.45;
  font-family: Brand, Arial, sans-serif;
  font-size: var(--type-body);
}
:is(.product-page, .error-page) header {
  height: clamp(64px, 9svh, 88px);
}
:is(.product-page, .error-page) header img {
  width: clamp(205px, 20vw, 252px);
}
:is(.product-page, .error-page) header p {
  font-size: 11px;
  line-height: 1.5;
}
:is(.product-page, .error-page) h1 {
  font-size: var(--type-title);
  line-height: var(--title-leading);
  letter-spacing: -.05em;
}
.product-page h2,
.product-page .product-end h2,
.product-page .product-mark {
  font-size: var(--type-heading);
}
.product-page h3,
.product-page .workflow h3,
.product-page .principle strong {
  font-size: var(--type-body);
  line-height: var(--body-leading);
}
.product-page .product-lead,
.error-page .intro {
  font-size: var(--type-intro);
  line-height: var(--intro-leading);
}
.product-page .product-purpose,
.product-page .section-intro,
.product-page .feature-grid p,
.product-page .audience-grid p,
.product-page .workflow p,
.product-page .principle p,
.product-page .product-value li,
.product-page .roadmap-note,
.product-page .faq details p,
.product-page .product-end p:not(.section-label) {
  font-size: var(--type-body);
  line-height: var(--body-leading);
}
.product-page .product-nav,
.product-page .product-button,
.product-page .faq summary,
.error-page main > a {
  font-size: var(--type-action);
}
.product-page .stage-label,
.product-page .eyebrow,
.product-page .section-label,
.product-page .step-number {
  font-size: var(--type-caption);
}
:is(.product-page, .error-page) footer {
  font-size: 11px;
}
.product-page .product-mark img {
  width: clamp(32px, 4.5svh, 40px);
  height: clamp(32px, 4.5svh, 40px);
}
/* Exact mobile values inherited by the homepage from style.css/home-fit.css. */
@media (max-width: 700px) {
  :is(.product-page, .error-page) {
    --type-title: clamp(38px, 11vw, 52px);
    --type-heading: 28px;
    --type-intro: 16px;
    --type-body: 16px;
    --type-action: 17px;
    --type-caption: 12px;
    --title-leading: 1.1;
    --intro-leading: 1.65;
    --body-leading: 1.65;
  }
  :is(.product-page, .error-page) header { height: 92px; }
  :is(.product-page, .error-page) header img { width: 220px; }
  .product-page .product-mark img { width: 42px; height: 42px; }
  .product-page .product-button { flex-wrap: wrap; max-width: 100%; }
}
