/* «اپلیکیشن بازارباشه» landing page (templates/app_landing.html, /app). */

.info-page-wrap--app {
    background: #fff;
}

.al {
    --al-red: #e8251c;
    --al-red-deep: #c81a12;
    --al-ink: #1f2430;
    --al-text: #5b6170;
    --al-muted: #8a909c;
    --al-line: rgba(31, 36, 48, 0.09);
    --al-soft: #fff3f2;
    direction: rtl;
    color: var(--al-ink);
    font-family: 'Estedad', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 72px;
    margin: 0 6px 64px;
}

.al h1,
.al h2,
.al h3,
.al p {
    margin: 0;
}

.al svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- hero ---------- */
.al-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
    gap: 40px;
    padding: 36px max(32px, calc((100% - 1180px) / 2 + 32px)) 44px;
    border-radius: 28px;
    overflow: hidden;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cg fill='none' stroke='%23e8251c' stroke-opacity='.09' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M16 34v-7a9 9 0 0 1 18 0v7'/%3E%3Cpath d='M92 22h12M98 16v12'/%3E%3Cpath d='M78 96v-7a9 9 0 0 1 18 0v7'/%3E%3Cpath d='M26 102h12M32 96v12'/%3E%3Ccircle cx='112' cy='70' r='3'/%3E%3Ccircle cx='58' cy='62' r='2'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #fff 0%, #fff4f3 55%, #fde7e5 100%);
}

.al-hero-text {
    padding-top: 30px;
}

.al-hero-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(232, 37, 28, 0.16);
}

.al-hero-mark img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.al-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--al-ink);
}

.al-title span {
    color: var(--al-red);
}

.al-sub {
    margin-top: 10px !important;
    font-size: 17px;
    font-weight: 700;
    color: var(--al-ink);
}

.al-sub i {
    margin: 0 6px;
    font-style: normal;
    color: var(--al-muted);
}

.al-get {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
    max-width: 720px;
}

.al-get-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px !important;
    font-size: 15px;
    font-weight: 700;
    color: var(--al-ink);
}

.al-get-title svg {
    width: 20px;
    height: 20px;
}

.al-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.al-get .al-badges {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 12px;
}

.al-badge {
    position: relative;
    display: inline-flex;
    border-radius: 7px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.al-badge img {
    display: block;
    width: auto;
    height: 46px;
}

a.al-badge:hover,
a.al-badge:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(31, 36, 48, 0.12);
    outline: none;
}

.al-badge.is-soon img {
    opacity: 0.45;
    filter: grayscale(1);
}

.al-badge.is-soon em {
    position: absolute;
    top: -9px;
    left: 8px;
    padding: 1px 9px 3px;
    border-radius: 999px;
    background: var(--al-ink);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.6;
}

.al-apk-hint {
    margin-top: 10px !important;
    font-size: 12px;
    color: var(--al-muted);
}

.al-or {
    flex: none;
    color: var(--al-muted);
    font-size: 13px;
}

.al-qr {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--al-line);
}

.al-qr-code {
    flex: none;
    width: 88px;
    height: 88px;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
}

.al-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: none;
}

.al-qr-code svg path {
    fill: var(--al-ink);
}

.al-qr p {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 150px;
}

.al-qr strong {
    font-size: 13px;
    font-weight: 700;
}

.al-qr span {
    font-size: 12px;
    color: var(--al-muted);
    line-height: 1.7;
}

/* phone mock-up: the site's own phone screen, shown whole under a status bar
   (the camera notch sits in the status bar, never over the page) */
.al-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.al-phone {
    position: relative;
    z-index: 1;
    width: 300px;
    padding: 9px;
    border-radius: 50px;
    background: linear-gradient(160deg, #2b2d33 0%, #121317 40%, #0b0c0f 100%);
    box-shadow:
        inset 0 0 0 1.5px #3c3e46,
        0 34px 70px rgba(200, 26, 18, 0.20),
        0 10px 24px rgba(31, 36, 48, 0.16);
}

.al-phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 41px;
    background: #fff;
}

.al-phone-status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 2px 26px 0 28px;
    direction: ltr;
    background: #fff;
    color: #111318;
    font: 700 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.al-phone-status::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 82px;
    height: 22px;
    margin-left: -41px;
    border-radius: 999px;
    background: #0b0c0f;
}

.al-phone-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.al .al-phone-icons svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.al .al-phone-icons .al-batt {
    fill: currentColor;
    stroke: none;
}

.al-phone-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.al-shape {
    position: absolute;
    border-radius: 26px;
    background: var(--al-red);
}

.al-shape-a {
    top: 80px;
    right: calc(50% + 112px);
    width: 100px;
    height: 156px;
    transform: rotate(-8deg);
    opacity: 0.92;
}

.al-shape-b {
    bottom: 70px;
    left: calc(50% + 110px);
    width: 112px;
    height: 124px;
    border-radius: 999px 999px 26px 26px;
    background: #ff8a7f;
    transform: rotate(10deg);
}

.al-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.al-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px var(--al-line);
    font-size: 13px;
    color: var(--al-ink);
}

.al-chips svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
    stroke-width: 2.6;
}

/* ---------- section heads ---------- */
.al-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    text-align: center;
}

.al-head-mark img {
    display: block;
    width: 28px;
    height: 28px;
}

.al-head h2 {
    font-size: 22px;
    font-weight: 800;
}

/* ---------- benefits ---------- */
.al-benefits,
.al-steps {
    width: min(1120px, 100% - 32px);
    margin: 0 auto;
}

.al-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 40px;
}

.al-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.al-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 20px;
    background: var(--al-soft);
    color: var(--al-red);
}

.al-ico svg {
    width: 30px;
    height: 30px;
}

.al-benefit h3 {
    font-size: 15px;
    font-weight: 700;
}

.al-benefit p {
    max-width: 290px;
    font-size: 13px;
    line-height: 2;
    color: var(--al-text);
}

/* ---------- red band ---------- */
.al-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 32px;
    width: min(1180px, 100% - 16px);
    margin: 110px auto 0;
    padding: 40px 44px;
    border-radius: 28px;
    color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.10' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M16 34v-7a9 9 0 0 1 18 0v7'/%3E%3Cpath d='M84 22h12M90 16v12'/%3E%3Cpath d='M70 92v-7a9 9 0 0 1 18 0v7'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #f0362d 0%, var(--al-red) 45%, var(--al-red-deep) 100%);
}

.al-band-text {
    padding: 0;
}

.al-band h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
}

.al-band-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
}

.al-band-ico svg {
    width: 22px;
    height: 22px;
}

.al-band p {
    max-width: 620px;
    margin-top: 16px !important;
    font-size: 14px;
    line-height: 2.1;
    color: rgba(255, 255, 255, 0.92);
}

.al-band-products {
    margin-top: 26px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #fff;
    color: var(--al-ink);
}

.al-band-products-title {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
}

.al-band-products-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.al-product {
    display: inline-flex;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f7;
    box-shadow: inset 0 0 0 1px var(--al-line);
    transition: transform 0.2s ease;
}

.al-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: transparent; /* no alt text spilling out if a picture fails */
}

.al-product:hover,
.al-product:focus-visible {
    transform: scale(1.05);
    outline: none;
}

.al-band-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    padding: 9px 16px 11px;
    border-radius: 999px;
    border: 1.5px solid var(--al-red);
    color: var(--al-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.al-band-more svg {
    width: 16px;
    height: 16px;
}

.al-band-visual {
    display: flex;
    justify-content: center;
    align-self: start;
    margin: -150px 0 -10px;
}

.al-phone--sm {
    width: 250px;
    padding: 8px;
    border-radius: 44px;
}

.al-phone--sm .al-phone-screen {
    border-radius: 36px;
}

.al-phone--sm .al-phone-status {
    height: 30px;
    padding: 2px 22px 0 24px;
    font-size: 11.5px;
}

.al-phone--sm .al-phone-status::after {
    top: 7px;
    width: 70px;
    height: 19px;
    margin-left: -35px;
}

/* ---------- steps ---------- */
.al-steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.al-steps-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 24px 26px;
    border-radius: 22px;
    border: 1px solid var(--al-line);
    background: #fff;
}

.al-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--al-red);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.al-steps-list h3 {
    font-size: 15px;
    font-weight: 700;
}

.al-steps-list p {
    font-size: 13px;
    line-height: 2;
    color: var(--al-text);
}

/* ---------- final call ---------- */
.al-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(1180px, 100% - 16px);
    margin: 0 auto;
    padding: 36px 44px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff4f3 0%, #fde7e5 100%);
}

.al-final h2 {
    font-size: 22px;
    font-weight: 800;
}

.al-final-text > p {
    margin: 8px 0 20px !important;
    font-size: 14px;
    color: var(--al-text);
}

.al-qr--final {
    border: 0;
    box-shadow: 0 10px 26px rgba(232, 37, 28, 0.10);
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
    .al-hero {
        grid-template-columns: minmax(0, 1fr) 320px;
        padding: 30px 32px 40px;
    }

    .al-title {
        font-size: 36px;
    }

    .al-get {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .al-or {
        display: none;
    }

    .al-phone {
        width: 270px;
    }

    .al-shape-a {
        right: calc(50% + 98px);
    }

    .al-shape-b {
        left: calc(50% + 96px);
    }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
    .al {
        gap: 48px;
        margin: 0 4px 40px;
    }

    .al-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        min-height: 0;
        padding: 30px 18px 0;
        text-align: center;
        border-radius: 24px;
    }

    .al-hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .al-hero-mark {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        border-radius: 18px;
    }

    .al-title {
        font-size: 28px;
    }

    .al-sub {
        font-size: 14px;
        line-height: 1.9;
    }

    .al-get {
        width: 100%;
        margin-top: 24px;
        align-items: stretch;
    }

    .al-get-stores {
        padding: 18px 16px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(31, 36, 48, 0.06);
    }

    .al-get-title {
        justify-content: center;
    }

    .al-badges {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        justify-items: center;
    }

    .al-badge img {
        height: 42px;
    }

    /* a QR is for a computer screen */
    .al-get .al-qr,
    .al-qr--final {
        display: none;
    }

    .al-hero-text {
        padding-top: 0;
    }

    .al-chips {
        justify-content: center;
        margin-top: 18px;
    }

    .al-chips li {
        font-size: 12px;
        padding: 6px 12px 8px;
    }

    .al-hero-visual {
        padding-bottom: 28px;
    }

    .al-phone {
        width: 262px;
        padding: 8px;
        border-radius: 44px;
    }

    .al-phone-screen {
        border-radius: 36px;
    }

    .al-shape-a {
        top: 60px;
        right: calc(50% + 92px);
        width: 72px;
        height: 116px;
    }

    .al-shape-b {
        bottom: 90px;
        left: calc(50% + 90px);
        width: 80px;
        height: 92px;
    }

    .al-head {
        margin-bottom: 26px;
    }

    .al-head h2,
    .al-band h2,
    .al-final h2 {
        font-size: 19px;
    }

    .al-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 14px;
    }

    .al-ico {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .al-ico svg {
        width: 26px;
        height: 26px;
    }

    .al-benefit h3 {
        font-size: 14px;
    }

    .al-benefit p {
        font-size: 12.5px;
        line-height: 1.95;
    }

    .al-band {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
        padding: 28px 18px 24px;
        border-radius: 24px;
    }

    .al-band-text {
        padding-bottom: 0;
    }

    .al-band h2 {
        font-size: 18px;
    }

    .al-band p {
        font-size: 13px;
    }

    .al-band-products {
        padding: 14px;
    }

    .al-band-products-row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .al-product {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .al-band-more {
        grid-column: 1 / -1;
        justify-content: center;
        margin: 4px 0 0;
    }

    .al-band-visual {
        margin: 6px 0 0;
    }

    .al-phone--sm {
        width: 236px;
    }

    .al-steps-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .al-steps-list li {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 4px;
        padding: 18px;
    }

    .al-step-num {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .al-final {
        flex-direction: column;
        align-items: stretch;
        padding: 26px 18px;
        text-align: center;
        border-radius: 24px;
    }
}

/* ---------- dark theme ---------- */
body.theme-dark .info-page-wrap--app {
    background: #0f1115;
}

body.theme-dark .al {
    --al-ink: #f1f2f5;
    --al-text: #b8bcc6;
    --al-muted: #8d93a0;
    --al-line: rgba(255, 255, 255, 0.10);
    --al-soft: rgba(232, 37, 28, 0.14);
}

body.theme-dark .al-hero,
body.theme-dark .al-final {
    background: linear-gradient(180deg, #171215 0%, #22161a 100%);
}

body.theme-dark .al-steps-list li,
body.theme-dark .al-get-stores,
body.theme-dark .al-qr,
body.theme-dark .al-band-products {
    background: #181a20;
}

body.theme-dark .al-badge,
body.theme-dark .al-qr-code {
    background: #fff;
}

body.theme-dark .al-qr-code svg path {
    fill: #1f2430;
}
