/* ==========================================================================
   Aplikacja TyreSoft – style podstrony /app/.
   Bazuje na ts2026.css (klasy t6-*); tu tylko ramki telefonów, galeria,
   odznaki sklepów, kroki i FAQ.
   ========================================================================== */

/* ---------- Telefon ----------
   Gotowe obrazy: zrzut aplikacji w oficjalnej ramce iPhone’a (Apple Design Resources, Product Bezels).
   Pasek stanu i pasek gestów są częścią obrazu, więc treść nie dochodzi do rogów ani do wyspy z kamerą. */
.app-phone { position: relative; width: 100%; max-width: 323px; }
/* cień jest w samym obrazie (bez CSS filter – Safari rysował wtedy szare tło wokół obrazka) */
.app-phone img { display: block; width: 100%; height: auto; }

/* ---------- Hero ---------- */
.app-hero { padding-top: 64px; }
.app-hero h1 { font-size: 52px; }
.app-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.app-badge {
    display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 14px; overflow: hidden;
    border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.35);
    transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
a.app-badge:hover { border-color: #fff; transform: translateY(-1px); }
.app-badge img { display: block; height: 40px; width: auto; max-width: none; }
.app-more { display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 700; color: #fff !important; text-decoration: none !important; }
.app-more::after { content: ' ↓'; color: var(--mint); }

.app-duo { position: relative; display: flex; justify-content: center; gap: 0; padding: 10px 0 56px; min-height: 560px; }
.app-duo .app-phone { max-width: 300px; }
.app-phone--a { z-index: 1; transform: rotate(-4deg) translate(14px, 0); }
.app-phone--b { transform: rotate(4deg) translate(-14px, 56px); }
.app-duo .t6-chip { white-space: nowrap; }
.app-chip--a { z-index: 3; left: -34px; top: 54%; } /* poza nagłówkiem z logo */
.app-chip--b { z-index: 3; right: -6px; bottom: 34px; }

/* ---------- Stany u dostawców ---------- */
.app-stock .t6-checks { margin-top: 26px; }
.app-duo--light { min-height: 600px; }

/* ---------- Galeria ---------- */
.app-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.app-shot { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.app-shot .app-phone { max-width: 279px; }
.app-shot figcaption { margin-top: 4px; }
.app-shot figcaption { margin-top: 20px; max-width: 250px; }
.app-shot b { display: block; font-size: 16px; font-weight: 700; color: var(--n700); }
.app-shot span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--text); }

/* ---------- Jak zacząć ---------- */
.app-steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; }
.app-steps li { position: relative; counter-increment: s; padding: 0 0 22px 60px; }
.app-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: 15px;
}
.app-steps li:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px; background: rgba(111,227,179,.3); }
.app-steps b { display: block; font-size: 17px; color: #fff; padding-top: 8px; }
.app-steps span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
.app-note { margin: 10px 0 0; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); }
.app-connect__visual, .app-secure__visual { position: relative; display: flex; justify-content: center; }
.app-connect__visual .app-phone { max-width: 334px; }
.app-qr {
    position: absolute; left: calc(50% - 200px); bottom: 70px; width: 84px; height: 84px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--mint-ink);
    box-shadow: 0 24px 40px -18px rgba(0,0,0,.6);
}

/* ---------- Bezpieczeństwo ---------- */
.app-secure__visual .app-phone { max-width: 323px; }
.app-secure .t6-checks { margin-top: 30px; }

/* ---------- FAQ ---------- */
.app-faq { display: grid; gap: 12px; max-width: 880px; }
.app-faq details { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 0 24px; transition: border-color .2s ease; }
.app-faq details[open] { border-color: var(--n700); }
.app-faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 36px 20px 0; font-size: 16.5px; font-weight: 700; color: var(--n700); }
.app-faq summary::-webkit-details-marker { display: none; }
.app-faq summary::after {
    content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: rgba(40,195,134,.14); color: #12985F; font-size: 20px; font-weight: 600; line-height: 1;
}
.app-faq details[open] summary::after { content: '−'; background: var(--mint); color: var(--mint-ink); }
.app-faq details p { margin: -4px 0 0; padding: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--text); }

/* ---------- Responsywność ---------- */
@media (max-width: 1199px) {
    .app-hero h1 { font-size: 44px; }
    .app-duo .app-phone { max-width: 256px; }
    .app-duo { min-height: 500px; }
}
@media (max-width: 991px) {
    .app-hero .t6-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .app-duo { min-height: 0; padding-top: 24px; }
    .app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-connect .t6-split, .app-secure.t6-split, .app-stock.t6-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .app-duo--light { min-height: 0; }
    .app-secure.t6-split--rev > :first-child { order: 2; }
}
@media (max-width: 767px) {
    .app-hero { padding-top: 40px; }
    .app-hero h1 { font-size: 34px; }
    .app-stores { gap: 10px; margin-top: 26px; }
    .app-badge { height: 50px; padding: 0 12px; }
    .app-badge img { height: 34px; }
    .app-duo .app-phone { max-width: 46%; }
    .app-phone--a { transform: rotate(-3deg) translate(10px, 0); }
    .app-phone--b { transform: rotate(3deg) translate(-10px, 34px); }
    .app-duo .t6-chip { display: none; }
    /* galeria przewijana palcem */
    .app-gallery { display: flex; gap: 18px; margin: 0 -20px; padding: 0 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .app-gallery::-webkit-scrollbar { display: none; }
    .app-shot { flex: 0 0 68%; scroll-snap-align: center; }
    .app-steps li { padding-left: 54px; }
    .app-qr { left: 8px; width: 64px; height: 64px; border-radius: 18px; }
    .app-faq details { padding: 0 18px; }
    .app-faq summary { font-size: 15.5px; }
}

/* Nazwa marki zawsze w zapisie „TyreSoft” (bez wersalików z ts2026) */
.app-hero .t6-eyebrow { text-transform: none; letter-spacing: .01em; font-size: 13px; }
