/* THE REQUEST CARD — rebuild slice 1 (2026-10-01), the customer home.
   Where → what → price → one action, the order a ride app asks in, with live status on top
   once a pickup exists and a sticky Book bar on a phone. Loaded by the home page only.

   Every value is a design token (design-system/tokens.json → design-tokens.generated.css /
   the Laravel bundle), so light, dark and outdoor follow without a rule here. No hex, no
   literal timings: a palette change in tokens.json reaches this card the same day it reaches
   the app's CustomerFlow, which reads the same file. */

.home-request {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  background: var(--card);
  box-shadow: var(--elevation-3);
}
/* THE MAP the card opens on: edge to edge across the card's top, tall enough to read a street.
   Drawn streets (CSS only) until real tiles arrive; tiles replace them only once every one has
   loaded (home-request.js), so a provider error page never shows. */
.hr-map {
  position: relative;
  overflow: hidden;
  height: 11rem;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0;
  border-radius: var(--radius-feature) var(--radius-feature) 0 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 47%, var(--line) 47%, var(--line) 53%, transparent 53%) 0 0 / 5.5rem 100%,
    linear-gradient(0deg, transparent 46%, var(--line) 46%, var(--line) 54%, transparent 54%) 0 0 / 100% 4rem,
    linear-gradient(28deg, transparent 48.5%, var(--line-2) 48.5%, var(--line-2) 51.5%, transparent 51.5%),
    var(--bg-2);
}
@media (min-width: 60rem) { .hr-map { height: 13rem; } }
.hr-map-tiles { position: absolute; inset: 0; }
.hr-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; pointer-events: none; }
.hr-map-pin {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -100%);
  color: var(--brand);
  filter: drop-shadow(var(--elevation-1));
}
.hr-map-pin[hidden] { display: none; }
.hr-map-pin svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--card); stroke-width: 1.4; }
.hr-map-pin svg circle { fill: var(--card); stroke: none; }
.hr-map-attr {
  position: absolute;
  z-index: 3;
  right: .3rem;
  bottom: .2rem;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 .3rem;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--card) 75%, transparent);
  color: var(--ink-2);
  font-size: .6rem;
}
.hr-map-attr img { width: 52px; height: 17px; }

.hr-step { display: grid; gap: var(--space-2); }
.hr-step + .hr-step { padding-top: var(--space-4); border-top: 1px solid var(--line-2); }
.hr-k {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--ink);
  font-weight: var(--type-heading-weight);
}
.hr-n {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: var(--type-caption-size);
  font-weight: var(--type-heading-weight);
}
.hr-step p { margin: 0; }

/* 1 · Where. A 52px field (thumb), 16px text so iOS does not zoom the page on focus. */
.hr-where { position: relative; display: grid; gap: var(--space-2); }
.hr-field { position: relative; }
.hr-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 var(--space-4) 0 calc(var(--space-4) + 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.hr-field input::placeholder { color: var(--ink-3); }
.hr-field input:focus-visible { outline: 0.125rem solid var(--brand); outline-offset: 0.125rem; }
.hr-pin {
  position: absolute;
  top: 50%;
  left: var(--space-4);
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--brand);
  pointer-events: none;
}
.hr-pin svg,
.hr-locate svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hr-suggest {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(1.5rem + var(--space-2) + 3.25rem + var(--space-1));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--card);
  box-shadow: var(--elevation-2);
}
.hr-suggest[hidden] { display: none; }
.hr-where .hr-suggest { position: static; margin-top: calc(-1 * var(--space-2)); }
.hr-option {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-4);
  color: var(--ink);
  cursor: pointer;
}
.hr-option + .hr-option { border-top: 1px solid var(--line-2); }
.hr-option:hover,
.hr-option[aria-selected="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.hr-locate {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: inherit;
  font-weight: var(--type-label-weight);
  cursor: pointer;
}
.hr-locate svg { width: 1.15rem; height: 1.15rem; }
.hr-locate:disabled { opacity: .6; cursor: progress; }
.hr-locate:focus-visible { outline: 0.125rem solid var(--brand); outline-offset: 0.125rem; border-radius: var(--radius-control); }
.hr-answer { color: var(--ink-2); }
.hr-answer.is-covered { color: var(--brand-ink); font-weight: var(--type-label-weight); }
.hr-answer.is-error { color: #b3261e; font-weight: var(--type-label-weight); }
.hr-wa { margin: .25rem 0 0; }
.hr-address-continue { width: 100%; }
body.has-home-review .home-request > .hr-price { display: none; }

/* 3 · Price. A clear line where the number will be, never a number nobody set. */
.hr-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); }
.hr-price-line b { color: var(--ink); font-size: var(--type-title-size); letter-spacing: -0.01em; }
.hr-price-line span { color: var(--brand-ink); font-weight: var(--type-label-weight); }

/* The one action closes the card, full width, 56px tall. */
.home-request .z-camera-bar { min-height: 3.5rem; }

/* Live status after booking: the trip in progress, above the request card. */
.home-active {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--elevation-2);
}
.home-active[hidden] { display: none; }
.home-active h2, .home-active p { margin: 0; }
.home-active .z-btn { justify-self: start; }
.home-active-k { display: flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .08em; }
.home-active-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-ink);
  letter-spacing: 0;
  text-transform: none;
}
.home-active-live::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: var(--radius-pill);
  background: var(--brand);
  animation: home-live-pulse var(--duration-sweep) var(--ease-standard) infinite alternate;
}
.home-active-facts { color: var(--ink-2); }
@keyframes home-live-pulse { from { opacity: 1; } to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .home-active-live::before { animation: none; } }

/* The sticky Book bar: a phone only, and only while the card's own action is off screen. */
.home-sticky-book {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: var(--elevation-2);
}
.home-sticky-book[hidden] { display: none; }
.home-sticky-book .z-btn { display: flex; justify-content: center; width: 100%; min-height: 3.25rem; box-sizing: border-box; }
body.has-sticky-book { padding-bottom: 5.5rem; }
@media (min-width: 60rem) {
  .home-sticky-book { display: none; }
  body.has-sticky-book { padding-bottom: 0; }
}

/* The quiet no-account door inside step 2: a link, never a second button. */
.hr-try { justify-self: start; color: var(--brand-ink); font-weight: var(--type-label-weight); text-decoration: underline; text-underline-offset: 0.2em; }

/* The support launcher (the door to a human) shares the bar's row on a phone: the bar leaves
   room at its right end and the launcher sits there, centered on the bar, so neither covers
   the other and neither floats over the card's words. Phone widths show the launcher as a
   48px circle (support-widget.css ≤520px), wider screens with its "Talk to us" label. */
@media (max-width: 59.99rem) {
  .home-sticky-book { padding-right: calc(var(--space-4) + 9.5rem); }
  body.has-sticky-book .zs-launcher { bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); }
}
@media (max-width: 520px) {
  .home-sticky-book { padding-right: calc(var(--space-3) + 3.75rem); }
}

/* Customer landing: photo and price lead; the address/map remains available once the visitor
   wants to check their area. The same markup works at a phone width and on a wide screen. */
.home .hero2 { box-sizing: border-box; width: 100%; align-items: start; }
.hero2-copy { min-width: 0; }
.hero2-copy h1 { max-width: 12ch; font-size: clamp(3rem, 5.8vw, 5rem); line-height: .98; letter-spacing: -.045em; }
.hero2-copy h1 span { color: var(--brand); }
.hero2-steps { margin: 0; color: var(--brand-ink); font-weight: 700; }
.hero2-eligibility { margin: 0; max-width: 58ch; }
.hero2-actions { display: flex; align-items: stretch; gap: var(--space-2); }
.hero2-actions .z-camera-bar { box-sizing: border-box; flex: 1 1 auto; min-width: 0; min-height: 4rem; border-radius: var(--radius-control); cursor: pointer; }
.hero2-actions .z-camera-copy { min-width: 0; }
.hero2-actions .z-camera-copy small { font-size: var(--type-caption-size); }
.hero2-upload {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; min-height: 4rem; padding: 0 var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--card-2); color: var(--ink); text-decoration: none; font-weight: 700; cursor: pointer;
}
.hero2-upload:hover, .hero2-upload:focus-visible { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.home .home-request { gap: var(--space-4); }
.home .home-request .hr-map {
  height: 9rem; margin: 0; border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.home .home-proof { gap: var(--space-2); }
.home .home-proof li {
  display: inline-flex; align-items: center; min-height: 2.25rem;
  padding: .25rem var(--space-3); border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--card);
}
.home .home-proof a { color: inherit; }

@media (min-width: 60rem) {
  :root[data-theme="light"] .home .hero2 { background: #101713; color: #f8fbf9; }
  :root[data-theme="light"] .hero2 .home-eyebrow { color: #a4dec1; }
  :root[data-theme="light"] .hero2-copy h1 span { color: #43d99e; }
  :root[data-theme="light"] .hero2-copy > .z-muted,
  :root[data-theme="light"] .hero2-eligibility,
  :root[data-theme="light"] .hero2-steps { color: #c5d2cb; }
  :root[data-theme="light"] .hero2 .home-proof li {
    background: #1b2820; border-color: #35473b; color: #e7f2eb;
  }
  .home .hero2 {
    max-width: none;
    padding: clamp(3rem, 5vw, 5rem) max(var(--space-4), calc((100vw - 72rem) / 2));
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }
  .home .hero2 .hero2-art { top: calc(4rem + var(--space-5)); }
  .home .hero2 .hero2-art .home-hero-photo { max-height: min(45rem, calc(100vh - 8rem)); }
}
@media (max-width: 59.99rem) {
  .home .hero2 { padding-top: var(--space-5); }
  .hero2-copy h1 { font-size: clamp(2.8rem, 9vw, 4.25rem); }
}
@media (max-width: 30rem) {
  .hero2-actions { flex-wrap: wrap; }
  .hero2-actions .z-camera-bar { flex-basis: 100%; }
  .hero2-upload { min-height: 2.75rem; padding-inline: 0; border: 0; background: transparent; color: var(--brand-ink); }
  .home .home-request .hr-map { height: 7rem; }
}

/* Canonical-root quote review: the same quote-state reducer and server reprice used by
   /estimate, presented inside the photo result instead of sending the visitor to another URL. */
.home-booking-return:not([hidden]) { display: block; margin: var(--space-3) 0; }
.hqr { border-block: 1px solid var(--line); padding-block: var(--space-3); display: grid; gap: var(--space-2); }
.hqr-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.hqr-head h3 { margin: 0; font-size: var(--type-label-size); }
.hqr-head span, .hqr-status, .hqr-item small { color: var(--ink-2); font-size: var(--type-caption-size); }
.hqr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.hqr-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-2); padding: .55rem 0; border-top: 1px solid var(--line); }
.hqr-item > span:first-child { min-width: 0; display: grid; }
.hqr-qty { display: inline-flex; align-items: center; gap: .4rem; }
.hqr-qty button, .hqr-remove, .hqr-undo, .hqr-add button, .hqr-add select { min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--card); color: var(--ink); font: inherit; }
.hqr-qty button { width: 44px; padding: 0; cursor: pointer; }
.hqr-remove, .hqr-undo, .hqr-add button { cursor: pointer; padding: 0 .7rem; }
.hqr-remove { color: var(--ink-2); }
.hqr-undo-row { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.hqr-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1); }
.hqr-add label { grid-column: 1 / -1; font-weight: 700; }
.hqr-add select { width: 100%; padding-inline: .65rem; }
.hqr-status, .hqr-empty { margin: 0; line-height: 1.45; }
.hqr-access { display: grid; gap: var(--space-2); margin: var(--space-1) 0 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-control); }
.hqr-access legend { padding-inline: .3rem; font-weight: 700; }
.hqr-access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.hqr-access-options label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.hqr-access-detail { display: grid; gap: .35rem; font-weight: 700; }
.hqr-access-detail input { box-sizing: border-box; min-height: 44px; width: 100%; padding-inline: .65rem; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--card); color: var(--ink); font: inherit; }
.hqr-continue { width: 100%; }
@media (max-width: 32rem) {
  .hqr-item { grid-template-columns: minmax(0, 1fr) auto; }
  .hqr-remove { grid-column: 1 / -1; justify-self: start; }
  .hqr-add { grid-template-columns: 1fr; }
  .hqr-add label { grid-column: auto; }
  .hqr-access-options { grid-template-columns: 1fr; }
}

/* ── PHONE LAYER 0 (owner design 2026-10-24, ZEFT-693; app twin src/components/EyeWelcome.tsx) ──
   A visitor on a phone browser sees the app's first screen: dark map grid, "Don't need it?
   Zeft it.", "Snap it. See your price. No sign-up.", a round SNAP, Choose photos, the truck door
   and How Zeft works · Sign in. Desktop keeps the photo hero untouched: every rule below lives
   under the phone query, and the phone-only pieces are hidden on wider screens. */
.home-phone-only { display: none; }
@media (max-width: 47.99rem) {
  .home-phone-only { display: revert; }
  .hero2 {
    --l0-bg: #0A0F0C; --l0-line: #1D2822; --l0-ink: #ECF2EE; --l0-ink2: #A3AFA9; --l0-mint: #17B47A; --l0-mint-ink: #7FE9BE;
    background-color: var(--l0-bg);
    background-image: linear-gradient(var(--l0-line) 1px, transparent 1px), linear-gradient(90deg, var(--l0-line) 1px, transparent 1px);
    background-size: 38px 38px;
    color: var(--l0-ink);
    max-width: none;
    margin: 0;
    min-height: calc(100svh - 4rem);
    padding: 2.5rem max(16px, env(safe-area-inset-right, 0px)) 1.5rem max(16px, env(safe-area-inset-left, 0px));
    align-items: start;
  }
  .hero2 .hero2-copy { gap: 1rem; max-width: 30rem; margin: 0 auto; width: 100%; }
  .hero2 .home-eyebrow, .hero2 .hero2-steps, .hero2 .hero2-sub, .hero2 .home-proof, .hero2 .hero2-eligibility, .hero2 .hero2-art { display: none; }
  .hero2 h1 { color: var(--l0-ink); font-size: 2.75rem; line-height: 1.04; font-weight: 900; }
  .hero2 h1 span { color: var(--l0-mint); }
  .hero2 .hero2-snapline { margin: 0; color: var(--l0-ink2); font-size: 1.0625rem; }
  /* The request card is transparent on the dark ground; only its photo actions lead. */
  .hero2 .home-request { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .hero2 .home-request > .hr-price, .hero2 .home-request > .hr-where, .hero2 .home-request > .hr-map { display: none; }
  .hero2 .hr-what { color: var(--l0-ink); }
  .hero2 .hr-what > .hr-k, .hero2 .hr-what > .z-caption, .hero2 .hr-what > .hr-try { display: none; }
  .hero2 .hero2-actions { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1rem; }
  .hero2 .hero2-actions .z-camera-bar { flex: none; min-height: 0; aspect-ratio: 1; }
  /* SNAP: the camera bar becomes the app's round shutter; its words stay for screen readers. */
  .hero2 .z-camera-bar {
    align-self: center; width: 9.75rem; height: 9.75rem; border-radius: 50%; padding: 0;
    border: 5px solid var(--l0-mint); background: rgba(23, 180, 122, 0.08); box-shadow: none;
    display: grid; place-items: center; margin-top: .75rem; position: relative;
  }
  .hero2 .z-camera-bar > .z-camera-ico, .hero2 .z-camera-bar > .z-camera-go { display: none; }
  .hero2 .z-camera-bar > .z-camera-copy {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .hero2 .z-camera-bar::after {
    content: 'SNAP'; display: grid; place-items: center; width: 7.75rem; height: 7.75rem; border-radius: 50%;
    background: #0F2B20; border: 1px solid #0F9563; color: var(--l0-ink);
    font-weight: 900; letter-spacing: .14em; font-size: 1.25rem;
  }
  .hero2 .hero2-upload {
    display: flex; align-items: center; justify-content: center; min-height: 3.375rem; border-radius: 999px;
    background: var(--l0-ink); color: var(--l0-bg); font-weight: 900; font-size: 1.0625rem; text-decoration: none;
  }
  .hero2 .home-truck-pill {
    display: flex; align-items: center; justify-content: center; min-height: 3rem; border-radius: 999px;
    border: 1.5px solid var(--l0-mint); color: var(--l0-mint-ink); font-weight: 800; text-decoration: none; margin-top: .5rem;
  }
  /* The round Talk-to-us launcher sits fixed bottom-right (12px in, 48px wide). On a 320px screen the
     centered row ran under it and hid part of "Sign in"; the end padding keeps the row left of it. */
  .hero2 .home-phone-foot { align-items: center; display: flex; justify-content: center; gap: .75rem; color: var(--l0-ink2); font-weight: 700; margin: .5rem 0 0; padding-inline-end: 4rem; }
  .hero2 .home-phone-foot a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
  .hero2 a:focus-visible { outline: 3px solid var(--l0-mint); outline-offset: 3px; }
  /* The sticky bar repeats "Start with photos"; on the dark first layer SNAP is that action. */
  body:has(.hero2) .home-sticky-book { display: none; }
  /* Once the photo has been reviewed, the exact-address step is part of this same responsive
     funnel. It deliberately overrides the layer-zero hiding rule above. */
  .hero2 .home-request > .hr-where.is-active { display: grid; color: var(--l0-ink); }
  .hero2 .hr-where .z-muted, .hero2 .hr-where .hr-answer { color: var(--l0-ink2); }
  .hero2 .hr-where .hr-answer.is-covered { color: var(--l0-mint-ink); }
  .hero2 .hr-where .hr-answer.is-error { color: #ffb4ab; }
  .hero2 .hr-where .hr-wa, .hero2 .hr-where .hr-wa a { color: var(--l0-ink2); }
  .hero2 .hr-field input, .hero2 .hr-suggest { background: #111914; border-color: #35473b; color: var(--l0-ink); }
  .hero2 .hr-locate { color: var(--l0-mint-ink); }
}

/* The $15 first-pickup door (WhatsApp offer): a real WhatsApp-green button right under the price, not a
   line of small text. Dark text on the green keeps contrast above 7:1. Drawn hidden; support-widget.js
   shows it only when a number is behind /go/whatsapp. */
.wa-door-row--offer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; margin: 0.5rem 0 0.75rem; }
.wa-door-row--offer[hidden] { display: none; }
.wa-door-row--offer .wa-door-lead { font-weight: 600; }
.wa-door-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.625rem 1.25rem; border-radius: 0.625rem; background: #25d366; color: #062b14; font-weight: 700; text-decoration: none; }
.wa-door-btn:hover, .wa-door-btn:focus-visible { background: #1fbd5a; color: #062b14; }
.wa-door-btn:focus-visible { outline: 3px solid #062b14; outline-offset: 2px; }
