/* Site-wide typography standard, loaded after page-specific styles. */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) {
  --site-font: "MS UI Gothic", "MS PGothic", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans JP",
    "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-family: var(--site-font);
  color: #4c5246;
  --tier-label: 9px;
  --tier-title: 13px;
  --tier-sub: 10px;
}

/* H1 */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h1 {
  margin: 0 !important;
  color: #1f261d !important;
  font-family: var(--site-font) !important;
  font-size: clamp(44px, 5.2vw, 72px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.04em !important;
}

/* H2 */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h2 {
  margin: 0 0 16px !important;
  color: #1f261d !important;
  font-family: var(--site-font) !important;
  font-size: clamp(28px, 2.8vw, 40px) !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  letter-spacing: -0.03em !important;
}

/* H3 */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h3 {
  margin: 0 0 10px !important;
  color: #20271e !important;
  font-family: var(--site-font) !important;
  font-size: clamp(18px, 1.4vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.02em !important;
}

/* Main body copy */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page)
  :is(
    .top-lead,
    .top-snapshot-text,
    .top-section-head > p:last-child,
    .top-why__grid p,
    .top-roadmap__grid p,
    .top-opportunity__grid p,
    .top-model > p:not(.top-model__sub):not(.top-model__phase),
    .top-support__grid p,
    .about-lead,
    .about-overview > p:not(.about-eyebrow),
    .about-block p,
    .about-synergy > p:not(.about-eyebrow),
    .about-cta > p:not(.about-eyebrow),
    .popular-lead,
    .popular-section-head > p:last-child,
    .popular-why__grid p,
    .popular-card__lead,
    .popular-cta p:not(.popular-kicker),
    .company-lead,
    .company-section-head > p:last-child,
    .company-row dd,
    .company-service p,
    .company-strength p,
    .company-history dd,
    .company-cta p:not(.company-kicker),
    .contact-lead,
    .contact-success p,
    .platform-lead,
    .platform-section-head > p:last-child,
    .platform-advantage p,
    .platform-traffic-card p,
    .platform-funnel-note,
    .platform-start p,
    .platform-cta p:not(.platform-kicker),
    .detail-lead,
    .detail-section__head p,
    .detail-feature p,
    .detail-insight p,
    .detail-cta p:not(.detail-kicker),
    .detail-radar-note
  ) {
  color: #4c5246 !important;
  font-family: var(--site-font) !important;
  font-size: 15.5px !important;
  font-weight: 300 !important;
  line-height: 2.05 !important;
}

/* Keep dark-band body copy light */
:is(.about-page, .popular-page, .company-page, .platform-page, .platform-detail-page)
  :is(.top-cta, .about-synergy, .popular-cta, .company-cta, .platform-cta, .detail-cta) p:not([class*="kicker"]) {
  color: rgba(247, 243, 232, 0.7) !important;
}

:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page)
  :is(.top-cta, .about-synergy, .popular-cta, .company-cta, .platform-cta, .detail-cta) h2 {
  color: #f7f3e8 !important;
}

/* Title-to-body spacing */
:is(.top-page, .about-page, .popular-page, .company-page, .platform-page, .platform-detail-page)
  :is(.top-kicker, .about-kicker, .popular-kicker, .company-kicker, .platform-kicker, .detail-kicker) {
  margin-bottom: 16px;
}

:is(.top-page, .about-page, .popular-page, .company-page, .platform-page, .platform-detail-page)
  :is(.top-lead, .about-lead, .popular-lead, .company-lead, .platform-lead, .detail-lead) {
  margin-top: 24px;
}

:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page)
  :is(.top-section-head, .about-overview, .popular-section-head, .company-section-head, .platform-section-head, .detail-section__head)
  > p:last-child {
  margin-top: 16px;
}

/* Standard page padding */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page) .page-main {
  padding-top: clamp(30px, 4.5vw, 64px) !important;
  padding-left: clamp(20px, 5vw, 72px) !important;
  padding-right: clamp(20px, 5vw, 72px) !important;
}

@media (max-width: 900px) {
  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h1 {
    font-size: clamp(40px, 6vw, 56px) !important;
  }

  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h2 {
    font-size: clamp(28px, 4.2vw, 36px) !important;
  }
}

@media (max-width: 640px) {
  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h1 {
    font-size: clamp(34px, 9vw, 44px) !important;
    line-height: 1.16 !important;
  }

  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h2 {
    font-size: clamp(26px, 7.2vw, 32px) !important;
  }

  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page) h3 {
    font-size: 18px !important;
  }

  :is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page)
    :is(
      .top-lead,
      .top-snapshot-text,
      .top-section-head > p:last-child,
      .about-lead,
      .about-overview > p:not(.about-eyebrow),
      .about-block p,
      .popular-lead,
      .popular-section-head > p:last-child,
      .company-lead,
      .company-section-head > p:last-child,
      .contact-lead,
      .platform-lead,
      .platform-section-head > p:last-child,
      .detail-lead,
      .detail-section__head p
    ) {
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.95 !important;
  }
}


/* About light CTA remains dark-on-light */
.about-page .about-cta h2 {
  color: #1f261d !important;
}

.about-page .about-cta p:not([class*=kicker]) {
  color: #4c5246 !important;
}

/* About dark synergy body copy */
.about-page .about-synergy > p:last-child {
  color: rgba(247, 243, 232, 0.72) !important;
}

/* Higher-specificity dark-band body copy */
.about-page .about-synergy > p:last-child:not(.about-eyebrow) {
  color: rgba(247, 243, 232, 0.72) !important;
}

/* About bullet lists use the standard body scale */
.about-page .about-list li {
  color: #4c5246 !important;
  font-family: var(--site-font) !important;
  font-size: 15.5px !important;
  font-weight: 300 !important;
  line-height: 1.8 !important;
}

/* Company CTA body copy on dark background */
.company-page .company-cta p:not(.company-kicker) {
  color: rgba(247, 243, 232, 0.72) !important;
}

/* Category detail typography */
.popular-page .popular-reasons h4 {
  color: #20271e !important;
  font-family: var(--site-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

.popular-page .popular-reasons li {
  color: #4c5246 !important;
  font-family: var(--site-font) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

.popular-page .popular-channel {
  color: #4c5246 !important;
  font-family: var(--site-font) !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.popular-page .popular-caution {
  color: rgba(43, 51, 38, 0.55) !important;
  font-family: var(--site-font) !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
}

/* Simplified Chinese company names and addresses */
:root {
  --font-zh: "Microsoft YaHei", "PingFang SC", "Noto Sans SC",
    "Hiragino Sans GB", "Yu Gothic", sans-serif;
}

[lang="zh-CN"] {
  font-family: var(--font-zh) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* Higher-specificity Chinese company text */
.company-page .company-row dd[lang="zh-CN"],
.company-page .company-row dd.company-name[lang="zh-CN"],
.top-page .top-cta__meta span[lang="zh-CN"],
.contact-page .contact-side dd[lang="zh-CN"] {
  font-family: var(--font-zh) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* Unified supporting-note scale */
:is(.top-page, .about-page, .popular-page, .company-page, .contact-page, .platform-page, .platform-detail-page)
  :is(.page-notes p, .top-note, .top-panel__note, .top-platforms__note, .top-snapshot-note,
      .top-micro, .company-note, .popular-note, .popular-panel__note, .popular-caution,
      .platform-note, .detail-chart-note, .contact-side__note) {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: #6f7568 !important;
}

.top-platforms__lead span {
  font-size: 13px;
  line-height: 1.7;
}
