/* ─────────────────────────────────────────────────────────────────────────────
   PROPHETIC DISCOVERY - starter-pack.css
   Styles the Starter Pack as a beautiful HTML document/booklet
   ──────────────────────────────────────────────────────────────────────────── */

/* ─── DOCUMENT BODY ──────────────────────────────────────────────────────── */
.sp-body {
  background: var(--bgAlt);
  min-height: 100vh;
  padding-top: 72px; /* nav height */
}

/* ─── COVER SECTION ──────────────────────────────────────────────────────── */
.sp-cover {
  background: var(--ink);
  color: white;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-10) var(--space-6);
}

.sp-cover .grain-overlay {
  display: none;
}

.sp-cover-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.sp-cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.sp-cover-title strong {
  font-weight: 600;
  color: var(--gold);
}

.sp-cover-cursive {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.sp-cover-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-6);
  opacity: 0.7;
}

.sp-cover-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ─── DOCUMENT CANVAS ─────────────────────────────────────────────────────── */
.sp-canvas {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-9) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── DOCUMENT PAGE ───────────────────────────────────────────────────────── */
.sp-page {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: none;
  margin-bottom: var(--space-5);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sp-page:hover {
  border-color: rgba(44,95,74,0.22);
}

/* ─── PAGE HEADER TAB ─────────────────────────────────────────────────────── */
.sp-page-tab {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-7);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.sp-tab-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.sp-tab-num.sp-tab-check {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
}

.sp-tab-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--inkMid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-tab-badge {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accentSoft);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ─── PAGE BODY ───────────────────────────────────────────────────────────── */
.sp-page-body {
  padding: var(--space-7) var(--space-8) var(--space-8);
}

/* ─── DOCUMENT HEADING ────────────────────────────────────────────────────── */
.sp-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.sp-cursive {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--accent);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.sp-body-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--inkMid);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}

/* ─── ITEM LIST ───────────────────────────────────────────────────────────── */
.sp-item-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-item-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.sp-item-list li:last-child {
  border-bottom: none;
}

.sp-item-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accentSoft);
  border: 1px solid rgba(44,95,74,0.15);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.sp-item-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--inkMid);
  line-height: 1.7;
}

.sp-item-text strong {
  font-weight: 500;
  color: var(--ink);
}

/* ─── CALLOUT BOX ─────────────────────────────────────────────────────────── */
.sp-callout {
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-5) 0;
}

.sp-callout-warm {
  background: var(--goldLight);
  border: 1px solid rgba(181, 137, 58, 0.24);
}

.sp-callout-green {
  background: var(--accentSoft);
  border: 1px solid rgba(44, 95, 74, 0.18);
}

.sp-callout-neutral {
  background: var(--bgAlt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sp-callout p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--inkMid);
  line-height: 1.75;
  margin: 0;
}

.sp-callout strong {
  color: var(--ink);
  font-weight: 500;
}

/* ─── DIVIDER ─────────────────────────────────────────────────────────────── */
.sp-divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

/* ─── URL BADGE (for external links) ─────────────────────────────────────── */
.sp-url-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bgAlt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin: var(--space-3) 0 var(--space-5);
}

.sp-url-badge::before {
  content: '→';
  font-family: var(--font-body);
  font-style: normal;
  color: var(--accent);
}

.sp-url-badge:hover {
  background: var(--accentSoft);
  border-color: rgba(44,95,74,0.25);
}

/* ─── CTA PAGE (review + contact) ────────────────────────────────────────── */
.sp-cta-page {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8);
  color: white;
  text-align: center;
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}


.sp-cta-page-inner {
  position: relative;
  z-index: 2;
}

.sp-cta-page .sp-heading {
  color: white;
  margin-bottom: var(--space-3);
}

.sp-cta-page .sp-body-text {
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-6);
}

.sp-cta-page .sp-cursive {
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-7);
}

/* ─── DISC BADGE ──────────────────────────────────────────────────────────── */
.sp-disc-badge {
  display: inline-flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.sp-disc-letter {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
}

.sp-disc-d { background: var(--accent); }
.sp-disc-i { background: var(--gold); }
.sp-disc-s { background: #5A7E6B; }
.sp-disc-c { background: #3A5A4A; }

/* ─── STEP TIMELINE ───────────────────────────────────────────────────────── */
.sp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--space-5) 0;
}

.sp-timeline-item {
  display: flex;
  gap: var(--space-5);
  position: relative;
}

.sp-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -8px;
  width: 1px;
  background: var(--border);
}

.sp-timeline-dot {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.sp-timeline-content {
  padding-bottom: var(--space-5);
}

.sp-timeline-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.sp-timeline-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--inkLight);
  line-height: 1.65;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sp-canvas {
    padding: var(--space-6) var(--space-4) var(--space-9);
  }

  .sp-page-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
  }

  .sp-page-tab {
    padding: var(--space-4) var(--space-5);
  }

  .sp-cover-title {
    font-size: 2rem;
  }

  .sp-disc-badge {
    gap: 6px;
  }

  .sp-disc-letter {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .sp-cta-page {
    padding: var(--space-6) var(--space-5);
  }
}
