
#client-pdf-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #f5f5f5; z-index: 9999; overflow-y: auto;
  font-family: 'Inter', system-ui, sans-serif;
}
.cpdf-page {
  max-width: 820px; margin: 0 auto; padding: 40px 20px 60px;
}
.cpdf-close {
  position: fixed; top: 16px; right: 16px; z-index: 10000;
  background: #1a1a1a; color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.cpdf-print {
  position: fixed; top: 16px; right: 140px; z-index: 10000;
  background: #f5c842; color: #1a1a1a; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; font-weight: 700;
}
.cpdf-header {
  background: #1a1a1a; color: #fff; border-radius: 12px;
  padding: 32px 40px; margin-bottom: 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.cpdf-header h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.cpdf-header-sub { font-size: 13px; color: rgba(255,255,255,.45); margin: 0; }
.cpdf-company { font-size: 18px; font-weight: 700; color: #f5c842; }
.cpdf-company-meta { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }
.cpdf-section {
  background: #fff; border-radius: 12px; padding: 28px 32px;
  margin-bottom: 16px; border: 1px solid #e5e7eb;
}
.cpdf-section-title {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #9ca3af; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.cpdf-section-title::after { content: ''; flex: 1; height: 1px; background: #f0f0f0; }
.cpdf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cpdf-kpi {
  padding: 14px 0; border-bottom: 1px solid #f5f5f5;
}
.cpdf-kpi:nth-child(odd) { padding-right: 24px; border-right: 1px solid #f5f5f5; }
.cpdf-kpi:nth-child(even) { padding-left: 24px; }
.cpdf-kpi-label { font-size: 11px; color: #9ca3af; margin-bottom: 4px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.cpdf-kpi-val { font-size: 22px; font-weight: 800; color: #111; }
.cpdf-kpi-val.pos { color: #16a34a; }
.cpdf-kpi-val.neg { color: #dc2626; }
.cpdf-kpi-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }
.cpdf-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #f9f9f9; }
.cpdf-row-label { color: #6b7280; }
.cpdf-row-val { font-weight: 600; color: #111; }
.cpdf-row-val.pos { color: #16a34a; }
.cpdf-row-val.neg { color: #dc2626; }
.cpdf-summary { font-size: 15px; line-height: 1.75; color: #374151; }
.cpdf-summary p { margin: 0 0 14px; }
.cpdf-summary-placeholder { color: #9ca3af; font-style: italic; font-size: 14px; }
.cpdf-months { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.cpdf-month { background: #f8f9fa; border-radius: 10px; padding: 16px; text-align: center; }
.cpdf-month-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; margin-bottom: 8px; }
.cpdf-month-pill { font-size: 10px; font-weight: 700; background: #1a1a1a; color: #f5c842; border-radius: 20px; padding: 2px 8px; margin-bottom: 10px; display: inline-block; }
.cpdf-month-net { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.cpdf-month-net.pos { color: #16a34a; }
.cpdf-month-net.neg { color: #dc2626; }
.cpdf-month-sub { font-size: 12px; color: #6b7280; }
.cpdf-verdict { border-radius: 10px; padding: 16px 20px; font-size: 14px; font-weight: 600; }
.cpdf-verdict.good { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cpdf-verdict.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cpdf-verdict.bad  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cpdf-pkg-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 16px; background: #f8f9fa; border-radius: 10px; }
.cpdf-pkg-price { font-size: 28px; font-weight: 800; color: #1a1a1a; }
.cpdf-pkg-name { font-size: 13px; color: #6b7280; margin-top: 2px; }
.cpdf-roi { text-align: right; }
.cpdf-roi-val { font-size: 22px; font-weight: 800; color: #16a34a; }
.cpdf-roi-sub { font-size: 12px; color: #6b7280; }
.cpdf-footer {
  background: #1a1a1a; color: #fff; border-radius: 12px;
  padding: 20px 32px; display: flex; justify-content: space-between; align-items: center;
  margin-top: 20px;
}
.cpdf-footer-brand { color: #f5c842; font-weight: 700; font-size: 14px; }
.cpdf-footer-contact { color: rgba(255,255,255,.4); font-size: 12px; }

/* ── INSIGHT QUOTE in PDF ── */
.cpdf-insight-quote {
  margin: 14px 0 0;
  padding: 16px 20px 16px 24px;
  background: #fef9ec;
  border-left: 4px solid #f5c842;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.65;
}
.cpdf-insight-quote::before {
  content: '\201C';
  font-size: 32px;
  color: #f5c842;
  line-height: 0;
  vertical-align: -12px;
  margin-right: 4px;
}
.cpdf-insight-moment {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
  font-style: normal;
  padding-left: 4px;
}
.cpdf-insight-ai {
  margin-top: 12px;
  font-size: 13px;
  color: #374151;
  font-style: normal;
  line-height: 1.7;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
@media print {
  body { margin: 0; font-size: 12px; }
  .sidebar, .btn-row, .progress-row, .scenario-row,
  .rpt-gen-btn, .rpt-roadmap-gen-btn, .card-title,
  #pkg_grid, #pkg_result, #offer_content { display: none !important; }
  .main { margin-left: 0 !important; padding: 0 !important; }
  .app { display: block !important; }
  section.section { display: none !important; }
  section#s7.section { display: block !important; }
  .card { box-shadow: none !important; border: 1px solid #e5e1d8 !important; break-inside: avoid; margin-bottom: 12px; }
  .rpt-header, .rpt-footer, .rpt-month, .rpt-verdict,
  .rpt-tech-card, .rpt-readiness-item, .rpt-score-bar-fill {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .rpt-section { page-break-inside: avoid; }
  .rpt-months, .rpt-roadmap-phase, .rpt-tech-grid { page-break-inside: avoid; }
  h1 { font-size: 18px; }
}

/* ── Technical Audit ───────────────────────────────────── */
.rpt-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 8px; }
.rpt-tech-card { background: #f8f9fa; border-radius: 10px; padding: 16px; border: 1px solid #e5e7eb; }
.rpt-tech-card-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9ca3af; margin-bottom: 12px; }
.rpt-tech-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.rpt-tech-item:last-child { border-bottom: none; }
.rpt-tech-label { color: #6b7280; }
.rpt-tech-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.rpt-tech-badge.ok  { background: #dcfce7; color: #166534; }
.rpt-tech-badge.warn { background: #fef9c3; color: #854d0e; }
.rpt-tech-badge.bad  { background: #fee2e2; color: #991b1b; }
.rpt-tech-badge.na   { background: #f3f4f6; color: #9ca3af; }
.rpt-readiness { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.rpt-readiness-item { text-align: center; padding: 12px 8px; border-radius: 10px; border: 1px solid #e5e7eb; }
.rpt-readiness-icon { font-size: 20px; margin-bottom: 4px; }
.rpt-readiness-label { font-size: 10px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.rpt-readiness-status { font-size: 11px; font-weight: 600; margin-top: 4px; }
.rpt-score-bar { margin-top: 16px; }
.rpt-score-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rpt-score-bar-label { font-size: 12px; color: #6b7280; width: 140px; flex-shrink: 0; }
.rpt-score-bar-track { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; position: relative; }
.rpt-score-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.rpt-score-bar-val { font-size: 12px; font-weight: 700; width: 36px; text-align: right; }
.rpt-score-bar-bench { font-size: 10px; color: #9ca3af; white-space: nowrap; }

/* ── Roadmap ────────────────────────────────────────────── */
.rpt-roadmap-gen-btn { display: inline-flex; align-items: center; gap: 6px; background: #1a1a1a; color: #f5c842; border: none; border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 16px; }
.rpt-roadmap-gen-btn:hover { background: #2a2a2a; }
.rpt-roadmap-gen-btn:disabled { opacity: .6; cursor: default; }
.rpt-roadmap-content { font-size: 13px; line-height: 1.7; color: #374151; }
.rpt-roadmap-phase { margin-bottom: 28px; border-radius: 10px; border: 1px solid #e5e7eb; overflow: hidden; }
.rpt-roadmap-phase-header { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #1a1a1a; padding: 12px 16px; background: #f8f9fa; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 8px; }
.rpt-roadmap-phase-badge { background: #1a1a1a; color: #f5c842; font-size: 10px; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.rpt-roadmap-step { margin: 10px 12px; padding: 12px 14px; background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; border-left: 3px solid #f5c842; }
.rpt-roadmap-step:last-child { margin-bottom: 12px; }
.rpt-roadmap-step-title { font-weight: 700; color: #111; margin-bottom: 6px; font-size: 13px; line-height: 1.4; }
.rpt-roadmap-step-what { color: #374151; font-size: 12px; margin-bottom: 4px; }
.rpt-roadmap-step-how { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.rpt-roadmap-step-kpi { font-size: 11px; font-weight: 700; color: #16a34a; background: #f0fdf4; padding: 4px 10px; border-radius: 20px; display: inline-block; border: 1px solid #bbf7d0; }
.rpt-roadmap-result { margin-top: 16px; padding: 14px; background: #1a1a1a; border-radius: 10px; }
.rpt-roadmap-result-light { margin-top: 16px; padding: 0; background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 10px; color: #374151; page-break-inside: avoid; }
.rpt-roadmap-result-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.rpt-roadmap-result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.rpt-roadmap-result-item { text-align: center; }
.rpt-roadmap-result-label { font-size: 10px; color: rgba(255,255,255,.4); margin-bottom: 2px; }
.rpt-roadmap-result-val { font-size: 16px; font-weight: 800; color: #f5c842; }
.rpt-roadmap-placeholder { color: #9ca3af; font-style: italic; font-size: 13px; }
