/* ============================================================
   LANG · ZH  (Simplified Chinese)
   Loaded LAST, and only on /zh/ pages.

   Archivo and Inter carry no CJK glyphs, so Chinese text would fall
   back to whatever the OS supplies — inconsistent across Windows,
   macOS and Android. Noto Sans SC is loaded on these pages and put
   in front of the Latin faces; Latin runs inside Chinese sentences
   (API, ERP, WhatsApp, numbers) still render in Inter/Archivo
   because Noto Sans SC has no glyphs it prefers for them.

   The display type also needs different metrics: the brand's tight
   negative tracking is designed for Latin and makes CJK look
   cramped, and CJK needs slightly more leading.
   ============================================================ */

body{font-family:'Noto Sans SC',Inter,system-ui,-apple-system,sans-serif}

/* --- display type: keep Archivo first for Latin, add the CJK face --- */
h1,h2,h3,
.wm,.flogo b,.stats b,.srow .nm,.tile .tn,.case .ttl,.case .res em,
.wcol h3,.step h3,.tbig blockquote,.tsmall blockquote,figcaption b,
.marq .mtrack span,.sp-band .t span,.sp-statement .big,.sp-tags span,
.sp-step h3,.sp-ncard b,.rel-card b,.gcard b,.aside-card .fh,
.page-head h1,.sp-hero h1,.sp-rotator,.ctrack i,.dhub b{
  font-family:Archivo,'Noto Sans SC',system-ui,sans-serif;
}

/* CJK does not want Latin display tracking */
h1,h2,h3,.sp-hero h1,.sp-statement .big,.page-head h1,.sp-rotator,
.marq .mtrack span,.sp-band .t span{
  letter-spacing:0;
}

/* a little more air between lines, and allow breaks anywhere a CJK run allows */
h1,h2,h3{line-height:1.28;text-wrap:normal}
.sp-hero h1{line-height:1.18}
.lead,.sec.html p,.prose p,.sp-statement p,.sp-mgrid li p{line-height:1.85}

/* Chinese runs longer per line than the Latin measure allows */
.sec.html p{max-width:38em}
.lead{max-width:34em}
.prose p{max-width:36em}
.feat-copy h2{max-width:none}
.cta-mid h2,.sec.html.cta .cta-mid h2{max-width:22ch}

/* the mono kickers have no CJK glyphs either — fall through to the CJK face
   but keep the tracking that makes them read as labels */
.kick,.mono,.crumb,.sp-eyebrow,.fh,.tlabel,.wn,.sdot,.sdur,.ix,.tc,
.case .meta,.case .tags i,.ph-stats span,.stats span,.chip{
  font-family:'Geist Mono','Noto Sans SC',monospace;
  letter-spacing:.06em;
}

/* headline sizes: CJK glyphs are full-width, so the same px reads much larger */
h1{font-size:min(clamp(30px,4.2vw,56px),11vh)}
#stage3d h2{font-size:min(clamp(24px,3.6vw,44px),10vh)}
.sec.html h2{font-size:clamp(26px,3vw,42px)}
.sp-hero h1{font-size:clamp(34px,7vw,104px)}
.sp-statement .big{font-size:clamp(24px,3.6vw,50px);max-width:22ch}
.page-head h1{font-size:clamp(28px,4.4vw,52px);max-width:22ch}
