/* HeyRank application design layer.
   Inter is used for product UI readability; weights are intentionally capped at 600. */
:root{
  --app-font:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --app-text:14px;
  --app-body:14px;
  --app-small:12px;
  --app-control:14px;
  --app-radius:12px;
  --app-shadow:0 8px 24px rgba(27,65,46,.055);
}

body,button,input,textarea,select,h1,h2,h3,h4,h5,h6,p,a,span,strong,b,em,small,label,li,th,td,summary,legend,time{
  font-family:var(--app-font)!important;
}

body{
  font-size:var(--app-text);
  font-weight:400;
  line-height:1.55;
  letter-spacing:0;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  font-synthesis:none;
}

h1,h2,h3,h4,h5,h6{
  margin-block-start:0;
  color:var(--ink);
  font-weight:600!important;
  letter-spacing:-.025em!important;
}
h1{font-size:28px;line-height:1.2}
h2{font-size:21px;line-height:1.3}
h3{font-size:16px;line-height:1.35}
h4{font-size:15px;line-height:1.4}
p{font-size:var(--app-body);line-height:1.6}
li,td{line-height:1.55}
strong,b{font-weight:600!important}

/* Predictable emphasis hierarchy; no synthetic heavy weights. */
:is(.shell,.auth-screen) :is(a,p,span,small,label,li,td,time){font-weight:400!important}
:is(.shell,.auth-screen) :is(h1,h2,h3,h4,h5,h6,strong,b,button,summary,th){font-weight:600!important}
:is(.shell,.auth-screen) :is(.eyebrow,.nav-label,.badge,.source-pill,[class*="pill"],[class*="status"],[class*="label"]){font-weight:600!important}

button,input,textarea,select{
  font-size:var(--app-control)!important;
  line-height:1.4;
}
button,.primary,.secondary,.mini,.open-project,.text-button{font-weight:600!important}
input,textarea,select{font-weight:400!important}
label,legend{font-size:12px!important;font-weight:500!important}
small{font-size:var(--app-small)}

.primary,.secondary,.submit,.open-project{min-height:42px}
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select{min-height:42px}
textarea{min-height:96px}

.eyebrow,.nav-label,th,.badge,.source-pill{font-weight:600!important;letter-spacing:.07em!important}
.eyebrow{font-size:11px!important;letter-spacing:.12em!important}
.badge,.source-pill,.status-badge{font-size:11px!important}

table{font-size:13px!important}
th{font-size:11px!important;line-height:1.35}
td{font-size:13px!important}

/* Shell hierarchy and persistent navigation. */
.app-topbar{position:sticky;top:0;z-index:20}
.sidebar .nav-item{min-height:46px;font-size:14px!important;font-weight:500!important}
.sidebar .nav-label{font-size:11px!important}
.workspace-chip,.global-search input,.topbar-link,.topbar-profile{font-size:13px!important}
.topbar-profile-copy strong{font-size:13px!important}
.topbar-profile-copy small{font-size:11px!important}
#workspace-header h1{font-size:28px!important}
.section-heading p:not(.eyebrow),.feature-head>div>p:last-child,.context-description{font-size:14px!important;line-height:1.6!important}
.section-heading,.feature-head{gap:22px}

/* Cards share one quiet elevation instead of page-specific heavy shadows. */
.panel,.project-card,.portfolio-overview,.client-sites-toolbar,.approval-toolbar,.approval-bulkbar,.dashboard-intelligence{
  box-shadow:var(--app-shadow);
}

/* Website cards: readable labels, values and captions with no legacy display face. */
.metric-number,.stat strong,.big-score,.client-metrics strong,.approval-summary>div strong{
  font-family:var(--app-font)!important;
  font-weight:600!important;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em!important;
}
.client-site-head{min-width:0;flex-wrap:wrap}
.client-site-identity{flex:1 1 180px;min-width:0}
.client-site-identity h3,.client-site-identity a,.card-next strong,.feature-head h2,#workspace-header h1{overflow-wrap:anywhere}
.client-site-head :is(.status-badge,.health-label){max-width:100%;white-space:normal}
.client-metrics>span{min-width:0;align-content:start}
.client-metrics small,.client-metrics strong,.client-metrics em{font-family:var(--app-font)!important}
.client-metrics small{font-size:11px!important}
.client-metrics strong{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:4px!important;font-size:24px!important;line-height:1.05!important}
.client-metrics em{max-width:100%;color:var(--muted);font-size:11px!important;font-style:normal;font-weight:400!important;letter-spacing:0!important;line-height:1.35!important;text-align:left!important;white-space:normal}
#projects-view .clients-grid .client-metrics>span{min-height:82px}

/* SEO operations: raise the small labels that previously required zooming. */
#features-view :is(.feature-head p,.advanced-seo-copy p:not(.eyebrow),.specialist-section-heading p:not(.eyebrow)){font-size:14px!important;line-height:1.6!important}
#features-view :is(.advanced-area-copy small,.advanced-seo-status span,.specialist-last-run){font-size:11px!important;line-height:1.45!important}
#features-view :is(.advanced-area-copy strong,.advanced-seo-status strong){font-size:12px!important;line-height:1.4!important}
#features-view .advanced-seo-pills span{font-size:11px!important}
#features-view .specialist-card p,#features-view .specialist-active-copy p{font-size:12px!important;line-height:1.5!important}
#features-view .rank-position{font-family:var(--app-font)!important;font-weight:600!important}

/* Project workspace evidence remains dense but readable. */
#project-detail :is(.context-description,p:not(.eyebrow)){font-size:13px;line-height:1.6}
#project-detail small{font-size:11px}
#project-detail .website-workspace-nav button{font-size:12px!important}
#project-detail .website-workspace-nav button b{font-size:10px!important}
#project-detail .website-next-action p:not(.eyebrow){font-size:13px!important}
#project-detail :is(.watcher-check-summary span,.watcher-safe-note,.watcher-evidence-intro span,.watcher-evidence-intro small){font-size:11px}
#project-detail .watcher-device-tabs button{font-size:12px!important}
#project-detail .watcher-signals article p,#project-detail .watcher-signal-link p{font-size:12px!important;line-height:1.55!important}

/* Approval workspace: decision text should be scannable without zoom. */
#fixes-view>.feature-head h2{font-size:28px!important}
#fixes-view .fix h3{font-size:17px!important}
#fixes-view .fix-findings>section p{font-size:14px!important;line-height:1.6!important}
#fixes-view .decision-stage span{font-size:13px!important;line-height:1.55!important}
#fixes-view .decision-stage strong{font-size:16px!important}
#fixes-view .fix-actions .mini{font-size:13px!important}

/* Account and billing pages use comfortable explanatory copy. */
#account-view :is(p,li),#billing-view :is(p,li),#team-view :is(p,li){font-size:13px;line-height:1.6}
#account-view small,#billing-view small,#team-view small{font-size:11px}

/* One status language everywhere: compact, readable, and never all-caps by accident. */
.status-badge{
  min-height:26px!important;
  padding:5px 9px!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1.25!important;
  letter-spacing:0!important;
  text-transform:none;
}

/* Dashboard intelligence favors legibility over squeezing three reports into a row. */
#overview-view .dashboard-intelligence-tabs button{
  min-height:58px;
  font-size:13px!important;
}
#overview-view .dashboard-intelligence-tabs button>span{font-size:13px!important;font-weight:600!important}
#overview-view .dashboard-intelligence-tabs button small{font-size:11px!important;font-weight:400!important;line-height:1.35}
#overview-view .dashboard-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
#overview-view .dashboard-widget{
  min-height:230px;
  padding:17px!important;
  border-radius:var(--app-radius)!important;
}
#overview-view .dashboard-widget>header p{font-size:11px!important;font-weight:600!important;letter-spacing:.1em!important}
#overview-view .dashboard-widget>header h3{font-size:17px!important;line-height:1.35}
#overview-view :is(.history-metric-intro,.portfolio-trend-note,.specialist-live,.widget-stat-row,.report-overview,.activity-timeline,.comparison-table){font-size:12px!important}
#overview-view :is(.history-metric-table small,.portfolio-metric-grid p,.portfolio-trend-breakdown small,.activity-timeline span,.comparison-table small){font-size:11px!important;line-height:1.45!important}
#overview-view .widget-wide{grid-column:1/-1!important}

/* Plans remain easy to compare without reducing inclusions to fine print. */
#billing-view .billing-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#billing-view .plan-card{padding:22px}
#billing-view .plan-card h3{font-size:19px!important}
#billing-view .plan-price strong{font-size:30px!important}
#billing-view .plan-card>p,#billing-view .plan-card li{font-size:13px!important}
#billing-view .plan-offer strong{font-size:13px!important}
#billing-view .plan-offer span{font-size:11px!important}

/* Visible keyboard focus is shared by navigation, tabs, cards, and controls. */
:is(a,button,input,textarea,select,summary):focus-visible{
  outline:3px solid rgba(30,107,74,.28)!important;
  outline-offset:2px!important;
}

code,pre,kbd,samp{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace!important}

@media(max-width:1100px){
  .feature-head{align-items:stretch;flex-direction:column}
  .feature-controls{width:100%}
}

@media(max-width:820px){
  h1,#workspace-header h1{font-size:25px!important}
  h2{font-size:20px}
  .section-heading p:not(.eyebrow),.feature-head>div>p:last-child,.context-description{font-size:13px!important}
  #overview-view .dashboard-widget-grid,#billing-view .billing-plans{grid-template-columns:1fr!important}
}

@media(max-width:560px){
  :root{--app-text:14px;--app-body:13px;--app-control:13px}
  .primary,.secondary,.submit,.open-project{min-height:44px}
}
