/* Shared company navigation; isolated from the original product page styles. */
.cf-header {
  box-sizing: border-box;
  height: 88px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,242,.97);
  color: #183f34;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #dce1d7;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.cf-header a { color: inherit; text-decoration: none; }
.cf-header .cf-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 650; letter-spacing: -1.3px; flex-shrink: 0; }
.cf-brand img { width: 29px; height: 29px; }
.cf-brand span { color: #74934d; margin-left: -8px; }
.cf-nav { display: flex; gap: 32px; }
.cf-nav a, .cf-login { font-size: 14px; font-weight: 550; }
.cf-nav a[aria-current=page] { text-decoration: underline; text-underline-offset: 7px; }
.cf-actions { display: flex; align-items: center; gap: 24px; }
.cf-header .cf-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 14px 18px; border: 1px solid #173f34; border-radius: 7px; background: #173f34; color: white; font-size: 14px; font-weight: 550; line-height: 1.3; }
.cf-header .cf-button:hover { background: #2b5848; }
.cf-header a:focus-visible,.cf-header summary:focus-visible,.platform-nav a:focus-visible { outline: 3px solid #9b651e; outline-offset: 5px; }
.cf-menu { display: none; }
.platform-nav { display: flex; align-items: center; gap: 24px; padding: 16px 56px; border-bottom: 1px solid #dce1d7; background: #f7f8f2; color: #183f34; font-size: 14px; }
.platform-nav a { color: inherit; text-decoration: none; }
.platform-nav .platform-back { color: #5c6c62; }
.platform-nav strong { font-weight: 600; }
.platform-nav > div { display: flex; gap: 26px; margin-left: auto; }
.platform-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-hero-sample-page:has(.cf-header) .product-hero-content { padding-top: 30px; }
.product-hero-sample-page:has(.cf-header) section[id] { scroll-margin-top: 100px; }
@media (min-width: 1500px) { .cf-header,.platform-nav { padding-inline: max(56px,calc((100% - 1280px)/2)); } }
@media (max-width: 1100px) { .cf-header { padding-inline: 32px; gap: 20px; }.cf-nav { gap: 18px; }.platform-nav { padding-inline: 32px; } }
@media (max-width: 800px) {
  .cf-header { height: 74px; padding-inline: 24px; gap: 20px; }
  .cf-header .cf-brand { font-size: 24px; }
  .cf-brand img { width: 26px; height: 26px; }
  .cf-nav,.cf-login { display: none; }
  .cf-actions { margin-left: auto; }
  .cf-header .cf-button { padding: 11px 14px; gap: 16px; }
  .cf-menu { display: block; }
  .cf-menu summary { cursor: pointer; list-style: none; width: 28px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .cf-menu summary::-webkit-details-marker { display: none; }
  .cf-menu summary span { width: 23px; height: 1px; background: #173f34; }
  .cf-menu nav { position: absolute; top: 73px; left: 0; right: 0; display: flex; flex-direction: column; padding: 15px 24px 24px; background: #f7f8f2; border-bottom: 1px solid #dce1d7; box-shadow: 0 16px 20px #203d340e; }
  .cf-menu nav a { padding: 13px 0; font-size: 16px; }
  .cf-menu a[aria-current=page] { font-weight: 650; }
  .platform-nav { padding: 15px 24px; flex-wrap: wrap; gap: 14px 20px; }
  .platform-nav > div { width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; }
  .platform-nav > div a { padding: 8px 0; }
  .product-hero-sample-page:has(.cf-header) .product-hero-content { padding-top: 20px; }
}
@media (max-width: 480px) {
  .cf-header { padding-inline: 20px; gap: 16px; }
  .cf-header .cf-brand { font-size: 22px; gap: 6px; }
  .cf-brand span { margin-left: -6px; }
  .cf-header .cf-button { padding: 10px 12px; gap: 14px; }
  .platform-nav { padding-inline: 20px; }
  .platform-nav > div { font-size: 13px; }
}

/* Shared footer, matching the company homepage without inheriting demo styles. */
.cf-footer { width: 100%; margin: 0; padding: 40px 0 24px; background: #f7f8f2; color: #183f34; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.cf-footer-inner { width: min(1280px,calc(100% - 112px)); margin: 0 auto; }
.cf-footer a { color: inherit; text-decoration: none; }
.cf-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cf-footer a:focus-visible { outline: 3px solid #9b651e; outline-offset: 5px; }
.cf-footer p { margin: 0; color: inherit; line-height: 1.65; }
.cf-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 35px; border-bottom: 1px solid #dce1d7; }
.cf-footer .cf-footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 27px; font-weight: 650; letter-spacing: -1.3px; }
.cf-footer-brand img { width: 29px; height: 29px; }
.cf-footer-top > p { font-family: Georgia,serif; font-style: italic; font-size: 20px; }
.cf-footer-top > a:last-child { font-size: 14px; }
.cf-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; font-size: 12px; color: #64716b; }
.cf-footer-bottom nav { display: flex; gap: 24px; }
@media (max-width: 1100px) { .cf-footer-inner { width: calc(100% - 64px); } }
@media (max-width: 800px) {
  .cf-footer-inner { width: calc(100% - 48px); }
  .cf-footer-bottom { align-items: start; flex-direction: column; gap: 14px; }
  .cf-footer-bottom nav { flex-wrap: wrap; gap: 17px; }
}
@media (max-width: 480px) {
  .cf-footer-inner { width: calc(100% - 40px); }
  .cf-footer-top { flex-wrap: wrap; gap: 25px; }
  .cf-footer .cf-footer-brand { font-size: 22px; }
  .cf-footer-top > p { font-size: 16px; }
  .cf-footer-top > a:last-child { width: 100%; }
  .cf-footer-bottom nav { gap: 16px; }
}

/* Demo heroes follow an in-flow sticky header, so no fixed-header offset is needed. */
body > .cf-header + :is(.demo-shell, .owner-brief-shell, .lead-intake-shell, .estimate-shell, .qa-shell) {
  padding-top: 0;
}
.cf-header + main > :is(.demo-intro, .owner-brief-hero, .lead-intake-hero, .estimate-hero, .qa-hero) {
  min-height: 0;
  padding-top: 40px;
}
.cf-header + main > .demo-intro h1 {
  min-height: 0;
}
@media (max-width: 800px) {
  .cf-header + main > :is(.demo-intro, .owner-brief-hero, .lead-intake-hero, .estimate-hero, .qa-hero) {
    padding-top: 24px;
  }
}
