/* Local prototype: each homepage block is one phone screen, including long blocks. */
html.phone-screen-fit {
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--phone-fit-header,65px);
}
.phone-fit-stage {
  position: relative;
  display: flow-root;
  width: 100%;
  height: var(--phone-fit-height);
  min-height: var(--phone-fit-height);
  margin: 0;
  overflow: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.phone-fit-stage > .phone-fit-content {
  /* Compensate horizontal scaling: the rendered section stays edge to edge. */
  width: calc(100% / var(--phone-fit-scale,1)) !important;
  max-width: none !important;
  margin: 0 !important;
  position: relative;
  top: var(--phone-fit-offset,0px);
  transform: scale(var(--phone-fit-scale,1));
  transform-origin: top left;
}
html.phone-screen-fit:has(.is-menu-open),
html.phone-screen-fit:has(.global-form-overlay[aria-hidden="false"]) {
  scroll-snap-type: none;
}
/* Intermediate measurement widths must not start layout transitions. */
.phone-fit-stage.phone-fit-measuring,
.phone-fit-stage.phone-fit-measuring * {
  transition: none !important;
}
@media(prefers-reduced-motion:reduce) {
  html.phone-screen-fit {scroll-behavior:auto}
}
/* Phone review: give the trust photographs and their copy more screen space. */
html.phone-screen-fit #block-05 .trust-carousel__proof {
  display: none;
}
html.phone-screen-fit #block-05 .trust-carousel__lead {
  width: 100%;
  max-width: none;
}
html.phone-screen-fit #block-05 .trust-carousel__controls {
  width: calc(100% - 2 * var(--trust-gutter));
  margin-inline: var(--trust-gutter);
}
html.phone-screen-fit #block-05 .trust-carousel__card img {
  position: absolute;
  width: var(--phone-photo-width,100%);
  height: var(--phone-photo-height,100%);
  max-width: none;
  left: var(--phone-photo-left,0px);
  top: var(--phone-photo-top,0px);
  object-fit: cover;
}

/* Phone price review: intro first; stage selection overlays the photograph. */
html.phone-screen-fit #block-06 .price__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
html.phone-screen-fit #block-06 .price__content,
html.phone-screen-fit #block-06 .price__intro,
html.phone-screen-fit #block-06 .price__status {
  display: contents;
}
html.phone-screen-fit #block-06 .price__kicker { grid-area: 1 / 1; }
html.phone-screen-fit #block-06 .price__intro h2 { grid-area: 2 / 1; margin: 0; }
html.phone-screen-fit #block-06 .price__lead { grid-area: 3 / 1; margin: 0; max-width: none; }
html.phone-screen-fit #block-06 .price__viewport { grid-area: 4 / 1; min-width: 0; }
/* Each caption belongs to its image and moves with the horizontal slide. */
.price__card-copy { display: none; }
html.phone-screen-fit #block-06 .price__stages,
html.phone-screen-fit #block-06 .price__status > [aria-live] { display: none; }
html.phone-screen-fit #block-06 .price__frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
html.phone-screen-fit #block-06 .price__frame img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
html.phone-screen-fit #block-06 .price__card-copy {
  display: block;
  position: absolute;
  inset: auto 0 0;
  padding: 56px 20px 20px;
  background: linear-gradient(transparent, rgba(8,12,16,.85) 40%, #080c10);
  pointer-events: none;
}
html.phone-screen-fit #block-06 .price__card-copy h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.035em;
}
html.phone-screen-fit #block-06 .price__card-copy .price__factors {
  font-size: 14px;
  line-height: 1.5;
  color: #d5dce3;
  gap: 6px;
}
html.phone-screen-fit #block-06 .price__controls { grid-area: 5 / 1; margin-top: 0; }
html.phone-screen-fit #block-06 .price__intro .price__conversion { grid-area: 6 / 1; margin-top: 0; }

/* Budget height to the photograph instead of shrinking type as width grows. */
html.phone-screen-fit #block-06.phone-fit-content {
  width: 100% !important;
  height: var(--phone-fit-height);
  min-height: 0;
  padding: 24px 0;
  top: 0;
  transform: none;
  box-sizing: border-box;
}
html.phone-screen-fit #block-06 .price__shell {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr) 44px 48px;
  gap: 16px;
}
html.phone-screen-fit #block-06 .price__intro h2 { font-size: 28px; line-height: 1.05; }
html.phone-screen-fit #block-06 .price__lead { font-size: 16px; line-height: 1.5; }
html.phone-screen-fit #block-06 .price__viewport { min-height: 0; }
html.phone-screen-fit #block-06 .price__track,
html.phone-screen-fit #block-06 .price__frame,
html.phone-screen-fit #block-06 .price__frame picture { height: 100%; min-height: 0; }
html.phone-screen-fit #block-06 .price__frame img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #09131c;
}

/* Compact portrait cards matching the trust carousel. */
html.phone-screen-fit #block-06 .price__shell { gap:16px; grid-template-rows:auto auto auto minmax(0,1fr) 36px 44px; --price-card-width:min(82%,calc((var(--phone-fit-height) - 270px)*.72)); }
html.phone-screen-fit #block-06 .price__kicker {font-size:12px}
html.phone-screen-fit #block-06 .price__intro h2 {font-size:23px;line-height:1.08}
html.phone-screen-fit #block-06 .price__lead {font-size:14px;line-height:1.5}
html.phone-screen-fit #block-06 .price__track {gap:12px}
html.phone-screen-fit #block-06 .price__track::after {content:"";flex:0 0 calc(100% - var(--price-card-width) - 12px)}
html.phone-screen-fit #block-06 .price__frame {flex:0 0 var(--price-card-width);background:#09131c}
html.phone-screen-fit #block-06 .price__frame img {object-position:center top}
html.phone-screen-fit #block-06 .price__card-copy {padding:48px 16px 20px}
html.phone-screen-fit #block-06 .price__card-copy h3 {font-size:23px;line-height:1.1}
html.phone-screen-fit #block-06 .price__card-copy .price__factors {font-size:13px}
html.phone-screen-fit #block-06 .price__arrow {width:36px;height:36px}
html.phone-screen-fit #block-06 .price__arrow svg {width:18px;height:18px}
html.phone-screen-fit #block-06 .price__count {font-size:11px}
html.phone-screen-fit #block-06 .price__cta {min-height:44px;font-size:13px;padding:10px 16px}

html.phone-screen-fit #block-06 .price__frame picture {height:auto}
html.phone-screen-fit #block-06 .price__frame img {height:auto;aspect-ratio:1/1;mask-image:linear-gradient(#000 80%,transparent 100%)}

/* Full-width mobile price CTA, matching the sale-process block. */
html.phone-screen-fit #block-06 .price__cta {width:100%;max-width:none;box-sizing:border-box}

/* Separate mobile eligibility cards; preserve a visible gap after screen fitting. */
html.phone-screen-fit #block-11 .vehicle-eligibility__track {
  gap: calc(12px / var(--phone-fit-scale, 1));
}
html.phone-screen-fit #content #block-11 .vehicle-eligibility__action,
html.phone-screen-fit #content #block-11 .vehicle-eligibility__cta {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Keep benefits cards separated after automatic phone fitting. */
html.phone-screen-fit #block-16 .benefits-carousel__track {
  gap: calc(12px / var(--phone-fit-scale, 1));
}

/* FAQ: retain four ninths of the original photo height, centered vertically. */
html.phone-screen-fit #block-18 .faq-flowline__intro {
  aspect-ratio: 2.41875;
}
html.phone-screen-fit #block-18 .faq-flowline__photo {
  object-position: 60% center;
}
