/* ════════════════════════════════════════════════════════════════════
   GUIDES — Shared stylesheet for /guides/* industry guide pages.
   Mirrors the blog-post visual language (DM Serif + DM Sans, dark UI,
   purple/pink accent) but tuned for long-form ranking pages.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg:           #080810;
  --bg-card:      #0f0f1a;
  --bg-surface:   #13131f;
  --bg-elevated:  rgba(15, 15, 26, 0.85);
  --purple:       #7c3aed;
  --purple-mid:   #9d5ff5;
  --purple-light: #c4a8ff;
  --pink:         #e879f9;
  --cyan:         #22d3ee;
  --text:         #e8e4f0;
  --text-muted:   #8b82a7;
  --text-faint:   #4a4464;
  --border:       rgba(124, 58, 237, 0.18);
  --border-strong:rgba(124, 58, 237, 0.32);
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --gradient:     linear-gradient(135deg, #7c3aed 0%, #e879f9 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--pink); }

/* ── Progress bar ──────────────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ── Nav ───────────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav.site-nav .nav-logo img { height: 32px; width: auto; display: block; }
nav.site-nav .nav-links { display: flex; gap: 32px; list-style: none; }
nav.site-nav .nav-links a {
  color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.2s;
}
nav.site-nav .nav-links a:hover { color: var(--purple-light); }
nav.site-nav .nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 6px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}
@media (max-width: 720px) {
  nav.site-nav { padding: 14px 20px; }
  nav.site-nav .nav-links { gap: 18px; }
  nav.site-nav .nav-links li:not(:last-child):not(:first-child) { display: none; }
}

/* ── Breadcrumbs ───────────────────────────────────────────────── */
.breadcrumbs {
  max-width: 880px; margin: 24px auto 0; padding: 0 32px;
  font-size: 13px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--purple-light); }
.breadcrumbs span.sep { margin: 0 8px; opacity: 0.6; }

/* ── Hero ──────────────────────────────────────────────────────── */
.guide-hero {
  max-width: 880px; margin: 32px auto 0;
  padding: 0 32px 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-mid);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
h1.guide-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
h1.guide-title em { font-style: italic; color: var(--purple-light); }
.guide-lede {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 720px;
}

/* ── Stat strip (above-the-fold 4-up) ──────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 8px;
}
.stat-strip .stat { text-align: center; }
.stat-strip .stat-number {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--purple-mid);
  display: block; line-height: 1.1;
}
.stat-strip .stat-label {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ── Article body ──────────────────────────────────────────────── */
article.guide-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
article.guide-body p {
  margin-bottom: 24px;
  color: var(--text);
  font-weight: 300;
  max-width: 760px;
}
article.guide-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  color: #fff;
  margin: 64px 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
article.guide-body h3 {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--purple-light);
  margin: 40px 0 12px;
}
article.guide-body ul, article.guide-body ol { margin: 0 0 24px 22px; max-width: 760px; }
article.guide-body li { margin-bottom: 10px; color: var(--text); font-weight: 300; }
article.guide-body strong { color: #fff; font-weight: 600; }
mark {
  background: rgba(124, 58, 237, 0.2);
  color: var(--purple-light);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Component: pull-quote (the upsell story callout) ──────────── */
.pull-quote {
  margin: 48px 0;
  padding: 36px 40px;
  border-left: 3px solid var(--purple);
  background: var(--bg-surface);
  border-radius: 0 12px 12px 0;
  position: relative;
}
.pull-quote::before {
  content: '"'; font-family: var(--serif); font-size: 80px;
  color: var(--purple); opacity: 0.3;
  position: absolute; top: -10px; left: 16px; line-height: 1;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  color: var(--purple-light) !important;
  margin: 0 !important;
  max-width: none !important;
}

/* ── Component: 4-up stat grid (mid-article) ───────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.stat-card .stat-number {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--purple-mid);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* ── Component: feature list (icon + title + desc) ─────────────── */
.feature-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.feature-item h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.feature-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 !important;
  line-height: 1.55;
  max-width: none !important;
}

/* ── Component: 3-column capability cards ──────────────────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}
.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.capability-card h4 {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 10px;
}
.capability-card p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.55;
  margin: 0 !important;
  max-width: none !important;
}

/* ── Component: testimonial ────────────────────────────────────── */
.testimonial {
  margin: 48px 0;
  padding: 40px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(232, 121, 249, 0.04));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 16px;
  position: relative;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: #fff;
  font-style: italic;
  margin: 0 0 20px;
}
.testimonial cite {
  display: block;
  font-style: normal;
  color: var(--purple-light);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ── Component: pricing 2-up ───────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 32px 0 40px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--border-strong);
  background: linear-gradient(160deg, var(--bg-card), rgba(124, 58, 237, 0.06));
}
.pricing-card .plan-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 8px;
}
.pricing-card .plan-price {
  font-family: var(--serif);
  font-size: 42px;
  color: #fff;
  line-height: 1;
}
.pricing-card .plan-price small {
  font-size: 16px;
  font-family: var(--sans);
  color: var(--text-muted);
  font-weight: 300;
  margin-left: 4px;
}
.pricing-card .plan-tag {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 22px;
}
.pricing-card ul {
  list-style: none;
  margin: 0 0 24px 0 !important;
  padding: 0;
}
.pricing-card li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0 8px 24px;
  position: relative;
  font-weight: 300;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--purple-mid);
  font-weight: 600;
}

/* ── Component: numbered timeline ──────────────────────────────── */
.timeline {
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline-step {
  display: flex; gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}
.timeline-step .step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.timeline-step h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.timeline-step p {
  font-size: 14px; color: var(--text-muted);
  margin: 0 !important; line-height: 1.5;
  max-width: none !important;
}

/* ── Component: FAQ ────────────────────────────────────────────── */
.faq-list { margin: 24px 0 40px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 24px;
  color: var(--purple-mid);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Component: closing CTA card ───────────────────────────────── */
.cta-card {
  margin: 60px 0 40px;
  padding: 48px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(232, 121, 249, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: 18px;
}
.cta-card h2 { margin: 0 0 14px !important; }
.cta-card p { margin: 0 auto 28px !important; max-width: 560px; color: var(--text-muted); }
.cta-card .cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124, 58, 237, 0.45); }
.btn-secondary {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: rgba(124, 58, 237, 0.08); color: var(--purple-light) !important; }

/* ── Footer ────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 32px 60px;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
footer.site-footer p { margin-bottom: 14px; }
footer.site-footer nav a { color: var(--text-muted); font-size: 13px; }
footer.site-footer nav a:hover { color: var(--purple-light); }
