/* ============================================================
   APP DOWNLOAD SECTION + STORE BADGES — prefixes: app- / sb-
============================================================ */

.app-section {
    padding: 72px 24px 24px;
    background: rgba(253, 250, 244, 0.96);
}

.app-box {
    --ph-w: 210px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 56px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 0% 0%, rgba(227, 152, 45, 0.16), transparent 45%),
        linear-gradient(135deg, #0d2520 0%, #163f35 100%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(13, 37, 32, 0.28);
    overflow: hidden;
}

.app-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 30%, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    pointer-events: none;
}

.app-glow {
    position: absolute;
    right: -120px;
    top: 50%;
    width: 560px;
    height: 560px;
    margin-top: -280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 194, 97, 0.34), transparent 65%);
    pointer-events: none;
}

.app-copy,
.app-visual {
    position: relative;
    z-index: 1;
}

.app-eyebrow span {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 194, 97, 0.35);
    background: rgba(255, 194, 97, 0.1);
    color: #ffc261;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-title {
    margin: 18px 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.app-title em {
    font-style: normal;
    color: #ffc261;
}

.app-sub {
    margin: 0 0 26px;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.app-features {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-feat-ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffc261;
}

.app-feat-ico svg {
    width: 20px;
    height: 20px;
}

.app-features strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.app-features small {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* ── Coverflow phones ── */
.app-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.app-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: calc(var(--ph-w) * 2.1 + 20px);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.app-shot {
    -webkit-user-drag: none;
}

.app-phone {
    position: absolute;
    top: 10px;
    left: 50%;
    width: var(--ph-w);
    aspect-ratio: 9 / 19;
    border-radius: 30px;
    border: 6px solid #07130f;
    background: #fdfaf4;
    overflow: hidden;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.7s cubic-bezier(.2, .7, .2, 1), opacity 0.7s ease, filter 0.7s ease;
    cursor: pointer;
}

.app-phone[data-pos="0"] {
    transform: translateX(-50%) scale(1);
    z-index: 3;
}

.app-phone[data-pos="-1"] {
    transform: translateX(-118%) scale(0.84) rotate(-5deg);
    z-index: 2;
    filter: brightness(0.8);
}

.app-phone[data-pos="1"] {
    transform: translateX(18%) scale(0.84) rotate(5deg);
    z-index: 2;
    filter: brightness(0.8);
}

.app-phone[data-pos="2"] {
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.app-phone-notch {
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 2;
    width: 64px;
    height: 7px;
    margin-left: -32px;
    border-radius: 99px;
    background: #07130f;
}

.app-shot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder mock screens */
.app-mock {
    padding: 30px 14px 14px;
    color: #1d1a14;
}

.app-mock-logo {
    display: block;
    height: 30px;
    margin: 0 auto 8px;
}

.app-mock-title {
    margin-bottom: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c77f1f;
}

.app-mock-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 0;
    border-top: 1px solid #eee5d3;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-mock-row b {
    margin-left: auto;
    font-size: 0.6rem;
    color: #2f7d5b;
}

.app-mock-row i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e3982d;
}

.app-mock-row i.ok {
    background: #2f7d5b;
}

.app-dots {
    display: flex;
    gap: 8px;
}

.app-dot-btn {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.app-dot-btn.is-active {
    width: 26px;
    background: #ffc261;
}

/* Store badges (shared by app section + footer) */
.sb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.sb-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 9px 18px;
    border-radius: 10px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.sb-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: #fff;
}

.sb-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.sb-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.sb-badge-text small {
    font-size: 10px;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

.sb-badge-text strong {
    font-size: 15px;
    font-weight: 600;
}

.sb-badges--footer {
    margin: 0 0 20px;
}

.sb-badges--footer .sb-badge {
    min-width: 0;
    padding: 7px 14px;
}

@media (max-width: 991px) {
    .app-box {
        --ph-w: 180px;
        gap: 28px;
        padding: 48px 32px;
    }
}

@media (max-width: 820px) {
    .app-section {
        padding: 48px 16px 16px;
    }

    .app-box {
        grid-template-columns: 1fr;
        padding: 40px 22px;
        border-radius: 26px;
    }

    .app-visual {
        order: -1;
    }

    .app-sub {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .app-box {
        --ph-w: 140px;
        padding: 30px 18px;
    }

    .app-phone {
        border-width: 4px;
        border-radius: 22px;
    }

    .app-phone-notch {
        width: 44px;
        height: 5px;
        margin-left: -22px;
    }

    .sb-badges {
        flex-direction: column;
    }

    .sb-badge {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-phone {
        transition: none;
    }
}
