/* App Store / Google Play download section */

.app-download-section {
    padding-top: 0;
}

.app-download-card {
    border: 0;
    border-radius: 28px;
    padding: 36px 32px;
    background:
        radial-gradient(circle at top left, rgba(47, 125, 50, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(242, 182, 50, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbf7);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.app-download-section--compact .app-download-card {
    padding: 28px 24px;
}

.app-download-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 125, 50, 0.12);
    color: var(--agri-forest, #073b24);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    border: 1px solid rgba(47, 125, 50, 0.12);
}

.app-download-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: var(--agri-forest, #073b24);
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.app-download-subtitle {
    color: #526157;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 52ch;
}

.app-download-section--compact .app-download-subtitle {
    margin-bottom: 18px;
}

.app-download-points {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.app-download-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #526157;
    font-weight: 600;
}

.app-download-points .tick {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(47, 125, 50, 0.12);
    color: #2f7d32;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 26px;
}

.app-store-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.app-download-section--compact .app-store-badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.app-store-badge-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge-link:hover,
.app-store-badge-link:focus-visible {
    transform: translateY(-2px);
}

.app-store-badge-link--soon {
    cursor: default;
    opacity: 0.72;
}

.app-store-badge-link--soon:hover,
.app-store-badge-link--soon:focus-visible {
    transform: none;
}

.app-store-badge-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.app-store-badge-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    line-height: 1.4;
}

.app-download-apk-note {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #526157;
    line-height: 1.5;
    max-width: 36ch;
}

.app-download-apk-note a {
    color: var(--agri-forest, #073b24);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-store-badges--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    padding-left: 0;
}

.app-download-section--devices .app-download-card {
    overflow: hidden;
}

.app-device-showcase {
    position: relative;
    min-height: 340px;
    margin: 8px auto 0;
    max-width: 640px;
}

.app-device {
    margin: 0;
    padding: 0;
    line-height: 0;
    position: absolute;
    filter: drop-shadow(0 22px 36px rgba(7, 59, 36, 0.22));
    transition: transform 0.35s ease;
}

.app-device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: transparent;
}

.app-device--tablet {
    width: 72%;
}

.app-device--tablet-back {
    top: 8%;
    left: 2%;
    z-index: 1;
    transform: rotate(-6deg);
}

.app-device--tablet-mid {
    top: 18%;
    right: 0;
    left: auto;
    width: 68%;
    z-index: 2;
    transform: rotate(5deg);
}

.app-device--phone {
    width: 28%;
    z-index: 4;
}

.app-device--phone-left {
    left: 10%;
    bottom: 0;
    transform: rotate(-8deg);
}

.app-device--phone-right {
    right: 8%;
    bottom: -2%;
    z-index: 5;
    transform: rotate(7deg);
}

.app-device-showcase:hover .app-device--tablet-back {
    transform: rotate(-4deg) translateY(-4px);
}

.app-device-showcase:hover .app-device--tablet-mid {
    transform: rotate(3deg) translateY(-6px);
}

.app-device-showcase:hover .app-device--phone-left {
    transform: rotate(-5deg) translateY(-8px);
}

.app-device-showcase:hover .app-device--phone-right {
    transform: rotate(4deg) translateY(-10px);
}

@media (max-width: 991.98px) {
    .app-device-showcase {
        min-height: 280px;
        max-width: 520px;
        margin-top: 8px;
    }

    .app-device--tablet {
        width: 78%;
    }

    .app-device--phone {
        width: 30%;
    }
}

@media (max-width: 575.98px) {
    .app-device-showcase {
        min-height: 240px;
    }

    .app-device--tablet-back {
        left: 0;
        width: 80%;
    }

    .app-device--tablet-mid {
        width: 74%;
        right: -2%;
    }

    .app-device--phone {
        width: 32%;
    }

    .app-device--phone-left {
        left: 4%;
    }

    .app-device--phone-right {
        right: 2%;
    }
}

.footer-app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.footer-app-badges .app-store-badge-image {
    height: 40px;
}

.footer-app-badges .app-store-badge-link--soon {
    opacity: 0.65;
}

@media (min-width: 992px) {
    .app-store-badges {
        align-items: flex-end;
        padding-left: 12px;
    }
}
