/* HRStak shared design system.
   Source of truth: the homepage (index.html) AI HR Workspace design.
   Inner pages reach this through @import in inner.css / article.css,
   or a direct link on bespoke pages. Tokens here mirror the homepage
   style block exactly; if the homepage palette changes, change it here too. */

:root {
  --paper: #fdfdfb;
  --ink: #111827;
  --muted: #667085;
  --line: #e1e5eb;
  --violet: #6941c6;
  --violet2: #8b5cf6;
  --lav: #f0eaff;
  --mint: #d9fae8;
  --blue: #dfeaff;

  /* Article format elements (article.css) read these. */
  --accent: #6941c6;
  --stat-bg: rgba(105, 65, 198, 0.06);
  --stat-border: rgba(105, 65, 198, 0.15);
  --tldr-bg: #f5f1ff;
  --tldr-border: #d9cdf5;
  --takeaway-bg: rgba(105, 65, 198, 0.03);
  --timeline-line: rgba(105, 65, 198, 0.2);
  --chart-border: #e1e5eb;
  --chart-header-bg: #f8f7fc;
  --chart-hover: rgba(105, 65, 198, 0.04);
  --text-muted: #667085;
  --text-body: #1f2937;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { width: min(1200px, calc(100% - 44px)); margin: auto; }

/* ── Header: components.js injects the homepage's exact markup ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(225, 229, 235, 0.78);
  background: rgba(253, 253, 251, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -0.05em; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #6941c6, #8b5cf6);
  font-size: 11px;
  letter-spacing: -0.05em;
  box-shadow: 0 6px 18px #6941c63b;
}
.brand span:last-child em { color: var(--violet); font-style: normal; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: 11px; font-weight: 750; }
.desktop-nav a, .header-actions a { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; }
.sign-in { color: #475467; padding: 10px 5px; }
.nav-cta { color: white; background: var(--ink); padding: 12px 17px; border-radius: 999px; }

/* Legacy aliases for any page still carrying the old injected classes. */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #6941c6, #8b5cf6); font-size: 11px; font-weight: 800; }
.logo-text { font-weight: 900; font-size: 20px; letter-spacing: -0.05em; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--violet); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Buttons: match the homepage .btn pill ── */
.cta-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: white;
  background: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #11182716; }
.btn.secondary { color: var(--ink); background: transparent; }

/* ── Article typography (pages with no bespoke layout) ── */
main, article, .article-body, .article-content { position: relative; z-index: 1; }
article, .article-body, .article-content {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
article h1, .article-body h1, .article-content h1 {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
article h2, .article-body h2, .article-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin: 40px 0 14px;
}
article h3, .article-body h3, .article-content h3 { font-size: 19px; margin: 28px 0 10px; }
article p, .article-body p, .article-content p { line-height: 1.7; }
article a, .article-body a, .article-content a { color: var(--violet); }
article ul, article ol { line-height: 1.7; }
article table { border-collapse: collapse; width: 100%; }

/* ── Footer: the homepage's dark footer, injected by components.js ── */
.site-footer { padding: 60px 0 35px; background: #111827; color: white; }
.site-footer .brand { color: white; }
.site-footer .brand span:last-child em { color: #c4b5fd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 55px; }
.footer-brand p { max-width: 320px; color: #98a2b3; font-size: 12px; line-height: 1.7; }
.footer-col h3 { margin: 0 0 17px; color: #c4b5fd; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a { display: block; margin: 11px 0; color: #aab3c1; text-decoration: none; font-size: 11px; }
.footer-col a:hover { color: white; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #344054; display: flex; justify-content: space-between; color: #667085; font-size: 9px; }

@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 70px; }
  .sign-in { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

