/* Mereden type, taken from the design system zip (tokens.css, "Type").
   Inter for everything, Geist Mono only for code and step numbers.
   Hierarchy by size, not weight: large type is light (300 to 400), body is 400, UI labels are 500.
   Only type changes here: family, size, weight, line height and tracking. Layout and colors stay as they are. */

:root {
  --t-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-sans: var(--t-sans);
  --font-display: var(--t-sans);
}

body {
  font-family: var(--t-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11";
}
p, li { text-wrap: pretty; }

/* The old rule set every h1/h2 to 500 with -0.04em. Large type is light now. */
h1, h2, .apex-title, .insights-title, .app-page-title {
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance;
}

/* ---------- Homepage ---------- */
/* display-xl: 64 / 1.02, 300, -0.035em (38px on phones) */
.hl-hero h1 {
  font-size: clamp(38px, 4.6vw, 64px) !important;
  line-height: 1.02 !important;
  font-weight: 300 !important;
  letter-spacing: -0.035em !important;
}
.hl-hero-lead { font-size: 18px; line-height: 1.6; }

/* display: 48 / 1.05, 300, -0.03em for homepage section titles */
.hl-h2, .page-landing .roles-head h2, .hl-cta h2 {
  font-size: clamp(32px, 3.4vw, 48px) !important;
  line-height: 1.05 !important;
  font-weight: 300 !important;
  letter-spacing: -0.03em !important;
}
.hl-statement #hl-lit {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.hl-sub, .hl-thesis-note, .hl-cta p { font-size: 18px; line-height: 1.6; }

/* h3: 24 / 1.25, 400 for panel titles */
.hl-way h3, .hl-compare-card h3, .hl-domain h3, .ledger-item h3 {
  font-size: 24px !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
}
/* step titles and role names: h4, 18 / 1.4, 500 */
.hl-step h3 { font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -0.005em; }
.page-landing .role-card h3, .role-card h3, .opp-list-card h3, .opp-card h3 {
  font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -0.005em;
}
/* step numbers in mono */
.hl-step-num, .ledger-item .stage, .card-num {
  font-family: var(--t-mono) !important;
  font-size: 12.5px !important;
  font-weight: 500;
  letter-spacing: .04em !important;
}
.hl-counter strong { font-weight: 300; letter-spacing: -0.03em; }

/* the eyebrow: 12 / 16, 500, +0.14em, uppercase. Only above a title. */
.hl-eyebrow, .eyebrow, .hl-way-tag, .hl-compare-tag {
  font-family: var(--t-sans);
  font-size: 12px !important;
  line-height: 1.33;
  font-weight: 500 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}

/* code inside the live windows */
.hl-live pre, .hl-live code, .hl-demo-q, .hl-model b, .hl-domain-glyph,
[class*="ways-live"] pre, .hl-code {
  font-family: var(--t-mono) !important;
}

/* ---------- Inner pages ---------- */
/* h1: 44 / 1.08, 400, -0.025em (32px on phones) */
.page-hero h1, .page-landing .hero-landing h1, .app-page-title, .apply-title-row h1, .profile-identity h1 {
  font-size: clamp(32px, 3.6vw, 44px) !important;
  line-height: 1.08 !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
}
/* h2: 32 / 1.15, 400, -0.02em */
.section h2, .privacy-doc h2, .apex-title {
  font-size: clamp(26px, 2.6vw, 32px) !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
.privacy-doc h2 { font-size: 24px !important; line-height: 1.25 !important; }
.privacy-doc h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }
/* card titles */
.card h3, .hp-card h3, .task-card h4, .site-expert-card h3, .empty-state h3 {
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
}
.card h3, .hp-card h3 { font-size: 20px !important; line-height: 1.3 !important; }

/* body-lg for leads: 18 / 1.6 */
.hero-sub, .section-lead, .app-page-lead, .page-landing .hero-landing .hero-sub { font-size: 18px; line-height: 1.6; }
/* body: 16 / 1.6 ; body-sm for cards: 14 / 1.55 */
.privacy-doc p, .privacy-doc li, .ledger-item p { font-size: 16px; line-height: 1.6; }
.card p, .hp-card p, .task-card p, .opp-card p { font-size: 14px; line-height: 1.55; }

/* ui: 14 / 20, 500 for buttons, menus and links in the bar */
.btn, .hl-btn, .nav-links a, .nav-cta, .nav-login, .auth-btn, .opp-tab, .dash-tab, .app-nav-item, .apply-pill {
  font-family: var(--t-sans);
  font-weight: 500 !important;
  letter-spacing: 0;
}
.btn, .hl-btn, .nav-links a, .nav-cta, .nav-login { font-size: 14px; }

/* form labels: sentence case UI labels, not uppercase */
.form-group label, .apply-form-card label, .auth-form label {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4;
}
.form-group input, .form-group select, .form-group textarea { font-family: var(--t-sans); font-size: 15px; }

/* caption: 13 / 1.5, +0.01em for meta lines */
.field-note, .form-note, .role-card-meta, .opp-hired, .footer-bottom, .apply-meta-item {
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .01em;
}

/* footer headings: sentence case, 14 / 500 */
.footer-grid-5 h4, .footer-cols h4 {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* numbers line up */
.role-card-rate, .opp-rate, .apply-rate, .hl-counter, .hl-stat strong, .seal-panel-row .v { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .hl-hero h1 { font-size: 38px !important; }
  .page-hero h1, .app-page-title { font-size: 32px !important; }
}
