/**
 * Shared “download ConnectPlus Android app” call-to-action (index.php, welcome.php, stk.php).
 * Animation is subtle so it draws attention without feeling spammy.
 */
@keyframes cp-apk-attn {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 4px 18px rgba(255, 214, 0, 0.42);
    }
}

.cp-apk-animated {
    animation: cp-apk-attn 2.4s ease-in-out infinite;
}

/* P4-2: honour the reduced-motion preference for the attention pulse. */
@media (prefers-reduced-motion: reduce) {
    .cp-apk-animated {
        animation: none;
    }
}

/* Homepage / welcome pill (Legacy captive portal only) */
body:not(.cp-captive-theme) .app-mini-cta {
    margin-bottom: 6px;
    text-align: center;
}

body:not(.cp-captive-theme) .app-mini-cta .mini-apk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    background: #ad2323;
    color: #fff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body:not(.cp-captive-theme) .app-mini-cta .mini-apk:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
    animation: none;
}

body:not(.cp-captive-theme) .app-mini-cta .mini-note {
    margin-left: 8px;
    font-size: 0.75rem;
    /* Sits on the legacy brand-red content wrapper, so it must be light. */
    color: #ffffff;
}

body:not(.cp-captive-theme) .app-mini-cta-foot {
    margin-top: 4px;
    font-size: 0.7rem;
    text-align: center;
    color: #94a3b8;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.app-install-bonus-cta {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.app-install-bonus-cta .app-install-bonus-msg {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: inherit;
}

body:not(.cp-captive-theme) .app-mini-cta-foot .fa {
    font-size: 0.8rem;
    color: #6ee7b7;
}

body:not(.cp-captive-theme) .app-mini-cta-foot-text {
    /* Sits on the legacy brand-red content wrapper, so it must be light. */
    color: #ffffff;
}

.welcome-app-download-row {
    margin: 10px 0 14px;
}

/* Welcome page sits on a photo background — use dark note text (index keeps light .mini-note). */
.welcome-app-download-row .welcome-app-download-note {
    display: block;
    margin-top: 6px;
    margin-left: 0;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}
