/* ===============================DEMO - NAVOD===============================*/
/* Stránka /home/demo.html – návod na spuštění DEMO přístupu.
   Používá proměnné a třídy ze style.css (--primary, --shadow, .primary-button…). */

main#gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 90px;
    padding: 60px 0 0;
}

/* ---------- HERO ---------- */
.demo-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.demo-eyebrow {
    color: var(--primary);
    background: rgba(10, 54, 157, 0.08);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-hero h1 {
    max-width: 900px;
    line-height: 1.1;
}

.demo-lead {
    max-width: 640px;
    font-size: 20px;
    line-height: 1.5;
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
}

.demo-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.demo-facts li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    padding: 16px 22px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 15px;
}

.demo-facts b {
    color: var(--primary);
    font-size: 17px;
}

/* ---------- POSTUP ---------- */
.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
    scroll-margin-top: 30px;
}

.demo-phase {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.demo-phase-heading {
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-phase-heading div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-phase-number {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.demo-cards-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: calc((100% - 60px) / 3 * 2 + 30px);
}

.demo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: white;
}

.demo-card h3,
.demo-card p {
    padding: 0 24px;
}

.demo-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    line-height: 1.3;
}

.demo-card p {
    font-size: 16px;
    line-height: 1.5;
}

.demo-step {
    flex: 0 0 auto;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* náhled obrazovky telefonu */
.demo-shot {
    display: flex;
    justify-content: center;
    padding: 28px 20px 0;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef2fb 0%, #f7f9fd 100%);
}

.demo-shot img {
    width: 200px;
    height: auto;
    align-self: flex-start;
    border-radius: 18px 18px 0 0;
    border: 6px solid #1c1f26;
    border-bottom: none;
    box-shadow: 0 10px 30px rgba(10, 54, 157, 0.18);
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out;
}

.demo-shot img:hover {
    transform: translateY(-6px);
}

/* ---------- OBORY ---------- */
.demo-obory {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.demo-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin-top: 16px;
}

.demo-chips li {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(149, 157, 165, 0.12);
    font-size: 16px;
}

.demo-chips li:has(a) {
    background: rgba(10, 54, 157, 0.08);
}

.demo-chips a {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.demo-chips a::after {
    content: " →";
}

/* ---------- CTA ---------- */
.demo-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 48px;
    border-radius: 16px;
    background: var(--gradient);
    box-shadow: var(--shadow);
}

.demo-cta div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
}

.demo-cta h2,
.demo-cta p {
    color: white;
}

.demo-cta .demo-actions {
    margin: 0;
    flex-wrap: nowrap;
}

.demo-cta .primary-button {
    background: white;
    color: var(--primary);
}

.demo-cta .secondary-button {
    background: transparent;
    color: white;
    border-color: white;
    white-space: nowrap;
}

/* ---------- RESPONZIVITA ---------- */
@media (max-width: 1000px) {
    .demo-cards,
    .demo-cards-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .demo-cta {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .demo-cta div:first-child {
        align-items: center;
    }

    .demo-cta .demo-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    main#gallery {
        gap: 70px;
        padding-top: 40px;
    }

    .demo-cards,
    .demo-cards-2 {
        grid-template-columns: 1fr;
    }

    .demo-lead {
        font-size: 18px;
    }

    .demo-facts li {
        width: 100%;
    }

    .demo-phase-number {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    h2 {
        font-size: 1.6rem;
    }
}
