/* CPLite landing — single-page B2B marketing site.
 *
 * Design principles:
 *   - Read in 30 seconds or scroll for more.
 *   - B2B credibility: restrained palette, serif-for-headings,
 *     sans-for-body, not-startup-neon.
 *   - Visually consistent with Living Literature without copying
 *     its reader-facing warmth (CPLite is for buyers, not readers).
 */

:root {
  --ink:         #1a2230;
  --ink-muted:   #4a5a70;
  --ink-light:   #6a7a8e;
  --paper:       #fdfcf7;
  --panel:       #f4f0e4;
  --accent:      #2d5547;  /* deep green — LL-adjacent but cooler */
  --accent-dark: #1f3d34;
  --border:      rgba(26, 34, 48, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); line-height: 1.25; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.35em; }

p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  font-size: 0.92rem;
}

.header-nav a {
  color: var(--ink-muted);
  font-weight: 500;
}
.header-nav a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 0.3rem;
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--paper) 0%, #f7f3e8 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 1.2rem 0 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ── Body sections ────────────────────────────────────────────── */

section {
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}

section + section { border-top: 1px solid var(--border); }

.problem p, .how-intro, .research p, .access p {
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* ── How-it-works ─────────────────────────────────────────────── */

.how-intro { margin-bottom: 2.2rem; }

.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .layers { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}

.layers li {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  position: relative;
}

.layer-num {
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
  text-align: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.85rem;
}

.layers h3 { margin: 0 0 0.5rem; }
.layers p  { margin: 0; color: var(--ink-muted); font-size: 0.96rem; }

/* ── Outcomes ─────────────────────────────────────────────────── */

.outcomes { background: var(--panel); }

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin: 1.5rem 0 1.8rem;
}

@media (min-width: 48rem) {
  .outcome-grid { grid-template-columns: repeat(3, 1fr); }
}

.outcome-grid > div {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0.45rem;
}

.outcome-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 0.4rem;
}
.outcome-number span {
  font-size: 1.3rem;
  font-weight: 600;
  vertical-align: super;
}

.outcome-label {
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.outcomes-footer {
  color: var(--ink-light);
  font-size: 0.9rem;
  max-width: 42rem;
  margin-top: 1rem;
}

/* ── Research ─────────────────────────────────────────────────── */

.citation-list {
  list-style: none;
  margin: 1rem 0 1.6rem;
  padding: 0;
}

.citation-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  color: var(--ink-muted);
}

.citation-list li:last-child { border-bottom: none; }

.citation-list strong { color: var(--ink); }

.research-note {
  color: var(--ink-light);
  font-size: 0.92rem;
  margin-top: 1rem;
}

/* ── Access ───────────────────────────────────────────────────── */

.access-cta { margin: 1.6rem 0 1.2rem; }

.access-note {
  font-size: 0.88rem;
  color: var(--ink-light);
  margin-top: 1.2rem;
}

.access-note code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.85rem;
  background: var(--panel);
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--ink-light);
  font-size: 0.88rem;
}

.site-footer a { color: var(--ink-muted); }
