/* Pop-ups: the booking form and the owner's screens open as windows over the blurred site, not as side panels.
   Also strips the drone-camera clutter so the film and the headlines do the talking. Loaded last. */

/* ---------- Less on screen ---------- */
.chip, .hint, .rail, .book, .hud .read, .hud .c, .hud .cross, .copy .n { display: none !important; }

/* ---------- The blur behind any pop-up ---------- */
.scrim { position: fixed; inset: 0; z-index: 34; opacity: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 50%, rgba(4, 5, 6, 0.35), rgba(4, 5, 6, 0.72));
  backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); }

/* ---------- Booking pop-up: photo and promise on the left, the form on the right ---------- */
.sheet {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(1040px, calc(100vw - 32px)); height: min(720px, calc(100vh - 40px));
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-rows: auto auto minmax(0, 1fr);
  padding: 0; border-radius: 28px; overflow: hidden;
  background: rgba(9, 10, 12, 0.94); border: 1px solid rgba(255, 179, 71, 0.2);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65), 0 0 80px rgba(255, 166, 64, 0.08);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3s, visibility 0s linear 0.5s;
}
.sheet.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sheet-hero { grid-column: 1; grid-row: 1 / -1; height: auto; position: relative; background: url(frames/fin.webp) 46% 50% / cover no-repeat; }
.sheet-hero::after { background: linear-gradient(to top, rgba(7, 8, 10, 0.94) 8%, rgba(7, 8, 10, 0.2) 58%, rgba(7, 8, 10, 0.35)), linear-gradient(to right, transparent 70%, rgba(9, 10, 12, 0.85)); }
.hero-copy { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 34px; display: grid; gap: 16px; }
.hero-copy .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.hero-copy h4 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 4.6vw, 72px); line-height: 0.9; letter-spacing: 0.01em; color: var(--ink); text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6); }
.hero-copy h4 em { display: block; font-style: normal; color: var(--amber); }
.hero-copy ul { list-style: none; display: grid; gap: 9px; }
.hero-copy li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.hero-copy li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); }
.hero-copy li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 4px; height: 8px; border: solid #1c1100; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sheet-top { grid-column: 2; margin: 0; padding: 30px 32px 0; }
.sheet .kicker { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet h3 { font-family: "Anton", Impact, sans-serif; font-stretch: normal; font-weight: 400; font-size: 46px; line-height: 0.95; letter-spacing: 0.01em; }
.sheet .x { top: 22px; right: 22px; }
.steps { grid-column: 2; padding: 0 32px; margin: 16px 0 18px; }
.form { grid-column: 2; padding: 2px 32px 28px; }
.done { inset: 0 0 0 46%; }
.done h3 { font-size: 64px; }
.opt.on { box-shadow: 0 0 0 1px var(--amber), 0 0 30px rgba(255, 179, 71, 0.25); }
.confirm { padding: 17px; font-size: 16px; border-radius: 16px; box-shadow: 0 14px 40px rgba(255, 166, 64, 0.3); }

/* ---------- Owner: the login card, then the leads app as a window over the blurred site ---------- */
.crm { background: rgba(4, 5, 6, 0.5); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.login { background: radial-gradient(45% 45% at 50% 48%, rgba(255, 179, 71, 0.14), transparent 70%); }
.login-card { width: min(420px, 92vw); padding: 36px; border-radius: 26px; background: rgba(10, 11, 13, 0.94); border: 1px solid rgba(255, 179, 71, 0.22);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 166, 64, 0.1); transform: scale(calc(0.9 + 0.1 * var(--pop, 1))); }
.login-card h3 { font-family: "Anton", Impact, sans-serif; font-stretch: normal; font-weight: 400; font-size: 40px; letter-spacing: 0.01em; }
.shell { inset: auto; left: 50%; top: 50%; width: min(1280px, calc(100vw - 48px)); height: min(780px, calc(100vh - 48px));
  padding-top: 40px; border-radius: 22px; overflow: hidden; background: #06080a; border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.75); transform: translate(-50%, -50%) scale(calc(0.94 + 0.06 * var(--win, 1))); }
/* window bar: three dots and the app's address */
.shell::before { content: "app.showfloor.com  ·  Leads"; position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim); background: #0b0d10; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.shell::after { content: ""; position: absolute; left: 18px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; }
.leads-head h2 { font-family: "Anton", Impact, sans-serif; font-stretch: normal; font-weight: 400; font-size: 56px; letter-spacing: 0.01em; }
.drawer { top: 40px; padding-top: 34px; }
.drawer h3 { font-family: "Anton", Impact, sans-serif; font-stretch: normal; font-weight: 400; font-size: 40px; }

/* ---------- Phones: one column, nearly full screen ---------- */
@media (max-width: 860px) {
  .sheet { width: calc(100vw - 16px); height: calc(100vh - 16px); grid-template-columns: 1fr; grid-template-rows: 150px auto auto minmax(0, 1fr); border-radius: 22px; }
  .sheet-hero { grid-row: 1; grid-column: 1; }
  .hero-copy { left: 20px; right: 20px; bottom: 16px; gap: 8px; }
  .hero-copy h4 { font-size: 34px; }
  .hero-copy ul, .hero-copy .kicker { display: none; }
  .sheet-top, .steps, .form { grid-column: 1; }
  .sheet-top { padding: 18px 20px 0; }
  .steps { padding: 0 20px; }
  .form { padding: 2px 20px 20px; }
  .sheet h3 { font-size: 36px; }
  .done { inset: 150px 0 0 0; }
  .done h3 { font-size: 44px; }
  .shell { width: calc(100vw - 16px); height: calc(100vh - 16px); }
}

/* fixes from the audit */
.hero-copy h4 { display: block; margin: 0; font-size: clamp(40px, 3.6vw, 58px); }
.done h3 { font-size: clamp(40px, 3.6vw, 54px); max-width: 92%; text-wrap: balance; }
@media (max-width: 860px) {
  .cars, .days, .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .car { padding: 10px 2px 8px; }
  .car svg { width: 42px; height: 20px; }
  .car span { font-size: 10px; }
  .day small { font-size: 13px; }
  .svc { padding: 11px 74px 11px 12px; }
  .svc small { right: 34px; }
}
@media (max-width: 860px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-top, .steps, .form, .form > section, .sum { min-width: 0; }
  .form { overflow-x: hidden; }
}

/* Phone overflow guard (checked at 375 and 390 wide): form fields share the row instead of pushing past it,
   and headlines size down far enough that the longest word always fits. */
@media (max-width: 860px) {
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fld, .fld input, .form > * { min-width: 0; }
  .fld input { width: 100%; }
  .copy h2, .copy.top h2 { font-size: clamp(40px, min(13.5vw, 11vh), 110px); }
  .outro h2 { font-size: clamp(40px, min(13vw, 12vh), 120px); }
}
