/* ============================================================
   app.css — «Mobil ilova» sahifasi (/{locale}/app)
   Markup: resources/views/pages/app.blade.php
   Matn:   resources/lang/{uz,ru,en}/mobile_app.php
   Prefikslar: app-page-* (sahifa), app-phone (telefon ramkasi).
   .app-badge / .app-promo-* — umumiy public/css/app-promo.css da.

   Yorug' hero ATAYLAB: Google badge qora — qorong'i fonda kontrasti yetarli
   emas (brend qoidasi). Yakuniy CTA'da badge OQ kartochka ichida.
   Breakpointlar: >=1025 desktop | 821-1024 planshet | <=820 | <=560 mobil.
   ============================================================ */

.app-page {
    --ap-deep:   #04222A;
    --ap-teal:   #024A57;
    --ap-brand:  #0F6B62;
    --ap-accent: #1A8A7D;
    --ap-bright: #04A5B5;     /* faqat bezak (oq bilan 2.98:1) — matn uchun EMAS */
    --ap-link:   #0A7C89;     /* matn-teal: oq 4.94:1 */
    --ap-ink:    #10212B;
    --ap-muted:  #5D707C;     /* oq 5.16:1 */
    --ap-line:   #E4EAEE;
    --ap-soft:   #F5F9FA;
    --ap-tint:   #E8F6F8;
    --ap-shot-ar: 9 / 19.5;   /* Play skrinshotlari 1080x2340 */
    background: #fff;
    color: var(--ap-ink);
}

/* ==================== TELEFON RAMKASI (hero va galereya uchun bitta) ==================== */
.app-phone {
    --w: 240px;
    position: relative;
    flex: 0 0 auto;
    width: var(--w);
    padding: 9px;
    border-radius: 38px;
    background: #0B1418;
    box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 28px 56px -12px rgba(2,34,42,.45), 0 8px 18px rgba(2,34,42,.22);
}
.app-phone::before {
    content: '';
    position: absolute; z-index: 2; top: 17px; left: 50%;
    width: 9px; height: 9px; margin-left: -4.5px;
    border-radius: 50%; background: #0B1418; box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}
.app-phone__screen {
    border-radius: 29px; overflow: hidden;
    background: var(--ap-tint, #E8F6F8);          /* rasm yuklanguncha */
    aspect-ratio: var(--ap-shot-ar, 9 / 19.5);
}
.app-phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ==================== HERO ==================== */
.app-page-hero {
    position: relative; overflow: hidden; padding: 64px 0 0;
    background:
        radial-gradient(880px 440px at 90% 0%, rgba(4,165,181,.20), transparent 62%),
        radial-gradient(620px 340px at 0% 100%, rgba(15,107,98,.10), transparent 60%),
        linear-gradient(180deg, #F0F9FA 0%, #fff 92%);
}
.app-page-hero__grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px; align-items: center;
}
.app-page-hero__copy { padding-bottom: 56px; }
.app-page-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 12px;
    border-radius: 999px; background: var(--ap-tint); color: var(--ap-brand);
    font-size: .82rem; font-weight: 700;                        /* 5.75:1 */
}
.app-page-hero h1 {
    margin: 0 0 14px; font-size: 2.85rem; line-height: 1.14; font-weight: 800; letter-spacing: -.5px;
}
.app-page-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #0F6B62, #0A7C89);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.app-page-hero__lead { margin: 0 0 26px; max-width: 540px; font-size: 1.08rem; line-height: 1.75; color: var(--ap-muted); }
.app-page-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.app-page-hero__cta .app-badge { --bh: 56px; }

.app-page-facts {
    display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none;
    font-size: .88rem; color: var(--ap-muted);
}
.app-page-facts li { display: inline-flex; align-items: center; gap: 7px; }
.app-page-facts svg { width: 16px; height: 16px; color: var(--ap-brand); flex: 0 0 auto; }
.app-page-note { margin: 12px 0 0; max-width: 540px; font-size: .86rem; line-height: 1.6; color: var(--ap-muted); }
.app-page-note--qr { display: none; }

/* QR — faqat keng ekranda (telefondan skanerlash) */
.app-page-qr {
    display: none; align-items: center; gap: 14px; padding: 14px;
    background: #fff; border: 1px solid var(--ap-line); border-radius: 16px;
    box-shadow: 0 8px 24px rgba(2,74,87,.08);
}
.app-page-qr__img { width: 160px; height: 160px; flex: 0 0 auto; }      /* 49 modul; SVG crispEdges — kamida 160px (skaner uchun) */
.app-page-qr__txt { margin: 0; max-width: 170px; font-size: .84rem; line-height: 1.5; font-weight: 500; color: var(--ap-muted); }
.app-page-qr__txt strong { display: block; margin-bottom: 4px; font-size: .92rem; font-weight: 700; color: var(--ap-ink); }

.app-page-hero__stage {
    position: relative; display: flex; justify-content: center; align-items: flex-start;
    height: 560px; overflow: hidden;
}
.app-page-hero__stage::before {
    content: ''; position: absolute; left: 50%; bottom: 0; width: min(400px, 92%); height: 420px;
    transform: translateX(-50%); border-radius: 200px 200px 0 0;
    background: linear-gradient(165deg, #0F6B62 0%, #04A5B5 100%);
}
.app-page-hero__stage .app-phone { --w: 280px; position: relative; z-index: 1; margin-top: 36px; }

/* ==================== UMUMIY BO'LIM ==================== */
.app-page-sec { padding: 72px 0; background: #fff; }
.app-page-sec--soft { background: var(--ap-soft); }
.app-page-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.app-page-head h2 { margin: 0; font-size: 1.9rem; line-height: 1.28; font-weight: 800; }

/* ==================== IMKONIYATLAR ==================== */
.app-page-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-page-feat { background: #fff; border: 1px solid var(--ap-line); border-radius: 18px; padding: 26px 24px; transition: border-color .2s, box-shadow .2s; }
.app-page-feat__ic {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 14px;
    border-radius: 14px; background: linear-gradient(135deg, #E8F6F8, #D6EEF2); color: var(--ap-brand);
}
.app-page-feat__ic svg { width: 24px; height: 24px; }
.app-page-feat h3 { margin: 0 0 7px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.app-page-feat p { margin: 0; font-size: .93rem; line-height: 1.7; color: var(--ap-muted); }
@media (hover: hover) { .app-page-feat:hover { border-color: #CDE6EA; box-shadow: 0 14px 34px rgba(2,74,87,.08); } }

/* ==================== SKRINSHOTLAR ==================== */
.app-page-shots {
    display: flex; gap: 16px; margin: 0 -16px; padding: 6px 16px 26px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.app-page-shots::-webkit-scrollbar { display: none; }
.app-page-shots::after { content: ''; flex: 0 0 1px; }
.app-page-shots:focus-visible { outline: 2px solid var(--ap-link); outline-offset: 2px; }
.app-page-shot { flex: 0 0 auto; width: min(64vw, 240px); margin: 0; text-align: center; scroll-snap-align: start; }
.app-page-shot .app-phone { --w: 100%; width: 100%; }
.app-page-shot figcaption { margin-top: 14px; font-size: .92rem; font-weight: 600; line-height: 1.45; }

/* ==================== QADAMLAR ==================== */
.app-page-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.app-page-steps::before {
    content: ''; position: absolute; top: 23px; left: 16.6%; right: 16.6%; height: 2px;
    background: repeating-linear-gradient(90deg, #BFDFE4 0 8px, transparent 8px 16px);
}
.app-page-step { position: relative; text-align: center; }
.app-page-step__n {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; background: #fff;
    border: 2px solid var(--ap-bright); color: var(--ap-teal); font-size: 1.02rem; font-weight: 800;
}
.app-page-step h3 { margin: 0 0 7px; font-size: 1.02rem; font-weight: 700; }
.app-page-step p { margin: 0; font-size: .92rem; line-height: 1.7; color: var(--ap-muted); }

/* ==================== FAQ ==================== */
.app-page-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.app-page-q { background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; padding: 2px 20px; transition: border-color .2s, box-shadow .2s; }
.app-page-q[open] { border-color: #CDE6EA; box-shadow: 0 10px 26px rgba(2,74,87,.07); }
.app-page-q summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 14px 0;
    list-style: none; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.4;
}
.app-page-q summary::-webkit-details-marker { display: none; }
.app-page-q summary::after {
    content: '+'; content: '+' / '';       /* alt matn bo'sh — ekran o'qigich "plus" demasin */
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ap-soft); color: var(--ap-teal); font-size: 1.15rem; font-weight: 700; line-height: 1;
}
.app-page-q[open] summary::after { content: '\2212'; content: '\2212' / ''; background: #DCEFF2; }
.app-page-q summary:focus-visible { outline: 2px solid var(--ap-link); outline-offset: 2px; border-radius: 8px; }
.app-page-q__a { padding: 0 0 18px; font-size: .95rem; line-height: 1.78; color: var(--ap-muted); }
.app-page-q__a p { margin: 0 0 10px; }
.app-page-q__a p:last-child { margin: 0; }
.app-page-q__a a { color: var(--ap-link); text-decoration: underline; text-underline-offset: 3px; }

/* ==================== YAKUNIY CTA ==================== */
.app-page-cta {
    position: relative; overflow: hidden; padding: 52px 40px; border-radius: 24px; text-align: center; color: #fff;
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(4,165,181,.30), transparent 60%),
        linear-gradient(140deg, #04222A, #024A57 62%, #0F6B62);
}
.app-page-cta h2 { margin: 0 0 12px; font-size: 1.8rem; font-weight: 800; line-height: 1.28; }
.app-page-cta p { max-width: 600px; margin: 0 auto 26px; line-height: 1.75; color: rgba(255,255,255,.82); }
.app-page-cta__card {
    display: inline-flex; align-items: center; gap: 22px; padding: 14px 18px;
    background: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(2,34,42,.28);
}
.app-page-cta__card .app-badge { --bh: 52px; }
.app-page-cta__card .app-page-qr { padding: 0; border: 0; box-shadow: none; background: none; }
.app-page-cta p.app-page-cta__note { margin: 18px auto 0; font-size: .92rem; color: rgba(255,255,255,.8); }
.app-page-cta__note a { color: #9FEBF4; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.app-page-legal { margin: 18px 0 0; font-size: .78rem; line-height: 1.5; color: var(--ap-muted); text-align: center; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
    .app-page-shots { margin: 0; padding: 6px 0 26px; gap: 24px; scroll-snap-type: none; }
    .app-page-shots::after { display: none; }
    .app-page-shot { width: 216px; }
    .app-page-shots > .app-page-shot:first-child { margin-left: auto; }
    .app-page-shots > .app-page-shot:last-child { margin-right: auto; }
}
@media (min-width: 1025px) {
    .app-page-qr { display: flex; }
    .app-page-note--qr { display: block; }
    .app-page-shots { gap: 28px; }
    .app-page-shot { width: 230px; }
}
@media (max-width: 1024px) {
    .app-page-feats { grid-template-columns: repeat(2, 1fr); }
    .app-page-hero__grid { gap: 32px; }
}
@media (max-width: 820px) {
    .app-page-hero { padding-top: 40px; }
    .app-page-hero__grid { grid-template-columns: 1fr; gap: 34px; }
    .app-page-hero__copy { padding-bottom: 0; }
    .app-page-hero h1 { font-size: 2.05rem; }
    .app-page-hero__cta .app-badge { --bh: 52px; }
    .app-page-hero__stage { height: 400px; }
    .app-page-hero__stage::before { width: min(320px, 88%); height: 300px; border-radius: 160px 160px 0 0; }
    .app-page-hero__stage .app-phone { --w: 232px; margin-top: 28px; }
    .app-page-sec { padding: 48px 0; }
    .app-page-head { margin-bottom: 28px; }
    .app-page-head h2 { font-size: 1.52rem; }
    .app-page-cta { padding: 36px 20px; border-radius: 18px; }
    .app-page-cta h2 { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .app-page-steps { grid-template-columns: 1fr; gap: 0; }
    .app-page-steps::before { display: none; }
    .app-page-step { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; padding-bottom: 26px; text-align: left; }
    .app-page-step__n { grid-row: span 2; margin: 0; }
    .app-page-step:not(:last-child)::before {
        content: ''; position: absolute; left: 22px; top: 48px; bottom: 0; width: 2px;
        background: repeating-linear-gradient(180deg, #BFDFE4 0 6px, transparent 6px 12px);
    }
}
@media (max-width: 560px) {
    .app-page-hero h1 { font-size: 1.78rem; }
    .app-page-head h2 { font-size: 1.38rem; }
    .app-page-feats { grid-template-columns: 1fr; }
    .app-page-feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px; }
    .app-page-feat__ic { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
    .app-page-feat h3 { margin-bottom: 4px; }
    .app-page-cta__card { display: flex; justify-content: center; max-width: 340px; margin: 0 auto; padding: 12px 14px; }
}
@media (forced-colors: active) {
    .app-page-hero h1 em { background: none; -webkit-text-fill-color: currentColor; }
}
@media (prefers-reduced-motion: reduce) {
    .app-page-q, .app-page-feat, .app-badge { transition: none; }
}
