/* InspectionPress-only marketing typography + title-flow corrections v4. */
/* InspectionPress software marketing typography v3.
   Standalone additive stylesheet. Loaded exclusively by
   resources/views/inspectionpress/public/layout.blade.php on inspection.press.
   Keeps both localStorage-controlled light and dark themes intact.
   Marketing typography only: preserve the browser-only product demos, app UI,
   sidebar controls and production report writer. Flat cards and controls. */

/* Typographic scale: headlines retain their v2 sizes; body content no longer
   uses caption-sized 12–13px copy. */
body.ips-body {
  --ips-type-copy: 16px;
  --ips-type-intro: 17px;
  --ips-type-secondary: 15px;
  --ips-type-label: 12px;
  --ips-type-action: 15px;
}

/* Navigation and section introductions */
body.ips-body .ips-header .ips-primary-nav > a:not(.ips-nav-contact),
body.ips-body .ips-header .ips-nav-dropdown > summary,
body.ips-body .ips-header .ips-dropdown-links a,
body.ips-body .ips-header .ips-nav-contact,
body.ips-body .ips-header .ips-primary-nav .ips-nav-login {
  font-size: 14px !important;
}
body.ips-body .ips-main .ips-kicker { font-size: 12px !important; line-height: 1.55 !important; }
body.ips-body .ips-main .ips-lead,
body.ips-body .ips-main .ips-section-header > p,
body.ips-body .ips-main .ips-deployment-grid > div:first-child > p,
body.ips-body .ips-main .ips-about-grid p,
body.ips-body .ips-main .ips-faq-grid > div:first-child > p,
body.ips-body .ips-main .ips-page-hero-inner > p,
body.ips-body .ips-main .ips-dark-feature-grid > div:first-child > p,
body.ips-body .ips-main .ips-final-cta p {
  font-size: var(--ips-type-intro) !important;
  line-height: 1.75 !important;
}
body.ips-body .ips-main .ips-button,
body.ips-body .ips-main .ips-inline-link {
  font-size: var(--ips-type-action) !important;
  line-height: 1.4 !important;
}
body.ips-body .ips-main .ips-hero-foot {
  font-size: 14px !important;
  line-height: 1.65 !important;
}
body.ips-body .ips-main .ips-logos-strip .ips-container > span,
body.ips-body .ips-main .ips-logos-strip .ips-container > div > span {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

/* Front-page features: titles remain on the same row as their FA icons. */
body.ips-body .ips-main .ips-feature-heading > h3 { font-size: 20px !important; line-height: 1.35 !important; }
body.ips-body .ips-main .ips-feature > p,
body.ips-body .ips-main .ips-deployment-option-body > p,
body.ips-body .ips-main .ips-contact-aside article > p,
body.ips-body .ips-main .ips-showcase-closing p {
  font-size: var(--ips-type-copy) !important;
  line-height: 1.7 !important;
}
body.ips-body .ips-main .ips-deployment-option-heading > h3,
body.ips-body .ips-main .ips-roles-list > a strong,
body.ips-body .ips-main .ips-about-principle strong {font-size: 17px !important;line-height: 1.4 !important;}
body.ips-body .ips-main .ips-roles-list > a small,
body.ips-body .ips-main .ips-about-principle small {font-size: 15px !important;line-height: 1.55 !important;}

/* Role/demo cards: ordinary descriptions must not look like footnotes.
   Preserve the tidy icon/title header and meaningful action text from v2. */
body.ips-body .ips-main .ips-demo-card-heading strong,
body.ips-body .ips-main .ips-demo-grid > a > strong {font-size: 18px !important;line-height: 1.35 !important;}
body.ips-body .ips-main .ips-demo-card-description,
body.ips-body .ips-main .ips-demo-grid > a > span.ips-demo-card-description {
  font-size: 16px !important;
  line-height: 1.6 !important;
}
body.ips-body .ips-main .ips-demo-card-action {
  font-size: 14px !important;
  line-height: 1.5 !important;
  gap: 8px !important;
}
body.ips-body .ips-main .ips-demo-grid > a {
  min-height: 184px !important;
  gap: 13px !important;
}

/* Pricing/hosting, FAQs and contact: readable paragraph and input sizes. */
body.ips-body .ips-main .ips-pricing-card-head > p,
body.ips-body .ips-main .ips-pricing-card li,
body.ips-body .ips-main .ips-process-grid article > p,
body.ips-body .ips-main .ips-faq-list details > p,
body.ips-body .ips-main .ips-form-intro,
body.ips-body .ips-main .ips-pricing-included p {
  font-size: var(--ips-type-copy) !important;
  line-height: 1.7 !important;
}
body.ips-body .ips-main .ips-included-grid strong,
body.ips-body .ips-main .ips-process-heading > h3,
body.ips-body .ips-main .ips-contact-aside-heading > h3 {line-height: 1.35 !important;}
body.ips-body .ips-main .ips-included-grid strong {font-size:16px !important;}
body.ips-body .ips-main .ips-pricing-disclosure,
body.ips-body .ips-main .ips-pricing-quote small,
body.ips-body .ips-main .ips-form-disclaimer {
  font-size:14px !important;line-height:1.65 !important;
}
body.ips-body .ips-main .ips-faq-list summary {font-size:17px !important;line-height:1.5 !important;}
body.ips-body .ips-main .ips-form-grid label {
  font-size: 15px !important;
  line-height: 1.55 !important;
}
body.ips-body .ips-main .ips-form-grid input,
body.ips-body .ips-main .ips-form-grid textarea,
body.ips-body .ips-main .ips-form-grid select {font-size: 16px !important;line-height:1.5 !important;}
body.ips-body .ips-main .ips-form-grid label small {font-size: 13px !important;}

/* Sitewide marketing footer text is still copy, not a micro-caption. */
body.ips-body .ips-footer .ips-footer-brand > p,
body.ips-body .ips-footer nav a,
body.ips-body .ips-footer nav button {font-size:14px !important;line-height:1.65 !important;}
body.ips-body .ips-footer .ips-footer-origin,
body.ips-body .ips-footer .ips-footer-bottom {font-size:13px !important;line-height:1.6 !important;}
body.ips-body .ips-footer nav strong {font-size:12px !important;line-height:1.5 !important;}

/* Home's dashboard is an illustration, not a real form. Make its explanatory
   labels legible without expanding its layout into a broken second-column demo. */
body.ips-body .ips-main .ips-preview-greeting > div > strong {font-size:19px !important;}
body.ips-body .ips-main .ips-preview-stats article > strong,
body.ips-body .ips-main .ips-preview-activity-heading strong,
body.ips-body .ips-main .ips-preview-step > div > strong {font-size:12.5px !important;line-height:1.45 !important;}
body.ips-body .ips-main .ips-preview-stats article > span,
body.ips-body .ips-main .ips-preview-step > div > small,
body.ips-body .ips-main .ips-preview-caption {
  font-size:11px !important;
  line-height:1.5 !important;
}
body.ips-body .ips-main .ips-preview-greeting > div > small,
body.ips-body .ips-main .ips-preview-stats article > small,
body.ips-body .ips-main .ips-preview-top {font-size:10.5px !important;}

/* Software showcase marketing copy only. Never apply to .ip-real-demo,
   .ipix-demo-frame, .ipsh3-panels, .ipcx-demo-panel, or report editor controls. */
body.ips-body .ips-main .ps-showcase :is(
  .ipix-section-title, .ipcl-section-title, .ipcx-section-title,
  .ipax-section-title, .ipsh3-section-head, .ip14-section-head,
  .ip142-section-intro, .ip14-hero-grid, .ipsh3-workflow,
  .ipsh3-bottom, .ipix-specialty-story
) p {
  font-size:17px !important;
  line-height:1.7 !important;
}
body.ips-body .ips-main .ps-showcase :is(
  .ipix-process > article, .ipix-feature-grid > article,
  .ipix-specialty-grid > article, .ipcl-benefits > article,
  .ipcl-cap-grid > article, .ipcx-benefit-grid > article,
  .ipax-feature-card, .ip14-feature, .ip142-step,
  .ip142-capability, .ip142-specialty,
  .ip143-agency-group, .ip143-permits-callout,
  .ipsh3-role-card, .ipsh3-flow-grid > div
) > p {
  font-size:16px !important;
  line-height:1.65 !important;
}
body.ips-body .ips-main .ps-showcase :is(
  .ip142-capability, .ip142-specialty, .ip14-feature,
  .ip143-agency-group, .ipix-feature-grid > article,
  .ipcl-benefits > article, .ipcx-benefit-grid > article
) li {
  font-size:15px !important;
  line-height:1.65 !important;
}
body.ips-body .ips-main .ps-showcase .ips-polished-card-words > :is(h3,h4,strong) {
  font-size:18px !important;
  line-height:1.4 !important;
}
/* Eyebrows remain secondary; unlike normal body text they are intentionally small. */
body.ips-body .ips-main .ps-showcase .ips-polished-card-words > .ips-card-eyebrow {
  font-size:11.5px !important;
  line-height:1.4 !important;
}
body.ips-body .ips-main .ps-showcase :is(.ip142-step,.ip142-capability,.ip142-specialty) > strong {
  font-size:17px !important;
  line-height:1.35 !important;
}
body.ips-body .ips-main .ps-showcase .ip142-capability > h3 {font-size:20px !important;line-height:1.35 !important;}
body.ips-body .ips-main .ps-showcase .ip142-notice p {font-size:15px !important;line-height:1.65 !important;}

/* Mobile: do not shrink body copy back to caption sizes; preserve tap targets
   and avoid iOS Safari form-input zoom. */
@media (max-width:660px) {
  body.ips-body .ips-main .ips-section-header > p,
  body.ips-body .ips-main .ips-page-hero-inner > p,
  body.ips-body .ips-main .ips-about-grid p,
  body.ips-body .ips-main .ips-dark-feature-grid > div:first-child > p,
  body.ips-body .ips-main .ips-final-cta p {font-size:16px !important;line-height:1.7 !important;}
  body.ips-body .ips-main .ips-demo-grid > a {min-height:0 !important;}
  body.ips-body .ips-main .ips-logos-strip .ips-container > div > span {font-size:11px !important;}
  body.ips-body .ips-main .ips-preview-stats article > span {font-size:10px !important;}
}


/* v4: normalize remaining legacy showcase card titles so they read horizontally,
   not as narrow stacked columns. Applies only to inspection.press public marketing. */
body.ips-body .ips-main .ps-showcase .ips-polished-card-words {
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:3px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  max-width:none !important;
  text-align:left !important;
}
body.ips-body .ips-main .ps-showcase .ips-polished-card-words > :is(h3,h4,strong,span) {
  display:block !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  text-wrap:balance;
}
body.ips-body .ips-main .ps-showcase .ips-polished-card-header {
  align-items:flex-start !important;
}
/* Only the icon is fixed-width. Never constrain an entire title/header to 42px. */
body.ips-body .ips-main .ps-showcase .ips-polished-card-header > :first-child,
body.ips-body .ips-main .ps-showcase .ip142-specialty > .ip142-specialty-icon {
  flex:0 0 42px !important;
}
/* Firm capability/specialty cards */
body.ips-body .ips-main .ps-showcase .ip142-capability > h3,
body.ips-body .ips-main .ps-showcase .ip142-specialty > h3,
body.ips-body .ips-main .ps-showcase .ip142-capability .ips-polished-card-words > h3,
body.ips-body .ips-main .ps-showcase .ip142-specialty .ips-polished-card-words > h3 {
  font-size:17px !important;
  line-height:1.34 !important;
  letter-spacing:-0.02em !important;
  max-width:none !important;
}
body.ips-body .ips-main .ps-showcase .ip142-capability .ips-polished-card-header,
body.ips-body .ips-main .ps-showcase .ip142-specialty .ips-polished-card-header {
  margin-bottom:14px !important;
}
body.ips-body .ips-main .ps-showcase .ip142-cap-top {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  min-width:42px !important;
}
body.ips-body .ips-main .ps-showcase .ip142-cap-top .ip142-cap-symbol {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
}
/* Feature cards with heading wrappers */
body.ips-body .ips-main .ps-showcase .ip14-feature-head,
body.ips-body .ips-main .ps-showcase .ip14-feature-head .ips-polished-card-header {
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  gap:12px !important;
  min-width:0 !important;
}
body.ips-body .ips-main .ps-showcase .ip14-feature-head h3,
body.ips-body .ips-main .ps-showcase .ip14-feature-head strong {
  max-width:none !important;
  width:auto !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
/* Role cards and other icon-heading cards */
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading,
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading.ips-card-heading-inline {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  text-align:left !important;
}
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading > i,
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading > svg {
  flex:0 0 auto !important;
  margin:0 !important;
  line-height:1 !important;
}
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading > span,
body.ips-body .ips-main .ps-showcase .ipsh3-role-heading > strong {
  display:block !important;
  max-width:none !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
body.ips-body .ips-main .ps-showcase :is(.ipsh3-role-card,.ip14-feature,.ip142-capability,.ip142-specialty,.ip143-agency-group,.ipix-feature-grid > article,.ipcl-benefits > article,.ipcx-benefit-grid > article) :is(h3,h4,strong) {
  text-wrap:balance;
}
@media (max-width:900px) {
  body.ips-body .ips-main .ps-showcase .ips-polished-card-header,
  body.ips-body .ips-main .ps-showcase .ip14-feature-head,
  body.ips-body .ips-main .ps-showcase .ipsh3-role-heading {
    gap:10px !important;
  }
}
@media (max-width:640px) {
  body.ips-body .ips-main .ps-showcase .ips-polished-card-words > :is(h3,h4,strong,span),
  body.ips-body .ips-main .ps-showcase .ipsh3-role-heading > span {
    text-wrap:pretty;
  }
}
