/* Pragmatic Enablement · blueprint editorial */

:root {
  --paper: #faf9f6;
  --ink: #16181d;
  --ink-soft: #4b5058;
  --blue: #1d4ed8;
  --blue-deep: #16368f;
  --line: #e3e1da;
  --grid: rgba(29, 78, 216, 0.055);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }

h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 2.5rem; max-width: 20ch; }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2rem;
}

section { padding: 96px 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.wordmark {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.wordmark span { color: var(--blue); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- hero ---------- */
.hero {
  padding: 130px 0 120px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 18ch;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.lede {
  margin-top: 1.8rem;
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- manifesto ---------- */
.manifesto { border-bottom: 1px solid var(--line); padding: 80px 0; }
.manifesto-big {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  max-width: 34em;
}
.manifesto-big em { color: var(--blue); font-style: italic; }
.manifesto-line {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- problem ---------- */
.problem { border-bottom: 1px solid var(--line); }
.problem-list { list-style: none; }
.problem-list li {
  padding: 1.1rem 0 1.1rem 2rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.problem-list li::before {
  content: "×";
  position: absolute; left: 0.2rem;
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 500;
}
.thesis {
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.4;
}
.thesis strong { color: var(--blue); font-weight: 600; }

/* ---------- system ---------- */
.system { border-bottom: 1px solid var(--line); }
.components {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.components li { background: var(--paper); padding: 28px 26px 32px; }
.components::after {
  content: "CAPTURE → JUDGE → COACH → KNOW → RAMP";
  background: var(--paper);
  padding: 28px 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  display: flex;
  align-items: flex-end;
  opacity: 0.75;
}
.comp-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--blue);
  display: block;
  margin-bottom: 1.4rem;
}
.components h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.components p { color: var(--ink-soft); font-size: 0.97rem; }
.system-footer { margin-top: 2.4rem; font-size: 1.05rem; color: var(--ink-soft); }
.system-footer strong { color: var(--ink); }

/* ---------- stages ---------- */
.stages { border-bottom: 1px solid var(--line); }
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  background: #fff;
}
.stage h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.stage p { color: var(--ink-soft); font-size: 0.97rem; }
.stage-accent { border-color: var(--blue); border-width: 1.5px; position: relative; }
.stage-accent::after {
  content: "HEADLESS";
  position: absolute; top: -11px; right: 20px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  background: var(--blue); color: #fff;
  padding: 3px 10px; border-radius: 3px;
}

/* ---------- offers ---------- */
.offers { border-bottom: 1px solid var(--line); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.offer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.offer-start { border-color: var(--blue); border-width: 1.5px; }
.offer-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.8rem;
}
.offer h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.offer-price { font-family: var(--mono); font-size: 1.02rem; color: var(--ink); margin-bottom: 1.1rem; }
.offer-price span { color: var(--ink-soft); font-size: 0.85rem; }
.offer p:not(.offer-price):not(.offer-tag) { color: var(--ink-soft); font-size: 0.95rem; }
.offer-note {
  margin-top: auto; padding-top: 1.2rem;
  font-size: 0.85rem !important; color: var(--blue) !important;
  font-weight: 500;
}
.offers-footnote { margin-top: 2rem; color: var(--ink-soft); }
.offers-footnote strong { color: var(--ink); }
.offers-footnote a { color: var(--blue); font-weight: 500; }

/* ---------- other doors ---------- */
.doors { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px dashed var(--line); }
.doors-header { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.doors-intro { color: var(--ink-soft); margin: 0.4rem 0 1.8rem; }
.doors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.doors-grid-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .doors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .doors-grid, .doors-grid-two { grid-template-columns: 1fr; }
}
.door {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 24px;
  background: var(--paper);
}
.door h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.3rem; }
.people-note {
  border-left: 3px solid var(--blue);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 0 0 2rem;
  max-width: 72ch;
}
.people-note p { color: var(--ink-soft); font-size: 1rem; }
.people-note p + p { margin-top: 1rem; }
.people-note strong { color: var(--ink); }
.door-price { font-family: var(--mono); font-size: 0.82rem; color: var(--blue); margin-bottom: 0.8rem; }
.door p:not(.door-price) { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- store ---------- */
.hero-store { padding: 90px 0 80px; }
.store { border-bottom: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.product {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.product-price { font-family: var(--mono); font-size: 1rem; margin-bottom: 0.9rem; }
.product-price span { color: var(--ink-soft); font-size: 0.85rem; }
.product p:not(.product-price):not(.offer-tag) { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 1.4rem; }
.product-bundle { border-color: var(--blue); border-width: 1.5px; grid-column: 1 / -1; }
.store-time .product-grid { max-width: 760px; }
.btn-buy { margin-top: auto; align-self: flex-start; padding: 10px 22px; font-size: 0.9rem; }
.store-addon, .store-note { margin-top: 2rem; color: var(--ink-soft); font-size: 0.95rem; }
.store-addon strong { color: var(--ink); }
.store-time { border-bottom: none; }

/* ---------- onboarding featured ---------- */
.onboarding { border-bottom: 1px solid var(--line); }
.featured {
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  padding: 44px 44px 40px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
}
.featured h2 { margin-bottom: 1rem; }
.featured-body { color: var(--ink-soft); font-size: 1.08rem; max-width: 64ch; }
.featured-list { list-style: none; margin: 1.6rem 0; }
.featured-list li {
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.featured-list li::before {
  content: "✓";
  position: absolute; left: 0.2rem;
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 500;
}
.featured-price { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); max-width: 70ch; }
.featured-price strong { color: var(--blue); }
.featured .cta-row { margin-top: 1.8rem; }
@media (max-width: 720px) {
  .featured { padding: 28px 24px; }
}

/* ---------- proof ---------- */
.proof { border-bottom: 1px solid var(--line); }
.proof .narrow p { color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 68ch; }
.stats {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 26px 24px; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- faq ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0.3rem; top: 0;
  font-family: var(--mono); color: var(--blue); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- closing ---------- */
.closing {
  background: var(--ink);
  color: var(--paper);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  padding: 110px 0;
}
.closing h2 { color: #fff; max-width: 24ch; }
.closing p { color: #b8bcc4; max-width: 58ch; }
.closing-alt { margin-top: 1.4rem; font-size: 0.95rem; }
.closing-alt a { color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid #2a2d34; padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #8a8f98; font-size: 0.85rem;
}
.footer-mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .nav-links { display: none; }
}
