/* ==========================================================================
   Allfood Phase 8 — Mobile Apps Landing Page
   ========================================================================== */

.af-apps-page{
    background:#fff;
}

.af-apps-hero{
    position:relative;
    overflow:hidden;
    padding:70px 0 76px;
    background:
        radial-gradient(circle at 85% 10%,rgba(103,183,228,.22),transparent 28%),
        radial-gradient(circle at 8% 85%,rgba(242,92,46,.10),transparent 26%),
        linear-gradient(180deg,#f8fcff 0%,#fff 100%);
}

.af-apps-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);
    gap:56px;
    align-items:center;
}

.af-apps-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--af-blue-dark,#2B8FCA);
    font-size:10px;
    line-height:1;
    font-weight:900;
    letter-spacing:.55px;
    text-transform:uppercase;
}

.af-apps-copy h1{
    max-width:680px;
    margin:12px 0 16px;
    color:#0f172a;
    font-size:clamp(42px,5.5vw,72px);
    line-height:.98;
    font-weight:900;
    letter-spacing:-1.8px;
}

.af-apps-copy>p{
    max-width:690px;
    margin:0;
    color:#64748B;
    font-size:15px;
    line-height:1.8;
}

.af-apps-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:26px;
}

.af-store-button{
    min-width:196px;
    min-height:60px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:9px 17px;
    border:1px solid #0f172a;
    border-radius:15px;
    background:#0f172a;
    color:#fff;
    text-decoration:none;
    box-shadow:0 12px 28px rgba(15,23,42,.12);
    transition:transform .16s ease,box-shadow .16s ease;
}

.af-store-button:hover{
    transform:translateY(-2px);
    color:#fff;
    box-shadow:0 18px 34px rgba(15,23,42,.18);
}

.af-store-button>i{
    flex:0 0 auto;
    font-size:27px;
}

.af-store-button small,
.af-store-button strong{
    display:block;
}

.af-store-button small{
    color:rgba(255,255,255,.72);
    font-size:9px;
    line-height:1.1;
}

.af-store-button strong{
    margin-top:3px;
    color:#fff;
    font-size:17px;
    line-height:1.05;
    font-weight:900;
}

.af-store-button.android{
    border-color:#173d55;
    background:#173d55;
}

.af-store-button.disabled{
    opacity:.48;
    cursor:not-allowed;
    box-shadow:none;
}

.af-store-button.disabled:hover{
    transform:none;
}

.af-apps-account-note{
    max-width:610px;
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin-top:20px;
    padding:12px 14px;
    border:1px solid #DCEAF3;
    border-radius:14px;
    background:rgba(255,255,255,.7);
    color:#475569;
    font-size:10px;
    line-height:1.55;
}

.af-apps-account-note i{
    color:#16a34a;
    font-size:16px;
}

.af-apps-device-stage{
    position:relative;
    min-height:530px;
}

.af-phone{
    position:absolute;
    width:270px;
    height:520px;
    padding:10px;
    border:8px solid #111827;
    border-radius:42px;
    background:#111827;
    box-shadow:0 30px 70px rgba(15,23,42,.22);
}

.af-phone-front{
    right:18%;
    top:0;
    transform:rotate(3deg);
    z-index:2;
}

.af-phone-back{
    left:7%;
    top:36px;
    transform:rotate(-8deg) scale(.92);
    opacity:.76;
    z-index:1;
}

.af-phone-top{
    position:absolute;
    top:13px;
    left:50%;
    width:82px;
    height:22px;
    transform:translateX(-50%);
    border-radius:999px;
    background:#111827;
    z-index:3;
}

.af-phone-screen{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:28px 19px;
    overflow:hidden;
    border-radius:30px;
    background:
        radial-gradient(circle at 50% 2%,rgba(103,183,228,.28),transparent 28%),
        linear-gradient(180deg,#fff,#f7fbfe);
}

.af-phone-back .af-phone-screen img{
    width:145px;
    height:auto;
}

.af-phone-back .af-phone-screen span{
    margin-top:12px;
    color:#64748B;
    font-size:11px;
    font-weight:700;
}

.af-app-screen-logo img{
    width:156px;
    height:auto;
}

.af-app-screen-card{
    width:100%;
    margin-top:36px;
    padding:19px;
    border:1px solid #E5EAF0;
    border-radius:19px;
    background:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.07);
}

.af-app-screen-card span,
.af-app-screen-card strong,
.af-app-screen-card small{
    display:block;
}

.af-app-screen-card span{
    color:var(--af-blue-dark,#2B8FCA);
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
}

.af-app-screen-card strong{
    margin-top:5px;
    color:#0f172a;
    font-size:22px;
    font-weight:900;
}

.af-app-screen-card small{
    margin-top:3px;
    color:#64748B;
    font-size:9px;
}

.af-app-screen-lines{
    width:100%;
    display:grid;
    gap:10px;
    margin-top:18px;
}

.af-app-screen-lines i{
    display:block;
    height:48px;
    border-radius:14px;
    background:#fff;
    border:1px solid #EDF1F5;
}

.af-apps-platforms,
.af-apps-benefits,
.af-apps-help{
    padding:68px 0;
}

.af-apps-platforms{
    background:#fff;
}

.af-apps-benefits{
    background:#F8FBFD;
}

.af-apps-section-head{
    max-width:690px;
    margin-bottom:24px;
}

.af-apps-section-head h2,
.af-apps-help-card h2{
    margin:7px 0 8px;
    color:#0f172a;
    font-size:clamp(28px,3vw,42px);
    line-height:1.1;
    font-weight:900;
    letter-spacing:-.5px;
}

.af-apps-section-head p,
.af-apps-help-card p{
    margin:0;
    color:#64748B;
    font-size:12px;
    line-height:1.7;
}

.af-platform-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.af-platform-card{
    min-width:0;
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:18px;
    align-items:start;
    padding:26px;
    border:1px solid #E5EAF0;
    border-radius:23px;
    background:#fff;
    box-shadow:0 12px 34px rgba(15,23,42,.05);
}

.af-platform-card>.btn,
.af-platform-card>.af-platform-status{
    grid-column:1/-1;
}

.af-platform-icon{
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:19px;
    background:#EEF8FF;
    color:var(--af-blue-dark,#2B8FCA);
    font-size:28px;
}

.af-platform-label{
    color:var(--af-blue-dark,#2B8FCA);
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
}

.af-platform-card h3{
    margin:4px 0 5px;
    color:#0f172a;
    font-size:20px;
    font-weight:900;
}

.af-platform-card p{
    margin:0;
    color:#64748B;
    font-size:11px;
    line-height:1.65;
}

.af-platform-status{
    display:flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border-radius:12px;
    background:#F1F5F9;
    color:#64748B;
    font-size:10px;
    font-weight:800;
}

.af-app-benefit-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:15px;
}

.af-app-benefit-grid article{
    padding:24px;
    border:1px solid #E5EAF0;
    border-radius:20px;
    background:#fff;
}

.af-app-benefit-grid i{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#EEF8FF;
    color:var(--af-blue-dark,#2B8FCA);
    font-size:19px;
}

.af-app-benefit-grid h3{
    margin:15px 0 6px;
    color:#0f172a;
    font-size:15px;
    font-weight:900;
}

.af-app-benefit-grid p{
    margin:0;
    color:#64748B;
    font-size:10px;
    line-height:1.65;
}

.af-apps-help-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:30px 32px;
    border:1px solid #DCEAF3;
    border-radius:24px;
    background:
        radial-gradient(circle at 95% 0%,rgba(103,183,228,.18),transparent 30%),
        #fff;
    box-shadow:0 14px 42px rgba(15,23,42,.05);
}

.af-apps-help-actions{
    flex:0 0 auto;
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

@media(max-width:991px){
    .af-apps-hero-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .af-apps-device-stage{
        min-height:470px;
        max-width:580px;
        width:100%;
        margin:0 auto;
    }

    .af-phone{
        width:235px;
        height:455px;
    }

    .af-phone-front{
        right:18%;
    }

    .af-phone-back{
        left:15%;
    }
}

@media(max-width:767px){
    .af-apps-hero{
        padding:38px 0 44px;
    }

    .af-apps-copy h1{
        font-size:42px;
        letter-spacing:-1px;
    }

    .af-apps-copy>p{
        font-size:12px;
    }

    .af-apps-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .af-store-button{
        width:100%;
        min-width:0;
    }

    .af-apps-device-stage{
        min-height:390px;
    }

    .af-phone{
        width:190px;
        height:370px;
        border-width:6px;
        border-radius:31px;
    }

    .af-phone-front{
        right:9%;
    }

    .af-phone-back{
        left:7%;
        top:25px;
    }

    .af-phone-screen{
        border-radius:23px;
    }

    .af-app-screen-logo img{
        width:120px;
    }

    .af-app-screen-card{
        margin-top:24px;
        padding:14px;
    }

    .af-app-screen-card strong{
        font-size:17px;
    }

    .af-app-screen-lines i{
        height:34px;
    }

    .af-apps-platforms,
    .af-apps-benefits,
    .af-apps-help{
        padding:42px 0;
    }

    .af-platform-grid,
    .af-app-benefit-grid{
        grid-template-columns:1fr;
    }

    .af-platform-card{
        padding:19px;
        border-radius:19px;
    }

    .af-apps-help-card{
        align-items:flex-start;
        flex-direction:column;
        padding:22px 18px;
        border-radius:20px;
    }

    .af-apps-help-actions{
        width:100%;
        display:grid;
        grid-template-columns:1fr;
    }

    .af-apps-help-actions .btn{
        width:100%;
    }
}

@media(max-width:390px){
    .af-apps-device-stage{
        min-height:350px;
    }

    .af-phone{
        width:170px;
        height:335px;
    }

    .af-phone-front{
        right:2%;
    }

    .af-phone-back{
        left:1%;
    }
}
