@font-face {
  font-family: Nexa;
  src: url("../two26/circular/Nexa-Heavy.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

.cm-typography {
  --cm-heading-font: Nexa, Helvetica, Arial, sans-serif;
  --cm-paragraph-font: Helvetica, Arial, sans-serif;
  --cm-hero-size: clamp(52px, 6.7vw, 100px);
  --cm-hero-leading: .98;
  --cm-section-size: clamp(38px, 5vw, 74px);
  --cm-review-heading-size: clamp(24px, 4.7vw, 74px);
  --cm-paragraph-size: 16px;
  --cm-paragraph-leading: 1.65;
}

@media (max-width: 991px) {
  .cm-typography {
    --cm-hero-size: clamp(46px, 7.8vw, 73px);
    --cm-section-size: clamp(38px, 5.5vw, 56px);
  }
}

@media (max-width: 767px) {
  .cm-typography {
    --cm-hero-size: clamp(40px, 7vw, 52px);
    --cm-hero-leading: 1;
    --cm-section-size: 40px;
  }
}

@media (max-width: 600px) {
  .cm-typography {
    --cm-review-heading-size: clamp(19px, 4.6vw, 28px);
  }
}

@media (max-width: 479px) {
  .cm-typography {
    --cm-hero-size: clamp(33px, 8.7vw, 40px);
    --cm-hero-leading: 1.03;
    --cm-section-size: clamp(32px, 8.7vw, 40px);
    --cm-paragraph-size: 14px;
  }
}

/* Legacy templates include important font declarations. Layer the shared
   rules so the type scale takes precedence while layouts retain their styles. */
@layer cm-typography {
  .cm-typography :is(h1, h2, h3, h4, h5, h6, .testimonial-heading, .faq-ques, .cm-faq-item summary, .ads-faq-item summary) {
    font-family: var(--cm-heading-font) !important;
    font-weight: 700 !important;
  }

  .cm-typography h1 {
    font-size: var(--cm-hero-size) !important;
    letter-spacing: -.055em !important;
    line-height: var(--cm-hero-leading) !important;
  }

  .cm-typography h2:not(.contact-heading, .footer-heading) {
    font-size: var(--cm-section-size) !important;
    letter-spacing: -.045em !important;
    line-height: 1.03 !important;
  }

  .cm-typography h2[data-typography="review-heading"] {
    font-size: var(--cm-review-heading-size) !important;
  }

  .cm-typography h2:has(.pill, .dv-grad, .dv-section-highlight, .cn-section-highlight) {
    line-height: 1.18 !important;
  }

  .cm-typography :is(
    p:not(:where(header *, footer *, nav *, address *, .about-para, .contact-para,
      .ab-eyebrow, .ab-sr-only, .case-typewriter-stage, .case-source-note, .cm-abn,
      .cm-review-origin, .cm-review-status, .cm-review-person p, .dv-mq-t,
      .founding-kicker, .mockup-kicker, .values-kicker)),
    .faq .ans,
    .x-exp-s
  ) {
    font-family: var(--cm-paragraph-font) !important;
    font-size: var(--cm-paragraph-size) !important;
    letter-spacing: normal !important;
    line-height: var(--cm-paragraph-leading) !important;
  }
}
