/* Cinematic dispatch storefront. Static, no build. Brand colour = --brand. */
* { margin: 0; padding: 0; box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0b0d10; color: #f2f4f6;
    min-height: 100dvh; overflow-x: hidden;
    /* Only swipe + tap — no double-tap or pinch zoom (kept the app from looking
       funky on mobile). touch-action:manipulation drops the double-tap delay/zoom;
       user-scalable=no in the viewport meta drops pinch. */
    touch-action: manipulation;
}

/* Kill the browser autofill wash (pale-yellow bg + forced dark text) on the dark
   inputs — it rendered as unreadable white-on-yellow. Force the field's own dark
   surface and white text during autofill. neutral-800 = #262626. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #262626 inset !important;
    caret-color: #ffffff;
    transition: background-color 9999s ease-in-out 0s;
}

/* Native datetime-local control overflows its container on mobile (intrinsic
   min-width). Constrain it so the pickup-time field matches the address field. */
input[type="datetime-local"] {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

/* Centered content column over the hero: the brand block + the on-page inline
   ride card. min-height (not fixed) so it grows and the body scrolls when the
   card is tall; padding clears the fixed header + action bar. */
.content {
    position: relative; z-index: 10;
    min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem calc(7rem + env(safe-area-inset-bottom));
}

/* Soft edgeless wash behind the hero brand type, so the name/tagline stay legible
   over a photo without a hard box. A legibility scrim over REAL imagery (like the
   .scrim gradients), not a decorative background. Ported from waitlistapp .sf-cloud. */
.sf-cloud { position: relative; }
.sf-cloud > * { position: relative; z-index: 1; }
.sf-cloud::before {
    content: ''; position: absolute; inset: -2rem 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(58% 52% at 44% 42%, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0) 72%),
        radial-gradient(54% 58% at 58% 60%, rgb(0 0 0 / 0.4) 0%, rgb(0 0 0 / 0) 70%);
}
@media (min-width: 640px) { .sf-cloud::before { inset: -3rem 0; } }

/* The hero fills the viewport behind everything. */
.hero { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.scrim { position: fixed; inset-inline: 0; z-index: 1; pointer-events: none; }
.scrim-top { top: 0; height: 34dvh; background: linear-gradient(rgb(11 13 16 / 0.9), transparent); }
.scrim-bottom { bottom: 0; height: 46dvh; background: linear-gradient(transparent, rgb(11 13 16 / 0.96)); }

/* Inset frame ring, the club-shell touch. */
body::after {
    content: ""; position: fixed; inset: 10px; z-index: 2; pointer-events: none;
    border: 1px solid rgb(255 255 255 / 0.14); border-radius: 22px;
    box-shadow: inset 0 0 50px rgb(0 0 0 / 0.4);
}

.swipe-grip {
    position: fixed; inset-inline: 64px; top: 0; z-index: 30; height: 3rem;
    display: flex; justify-content: center; align-items: flex-start; padding-top: 0.5rem;
    touch-action: none;
}
.grip-pill { width: 2.2rem; height: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.35); }

.head {
    position: fixed; inset-inline: 0; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(0.9rem + env(safe-area-inset-top)) 1.25rem 0.9rem;
}
.head-name { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em; text-shadow: 0 1px 8px rgb(0 0 0 / 0.7); }
.head-profile {
    width: 2.3rem; height: 2.3rem; border-radius: 999px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #f2f4f6;
    background: rgb(255 255 255 / 0.10); border: 1px solid rgb(255 255 255 / 0.2); backdrop-filter: blur(8px);
}
.head-profile svg { width: 1.2rem; height: 1.2rem; }

/* The swipe-down console strip. */
.strip {
    position: fixed; inset-inline: 0; top: 0; z-index: 40;
    transform: translateY(-100%); transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
    background: rgb(10 12 15 / 0.97); backdrop-filter: blur(16px);
    border-bottom-left-radius: 24px; border-bottom-right-radius: 24px;
    box-shadow: 0 24px 60px rgb(0 0 0 / 0.6); border-bottom: 1px solid rgb(255 255 255 / 0.1);
    padding-top: env(safe-area-inset-top);
}
.strip.is-open { transform: translateY(0); }
.strip-inner { display: flex; gap: 1rem; padding: 1.25rem; }
.strip-art { width: 40%; flex: 0 0 auto; }
.strip-artbtn { width: 100%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 14px; overflow: hidden; background: rgb(255 255 255 / 0.04); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.strip-artbtn img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.strip-mono { font-size: 3rem; font-weight: 900; color: var(--brand); }
.strip-body { flex: 1 1 auto; min-width: 0; }
.strip-name { font-size: 1.05rem; font-weight: 800; }
.strip-slogan { font-size: 0.8rem; color: #aeb3b8; margin-top: 0.25rem; }
.strip-phone { display: inline-block; margin-top: 0.5rem; color: var(--brand); font-size: 0.85rem; }
.strip-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.strip-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
    padding: 0.5rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    color: #f2f4f6; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16);
}
.strip-chip svg { width: 0.95rem; height: 0.95rem; }
.strip-close { display: block; width: 100%; padding: 0.5rem; color: rgb(255 255 255 / 0.4); background: none; border: 0; cursor: pointer; }

/* The fixed action bar. */
.actionbar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 25;
    display: flex; gap: 0.6rem; padding: 0.5rem 1rem max(1rem, env(safe-area-inset-bottom));
}
.bar-btn {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    padding: 0.8rem 0.4rem; border-radius: 16px; text-decoration: none;
    font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
    color: #fff; border: 1px solid rgb(255 255 255 / 0.16);
    background: rgb(255 255 255 / 0.10); backdrop-filter: blur(10px); transition: background 0.15s;
}
.bar-btn:hover, .bar-btn:active { background: rgb(255 255 255 / 0.22); }
.bar-btn svg { width: 1.25rem; height: 1.25rem; }

/* Bottom-sheet drawer. */
.sheet-scrim { position: fixed; inset: 0; z-index: 45; background: rgb(0 0 0 / 0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.sheet-scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 46;
    transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0, 0, 1);
    background: rgb(16 18 22 / 0.98); backdrop-filter: blur(16px);
    border-top-left-radius: 24px; border-top-right-radius: 24px;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding: 0.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    max-height: 85dvh; overflow-y: auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet-grip { width: 2.2rem; height: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.2); margin: 0 auto 1rem; }
.sheet-title { font-size: 1.1rem; font-weight: 800; }
.sheet-lead { font-size: 0.85rem; color: #aeb3b8; margin: 0.5rem 0 1rem; }
.sheet-input {
    width: 100%; margin-bottom: 0.7rem; padding: 0.8rem 0.9rem; border-radius: 10px;
    background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.15);
    color: #f2f4f6; font-size: 0.9rem;
}
.sheet-btn {
    width: 100%; margin-top: 0.3rem; padding: 0.95rem; border-radius: 10px; cursor: pointer;
    background: var(--brand); color: #0b0d10; font-weight: 800; border: 0;
}
.sheet-btn:disabled { opacity: 0.6; }
.sheet-done { font-size: 0.95rem; color: #4FB286; padding: 1rem 0; }

/* ── Rider identity (guest accounts) ─────────────────────────────────────── */
.head-profile.is-authed { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.head-avatar {
    width: 100%; height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.95rem; color: #0b0d10; background: var(--brand);
}
.head-avatar-img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }

.sheet-err { font-size: 0.8rem; color: #ff7a7a; margin: 0 0 0.75rem; }
.sheet-btn-ghost {
    background: transparent; color: #f2f4f6; border: 1px solid rgb(255 255 255 / 0.22);
}
.sheet-btn-ghost:hover { background: rgb(255 255 255 / 0.06); }

.acct-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1.25rem; }
.acct-avatar {
    width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem; color: #0b0d10; background: var(--brand);
}
.acct-avatar-img { width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: 999px; object-fit: cover; }
.acct-id { display: flex; flex-direction: column; min-width: 0; }
.acct-id strong { font-size: 0.95rem; font-weight: 700; color: #f2f4f6; }
.acct-id small { font-size: 0.8rem; color: #aeb3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct-names { display: flex; gap: 0.5rem; }
.acct-names .sheet-input { flex: 1 1 0; min-width: 0; }
