/* ============================================================
   The Mobile Home Investor's Playbook - Web Reader
   Lead Systems Go brand. Orange #FF6210, Outfit + Source Sans 3.
   ============================================================ */

: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: 'Outfit', 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: 'Source Sans 3', -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: 'Outfit', 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 {
  background: var(--dark-bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 64px;
  min-height: calc(100vh - var(--header-h));
}
/* During the gate, hide the chapter-sidebar hamburger (the sidebar is hidden too) */
body.is-gated .menu-toggle { display: none; }
.gate-card {
  background: var(--dark-surface);
  max-width: 560px;
  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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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); }

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
  color: rgba(255,255,255,0.5);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.gate-divider::before, .gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

.gate-embed { text-align: left; }
.gate-embed-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
  text-align: center;
  line-height: 1.5;
}
.gate-embed-iframe {
  width: 100%;
  min-height: 540px;
  border: none;
  border-radius: 6px;
  background: #fff;
  display: block;
}

/* ============================================================
   ACCESS-GRANTED BANNER
   ============================================================ */
.access-banner {
  position: sticky;
  top: var(--header-h);
  z-index: 49;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.access-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.access-banner__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.access-banner__text { flex: 1; }
.access-banner__text strong {
  background: rgba(0,0,0,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-weight: 800;
}
.access-banner__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.access-banner__close:hover { opacity: 1; }

@media (max-width: 600px) {
  .access-banner__inner { padding: 10px 16px; font-size: 13px; }
  .access-banner__text { font-size: 12.5px; }
}

/* ============================================================
   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;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.header-brand:hover { text-decoration: none; }
.header-brand:hover .brand-title { color: var(--brand); }
.brand-mark {
  background: var(--brand);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 4px;
}
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lsg-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  margin-left: 28px;
  min-width: 0;
}
.lsg-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}
.lsg-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.lsg-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}
.lsg-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lsg-phone {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.lsg-phone:hover { color: var(--brand); text-decoration: none; }
.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: 'Outfit', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================
   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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', sans-serif;
  font-weight: 600;
  margin: 0 0 24px;
}
.hero-author {
  color: #fff;
  font-family: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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: 'Outfit', 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; }
  .btn-cta { padding: 7px 12px; font-size: 12px; }
  .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 20px; }
  .lsg-nav { display: none; }
  .lsg-phone { display: none; }
  .header-brand { flex: 1; }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .lsg-nav { gap: 14px; margin-left: 18px; }
  .lsg-nav a { font-size: 13px; }
  .lsg-nav a[href*="#about"],
  .lsg-nav a[href*="#industries"] { display: none; }
  .lsg-phone { display: none; }
}

@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; }

