/* ─── Shared Demo Page Layout ────────────────────────────────── */
.page-wrapper {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 10px;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .page-header h1 {
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        color: #1F2937;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

.page-header .lead {
    font-size: 1.125rem;
    color: #6B7280;
    font-style: italic;
    margin-top: 0.5rem;
    font-weight: 350;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.demo-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

    .demo-card:focus-within {
        outline-color: #1564C0;
    }

    .demo-card h2 {
        color: #374151;
        margin-top: 0;
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
        font-weight: 600;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #E5E7EB;
    }

/* ─── Features list ──────────────────────────────────────────── */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .features-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
        color: #4B5563;
        background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
        border-radius: 0.5rem;
        border-left: 4px solid #1564C0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        line-height: 1.5;
    }

    .features-list li::before {
        content: "✓";
        flex-shrink: 0;
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #1564C0 0%, #2563EB 100%);
        color: white;
        font-weight: bold;
        font-size: 0.875rem;
        margin-top: 0.05rem;
    }

    .features-list li:hover {
        transform: translateX(4px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* ─── Accessibility ──────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

main, header, section {
    outline: 2px solid transparent;
}

/* ─── Media queries ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0.75rem 0.5rem;
    }

    .page-container {
        margin-top: 5px;
    }

    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .demo-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (prefers-contrast: more) {
    .demo-card:focus-within {
        outline-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .features-list li,
    .demo-card {
        transition: none;
    }
}