/* ============================================================
   "Get the Android app" card - Pages/Shared/_QrScannerAppPromo.cshtml
   Prefix .qap-. The site template gives every <section> 60px padding
   and overflow:hidden; both are reset on .qap.
   ============================================================ */

.qap {
    padding: 0 !important;
    overflow: visible !important;
    margin: 40px auto 28px;
    max-width: 1180px;
    font-family: inherit;
}

.qap *, .qap *::before, .qap *::after { box-sizing: border-box; }

.qap-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto auto;
    align-items: center;
    gap: 28px;
    padding: 30px 34px;
    border-radius: 24px;
    color: #eef2ff;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(99, 132, 255, .35), transparent 60%),
        radial-gradient(500px 280px at 100% 100%, rgba(52, 211, 153, .22), transparent 60%),
        linear-gradient(135deg, #101735 0%, #1b2356 55%, #221a4d 100%);
    box-shadow: 0 20px 50px rgba(16, 23, 53, .25);
    overflow: hidden;
    isolation: isolate;
}

.qap-glow {
    position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; z-index: -1;
    background: conic-gradient(from 90deg, rgba(66,133,244,.0), rgba(66,133,244,.35), rgba(52,168,83,.3), rgba(251,188,4,.25), rgba(66,133,244,0));
    filter: blur(60px); opacity: .6;
    animation: qap-spin 18s linear infinite;
}
@keyframes qap-spin { to { transform: rotate(360deg); } }

.qap-kicker {
    display: inline-flex; align-items: center; gap: 7px;
    margin: 0 0 10px; padding: 4px 11px; border-radius: 999px;
    background: rgba(61, 220, 132, .14); color: #7ff0b0;
    font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.qap-kicker svg { width: 16px; height: 16px; fill: #3ddc84; }

.qap-title { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; color: #fff; }
.qap-lead { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: #c9d2ff; max-width: 560px; }

.qap-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; }
.qap-points li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: #e3e8ff; }
.qap-points li span { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 14px; }

.qap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.qap-store {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px 9px 14px; border-radius: 12px;
    background: #000; color: #fff !important; text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.qap-store:hover, .qap-store:focus-visible { transform: translateY(-2px); border-color: rgba(255,255,255,.6); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.qap-store:focus-visible { outline: 3px solid #7ff0b0; outline-offset: 3px; }
.qap-store-logo { width: 26px; height: 26px; flex: none; }
.qap-store-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 19px; font-weight: 600; }
.qap-store-text small { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.qap-meta { font-size: 13px; color: #aab5ea; }

/* ---------- phone ---------- */
.qap-visual { display: flex; justify-content: center; }
.qap-phone {
    position: relative; width: 150px; height: 262px; padding: 10px;
    border-radius: 30px; background: linear-gradient(160deg, #2a3163, #0c1030);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 40px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.04);
    transform: rotate(-6deg);
    animation: qap-float 6s ease-in-out infinite;
}
@keyframes qap-float { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-8px); } }
.qap-phone-notch { position: absolute; top: 12px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 4px; background: rgba(0,0,0,.6); z-index: 2; }
.qap-phone-screen {
    height: 100%; border-radius: 22px; padding: 26px 14px 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, #f5f7ff, #dfe6ff);
}
.qap-icon { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 6px 14px rgba(20,30,80,.25); }
.qap-scan { position: relative; width: 90px; height: 90px; border-radius: 10px;
    background:
        linear-gradient(90deg, #1b2356 25%, transparent 25% 50%, #1b2356 50% 75%, transparent 75%) 0 0 / 18px 18px,
        linear-gradient(#1b2356 25%, transparent 25% 50%, #1b2356 50% 75%, transparent 75%) 0 0 / 18px 18px;
    opacity: .9; }
.qap-corner { position: absolute; width: 18px; height: 18px; border: 3px solid #3d6ff0; }
.qap-corner.c1 { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.qap-corner.c2 { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.qap-corner.c3 { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.qap-corner.c4 { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.qap-laser {
    position: absolute; left: -4px; right: -4px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #ff3b5c, transparent);
    box-shadow: 0 0 12px #ff3b5c;
    animation: qap-laser 2.2s ease-in-out infinite;
}
@keyframes qap-laser { 0%,100% { top: 4%; } 50% { top: 92%; } }
.qap-phone-label { font-size: 10px; font-weight: 700; color: #1b2356; letter-spacing: .02em; white-space: nowrap; }

/* ---------- desktop QR ---------- */
.qap-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; }
.qap-qr-box {
    width: 132px; height: 132px; padding: 8px; border-radius: 14px; background: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.qap-qr-box canvas, .qap-qr-box svg, .qap-qr-box img { width: 116px !important; height: 116px !important; display: block; }
.qap-qr-note { margin: 0; text-align: center; font-size: 11.5px; line-height: 1.35; color: #aab5ea; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .qap-card { grid-template-columns: minmax(0, 1fr) auto; }
    .qap-qr { display: none; }
}
@media (max-width: 640px) {
    .qap { margin: 28px auto 20px; }
    .qap-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; border-radius: 20px; }
    .qap-visual { order: -1; }
    .qap-phone { width: 120px; height: 208px; }
    .qap-scan { width: 70px; height: 70px; }
    .qap-store { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .qap-glow, .qap-phone, .qap-laser { animation: none; }
    .qap-store { transition: none; }
}
