/* ============================================
   UBER PICKUP & DELIVERY - FixStop
   Relies on fixstop.css for tokens, .btn-cta, .section-label, .section-title
   ============================================ */

/* ---- Hero ---- */
.pk-hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(900px 420px at 85% 10%, rgba(0, 160, 240, 0.10), transparent 70%),
        linear-gradient(180deg, #F5F9FD 0%, var(--white) 100%);
    overflow: hidden;
}
.pk-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}
.pk-hero-title {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--dark);
    margin: 0 0 20px;
}
.pk-hero-title .accent { color: var(--blue); }
.pk-hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4A5568;
    max-width: 520px;
    margin: 0 0 28px;
}
.pk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-bottom: 28px;
}
.pk-hero-actions .btn-cta { padding: 15px 30px; font-size: 0.95rem; cursor: pointer; }
.pk-hero-call { font-weight: 600; color: #4A5568; }
.pk-hero-call:hover { color: var(--blue); }
.pk-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
}
.pk-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}
.pk-hero-points .icon { color: var(--accent-green); width: 1.05em; height: 1.05em; }

/* ---- 3D scene ---- */
.pk-scene {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: linear-gradient(180deg, #D7ECFB 0%, #EEF6FC 55%, #F6FAF6 100%);
    border: 1px solid #DCE7F1;
    box-shadow: 0 30px 70px -30px rgba(0, 74, 128, 0.35);
    overflow: hidden;
}
.pk-scene canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}
.pk-scene-ready canvas { opacity: 1; }
.pk-scene-tag {
    position: absolute;
    transform: translate(-50%, -100%);
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(10, 14, 20, 0.12);
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.3s;
    pointer-events: none;
}
.pk-tag-shop { background: var(--blue); color: var(--white); }
.pk-scene-ready .pk-scene-tag { opacity: 1; }
.pk-scene-status {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(10, 14, 20, 0.86);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.pk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6);
    animation: pk-pulse 1.8s infinite;
}
@keyframes pk-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(0, 214, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}
/* no WebGL: keep the panel useful */
.pk-scene-fallback .pk-scene-tag { display: none; }
.pk-scene-fallback .pk-scene-status { bottom: 50%; transform: translate(-50%, 50%); }

/* ---- Sections ---- */
.pk-section { padding: 88px 0; background: var(--white); }
.pk-head { text-align: center; margin-bottom: 48px; }
.pk-head .section-label { justify-content: center; }
.pk-head .section-subtitle { margin: 0 auto; }
.pk-head .section-subtitle a { color: var(--blue); font-weight: 600; }

.pk-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}
.pk-step {
    position: relative;
    padding: 30px 26px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: var(--white);
}
.pk-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #EBF5FF;
    color: var(--blue);
    font-family: var(--font-mono);
    font-weight: 700;
    margin-bottom: 18px;
}
.pk-step h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin: 0 0 8px; }
.pk-step p { font-size: 0.95rem; line-height: 1.65; color: #5A6778; margin: 0; }

.pk-why { background: var(--dark); color: #C9D4E0; }
.pk-why .section-title { color: var(--white); }
.pk-why .section-label { color: var(--blue-bright); }
.pk-why .section-label::before { background: var(--blue-bright); }
.pk-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.pk-why-grid p { font-size: 1.02rem; line-height: 1.75; margin: 0 0 16px; }
.pk-why-grid .btn-cta { margin-top: 12px; cursor: pointer; }
.pk-why-list { display: grid; gap: 14px; margin: 0; padding: 0; }
.pk-why-list li {
    padding: 20px 22px;
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    background: var(--dark-card);
}
.pk-why-list strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.pk-why-list span { font-size: 0.92rem; line-height: 1.6; }

.pk-dev-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.pk-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 14px 22px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: var(--white);
    font: inherit;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.pk-dev img { height: 88px; width: auto; object-fit: contain; }
.pk-dev:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 112, 192, 0.3);
    box-shadow: 0 10px 30px rgba(0, 112, 192, 0.1);
}

.pk-prep { background: #F5F9FD; }
.pk-prep-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 12px;
}
.pk-prep-list li {
    position: relative;
    padding: 16px 20px 16px 52px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    line-height: 1.6;
    color: #4A5568;
}
.pk-prep-list li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.pk-prep-list strong { color: var(--dark); }
.pk-disclaimer { max-width: 760px; margin: 20px auto 0; font-size: 0.88rem; line-height: 1.6; color: #718096; text-align: center; }

button.svc-cta-btn { border: none; font: inherit; font-weight: 700; cursor: pointer; }

/* ---- Modal ---- */
html.pk-locked { overflow: hidden; }
.pk-modal {
    margin: auto;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 36px 32px 30px;
    border: none;
    border-radius: 22px;
    background: var(--white);
    color: #2D3748;
    box-shadow: 0 40px 100px rgba(10, 14, 20, 0.35);
    overflow-y: auto;
}
.pk-modal::backdrop { background: rgba(10, 14, 20, 0.6); backdrop-filter: blur(3px); }
.pk-modal[open] { animation: pk-in 0.28s var(--ease-out); }
@keyframes pk-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.pk-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #718096;
    cursor: pointer;
}
.pk-modal-close:hover { background: #EDF2F7; color: var(--dark); }
.pk-modal-close svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; }
.pk-modal .pk-modal-close { padding: 0; margin: 0; border: none; background: transparent; }

.pk-mprog { display: flex; gap: 6px; margin-bottom: 18px; }
.pk-mprog span { width: 34px; height: 4px; border-radius: 2px; background: #E2E8F0; }
.pk-mprog span.on { background: var(--blue); }
.pk-mtitle { font-size: 1.5rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.25; }
.pk-msub { color: #5A6778; margin: 0 0 22px; line-height: 1.6; }

.pk-mdevices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.pk-mdev {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.pk-mdev input { position: absolute; opacity: 0; pointer-events: none; }
.pk-mdev img { height: 54px; width: auto; object-fit: contain; }
.pk-mdev:hover { border-color: #B8D6EE; }
.pk-mdev:has(input:checked) { border-color: var(--blue); background: #F0F7FF; }
.pk-mdev:has(input:focus-visible) { outline: 3px solid rgba(0, 160, 240, 0.4); outline-offset: 2px; }

.pk-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pk-span2 { grid-column: span 2; }
.pk-field { display: block; margin-bottom: 0; }
.pk-field > span { display: block; font-size: 0.82rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.pk-field em { font-style: normal; font-weight: 500; color: #8A9BB0; }
.pk-field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1.5px solid #D5DEE8;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
    color: var(--dark);
    background: var(--white);
    box-shadow: none;
    margin: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pk-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.15); }
.pk-field input.pk-bad { border-color: var(--accent-red); background: #FFF5F5; }
.pk-mstep[data-pk-step="1"] .pk-field { margin-bottom: 18px; }

.pk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pk-merr { color: var(--accent-red); font-weight: 600; font-size: 0.9rem; margin: 14px 0 0; }
.pk-merr[hidden] { display: none; }

.pk-mbtn { width: 100%; justify-content: center; padding: 15px 24px; font-size: 0.95rem; cursor: pointer; margin-top: 18px; }
.pk-mactions { display: flex; gap: 12px; align-items: stretch; margin-top: 18px; }
.pk-modal .pk-mactions .pk-mbtn, .pk-modal .pk-mactions .pk-mback { margin: 0; height: auto; text-transform: none; line-height: 1.2; }
.pk-modal .pk-mbtn { text-transform: none; }
.pk-mactions .pk-mbtn { flex: 1; }
.pk-mback {
    padding: 0 20px;
    background: var(--white);
    font: inherit;
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1.5px solid #D5DEE8;
    font-weight: 700;
    color: #4A5568;
    cursor: pointer;
}
.pk-mback:hover { border-color: #A0AEC0; color: var(--dark); }
.pk-mfine { font-size: 0.8rem; color: #8A9BB0; text-align: center; margin: 14px 0 0; }

.pk-mdone { text-align: center; padding-top: 6px; }
.pk-mcheck {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 214, 143, 0.35);
}
.pk-mcheck svg { width: 30px; height: 30px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pk-steps { grid-template-columns: repeat(2, 1fr); }
    .pk-dev-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .pk-hero { padding: 96px 0 56px; }
    .pk-hero-grid, .pk-why-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
    .pk-section { padding: 64px 0; }
    .pk-steps { grid-template-columns: 1fr; }
    .pk-dev-grid { grid-template-columns: repeat(2, 1fr); }
    .pk-scene { aspect-ratio: 5 / 4; border-radius: 18px; }
    .pk-scene-status { font-size: 0.78rem; bottom: 12px; }
    .pk-modal { padding: 30px 18px 22px; }
    .pk-mgrid { grid-template-columns: 1fr; }
    .pk-span2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .pk-modal[open], .pk-status-dot { animation: none; }
}
