/* =====================================================================
   Stablish Sales Enablement — shared design system
   Used by index.html and every artifact page in the kit.
   ===================================================================== */

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

:root {
  --black: #06040e;
  --white: #ffffff;
  --cream: #f8f7f5;
  --grey: #f7f7fb;
  --purple: #bfb4fc;
  --green: #0ce5be;
  --green-deep: #0ab89a;
  --blue: #00bfff;
  --muted: rgba(6,4,14,0.45);
  --muted-solid: #6e6b7b;
  --border: rgba(6,4,14,0.1);
  --body-bg: #ececf2;
  --fill-bg: rgba(255, 184, 77, 0.18);
  --fill-fg: #b87a00;
}

html { font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background: var(--body-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding: 0;
}

/* ── APP SHELL (sidebar layout) ──────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 28px 22px 24px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar-brand {
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}
.sidebar-brand img { height: 24px; display: block; }

.sidebar-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin-bottom: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-section {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin: 18px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: rgba(6, 4, 14, 0.72);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-item:hover { background: var(--cream); color: var(--black); }
.nav-item.active { background: var(--black); color: var(--white) !important; }

.nav-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-deep);
  min-width: 16px;
  flex-shrink: 0;
}
.nav-item.active .nav-num { color: var(--green); }

.nav-label { flex: 1; }

.sidebar-footer {
  padding-top: 18px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.sidebar-cta {
  display: block;
  text-align: center;
  background: var(--black);
  color: var(--white) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  padding: 12px 18px;
  border-radius: 32px;
  letter-spacing: -0.005em;
}
.sidebar-cta:hover { opacity: 0.92; color: var(--white) !important; }

.content {
  padding: 40px 0;
  min-width: 0;
  overflow-x: hidden;
}

/* Sidebar toggle button (mobile only) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 4, 14, 0.08);
  padding: 0;
}
.sidebar-toggle svg { width: 18px; height: 18px; }

.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.4);
  z-index: 9;
}
.sidebar-scrim.visible { display: block; }

/* ── PAGE / DOCUMENT ─────────────────────────────────────────────── */
.page {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  padding: 64px 64px 56px;
  box-shadow: 0 4px 24px rgba(6,4,14,0.06);
  border-radius: 6px;
}

.page + .page { margin-top: 24px; }

/* ── HEADER ──────────────────────────────────────────────────────── */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-mark a { display: inline-block; }
.logo-mark img { height: 30px; display: block; }

.doc-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-solid);
  text-align: right;
}

/* ── TITLE BLOCK ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin-bottom: 12px;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 14px;
  text-wrap: balance;
}

.title-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted-solid);
  max-width: 600px;
  margin-bottom: 40px;
}

/* ── SECTION HEADERS ─────────────────────────────────────────────── */
h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 40px 0 12px;
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 24px 0 8px;
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(6,4,14,0.82);
  margin-bottom: 14px;
}
p strong { color: var(--black); font-weight: 600; }
p em { font-style: italic; }

a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--black); }

ul, ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
li {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(6,4,14,0.82);
  margin-bottom: 8px;
}
li strong { color: var(--black); font-weight: 600; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ── BIG PULL-QUOTE CALLOUT ──────────────────────────────────────── */
.punchline {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: 20px;
  padding: 40px 36px;
  margin: 32px 0;
  text-align: center;
}

.punchline-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--black);
  max-width: 600px;
  margin: 0 auto;
  text-wrap: balance;
}
.punchline-text strong { font-weight: 800; }

/* ── ORIGIN / CALLOUT BLOCK ──────────────────────────────────────── */
.callout {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px;
  margin: 36px 0;
}

.callout-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin-bottom: 14px;
}

.callout-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 14px;
  text-wrap: balance;
}

.callout-body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(6,4,14,0.78);
  margin: 0;
}

/* Legacy class aliases used by 01-senior-pastor-brief.html */
.origin-callout { background: var(--cream); border-radius: 20px; padding: 36px; margin: 36px 0; }
.origin-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-solid); margin-bottom: 14px;
}
.origin-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--black); margin-bottom: 14px; text-wrap: balance;
}
.origin-body { font-size: 15px; line-height: 1.65; color: rgba(6,4,14,0.78); margin: 0; }

/* ── PRODUCT CARDS (3 columns) ───────────────────────────────────── */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 12px;
}

.product-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 24px 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product-card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 18px;
}

.product-card-image img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  display: block;
}

.product-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(6,4,14,0.75);
  margin: 0;
}

/* ── BOOSTER STRIP ───────────────────────────────────────────────── */
.booster-strip {
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: 14px;
  padding: 18px 24px;
  margin: 0 0 28px;
  text-align: center;
}
.booster-strip p {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--black);
  margin: 0;
}
.booster-strip strong { font-weight: 700; }
.booster-strip em {
  font-style: normal;
  font-weight: 600;
  color: var(--green-deep);
}

/* ── SCRIPTURE BLOCKQUOTE ────────────────────────────────────────── */
blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
}

blockquote p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 6px;
}

blockquote .ref {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-solid);
}

/* ── ASK SECTION (dark CTA block) ────────────────────────────────── */
.ask-section {
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 36px;
  margin: 40px 0 24px;
  text-align: center;
}

.ask-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.ask-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-wrap: balance;
  color: #ffffff;
}

.ask-cta {
  display: inline-block;
  background: #ffffff !important;
  color: #06040e !important;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 16px 36px;
  border-radius: 40px;
  letter-spacing: -0.005em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
}
.ask-cta:hover { opacity: 0.92; }
.ask-cta:visited { color: #06040e !important; }

.ask-cta-line {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
}

/* ── SIGNATURE ───────────────────────────────────────────────────── */
.signature {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sig-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}
.sig-title {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-solid);
}
.sig-contact {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted-solid);
}

.closing-scripture { margin-top: 24px; text-align: center; }
.closing-scripture blockquote { border-left: none; padding: 0; margin: 0; }
.closing-scripture blockquote p {
  font-size: 14px;
  font-style: italic;
  color: var(--muted-solid);
  font-weight: 500;
}
.closing-scripture blockquote .ref { font-size: 11px; margin-top: 2px; }

/* ── FILL-IN PLACEHOLDERS ────────────────────────────────────────── */
.fill {
  background: var(--fill-bg);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--fill-fg);
  font-weight: 500;
}

/* ── DATA TABLES ─────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.data-table thead th {
  background: var(--cream);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-solid);
  border-bottom: 1px solid var(--border);
}

.data-table thead tr:first-child th:first-child { border-top-left-radius: 10px; }
.data-table thead tr:first-child th:last-child { border-top-right-radius: 10px; }

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.highlight { background: rgba(12, 229, 190, 0.06); }
.data-table tbody td strong { color: var(--black); font-weight: 700; }

/* ── EMAIL TEMPLATE BLOCK (for reference offer doc) ──────────────── */
.email-block {
  background: var(--grey);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
  margin: 20px 0 32px;
  font-family: 'Inter', sans-serif;
}

.email-block p,
.email-block li {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(6,4,14,0.85);
}
.email-block p { margin-bottom: 12px; }
.email-block p:last-child { margin-bottom: 0; }
.email-block strong { color: var(--black); }

.email-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin-bottom: 10px;
}

/* ── SLIDE (for elder board deck) ────────────────────────────────── */
.slide {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 44px 36px;
  margin: 0 0 28px;
}

.slide-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.slide-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 18px;
  text-wrap: balance;
}

.speaker-notes {
  background: var(--cream);
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-top: 24px;
}

.speaker-notes-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-solid);
  margin-bottom: 8px;
}

.speaker-notes p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(6,4,14,0.78);
  margin: 0;
  font-style: italic;
}

/* ── CONTRACT BLOCK (for pilot agreement) ────────────────────────── */
.contract-meta {
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.contract-meta dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.contract-meta dt {
  font-weight: 700; color: var(--muted-solid);
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em;
  align-self: center;
}
.contract-meta dd { margin: 0; color: var(--black); }

.fineprint {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-solid);
  font-style: italic;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ── INDEX PAGE — ARTIFACT CARDS ─────────────────────────────────── */
.kit-intro {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(6,4,14,0.82);
  margin-bottom: 32px;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}

.artifact-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 22px;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.artifact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6,4,14,0.08);
  border-color: var(--green);
  color: inherit;
}

.artifact-num {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.artifact-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0 0 6px;
}

.artifact-audience {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-solid);
  margin-bottom: 10px;
}

.artifact-card p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(6,4,14,0.75);
  margin: 0;
}

.stakeholder-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0 28px;
  list-style: none;
  padding: 0;
}
.stakeholder-list li {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.stakeholder-list li strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

/* ── BACK LINK ───────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-solid);
  text-decoration: none;
}
.back-link:hover { color: var(--black); }

/* ── PRINT ───────────────────────────────────────────────────────── */
@media print {
  body { background: var(--white); padding: 0; }
  .app-shell { display: block; }
  .sidebar, .sidebar-toggle, .sidebar-scrim { display: none !important; }
  .content { padding: 0; }
  .page, .slide {
    max-width: 100%;
    margin: 0 0 0.5in;
    padding: 0.5in 0.6in;
    box-shadow: none;
    border-radius: 0;
    border: none;
  }
  h1 { font-size: 32px; }
  .punchline-text { font-size: 22px; }
  .origin-headline, .callout-headline, .slide-title { font-size: 22px; }
  .punchline, .origin-callout, .callout, .ask-section, .product-card, .slide, .email-block, .speaker-notes {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: avoid;
  }
  .fill {
    background: transparent;
    color: var(--black);
    font-weight: 700;
  }
  .product-cards { gap: 12px; }
  .product-card-image { min-height: 180px; }
  .product-card-image img { max-height: 180px; }
  .artifact-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .back-link { display: none; }
}

@page {
  size: letter;
  margin: 0.5in 0.6in;
}

/* ── SIDEBAR (TABLET/MOBILE COLLAPSE) ────────────────────────────── */
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 24px rgba(6, 4, 14, 0.16);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: inline-flex; }
  .content { padding: 64px 0 20px; }
}

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .page { padding: 36px 28px; }
  .slide { padding: 32px 24px 26px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .product-cards { grid-template-columns: 1fr; }
  .punchline, .origin-callout, .callout, .ask-section { padding: 28px 24px; }
  .signature { flex-direction: column; align-items: flex-start; gap: 6px; }
  .artifact-grid { grid-template-columns: 1fr; }
  .stakeholder-list { grid-template-columns: 1fr; }
  .contract-meta dl { grid-template-columns: 1fr; gap: 4px 0; }
  .contract-meta dt { margin-top: 6px; }
  .data-table { font-size: 13.5px; }
  .data-table th, .data-table td { padding: 10px 10px; }
}
