/*
 * /report mode. Loaded only by apps/web/src/app/report/route.ts, which injects
 * window._reportMode + this stylesheet into the mirrored index.html. Everything
 * is scoped to body.zoned-report-mode so the homepage and /realtor are untouched.
 *
 * /report is the homepage's "Get your property report" gateway trimmed to just
 * the two consumer doors (Homeowner + Buying or selling): no marketing hero and
 * no "Work with Zoned" lane. Clicking a door morphs the page in place exactly
 * like the homepage (home-intent.js revealFullForm), so the form, the
 * breadcrumb pill, and the submit flow are all inherited from home-intent.css /
 * app-shell.css. This file only strips the chrome and centers the heading.
 */

/* Stand down all marketing chrome: the hero split (headline + sample-report
   card + ghost demo), the organic marketing sections, and the realtor sticky
   bar. The two doors + the form become the whole page. */
body.zoned-report-mode #ziHero,
body.zoned-report-mode #ziGhostDemo,
body.zoned-report-mode #ziOrganicSections,
body.zoned-report-mode #stickyRealtorHandoff,
body.zoned-report-mode.has-sticky-realtor-handoff {
  display: none !important;
}
body.zoned-report-mode.has-sticky-realtor-handoff {
  padding-bottom: 0 !important;
}

/* Only the "Get your property report" lane. The "Work with Zoned" lane and the
   per-lane headers (redundant with the fork heading below) are hidden, so just
   the two consumer doors show. */
body.zoned-report-mode .path-group--work {
  display: none !important;
}
body.zoned-report-mode .path-group-header {
  display: none !important;
}
/* Collapse the outer 2-lane grid to a single column now that only one lane
   remains, and kill the vertical divider between lanes. Without this the
   surviving use-lane only takes half of the wide form-card so the doors end up
   cramped on the left with dead space on the right. */
body.zoned-report-mode .home-intent-fork-grid.path-groups {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.zoned-report-mode .path-groups::after {
  display: none !important;
}
body.zoned-report-mode .path-group--use {
  padding-right: 0;
}

/* The fork group is the top of the page now; give it room to breathe. */
body.zoned-report-mode.zi-wizard #homeIntentForkGroup {
  margin-top: clamp(14px, 4vw, 40px);
}

/* Fork heading + lede become the page title, centered. Only while the doors are
   on screen (no route class yet): once a door is picked, a zi-route-* /
   zoned-route-realtor class lands and the homepage breadcrumb rules take over,
   so these must stop matching and not fight them. The extra :not() classes also
   out-specify the homepage's collapsed-breadcrumb rule. */
body.zoned-report-mode:not(.zi-route-contractor):not(.zoned-route-realtor):not(.zi-route-pro) #homeIntentForkLabel {
  display: block;
  margin: 0 auto 6px;
  max-width: 660px;
  color: #151527;
  font-size: clamp(23px, 3vw, 33px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
}
body.zoned-report-mode:not(.zi-route-contractor):not(.zoned-route-realtor):not(.zi-route-pro) #ziForkLede {
  display: block;
  margin: 0 auto 22px;
  max-width: 560px;
  color: #667085;
  font-size: 15.5px;
  line-height: 1.5;
  text-align: center;
}

/* Widen the form card during the doors stage so the two panels have room to
   grow into full-size squares. Normally the report form-card is capped at
   760px (rule at :38), which would squeeze the doors into ~360px each. Once a
   route is picked (zi-route-* / zoned-route-realtor lands on body) the card
   snaps back to that 760px for the compact form. */
body.zoned-report-mode.zi-wizard.zi-stage-doors .zi-form-card {
  width: min(100%, 1180px);
  max-width: 1180px;
}

/* Center the two-door grid under the heading. */
body.zoned-report-mode #homeIntentForkGrid {
  justify-content: center;
}
body.zoned-report-mode .path-group--use {
  width: 100%;
  margin: 0 auto;
}
body.zoned-report-mode .path-group--use .path-card-grid {
  gap: clamp(18px, 3vw, 36px);
}

/* Dynamically-sized large squares: aspect-ratio pins them to 1:1 so they scale
   with the viewport, min-height keeps them substantial on narrow desktops.
   Out-specifies the homepage's `body.zi-stage-doors .home-intent-fork-grid
   .hi-door { min-height: 330px }` fixed height. */
body.zoned-report-mode.zi-stage-doors .home-intent-fork-grid .hi-door,
body.zoned-report-mode.zi-wizard.zi-stage-doors .home-intent-fork-grid .hi-door {
  min-height: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
}
body.zoned-report-mode.zi-stage-doors .hi-door-body,
body.zoned-report-mode.zi-wizard.zi-stage-doors .hi-door-body {
  padding: clamp(18px, 2.2vw, 28px);
  gap: 8px;
}
body.zoned-report-mode.zi-stage-doors .hi-door-headline,
body.zoned-report-mode.zi-wizard.zi-stage-doors .hi-door-headline {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
}
body.zoned-report-mode.zi-stage-doors .hi-door-go,
body.zoned-report-mode.zi-wizard.zi-stage-doors .hi-door-go {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
}

/* Mobile: single column, aspect stays close to square but capped so a
   single door never dominates a whole phone screen. */
@media (max-width: 640px) {
  body.zoned-report-mode .path-group--use .path-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.zoned-report-mode.zi-stage-doors .home-intent-fork-grid .hi-door,
  body.zoned-report-mode.zi-wizard.zi-stage-doors .home-intent-fork-grid .hi-door {
    aspect-ratio: 5 / 4;
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zoned-report-mode #homeIntentForkGroup {
    scroll-behavior: auto;
  }
}
