/*
 * Strona główna (Default/index.new.html.twig)
 * Uzupełnia new.css + front.css: sekcje, nagłówki, przyciski i ikony pochodzą z obecnej strony (tip-front-*).
 * Tu są tylko elementy dodatkowe – wyglądem zgodne z landingiem Tip4Stream Studio (studio.css), prefiks .tip-home-*.
 */

/* ---------- drobne elementy wspólne ---------- */

.tip-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 4px 4px 13px rgba(0, 0, 0, 0.08);
    font: italic normal 700 14px/18px Montserrat;
    color: #00463C;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: transform .15s ease;
}

a.tip-home-badge:hover {
    color: #00463C;
    text-decoration: none;
    transform: translateY(-2px);
}

.tip-home-badge-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #9BC318;
    box-shadow: 0 0 0 4px rgba(155, 195, 24, 0.25);
}

.tip-home-badge-arrow {
    color: #9BC318;
    font-style: normal;
}

.tip-home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.tip-home-cta .tip-btn {
    margin: 0;
}

/* przyciski w treści – jednakowa wysokość, taka jak widoczna część plakietki Google Play (58px) */
.tip-home-cta .tip-btn-lg,
.tip-home-s3-cta .tip-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 0 28px;
}

.tip-home-cta .tip-btn.tip-front-bgr-white {
    color: #00463C;
}

.tip-home-cta-center {
    justify-content: center;
}

.tip-home-gplay {
    display: inline-block;
    line-height: 0;
    margin: -9px 0;
    transition: transform .15s ease;
}

.tip-home-gplay:hover {
    transform: translateY(-2px);
}

.tip-home-gplay img {
    height: 76px;
    width: auto;
}

.tip-front-sub a,
.tip-front-s4-cell-desc a,
.tip-home-faq a {
    color: #6E8C0B;
    font-weight: 600;
}

/* ---------- 1. HERO ---------- */

.tip-front-s1-desc.tip-home-hero-desc {
    padding-top: 40px;
    padding-bottom: 34px;
}

.tip-home-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    font: normal normal 600 15px/20px "Open Sans";
    color: #00463C;
}

.tip-home-checks li::before,
.tip-home-features li::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin: -3px 8px 0 0;
    border-radius: 50%;
    background: #9BC318 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 18L3.85 12.3l1.43-1.43 4.27 4.28 9.17-9.18 1.43 1.43L9.55 18z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- 3. NARZĘDZIA – lista funkcji ---------- */

.tip-home-features {
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
    width: 100%;
    max-width: 702px;
}

.tip-home-features li {
    position: relative;
    padding: 0 0 12px 30px;
    font: normal normal normal 17px/26px "Open Sans";
    color: #000;
}

.tip-home-features li::before {
    position: absolute;
    left: 0;
    top: 4px;
    margin: 0;
}

.tip-home-features strong {
    color: #00463C;
}

.tip-home-s3-cta {
    padding-top: 22px;
}

/* ---------- 4. DLACZEGO MY – ikona „Przejrzyste stawki” (ChatGPT, 460px @2x, koło jak w ikonach new.css) ---------- */

.tip-front-s4-cell-icon.tip-home-icon-stawki {
    background-size: 230px 230px;
    background-image: url(/draft/images/home-icon-stawki.png);
    background-image: -webkit-image-set(url(/draft/images/home-icon-stawki.webp) type("image/webp"), url(/draft/images/home-icon-stawki.png) type("image/png"));
    background-image: image-set(url(/draft/images/home-icon-stawki.webp) type("image/webp"), url(/draft/images/home-icon-stawki.png) type("image/png"));
}

/* ---------- 4. DLACZEGO MY – ikona „Każda platforma” (ChatGPT, 460px @2x) ---------- */

.tip-front-s4-cell-icon.tip-home-icon-platformy {
    background-size: 230px 230px;
    background-image: url(/draft/images/home-icon-platformy.png);
    background-image: -webkit-image-set(url(/draft/images/home-icon-platformy.webp) type("image/webp"), url(/draft/images/home-icon-platformy.png) type("image/png"));
    background-image: image-set(url(/draft/images/home-icon-platformy.webp) type("image/webp"), url(/draft/images/home-icon-platformy.png) type("image/png"));
}

@media (max-width: 299px) {
    .tip-front-s4-cell-icon.tip-home-icon-stawki,
    .tip-front-s4-cell-icon.tip-home-icon-platformy {
        background-size: contain;
    }
}

/* ---------- 7. TIP4STREAM STUDIO ---------- */

.tip-home-section-studio .tip-front-section-content {
    padding-top: 60px;
    padding-bottom: 20px;
}

.tip-home-studio {
    width: 100%;
    display: grid;
    grid-template-columns: 520px 1fr;
    align-items: center;
    gap: 40px;
    padding: 30px 50px 30px 20px;
    border-radius: 6px;
    background: linear-gradient(131deg, #FFFFFF 0%, #FBFDF3 55%, #F1F8DC 100%);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid #F3F7E7;
}

.tip-home-studio-image {
    height: 390px;
    background: url(/draft/images/studio-hero.png) center / contain no-repeat;
    background-image: -webkit-image-set(url(/draft/images/studio-hero.webp) type("image/webp"), url(/draft/images/studio-hero.png) type("image/png"));
    background-image: image-set(url(/draft/images/studio-hero.webp) type("image/webp"), url(/draft/images/studio-hero.png) type("image/png"));
}

.tip-home-studio-header {
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #9BC318;
    font: italic normal 800 40px/48px Montserrat;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    color: #00463C;
}

.tip-home-studio-header span {
    font-weight: 500;
    color: #9BC318;
}

.tip-home-studio-desc {
    margin: 0;
    padding: 20px 0 30px;
    font: normal normal normal 17px/28px "Open Sans";
    color: #000;
}

.tip-home-studio-desc strong {
    color: #00463C;
}

/* ---------- 8. FAQ ---------- */

.tip-home-section-faq .tip-front-wrapper {
    padding-top: 40px;
}

.tip-home-faq {
    width: 100%;
    max-width: 960px;
    padding: 50px 0 40px;
}

.tip-home-faq details {
    margin-bottom: 12px;
    border-radius: 4px;
    background: #FFFFFF;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid #F3F7E7;
}

.tip-home-faq summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding: 18px 60px 18px 24px;
    font: italic normal 700 18px/24px Montserrat;
    color: #00463C;
}

.tip-home-faq summary::-webkit-details-marker {
    display: none;
}

.tip-home-faq summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(90deg, #D9534F 0%, #C54C4C 100%);
    color: #FFF;
    text-align: center;
    font: normal normal 500 22px/30px Montserrat;
}

.tip-home-faq details[open] summary::after {
    content: '–';
}

.tip-home-faq details[open] summary {
    border-bottom: 1px solid #9BC318;
}

.tip-home-faq details p {
    margin: 0;
    padding: 16px 24px 20px;
    font: normal normal normal 16px/26px "Open Sans";
    color: #000;
}

/* ---------- 9. CTA ---------- */

.tip-home-section-cta .tip-front-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 20px;
    text-align: center;
}

.tip-home-cta-header {
    font-size: 32px;
    line-height: 40px;
    padding: 0 0 14px;
}

.tip-home-cta-desc {
    padding-bottom: 28px;
    font-size: 18px;
}

/* nagłówki sekcji jako <h2> (SEO) – bez zmiany wyglądu: zdejmujemy marginesy/rozmiar z Bootstrapa,
   :where() trzyma specyficzność na poziomie jednej klasy, więc fonty z new.css zostają */
.tip-front-header:where(h2) {
    margin: 0;
}

.tip-front-s2-header:where(h2) {
    font: inherit;
}

/*
 * RESPONSIVE – progi zgodne z new.css
 */

@media (max-width: 1270px) {
    .tip-home-studio {
        grid-template-columns: 420px 1fr;
        gap: 30px;
    }

    .tip-home-studio-image {
        height: 330px;
    }
}

@media (max-width: 1199px) {
    .tip-home-badge {
        margin-top: 40px;
    }

    .tip-front-s1-wrapper .tip-front-s1-header {
        padding-top: 10px;
    }

    .tip-home-cta, .tip-home-checks {
        justify-content: center;
    }

    .tip-home-s3-cta {
        text-align: center;
    }

    .tip-home-features {
        margin: 0 auto;
    }

    .tip-home-studio {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }

    .tip-home-studio-image {
        height: 300px;
    }

    .tip-home-studio .tip-home-badge {
        margin-top: 0;
    }

    .tip-home-studio-desc {
        text-align: left;
    }
}

@media (max-width: 799px) {
    /* new.css chowa białe/zielone .tip-btn (reguła dla nawigacji) – w treści mają być widoczne */
    .tip-home-cta .tip-btn.tip-front-bgr-white,
    .tip-home-cta .tip-btn.tip-front-bgr-green,
    .tip-home-s3-cta .tip-btn.tip-front-bgr-green {
        display: inline-flex;
    }
}

@media (max-width: 650px) {
    .tip-front-s1-sub.tip-front-sub {
        white-space: normal;
        font-size: 5.4vw;
        line-height: 7vw;
    }

    .tip-home-hero-desc.tip-front-desc {
        text-align: left;
    }

    .tip-home-features {
        padding-left: 30px;
        padding-right: 30px;
    }

    .tip-home-features li {
        font-size: 16px;
        line-height: 24px;
    }

    .tip-home-studio {
        padding: 22px 18px;
    }

    .tip-home-studio-image {
        height: 230px;
    }

    .tip-home-studio-header {
        font-size: 7vw;
        line-height: 9vw;
    }

    .tip-home-faq summary {
        font-size: 16px;
        line-height: 22px;
    }

    .tip-home-cta-header {
        font-size: 6vw;
        line-height: 8vw;
    }

    .tip-home-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 30px;
    }

    .tip-home-studio .tip-home-cta {
        padding: 0;
    }

    .tip-home-cta .tip-home-gplay {
        align-self: center;
    }

    .tip-home-cta .tip-btn-lg,
    .tip-home-s3-cta .tip-btn-lg {
        height: auto;
        min-height: 58px;
        padding: 10px 20px;
        white-space: normal;
    }
}

/* „O nas” / „Dla kogo”: dodatkowe złamania wierszy tylko na komputerze, na telefonie tekst zawija się sam */
@media (max-width: 1199px) {
    .tip-home-br-lg {
        display: none;
    }
}
