/* Let the source photograph's ground continue below the scene into the
   benefits. Keep the stage and both photo boxes unchanged for the scan rig. */
.hero {
  --hero-foot-space: 12px;
  background: var(--surface-tint);
  border-bottom-color: transparent;
  padding-bottom: var(--hero-foot-space);
}
.inspection-stage {
  overflow: visible;
  contain: layout style;
  clip-path: inset(0 0 -240px);
  -webkit-mask-image: none;
  mask-image: none;
}
/* End the wash at the hero's foot, where the next section uses the same tint.
   Its height follows the chip row in both the four- and two-column layouts. */
.hero-chips::before {
  display: block;
  top: -24px;
  bottom: calc(-1 * var(--hero-foot-space));
  background: linear-gradient(180deg,
    transparent 0%,
    color-mix(in srgb, var(--surface-tint) 12%, transparent) 22%,
    color-mix(in srgb, var(--surface-tint) 44%, transparent) 58%,
    color-mix(in srgb, var(--surface-tint) 85%, transparent) 82%,
    var(--surface-tint) 100%);
}
.stats-section {
  padding-top: clamp(8px, 1.36vw, 20px);
}
/* Keep the left readability wash, with more of the photograph showing through. */
.hero-overlay { opacity: 0.85; }

/* Use the shared topbar gutters within V7's capped hero frame.
   Container-relative width keeps the glass inside the photograph on wide screens. */
.topbar {
  width: calc(100% - 32px);
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--public-topbar-pad-inline);
  border-radius: var(--public-topbar-radius);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--topbar-bg) 54%, transparent) 0%,
    color-mix(in srgb, var(--topbar-bg-soft) 28%, transparent) 100%);
  outline: 1px solid var(--public-topbar-edge);
  outline-offset: -1px;
  box-shadow: var(--topbar-shadow), var(--shadow-inner);
  backdrop-filter: blur(var(--topbar-blur)) saturate(var(--topbar-saturation));
  -webkit-backdrop-filter: blur(var(--topbar-blur)) saturate(var(--topbar-saturation));
}
@media (max-width: 740px) {
  .topbar {
    width: calc(100% - 24px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* Keep the scene's grid column and foot wash inside the capped hero frame. */
@media (min-width: 1921px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-chips::before { width: 1920px; }
}

/* One glass surface for the benefits in every layout. */
.hero-chips {
  --chip-glass-radius: 16px;
  --chip-glass-blur: 16px;
}
.hero-chips::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: var(--chip-glass-radius);
  border: 1px solid color-mix(in srgb, var(--surface-base) 90%, transparent);
  background: var(--surface-base);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface-base) 95%, transparent),
    0 4px 14px color-mix(in srgb, var(--primary) 8%, transparent),
    0 0 0 1px color-mix(in srgb, var(--primary) 7%, transparent);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-chips::after {
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--surface-base) 76%, transparent),
      color-mix(in srgb, var(--surface-tint) 68%, transparent));
    -webkit-backdrop-filter: blur(var(--chip-glass-blur)) saturate(1.15);
    backdrop-filter: blur(var(--chip-glass-blur)) saturate(1.15);
  }
}

/* Landing v7 hero framing. Keep these rules after the page's base styles.
   The header, scene and benefits have separate rows. The photograph keeps its
   natural ratio, so changing the viewport cannot switch between cover crops.
   The v17 car + inspector occupy x=46–88%, y=49–85.5% of the source image (v16: 46.5–88%, 50–84.5%). */
@media (orientation: landscape), (min-width: 1081px) {
  .hero {
    /* The frame is capped at 1920px wide. Its height must also follow that
       width, otherwise a tall/4K viewport strands the bottom-anchored photo
       below an empty header area. Reserve room for the chip and header rows. */
    min-height: min(100svh, calc(min(100vw, 1920px) * 0.6 + 90px));
    --hero-unit: min(1.306px, 0.0680272vw, calc((100svh - 170px) / 600));
    grid-template-rows: auto minmax(min-content, 1fr) auto;
    gap: clamp(8px, 1.4svh, 16px);
    padding-block: var(--public-topbar-offset) var(--hero-foot-space);
  }
  .hero-scene { padding-bottom: 0; }
  .hero-copy { width: 42%; }
  .hero-copy h1 { font-size: max(28px, calc(86.4 * var(--hero-copy-unit))); }
  .hero-copy h1 .hero-row { white-space: nowrap; }
  .hero-actions { width: 100%; gap: 8px; margin-top: clamp(10px, 2svh, 20px); }
  .hero-actions .cta { min-height: 44px; padding: 8px 12px; font-size: clamp(12px, 1vw, 16px); gap: 8px; }
  .hero-actions .cta-left { gap: 6px; }
  .hero-actions .cta svg { width: 18px; height: 18px; }
  .hero-actions .cta .cta-arrow { display: none; }
  .hero-chips { display: grid; }
  .hero-chips .chip { min-height: 44px; padding: 6px 8px; }
  .inspection-stage {
    /* Extend the sky behind the header, while the car stays above the chips.
       Limit the subject by both available width and short-viewport height.
       4.8 is the source aspect ratio divided by the subject's height fraction. */
    inset: -100px 0 0;
    --scene-photo-width: min(120cqw, calc((100svh - 170px) * 4.8));
  }
  .vehicle-image {
    width: var(--scene-photo-width);
    height: auto;
    aspect-ratio: 1536 / 924;
    left: calc(100% - var(--page-gutter) - var(--scene-photo-width) * 0.88);
    top: auto;
    /* Hold the tyres above the chips; the remaining tarmac paints behind them. */
    bottom: calc(var(--scene-photo-width) * -0.09335 + 12px);
    object-fit: contain;
    object-position: center;
    /* Soften only the left margin; keep the sky opaque at the top edge. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%);
    mask-image: linear-gradient(90deg, transparent, #000 14%);
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero { --hero-topbar-height: 44px; --hero-foot-space: 8px; gap: 6px; padding-block: var(--public-topbar-offset) var(--hero-foot-space); }
  .hero-overlay { opacity: 1; }
  .hero-copy { width: 42%; }
  .hero-copy h1 { font-size: max(28px, calc(80 * var(--hero-copy-unit))); }
  .hero-eyebrow { display: none; }
  .hero-subcopy { max-width: 100%; }
  .hero-actions { gap: 8px 6px; margin-top: 8px; }
  .hero-actions .cta { padding: 5px 8px; min-height: 36px; }
  .hero-actions .cta svg { display: none; }
  .hero-chips .chip { grid-template-columns: 20px 1fr; gap: 5px; padding: 4px; min-height: 40px; }
  .hero-chips .chip-icon { width: 20px; height: 20px; }
  .hero-chips .chip strong { font-size: 10px; }
}
/* Wider landscape phones can carry a stronger heading without growing the
   already tight composition on the shortest phone viewports. */
@media (orientation: landscape) and (min-width: 740px) and (min-height: 360px) and (max-height: 500px) {
  .hero-copy h1 { font-size: clamp(32px, calc(90 * var(--hero-copy-unit)), 40px); }
}
@media (max-width: 400px) and (orientation: portrait) {
  .hero-actions .cta { flex-basis: 0; }
}
/* Fade the photograph at its own lower edge, beyond the old scene crop.
   The car stays opaque while its ground blends beneath the portrait chips. */
@media (max-width: 1080px) and (orientation: portrait) {
  .hero-copy {
    position: relative;
    isolation: isolate;
  }
  /* Follow the copy height, leaving the header sky and the car untouched.
     The wide, feathered wash has no rectangular edge around the words. */
  .hero-copy::before {
    content: "";
    position: absolute;
    inset: -28px auto -20px -20px;
    width: 100vw;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg,
      transparent,
      color-mix(in srgb, var(--surface-base) 58%, transparent) 18%,
      color-mix(in srgb, var(--surface-base) 68%, transparent) 68%,
      color-mix(in srgb, var(--surface-base) 42%, transparent) 86%,
      transparent);
  }
  .vehicle-image {
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 42px), transparent);
    mask-image: linear-gradient(180deg, #000 calc(100% - 42px), transparent);
  }
}
/* Ease into the existing 375px-and-up scale instead of dropping abruptly at
   360px. Ordinary portrait phones keep their established heading size. */
@media (max-width: 375px) and (orientation: portrait) {
  .hero-copy h1 { font-size: clamp(32px, calc(40vw - 108px), calc(84 * var(--hero-copy-unit))); }
}
/* Narrow phones reclaim decorative header padding for the larger heading.
   Keep the photograph anchored to the top as the header row becomes shorter. */
@media (max-width: 360px) and (orientation: portrait) {
  .hero-scene { min-height: calc(124vw - var(--hero-topbar-height) + 18px); }
  .hero-actions { margin-top: 4px; }
  .vehicle-image {
    top: 24px;
    height: calc(111% - 53.28px);
  }
  /* Follow the photograph's 28px rise so its ground still backs the glass. */
  .hero-chips { margin-top: -28px; }
  .hero-chips .chip { grid-template-columns: 20px 1fr; gap: 4px; padding: 6px 2px; min-height: 44px; }
  .hero-chips .chip-icon { width: 20px; height: 20px; }
}
/* The short portrait layout removes another 8px of outer padding and gap. */
@media (max-width: 360px) and (max-height: 700px) and (orientation: portrait) {
  .vehicle-image { top: 32px; }
}

/* The footer's three rigid columns otherwise widen the page at 640px,
   creating horizontal scrolling even when the hero itself fits. */
@media (min-width: 601px) and (max-width: 740px) {
  .site-footer-inner { flex-wrap: wrap; }
  .site-footer-col--end { margin-left: auto; }
}

/* Short landscape phones: typography and caption spacing only. Keep the
   existing column counts, diagonal clips, photography and booking controls. */
@media (min-width: 560px) and (max-width: 980px) and (max-height: 500px) and (orientation: landscape) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  .hero-chips .chip { gap: 8px; padding-block: 8px; }
  .hero-chips .chip strong { font-size: 14px; line-height: 1.3; }

  .section .section-head { margin-bottom: 16px; }
  .section .section-head h2 { font-size: 30px; line-height: 1.15; }
  .section .section-subtitle { font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
  /* Pricing used to halve this to 12px. That was compensating for a bug, not a
     design choice: .pricing-card transitioned `transform`, which swallowed
     GSAP's reveal and left all three cards parked 34px low, so the gap looked
     twice as big as everywhere else and the margin was cut to hide it. With the
     transition fixed the cards land where they should, and the halved margin
     just made Pricing the tightest section on the page. It now matches its
     neighbours. */
  .stat-title, .why-card-content h3, .how-step-card h3, .question-card-content h3 {
    font-size: 16px; line-height: 1.3;
  }
  .stat-sub, .why-card-content p, .how-step-card p, .question-card-content p,
  .pricing-sub, .pricing-list li { font-size: 15px; line-height: 1.5; }

  /* Let captions occupy normal flow so longer copy grows the panel rather
     than clipping. Retain the insets that keep text inside the diagonals. */
  .why-grid .why-media { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .why-grid .why-card .why-card-content {
    position: relative; inset: auto;
    padding: 40px calc(18px + var(--slant)) 20px 18px;
  }
  .why-grid .why-card:not(:first-child) .why-card-content { padding-left: calc(18px + var(--slant)); }
  .why-grid .why-card:last-child .why-card-content { padding-right: 18px; }
  .why-card-content h3 { min-height: 3.9em; margin-bottom: 8px; }
  @container why-section (min-width: 620px) and (max-width: 660px) {
    .why-card-content h3 { min-height: 5.2em; }
  }
  .why-card-content h3, .question-card-content h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

  .questions-grid .question-card { align-content: start; }
  .questions-grid .question-card .question-card-content {
    position: relative; inset: auto;
    padding: 20px calc(16px + var(--stats-card-slant));
  }
  .question-card-content h3 { min-height: 2.6em; margin-bottom: 8px; }

  .pricing-grid {
    --pricing-card-pad-top: 22px; --pricing-card-pad-x: 20px; --pricing-card-pad-bottom: 20px;
    --pricing-head-margin: 12px; --pricing-name-size: 24px; --pricing-price-size: 32px;
    --pricing-sub-min: 0px; --pricing-sub-margin: 16px;
    --pricing-list-gap: 10px; --pricing-list-margin: 18px;
  }
  .pricing-price { font-size: var(--pricing-price-size); }
}

/* ── Hero button floor, landscape (owner, 2026-11-23) ─────────────────────────
   The hero scales its buttons with its text, so on a sideways phone they fell to
   36px tall with 12px text while every other button on the page is 44px / 16px.
   This keeps them at least the size of the rest. To revert, delete this block. */
@media (orientation: landscape) {
  .hero-actions .cta {
    min-height: 44px;
    font-size: clamp(14px, calc(18 * var(--hero-copy-unit)), 16px);
    padding-inline: clamp(14px, calc(22 * var(--hero-copy-unit)), 22px);
  }
}
/* The smallest sideways phones (iPhone SE, small Androids up to 740px wide)
   can't fit two 14px labels on one row; stacked, the pair crowded the chips. */
@media (orientation: landscape) and (max-width: 760px) {
  .hero-actions .cta {
    font-size: 13px;
    padding-inline: 9px;
  }
}

/* ── Larger headline on landscape tablets and laptops (owner, 2026-11-23) ─────
   Landscape screens taller than a phone had spare height above and below the
   hero copy, so "Inspect before you bid" read small. 15% larger, which fills the
   headline column (about 10px to spare); the ceiling moves from 113px to 126px so
   big monitors fill it too. Phones held sideways are left alone: they have no
   height to spare.
   To revert, delete this block. */
@media (orientation: landscape) and (min-height: 501px) {
  .hero-copy h1 { font-size: min(126px, max(28px, calc(99.4 * var(--hero-copy-unit)))); }
}

/* ── "Don't buy blind" back on sideways phones (owner, 2026-11-23) ───────────
   Short landscape screens dropped the eyebrow to save height. Since the hero
   button floor they have 50px+ spare under the buttons, so it fits again.
   Upright phones still hide it (frames the car). To revert, delete this block. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-eyebrow {
    display: flex;
    font-size: max(11px, calc(21 * var(--hero-copy-unit)));
    margin-bottom: 6px;
  }
}

/* ── Home top bar Login drawn at 36px (owner, 2026-11-23) ─────────────────────
   Partner of the "Public top bar buttons" block in design-tokens.css: phones
   forced this button to 44px, filling the 44px bar. Touch screens already get
   a 44px tap area from .topbar .btn::before. To revert, delete this block. */
.topbar .btn { min-height: 36px !important; }
