/* Page-specific environmental layer for Jobber vs Housecall Pro.
 * Comparison cards, tables, actions, and content retain the shared component
 * system defined in styles.css.
 */

body {
  background: #f5f3ed;
}

.hero {
  background: #f5f3ed;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto auto;
  width: min(66vw, 980px);
  height: 650px;
  background-image:
    linear-gradient(90deg, #f5f3ed 0%, rgba(245, 243, 237, 0.98) 8%, rgba(245, 243, 237, 0.78) 20%, rgba(245, 243, 237, 0.18) 39%, rgba(245, 243, 237, 0) 54%),
    linear-gradient(180deg, rgba(245, 243, 237, 0) 62%, #f5f3ed 100%),
    url("/assets/images/jobber-housecall-pro-two-technicians-hero.png");
  background-position: center, center, center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.hero-motif {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: 1.5rem;
}

.hero-text {
  display: flex;
  min-height: 410px;
  max-width: min(640px, 52%);
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 1.5rem;
}

.hero h1 {
  max-width: 22ch;
  color: #0b2148;
  text-wrap: balance;
}

.hero-lede {
  max-width: 62ch;
  color: #42536b;
}

.hero-trust li {
  color: #31465c;
}

.hero-grid > .hero-source-rail {
  margin-top: 0;
}

/* Full-width environmental fields add rhythm without changing the cards. */
#short-answer,
#recurring-jobs,
#alternatives,
#faq {
  background-color: #fbfaf7;
  background-image: radial-gradient(circle at 88% 12%, rgba(183, 215, 226, 0.16), transparent 30rem);
}

#primary-pricing,
#call-intake,
#methodology {
  background-color: #eef5f6;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(151, 194, 210, 0.2), transparent 29rem),
    radial-gradient(circle at 92% 86%, rgba(155, 190, 161, 0.14), transparent 31rem);
}

#unknowns {
  background-color: #f0f3ec;
  background-image: radial-gradient(circle at 82% 20%, rgba(173, 202, 181, 0.22), transparent 28rem);
}

#final-cta {
  background:
    radial-gradient(circle at 78% 18%, rgba(60, 135, 155, 0.24), transparent 31rem),
    linear-gradient(135deg, #0b2842 0%, #123f45 100%);
}

@media (max-width: 860px) {
  .hero::before {
    width: 72vw;
    height: 570px;
    background-image:
      linear-gradient(90deg, #f5f3ed 0%, rgba(245, 243, 237, 0.99) 18%, rgba(245, 243, 237, 0.94) 43%, rgba(245, 243, 237, 0.58) 59%, rgba(245, 243, 237, 0) 78%),
      linear-gradient(180deg, rgba(245, 243, 237, 0) 62%, #f5f3ed 100%),
      url("/assets/images/jobber-housecall-pro-two-technicians-hero.png");
    background-position: center, center, 48% top;
  }

  .hero-text {
    min-height: 390px;
    max-width: 60%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 0;
  }

  .hero::before {
    width: 100%;
    height: 174px;
    background-image:
      linear-gradient(180deg, rgba(245, 243, 237, 0) 56%, #f5f3ed 100%),
      url("/assets/images/jobber-housecall-pro-two-technicians-hero.png");
    background-position: center, 50% 42%;
    background-size: cover;
  }

  .hero-grid {
    gap: 0.72rem;
    padding-top: 186px;
  }

  .hero-text {
    display: block;
    min-height: 0;
    max-width: none;
    padding: 0;
  }

  .hero h1 {
    max-width: 22ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    background-attachment: initial;
  }
}

@media print { .hero::before { display:none; } .hero-grid { padding-top:0; } }
