/* Approved layout/readability refinements. Load after the existing stylesheets. */

/* One container, heading family and button treatment across the three pages. */
body {
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; }
.hero h1, .intro h1, .team-intro h1 {
  font-size: clamp(38px, 4.1vw, 62px);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.button, .button.cream, .actions .button, .hero .actions .button,
.header-inner .button.small {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  min-height: 44px;
  padding: 16px 20px;
  border: 1px solid transparent;
  background: #1d4ed8;
  color: #fff;
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  white-space: normal;
}
.button:hover, .button.cream:hover { background: #1e40af; }
.header-inner .button.small { padding: 12px 18px; font-size: 14px; }
.full-service .button { display: flex; justify-content: center; }

/* Reset Pricing's old page-wide header/footer rules for the shared markup. */
.site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 96px;
}
.header-inner .d1-wordmark {
  display: block;
  flex: 0 1 321px;
  min-width: 0;
  line-height: 0;
}
.header-inner .d1-wordmark img {
  display: block;
  width: 100% !important; /* Supersedes the older fixed 255px !important rule. */
  max-width: 321px;
  height: auto;
}
.header-inner nav { flex: 0 0 auto; gap: 18px; font-size: 14px; }
.menu-toggle { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
body > footer { display: block; padding: 0; border: 0; color: #475569; font: inherit; }
.footer-main p, .footer-main > a:last-child, .footer-bottom { font-size: 13px; }

/* Shrink grid/flex items at their own boundaries instead of clipping the page. */
.hero-grid, .section-heading, .reporting-grid, .about-grid, .contact-grid,
.pricing-grid, .comparison, .pricing-note { align-items: start; }
.hero-grid > *, .section-heading > *, .reporting-grid > *, .about-grid > *,
.contact-grid > *, .pricing-grid > *, .comparison > *, .pricing-note > *,
.systems-inner > *, .service, .service-panel, .team-cta > .wrap > * {
  min-width: 0;
}
.balanced-services .service-panel summary h3 { min-height: 2.5em; }
.balanced-services .service-panel summary p { margin-top: 12px; }
.team-cta .button { flex-shrink: 1; }
.consultation .button { flex-shrink: 0; }
.price { white-space: normal; }
.price strong { white-space: nowrap; }

/* Slate borders have at least 4.3:1 contrast against the white/pale form surfaces. */
input, textarea, select { border-color: #64748b; font-size: 16px; }
.service-options, .service-choice { border-color: #64748b !important; }
.service-choice:has(input:checked) { border-color: #1d4ed8 !important; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 4px; }
.service-choice:has(input:focus-visible) { outline: 3px solid #1d4ed8; outline-offset: 4px; }

/* Readable reporting labels; any wide numeric table scrolls inside its own card. */
.report-title .eyebrow, .sample-label, .report-title p:last-child,
.report-footer, .report-demo caption, .report-demo thead th,
.report-observation .eyebrow, .report-tabs button, .report-observation p,
.sample-row strong, .sample-row p, .report-demo table, .status {
  font-size: 14px;
  line-height: 1.55;
}
.report-topline { flex-wrap: wrap; gap: 12px; }
.report-tabs button { min-width: 0; min-height: 48px; overflow-wrap: anywhere; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.report-demo table { white-space: normal; }
.report-demo td { white-space: nowrap; }
.report-demo th:first-child { min-width: 105px; }
.sample-row { flex-wrap: wrap; }
.status { max-width: 100%; white-space: normal; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 56px); }
  html { scroll-padding-top: 98px; }
  .header-inner { min-height: 82px; gap: 16px; }
  .header-inner .d1-wordmark { flex-basis: 270px; }
  .menu-toggle {
    display: block;
    padding: 12px 0 12px 12px;
    border: 0;
    background: none;
    font: 16px/1.5 Arial, Helvetica, sans-serif;
  }
  .menu-toggle span { margin-left: 8px; }
  .header-inner nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 24px 28px;
    border-bottom: 1px solid #cbd5e1;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    font-size: 16px;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
  }
  .header-inner nav.open { display: flex; }
  .header-inner .button.small { font-size: 16px; }
}
@media (max-width: 800px) {
  .team-cta > .wrap { flex-wrap: wrap; }
  .team-cta .button { flex-shrink: 1; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .header-inner .d1-wordmark { flex-basis: 260px; }
  .header-inner nav { padding-inline: 20px; }
  .balanced-services .service-panel summary h3 { min-height: 0; }
  .report-tabs { padding-inline: 4px; }
  .report-tabs button { padding: 12px 5px; }
  .report-demo th, .report-demo td { padding-inline: 4px; }
  .consultation .button { justify-content: center; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 36px); }
}
