/* ──────────────────────────────────────────────────────────────
   Lucidity Analytics — shared stylesheet
   Dark navy, matching the deck and the one-pager.

   Kept as one external file rather than inlined per page: the AGO
   spec only requires that CONTENT be in server-delivered HTML, and
   it is. CSS can live wherever it is easiest to maintain.
   ────────────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink-navy:     #112748;
  --navy-raised:  #16305A;
  --primary-navy: #1A3A6B;
  --mid-blue:     #2E6FB0;
  --clarity-cyan: #1FA7C4;
  --ray-light:    #7FC8D9;
  --ray-lightest: #BFE3ED;
  --amber:        #E0A458;
  --slate:        #6E6E73;
  --mist:         #9A9AA0;
  --body:         #BFC7D4;
  --white:        #FFFFFF;
  --rule:         rgba(255,255,255,0.10);
  --rule-strong:  rgba(255,255,255,0.18);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  background: var(--ink-navy);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 46rem; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3.25rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: none; }

/* ── Nav ── */
.nav {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: rgba(17,39,72,0.94);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.nav-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  border-bottom: none;
  margin-right: auto;
}
.nav-brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.nav-brand span {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.nav a.nav-link {
  font-size: 0.83rem;
  color: var(--mist);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--ray-light); }

/* ── Type ── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clarity-cyan);
  margin-bottom: 0.7rem;
}

h1 {
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.9rem;
}

h3 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 0.45rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ray-light);
}

.dek {
  font-size: 0.95rem;
  color: var(--mist);
}

strong { font-weight: 600; color: var(--white); }
em { font-style: italic; }

a { color: var(--ray-light); text-decoration: none; border-bottom: 1px solid rgba(127,200,217,0.35); }
a:hover { color: var(--clarity-cyan); border-bottom-color: var(--clarity-cyan); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  background: var(--primary-navy);
  border: 1.5px solid var(--mid-blue);
  padding: 0.7rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--mid-blue); border-color: var(--mid-blue); color: var(--white); }
.btn-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Stat grid ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0 1rem;
}
.stat { background: var(--ink-navy); padding: 1.1rem 1.1rem 1rem; }
.stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--clarity-cyan);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat-num.amber { color: var(--amber); }
.stat-label { font-size: 0.82rem; line-height: 1.45; color: var(--body); }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
}
.card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--clarity-cyan);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.88rem; line-height: 1.55; color: var(--mist); }

/* ── Tier cards ── */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.tier {
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 1.5rem 1.35rem;
  background: rgba(255,255,255,0.02);
  position: relative;
}
.tier.featured { border: 2px solid var(--clarity-cyan); }
.tier-pill {
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  background: var(--clarity-cyan);
  color: var(--ink-navy);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
}
.tier-name { font-weight: 600; font-size: 1.15rem; color: var(--white); margin-bottom: 0.15rem; }
.tier-price {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ray-light);
  letter-spacing: -0.06em;
  margin-bottom: 0.15rem;
}
.tier-for { font-size: 0.8rem; color: var(--mist); margin-bottom: 0.9rem; }
.tier ul { list-style: none; font-size: 0.87rem; line-height: 1.55; }
.tier li { padding-left: 1rem; position: relative; margin-bottom: 0.4rem; color: var(--body); }
.tier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clarity-cyan);
}

/* ── Tables ── */
.table-scroll { overflow-x: auto; margin-top: 1.25rem; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 32rem; }
thead th {
  background: var(--navy-raised);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.6rem 0.8rem;
  white-space: nowrap;
}
tbody td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
  vertical-align: top;
}
tbody td:first-child { color: var(--white); }
tbody tr.total td {
  border-top: 2px solid var(--mid-blue);
  border-bottom: none;
  font-weight: 600;
  color: var(--white);
}
td .num { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; }

/* ── Check list ── */
.checklist { list-style: none; margin-top: 1rem; }
.checklist li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clarity-cyan);
  font-size: 0.85rem;
}

/* ── Pull quote ── */
.pull {
  border-left: 3px solid var(--clarity-cyan);
  padding: 0.5rem 0 0.5rem 1.1rem;
  margin-top: 1.5rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ── Callout ── */
.callout {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── FAQ ── */
.faq { margin-top: 1.5rem; }
.faq-item { border-top: 1px solid var(--rule); padding: 1.15rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q { font-weight: 600; color: var(--white); font-size: 1rem; margin-bottom: 0.45rem; }
.faq-a { font-size: 0.92rem; line-height: 1.6; }

/* ── Next-page links ── */
.next-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.next-link {
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  display: block;
  transition: border-color 0.2s, background 0.2s;
}
.next-link:hover { border-color: var(--clarity-cyan); background: rgba(255,255,255,0.03); }
.next-link .nl-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clarity-cyan);
  display: block;
  margin-bottom: 0.35rem;
}
.next-link .nl-text { color: var(--white); font-size: 0.92rem; font-weight: 500; line-height: 1.4; display: block; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  font-size: 0.85rem;
  color: var(--mist);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-contact { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; line-height: 1.9; }
.footer-contact a { color: var(--ray-light); }
.footer-meta {
  margin-top: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ── Utility ── */
.mono { font-family: 'IBM Plex Mono', monospace; }
.mt-0 { margin-top: 0; }
.updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2rem;
}

@media (max-width: 640px) {
  section { padding: 2.5rem 0; }
  .nav-inner { gap: 0.9rem; padding: 0.75rem 1.25rem; }
  .nav a.nav-link { font-size: 0.78rem; }
  .lede { font-size: 1rem; }
}

/* ── Sourced patterns (home, section 01) ── */
.stat-q {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ray-light);
  margin-bottom: 0.55rem;
}
.stat sup { font-size: 0.62em; vertical-align: super; line-height: 0; color: var(--mist); }
.cites {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--mist);
}
.cites li { margin: 0; }
.cites em { font-style: italic; }
