
/* JostPay Modern Homepage — isolated design */
.jm-home {
    --jm-green:#087b43;
    --jm-deep:#062f22;
    --jm-ink:#12261e;
    --jm-muted:#64746c;
    color:var(--jm-ink);
    background:#fff;
    font-family:Inter,Arial,sans-serif;
    overflow:hidden;
}
.jm-home * {box-sizing:border-box}
.jm-home a {text-decoration:none}
.jm-wrap {width:min(1240px,calc(100% - 48px));margin:auto}
.jm-section-index {
    font-size:12px;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.jm-hero {
    background:radial-gradient(circle at 50% 72%,#dff5e8 0%,#f5fbf7 45%,#fff 80%);
    padding:110px 0 48px;
}
.jm-hero-top {max-width:1120px;margin:auto;text-align:center}
.jm-kicker {
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#087b43;
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
}
.jm-dot {width:9px;height:9px;border-radius:50%;background:#0caa5e}
.jm-hero h1 {
    font-size:clamp(48px,7.4vw,104px);
    line-height:1.02;
    font-weight:850;
    letter-spacing:-.07em;
    margin:30px 0;
}
.jm-hero h1 em,.jm-app-copy h2 em,.jm-final-cta h2 em {
    font-style:normal;
    color:var(--jm-green);
}
.jm-hero-bottom {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:36px;
    flex-wrap:wrap;
    margin-bottom:55px;
}
.jm-hero-bottom p {
    max-width:500px;
    text-align:left;
    color:var(--jm-muted);
    font-size:17px;
    line-height:1.75;
}
.jm-buttons {display:flex;gap:12px;flex-wrap:wrap}
.jm-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    padding:16px 24px;
    border-radius:100px;
    font-size:14px;
    font-weight:750;
    transition:transform .2s,background .2s;
}
.jm-button:hover {transform:translateY(-3px)}
.jm-primary {background:var(--jm-green);color:#fff!important}
.jm-secondary {border:1px solid #b8d3c2;color:var(--jm-ink)!important;background:#fff}
.jm-hero-stage {
    border-radius:32px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 35px 100px rgba(5,61,35,.10);
}
.jm-hero-stage img {display:block;width:100%;height:auto}
.jm-hero-caption {
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:24px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.15em;
    color:#769083;
}
.jm-intro {padding:110px 0;border-bottom:1px solid #e5eee8}
.jm-intro-grid {display:grid;grid-template-columns:1fr 2fr;gap:50px}
.jm-intro h2,.jm-section-heading h2 {
    font-size:clamp(40px,5vw,70px);
    line-height:1.08;
    font-weight:850;
    letter-spacing:-.055em;
    margin:16px 0;
}
.jm-intro h2 span,.jm-section-heading h2 span {color:var(--jm-green)}
.jm-intro p {
    color:var(--jm-muted);
    font-size:18px;
    line-height:1.8;
    max-width:650px;
}
.jm-services-section {padding:105px 0;background:#f7faf8}
.jm-section-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:35px;
    margin-bottom:46px;
}
.jm-section-heading>p {
    max-width:350px;
    color:var(--jm-muted);
    line-height:1.8;
}
.jm-services-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.jm-service-card {
    display:flex;
    flex-direction:column;
    min-height:350px;
    padding:25px;
    border:1px solid #e1eae4;
    border-radius:24px;
    background:#fff;
    color:var(--jm-ink)!important;
    transition:transform .25s,box-shadow .25s;
}
.jm-service-card:hover {
    transform:translateY(-5px);
    box-shadow:0 24px 50px rgba(6,47,34,.10);
}
.jm-service-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#829489;
    font-size:10px;
    font-weight:800;
    letter-spacing:.12em;
}
.jm-card-arrow {
    display:grid;
    place-items:center;
    width:35px;
    height:35px;
    border:1px solid #dbe9df;
    border-radius:50%;
    color:var(--jm-green);
    font-size:18px;
}
.jm-service-art {
    display:grid;
    place-items:center;
    flex:1;
    min-height:150px;
    margin:8px 0;
}
.jm-service-art img {
    width:125px;
    height:125px;
    object-fit:contain;
}
.jm-service-content h3 {font-size:21px;font-weight:800;margin:0 0 8px}
.jm-service-content p {font-size:14px;color:var(--jm-muted);line-height:1.65;margin:0}
.jm-featured-card {background:#e7f5eb}
.jm-featured-card .jm-service-art img {width:165px;height:165px}
.jm-promo-section {padding:50px 0}
.jm-promo-panel {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    align-items:center;
    padding:45px;
    border-radius:26px;
    background:#e8f6ec;
}
.jm-promo-panel h2 {font-size:36px;font-weight:850;margin:15px 0}
.jm-promo-panel p {line-height:1.8;color:#52675b}
.jm-promo-panel img {max-width:100%;max-height:300px;object-fit:contain}
.jm-app-section {
    background:#063c2a;
    color:#fff;
    padding:100px 0;
    overflow:hidden;
}
.jm-app-grid {display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.jm-app-copy h2 {
    font-size:clamp(48px,5.4vw,78px);
    font-weight:850;
    letter-spacing:-.06em;
    line-height:1.08;
    margin:25px 0;
}
.jm-app-copy h2 em {color:#7ee2a5}
.jm-app-copy p {color:#c6ded0;line-height:1.8;font-size:17px;max-width:470px}
.jm-app-copy .jm-buttons {margin-top:32px}
.jm-white {background:#fff;color:#063c2a!important}
.jm-green-outline {border:1px solid #80b59b;color:#fff!important}
.jm-app-art {display:flex;align-items:center;justify-content:center;gap:15px}
.jm-app-art img {width:46%;max-width:280px;height:auto;filter:drop-shadow(0 20px 30px rgba(0,0,0,.22))}
.jm-phone-two {transform:translateY(35px)}
.jm-instagram-section {padding:110px 0}
.jm-instagram-link {font-weight:800;color:var(--jm-green)!important}
.jm-instagram-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.jm-instagram-card {position:relative;aspect-ratio:1;overflow:hidden;border-radius:20px;background:#e6f1e9}
.jm-instagram-card img {width:100%;height:100%;object-fit:cover;transition:transform .3s}
.jm-instagram-card:hover img {transform:scale(1.05)}
.jm-instagram-overlay {
    position:absolute;
    inset:auto 0 0;
    padding:35px 20px 20px;
    background:linear-gradient(transparent,rgba(0,0,0,.65));
    color:#fff;
    font-weight:800;
}
.jm-final-cta {padding:105px 0;text-align:center;background:#eaf6ed}
.jm-final-cta h2 {
    font-size:clamp(48px,6vw,86px);
    line-height:1.08;
    font-weight:850;
    letter-spacing:-.06em;
    margin:25px 0 35px;
}
@media(max-width:900px) {
    .jm-intro-grid,.jm-app-grid {grid-template-columns:1fr}
    .jm-services-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .jm-hero {padding-top:80px}
    .jm-hero-bottom p {text-align:center}
    .jm-section-heading {align-items:start;flex-direction:column}
}
@media(max-width:600px) {
    .jm-wrap {width:calc(100% - 30px)}
    .jm-hero {padding:55px 0 30px}
    .jm-hero h1 {font-size:clamp(43px,10vw,62px)}
    .jm-hero-stage {border-radius:18px}
    .jm-hero-bottom {gap:18px;margin-bottom:35px}
    .jm-hero-caption {font-size:8px}
    .jm-intro,.jm-services-section,.jm-instagram-section {padding:65px 0}
    .jm-services-grid {grid-template-columns:1fr}
    .jm-service-card {min-height:300px}
    .jm-app-section {padding:70px 0}
    .jm-app-grid {gap:30px}
    .jm-app-art img {width:47%}
    .jm-instagram-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .jm-promo-panel {grid-template-columns:1fr;padding:25px}
    .jm-final-cta {padding:70px 0}
}
@media(prefers-reduced-motion:reduce) {
    .jm-home * {transition:none!important}
}


/* JOSTPAY HERO V2 */

/* Deep-green hero */
.jm-home .jm-hero {
    background:
        radial-gradient(
            ellipse at 70% 35%,
            rgba(27, 150, 86, .30),
            transparent 55%
        ),
        linear-gradient(
            145deg,
            #04291d 0%,
            #06432d 55%,
            #075737 100%
        );
    color: #ffffff;
    padding-top: 105px;
    padding-bottom: 75px;
}

/* Headline */
.jm-home .jm-hero h1 {
    color: #ffffff;
    animation: jmRevealUp .85s ease-out both;
}

.jm-home .jm-hero h1 em {
    color: #7ee7a8;
}

/* Eyebrow */
.jm-home .jm-kicker {
    color: #b7efcd;
    animation: jmRevealUp .65s ease-out both;
}

/* Description */
.jm-home .jm-hero-bottom p {
    color: #d0e8d9;
    animation: jmRevealUp .9s .15s ease-out both;
}

/* Buttons */
.jm-home .jm-hero .jm-buttons {
    animation: jmRevealUp .9s .25s ease-out both;
}

.jm-home .jm-hero .jm-primary {
    background: #24b96c;
    color: #ffffff !important;
}

.jm-home .jm-hero .jm-primary:hover {
    background: #31cb7b;
}

.jm-home .jm-hero .jm-secondary {
    background: transparent;
    border-color: rgba(255,255,255,.45);
    color: #ffffff !important;
}

.jm-home .jm-hero .jm-secondary:hover {
    background: rgba(255,255,255,.10);
}

/* Device composition */
.jm-home .jm-hero-stage {
    background: #ffffff;
    box-shadow: 0 35px 100px rgba(0,0,0,.22);
    animation: jmDeviceReveal 1.15s .35s ease-out both;
}

/* Bottom captions */
.jm-home .jm-hero-caption {
    color: #b3dcc4;
}

/* Smooth entrance */
@keyframes jmRevealUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jmDeviceReveal {
    from {
        opacity: 0;
        transform: translateY(38px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jm-home .jm-hero {
        padding-top: 65px;
        padding-bottom: 50px;
    }

    .jm-home .jm-hero h1 {
        font-size: clamp(40px, 10vw, 62px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .jm-home .jm-hero h1,
    .jm-home .jm-kicker,
    .jm-home .jm-hero-bottom p,
    .jm-home .jm-hero .jm-buttons,
    .jm-home .jm-hero-stage {
        animation: none !important;
    }
}


/* JOSTPAY HERO V3 */

/* Blend premium artwork into the green hero */
.jm-home .jm-hero-stage {
    background: transparent;
    box-shadow: none;
    border-radius: 24px;
    overflow: hidden;
}

.jm-home .jm-hero-stage img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Keep device composition visually prominent */
.jm-home .jm-hero-stage {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive artwork */
@media (max-width: 600px) {
    .jm-home .jm-hero-stage {
        border-radius: 14px;
    }
}


/* JOSTPAY SERVICES V2 */

.jm-service-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.jm-filter {
    appearance: none;
    border: 1px solid #d8e7dd;
    background: #ffffff;
    color: #375345;
    padding: 12px 20px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.jm-filter:hover {
    border-color: #087b43;
    color: #087b43;
}

.jm-filter.active {
    background: #087b43;
    border-color: #087b43;
    color: #ffffff;
}

.jm-home .jm-service-card[hidden],
.jm-home .jm-view-all[hidden] {
    display: none !important;
}

.jm-services-actions {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.jm-view-all {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.jm-filter:focus-visible,
.jm-view-all:focus-visible {
    outline: 3px solid #24b96c;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .jm-service-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        margin-bottom: 24px;
        scrollbar-width: thin;
    }

    .jm-filter {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 11px 16px;
        font-size: 12px;
    }
}


/* JOSTPAY HERO V4 — WEB + MOBILE DOWNLOADS */

.jm-home .jm-hero-action-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.jm-home .jm-hero-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jm-home .jm-download-label {
    color: #bcebd1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.jm-home .jm-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.jm-home .jm-store-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 166px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 12px;
    background: #101713;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

.jm-home .jm-store-button:hover {
    transform: translateY(-3px);
    background: #1c2821;
}

.jm-home .jm-store-icon {
    font-size: 29px;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.jm-home .jm-store-button span:not(.jm-store-icon) {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.jm-home .jm-store-button small {
    font-size: 10px;
}

.jm-home .jm-store-button strong {
    font-size: 17px;
    font-weight: 750;
}

.jm-home .jm-store-button:focus-visible {
    outline: 3px solid #a7edbf;
    outline-offset: 4px;
}

.jm-home .jm-hero-stage {
    margin-top: 35px;
}

@media (max-width: 900px) {
    .jm-home .jm-hero-action-group,
    .jm-home .jm-hero-downloads {
        align-items: center;
    }

    .jm-home .jm-store-buttons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .jm-home .jm-store-buttons {
        gap: 9px;
    }

    .jm-home .jm-store-button {
        min-width: 145px;
        padding: 10px 12px;
    }

    .jm-home .jm-store-button strong {
        font-size: 14px;
    }

    .jm-home .jm-hero-stage {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jm-home .jm-store-button {
        transition: none;
    }
}


/* JOSTPAY HERO V5 — IMAGE DOWNLOAD POSITION */

.jm-home .jm-hero-stage {
    position: relative;
    overflow: visible;
    padding-bottom: 24px;
}

.jm-home .jm-hero-stage-downloads {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(3,34,23,.88);
    box-shadow: 0 16px 45px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.jm-home .jm-hero-stage-downloads .jm-hero-downloads {
    align-items: center;
    gap: 10px;
}

.jm-home .jm-hero-stage-downloads .jm-store-buttons {
    justify-content: center;
}

.jm-home .jm-hero-stage-downloads .jm-download-label {
    text-align: center;
}

@media (max-width: 600px) {
    .jm-home .jm-hero-stage {
        padding-bottom: 0;
    }

    .jm-home .jm-hero-stage-downloads {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: -10px auto 12px;
        padding: 14px 10px;
        box-sizing: border-box;
    }

    .jm-home .jm-hero-stage-downloads .jm-store-buttons {
        flex-wrap: wrap;
    }
}


/* JOSTPAY BRAND COLOURS V2 */

.jm-home {
    --jm-brand-green: #087B43;
    --jm-brand-yellow: #FFC928;
    --jm-brand-white: #FFFFFF;
}

/* HERO — golden yellow headline accent */
.jm-home .jm-hero h1 em {
    color: var(--jm-brand-yellow);
    -webkit-text-fill-color: var(--jm-brand-yellow);
}

/* Small golden detail beside the hero kicker */
.jm-home .jm-hero .jm-dot {
    background: var(--jm-brand-yellow);
    box-shadow: 0 0 0 5px rgba(255,201,40,.14);
}

/* Primary hero button */
.jm-home .jm-hero .jm-primary {
    background: var(--jm-brand-yellow);
    border-color: var(--jm-brand-yellow);
    color: #153A27;
}

.jm-home .jm-hero .jm-primary:hover {
    background: #FFDA59;
    border-color: #FFDA59;
    color: #153A27;
}

/* Section numbering */
.jm-home .jm-section-index {
    color: #A17A00;
    font-weight: 800;
}

/* Service category filters */
.jm-home .jm-filter.active {
    background: var(--jm-brand-green);
    border-color: var(--jm-brand-green);
    color: var(--jm-brand-white);
    box-shadow: inset 0 -3px 0 var(--jm-brand-yellow);
}

/* Service cards — subtle golden hover accent */
.jm-home .jm-service-card {
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.jm-home .jm-service-card:hover {
    border-color: var(--jm-brand-yellow);
    box-shadow: 0 16px 38px rgba(8,123,67,.10);
}

.jm-home .jm-service-card:hover .jm-card-arrow {
    background: var(--jm-brand-yellow);
    color: #153A27;
}

/* Featured service card detail */
.jm-home .jm-featured-card .jm-card-arrow {
    border-color: var(--jm-brand-yellow);
}

/* App Store / Google Play hover */
.jm-home .jm-store-button:hover {
    border-color: var(--jm-brand-yellow);
}

/* Visible keyboard focus */
.jm-home a:focus-visible,
.jm-home button:focus-visible {
    outline: 3px solid var(--jm-brand-yellow);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .jm-home .jm-service-card {
        transition: none;
    }
}


/* JOSTPAY STEP 229C: FOOTER AND INSTAGRAM ENHANCEMENTS */
.jm-instagram-overlay-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.jm-instagram-icon {
    display: block;
    flex: 0 0 auto;
}
.jm-footer-grid {
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.jm-footer-grid > * {
    min-width: 0;
}
.jm-footer-column a {
    overflow-wrap: anywhere;
}
.jm-footer-connect {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 52px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.16);
}
.jm-footer-connect h3 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 18px;
}
.jm-footer-social,
.jm-footer-app-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.jm-footer-social a,
.jm-footer-app-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    transition: transform .2s, border-color .2s;
}
.jm-footer-social a:hover,
.jm-footer-app-icons a:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.45);
}
.jm-footer-social img,
.jm-footer-app-icons img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.jm-footer-bottom {
    margin-top: 30px;
}
@media (max-width: 1100px) {
    .jm-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .jm-footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .jm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 18px;
    }
    .jm-footer-brand {
        grid-column: 1 / -1;
    }
    .jm-footer-connect {
        margin-top: 36px;
    }
}
@media (max-width: 380px) {
    .jm-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* JOSTPAY STEP 230: COMPACT FOOTER + TRANSPARENT ICONS */
.jm-site-footer {
    padding: 42px 0 20px;
}
.jm-footer-grid {
    grid-template-columns: 1.3fr repeat(4,minmax(0,1fr));
    gap: 22px;
}
.jm-footer-brand img {
    width: 145px;
}
.jm-footer-brand p {
    font-size: 13px;
    line-height: 1.6;
}
.jm-site-footer h3 {
    font-size: 13px;
    margin-bottom: 12px;
}
.jm-site-footer li {
    margin-bottom: 7px;
}
.jm-site-footer li a {
    font-size: 12px;
    line-height: 1.35;
}
.jm-footer-connect {
    margin-top: 25px;
    padding-top: 20px;
    gap: 20px;
}
.jm-footer-social,
.jm-footer-app-icons {
    gap: 8px;
}
.jm-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #e5f4eb;
    background: transparent;
}
.jm-footer-social a:hover {
    color: #ffc928;
}
.jm-footer-social svg {
    display: block;
    width: 20px;
    height: 20px;
}
.jm-footer-app-icons a {
    width: 38px;
    height: 38px;
}
.jm-footer-bottom {
    margin-top: 18px;
    padding-top: 15px;
}
@media(max-width:1100px) {
    .jm-footer-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .jm-footer-brand {
        grid-column:1/-1;
    }
}
@media(max-width:700px) {
    .jm-footer-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:22px 15px;
    }
    .jm-footer-brand {
        grid-column:1/-1;
    }
    .jm-site-footer {
        padding-top:35px;
    }
}
@media(max-width:380px) {
    .jm-footer-grid {
        grid-template-columns:1fr;
    }
}


/* JOSTPAY STEP 231: FOOTER ALIGNMENT AND APP ICONS */

/* Five columns remain on one row on desktop */
@media (min-width: 1101px) {
    .jm-footer-grid {
        display: grid;
        grid-template-columns:
            minmax(180px, 1.25fr)
            minmax(155px, 1fr)
            minmax(125px, .85fr)
            minmax(115px, .8fr)
            minmax(145px, .95fr);
        gap: 16px;
        align-items: start;
    }

    .jm-footer-brand {
        grid-column: auto;
    }
}

/* Three columns on tablets */
@media (min-width: 701px) and (max-width: 1100px) {
    .jm-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .jm-footer-brand {
        grid-column: 1 / -1;
    }
}

/* Two columns on mobile */
@media (max-width: 700px) {
    .jm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jm-footer-brand {
        grid-column: 1 / -1;
    }
}

.jm-footer-column {
    min-width: 0;
}

.jm-footer-column h3 {
    white-space: nowrap;
}

.jm-footer-app-icons svg {
    display: block;
    width: 23px;
    height: 23px;
    color: #ffffff;
}

.jm-footer-app-icons a {
    background: transparent;
    color: #ffffff;
}

.jm-footer-app-icons a:hover {
    color: #ffc928;
}

@media (max-width: 380px) {
    .jm-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* JOSTPAY STEP 232: MACBOOK FOOTER ALIGNMENT */

/* Laptop and desktop: all five columns stay together */
@media (min-width: 901px) {
    .jm-site-footer .jm-footer-grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1.15fr)
            minmax(0, 1fr)
            minmax(0, .9fr)
            minmax(0, .75fr)
            minmax(0, .95fr);
        gap: 14px;
        align-items: start;
    }

    .jm-site-footer .jm-footer-brand {
        grid-column: auto;
    }

    .jm-site-footer .jm-footer-column {
        min-width: 0;
    }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 900px) {
    .jm-site-footer .jm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .jm-site-footer .jm-footer-brand {
        grid-column: 1 / -1;
    }
}

/* Phones */
@media (max-width: 600px) {
    .jm-site-footer .jm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .jm-site-footer .jm-footer-brand {
        grid-column: 1 / -1;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .jm-site-footer .jm-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* JOSTPAY STEP 311E CSS-ONLY HOMEPAGE */

/* Image-free hero dashboard */
.jm-home .jm-hero-stage {
    position: relative;
    max-width: 1040px;
    margin: 48px auto 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.jm-home .jm311-dashboard {
    position: relative;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 28px;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.15),
        rgba(255,255,255,.055)
    );
    box-shadow: 0 25px 75px rgba(0,0,0,.14);
}

.jm-home .jm311-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.jm-home .jm311-overline {
    color: #bcebd1;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
}

.jm-home .jm311-dashboard-header h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 35px);
    letter-spacing: -.04em;
    margin: 10px 0;
}

.jm-home .jm311-dashboard-header p {
    color: #d0e8d9;
    margin: 0;
    font-size: 14px;
}

.jm-home .jm311-live {
    white-space: nowrap;
    color: #153a27;
    background: #ffc928;
    padding: 9px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
}

.jm-home .jm311-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
}

.jm-home .jm311-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 24px 18px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    transition: transform .2s, background .2s;
}

.jm-home .jm311-service:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.17);
}

.jm-home .jm311-service-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #ffc928;
    color: #103d29;
    font-size: 23px;
    font-weight: 900;
}

.jm-home .jm311-service strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.jm-home .jm311-service small {
    color: #c4e1d0;
    font-size: 12px;
}

.jm-home .jm311-dashboard-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 30px;
    padding-top: 27px;
    color: #d4eadc;
    font-size: 12px;
    font-weight: 650;
}

.jm-home .jm311-check {
    color: #ffc928;
    font-weight: 900;
    margin-right: 5px;
}

/* Keep the original app download links below the dashboard */
.jm-home .jm-hero-stage-downloads {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    width: fit-content;
    max-width: 100%;
    margin: 22px auto 0;
    padding: 16px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(3,34,23,.60);
    box-shadow: none;
}

.jm-home .jm-hero-stage-downloads .jm-hero-downloads {
    align-items: center;
}

/* CSS smartphone illustration */
.jm-home .jm311-app-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 530px;
    isolation: isolate;
}

.jm-home .jm311-app-decoration {
    position: absolute;
    z-index: -1;
    width: min(440px, 95%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,201,40,.22),
        rgba(30,181,101,.15) 45%,
        transparent 72%
    );
}

.jm-home .jm311-phone {
    position: relative;
    width: min(275px, 85%);
    padding: 10px;
    border: 4px solid #22392d;
    border-radius: 40px;
    background: #071b12;
    box-shadow:
        0 35px 80px rgba(0,0,0,.35),
        inset 0 0 0 1px rgba(255,255,255,.15);
    transform: rotate(5deg);
}

.jm-home .jm311-phone-notch {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 17px;
    border-radius: 0 0 13px 13px;
    background: #071b12;
}

.jm-home .jm311-phone-screen {
    overflow: hidden;
    min-height: 475px;
    padding: 32px 14px 14px;
    border-radius: 29px;
    background: #f5faf6;
    color: #153a27;
}

.jm-home .jm311-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jm-home .jm311-phone-top strong {
    font-size: 20px;
    font-weight: 900;
}

.jm-home .jm311-phone-top strong span {
    color: #e5ae00;
}

.jm-home .jm311-phone-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0f3e5;
    font-size: 10px;
    font-weight: 900;
}

.jm-home .jm311-phone-welcome {
    margin: 20px 0;
    padding: 19px 14px;
    border-radius: 15px;
    background: linear-gradient(135deg,#087b43,#06432d);
    color: #fff;
}

.jm-home .jm311-phone-welcome small {
    font-size: 8px;
    letter-spacing: 1px;
    color: #b8efd0;
}

.jm-home .jm311-phone-welcome h3 {
    font-size: 18px;
    margin: 10px 0 6px;
    color: #fff;
}

.jm-home .jm311-phone-welcome p {
    font-size: 10px;
    line-height: 1.5;
    margin: 0;
    color: #d8f1e2;
}

.jm-home .jm311-phone-services {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 6px;
}

.jm-home .jm311-phone-services > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jm-home .jm311-phone-services > div > span {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #e4f2e8;
    color: #087b43;
    font-size: 20px;
    font-weight: 800;
}

.jm-home .jm311-phone-services small {
    font-size: 9px;
    color: #42634e;
}

.jm-home .jm311-phone-feature {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 25px;
    padding: 17px;
    border-radius: 15px;
    background: #fff0bd;
}

.jm-home .jm311-phone-feature span {
    color: #856200;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.jm-home .jm311-phone-feature strong {
    font-size: 15px;
    color: #24422d;
}

.jm-home .jm311-phone-feature small {
    color: #6c674e;
    font-size: 10px;
}

.jm-home .jm311-phone-nav {
    display: flex;
    justify-content: space-around;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid #e1eae4;
    color: #60816a;
    font-size: 18px;
}

/* Tablet */
@media (max-width: 900px) {
    .jm-home .jm311-service-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .jm-home .jm311-app-art {
        min-height: 500px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .jm-home .jm-hero-stage {
        margin-top: 25px;
        padding-bottom: 0;
    }

    .jm-home .jm311-dashboard {
        padding: 20px 15px;
        border-radius: 20px;
    }

    .jm-home .jm311-dashboard-header {
        flex-direction: column;
        gap: 12px;
    }

    .jm-home .jm311-service-grid {
        gap: 9px;
    }

    .jm-home .jm311-service {
        padding: 17px 12px;
        border-radius: 14px;
    }

    .jm-home .jm311-service-icon {
        width: 37px;
        height: 37px;
        font-size: 19px;
    }

    .jm-home .jm311-service strong {
        font-size: 13px;
    }

    .jm-home .jm311-service small {
        font-size: 11px;
    }

    .jm-home .jm311-dashboard-footer {
        font-size: 11px;
        gap: 10px;
    }

    .jm-home .jm-hero-stage-downloads {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 16px auto 0;
        padding: 14px 10px;
    }

    .jm-home .jm311-app-art {
        min-height: 480px;
    }

    .jm-home .jm311-phone {
        transform: rotate(2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jm-home .jm311-service {
        transition: none;
    }

    .jm-home .jm311-service:hover {
        transform: none;
    }
}


/* JOSTPAY STEP 311F HERO APP DOWNLOAD REDESIGN */

.jm-home .jm-hero-stage-downloads {
    position: static;
    display: block;
    width: 100%;
    max-width: 720px;
    margin: 24px auto 0;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,.12),
        rgba(255,255,255,.055)
    );
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.jm-home .jm-hero-stage-downloads .jm-hero-downloads {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.jm-home .jm-hero-stage-downloads .jm-download-label {
    display: block;
    max-width: 170px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: .6px;
    text-align: left;
}

.jm-home .jm-hero-stage-downloads .jm-store-buttons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.jm-home .jm-hero-stage-downloads .jm-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 158px;
    min-height: 57px;
    padding: 10px 13px;
    border: 1px solid #ffffff;
    border-radius: 12px;
    background: #ffffff;
    color: #153a27;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.jm-home .jm-hero-stage-downloads .jm-store-button:hover {
    background: #fff4cc;
    border-color: #ffc928;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.jm-home .jm-hero-stage-downloads .jm-store-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 30px;
    color: #153a27;
    font-size: 25px;
    line-height: 1;
}

.jm-home .jm-hero-stage-downloads .jm-store-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

.jm-home .jm-hero-stage-downloads .jm-store-button span:not(.jm-store-icon) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    line-height: 1.15;
}

.jm-home .jm-hero-stage-downloads .jm-store-button small {
    color: #5c7163;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .1px;
}

.jm-home .jm-hero-stage-downloads .jm-store-button strong {
    color: #153a27;
    font-size: 16px;
    font-weight: 850;
    white-space: nowrap;
}

/* Tablet and mobile */
@media (max-width: 700px) {
    .jm-home .jm-hero-stage-downloads {
        padding: 18px 14px;
        margin-top: 18px;
    }

    .jm-home .jm-hero-stage-downloads .jm-hero-downloads {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .jm-home .jm-hero-stage-downloads .jm-download-label {
        max-width: none;
        font-size: 12px;
        text-align: center;
    }

    .jm-home .jm-hero-stage-downloads .jm-store-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .jm-home .jm-hero-stage-downloads .jm-store-button {
        flex: 1 1 145px;
        min-width: 0;
        max-width: 220px;
        padding: 10px 9px;
    }

    .jm-home .jm-hero-stage-downloads .jm-store-button strong {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .jm-home .jm-hero-stage-downloads .jm-store-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .jm-home .jm-hero-stage-downloads .jm-store-button {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jm-home .jm-hero-stage-downloads .jm-store-button {
        transition: none;
    }
}


/* JOSTPAY STEP 312B CSS SERVICE ICONS */

.jm-home .jm-services-grid {
    gap: 16px;
}

.jm-home .jm-service-card {
    min-height: 245px;
    padding: 22px;
    border-radius: 20px;
}

.jm-home .jm-service-art {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    min-height: 95px;
    margin: 12px 0;
}

.jm-home .jm312-icon-wrap {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 1px solid #d9eee0;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #e9f7ed,
        #f7fbf8
    );
    color: #087b43;
    transition:
        transform .25s,
        background .25s;
}

.jm-home .jm312-icon-wrap svg {
    display: block;
    width: 39px;
    height: 39px;
}

.jm-home .jm-service-card:hover .jm312-icon-wrap {
    transform: scale(1.05);
    background: #fff1bc;
}

.jm-home .jm-service-content h3 {
    font-size: 19px;
    line-height: 1.35;
}

.jm-home .jm-service-content p {
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .jm-home .jm-service-card {
        min-height: 205px;
        padding: 19px;
    }

    .jm-home .jm-service-art {
        min-height: 80px;
    }

    .jm-home .jm312-icon-wrap {
        width: 66px;
        height: 66px;
        border-radius: 18px;
    }

    .jm-home .jm312-icon-wrap svg {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jm-home .jm312-icon-wrap {
        transition: none;
    }

    .jm-home .jm-service-card:hover .jm312-icon-wrap {
        transform: none;
    }
}
