/* Headings use the same typeface as stevesalinaspm.com, with a calm scale. */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.85rem, 3.1vw, 2.8rem) !important; line-height: 1.2 !important; }
h2 { font-size: clamp(1.4rem, 2.1vw, 1.85rem) !important; line-height: 1.3 !important; }
h3 { font-size: clamp(1rem, 1.2vw, 1.15rem) !important; line-height: 1.4 !important; }
h4, h5, h6 { font-size: 0.95rem !important; line-height: 1.45 !important; }
.section-title, .mini-panel-title, .modal-title, .control-title, .finding-title, .rec-title {
  font-family: 'Poppins', sans-serif !important;
  letter-spacing: 0 !important;
}
/* Pricing uses divs for plan titles and prices, rather than heading tags. */
.plan-name { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.plan-price .amount { font-family: 'Poppins', sans-serif; font-size: 2.25rem; font-weight: 600; line-height: 1.2; }
.plan-price .amount.custom { font-size: 1.5rem; }
.plan-limit { gap: 0.75rem; }
.plan-limit .lv { text-align: right; }
.pricing-grid > *, .faq-grid > *, .persona-layout > *, .hero-inner > * { min-width: 0; }
@media (max-width: 950px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner, .persona-layout { gap: 2.5rem; }
}
@media (max-width: 760px) {
  /* Keep the existing navigation visible without forcing a desktop-width page. */
  nav:has(.nav-links) { position: relative; height: auto; min-height: 68px; padding: 1rem 1.25rem; flex-wrap: wrap; gap: 1rem; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: .75rem 1.15rem; }
  .nav-cta { display: inline-block; }
  .page-hero, .shakedown-hero { padding: 4rem 1.25rem 3rem; }
  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 0; min-height: 0; }
  .hero-left { padding: 4rem 1.25rem 3rem; }
  .hero-inner, .persona-layout, .problem-grid, .not-grid, .pricing-grid, .faq-grid, .cap-grid, .req-grid, .scenario-grid, .deliverable-grid, .no-risk-grid, .proof-items, .doc-grid, .founders-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps-grid, .shakedown-specs, .shakedown-steps, .timeline-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .flow-step { grid-template-columns: 46px minmax(0, 1fr); }
  .step-block { grid-template-columns: 40px minmax(0, 1fr); gap: 0 1rem; }
  .callout-box { display: block; padding: 1.5rem; }
  .callout-cta { margin-top: 1.5rem; }
  .plan-header, .plan-body { padding-left: 1.5rem; padding-right: 1.5rem; }
  footer { padding: 2.5rem 1.25rem; }
  .footer-inner, .footer-left { flex-wrap: wrap; gap: 1rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 760px) {
  /* Keep the dense sample dashboard readable without squeezing its data table. */
  .header:has(.logo-mark) { height: auto; padding: .75rem 1rem; flex-wrap: wrap; gap: .75rem; }
  .header:has(.logo-mark) > nav { order: 3; width: 100%; margin-left: 0 !important; overflow-x: auto; }
  .header:has(.logo-mark) .nav-item { flex: 0 0 auto; }
  .header-right { gap: .75rem; }
  .main:has(.summary-row) { padding: 1rem; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-row .main-health { grid-column: 1 / -1; }
  .section-header { flex-wrap: wrap; gap: .5rem; }
  .controls-table { overflow-x: auto; }
  .controls-table .table-head, .controls-table .control-row { min-width: 820px; }
  .bottom-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 950px) {
  .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tab-nav { flex-wrap: wrap; }
  .tab-btn { padding: .75rem 1rem; }
  .persona-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-width: 0; }
  .contact-value { overflow-wrap: anywhere; }
  .contact-item > div { min-width: 0; }
}
@media (max-width: 760px) {
  .modal { max-width: calc(100vw - 2rem); }
  .diag-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Apply the same readable type treatment to display text that is not a heading. */
.nav-wordmark, .btn-primary, .btn-secondary, .btn-plan, .form-submit, .tab-btn,
.stat-num, .proof-num, .spec-val, .metric-num, .no-risk-val, .contact-name,
.step-num, .flow-num, .sd-num, .tl-marker, .founder-avatar, .byline-avatar {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.btn-primary, .btn-secondary, .btn-plan, .form-submit, .tab-btn { text-transform: none !important; }
.nav-wordmark { font-size: 1.2rem; }
.stat-num, .metric-num, .no-risk-val { font-size: clamp(1.65rem, 2.5vw, 2rem) !important; line-height: 1.2 !important; }
.spec-val { font-size: clamp(1.3rem, 2vw, 1.65rem) !important; line-height: 1.2 !important; }
.proof-num { font-size: clamp(3.25rem, 7vw, 5rem) !important; line-height: 1.05 !important; }
.contact-name { font-size: 1.25rem !important; line-height: 1.3 !important; }
.step-num, .flow-num, .sd-num, .tl-marker { font-size: 1rem !important; }
@media (max-width: 760px) {
  .btn-primary, .btn-secondary, .btn-plan, .form-submit { white-space: normal; }
}

/* Keep the Shakedown summary values and labels aligned. */
.shakedown-hero .hero-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.shakedown-hero .hero-specs .spec { min-width: 0; }
.shakedown-hero .hero-specs .spec-val { white-space: nowrap; font-size: clamp(.9rem, 1.4vw, 1.3rem) !important; }
@media (max-width: 480px) {
  .shakedown-hero .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}
