/* ==========================================================================
   LiveLatteOver / LatteBOT - design system
   Flat, high-contrast, subtle 5px radius, no shadows. Mobile-first.
   ========================================================================== */

:root {
    --bg: #fafaf6;
    --section-bg: #fafaf6;
    /* Naprzemienne tło co drugiej sekcji ma być WIDOCZNE (wcześniej #f8f8f8
       vs #f8f8f4 - różnica nie do zauważenia, a kosztowała rozumowanie o
       parzystości sekcji). Lekko cieplejszy ton w rodzinie --latte. */
    --section-alt-bg: #f3f1ea;
    --box-bg: #fefffa;
    --surface: #d9d9da;
    --latte: #c5996a;
    --latte-ink: #6b4a2e;
    --brand: #9e100f;
    --brand-ink: #7a0c0b;
    --ink: #2e2e2e;
    --ink-muted: #55534f;
    --border: #d4d4d6;
    --success: #2f6f4f;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --container: 1320px;
    --gap: clamp(1rem, 3vw, 2rem);
    --radius: 5px;
    --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04), 0 3px 10px rgba(26, 26, 26, 0.05);
    --shadow-md: 0 10px 24px rgba(26, 26, 26, 0.10);
    --dot: #00af26;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    background: var(--section-bg);
    padding: 3.5rem 0;
    scroll-margin-top: 5rem;
    border-top: 1px solid var(--surface);
}

section:first-of-type {
    border-top: none;
}

/* Alternating section backgrounds, starting from the top (hero = 1st = odd). */
section:nth-of-type(odd) {
    background: var(--section-alt-bg);
}

/* Wagi Inter w całym projekcie: 400 tekst, 500 nawigacja, 600 przyciski i
   etykiety, 700 nagłówki - te same co w panelu (bot/assets/css/style.css). */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.section-head {
    max-width: 640px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.section-head-small {
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    border: 1px solid var(--brand);
    padding: 0.5rem 0.6rem 0.4rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    background-color: var(--box-bg);
    text-align: center;
}

.lede {
    color: var(--ink-muted);
    font-size: 1.05rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 200;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.9rem 1.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    border-radius: var(--radius);
}

/* Bez cienia - jak przyciski w panelu (arkusz deklaruje "flat, no shadows";
   cień zostaje na kartach i oknach mockupów, nie na kontrolkach). */
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-ink);
    border-color: var(--brand-ink);
}

.btn-secondary {
    background: var(--box-bg);
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--section-bg);
    border-bottom: 1px solid var(--surface);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand img {
    width: 32px;
    height: 32px;
}

.site-header .brand img {
    width: 43px;
    height: 43px;
}

.main-nav {
    display: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

/* Logowanie zostaje widoczne TAKŻE na telefonie - w odróżnieniu od
   .header-cta niżej. Klient, który już zapłacił, najczęściej wraca z
   telefonu i wejście do panelu nie może się przed nim chować. */
.header-login {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-login:hover {
    color: var(--brand);
}

.header-cta {
    display: none;
}

/* Przycisk menu (tylko poniżej 900px) - cel dotyku 44px. */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--box-bg);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

.nav-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Rozwinięte menu mobilne: lista kotwic pod paskiem nagłówka, każda
   pozycja wysoka na 48px - ta sama lista linków co na desktopie. */
.main-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--section-bg);
    border-bottom: 1px solid var(--surface);
    box-shadow: var(--shadow-md);
}

.main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
}

.main-nav.is-open a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
}

@media (min-width: 900px) {
    .main-nav {
        display: block;
    }
    .header-cta {
        display: inline-flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* Cel dotyku dla wszystkich przycisków (także CTA w pasku sticky). */
.btn {
    min-height: 2.75rem;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(158, 16, 15, 0.22);
}

/* Sekcje na telefonie: mniej pionowego powietrza, żeby cennik i "jak to
   działa" były bliżej hero (mniej przewijania do CTA). */
@media (max-width: 640px) {
    section {
        padding: 2.5rem 0;
    }

    .section-head {
        margin-bottom: 1.5rem;
    }
}

/* ===== PANEL WEB (sekcja na stronie głównej) =====
   Makieta Przeglądu w HTML/CSS (inc/partials/web-panel.php) - te same
   proporcje, kolory odznak i układ wiersza co w bot/assets/css/style.css
   (.dashboard-match-row, .badge, .late-chance), tylko z prefiksem .pp-,
   żeby landing nie zależał od arkusza panelu. */
.pp-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .pp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pp-card {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.pp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--surface);
    font-size: 1rem;
    font-weight: 700;
}

.pp-link {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ink-muted);
}

.pp-rows {
    padding: 0.25rem 1.25rem 0.5rem;
}

/* Stała wysokość wiersza w OBU kartach: wiersz z rozbiciem HT/FT/H2H jest
   z natury wyższy niż wiersz z werdyktem, a kreski oddzielające mecze mają
   wypadać na tej samej wysokości w obu boksach. 4.6rem mieści najwyższą
   zawartość (odznaka + mini-odznaki), więc żaden wiersz jej nie przekracza. */
.pp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    height: 4.6rem;
    padding: 0 0;
    border-bottom: 1px solid var(--surface);
}

.pp-row:last-child {
    border-bottom: none;
}

/* Na telefonie 3 wiersze na kartę - dwie karty po 5 to za dużo przewijania
   w sekcji, która ma tylko pokazać, jak wygląda panel. */
.pp-row-desktop {
    display: none;
}

@media (min-width: 640px) {
    .pp-row-desktop {
        display: flex;
    }
}

.pp-main {
    min-width: 0;
}

.pp-meta {
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.35;
}

.pp-country {
    opacity: 0.8;
    font-size: 0.95em;
    white-space: nowrap;
}

.pp-match {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pp-chance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pp-split {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pp-verdict {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pp-badge,
.pp-mini {
    display: inline-block;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pp-badge {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
}

.pp-mini {
    padding: 0.15rem 0.45rem;
    font-size: 0.66rem;
}

/* Te same odcienie co .bg-*-lt w panelu: zielony = wysoka szansa / trafienie,
   żółty = średnia, szary = niska lub brak danych, czerwony tylko "Pudło". */
.pp-good { background: #e5f2ea; color: #2f6f4f; }
.pp-warn { background: #fdf3d9; color: #92660a; }
.pp-muted { background: #f0efe9; color: #55534f; }
.pp-bad { background: #fbeceb; color: #9e100f; }

@media (max-width: 480px) {
    .pp-split {
        display: none;
    }
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ===== HERO ===== */
.hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-top: none;
}

.hero .container {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero .container {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.hero-copy {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.1rem);
    margin-bottom: 1rem;
    text-align: center;
}

.hero .lede {
    font-size: 1.15rem;
    margin: 0 auto 1.5rem;
    max-width: 46ch;
    text-align: center;
}

@media (min-width: 960px) {
    .hero-copy,
    .hero h1,
    .hero .lede,
    .price-line {
        text-align: left;
    }
    .hero .lede {
        margin: 0 0 1.5rem;
    }
    .hero-actions {
        justify-content: flex-start;
    }
}

.price-line {
    display: block;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-line .amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--brand);
}

.price-line .period {
    color: var(--ink-muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

/* Drugorzędna akcja hero jako link, nie drugi przycisk. */
.hero-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.hero-link:hover {
    color: var(--brand);
}

/* Okna mockupu 2 i 3 tylko od 960 px - na telefonie jedno wystarczy. */
.notif-window-desktop {
    display: none;
}

@media (min-width: 960px) {
    .notif-window-desktop {
        display: block;
    }
}

.microcopy {
    font-size: 0.85rem;
    color: var(--ink-muted);
    letter-spacing: 0.01em;
    text-align: center;
}

/* ===== HERO NOTIFICATION STACK ===== */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.notif-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    max-width: 380px;
    width: 100%;
}

.notif-window {
    width: 100%;
    background: var(--box-bg);
    border: 1px solid var(--surface);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ===== HERO: makiety wiadomości w formacie realnych wysyłek =====
   (inc/partials/hero.php). Jeden zestaw linii .msg-line dla trzech kanałów,
   różnią się tylko "opakowaniem": Telegram = zwykły dymek, Discord = embed
   z paskiem koloru po lewej, SMS = szara chmurka z ekranu blokady. */
.msg-line {
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.msg-head {
    font-weight: 700;
}

.msg-muted {
    color: var(--ink-muted);
}

.msg-gap {
    height: 0.45rem;
}

/* Przycisk-link pod wiadomością (Telegram inline keyboard / Discord link button). */
.msg-btn {
    margin-top: 0.7rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--section-alt-bg);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink);
}

/* Discord: embed - pasek koloru marki po lewej, tło lekko ciemniejsze. */
.dc-embed {
    padding: 0.6rem 0.75rem;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--section-alt-bg);
}

/* SMS: nadawca + czas jak na ekranie blokady, treść w szarej chmurce. */
.sms-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.sms-bubble {
    padding: 0.55rem 0.75rem;
    border-radius: 12px 12px 12px 3px;
    background: var(--section-alt-bg);
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.notif-bar {
    background: var(--ink);
    color: #fff;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.notif-body {
    padding: 0.9rem;
}

.notif-body span.tag {
    font-weight: 500;
}

/* ===== PLATFORM STYLING (shared: hero notif windows + phone mockups) ===== */
.platform-icon svg {
    width: 15px;
    height: 15px;
    display: block;
}

.phone-bar,
.notif-bar {
    position: relative;
}

.phone-bar .dot,
.notif-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
}

.platform-telegram .dot { background: var(--dot); }
.platform-discord .dot { background: var(--dot); }
.platform-sms .dot { background: var(--dot); }

/* ===== TELEGRAM MOCKUP (grid examples) ===== */
.phone {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.phone-bar {
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.phone-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bubble {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 0.75rem 0.9rem;
    max-width: 90%;
    align-self: flex-start;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.bubble .tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.bubble .match {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.bubble .meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.bubble .live {
    color: var(--success);
    font-weight: 700;
}

.bubble.typing {
    display: flex;
    gap: 0.25rem;
    padding: 0.9rem;
}

.bubble.typing span {
    width: 6px;
    height: 6px;
    background: var(--ink-muted);
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble.typing span {
        animation: none;
    }
}

/* ===== WHY / GRID ===== */
.compare {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 760px) {
    .compare {
        grid-template-columns: 1fr 1fr;
    }
}

.compare-col {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.compare-col h3 {
    margin-bottom: 1rem;
}

.compare-col.bad { border-top: 3px solid var(--border); }
.compare-col.good { border-top: 3px solid var(--brand); }

.compare-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.compare-col li {
    padding-left: 1.4rem;
    position: relative;
    color: var(--ink-muted);
}

.compare-col.bad li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--ink-muted);
}

.compare-col.good li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* ===== STEPS ===== */
.steps {
    display: grid;
    gap: 1.25rem;
    counter-reset: step;
}

@media (min-width: 760px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Wariant czterokrokowy ("Co dzieje się po zakupie?"). Bez tego czwarty
       kafelek spadał sam do drugiego rzędu przy siatce trzykolumnowej.
       W tym paśmie 2x2 - cztery w rzędzie robiłyby się za wąskie. */
    .steps-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Cztery w jednym rzędzie dopiero tam, gdzie jest na to miejsce. */
@media (min-width: 1000px) {
    .steps-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*
 * Kafelki mają jednakową wysokość w rzędzie: grid domyślnie rozciąga elementy
 * (align-items: stretch), a nagłówek z numerem jest ustalonej wysokości, więc
 * różna długość opisu wyrównuje się dołem kafelka, nie górą.
 */
.step {
    display: flex;
    flex-direction: column;
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1.5rem;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-head h3 {
    margin-bottom: 0;
}

.step .num {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    border: 1.6px solid var(--brand);
    border-radius: 50%;
}

.step p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

/* Zawsze 8 kafelków (inc/partials/benefits.php): 2 kolumny od 640 px
   (4 rzędy), 4 kolumny od 1100 px (2 rzędy) - siatka nigdy nie zostawia
   samotnego kafelka w ostatnim rzędzie. */
@media (min-width: 640px) {
    .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
    .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.benefit-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.benefit-head h3 {
    margin-bottom: 0;
}

.benefit .icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--brand);
    flex-shrink: 0;
}

.benefit p {
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* ===== SOCIAL PROOF (demo) ===== */
.demo-banner {
    background: var(--latte);
    color: #2a1c0f;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.6rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--latte-ink);
    border-radius: var(--radius);
}

.stats-row {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .stats-row { grid-template-columns: repeat(3, 1fr); }
}

.stat {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat .value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand);
}

.stat .label {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.testimonials {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .testimonials { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.testimonial p {
    color: var(--ink-muted);
    margin-bottom: 0.9rem;
}

.testimonial .author {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== PRICING PLAN LABELS (reused inside the comparison table header) ===== */
.plan-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--brand);
    padding: 0.5rem 0.7rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius);
}

.plan-badge.is-neutral {
    color: var(--ink-muted);
    background: transparent;
    border: 1px solid var(--border);
}

.plan-name {
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.plan-tagline {
    color: var(--ink-muted);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.price-per-day {
    color: var(--ink-muted);
    font-size: 0.85rem;
}

.plan-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
}

.plan-price .period {
    color: var(--ink-muted);
    font-size: 0.85rem;
}

/* ===== PRICING PLANS: STACKED CARDS (mobile) ===== */
.plans-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 760px) {
    .plans-mobile {
        display: none;
    }
}

.plan-card-mobile {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.plan-card-mobile.is-highlighted {
    background: var(--bg);
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-md);
}

.plan-card-mobile .price-per-day {
    margin-bottom: 1.25rem;
}

.plan-card-mobile .btn {
    margin-bottom: 1.5rem;
}

.plan-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.plan-feature-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--surface);
    font-size: 0.9rem;
}

.plan-feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.plan-feature-label {
    color: var(--ink-muted);
}

/* "Pełne porównanie" w karcie mobilnej - reszta cech pod zwijanym nagłówkiem. */
.plan-more {
    margin-top: 0.7rem;
    border-top: 1px solid var(--surface);
    padding-top: 0.7rem;
}

.plan-more summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand);
}

.plan-more summary::-webkit-details-marker {
    display: none;
}

.plan-more summary::after {
    content: "+";
    font-size: 1.2rem;
}

.plan-more[open] summary::after {
    content: "–";
}

.plan-more[open] summary {
    margin-bottom: 0.7rem;
}

/* ===== PRICING COMPARISON TABLE (tablet/desktop) ===== */
.pricing-table-wrap {
    display: none;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background-color: var(--box-bg);
}

@media (min-width: 760px) {
    .pricing-table-wrap {
        display: block;
    }
}

.pricing-table-inner {
    position: relative;
    width: 100%;
    min-width: 640px;
}

.pricing-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--box-bg);
}

.pricing-table th,
.pricing-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--surface);
    text-align: center;
}

.pricing-table thead th {
    vertical-align: top;
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pricing-table .feature-col {
    width: 240px;
    text-align: left;
    font-size: 0.92rem;
    color: var(--ink-muted);
    position: sticky;
    left: 0;
    background: var(--box-bg);
}

.pricing-table .plan-col {
    width: calc((100% - 240px) / 3);
}

.pricing-table thead .feature-col {
    background: var(--box-bg);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ramka wyróżnionego pakietu rysowana na komórkach tej kolumny WEWNĘTRZNYMI
   cieniami bez rozmycia (inset, 0 blur) - przy border-spacing: 0 komórki
   stykają się, więc linie łączą się w jedną ciągłą ramkę bez szwów.
   Wcześniej ramka była osobnym elementem pozycjonowanym inline z PHP
   (lewa/szerokość liczone z indeksu kolumny i sztywnych 240 px) - łamała
   się przy innej szerokości kolumny cech i wymagała pilnowania w dwóch
   miejscach. */
.pricing-table .plan-col.is-highlighted {
    background: var(--bg);
    box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand);
}

.pricing-table thead .plan-col.is-highlighted {
    box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 2px 0 var(--brand);
}

.pricing-table tbody tr:last-child .plan-col.is-highlighted {
    box-shadow: inset 2px 0 0 var(--brand), inset -2px 0 0 var(--brand), inset 0 -2px 0 var(--brand);
}

.pricing-table .plan-name {
    font-size: 2rem;
}

.pricing-table .plan-tagline {
    min-height: 3.6rem;
}

.pricing-table .plan-price {
    justify-content: center;
}

.pricing-table .price-per-day {
    margin-bottom: 1rem;
}

.pricing-table .btn {
    width: 100%;
}

/* "lub odnawiaj co miesiąc" pod przyciskiem pakietu - link do członkostwa
   Ko-fi, renderowany tylko gdy admin wpisał kofi_membership_url. */
.plan-membership-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.plan-card-mobile .plan-membership-link {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.feature-yes {
    color: var(--brand);
    font-weight: 700;
}

.feature-no {
    color: var(--ink-muted);
    opacity: 0.5;
}

.feature-value {
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.feature-value.is-brand {
    color: var(--brand);
}

/* Pro column reads slightly larger throughout the whole feature list
   (starting at "Liczba dni dostępu", the first body row) to reinforce it
   as the highlighted/recommended plan. */
.pricing-table tbody .plan-col.is-highlighted span {
    font-size: 1.15rem;
}

.trust-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.trust-notes span {
    font-size: 0.78rem;
    color: var(--ink-muted);
    border: 1px solid var(--border);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    background-color: var(--box-bg);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 1.25rem;
    padding-top: 1rem;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-list details {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

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

.faq-list summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--brand);
    flex-shrink: 0;
}

.faq-list details[open] summary::after {
    content: "–";
}

.faq-list .answer {
    margin-top: 0.9rem;
    color: var(--ink-muted);
}

/* ===== RESPONSIBLE GAMBLING ===== */
.responsible {
    background: var(--section-bg);
    border-top: 1px solid var(--surface);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    background: var(--box-bg);
    font-size: 1rem;
    font-family: var(--font-ui);
    border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(158, 16, 15, 0.14);
}

/* Pole z błędem + komunikat pod nim (walidacja w JS i po stronie serwera). */
.contact-form .is-invalid {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(158, 16, 15, 0.10);
}

.field-error {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--brand);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    background: var(--box-bg);
    padding: 1rem 1.25rem;
    border: 1px solid var(--surface);
    margin-bottom: 1.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.form-note.success { border-color: var(--success); color: var(--success); }
.form-note.error { border-color: var(--brand); color: var(--brand); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--section-alt-bg);
    border-top: 1px solid var(--surface);
    padding: 3rem 0 6.5rem;
}

@media (min-width: 900px) {
    .site-footer {
        padding-bottom: 3rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
}

@media (min-width: 760px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
        gap: 2rem;
    }
}

.footer-grid h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

@media (min-width: 760px) {
    .footer-grid h4 {
        font-size: 0.9rem;
    }
}

.footer-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-grid a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.82rem;
}

@media (min-width: 760px) {
    .footer-grid a {
        font-size: 0.92rem;
    }
}

.footer-grid a:hover {
    color: var(--brand);
}

/* Pasek metod płatności pod kolumnami stopki: w rzędzie i wyśrodkowany.
   Wcześniej była to piąta kolumna siatki, ułożona pionowo. */
.footer-payments {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.75rem;
    margin-top: 3.25rem;
}

.footer-payments img {
    height: 34px;
    width: auto;
}

.payment-logo {
    display: inline-flex;
    align-items: center;
}

.payment-logo img {
    height: auto;
    max-height: 28px;
    width: auto;
    max-width: 100%;
    display: block;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface);
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-align: center;
}

/* ===== STICKY MOBILE BAR ===== */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--section-bg);
    border-top: 1px solid var(--surface);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.2s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

.sticky-cta .price {
    font-weight: 700;
}

.sticky-cta .price small {
    display: block;
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--ink-muted);
    font-size: 0.72rem;
}

/* Pasek sticky zasłania dolne ~64 px ekranu: przewinięcie do kotwicy na
   końcu strony (#kontakt) i dół treści nie mogą pod niego wjeżdżać. */
@media (max-width: 899px) {
    html {
        scroll-padding-bottom: 5rem;
    }

    main {
        padding-bottom: 4rem;
    }
}

@media (min-width: 900px) {
    .sticky-cta {
        display: none;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.legal-content p {
    color: var(--ink-muted);
    margin-bottom: 0.9rem;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Sekcja dowodu skuteczności (social-proof.php) ===== */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* --box-bg, nie --section-bg: sekcje mają naprzemienne tła
   (section:nth-of-type(odd)), więc kafelek w kolorze sekcji zlewałby się
   z nią na co drugiej pozycji strony. */
.proof-stat {
    background: var(--box-bg);
    border: 1px solid var(--surface);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.proof-value {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.proof-label {
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Przypis pod kafelkami na całą szerokość siatki (tyle, ile trzy kafelki),
   nie wąska kolumna 70ch wyrównana do lewej. */
.proof-footnote {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink-muted);
    text-align: center;
}

/* Baner zgody na cookies (inc/partials/cookie-banner.php). Przyklejony do
   dołu, nad paskiem sticky CTA na telefonie (ten ma z-index 50) - stąd
   wyższy z-index i margines dolny liczony przez JS niepotrzebny: baner
   znika po decyzji, a sticky CTA pojawia się dopiero po przewinięciu. */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--box-bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(26, 26, 26, 0.08);
    padding: 1rem 0;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.cookie-banner-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-muted);
    flex: 1 1 32rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.cookie-banner .btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

/* Zdanie o Regulaminie pod przyciskami zakupu i pod formularzem kontaktowym. */
.legal-note {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: 0.75rem;
    text-align: center;
}

.contact-form .legal-note {
    text-align: left;
}

/* Podpis "w pakietach: ..." pod kafelkiem korzyści - cecha nie jest w każdym
   pakiecie, a kafelek sam z siebie tego nie mówił. */
.benefit-scope {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--latte-ink);
}