/* ═══════════════════════════════════════════════════════
   Checkmating Alzheimer's — Shared Design System v5
   Plus Jakarta Sans · palette: #e0ddff / #cac4fe / #9c91ff
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #ffffff;
  --wash:      #e0ddff;                    /* main light purple */
  --wash-40:   rgba(224,221,255,.40);      /* soft tint of wash */
  --wash-65:   rgba(224,221,255,.65);
  --ink:       #111111;
  --ink-2:     #45464f;
  --ink-3:     #7a7b85;
  --border:    #cac4fe;
  --border-soft: rgba(202,196,254,.55);
  --acc:       #9c91ff;                    /* accent purple */
  --acc-ink:   #6f63e8;                    /* accent, only for small text on white (contrast) */
  --accdim:    rgba(156,145,255,.14);

  --f: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --r:  10px;
  --rl: 18px;
  --rp: 999px;
  --shadow:   0 1px 3px rgba(17,17,17,.05);
  --shadow-2: 0 14px 40px -12px rgba(17,17,17,.14);
  --navh: 68px;

  /* Legacy aliases (older per-page blocks) */
  --surface: #e0ddff; --surface2: #cac4fe; --acclt: #e0ddff; --acc2: #cac4fe;
  --paper: #ffffff; --paper-warm: #e0ddff; --rule: #cac4fe;
  --accent: #9c91ff; --accent-lt: #e0ddff; --white: #fff;
  --purple: #9c91ff; --purple-dark: #6f63e8; --purple-deep: #6f63e8;
  --purple-light: #cac4fe; --purple-pale: rgba(224,221,255,.4);
  --purple-mist: #e0ddff; --purple-soft: rgba(224,221,255,.4);
  --text-dark: #111111; --text-body: #45464f; --text-light: #7a7b85;
  --shadow-hover: 0 14px 40px -12px rgba(17,17,17,.14);
  --radius: 10px; --radius-sm: 7px; --radius-pill: 999px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-y: scroll; scrollbar-width: thin; scrollbar-color: rgba(156,145,255,.45) transparent; }
body {
  font-family: var(--f);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--navh);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wash); color: var(--ink); }
*:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.skip { position: absolute; top: -100%; left: 1rem; background: var(--ink); color: #fff; padding: .45rem 1rem; font-size: .8rem; font-weight: 600; z-index: 999; border-radius: 0 0 var(--r) var(--r); }
.skip:focus { top: 0; }

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; }
p  { color: var(--ink-2); }

.eyebrow, .tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc-ink); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--acc); border-radius: 2px; }
.tag { background: var(--wash); color: var(--acc-ink); padding: .34rem 1rem; border-radius: var(--rp); letter-spacing: .1em; font-size: .68rem; gap: 0; }

.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.75; color: var(--ink-2); max-width: 60ch; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3.5rem); }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-wash { background: linear-gradient(180deg, var(--wash-40), rgba(224,221,255,.12)); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: .8rem; }
.section-head p { color: var(--ink-3); font-size: 1.02rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--f); font-size: .875rem; font-weight: 700; letter-spacing: .005em;
  padding: .8rem 1.75rem; border-radius: var(--rp); cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .18s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--acc); color: #fff; border-color: var(--acc); box-shadow: 0 6px 18px -6px rgba(156,145,255,.55); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--wash); border-color: var(--wash); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-lg { padding: .95rem 2.1rem; font-size: .95rem; }

/* ═══ NAVIGATION ═══ */
.snav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}
.nwrap {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--navh); gap: 2rem;
}
.nlogo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.nlogo img { height: 40px; width: 40px; }
.nlogt { font-size: 1.05rem; font-weight: 800; line-height: 1.2; color: var(--ink); letter-spacing: -.02em; }
.nlogt span { color: var(--acc); }
.nlinks { display: flex; gap: 1.9rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.nlinks a { transition: color .15s; padding: .3rem 0; }
.nlinks a:hover, .nlinks a.active { color: var(--acc-ink); }
.ncta {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 700;
  padding: .6rem 1.4rem; background: var(--acc); color: #fff;
  border-radius: var(--rp); border: none; cursor: pointer;
  transition: background .18s, transform .18s; white-space: nowrap;
}
.ncta:hover { background: var(--ink); transform: translateY(-1px); }
.nham { display: none; background: none; border: none; cursor: pointer; padding: .35rem; color: var(--ink); }
.mmenu { display: none; flex-direction: column; background: var(--bg); border-top: 1px solid var(--border-soft); }
.mmenu.open { display: flex; }
.mmenu a {
  display: block; padding: .9rem clamp(1.5rem, 5vw, 3.5rem);
  font-size: 1rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--border-soft); transition: color .15s;
}
.mmenu a:hover, .mmenu a.active { color: var(--acc-ink); }
.mmenu .mcta {
  margin: .85rem clamp(1.5rem, 5vw, 3.5rem) 1.1rem; display: block; text-align: center;
  padding: .85rem; background: var(--acc); color: #fff; font-weight: 700;
  font-size: .95rem; border-radius: var(--rp); border-bottom: none;
}
@media (max-width: 880px) { .nlinks, .ncta { display: none; } .nham { display: block; } }

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  background:
    radial-gradient(900px 420px at 15% -10%, var(--wash-65), transparent 65%),
    radial-gradient(700px 380px at 90% 0%, var(--wash-40), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}
.page-hero-content { position: relative; max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero p { color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.75; max-width: 580px; margin: 0 auto; }
.hero-meta-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.9rem; }
.meta-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .76rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--border-soft);
  padding: .42rem 1rem; border-radius: var(--rp); box-shadow: var(--shadow);
}
.meta-chip svg { width: 13px; height: 13px; color: var(--acc); flex-shrink: 0; }

/* ═══ CARDS ═══ */
.card {
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--rl); padding: 2rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
a.card, .card.hoverable { cursor: pointer; }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--border); }
.card-icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; background: var(--wash); border-radius: 12px; color: var(--acc-ink);
}
.card-icon svg { width: 21px; height: 21px; }

/* Numbered program card */
.num-ghost { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--border); letter-spacing: -.04em; margin-bottom: 1rem; }

/* Check list */
.check-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 1.1rem 0 1.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--ink-2); }
.check-list li::before {
  content: ''; flex-shrink: 0; width: 17px; height: 17px; margin-top: .18rem; border-radius: 50%;
  background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f63e8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}

/* ═══ STAT BAND ═══ */
.statband { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: #fff; }
.statband-in {
  max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: clamp(2rem, 3.5vw, 3rem) 0; border-right: 1px solid var(--border-soft); padding-right: 1.5rem; }
.stat:last-child { border-right: none; }
.stat:not(:first-child) { padding-left: clamp(1.5rem, 3vw, 2.75rem); }
.stat-n { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--ink); margin-bottom: .5rem; }
.stat-n.ac { color: var(--acc); }
.stat-l { font-size: .82rem; font-weight: 500; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 780px) {
  .statband-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
  .stat:nth-child(3) { padding-left: 0; }
}

/* ═══ TIMELINE ═══ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--acc), var(--wash)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -2rem; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--wash); }
.tl-year { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-ink); margin-bottom: .35rem; }
.tl-item h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.tl-item p { font-size: .9rem; color: var(--ink-3); line-height: 1.65; }

/* ═══ QUOTE ═══ */
.quote-card {
  background: #fff; border: 1px solid var(--border-soft); border-left: 4px solid var(--acc);
  border-radius: var(--r); padding: 1.9rem 2rem 1.6rem; box-shadow: var(--shadow);
}
.quote-card blockquote { font-size: 1.02rem; font-style: italic; color: var(--ink); line-height: 1.75; margin-bottom: 1.1rem; }
.quote-author { display: flex; align-items: center; gap: .8rem; }
.q-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--acc);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff; flex-shrink: 0;
}
.q-meta strong { display: block; font-size: .9rem; color: var(--ink); }
.q-meta span { font-size: .77rem; color: var(--ink-3); }

/* Full-width quote strip */
.quote-strip { background: var(--acc); padding: clamp(4rem, 7vw, 6rem) 0; text-align: center; }
.quote-strip blockquote { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 500; font-style: italic; color: #fff; max-width: 740px; margin: 0 auto 1.4rem; line-height: 1.6; letter-spacing: -.01em; }
.quote-strip cite { font-size: .85rem; color: rgba(255,255,255,.85); font-style: normal; font-weight: 700; }

/* ═══ CTA PANEL ═══ */
.cta-panel {
  background: var(--acc); border-radius: var(--rl);
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4rem);
  text-align: center; color: #fff;
}
.cta-panel h2 { color: #fff; margin-bottom: .8rem; }
.cta-panel p { color: rgba(255,255,255,.92); max-width: 520px; margin: 0 auto 1.9rem; font-size: 1rem; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ═══ NEWSLETTER ═══ */
.nl-strip { background: linear-gradient(180deg, var(--wash-40), rgba(224,221,255,.12)); border-top: 1px solid var(--border-soft); padding: clamp(4rem, 7vw, 6rem) 0; text-align: center; }
.nl-strip h2 { margin-bottom: .7rem; }
.nl-strip > .container > p, .nl-strip p.nl-lead { color: var(--ink-2); font-size: 1rem; margin-bottom: 1.9rem; }
.nl-form {
  display: flex; gap: .55rem; max-width: 460px; margin: 0 auto; flex-wrap: wrap;
}
.nl-form input {
  flex: 1; min-width: 220px;
  padding: .85rem 1.25rem; border: 1.5px solid var(--border);
  border-radius: var(--rp); font-family: var(--f); font-size: .9rem;
  background: #fff; color: var(--ink); outline: none; transition: border-color .2s;
}
.nl-form input::placeholder { color: var(--ink-3); }
.nl-form input:focus { border-color: var(--acc); }
.nl-form button {
  font-family: var(--f); font-weight: 700; font-size: .875rem;
  padding: .85rem 1.7rem; background: var(--acc); color: #fff;
  border: none; border-radius: var(--rp); cursor: pointer; transition: background .2s; white-space: nowrap;
}
.nl-form button:hover { background: var(--ink); }
.nl-form button:disabled { opacity: .75; cursor: default; }
.nl-note { margin-top: .8rem; font-size: .72rem; color: var(--ink-3); }
.nl-success { display: none; color: var(--acc-ink); font-weight: 700; margin-top: 1rem; font-size: .9rem; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border-soft);
  border-radius: var(--r); font-family: var(--f); font-size: .9rem;
  background: #fff; color: var(--ink); outline: none; transition: border-color .2s;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--acc); }
.form-success { display: none; margin-top: 1rem; font-weight: 700; color: var(--acc-ink); font-size: .9rem; }

/* ═══ FOOTER ═══ */
footer { background: var(--bg); border-top: 1px solid var(--border-soft); color: var(--ink-3); }
.footer-grid {
  display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr; gap: 2.75rem;
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--border-soft);
}
.footer-brand-col img { height: 36px; margin-bottom: .9rem; }
.footer-brand-col strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.footer-brand-col p { font-size: .85rem; line-height: 1.7; max-width: 280px; margin-bottom: 1.4rem; color: var(--ink-3); }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
  width: 34px; height: 34px; border: 1.5px solid var(--border-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.footer-social a:hover { border-color: var(--acc); background: var(--accdim); }
.footer-social svg { width: 14px; height: 14px; color: var(--ink-2); }
.footer-col h4 {
  color: var(--ink); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .86rem; color: var(--ink-3); transition: color .15s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0;
  font-size: .74rem; color: var(--ink-3);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ═══ REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
