:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

/* Nawigacja */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-outline {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    padding: 72px 0 84px;
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 55%);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-icon {
    color: var(--success);
    font-weight: 800;
}

/* Mockup interfejsu w Hero */
.app-preview {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}

.preview-header {
    background: var(--secondary);
    color: var(--white);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 10px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.dots span:first-child { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.preview-body {
    padding: 20px;
}

.schedule-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 0.95rem;
}

.status-pill {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.mini-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.mini-table th, .mini-table td {
    border: 1px solid var(--border);
    padding: 8px 6px;
    text-align: center;
}

.mini-table th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
}

.mini-table td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 10px;
    white-space: nowrap;
}

.shift-1 { background: #dbeafe; color: #1e40af; font-weight: 700; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.shift-2 { background: #e0e7ff; color: #3730a3; font-weight: 700; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.shift-u { background: #fef3c7; color: #92400e; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.shift-pu { background: #f3e8ff; color: #6b21a8; font-weight: 700; border-radius: 4px; padding: 2px 6px; }

.kp-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--warning);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #92400e;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Sekcje ogólne */
section {
    padding: 84px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--text-muted);
}

/* Proces 4 kroków */
.flow-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flow-step {
    background: var(--white);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.flow-num {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.flow-step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--secondary);
}

.flow-step p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Funkcje */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.feature-list {
    list-style: none;
    font-size: 0.86rem;
    color: var(--text-main);
}

.feature-list li {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 800;
}

/* Dokumenty kadrowe */
.docs-section {
    background: var(--secondary);
    color: var(--white);
}

.docs-section .section-header h2 {
    color: var(--white);
}

.docs-section .section-header p {
    color: #94a3b8;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doc-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 26px;
}

.doc-box h3 {
    font-size: 1.15rem;
    color: #60a5fa;
    margin-bottom: 14px;
}

.doc-box ul {
    list-style: none;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.doc-box li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.doc-box li:last-child {
    border-bottom: none;
}

/* Cennik */
.pricing-note {
    text-align: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 20px;
    border-radius: 8px;
    max-width: 780px;
    margin: -28px auto 44px;
    font-size: 0.92rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.price-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.price-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.popular-badge {
    position: absolute;
    top: -13px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.plan-limit {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin: 4px 0 16px;
}

.plan-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 6px;
}

.plan-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.plan-features {
    list-style: none;
    font-size: 0.9rem;
    margin-bottom: 26px;
}

.plan-features li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: 800;
}

.enterprise-banner {
    margin-top: 32px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Bezpieczeństwo */
.security-bar {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sec-item h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 6px;
}

.sec-item p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 56px 0 32px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 14px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 8px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
}

/* Modal Logowania / Rejestracji */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
    margin: 18px 0 22px;
}

.modal-tab {
    padding: 9px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.pin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.helper-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.demo-alert {
    display: none;
    margin-top: 14px;
    padding: 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Responsywność (Tablety i Smartfony) */
@media (max-width: 960px) {
    .hero-grid, .features-grid, .docs-grid, .pricing-grid, .flow-steps, .security-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 18px 24px;
        box-shadow: var(--shadow);
    }

    nav.open {
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .hero {
        padding: 44px 0 56px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 1.15rem;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .btn-sm-mobile {
        padding: 8px 11px;
        font-size: 0.82rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .pin-row {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 24px 18px;
    }

    .preview-header {
        font-size: 0.78rem;
        padding: 12px 14px;
    }
}

/* Banner Trial oraz tabela cennika */
.trial-banner {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.trial-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.trial-banner h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.trial-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pricing-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    text-align: left;
}

.pricing-table th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.pricing-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
    vertical-align: middle;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: #f8fafc;
}

.pricing-table tr.popular-row {
    background: #eff6ff;
}

.pricing-table tr.popular-row:hover {
    background: #e0efff;
}

.row-badge {
    display: inline-block;
    margin-left: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

.price-cell {
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.05rem;
    white-space: nowrap;
}

.price-cell span {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.action-cell {
    text-align: right;
    white-space: nowrap;
}

/* Pasek siły hasła */
.password-meter {
    width: 100%;
    height: 7px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.password-meter-bar {
    height: 100%;
    width: 0%;
    background: var(--danger);
    border-radius: 999px;
    transition: width 0.25s ease, background-color 0.25s ease;
}

