/*
 TOALDO WEBSITE V24.2 — HOME TYPOGRAPHY SYSTEM / SITEWIDE
 Canonical visual reference: TOALDO Intelligence homepage.
 Website-only typography overlay. No layout routing, auth, payment, Kimi, OpenClaw or Worker logic.
*/
:root{
  --td242-font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --td242-font-mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  --td242-display-weight:470;
  --td242-heading-weight:480;
  --td242-title-weight:520;
  --td242-copy-weight:400;
  --td242-label-weight:500;
  --td242-text:#eef1f3;
  --td242-body:#98a2ae;
  --td242-muted:#727c89;
  --td242-faint:#59636f;
  --td242-accent:#d8ff65;
  --td242-body-size:15px;
  --td242-body-leading:1.72;
  --td242-ui-size:13px;
  --td242-small-size:12px;
  --td242-label-size:11px;
  --td242-label-tracking:.14em;
  --td242-h1-min:38px;
  --td242-h1-fluid:4.8vw;
  --td242-h1-max:58px;
  --td242-h2-min:29px;
  --td242-h2-fluid:3.6vw;
  --td242-h2-max:44px;
  --td242-h3-size:21px;
}

/* Explicit page profiles written by the V24.2 installer. */
html[data-toaldo-typography="home"],
html[data-toaldo-typography="marketing"]{
  --td242-h1-min:38px;--td242-h1-fluid:4.8vw;--td242-h1-max:58px;
  --td242-h2-min:30px;--td242-h2-fluid:3.6vw;--td242-h2-max:44px;
  --td242-h3-size:21px;
}
html[data-toaldo-typography="standard"]{
  --td242-h1-min:36px;--td242-h1-fluid:4.2vw;--td242-h1-max:50px;
  --td242-h2-min:28px;--td242-h2-fluid:3.1vw;--td242-h2-max:38px;
  --td242-h3-size:20px;
}
html[data-toaldo-typography="support"],
html[data-toaldo-typography="account"],
html[data-toaldo-typography="legal"]{
  --td242-h1-min:32px;--td242-h1-fluid:3.6vw;--td242-h1-max:40px;
  --td242-h2-min:25px;--td242-h2-fluid:2.8vw;--td242-h2-max:32px;
  --td242-h3-size:19px;
}

html[data-toaldo-typography]{
  font-family:var(--td242-font-sans);
  font-synthesis:none;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
html[data-toaldo-typography] body{
  font-family:var(--td242-font-sans)!important;
  font-size:var(--td242-body-size);
  font-weight:var(--td242-copy-weight);
  line-height:1.6;
  letter-spacing:0;
  font-kerning:normal;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
html[data-toaldo-typography] :where(button,input,textarea,select){font-family:var(--td242-font-sans)!important}
html[data-toaldo-typography] :where(code,pre,kbd,samp,.v24-api-endpoint){font-family:var(--td242-font-mono)!important}

/* Homepage display language: low weight, tight tracking, compact leading. */
html[data-toaldo-typography] body main h1{
  font-family:var(--td242-font-sans)!important;
  font-size:clamp(var(--td242-h1-min),var(--td242-h1-fluid),var(--td242-h1-max))!important;
  font-weight:var(--td242-display-weight)!important;
  line-height:1.04!important;
  letter-spacing:-.045em!important;
  text-wrap:balance;
}
html[data-toaldo-typography] body main h2{
  font-family:var(--td242-font-sans)!important;
  font-size:clamp(var(--td242-h2-min),var(--td242-h2-fluid),var(--td242-h2-max))!important;
  font-weight:var(--td242-heading-weight)!important;
  line-height:1.10!important;
  letter-spacing:-.035em!important;
  text-wrap:balance;
}
html[data-toaldo-typography] body main h3{
  font-family:var(--td242-font-sans)!important;
  font-size:var(--td242-h3-size)!important;
  font-weight:var(--td242-title-weight)!important;
  line-height:1.28!important;
  letter-spacing:-.022em!important;
}
html[data-toaldo-typography] body main h4{
  font-family:var(--td242-font-sans)!important;
  font-size:16px!important;
  font-weight:var(--td242-title-weight)!important;
  line-height:1.35!important;
  letter-spacing:-.012em!important;
}

/* Homepage copy rhythm. */
html[data-toaldo-typography] body main p,
html[data-toaldo-typography] body main li,
html[data-toaldo-typography] body main dd{
  font-family:var(--td242-font-sans)!important;
  font-size:var(--td242-body-size)!important;
  font-weight:var(--td242-copy-weight)!important;
  line-height:var(--td242-body-leading)!important;
  letter-spacing:0!important;
}
html[data-toaldo-typography] body main small{
  font-size:var(--td242-small-size)!important;
  font-weight:var(--td242-copy-weight)!important;
  line-height:1.58!important;
  letter-spacing:.01em!important;
}
html[data-toaldo-typography] body main strong{font-weight:560}

/* Homepage micro-label / eyebrow language. */
html[data-toaldo-typography] body main :is(
  .v24-kicker,.platform-kicker,.services-kicker,.cases-kicker,.route-eyebrow,.section-index,
  .foundation-kicker,.panel-label,.inspector-label,.command-eyebrow,.v22-turn-label,.v22-assistant-meta
){
  font-family:var(--td242-font-sans)!important;
  font-size:var(--td242-label-size)!important;
  font-weight:var(--td242-label-weight)!important;
  line-height:1.25!important;
  letter-spacing:var(--td242-label-tracking)!important;
}

/* Lead paragraphs mirror the homepage: slightly larger, muted, spacious. */
html[data-toaldo-typography] body main :is(
  .lead,.v24-lead,.v24-section-intro,
  .platform-hero-copy>p,.services-hero-copy>p,.cases-hero-copy>p,.enterprise-hero-copy>p,.partner-hero-copy>p,.about-hero-copy>p,
  .v233-hero>p,.v234-hero>p,.v235-hero>p,.v236-brand-hero>p,.v237-brand-hero>p
){
  font-size:16px!important;
  font-weight:var(--td242-copy-weight)!important;
  line-height:1.72!important;
  letter-spacing:0!important;
  color:var(--td242-body)!important;
}

/* Navigation and module shells: same measured UI typography as the homepage header. */
html[data-toaldo-typography] body :is(
  .v241-global-nav a,.v241-header-actions a,.v241-module-actions a,
  header nav a,aside nav a,.account-sidebar nav a
){
  font-family:var(--td242-font-sans)!important;
  font-size:var(--td242-ui-size)!important;
  font-weight:450!important;
  line-height:1.2!important;
  letter-spacing:.02em!important;
}
html[data-toaldo-typography] body :is(.v241-brand,.v22-brand strong,.account-sidebar-brand>span){
  font-family:var(--td242-font-sans)!important;
  font-weight:650!important;
  letter-spacing:.11em!important;
}
html[data-toaldo-typography] body :is(.v241-brand small,.v22-brand span,.account-sidebar-brand>small){
  font-family:var(--td242-font-sans)!important;
  font-size:10px!important;
  font-weight:500!important;
  letter-spacing:.16em!important;
}

/* Controls: homepage composer-inspired, never oversized. */
html[data-toaldo-typography] body :is(button,[role="button"],input,select,textarea,summary){
  font-family:var(--td242-font-sans)!important;
  font-weight:450!important;
}
html[data-toaldo-typography] body main :is(button,[role="button"],select){font-size:13px!important;letter-spacing:0!important}
html[data-toaldo-typography] body main :is(input,textarea){font-size:15px!important;line-height:1.55!important;letter-spacing:0!important}
html[data-toaldo-typography] body main :is(input,textarea)::placeholder{font-weight:400!important;letter-spacing:0!important}

/* Preserve the homepage title exactly as the visual master. */
html[data-toaldo-typography="home"] body .v22-empty-state h1{
  font-size:clamp(38px,4.8vw,58px)!important;
  line-height:1.04!important;
  font-weight:470!important;
  letter-spacing:-.045em!important;
}
html[data-toaldo-typography="home"] body .v22-empty-state>p{
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:500!important;
  letter-spacing:.18em!important;
}
html[data-toaldo-typography="home"] body .v22-composer textarea{font-size:15px!important;line-height:1.55!important}
html[data-toaldo-typography="home"] body .v22-prompt-examples button{font-size:13px!important;font-weight:450!important}

/* V24/V24.1 standalone pages previously had a heavier 560 heading system. */
html[data-toaldo-typography] body .v24-page h1{font-weight:var(--td242-display-weight)!important}
html[data-toaldo-typography] body .v24-page h2{font-weight:var(--td242-heading-weight)!important}
html[data-toaldo-typography] body .v24-page h3{font-weight:var(--td242-title-weight)!important}
html[data-toaldo-typography] body .v24-card p{font-size:14.5px!important;line-height:1.72!important}
html[data-toaldo-typography] body .v24-card small{font-size:12px!important;line-height:1.58!important}
html[data-toaldo-typography] body .v24-btn{font-size:13px!important;font-weight:520!important;letter-spacing:0!important}
html[data-toaldo-typography] body .v24-story-emphasis{font-size:22px!important;font-weight:470!important;line-height:1.5!important;letter-spacing:-.02em!important}

/* Tables, details, metadata and dense operational pages. */
html[data-toaldo-typography] body main :is(table,td,th,dt){font-family:var(--td242-font-sans)!important}
html[data-toaldo-typography] body main :is(table,td,th){font-size:13px!important;line-height:1.55!important}
html[data-toaldo-typography] body main th{font-weight:550!important;letter-spacing:.01em!important}
html[data-toaldo-typography] body main :is(.v24-meta,.v24-footer-note,.v24-api-security){font-size:12.5px!important;line-height:1.65!important;letter-spacing:0!important}
html[data-toaldo-typography] body main :is(pre,code,.v24-api-endpoint){font-size:12.5px!important;line-height:1.65!important;letter-spacing:0!important}

/* Support/account/legal pages stay compact: user requested no giant utility-page headlines. */
html[data-toaldo-typography="support"] body main :is(.hero,.support-hero,.help-hero),
html[data-toaldo-typography="account"] body main :is(.hero,.account-hero),
html[data-toaldo-typography="legal"] body main :is(.hero,.legal-hero){padding-top:min(48px,7vw)!important;padding-bottom:min(48px,7vw)!important}

/* Do not let icon-font/svg utility elements inherit display tracking. */
html[data-toaldo-typography] body :where(svg,[aria-hidden="true"]){letter-spacing:normal}

@media(max-width:760px){
  :root{--td242-body-size:14.5px;--td242-ui-size:12.5px;--td242-small-size:11.5px;--td242-label-size:10.5px}
  html[data-toaldo-typography="home"],html[data-toaldo-typography="marketing"]{
    --td242-h1-min:36px;--td242-h1-fluid:10vw;--td242-h1-max:42px;
    --td242-h2-min:27px;--td242-h2-fluid:7vw;--td242-h2-max:32px;--td242-h3-size:19px;
  }
  html[data-toaldo-typography="standard"]{
    --td242-h1-min:34px;--td242-h1-fluid:9vw;--td242-h1-max:40px;
    --td242-h2-min:26px;--td242-h2-fluid:6.8vw;--td242-h2-max:31px;--td242-h3-size:18px;
  }
  html[data-toaldo-typography="support"],html[data-toaldo-typography="account"],html[data-toaldo-typography="legal"]{
    --td242-h1-min:30px;--td242-h1-fluid:8.4vw;--td242-h1-max:36px;
    --td242-h2-min:24px;--td242-h2-fluid:6.2vw;--td242-h2-max:29px;--td242-h3-size:18px;
  }
  html[data-toaldo-typography] body main :is(.lead,.v24-lead,.v24-section-intro,.platform-hero-copy>p,.services-hero-copy>p,.cases-hero-copy>p,.enterprise-hero-copy>p,.partner-hero-copy>p,.about-hero-copy>p){font-size:15px!important}
  html[data-toaldo-typography="home"] body .v22-empty-state h1{font-size:clamp(36px,10vw,42px)!important}
}
