.apps-section {
    padding: 4rem 0;
}

.apps-hero .section-kicker,
.apps-section .section-kicker {
    display: inline-block;
    margin-bottom: .65rem;
    color: #5e7d36;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-listing-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    border: 1px solid rgba(49, 85, 34, .18);
    border-radius: 1rem;
    background: #fff;
}

.app-listing-icon {
    width: 110px;
    height: 110px;
}

.app-listing-icon img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1.35rem;
    object-fit: cover;
}

.app-eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: #5f6c59;
    font-size: .9rem;
    font-weight: 600;
}

.app-inline-features {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    list-style: none;
}

.app-inline-features li {
    padding: .4rem .7rem;
    border-radius: 999px;
    background: #eef3eb;
    color: #315522;
    font-size: .9rem;
    font-weight: 600;
}

.app-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.app-facts-card,
.app-support-card {
    padding: 1.5rem;
    border: 1px solid rgba(49, 85, 34, .18);
    border-radius: 1rem;
    background: #fff;
}

.app-facts-card div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(49, 85, 34, .12);
}

.app-facts-card div:last-child {
    border-bottom: 0;
}

.app-facts-card span {
    color: #65705f;
}

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.app-feature-grid article {
    padding: 1.25rem;
    border: 1px solid rgba(49, 85, 34, .14);
    border-radius: .85rem;
}

.app-feature-grid i {
    margin-bottom: .9rem;
    color: #315522;
    font-size: 1.35rem;
}

.app-feature-grid h3 {
    font-size: 1.05rem;
}

.app-support-card hr {
    margin: 1.35rem 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.75rem;
}

.app-gallery {
    padding: 1.25rem;
    border: 1px solid rgba(49, 85, 34, .14);
    border-radius: 1rem;
    background: #f6f8f4;
}

.app-gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-gallery-toolbar p {
    margin: 0;
    color: #576052;
    font-size: .9rem;
}

.app-gallery-controls {
    display: flex;
    flex: none;
    gap: .5rem;
}

.app-gallery-arrow,
.app-gallery-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(49, 85, 34, .25);
    border-radius: 50%;
    background: #fff;
    color: #315522;
    cursor: pointer;
}

.app-gallery-arrow:hover:not(:disabled),
.app-gallery-close:hover {
    background: #eef3eb;
}

.app-gallery-arrow:disabled {
    cursor: default;
    opacity: .35;
}

.app-gallery-arrow:focus-visible,
.app-gallery-close:focus-visible,
.app-screenshot-open:focus-visible,
.app-gallery-track:focus-visible {
    outline: 3px solid #315522;
    outline-offset: 3px;
}

.app-gallery-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .3rem .3rem 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .3rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.app-screenshot {
    flex: 0 0 220px;
    min-width: 0;
    margin: 0;
    scroll-snap-align: start;
}

.app-screenshot-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    cursor: zoom-in;
}

.app-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(49, 85, 34, .18);
    border-radius: 1rem;
    background: #fff;
}

.app-screenshot figcaption {
    padding-top: .7rem;
    color: #315522;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

.app-gallery-dialog {
    position: fixed;
    max-width: min(94vw, 560px);
    max-height: 94vh;
    padding: 1rem;
    border: 1px solid rgba(49, 85, 34, .25);
    border-radius: 1rem;
    background: #fff;
    color: #315522;
}

.app-gallery-dialog::backdrop {
    background: rgba(20, 34, 16, .75);
}

.app-gallery-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.app-gallery-dialog img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(94vh - 7rem);
    margin: 0 auto;
    object-fit: contain;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .app-screenshot {
        flex-basis: 200px;
    }
}

@media (max-width: 767.98px) {
    .app-gallery {
        padding: .8rem;
    }

    .app-gallery-toolbar {
        align-items: flex-start;
    }

    .app-screenshot {
        flex-basis: min(72%, 235px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-gallery-track {
        scroll-behavior: auto;
    }
}

.app-policy-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.75;
}

.app-policy-content h2 {
    margin-top: 2.25rem;
    margin-bottom: .75rem;
    font-size: 1.4rem;
}

.app-policy-content a {
    overflow-wrap: anywhere;
}

.app-policy-date {
    margin-top: 1.2rem;
    color: #576052;
}

.app-policy-back {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(49, 85, 34, .16);
}

@media (max-width: 767.98px) {
    .apps-section {
        padding: 3rem 0;
    }

    .app-listing-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.35rem;
    }

    .app-listing-icon {
        width: 82px;
        height: 82px;
    }

    .app-listing-icon img {
        border-radius: 1rem;
    }

    .app-feature-grid {
        grid-template-columns: 1fr;
    }
}
