/* Kurify — App download landing page */

.rj-dl {
    max-width: 1120px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* —— Hero —— */
.rj-dl-hero {
    position: relative;
    padding: 2rem 0 3rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.rj-dl-hero__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 420px;
    background:
        radial-gradient(ellipse 60% 50% at 70% 20%, rgba(157, 78, 221, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 60%, rgba(230, 57, 70, 0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.rj-dl-hero .row {
    position: relative;
    z-index: 1;
}

.rj-dl-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rj-accent-2);
    background: rgba(157, 78, 221, 0.12);
    border: 1px solid rgba(157, 78, 221, 0.28);
    border-radius: 999px;
}

.rj-dl-hero__title {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.rj-dl-hero__lead {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--rj-muted);
    max-width: 34rem;
    margin-bottom: 1.25rem;
}

.rj-dl-hero__version {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--rj-muted);
    margin-bottom: 1.5rem;
}

.rj-dl-hero__version strong {
    color: var(--rj-text);
}

.rj-dl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.rj-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rj-dl-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--rj-accent), #c1121f);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.rj-dl-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.45);
}

.rj-dl-btn--ghost {
    color: var(--rj-text);
    background: var(--rj-surface);
    border-color: var(--rj-border);
}

.rj-dl-btn--ghost:hover {
    color: #fff;
    background: var(--rj-surface-2);
    border-color: rgba(157, 78, 221, 0.4);
}

/* Phone mockup */
.rj-dl-device {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.rj-dl-device__frame {
    width: min(280px, 78vw);
    padding: 11px;
    background: linear-gradient(155deg, #353548 0%, #16161f 55%, #0a0a0f 100%);
    border-radius: 38px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rj-dl-device__frame::before {
    content: '';
    display: block;
    width: 96px;
    height: 24px;
    margin: 0 auto 10px;
    background: #0a0a0f;
    border-radius: 0 0 14px 14px;
}

.rj-dl-device__screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, #1e1e2e 0%, #0a0a0f 100%);
    border-radius: 28px;
}

.rj-dl-device__logo {
    border-radius: 22%;
    box-shadow: 0 10px 28px rgba(157, 78, 221, 0.35);
    margin-bottom: 1rem;
}

.rj-dl-device__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.rj-dl-device__tag {
    font-size: 0.8rem;
    color: var(--rj-muted);
    margin-bottom: 2rem;
}

.rj-dl-device__bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 42px;
}

.rj-dl-device__bars span {
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--rj-accent-2), var(--rj-accent));
    animation: rj-dl-wave 1.15s ease-in-out infinite;
}

.rj-dl-device__bars span:nth-child(1) { height: 14px; animation-delay: 0s; }
.rj-dl-device__bars span:nth-child(2) { height: 24px; animation-delay: 0.12s; }
.rj-dl-device__bars span:nth-child(3) { height: 36px; animation-delay: 0.24s; }
.rj-dl-device__bars span:nth-child(4) { height: 24px; animation-delay: 0.36s; }
.rj-dl-device__bars span:nth-child(5) { height: 16px; animation-delay: 0.48s; }

@keyframes rj-dl-wave {
    0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* —— Sections —— */
.rj-dl-section {
    padding: 2.5rem 0;
}

.rj-dl-section--muted {
    padding: 2.5rem 1.25rem;
    margin-inline: -0.75rem;
    background: rgba(20, 20, 31, 0.55);
    border-block: 1px solid var(--rj-border);
    border-radius: 20px;
}

@media (min-width: 992px) {
    .rj-dl-section--muted {
        margin-inline: 0;
        padding-inline: 1.5rem;
    }
}

.rj-dl-section__head {
    margin-bottom: 1.5rem;
}

.rj-dl-section__head--center {
    text-align: center;
}

.rj-dl-section__title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.rj-dl-section__sub {
    margin: 0.4rem 0 0;
    color: var(--rj-muted);
    font-size: 0.95rem;
}

.rj-dl-card {
    background: var(--rj-surface);
    border: 1px solid var(--rj-border);
    border-radius: 20px;
    padding: 1.75rem;
}

/* —— Store list —— */
.rj-dl-stores {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .rj-dl-stores {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rj-dl-store {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--rj-surface);
    border: 1px solid var(--rj-border);
    border-radius: 14px;
    color: var(--rj-text);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rj-dl-store:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--store-accent, var(--rj-accent-2)) 55%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.rj-dl-store--wide {
    grid-column: 1 / -1;
}

.rj-dl-store--disabled {
    opacity: 0.55;
    cursor: default;
    position: relative;
}

.rj-dl-store__badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--store-accent, var(--rj-accent-2)) 14%, var(--rj-surface-2));
    overflow: hidden;
}

.rj-dl-store__badge img {
    width: 40px;
    height: auto;
    display: block;
}

.rj-dl-store__badge--icon {
    font-size: 1.35rem;
    color: var(--store-accent, var(--rj-accent));
}

.rj-dl-store__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: right;
}

.rj-dl-store__text strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.rj-dl-store__text small {
    font-size: 0.78rem;
    color: var(--rj-muted);
    line-height: 1.4;
}

.rj-dl-store__arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--rj-muted);
    transition: transform 0.2s ease;
}

.rj-dl-store:hover .rj-dl-store__arrow {
    transform: translateX(-4px);
    color: var(--store-accent, var(--rj-accent-2));
}

.rj-dl-store__soon {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--rj-muted);
}

/* —— Features —— */
.rj-dl-feature {
    height: 100%;
    padding: 1.35rem;
    background: var(--rj-surface);
    border: 1px solid var(--rj-border);
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rj-dl-feature:hover {
    border-color: rgba(157, 78, 221, 0.35);
    transform: translateY(-3px);
}

.rj-dl-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    color: var(--rj-accent-2);
    background: rgba(157, 78, 221, 0.12);
    border-radius: 12px;
}

.rj-dl-feature h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.rj-dl-feature p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--rj-muted);
}

/* —— QR —— */
.rj-dl-qr {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rj-dl-qr-caption {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--rj-muted);
}

.rj-dl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rj-dl-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--rj-muted);
}

.rj-dl-steps li span {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--rj-accent-2), var(--rj-accent));
    border-radius: 50%;
}

/* —— APK steps —— */
.rj-dl-step {
    height: 100%;
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--rj-surface);
    border: 1px solid var(--rj-border);
    border-radius: 14px;
}

.rj-dl-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--rj-accent-2), var(--rj-accent));
    border-radius: 50%;
}

.rj-dl-step p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--rj-muted);
}

/* —— CTA —— */
.rj-dl-cta {
    margin-top: 1rem;
    padding: 2.25rem 1.5rem;
    background:
        linear-gradient(var(--rj-surface), var(--rj-surface)) padding-box,
        linear-gradient(135deg, rgba(157, 78, 221, 0.45), rgba(230, 57, 70, 0.35)) border-box;
    border: 1px solid transparent;
}

/* —— Responsive —— */
@media (max-width: 991.98px) {
    .rj-dl-hero {
        text-align: center;
    }

    .rj-dl-hero__lead,
    .rj-dl-hero__version {
        margin-left: auto;
        margin-right: auto;
    }

    .rj-dl-hero__actions {
        justify-content: center;
    }

    .rj-dl-device {
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .rj-dl-hero {
        padding-top: 1.25rem;
    }

    .rj-dl-section {
        padding: 2rem 0;
    }

    .rj-dl-card {
        padding: 1.25rem;
    }

    .rj-dl-btn {
        width: 100%;
        justify-content: center;
    }

    .rj-dl-hero__actions .rj-dl-btn {
        width: auto;
        flex: 1 1 auto;
        min-width: calc(50% - 0.35rem);
    }
}
