/* qh-type.css
   One site-wide type system, loaded last (functions.php priority 103).
   Families match live quantumheaps.com brand fonts:
     Funnel Display 500 — headings
     DM Sans 400 — body
     Outfit 500 — labels
   Sizes are CSS variables with clamp() so the same role is the same size
   on every page, and scales from desktop (~1440) down to 390.
   No :has(), no Inter, no Roboto, no Elementra/Elementor Inter Tight. */

/* Scale: min at 390px, max at 1440px. */
.qhw-theme{
  --qhw-font-head:"Funnel Display","DM Sans",sans-serif;
  --qhw-font-body:"DM Sans",sans-serif;
  --qhw-font-label:"Outfit","DM Sans",sans-serif;
  --fd:var(--qhw-font-head);
  --fb:var(--qhw-font-body);
  --fl:var(--qhw-font-label);
  --qh-font:var(--qhw-font-body);
  --qhp-fd:var(--qhw-font-head);
  --qhp-fb:var(--qhw-font-body);
  --qhp-fl:var(--qhw-font-label);
  --qhw-fw-head:500;
  --qhw-fw-body:400;
  --qhw-fw-label:500;
  --qhw-fs-h1:clamp(42px, calc(42px + 34 * ((100vw - 390px) / 1050)), 76px);
  --qhw-fs-h2:clamp(31px, calc(31px + 21 * ((100vw - 390px) / 1050)), 52px);
  --qhw-fs-h3:clamp(20px, calc(20px + 6 * ((100vw - 390px) / 1050)), 26px);
  --qhw-fs-h4:clamp(18px, calc(18px + 4 * ((100vw - 390px) / 1050)), 22px);
  --qhw-fs-body-lg:clamp(17px, calc(17px + 2 * ((100vw - 390px) / 1050)), 19px);
  --qhw-fs-body:clamp(16px, calc(16px + 2 * ((100vw - 390px) / 1050)), 18px);
  --qhw-fs-small:clamp(14px, calc(14px + 1 * ((100vw - 390px) / 1050)), 15px);
  --qhw-fs-label:14px;
  --qhw-fs-button:clamp(14px, calc(14px + 2 * ((100vw - 390px) / 1050)), 16px);
  /* Remap Elementor / Elementra kit tokens (they default to Inter / Inter Tight). */
  --theme-font-h1_font-family:var(--qhw-font-head);
  --theme-font-h2_font-family:var(--qhw-font-head);
  --theme-font-h3_font-family:var(--qhw-font-head);
  --theme-font-h4_font-family:var(--qhw-font-head);
  --theme-font-h5_font-family:var(--qhw-font-head);
  --theme-font-h6_font-family:var(--qhw-font-head);
  --theme-font-logo_font-family:var(--qhw-font-head);
  --theme-font-p_font-family:var(--qhw-font-body);
  --theme-font-post_font-family:var(--qhw-font-body);
  --theme-font-button_font-family:var(--qhw-font-body);
  --theme-font-input_font-family:var(--qhw-font-body);
  --theme-font-info_font-family:var(--qhw-font-body);
  --theme-font-menu_font-family:var(--qhw-font-body);
  --theme-font-submenu_font-family:var(--qhw-font-body);
  --theme-font-h1_font-size:var(--qhw-fs-h1);
  --theme-font-h2_font-size:var(--qhw-fs-h2);
  --theme-font-h3_font-size:var(--qhw-fs-h3);
  --theme-font-h4_font-size:var(--qhw-fs-h4);
  --theme-font-h5_font-size:var(--qhw-fs-h4);
  --theme-font-h6_font-size:var(--qhw-fs-small);
  --theme-font-p_font-size:var(--qhw-fs-body);
  --theme-font-button_font-size:var(--qhw-fs-button);
  --theme-font-menu_font-size:var(--qhw-fs-button);
  --theme-font-submenu_font-size:var(--qhw-fs-small);
  --theme-font-input_font-size:var(--qhw-fs-body);
  --theme-font-h1_font-weight:500;
  --theme-font-h2_font-weight:500;
  --theme-font-h3_font-weight:500;
  --theme-font-h4_font-weight:500;
  --theme-font-h5_font-weight:500;
  --theme-font-h6_font-weight:500;
  --theme-font-p_font-weight:400;
  --theme-font-button_font-weight:500;
  --theme-font-menu_font-weight:500;
  font-family:var(--qhw-font-body);
  font-weight:var(--qhw-fw-body);
  font-size:var(--qhw-fs-body);
  line-height:1.6;
}

/* --- Body --- */
.qhw-theme,
.qhw-theme body,
.qhw-theme p,
.qhw-theme li,
.qhw-theme td,
.qhw-theme th,
.qhw-theme input,
.qhw-theme textarea,
.qhw-theme select,
.qhw-theme .qhh,
.qhw-theme .qhp,
.qhw-theme .qhw-sitehead,
.qhw-theme .qhw-sitefoot{
  font-family:var(--qhw-font-body);
}

/* --- H1: page / hero titles --- */
.qhw-theme h1,
.qhw-theme .hero-title,
.qhw-theme .qhsol-hero__title,
.qhw-theme .qhtrust-title,
.qhw-theme .qhw-hero__title,
.qhw-theme .qhabout-h1,
.qhw-theme .qhcareers-h1,
.qhw-theme .qhprice-title,
.qhw-theme .qhw-bloglist__title,
.qhw-theme .qhw-blogpost__body .elementor-widget-theme-post-title,
.qhw-theme .qhw-blogpost__body .elementor-widget-post-title,
.qhw-theme .qhw-blogpost__body h1,
.qhw-theme .qhw-blogpost__body h1.elementor-heading-title,
.qhw-theme .e-con.qhp-hero .trx-addons-advanced-title,
.qhw-theme .e-con.qhp-hero .trx-addons-advanced-title-item-text,
.qhw-theme .elementor-widget-trx_elm_advanced_title .qhp-hero .trx-addons-advanced-title-item-text,
html body.qhw-theme .e-con.qhp-hero .elementor-widget-trx_elm_advanced_title .trx-addons-advanced-title-item-text,
html body.page.qhw-theme .e-con.qhp-hero .elementor-widget-trx_elm_advanced_title .trx-addons-advanced-title-item-text{
  font-family:var(--qhw-font-head) !important;
  font-weight:var(--qhw-fw-head) !important;
  font-size:var(--qhw-fs-h1) !important;
  line-height:1.05 !important;
  letter-spacing:-.03em;
  overflow-wrap:break-word;
  word-wrap:break-word;
  text-wrap:balance;
}

/* --- H2: section titles --- */
.qhw-theme h2,
.qhw-theme .h-l,
.qhw-theme .qhh .h-l,
.qhw-theme .qhjboard-title,
.qhw-theme .qhabout-h2,
.qhw-theme .qhcareers-h2,
.qhw-theme .qhp-jr-title,
.qhw-theme .qhp .qhp-step-title,
.qhw-theme .qhw-blogpost__body h2,
.qhw-theme .qhw-blogpost__body h2.elementor-heading-title,
.qhw-theme .qhw-blogcard--feature .qhw-blogcard__title,
.qhw-theme .qhw-blogcard--feature .qhw-blogcard__title a,
.qhw-theme .qhw-blogpost__cta-title,
.qhw-theme .qhw-blogpost__related-title,
.qhw-theme .qh-qr__title{
  font-family:var(--qhw-font-head) !important;
  font-weight:var(--qhw-fw-head) !important;
  font-size:var(--qhw-fs-h2) !important;
  line-height:1.08 !important;
  letter-spacing:-.03em;
  overflow-wrap:break-word;
  text-wrap:balance;
}

/* --- H3: cards / subsections --- */
.qhw-theme h3,
.qhw-theme .h-m,
.qhw-theme .qhh .h-m,
.qhw-theme .qhh .way h3,
.qhw-theme .qhh .way .way-title,
.qhw-theme .qhh .pillar h3,
.qhw-theme .qhtrust-card__title,
.qhw-theme .qhabout-film__title,
.qhw-theme .qhabout-manifesto,
.qhw-theme .qhabout-vcard__t,
.qhw-theme .qhjboard-end-title,
.qhw-theme .qhw-pcard__title,
.qhw-theme .qhw-blogcard__title,
.qhw-theme .qhw-blogcard__title a,
.qhw-theme .qhw-blogpost__body h3,
.qhw-theme .qhw-blogpost__body h3.elementor-heading-title,
.qhw-theme .qhabout-office__c{
  font-family:var(--qhw-font-head) !important;
  font-weight:var(--qhw-fw-head) !important;
  font-size:var(--qhw-fs-h3) !important;
  line-height:1.15 !important;
  letter-spacing:-.02em;
  overflow-wrap:break-word;
}

/* --- H4 --- */
.qhw-theme h4,
.qhw-theme .h-s,
.qhw-theme .qhh .h-s,
.qhw-theme h5,
.qhw-theme h6{
  font-family:var(--qhw-font-head) !important;
  font-weight:var(--qhw-fw-head) !important;
  font-size:var(--qhw-fs-h4) !important;
  line-height:1.2 !important;
}

/* --- Whiteboard node subtle right-side title --- */
.qhw-theme .qhjboard-name{
  font-family:var(--qhw-font-head) !important;
  font-weight:var(--qhw-fw-head) !important;
  font-size:clamp(20px, calc(20px + 2 * ((100vw - 390px) / 1050)), 22px) !important;
  line-height:1.18 !important;
  letter-spacing:-.02em;
  overflow-wrap:break-word;
}

/* --- Body large (leads / hero sub) --- */
.qhw-theme .lead,
.qhw-theme .qhh .lead,
.qhw-theme .qhh .hero-sub,
.qhw-theme .qhsol-hero__sub,
.qhw-theme .qhtrust-lead,
.qhw-theme .qhabout-sub,
.qhw-theme .qhh .split-sub,
.qhw-theme .qhjboard-lead,
.qhw-theme .qhp-jr-intro,
.qhw-theme .qhw-bloglist__hero > p:last-child{
  font-family:var(--qhw-font-body) !important;
  font-weight:var(--qhw-fw-body) !important;
  font-size:var(--qhw-fs-body-lg) !important;
  line-height:1.55 !important;
}

/* --- Small text (floor 14px) --- */
.qhw-theme small,
.qhw-theme .qhw-blogpost__by,
.qhw-theme .qhw-blogpost p.qhw-blogpost__by,
.qhw-theme .qhw-sitefoot,
.qhw-theme .qh-cookie p.qh-cookie__text,
.qhw-theme .qhh .fine,
.qhw-theme .qhh .split-offer-tab,
.qhw-theme .qhh .split-offer-link,
.qhw-theme .qh-qr__note,
.qhw-theme .qhjboard-desc{
  font-family:var(--qhw-font-body);
  font-size:var(--qhw-fs-small) !important;
}

/* --- Labels / kickers: Outfit 500, never below 14 --- */
.qhw-theme .kicker,
.qhw-theme .qhh .kicker,
.qhw-theme .qhh .tstrip .ts-l,
.qhw-theme .qhh .split-col .tag,
.qhw-theme .qhh .split-offers-label,
.qhw-theme .qhh .split-offer-bar-name,
.qhw-theme .qhh .split-bar,
.qhw-theme .qhh .split-step,
.qhw-theme .qhjboard-kicker,
.qhw-theme .qhsol-kicker,
.qhw-theme .qhtrust-kicker,
.qhw-theme .qhprice-kicker,
.qhw-theme .qhabout-kicker,
.qhw-theme .qhcareers-kicker,
.qhw-theme .qhw-bloglist__kicker,
.qhw-theme .qhp .qhp-label,
.qhw-theme .qhabout-soon,
.qhw-theme .qhabout-film__meta,
.qhw-theme .qhabout-num,
.qhw-theme .qhcareers-n{
  font-family:var(--qhw-font-label) !important;
  font-weight:var(--qhw-fw-label) !important;
  font-size:var(--qhw-fs-label) !important;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* --- Buttons --- */
.qhw-theme .btn,
.qhw-theme .qhh .btn,
.qhw-theme .qhh .btn-sm,
.qhw-theme .qhh .btn-lg,
.qhw-theme .qhw-hbtn,
.qhw-theme .qhw-hbtn--solid,
.qhw-theme a.elementor-button,
.qhw-theme .elementor-button,
.qhw-theme .qhjboard-end-btn,
.qhw-theme .qhsol-btn,
.qhw-theme .qhabout-btn,
.qhw-theme .qhcareers-btn,
.qhw-theme .qhp-btn,
.qhw-theme .qh-cookie button.qh-cookie__btn,
.qhw-theme button.qhw-navbtn,
.qhw-theme .qhw-nav a,
.qhw-theme .qhw-mega__link{
  font-family:var(--qhw-font-body) !important;
  font-size:var(--qhw-fs-button) !important;
}
.qhw-theme .btn-desc,
.qhw-theme .btn .btn-desc,
.qhw-theme .qhw-hbtn .btn-desc,
.qhw-theme .qhjboard-end-btn .btn-desc,
.qhw-theme .qhsol-btn .btn-desc,
.qhw-theme .qhabout-btn .btn-desc,
.qhw-theme .qhcareers-btn .btn-desc,
.qhw-theme .qhp-btn .btn-desc{
  font-family:var(--qhw-font-body) !important;
  font-weight:400 !important;
  font-size:14px !important;
  line-height:1.25 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.qhw-theme .hero-card-title{
  font-family:var(--qhw-font-head) !important;
  font-weight:700 !important;
  font-size:24px !important;
  line-height:1.2 !important;
  letter-spacing:-.02em !important;
  text-transform:none !important;
}
.qhw-theme .hero-card-desc{
  font-family:var(--qhw-font-body) !important;
  font-weight:400 !important;
  font-size:18px !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.qhw-theme .qhh .hero .assure{
  font-family:var(--qhw-font-body) !important;
  font-weight:400 !important;
  font-size:16px !important;
  line-height:1.35 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
  color:rgba(255,255,255,.7);
}
@media (max-width:767px){
  .qhw-theme .qhh .hero .assure{font-size:15px !important}
}
.qhw-theme .qhh .ask-btn{
  font-family:var(--qhw-font-body) !important;
  font-weight:600 !important;
  font-size:14px !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

@media (max-width:1023px){
  .qhw-theme .hero-card-title{font-size:22px !important}
}
@media (max-width:767px){
  .qhw-theme .hero-card-title{font-size:20px !important}
  .qhw-theme .hero-card-desc{font-size:16px !important}
}

/* Beat leftover Inter Tight on theme logo/menu chrome if it still leaks. */
.qhw-theme .logo_text,
.qhw-theme .sc_layouts_logo,
.qhw-theme .qhw-pause{
  font-family:var(--qhw-font-head) !important;
}

/* Neutralize qh-mobile-spacing.css !important size caps so the scale holds at 390. */
@media (max-width:767px){
  body.page.qhw-theme .qhw-hero__title,
  body.page.qhw-theme .qhw-hero__title .qhw-hl,
  body.page.qhw-theme .elementor-widget-heading h1.elementor-heading-title,
  body.home.qhw-theme .elementor-element-06f9e7f .trx-addons-advanced-title,
  body.home.qhw-theme .elementor-element-06f9e7f .trx-addons-advanced-title-item-text{
    font-size:var(--qhw-fs-h1) !important;
  }
  body.page.qhw-theme .elementor-widget-heading h2.elementor-heading-title,
  body.page.qhw-theme .elementor-element-ce6cf39 .trx-addons-advanced-title-item-text{
    font-size:var(--qhw-fs-h2) !important;
  }
}

/* Long headings must not overflow the viewport. */
.qhw-theme h1,
.qhw-theme h2,
.qhw-theme h3,
.qhw-theme .hero-title,
.qhw-theme .qhsol-hero__title,
.qhw-theme .qhtrust-title,
.qhw-theme .qhabout-h1,
.qhw-theme .qhcareers-h1,
.qhw-theme .qhprice-title,
.qhw-theme .qhw-bloglist__title{
  max-width:100%;
}

/* Visible and leftover ThemeREX / Elementor chrome still ships Roboto. */
.qhw-theme .trx-addons-info-box,
.qhw-theme .trx-addons-info-box-icon,
.qhw-theme .trx-addons-info-box-icon-inner,
.qhw-theme .trx-addons-info-box-title,
.qhw-theme .elementor-widget-trx_elm_info_box,
.qhw-theme .sc_layouts_column,
.qhw-theme .sc_layouts_item{
  font-family:var(--qhw-font-body) !important;
}

/* General paragraphs follow the body scale (beats Elementor 16px). Leads stay body-lg via the more specific rule above. */
.qhw-theme p{
  font-family:var(--qhw-font-body);
  font-size:var(--qhw-fs-body);
}
html body.qhw-theme .e-con.qhp-hero .elementor-widget-text-editor,
html body.qhw-theme .e-con.qhp-hero .elementor-widget-text-editor p{
  font-family:var(--qhw-font-body) !important;
  font-weight:var(--qhw-fw-body) !important;
  font-size:var(--qhw-fs-body-lg) !important;
  line-height:1.55 !important;
}

.qhw-theme .qhh .split-bar,
.qhw-theme .qhh .split-step{
  font-family:var(--qhw-font-label) !important;
  font-weight:500;
  font-size:var(--qhw-fs-label) !important;
  text-transform:none;
}

.qhw-theme .qhh .hero-rotator,
.qhw-theme .qhh .hero-rotator-item,
.qhw-theme .qhh .hero-rotator-sizer{
  font-family:var(--qhw-font-label) !important;
  font-weight:500;
  font-size:var(--qhw-fs-label) !important;
  text-transform:none;
  letter-spacing:0;
}

/* ---------- 1.7.53 Ankur review typography ---------- */
/* Hero: space under “Agent Q”, unclipped descender, brighter gradient, solid white line 2. */
.qhw-theme .qhh .hero-title{
  line-height:1.18 !important;
  overflow:visible;
  color:#fff;
}
.qhw-theme .qhh .hero-title .grad{
  display:inline-block;
  padding:.02em 0 .14em;
  margin-bottom:.18em;
  line-height:1.2;
  overflow:visible;
  background:linear-gradient(100deg,#9bb8ff 0%,#eef3ff 52%,#fff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
.qhw-theme .qhh .hero-sub{
  color:#fff !important;
}
.qhw-theme .qhh .hero .assure{
  font-size:var(--qhw-fs-body-lg) !important;
  color:#fff !important;
}
@media (max-width:767px){
  .qhw-theme .qhh .hero .assure{font-size:var(--qhw-fs-body-lg) !important}
}
.qhw-theme .qhh .hero-rotator,
.qhw-theme .qhh .hero-rotator-item,
.qhw-theme .qhh .hero-rotator-sizer{
  font-size:16px !important;
}

/* Solutions H1: each sentence on its own line on desktop; no mid-word or balance wrap to 4 lines. */
.qhw-theme .qhsol-hero__title{
  max-width:min(28ch,100%);
  text-wrap:wrap !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  word-wrap:normal !important;
}
@media (max-width:700px){
  .qhw-theme .qhsol-hero__title{max-width:100%}
}

/* Pricing plan titles: never break mid-word, even when the HTML tag is H2. */
.qhw-theme .qhh .plan .plan-name,
.qhw-theme .qhh .plan h2.plan-name,
.qhw-theme .qhh .plan h3.plan-name{
  font-size:clamp(18px,1.5vw,22px) !important;
  line-height:1.2 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  word-wrap:normal !important;
  hyphens:none !important;
  -webkit-hyphens:none !important;
  text-wrap:wrap !important;
}
