/* Orizont typography contract
   One readable scale across product, marketing and authentication. Component
   layout stays where it is; this file only resolves type hierarchy. */
:root{
  --orz-type-caption:12px;
  --orz-type-secondary:13px;
  --orz-type-body:14px;
  --orz-type-body-mobile:15px;
  --orz-type-control:14px;
  --orz-type-card-title:16px;
  --orz-type-section:20px;
  --orz-type-page:28px;
  --orz-leading-caption:16px;
  --orz-leading-secondary:18px;
  --orz-leading-body:21px;
  --orz-leading-card-title:22px;
  --orz-leading-section:28px;
  --orz-leading-page:34px;
}

body.orz-app{font-size:var(--orz-type-body);line-height:1.5}
body.orz-app :where(button,input,select,textarea){font-family:Inter,system-ui,sans-serif}
body.orz-app :where(.clbl,.eyebrow,.rh-lbl,.rs-lbl,.chip-lbl,.o-lbl,.idx-name,.opp-mlbl,.ai-badge,.home-plan-label){
  font-size:var(--orz-type-caption)!important;line-height:var(--orz-leading-caption)!important;font-weight:600!important
}
body.orz-app :where(.pfooter,.period-note,.chart-gap-note,.ticker-afterhours,.valuation-summary,.ai-brief-source,.ai-brief-foot,.set-field-hint,.plan-income-hint,.plan-mode-sub,.plan-income-input span){
  font-size:var(--orz-type-caption)!important;line-height:var(--orz-leading-caption)!important
}
body.orz-app :where(.hero-band p,.ai-text,.ai-brief-text,.earn-ai-lead p,.ticker-research-status span,.result-sentence,.learn-inner p,.disc-box,.set-row-sub,.set-card-sub,.home-plan-ring-copy,.home-plan-metric-note){
  font-size:var(--orz-type-secondary)!important;line-height:var(--orz-leading-secondary)!important
}
body.orz-app :where(.chart-card-title,.dcf-panel-title,.earn-ai-title,.set-card-title,.idx-panel-title,.movers-head-title){
  font-size:14px!important;line-height:20px!important;font-weight:600!important
}
body.orz-app :where(.card h3,.soon-block h3,.earn-ai-lead h3,.dcf-outcome-title){
  line-height:var(--orz-leading-card-title)
}
body.orz-app :where(.ni,.tb-search input,.home-search input,.sim-search input,.earn-company-search input,.mob-menu-search input,.mob-qsearch-bar input,.mob-search-bar input){
  font-size:var(--orz-type-control)!important;line-height:20px!important
}
body.orz-app :where(.btn,.cta-btn,.set-save,.learn-btn,.ptoggle,.range-btn,.cat-tab,.ex-tab,.sim-mode-tab){
  font-size:var(--orz-type-control)!important;line-height:20px!important
}
body.orz-app :where(.ticker-price,.rh-value,.sim-hero-value,.home-wealth-primary,.home-card-headline,.chip-val,.stat-num,.idx-price,.home-summary-value,.home-mover-value,.plan-sl-val-input,.pe-result-val){
  font-variant-numeric:tabular-nums
}
body.orz-app :where(.home-card-headline){font-size:22px!important;line-height:27px!important;font-weight:700!important}
body.orz-app :where(.hero-band h1){font-size:24px!important;line-height:30px!important;font-weight:700!important}

body.orz-auth .auth-intro p{font-size:var(--orz-type-secondary)!important;line-height:var(--orz-leading-secondary)!important}
body.orz-auth :where(.field label,.switch,.divider span,.legal-consent,.auth-password-hint,.card-foot,.eye){font-size:var(--orz-type-caption)!important;line-height:var(--orz-leading-caption)!important}
body.orz-auth :where(.tab,.submit,.gbtn){font-size:var(--orz-type-control)!important;line-height:20px!important}
body.orz-auth .field input{font-size:15px!important;line-height:22px!important}

body.orz-marketing :where(.nav-links,.btn,.outcome a){font-size:var(--orz-type-control);line-height:20px}
body.orz-marketing :where(.proof-item,.story-note,.journey-label,.hero-note){font-size:var(--orz-type-caption);line-height:var(--orz-leading-caption)}
body.orz-marketing :where(.outcome p){font-size:var(--orz-type-body);line-height:var(--orz-leading-body)}

@media(max-width:768px){
  :root{--orz-type-body:var(--orz-type-body-mobile)}
  body.orz-app{font-size:var(--orz-type-body-mobile);line-height:1.5}
  body.orz-app :where(.hero-band h1){font-size:24px!important;line-height:30px!important}
  body.orz-app :where(.mob-qsearch-bar input,.mob-search-bar input,.mob-menu-search input,.home-search input,.sim-search input,.earn-company-search input){
    font-size:16px!important;line-height:24px!important
  }
  body.orz-app :where(.set-field input,.plan-numwrap input,.plan-income-input input,.ob-income-row input,.wl-picker-form input,.pf-search input){
    font-size:16px!important;line-height:24px!important
  }
  /* Every remaining text field: 16px on a phone stops iOS zooming the page on focus. */
  body.orz-app :where(#sb-inp,#plan-adv-savrate,#plan-adv-oarate,#plan-adv-continv,#port-f-ticker-search,#port-f-shares,#port-f-price,#wl2-search-inp,#cmp-search,#qa-inv-search,#qa-inv-shares,#qa-inv-price,#qa-sav-amt,#qa-debt-amt,#qa-sell-shares,#qa-sell-price){
    font-size:16px!important;line-height:24px!important
  }
  body.orz-auth .field input{font-size:16px!important;line-height:24px!important}
  body.orz-auth .auth-intro h1{font-size:24px!important;line-height:30px!important}
  body.orz-marketing .hero-copy>p,body.orz-marketing .section-head p{font-size:16px;line-height:24px}
}
