﻿/* ============================================================
   The Mobile Home Dealer's Playbook v2 - Web Reader
   Lead Systems Go brand. Orange #FF6210, Space Grotesk + Inter.
   ============================================================ */

:root {
  --brand: #FF6210;
  --brand-light: #FF8A4C;
  --brand-dark: #CC4E0D;
  --brand-tint: #FFF5EE;
  --brand-tint-2: #FFFBF7;
  --dark-bg: #141210;
  --dark-surface: #1C1917;
  --light-bg: #F9FAFB;
  --accent: #0EA5E9;
  --text: #1D2939;
  --text-soft: #475467;
  --text-light: #9CA3AF;
  --border: #E5E5E5;
  --border-soft: #F3F4F6;
  --sidebar-w: 320px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

/* CRITICAL: make [hidden] always win over display properties below */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* Protection: images non-selectable, non-draggable */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* Protection toast (shown when user tries to save/print) */
.protect-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--dark-bg);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-left: 4px solid var(--brand);
  max-width: 400px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.protect-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Block print entirely */
@media print {
  body::before {
    content: 'This guide is designed to be read online at leadsystemsgo.com';
    display: block;
    font-size: 24pt;
    text-align: center;
    margin: 4in 1in;
    font-family: Arial, sans-serif;
    color: #FF6210;
  }
  body > *:not(::before) { display: none !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark-bg);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   PASSWORD GATE
   ============================================================ */
.password-gate {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.password-gate::before, .password-gate::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: var(--brand);
}
.password-gate::before { top: 0; }
.password-gate::after { bottom: 0; }
.gate-card {
  background: var(--dark-surface);
  max-width: 480px;
  width: 100%;
  padding: 48px 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,98,16,0.3);
  text-align: center;
  color: #F9FAFB;
}
.gate-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.gate-title {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 8px;
}
.gate-subtitle {
  color: var(--brand-light);
  font-size: 15px;
  margin: 0 0 32px;
}
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-light);
  text-align: left;
}
.gate-form input {
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  font-family: inherit;
  transition: border 0.2s;
}
.gate-form input:focus {
  outline: none;
  border-color: var(--brand);
}
.gate-submit {
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.gate-submit:hover { background: var(--brand-dark); }
.gate-error {
  color: #EF4444;
  font-size: 14px;
  margin: 8px 0 0;
}
.gate-footer {
  margin: 28px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.gate-footer a { color: var(--brand-light); }

/* ============================================================
   PROGRESS BAR (top of page, shows reading progress)
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand);
  z-index: 100;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(255,98,16,0.5);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 50;
  gap: 16px;
}
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-bg);
  transition: transform 0.2s;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.brand-mark {
  background: var(--brand);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 4px;
}
.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-actions { display: flex; gap: 8px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.2s;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================================
   SIDEBAR TOC
   ============================================================ */
.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: #fff;
}
.sidebar-inner {
  padding: 32px 24px;
}
.sidebar-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 8px;
}
.sidebar-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-item {
  margin: 0;
}
.toc-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-soft);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.toc-item a:hover {
  background: var(--brand-tint);
  color: var(--text);
  text-decoration: none;
}
.toc-item.active a {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-left-color: var(--brand);
}
.toc-num {
  min-width: 28px;
  text-align: center;
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
}
.toc-item.toc-quickstart a {
  background: var(--brand-tint-2);
  font-weight: 700;
}
.toc-item.toc-quickstart .toc-num {
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.toc-title {
  flex: 1;
}
.sidebar-cta {
  margin-top: 32px;
  padding: 20px;
  background: var(--dark-bg);
  border-radius: 8px;
  text-align: center;
}
.sidebar-cta p {
  color: #fff;
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary-sm {
  display: inline-block;
  padding: 10px 20px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.btn-primary-sm:hover { background: var(--brand-dark); text-decoration: none; }

/* ============================================================
   READER
   ============================================================ */
.reader {
  padding: 0 48px 96px;
  max-width: none;
}

/* HERO */
.hero {
  background: var(--dark-bg);
  color: #F9FAFB;
  padding: 96px 48px;
  margin: 24px -48px 0;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: var(--brand);
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero-title {
  color: #fff;
  font-size: 54px;
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.05;
}
.hero-subtitle {
  font-size: 22px;
  color: var(--brand-light);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  margin: 0 0 24px;
}
.hero-author {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 40px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--brand);
  color: #fff !important;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.hero-cta:hover { background: var(--brand-dark); text-decoration: none; }

/* ============================================================
   CHAPTER
   ============================================================ */
.chapter {
  max-width: 820px;
  margin: 64px auto;
  background: #fff;
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.chapter-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--brand);
}
.chapter-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.chapter-num-qs {
  background: var(--brand);
  color: #fff;
  display: inline-block;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 2px;
}
.chapter-title {
  font-size: 40px;
  color: var(--dark-bg);
  font-weight: 900;
  margin: 0 0 24px;
  line-height: 1.1;
}
.chapter-hero {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ============================================================
   PROGRESS MAP (inside chapter)
   ============================================================ */
.progress-map {
  background: var(--brand-tint-2);
  border-top: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  padding: 16px;
  margin: -16px -16px 32px;
  border-radius: 6px;
}
.pm-header { text-align: center; margin-bottom: 12px; }
.pm-you-here {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: 24px;
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
}
.pm-chapter {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--dark-bg);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.pm-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 8px;
}
.pm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 72px;
}
.pm-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-soft);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #D1D5DB;
  margin-bottom: 6px;
}
.pm-step.active .pm-circle {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(255,98,16,0.2);
}
.pm-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}
.pm-step.active .pm-label { color: var(--brand-dark); }
.pm-connector {
  flex-grow: 1;
  height: 2px;
  background: var(--border);
  margin: 20px -4px 0;
  align-self: flex-start;
}
.pm-connector.active { background: var(--brand); }

/* ============================================================
   CHAPTER BODY
   ============================================================ */
.chapter-body h2 {
  font-size: 24px;
  color: var(--dark-bg);
  margin: 40px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--brand);
  line-height: 1.2;
}
.chapter-body h3 {
  font-size: 18px;
  color: var(--brand);
  margin: 32px 0 10px;
  font-weight: 700;
}
.chapter-body h4 {
  font-size: 16px;
  margin: 24px 0 8px;
  font-weight: 700;
}
.chapter-body p {
  margin: 0 0 18px;
}
.chapter-body strong { color: var(--dark-bg); font-weight: 700; }
.chapter-body ol, .chapter-body ul {
  margin: 12px 0 20px;
  padding-left: 28px;
}
.chapter-body li { margin-bottom: 8px; }
.chapter-body ol li::marker {
  color: var(--brand);
  font-weight: 800;
}

.chapter-body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
  border: 2px solid var(--dark-bg);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.chapter-body th {
  background: var(--brand);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}
.chapter-body td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.chapter-body tr:nth-child(even) td { background: #FAFAFA; }
.chapter-body tr:last-child td { border-bottom: none; }

.concept-callout {
  margin: 32px 0;
  padding: 24px;
  background: var(--brand-tint);
  border: 2px solid var(--brand);
  border-radius: 8px;
  text-align: center;
}
.concept-callout img {
  max-width: 100%;
  margin: 0 auto 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.concept-callout figcaption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

.chapter-body blockquote {
  margin: 20px 0;
  padding: 16px 24px;
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  font-style: italic;
  font-size: 18px;
  color: var(--text);
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background: var(--brand);
  color: #fff;
  padding: 96px 48px;
  margin: 64px -48px 0;
  border-radius: 12px;
  text-align: center;
}
.footer-cta h2 {
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  margin: 0 0 16px;
}
.footer-url {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}
.footer-tagline {
  font-size: 18px;
  font-style: italic;
  opacity: 0.95;
  margin: 0 0 32px;
}
.footer-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--brand) !important;
  padding: 16px 32px;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: transform 0.2s;
}
.footer-cta-btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 40;
  transition: background 0.2s, transform 0.2s;
}
.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  body { font-size: 16px; }
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: flex; }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-h));
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 45;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
  }
  .sidebar.open { transform: translateX(0); }
  .reader { padding: 0 16px 64px; }
  .hero { margin: 16px -16px 0; padding: 48px 20px; border-radius: 8px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .hero-author { font-size: 16px; }
  .chapter { padding: 24px 20px; margin: 24px 0; border-radius: 8px; }
  .chapter-title { font-size: 26px; }
  .chapter-body h2 { font-size: 20px; }
  .chapter-body h3 { font-size: 16px; }
  .chapter-body table { font-size: 13px; }
  .chapter-body th, .chapter-body td { padding: 8px 10px; }
  .progress-map { padding: 10px 6px; margin: -8px -8px 24px; }
  .pm-step { width: 40px; }
  .pm-label { font-size: 7px; letter-spacing: 0; }
  .pm-circle { width: 24px; height: 24px; font-size: 10px; }
  .pm-you-here { font-size: 20px; }
  .pm-chapter { font-size: 10px; }
  .pm-connector { margin-top: 12px; }
  .footer-cta { margin: 48px -16px 0; padding: 48px 20px; border-radius: 8px; }
  .footer-cta h2 { font-size: 32px; }
  .footer-url { font-size: 20px; }
  .footer-tagline { font-size: 15px; }
  .brand-title { font-size: 13px; max-width: 40vw; }
  .btn-ghost { padding: 6px 10px; font-size: 12px; }
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .chapter-title { font-size: 22px; }
  .chapter-num { font-size: 10px; letter-spacing: 3px; }
  .pm-step { width: 34px; }
  .pm-label { display: none; }
  .brand-title { display: none; }
}

/* Sidebar overlay on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 44;
}
.sidebar-overlay.visible { display: block; }


/* ============================================================
   V2 ADDITIONS: data viz, big-stat callouts, dealer toolkit,
   LSG illustration wrappers, enhanced compare tables
   ============================================================ */

/* Big-stat callout: pulls a single number into a hero block */
.stat-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  color: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  margin: 36px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--brand);
}
.stat-callout::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,98,16,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.stat-callout .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.stat-callout .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #E5E5E5;
  max-width: 600px;
  position: relative;
  z-index: 1;
}
.stat-callout .stat-source {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Stat-grid: multiple stats in a row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.stat-card {
  background: var(--dark-surface);
  color: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border-top: 4px solid var(--brand);
}
.stat-card .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #E5E5E5;
}

/* Dealer's Toolkit: tactical sidebar box */
.dealer-toolkit {
  background: linear-gradient(135deg, var(--brand-tint) 0%, #fff 100%);
  border-left: 5px solid var(--brand);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
}
.dealer-toolkit::before {
  content: 'DEALER\'S TOOLKIT';
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
}
.dealer-toolkit h3, .dealer-toolkit h4 {
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark-bg);
}
.dealer-toolkit p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
}

/* LSG illustration wrapper */
.lsg-illust {
  display: block;
  margin: 36px auto;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  background: var(--dark-bg);
  padding: 24px;
}
.lsg-illust img {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 8px;
  pointer-events: none;
}
.lsg-illust .illust-caption {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: #9CA3AF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
}

/* Inline data-viz container */
.data-viz {
  margin: 36px 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.data-viz .viz-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-bg);
  margin: 0 0 8px;
}
.data-viz .viz-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-soft);
  margin: 0 0 24px;
}
.data-viz svg {
  display: block;
  width: 100%;
  height: auto;
}
.data-viz .viz-source {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Pull quote */
.pull-quote {
  border-left: 6px solid var(--brand);
  background: var(--brand-tint-2);
  padding: 24px 32px;
  margin: 32px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-bg);
  border-radius: 0 12px 12px 0;
}
.pull-quote::before {
  content: '"';
  font-size: 64px;
  color: var(--brand);
  line-height: 0;
  margin-right: 8px;
  vertical-align: -20px;
}

/* DIY vs LSG side-by-side comparison */
.path-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
.path-compare .path-card {
  padding: 28px;
  border-radius: 12px;
  border: 2px solid var(--border);
}
.path-compare .path-diy {
  background: #fff;
  border-color: var(--text-light);
}
.path-compare .path-lsg {
  background: linear-gradient(135deg, var(--brand-tint) 0%, #fff 100%);
  border-color: var(--brand);
}
.path-compare h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--dark-bg);
}
.path-compare .path-tag {
  display: inline-block;
  background: var(--dark-bg);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.path-compare .path-lsg .path-tag {
  background: var(--brand);
}
@media (max-width: 720px) {
  .path-compare { grid-template-columns: 1fr; }
}

/* Stage progression visual */
.stage-flow {
  margin: 36px 0;
  padding: 28px;
  background: var(--dark-bg);
  border-radius: 14px;
  color: #fff;
}
.stage-flow .flow-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
}
.stage-flow svg { display: block; width: 100%; height: auto; }

/* Big-number ratio (e.g., "2,400 dealers vs 7.9M homes") */
.ratio-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin: 32px 0;
  background: var(--dark-bg);
  padding: 36px 28px;
  border-radius: 14px;
  color: #fff;
}
.ratio-block .ratio-side {
  text-align: center;
}
.ratio-block .ratio-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}
.ratio-block .ratio-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-top: 8px;
  color: #E5E5E5;
}
.ratio-block .ratio-vs {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .ratio-block { grid-template-columns: 1fr; gap: 12px; }
  .ratio-block .ratio-vs { margin: 0 auto; }
}

/* Chapter hero override: switch SVG image background */
.chapter-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 36px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* ============================================================
   V3 LSG SITE HEADER (ports www.leadsystemsgo.com top nav)
   ============================================================ */
:root {
  --lsg-header-h: 72px;
}

.lsg-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
  height: var(--lsg-header-h);
  display: flex;
  align-items: center;
  background-color: var(--dark-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.lsg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}
.lsg-header__logo {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  flex-shrink: 0;
}
.lsg-header__logo-lead {
  background: #FFFFFF;
  color: var(--dark-bg);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  margin-right: 8px;
}
.lsg-header__logo-systems {
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}
.lsg-header__logo-go {
  font-weight: 700;
  font-size: 0.625rem;
  color: #FFFFFF;
  margin-left: 4px;
  align-self: flex-end;
}
.lsg-header__nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.lsg-header__nav a {
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  position: relative;
}
.lsg-header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: var(--brand);
  transition: width 250ms ease;
}
.lsg-header__nav a:hover::after { width: 100%; }

.lsg-header__phone {
  display: none;
  color: #9CA3AF;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}
.lsg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 250ms ease;
}
.lsg-btn-primary:hover { background: var(--brand-dark); color: #FFFFFF; }
.lsg-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.lsg-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 999px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.lsg-hamburger.active span:first-child { transform: rotate(45deg) translateY(7px); }
.lsg-hamburger.active span:nth-child(2) { opacity: 0; }
.lsg-hamburger.active span:last-child  { transform: rotate(-45deg) translateY(-7px); }

@media (min-width: 1024px) {
  .lsg-header__nav, .lsg-header__phone { display: flex; }
  .lsg-hamburger { display: none; }
}
@media (min-width: 1024px) {
  .lsg-header__phone { display: block; }
}

.lsg-mobile-nav {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 18, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1099;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.lsg-mobile-nav.active { opacity: 1; pointer-events: auto; }
.lsg-mobile-nav a {
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
}
.lsg-mobile-nav a:hover { color: var(--brand); }

/* Push existing playbook elements below the LSG header */
.progress-bar { top: var(--lsg-header-h) !important; }
.site-header   { top: var(--lsg-header-h) !important; }
.sidebar       { top: calc(var(--lsg-header-h) + var(--header-h)) !important; height: calc(100vh - var(--lsg-header-h) - var(--header-h)) !important; }
.reader        { padding-top: calc(var(--lsg-header-h) + var(--header-h) + 24px) !important; }
.password-gate { padding-top: var(--lsg-header-h); }

@media (max-width: 720px) {
  .lsg-header__inner { padding: 0 14px; gap: 8px; }
  .lsg-btn-primary { display: none; }
}
