:root {
  --cg-heading-font: "Montserrat", Arial, sans-serif;
  --cg-heading-weight: 600;
  --cg-heading-line-height: 1.08;
  --cg-heading-letter-spacing: 0;
  --cg-h1-size: 68px;
  --cg-h2-size: 42px;
  --cg-h3-size: 18px;
}

main :where(h1, h2, h3),
main :where(.cg-section-head h2, .cg-hero h1, .cg-hero h2, .cg-eyebrow + h1, .cg-eyebrow + h2) {
  font-family: var(--cg-heading-font) !important;
  font-weight: var(--cg-heading-weight) !important;
  letter-spacing: var(--cg-heading-letter-spacing) !important;
}

main :where(h1) {
  font-size: var(--cg-h1-size) !important;
  line-height: var(--cg-heading-line-height) !important;
}

main :where(.cg-hero h1, .cg-hero h2) {
  font-size: var(--cg-h1-size) !important;
  line-height: var(--cg-heading-line-height) !important;
}

main .cg-hero .cg-hero__slide-copy h1,
main .cg-hero .cg-hero__slide-copy h2 {
  font-size: var(--cg-h1-size) !important;
  line-height: var(--cg-heading-line-height) !important;
  font-family: var(--cg-heading-font) !important;
  font-weight: var(--cg-heading-weight) !important;
  letter-spacing: var(--cg-heading-letter-spacing) !important;
}

main .cg-hero .cg-hero__slide-copy h1 span,
main .cg-hero .cg-hero__slide-copy h2 span {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}

main :where(.cg-hero h1 span, .cg-hero h2 span) {
  font-weight: inherit !important;
}

main :where(h2) {
  font-size: var(--cg-h2-size) !important;
  line-height: var(--cg-heading-line-height) !important;
}

main :where(h3) {
  font-size: var(--cg-h3-size) !important;
  line-height: 1.18 !important;
}

@media (max-width: 760px) {
  :root {
    --cg-h1-size: 56px;
    --cg-h2-size: 42px;
    --cg-h3-size: 18px;
  }
}

/* Shared text scale based on the approved Forex page. */
html:root body main :is(h1,h2,h3){font-family:var(--cg-heading-font)!important;font-weight:600!important;letter-spacing:0!important}
html:root body main h1,
html:root body main .cg-hero .cg-hero__slide-copy :is(h1,h2){font-size:var(--cg-h1-size)!important;line-height:1.08!important}
html:root body main h2{font-size:var(--cg-h2-size)!important;font-weight:700!important;line-height:1.18!important}
html:root body main h3{font-size:18px!important;line-height:1.3!important}
html:root body main :is(.cg-market-card h3,.cg-market-panel h3){font-size:21px!important}
html:root body main :is(.cg-faq-item h3,.cg-faq-question){font-size:16px!important;line-height:1.5!important;font-weight:600!important}
html:root body main p{font-family:var(--cg-heading-font)!important;font-size:14px!important;font-weight:500!important;line-height:1.85!important;letter-spacing:0!important}
html:root body main :is(.cg-hero,.cg-forex-hero,.cg-metals-hero,.cg-shares-hero,.cg-indices-hero,.cg-commodities-hero) p:not(.cg-eyebrow){font-size:16px!important}
html:root body main :is(.cg-market-card,.cg-feature,.cg-faq-item,.cg-account-card,.cg-experience-card) p{font-size:13px!important;line-height:1.8!important}
html:root body main :is(.cg-btn,.cg-account-cta,.cg-plan-cta,.cg-trustpilot-cta,.cg-hero__open,.cg-hero__demo,.cg-hero__login,.cg-tab){font-family:var(--cg-heading-font)!important;font-size:12px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important}
html:root body main :is(.cg-eyebrow,.cg-hero__eyebrow,.cg-accounts-kicker,.cg-experience-kicker,.cg-trustpilot-kicker,.cg-markets-kicker,.cgi-proof-eyebrow){font-size:11px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important}
html:root body main :is(.cg-hero-breadcrumb,.cg-breadcrumb){font-size:12px!important;font-weight:500!important}
html:root body main :is(td,.cg-symbol strong){font-size:13px!important;font-weight:600!important;line-height:1.5!important}
html:root body main th{font-size:10px!important;font-weight:600!important;letter-spacing:0!important}
html:root body main .cg-symbol span{font-size:11px!important;font-weight:500!important}
html:root body main :is(.cg-accounts-note,.cg-disclaimer){font-size:11px!important;line-height:1.8!important}
@media(max-width:980px){:root{--cg-h1-size:56px}}
@media(max-width:600px){:root{--cg-h1-size:42px;--cg-h2-size:32px}html:root body main :is(.cg-hero,.cg-forex-hero,.cg-metals-hero,.cg-shares-hero,.cg-indices-hero,.cg-commodities-hero) p:not(.cg-eyebrow){font-size:14px!important}}

/* Hero slides retain their existing headline weight. */
html:root body main .cg-hero .cg-hero__slide-copy h2 { font-weight: var(--cg-heading-weight) !important; }

/* Button labels only; navigation, dimensions, colors, and shapes are unchanged. */
html:root body main :is(button,.cg-btn,.cg-account-cta,.cg-plan-cta,.cg-trustpilot-cta,.cgai-cta,.cg-hero__button,.cg-hero__open,.cg-hero__demo,.cg-hero__login,.cg-lesson-btn,.cg-submit,.cg-trade-link),
html:root body .cg-final-cta-button{
  font-family:"Montserrat",Arial,sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}

