/* ============================================================
   MPC — Managed Pain Care · BRAND & DESIGN TOKENS
   Single source of truth. Every site page links THIS file.
   Change a value here → it changes everywhere. No page hardcodes
   its own colors, fonts, or spacing. Locked: Sept 2, 2026.
   ============================================================ */

/* Fonts: Montserrat (wordmark + headlines), Roboto (body) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* ---- BRAND BLUE (primary) + working scale ---- */
  --blue:        #1941D2;   /* primary — buttons, links, nav active, accents */
  --blue-dark:   #1233A8;   /* hover / pressed / navy partner */
  --blue-deep:   #0E2578;   /* deepest — gradient ends only */
  --blue-light:  #5B7BEE;   /* light accent, secondary highlights */
  --blue-bg:     #EBEFFD;   /* pale tint — section backgrounds, chips */

  /* ---- PAIN SCALE (never repurpose these for anything else) ---- */
  --pain-low:    #2ECC71;
  --pain-med:    #F39C12;
  --pain-high:   #E74C3C;
  --success:     #27AE60;

  /* ---- NEUTRALS / INK ---- */
  --ink:         #1C2B3A;   /* headings, primary text */
  --soft:        #5C6A8E;   /* secondary text, captions */
  --outline:     #D3D9F0;   /* borders, dividers */
  --surface:     #FFFFFF;   /* cards */
  --surface-alt: #EEF1FF;   /* alt card / subtle fill */
  --bg:          #F7F7F6;   /* page background — neutral, whisper-warm (not clinical, not beige) */

  /* ---- GRADIENT (hero bands) ---- */
  --grad-hero: linear-gradient(145deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-light) 100%);

  /* ---- TYPE ---- */
  --font-head: 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Roboto', -apple-system, 'Segoe UI', system-ui, sans-serif;

  --fs-hero:   clamp(32px, 5vw, 52px);  /* page hero title */
  --fs-h1:     clamp(28px, 4vw, 40px);
  --fs-h2:     clamp(24px, 3vw, 34px);  /* section title */
  --fs-h3:     18px;
  --fs-body:   16.5px;
  --fs-small:  14px;
  --fs-micro:  12.5px;

  --lh-tight:  1.15;
  --lh-body:   1.7;

  --fw-black:  900;
  --fw-bold:   800;
  --fw-semi:   700;
  --fw-med:    500;

  /* ---- SPACING SCALE (use these, don't invent px) ---- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;  --sp-9: 80px;

  /* ---- RADIUS ---- */
  --r-sm: 8px;   --r: 14px;   --r-lg: 24px;   --r-pill: 30px;

  /* ---- SHADOW ---- */
  --shadow:    0 2px 10px rgba(30,45,70,0.06);
  --shadow-lg: 0 8px 28px rgba(30,45,70,0.10);

  /* ---- LAYOUT ---- */
  --maxw:      820px;   /* content column on factor/detail pages */
  --maxw-wide: 1100px;  /* home / wide sections */
  --nav-h:     60px;
}

/* ============================================================
   BASE
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-head { font-family: var(--font-head); }
a { color: var(--blue); }

/* ============================================================
   NAV
   ============================================================ */
.mpc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-6);
}
.mpc-logo { font-family: var(--font-head); font-size: 20px; font-weight: var(--fw-black); color: var(--blue); letter-spacing: -1px; }
.mpc-logo .p { color: var(--pain-med); }
.mpc-nav ul { display: flex; gap: var(--sp-2); list-style: none; align-items: center; }
.mpc-nav a {
  text-decoration: none; font-family: var(--font-head); font-size: 13px; font-weight: var(--fw-med);
  color: var(--soft); padding: 6px 14px; border-radius: var(--r-pill); transition: all .2s;
}
.mpc-nav a:hover, .mpc-nav a.active { background: var(--blue-bg); color: var(--blue); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { font-family: var(--font-head); font-weight: var(--fw-semi); font-size: 15px;
  padding: 14px 28px; border-radius: var(--r-pill); border: none; cursor: pointer;
  text-decoration: none; display: inline-block; transition: all .2s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 3px 10px rgba(25,65,210,.12); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: var(--blue-bg); }
.btn-pill-cta { background: var(--blue); color: #fff !important; padding: 8px 18px; border-radius: var(--r-pill); font-weight: var(--fw-semi); }

/* ============================================================
   SECTION BANDS
   ============================================================ */
.hero {
  padding-top: var(--nav-h); min-height: 62vh; position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before { content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 72% 40%, rgba(255,255,255,.07) 0%, transparent 70%); }
.hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: var(--sp-8) var(--sp-6); text-align: center; }
.hero-title { font-size: var(--fs-hero); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: -1px; margin-bottom: var(--sp-4); }
.hero-lede  { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto; }

.band { padding: var(--sp-9) var(--sp-6); }
.band-white { background: var(--surface); }
.band-bg    { background: var(--bg); }
.band-blue  { background: var(--grad-hero); color: #fff; }
.inner { max-width: var(--maxw); margin: 0 auto; }
.inner-wide { max-width: var(--maxw-wide); margin: 0 auto; }

.eyebrow { font-family: var(--font-head); font-size: var(--fs-micro); font-weight: var(--fw-bold);
  letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: var(--sp-3); }
.title { font-family: var(--font-head); font-size: var(--fs-h2); font-weight: var(--fw-bold);
  line-height: 1.18; letter-spacing: -.5px; color: var(--ink); margin-bottom: var(--sp-5); }
.prose p { font-size: var(--fs-body); color: var(--soft); line-height: var(--lh-body); margin-bottom: var(--sp-4); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: var(--surface); border: 1.5px solid var(--outline); border-radius: var(--r); padding: var(--sp-5); }
.card-hover { transition: all .2s; }
.card-hover:hover { border-color: var(--blue-light); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ============================================================
   EVIDENCE METER (per-factor honesty component)
   Set N bars .on: Weak=1, Emerging/Early=2, Moderate=3, Strong=4-5
   ============================================================ */
.evidence { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--blue-bg); border: 1.5px solid var(--blue-light); border-radius: var(--r); padding: 20px 24px; }
.evidence-label { font-family: var(--font-head); font-size: 13px; font-weight: var(--fw-bold); color: var(--blue-dark); text-transform: uppercase; letter-spacing: 1px; }
.evidence-bars { display: flex; gap: 6px; }
.ebar { width: 42px; height: 12px; border-radius: 6px; background: var(--outline); }
.ebar.on { background: var(--blue); }
.evidence-verdict { font-family: var(--font-head); font-size: 15px; font-weight: var(--fw-semi); color: var(--blue-dark); }

/* ============================================================
   NEUTRAL DISCLAIMER (the 3-beat box: respect / honest / you decide)
   ============================================================ */
.neutral-box { background: linear-gradient(135deg, var(--blue-bg), var(--surface-alt));
  border: 1.5px solid var(--blue-light); border-radius: var(--r); padding: 28px 30px; }
.neutral-box h3 { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--blue-dark); margin-bottom: var(--sp-3); }
.neutral-box p { font-size: 15.5px; color: var(--soft); }
.neutral-box strong { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.mpc-footer { background: var(--blue-dark); color: rgba(255,255,255,.65); padding: var(--sp-6); text-align: center; font-size: var(--fs-micro); line-height: 1.7; }
.mpc-footer a { color: rgba(255,255,255,.85); text-decoration: none; }

/* ============================================================
   LOGO / MONOGRAM
   ============================================================ */
.mono-tile { width: 104px; height: 104px; border-radius: var(--r-lg); background: var(--blue);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-head); font-weight: var(--fw-black); font-size: 34px; letter-spacing: -1px;
  box-shadow: 0 5px 16px rgba(30,45,70,.14); }
.mono-word { font-family: var(--font-head); font-weight: var(--fw-black); letter-spacing: -2px; color: var(--blue); }
.mono-word .p { color: var(--pain-med); }
