/* ============================================================
   Страница мобильного приложения (pages/app.php, /app).
   Общие блоки — из landing.css (.lp-*, .tf-section, .tf-faq, .tf-support), кнопки магазинов .app-badge — из style.css.
   ============================================================ */

/* ----- Главный экран ----- */
.ap-hero {
    position: relative; overflow: hidden; padding: 48px 0 72px;
    background:
        radial-gradient(760px 480px at 82% 40%, rgba(124, 92, 191, .16), transparent 70%),
        radial-gradient(420px 320px at 96% 92%, rgba(244, 114, 182, .14), transparent 70%),
        linear-gradient(180deg, #f7f5fb 0%, #f4f1f9 100%);
}
.ap-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; }
.ap-hero .lp-eyebrow { display: flex; margin-bottom: 18px; }
.ap-title { font-size: clamp(38px, 5vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; color: var(--lp-ink); margin-bottom: 22px; }
.ap-title em { font-style: normal; color: var(--lp-violet); }
.ap-hero .lp-lead { margin-bottom: 30px; }
.ap-pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ap-pills li {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--lp-line); font-weight: 600; font-size: 14px; color: var(--lp-ink);
}
.ap-pills i { color: var(--lp-violet); }

/* два скриншота: приложение клиента сзади, экран «Сегодня» спереди */
.ap-hero-stage { position: relative; min-height: 600px; display: flex; justify-content: center; align-items: center; }
.ap-hero-stage::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .45), transparent 68%);
}
.ap-shot { display: block; height: auto; border-radius: 30px; box-shadow: 0 36px 70px rgba(47, 34, 88, .28); }
.ap-shot-front { position: relative; z-index: 2; width: 300px; translate: 70px 0; animation: ap-float 7s ease-in-out infinite; }
.ap-shot-back { position: absolute; left: 50%; top: 50%; width: 250px; translate: -250px -46%; rotate: -7deg; opacity: .96; }
@keyframes ap-float { 50% { transform: translateY(-10px); } }

/* ----- Скачать: QR-коды (компьютер) и кнопки (телефон) ----- */
.ap-dl { padding: 0 0 8px; margin-top: -36px; position: relative; z-index: 3; }
.ap-dl-box {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
    padding: 32px 36px; border-radius: 28px; background: #fff; border: 1px solid var(--lp-line);
    box-shadow: 0 26px 60px rgba(47, 34, 88, .10);
}
.ap-dl-copy h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.ap-dl-copy p { margin: 0; color: var(--lp-text); font-size: 16px; line-height: 1.6; max-width: 460px; }
.ap-qr-grid { display: grid; grid-template-columns: repeat(2, 176px); gap: 16px; }
.ap-qr {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 12px; border-radius: 20px;
    background: #f8f6fc; border: 1px solid var(--lp-line); color: var(--lp-ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ap-qr:hover { color: var(--lp-ink); transform: translateY(-2px); border-color: #d9d0ee; box-shadow: 0 14px 30px rgba(47, 34, 88, .10); }
.ap-qr-code { display: block; width: 148px; padding: 6px; border-radius: 14px; background: #fff; }
.ap-qr-code svg { display: block; width: 100%; height: auto; }
.ap-qr-name { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; }
.ap-qr-name .bi { font-size: 18px; }
.ap-qr-name b { font-size: 16px; font-weight: 700; }
.ap-qr small { color: var(--lp-muted); font-size: 13px; font-weight: 500; }

/* ----- Возможности для команды ----- */
.ap-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ap-feat {
    padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--lp-line);
    box-shadow: 0 14px 32px rgba(31, 27, 45, .05); transition: transform .15s, box-shadow .15s;
}
.ap-feat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(47, 34, 88, .10); }
.ap-feat-ico {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
    color: #fff; font-size: 20px; background: linear-gradient(135deg, #6d4fd1, #a26bff); box-shadow: 0 10px 20px rgba(109, 79, 209, .25);
}
.ap-feat h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.ap-feat p { margin: 0; color: var(--lp-text); font-size: 14.5px; line-height: 1.6; }

/* ----- Скриншот и текст рядом: мастер, клиенты ----- */
.ap-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin-top: 72px; }
.ap-split.is-rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); margin-top: 0; }
.ap-split-img { position: relative; display: flex; justify-content: center; }
.ap-split-img::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; translate: -50% -50%; border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .32), transparent 68%);
}
.ap-split-img img { position: relative; width: 290px; max-width: 100%; height: auto; border-radius: 30px; box-shadow: 0 30px 60px rgba(47, 34, 88, .22); }
.ap-split-copy .lp-eyebrow { display: flex; margin-bottom: 18px; }
.ap-checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.ap-checks li { position: relative; padding-left: 32px; font-size: 16.5px; color: var(--lp-text); line-height: 1.5; }
.ap-checks li::before {
    content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: 15px; color: var(--lp-violet); background: var(--lp-violet-soft);
}
.ap-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ap-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; color: var(--lp-ink); line-height: 1.4; }
.ap-list li > span {
    flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    font-size: 19px; color: #fff; background: linear-gradient(135deg, #f472b6, #ec4899); box-shadow: 0 10px 20px rgba(236, 72, 153, .22);
}

/* ----- Экраны приложения: в ряд, на узких экранах — прокрутка ----- */
.ap-shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ap-shots figure { margin: 0; }
.ap-shots img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 36px rgba(47, 34, 88, .16); transition: transform .2s; }
.ap-shots li:hover img { transform: translateY(-4px); }
.ap-shots figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 600; color: var(--lp-text); }

/* ----- Как начать ----- */
.ap-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ap-steps li { padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 14px 32px rgba(31, 27, 45, .05); }
.ap-steps span {
    width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
    background: var(--lp-violet-soft); color: var(--lp-violet); font-weight: 800; font-size: 17px;
}
.ap-steps b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.ap-steps small { display: block; color: var(--lp-text); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 1199.98px) {
    .ap-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ap-shot-front { width: 270px; translate: 50px 0; }
    .ap-shot-back { width: 225px; translate: -215px -46%; }
    .ap-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; }
    .ap-shots li { flex: 0 0 210px; scroll-snap-align: start; }
}
@media (max-width: 991.98px) {
    .ap-hero { padding: 36px 0 64px; }
    .ap-hero-grid { grid-template-columns: 1fr; gap: 16px; }
    .ap-hero-stage { min-height: 560px; }
    .ap-dl { margin-top: -28px; }
    .ap-dl-box { grid-template-columns: 1fr; }
    .ap-split, .ap-split.is-rev { grid-template-columns: 1fr; gap: 32px; }
    .ap-split { margin-top: 56px; }
    .ap-split.is-rev .ap-split-img { order: -1; }
    .ap-steps { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .ap-hero { padding: 28px 0 56px; }
    .ap-title { font-size: clamp(32px, 9vw, 38px); }
    .ap-pills { gap: 8px; }
    .ap-pills li { padding: 7px 12px; font-size: 13px; }
    .ap-hero-stage { min-height: 0; padding: 12px 0 8px; }
    .ap-hero-stage::before { width: 320px; height: 320px; }
    .ap-shot-front { width: min(250px, 72vw); translate: 34px 0; border-radius: 24px; }
    .ap-shot-back { width: min(200px, 56vw); translate: -150px -46%; border-radius: 22px; }
    .ap-dl-box { padding: 24px 20px; border-radius: 22px; }
    .ap-dl-badges .app-badge { flex: 1 1 100%; }
    .ap-feats { grid-template-columns: 1fr; gap: 12px; }
    .ap-feat { padding: 20px 18px; }
    .ap-split-img img { width: 250px; }
    .ap-checks li { font-size: 15.5px; }
    .ap-list li { font-size: 15px; }
    .ap-shots li { flex-basis: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-shot-front { animation: none; }
    .ap-feat, .ap-qr, .ap-shots img { transition: none; }
}
