/* ============================================================
   NextLevel.ai — ONE heading style (Andrii transcript, 30 Oct 2026)
   Reference: homepage "3 AI products. <em class=h2-em>For your business.</em>"
   (tp-heading) and pricing "Three products. Pick what you need."
   Every page H1 and section H2 uses these tokens; section-level
   font overrides are neutralised here. Card/inner/prose/navigation
   headings are excluded (see :not list) or opt out with .nl-h-exempt.
   ============================================================ */
:root {
  --nl-heading-family: "Schibsted Grotesk", Manrope, sans-serif;
  --nl-heading-weight: 700;
  --nl-heading-tracking: -0.015em;
  --nl-h1-size: clamp(32px, 3.35vw, 48px);
  --nl-h1-leading: 1.1;
  --nl-h2-size: clamp(26px, 2.5vw, 36px);
  --nl-h2-leading: 1.15;
  --nl-h2-em-gradient: linear-gradient(90deg, #7040de, #c084fc, #f59e0b);
}

:is(h1, h2):not(.nl-h-exempt):not(:is(#site-header, [data-v3r-site-header], .v3r-mobile-nav, .v3r-footer, footer, nav, dialog, .mega-panel, .content-prose, .full-post, .article-body, .blog-card, .post-card, .v3-cs-next, .nl-h-exempt) *) {
  font-family: var(--nl-heading-family) !important;
  font-weight: var(--nl-heading-weight) !important;
  font-style: normal !important;
  letter-spacing: var(--nl-heading-tracking) !important;
  text-transform: none !important;
  text-wrap: balance;
}
h1:not(.nl-h-exempt):not(:is(#site-header, [data-v3r-site-header], .v3r-mobile-nav, .v3r-footer, footer, nav, dialog, .mega-panel, .content-prose, .full-post, .article-body, .blog-card, .post-card, .v3-cs-next, .nl-h-exempt) *) {
  font-size: var(--nl-h1-size) !important;
  line-height: var(--nl-h1-leading) !important;
}
h2:not(.nl-h-exempt):not(:is(#site-header, [data-v3r-site-header], .v3r-mobile-nav, .v3r-footer, footer, nav, dialog, .mega-panel, .content-prose, .full-post, .article-body, .blog-card, .post-card, .v3-cs-next, .nl-h-exempt) *) {
  font-size: var(--nl-h2-size) !important;
  line-height: var(--nl-h2-leading) !important;
}

/* Hub article sections (non-blog) use the same token; blog prose is untouched. */
.hub-page .content-prose h2 {
  font-family: var(--nl-heading-family) !important;
  font-weight: var(--nl-heading-weight) !important;
  font-size: var(--nl-h2-size) !important;
  line-height: var(--nl-h2-leading) !important;
  letter-spacing: var(--nl-heading-tracking) !important;
}

/* Highlighted phrase: one gradient style everywhere (incl. homepage, where
   .home-v3 previously flattened it to plain text colour). */
:is(h1, h2) :is(.h2-em, .grad, .hero-em, .callback-em, .quiz-em, .quiz-em-purple, .v3r-em, .v3s-em),
h1#v3r-title > span,
.h2-em {
  font-style: normal !important;
  font-weight: inherit !important;
  background: var(--nl-h2-em-gradient) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Max 2 lines at 1440px: section heading blocks get a wide measure. */
.v3r-heading,
.v3r-heading.v3r-heading--split,
.v3s-heading--wide,
.section-head,
.sm2-head,
.ab-section-head {
  max-width: min(1040px, 100%) !important;
}
.v3r-heading h2,
.v3s-section .v3r-heading--split h2,
.v3r-story__copy h2,
.sm2-head h2,
.section-head h2 {
  max-width: none !important;
}
.v3r-story__copy {
  max-width: 520px !important;
}
/* FAQ: heading full width above the list; compliance strip: wider copy column. */
@media (min-width: 1100px) {
  .v3r-faq {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }
  .v3s-trust__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) !important;
  }
}

/* Subtitle always BELOW the heading (split head layouts stacked). */
.v3r-heading.v3r-heading--split {
  display: block !important;
}
.v3r-heading.v3r-heading--split > p {
  max-width: 720px !important;
  margin-top: 14px !important;
  margin-left: 0 !important;
  justify-self: auto !important;
}

/* Feature/card titles fit on one line at desktop widths. */
@media (min-width: 1100px) {
  .v3r-capability h3,
  .v3r-usecase h3,
  .v3r-workflow h3,
  .v3r-channel h3,
  .v3r-audience h3 {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
}

/* ============================================================
   uifix2 (30 Oct 2026, Theo) — Quinn UI/UX 854566a7 MEDIUM, user-approved.
   ============================================================ */
/* Max 2 lines at 390px: phone heading scale (same family/weight/tokens). */
@media (max-width: 640px) {
  :root {
    --nl-h1-size: clamp(22px, 6.2vw, 26px);
    --nl-h2-size: clamp(19px, 5.15vw, 22px);
    --nl-heading-tracking: -0.02em;
  }
  /* Hero highlight runs on with the line instead of forcing its own line. */
  .v3r-hero h1 > span {
    display: inline !important;
  }
}
/* Max 2 lines at 1024px: FAQ heading full width from 64rem (was 1100px). */
@media (min-width: 64rem) {
  .v3r-faq {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
  }
}
/* Author profile section headings were capped at 14ch (3 lines). */
.profile-narrative h2,
.profile-principles h2 {
  max-width: none !important;
}

/* One heading style: section-level titles that are H3 (receptionist and
   call-center story/deployment/journey titles, home/about pricing panels)
   and the case-study "next story" H2 use the site heading family/weight,
   with the H2 size for section titles. */
.v3r-story__copy h3,
.v3c-capability-group__heading h3,
.v3c-journey__copy h3,
.v3c-deployment h3,
.v3c-comparison__intro h3,
.nl-section-h3 {
  font-family: var(--nl-heading-family) !important;
  font-weight: var(--nl-heading-weight) !important;
  font-style: normal !important;
  font-size: var(--nl-h2-size) !important;
  line-height: var(--nl-h2-leading) !important;
  letter-spacing: var(--nl-heading-tracking) !important;
  text-wrap: balance;
}
.v3-cs-next h2 {
  font-size: var(--nl-h2-size) !important;
  line-height: var(--nl-h2-leading) !important;
  font-family: var(--nl-heading-family) !important;
  font-weight: var(--nl-heading-weight) !important;
  font-style: normal !important;
  letter-spacing: var(--nl-heading-tracking) !important;
  text-wrap: balance;
}
