/* ── Strona demo (demo.billu.pl) ───────────────────────────────────────────
   Osobny host, ten sam katalog: nginx wystawia /demo/index.html jako korzeń
   demo.billu.pl. Style siedzą tutaj, a nie w layout.css, bo dotyczą jednej
   strony i nie mają obciążać strony głównej.

   Konwencja kolorów jest ta sama co w reszcie serwisu — wyłącznie zmienne
   z main.css, żeby tryb ciemny działał bez drugiego zestawu reguł. */

.page-demo { padding-top: 0; }

/* ── Nagłówek ──────────────────────────────────────────── */
.demo-hero {
    background: linear-gradient(160deg, var(--brand-navy) 0%, #0d3340 55%, var(--accent-1) 140%);
    padding: 96px 0 88px;
}
.demo-hero-inner { max-width: 760px; }
.demo-hero .section-tag { color: #7fd8d0; background: rgba(255, 255, 255, .1); }
.demo-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    color: #fff;
    margin: 14px 0 18px;
    line-height: 1.15;
}
.demo-hero-lead {
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 62ch;
}

/* Hasło stoi wyżej niż przyciski, bo to pierwsza rzecz, której ktoś szuka —
   a szukanie hasła pod przyciskiem „zaloguj” jest drobnym, ale prawdziwym
   utrudnieniem. */
.demo-hero-key {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 28px;
}
.demo-hero-key .demo-label { color: rgba(255, 255, 255, .7); }
.demo-hero-key .demo-password {
    font-size: 1.15rem;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    user-select: all;
}

/* Godziny stoją między hasłem a przyciskami celowo: to ostatnia rzecz do
   przeczytania przed kliknięciem „zaloguj”, a wieczorem jedyna, która
   tłumaczy, czemu logowanie odmawia. */
.demo-hero-godziny {
    color: rgba(255, 255, 255, .75);
    font-size: .95rem;
    line-height: 1.7;
    max-width: 62ch;
    margin: 0 0 28px;
    padding-left: 16px;
    border-left: 2px solid rgba(255, 255, 255, .28);
}
.demo-hero-godziny strong { color: #fff; font-weight: 600; }

.demo-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.demo-hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    background: transparent;
}
.demo-hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}
.demo-hero-note {
    color: rgba(255, 255, 255, .68);
    font-size: .92rem;
    line-height: 1.7;
    max-width: 62ch;
}
.demo-hero-note strong { color: #fff; font-weight: 600; }

/* ── Sekcje ────────────────────────────────────────────── */
.demo-section { padding: 76px 0; background: var(--bg-primary); }
.demo-section--alt { background: var(--bg-secondary); }
.demo-section .section-header { max-width: 760px; margin-bottom: 40px; }
.demo-foot {
    margin-top: 26px;
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
    max-width: 68ch;
}
.demo-foot strong { color: var(--text-heading); }

/* ── Tabela kont firmowych ─────────────────────────────── */
.demo-table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.demo-table { border-collapse: collapse; width: 100%; min-width: 620px; }
.demo-table th,
.demo-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.demo-table thead th {
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    background: var(--bg-secondary);
}
.demo-table tbody tr:last-child td { border-bottom: none; }
.demo-cell-role { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-1); font-weight: 700; }
.demo-cell-name { display: block; font-weight: 600; color: var(--text-heading); margin-top: 3px; }
.demo-cell-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.6; max-width: 46ch; }
.demo-table code {
    font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
    font-size: .92rem;
    font-weight: 600;
    color: var(--accent-2);
    background: rgba(136, 45, 97, .09);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    user-select: all;
}

/* ── Karty pracowników ─────────────────────────────────── */
.demo-people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 18px;
}
.demo-person {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}
.demo-person-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.demo-person-head h3 { font-size: 1.08rem; color: var(--text-heading); margin: 0; }
.demo-person-role {
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-1);
    background: rgba(0, 143, 143, .1);
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}
.demo-person-login {
    font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
    font-size: .84rem;
    color: var(--accent-2);
    background: rgba(136, 45, 97, .09);
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    user-select: all;
}
.demo-person-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0; flex: 1; }
.demo-person-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.demo-person-menu li {
    font-size: .78rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 9px;
    border-radius: 20px;
}

/* ── Scenariusze ───────────────────────────────────────── */
.demo-cases { display: flex; flex-direction: column; gap: 16px; }
.demo-case {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-1);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}
/* Numeracja niesie kolejność, w jakiej warto to przechodzić — pierwszy
   scenariusz jest gotowy do obejrzenia, drugi do przeklikania samemu. */
.demo-case-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.demo-case-body { display: flex; flex-direction: column; gap: 9px; }
.demo-case-body h3 { font-size: 1.1rem; color: var(--text-heading); margin: 0; }
.demo-case-steps { color: var(--text-main); font-size: .95rem; line-height: 1.65; margin: 0; }
.demo-case-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .85rem; color: var(--text-muted); }
.demo-case-meta strong { color: var(--text-heading); font-weight: 600; }
.demo-case-point {
    margin: 4px 0 0;
    font-size: .9rem;
    line-height: 1.65;
    color: var(--text-muted);
    border-left: 2px solid var(--accent-2);
    padding-left: 14px;
}

/* ── Zastrzeżenia ──────────────────────────────────────── */
.demo-honest { max-width: 800px; }
.demo-honest h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--text-heading); margin-bottom: 24px; }
.demo-honest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.demo-honest-list li {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.7;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}
.demo-honest-list strong { color: var(--text-heading); font-weight: 600; }

/* ── Zamknięcie ────────────────────────────────────────── */
.demo-cta-box { max-width: 720px; margin: 0 auto; text-align: center; }
.demo-cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 14px; }
.demo-cta-box p { color: rgba(255, 255, 255, .82); font-size: 1.03rem; line-height: 1.7; margin-bottom: 28px; }

@media (max-width: 768px) {
    .demo-hero { padding: 64px 0 56px; }
    .demo-section { padding: 56px 0; }
    .demo-hero-actions .btn { width: 100%; text-align: center; }
    .demo-case { flex-direction: column; gap: 12px; }
}
