/* ============================================================
   Performance IQ - Brand foundations
   Shared tokens, type, and primitives across all deliverables
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Lato:wght@400;700&display=swap');

:root {
  /* ---- Core palette ---- */
  --violet:      #5A33E6;   /* Performance Violet - primary */
  --violet-700:  #4523B8;   /* pressed / depth */
  --violet-300:  #B9A7F4;   /* muted */
  --violet-100:  #ECE7FD;   /* tint surface */
  --violet-050:  #F6F3FE;   /* faint wash */

  --ink:     #111016;   /* near-black, slightly cool */
  --ink-700: #3A3A44;   /* strong body */
  --ink-500: #4A4958;   /* muted text — 7.5:1 on paper */
  --ink-300: #5E5E6C;   /* captions — 5.7:1 on paper (was 2.1:1, hard fail) */

  --paper:   #F5F4F0;   /* warm off-white — eliminates glare */
  --paper-2: #ECEAE5;   /* section surface */
  --paper-3: #E0DED8;   /* deeper surface */
  --line:    #CCCAC3;   /* hairlines */
  --line-2:  #BCBAB2;

  --signal:  #18A971;   /* functional "pass / verified" green */

  /* ---- Type ---- */
  --piq-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --piq-body:    'Lato', system-ui, sans-serif;
  --piq-mono:    'Lato', system-ui, sans-serif;
  --piq-code:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ---- Geometry ---- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--piq-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--piq-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---- Reusable primitives ---- */

.eyebrow {
  font-family: var(--piq-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}

.mono { font-family: var(--piq-mono); }

.btn {
  font-family: var(--piq-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

/* mark helpers */
.mark-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  border-radius: 26%;
}
