@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --brand: #1a56db;
  --brand-dark: #1e40af;
  --brand-light: #eff6ff;
  --accent: #f59e0b;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1100px;
  --sidebar-w: 260px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text-primary); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-w); margin: 0 auto; }
.logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); }
.logo span { color: var(--brand); }
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav a { font-size: 14px; color: var(--text-secondary); padding: 6px 12px; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; }
.header-nav a:hover { color: var(--text-primary); background: var(--bg-secondary); }
.btn-primary {
  background: var(--brand); color: #fff !important;
  padding: 8px 18px !important; border-radius: var(--radius-md) !important;
  font-weight: 500; font-size: 14px !important;
  transition: background 0.15s, transform 0.1s !important;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-dark) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #fafbff 50%, #f5f3ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand);
  font-size: 12px; font-weight: 500; padding: 4px 12px;
  border-radius: 20px; margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); font-weight: 700; line-height: 1.15; color: var(--text-primary); margin-bottom: 16px; }
.hero p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; font-weight: 300; }
.search-wrap { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.search-wrap input {
  flex: 1; padding: 12px 16px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px;
  background: #fff; color: var(--text-primary);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap button {
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--radius-md);
  padding: 12px 22px; font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s;
}
.search-wrap button:hover { background: var(--brand-dark); }

/* ── AFFILIATE BANNER ── */
.affiliate-banner {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff; padding: 18px 24px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; text-align: center;
}
.affiliate-banner p { font-size: 15px; font-weight: 500; }
.affiliate-banner span { font-size: 13px; opacity: 0.85; }
.btn-banner {
  background: #fff; color: var(--brand);
  padding: 9px 20px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-banner:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* ── MAIN LAYOUT ── */
.page-main { max-width: var(--max-w); margin: 0 auto; padding: 48px 24px; }

/* ── SECTION HEADING ── */
.section-heading { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }

/* ── CATEGORY GRID ── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 48px; }
.cat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: block;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-icon { font-size: 24px; margin-bottom: 12px; }
.cat-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-muted); }

/* ── GUIDES LIST ── */
.guides-section { margin-bottom: 48px; }
.guides-list { display: flex; flex-direction: column; gap: 6px; }
.guide-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.guide-row:hover { border-color: var(--brand); background: var(--brand-light); }
.guide-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.guide-title { font-size: 14px; color: var(--text-primary); flex: 1; font-weight: 400; }
.guide-tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500; flex-shrink: 0; }
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-green { background: #f0fdf4; color: #15803d; }
.tag-amber { background: #fffbeb; color: #92400e; }
.tag-purple { background: #faf5ff; color: #6d28d9; }
.tag-red { background: #fef2f2; color: #991b1b; }
.tag-teal { background: #f0fdfa; color: #0f766e; }
.tag-pink { background: #fdf4ff; color: #86198f; }
.tag-gray { background: #f9fafb; color: #374151; }
.guide-arrow { color: var(--text-muted); font-size: 18px; flex-shrink: 0; }

/* ── GUIDE PAGE LAYOUT ── */
.guide-layout { display: flex; gap: 40px; max-width: var(--max-w); margin: 0 auto; padding: 40px 24px; align-items: flex-start; }
.guide-sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  position: sticky; top: 80px;
}
.guide-content { flex: 1; min-width: 0; }
.toc-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
}
.toc-heading { font-family: var(--font-display); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list a { font-size: 13px; color: var(--text-secondary); padding: 4px 8px; border-radius: var(--radius-sm); display: block; transition: color 0.15s, background 0.15s; }
.toc-list a:hover, .toc-list a.active { color: var(--brand); background: var(--brand-light); }
.sidebar-cta {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  border-radius: var(--radius-lg); padding: 20px; color: #fff; text-align: center;
}
.sidebar-cta p { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.sidebar-cta span { font-size: 12px; opacity: 0.85; display: block; margin-bottom: 14px; }
.sidebar-cta a {
  display: block; background: #fff; color: var(--brand);
  padding: 9px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  transition: transform 0.1s; text-decoration: none;
}
.sidebar-cta a:hover { transform: translateY(-1px); }
.sidebar-cta a.skool-link {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* ── GUIDE CONTENT ── */
.guide-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.guide-breadcrumb a { color: var(--brand); }
.guide-breadcrumb span { margin: 0 6px; }
.guide-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.guide-category-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; }
.guide-header h1 { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 34px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.guide-header p { font-size: 16px; color: var(--text-secondary); font-weight: 300; max-width: 600px; }
.guide-meta { display: flex; gap: 20px; margin-top: 16px; }
.guide-meta span { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ── STEPS ── */
.steps-container { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 24px; padding-bottom: 40px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}
.step-line { width: 2px; background: var(--border); flex: 1; margin-top: 8px; }
.step:last-child .step-line { display: none; }
.step-body { flex: 1; padding-top: 6px; }
.step-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.step-body p { font-size: 15px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.step-body ul { margin: 0 0 14px 0; padding-left: 20px; }
.step-body ul li { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; }
.step-note {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 14px; color: #92400e; margin-top: 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.step-tip {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 14px; color: #1e40af; margin-top: 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.screenshot-placeholder {
  background: var(--bg-tertiary); border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-md); padding: 32px;
  text-align: center; color: var(--text-muted);
  font-size: 13px; margin-top: 14px;
}
.screenshot-placeholder span { font-size: 28px; display: block; margin-bottom: 8px; }

/* ── INLINE AFFILIATE ── */
.inline-cta {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
  padding: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 36px 0;
}
.inline-cta-text p { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.inline-cta-text span { font-size: 13px; color: var(--text-secondary); }
.inline-cta > a {
  background: var(--brand); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background 0.15s;
}
.inline-cta > a:hover { background: var(--brand-dark); }
.inline-cta-text a { color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ── FOOTER ── */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-logo span { color: var(--brand); }
.footer-text { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-links a:hover { color: var(--brand); }
.footer-disclaimer { font-size: 11px; color: var(--text-muted); margin-top: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── SEARCH RESULTS ── */
#search-results { display: none; }
#search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  cursor: pointer; transition: background 0.12s;
  text-decoration: none;
}
.search-result-item:hover { background: var(--bg-secondary); }
.no-results { text-align: center; padding: 40px; color: var(--text-muted); font-size: 14px; }

/* ── PROGRESS BAR ── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--brand); z-index: 200;
  transition: width 0.1s linear;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .guide-layout { flex-direction: column; }
  .guide-sidebar { width: 100%; position: static; }
  .affiliate-banner { flex-direction: column; gap: 12px; }
  .inline-cta { flex-direction: column; }
  .hero { padding: 40px 16px; }
  .page-main { padding: 32px 16px; }
}

/* ── FAQ SECTION ── */
.faq-section { margin: 48px 0 32px; }
.faq-section > h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  margin-bottom: 20px; color: var(--text-primary);
}
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  padding: 16px 18px; color: var(--text-primary); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-secondary);
}
.faq-q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--text-muted); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s; }
.faq-a.open { max-height: 400px; padding: 14px 18px 16px; }
.faq-a p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── GUIDE INTRO SECTION ── */
.guide-intro { margin-bottom: 32px; }
.guide-intro h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin-bottom: 10px; color: var(--text-primary);
}
.guide-intro p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.guide-intro a { color: var(--brand); font-weight: 500; }

/* ── STEP H2 SECTION HEADERS ── */
.steps-container > h2, section[aria-label] > h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin-bottom: 20px; color: var(--text-primary);
}

/* ── BREADCRUMB PATH CHIPS (navigation paths like Settings → Phone Numbers) ── */
.nav-path {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px;
  background: #f0f7ff; border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: #1e40af; margin: 8px 0 4px; white-space: nowrap;
}
.nav-path .sep { color: #93c5fd; margin: 0 2px; font-weight: 400; }
.nav-path .final { color: #1e3a8a; }

/* Inline path (inside paragraph text) */
code.path {
  background: #f0f7ff; border: 1px solid #bfdbfe;
  border-radius: 4px; padding: 1px 7px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  color: #1e40af; white-space: nowrap;
}

/* ── ACCOUNT TYPE BADGE ── */
.account-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-md); padding: 8px 16px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.account-badge.agency {
  background: #faf5ff; border: 1.5px solid #c4b5fd; color: #5b21b6;
}
.account-badge.subaccount {
  background: #ecfdf5; border: 1.5px solid #6ee7b7; color: #065f46;
}
.account-badge.both {
  background: #fffbeb; border: 1.5px solid #fcd34d; color: #92400e;
}
.account-badge .badge-icon { font-size: 16px; }

/* ── STEP NOTE / WARNING / TIP BOXES ── */
.step-note {
  background: #fffbeb; border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; color: #78350f; margin: 14px 0 4px;
  line-height: 1.6;
}
.step-note strong { color: #92400e; }
.step-warning {
  background: #fef2f2; border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; color: #991b1b; margin: 14px 0 4px;
  line-height: 1.6;
}
.step-tip {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 13px; color: #1e3a8a; margin: 14px 0 4px;
  line-height: 1.6;
}
.step-tip strong, .step-warning strong { font-weight: 600; }

/* ── SECTION DIVIDER within a guide ── */
.guide-section-divider {
  border: none; border-top: 2px solid var(--border);
  margin: 40px 0 32px;
}
.guide-section-header {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.guide-section-header .section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.guide-section-sub {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6;
}

/* ── STEP BODY ENHANCEMENTS ── */
.step-body ul { padding-left: 20px; margin: 10px 0; }
.step-body ul li { font-size: 15px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.65; }
.step-body ol { padding-left: 20px; margin: 10px 0; }
.step-body ol li { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.65; }
.step-body strong { color: var(--text-primary); font-weight: 500; }
