/* === MODERN SAAS DESIGN (Professional & Sharp) === */
:root {
    /* Brand Colors */
    --primary: #0066da;        
    --primary-dark: #004a9f;
    --primary-light: #f0f7ff;
    --secondary: #0f172a;      /* Slate-900 */
    --secondary-dark: #020617; /* Téměř černá */
    
    /* Functional Colors */
    --text-main: #334155;      
    --text-muted: #64748b;     
    --success: #10b981;        
    --border-color: #e2e8f0;   
    --white: #ffffff;
    
    /* Design System */
    --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.06); 
    --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 0 4px rgba(0, 102, 218, 0.15); 
    
    /* UPRAVENO: Radiusy */
    --radius: 4px;      /* Ponecháno pro tlačítka (jemné zaoblení) */
    --radius-lg: 0px;   /* Změněno na 0px pro karty a sekce (ostré hrany) */
    
    --container-width: 1280px;
}

/* ÚPRAVA 1: Scroll padding nastaven na 20px dle zadání */
html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    scroll-padding-top: 20px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--text-main); 
    line-height: 1.5; 
    background: #ffffff; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; 
}

a { text-decoration: none; transition: all 0.2s ease-in-out; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* Layout utility */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* === NAVBAR === */
.navbar { 
    padding: 12px 0; 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 38px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { 
    color: var(--secondary); 
    font-weight: 500; 
    font-size: 0.9rem; 
}
.nav-links a:hover { color: var(--primary); }

.nav-auth { display: flex; align-items: center; gap: 12px; }

.btn-login { color: var(--text-main); font-weight: 600; font-size: 0.9rem; padding: 8px 12px; }
.btn-login:hover { color: var(--primary); }

.btn-register { 
    background: var(--secondary); 
    color: white !important; 
    padding: 8px 18px; 
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--secondary);
}
.btn-register:hover { 
    background: transparent; 
    color: var(--secondary) !important; 
}

/* Mobile Menu */
.mobile-menu-icon { display: none; font-size: 1.4rem; cursor: pointer; color: var(--secondary); padding: 5px; }
.mobile-menu { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: white; 
    border-bottom: 1px solid var(--border-color); 
    padding: 10px 0; 
    box-shadow: var(--shadow-card);
}
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 12px 24px; color: var(--secondary); font-weight: 500; border-bottom: 1px solid #f8fafc; display: block; }
.mobile-menu a:last-child { border-bottom: none; }


/* === HERO SECTION === */
.hero { 
    position: relative;
    min-height: 100vh;
    padding-top: 100px; 
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--secondary); 
    background-image: url('../fakturace-pro-osvc-i-firmu.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; 
}

@media (min-width: 1024px) {
    .hero { background-attachment: fixed; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-text-center { max-width: 800px; margin: 0 auto; text-align: center; }

.badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}
.badge-new { 
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd; 
    padding: 6px 14px; 
    font-size: 0.8rem; 
    font-weight: 500; 
    backdrop-filter: blur(4px);
    text-align: left;
    line-height: 1.3;
    max-width: 95%; 
}
.badge-new i { flex-shrink: 0; } 

.hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.15; 
    margin-bottom: 20px; 
    font-weight: 800; 
    letter-spacing: -0.04em;
}

.highlight-text {
    color: #6ea8fe;
    background: linear-gradient(90deg, #6ea8fe 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-p { 
    font-size: 1.15rem; 
    color: #cbd5e1; 
    margin-bottom: 35px; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap; 
}

/* Upravené hlavní tlačítko - GRADIENT */
.btn-main { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    color: white; 
    padding: 12px 28px; 
    border-radius: var(--radius);
    font-weight: 600; 
    font-size: 1rem; 
    border: none;  
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-main:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 218, 0.4);
}

.btn-secondary-hero {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}
.btn-secondary-hero:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.trust-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.trust-item { display: flex; align-items: center; gap: 6px; }
.trust-note i { color: var(--success); }


/* === FEATURES === */
.features { background: white; }

.section-title { text-align: center; margin-bottom: 60px; max-width: 650px; margin-left: auto; margin-right: auto; }
.section-title h2 { 
    font-size: 2.2rem; margin-bottom: 12px; font-weight: 800; color: var(--secondary); 
    letter-spacing: -0.03em;
}
.section-title p { font-size: 1.05rem; color: var(--text-muted); }

.features-grid { 
    display: grid; 
    gap: 24px; 
    grid-template-columns: repeat(1, 1fr); 
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card { 
    padding: 28px; 
    background: white; 
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); 
    transition: 0.2s ease-out; 
}
.feature-card:hover { 
    border-color: var(--primary);
    box-shadow: var(--shadow-card); 
}

.icon-box { 
    width: 58px; height: 58px; 
    border-radius: 50px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; margin: 0 auto 20px;
}
.blue { background: #e0f2fe; color: var(--primary); }
.green { background: #dcfce7; color: #166534; }
.purple { background: #f3e8ff; color: #7e22ce; }
.orange { background: #ffedd5; color: #c2410c; }

.feature-card h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; color: var(--secondary); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* === PRICING === */
.pricing { background: #f8fafc; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.pricing-wrapper { 
    display: flex; 
    justify-content: center; 
    gap: 24px; 
    flex-wrap: wrap; 
    align-items: stretch; 
}

.pricing-card { 
    background: white; 
    padding: 32px 24px; 
    border-radius: var(--radius-lg);
    width: 340px; 
    max-width: 100%;
    border: 1px solid var(--border-color); 
    position: relative; 
    display: flex; flex-direction: column;
}

.pricing-card.featured { 
    border: 2px solid var(--primary); 
    box-shadow: 0 10px 30px rgba(0, 102, 218, 0.1); 
    z-index: 2; 
}

/* Badge Popular - GRADIENT */
.badge-popular { 
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%); 
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%); 
    color: white; padding: 6px 12px; 
    border-radius: 50px;
    font-weight: 600; font-size: 0.75rem; 
    text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 102, 218, 0.3);
}

.card-header { text-align: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.card-header h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--secondary); }
.price { font-size: 2.2rem; font-weight: 800; color: var(--secondary); letter-spacing: -0.02em; }
.period { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.features-list { margin-bottom: 30px; flex-grow: 1; }
.features-list li { margin-bottom: 10px; display: flex; gap: 10px; color: var(--text-main); font-size: 0.9rem; align-items: flex-start;}
.features-list li i { color: var(--success); margin-top: 4px; font-size: 0.9rem; flex-shrink: 0; }
.features-list li.disabled { color: #cbd5e1; text-decoration: line-through; }
.features-list li.disabled i { color: #cbd5e1; }

.btn-outline { 
    display: block; text-align: center; border: 1px solid var(--border-color); 
    color: var(--secondary); padding: 10px; 
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.95rem;
}
.btn-outline:hover { border-color: var(--secondary); background: var(--secondary); color: white; }

.full-width { width: 100%; display: block; text-align: center; padding: 12px; border-radius: var(--radius); }
.price-note { text-align: center; margin-top: 12px; font-size: 0.8rem; color: var(--primary); font-weight: 600; background: var(--primary-light); padding: 4px 8px; border-radius: 4px; display: inline-block; width: 100%; }

/* === COMPARISON TABLE (DEFAULT PC) === */
.comparison-section { padding: 80px 0; background: white; }
.comparison-table-wrapper { 
    overflow-x: auto; 
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: white; 
    margin-top: 40px; 
}

.comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.comparison-table th { 
    padding: 18px 20px; background: #f8fafc; color: var(--secondary); 
    font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; 
    border-bottom: 1px solid var(--border-color);
    text-align: center; 
}
.comparison-table th:first-child { text-align: left; }

.comparison-table td { 
    padding: 14px 20px; 
    border-bottom: 1px solid #f1f5f9; 
    font-size: 0.9rem; 
    color: var(--text-main); 
    text-align: center;
    vertical-align: middle;
}
.comparison-table td:first-child { 
    text-align: left; 
}
.comparison-table tr:last-child td { border-bottom: none; }

.feature-group { 
    background-color: #f1f5f9; color: var(--secondary); 
    font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; 
    padding: 10px 20px !important;
    text-align: left !important;
}

.col-pro { background-color: #f8fbff; }
.check-green { color: var(--success); }
.cross-red { color: #e2e8f0; }

/* === RESPONSIVE TABLE (MOBILE CARD VIEW) === */
@media (max-width: 768px) {
    .comparison-table-wrapper { border: none; overflow: visible; }
    .comparison-table { min-width: 100%; display: block; }
    
    .comparison-table thead { display: none; }
    .comparison-table tbody { display: block; }
    
    .comparison-table tr { 
        display: block; 
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 0;
        margin-bottom: 20px;
        box-shadow: var(--shadow-soft);
        overflow: hidden;
    }
    
    .comparison-table td.feature-group { 
        display: block; 
        text-align: center !important;
        background: var(--secondary);
        color: white;
        padding: 8px;
    }

    /* ÚPRAVA 2: Zarovnání obsahu na mobilu */
    .comparison-table td { 
        display: flex; 
        justify-content: flex-start; /* Změna: zarovnání na začátek */
        align-items: center; /* Vertikální zarovnání na střed */
        padding: 12px 15px;
        border-bottom: 1px solid #f1f5f9;
        text-align: left !important; 
        min-height: 48px; 
    }

    /* ÚPRAVA ICON: Přesunuto z konce souboru sem pro lepší kontext */
    .comparison-table td i {
        margin-right: 10px; 
    }
    
    .comparison-table td:first-child { 
        background-color: #f8fafc;
        font-weight: 700;
        color: var(--secondary);
        justify-content: center;
        text-align: center !important;
        border-bottom: 2px solid var(--border-color);
    }
    
    /* ÚPRAVA 3: Popisek 50% šířky */
    .comparison-table td:not(:first-child)::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        
        width: 50%;       /* Důležité: zabere polovinu řádku */
        flex-shrink: 0;   /* Nesmrskne se */
        text-align: left;
    }
    
    .col-pro { background-color: transparent; }
    .comparison-table tr:hover td { background-color: white; }
    .comparison-table tr:hover td:first-child { background-color: #f8fafc; }
}

/* === TESTIMONIALS === */
.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
}
.testimonial-card { 
    background: white; padding: 28px; 
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); 
    display: flex; flex-direction: column;
}
.user-info { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.avatar-circle { width: 55px; height: 55px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.user-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.user-info span { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-card p { font-size: 0.95rem; color: var(--text-main); font-style: italic; line-height: 1.6; flex-grow: 1; }
.stars { color: #fbbf24; margin-top: 15px; font-size: 0.8rem; letter-spacing: 2px; }

/* === FAQ === */
.faq-section { background: white; border-top: 1px solid var(--border-color); }

.faq-container { 
    max-width: 700px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-question { 
    padding: 20px 0; cursor: pointer; display: flex; 
    justify-content: space-between; align-items: center; 
    font-weight: 600; color: var(--secondary); font-size: 1rem;
}
.faq-question:hover { color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-answer { padding-bottom: 20px; }
.faq-toggle { transition: transform 0.3s; color: #cbd5e1; font-size: 0.9rem; }
.faq-item.active .faq-toggle { transform: rotate(180deg); color: var(--primary); }

.faq-help-text {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.faq-help-text i { margin-right: 8px; color: var(--primary); }

/* === SEO CONTENT === */
.seo-content { 
    background: #f8fafc; 
    padding: 60px 0; 
    font-size: 0.99rem; 
    color: var(--text-muted); 
    border-top: 1px solid var(--border-color);
    text-align: left; 
}
.seo-content h3 { color: var(--secondary); margin-bottom: 10px; font-size: 1.1rem; text-align: center;}
.seo-content p { 
    margin-bottom: 15px; 
    max-width: 800px; 
    line-height: 1.6; 
    margin-left: auto;
    margin-right: auto;
}

/* === CTA & FOOTER === */
.cta-section { padding: 60px 0; background: white; }

/* Upravená CTA karta - GRADIENT do černé */
.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 50px 24px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-card);
}
.cta-card h2 { font-size: 2rem; margin-bottom: 12px; color: white; }
.cta-card p { font-size: 1.1rem; margin-bottom: 25px; color: #cbd5e1; }
.btn-cta-white {
    background: white; color: var(--secondary);
    padding: 12px 30px; 
    border-radius: var(--radius);
    font-weight: 700;
    display: inline-block; font-size: 1rem;
}
.btn-cta-white:hover { background: #f1f5f9; }

/* Patička */
footer { 
    background: var(--secondary-dark); 
    color: white; 
    padding: 60px 0 30px 0; 
    border-top: 1px solid #1e293b; 
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1rem; color: white; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.footer-col p, .footer-col a { color: #94a3b8; margin-bottom: 8px; font-size: 0.9rem; display: block; }
.footer-col a:hover { color: white; }
.footer-mail { color: white !important; font-weight: 600; margin-top: 10px; }

/* === COOKIE BAR === */
#cookie-bar { 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(200%);
    width: calc(100% - 40px); max-width: 800px;
    background: white; color: var(--secondary);
    padding: 16px; 
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; flex-direction: column; gap: 15px;
    z-index: 9999; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    #cookie-bar { flex-direction: row; align-items: center; justify-content: space-between;  }
    .cookie-actions { margin-top: 0; }
}
#cookie-bar.show { transform: translateX(-50%) translateY(0); }
.cookie-text p { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn { background: var(--secondary); color: white; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.cookie-btn-no { background: transparent; color: #64748b; border: none; cursor: pointer; font-weight: 500; font-size: 0.85rem; }

/* === GLOBAL RESPONSIVE ADJUSTMENTS === */
/* Tyto styly jsou na konci, aby spolehlivě přepsaly defaultní zobrazení */

@media (max-width: 992px) {
    .nav-links, .nav-auth { display: none; }
    .mobile-menu-icon { display: block; }
    .hero h1 { font-size: 3rem; }
    .pricing-card.featured { transform: none; box-shadow: none; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { text-align: center; }
    .hero h1 { font-size: 2.2rem; } 
    .hero-p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .btn-main, .btn-secondary-hero { width: 100%; }
    .pricing-card { width: 100%; }
    
    /* Poznámka: Styl pro ikony tabulky byl přesunut výše do sekce "RESPONSIVE TABLE",
       aby byl kód komponenty pohromadě. */
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
}

/* Styly pro modální okno (GDPR/Podmínky) */
#gdprModal .modal-content { background-color: #fff; margin: auto; padding: 0; border-radius: 8px; width: 90%; max-width: 800px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
#gdprModal .modal-header { padding: 15px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
#gdprModal .modal-header h3 { margin: 0; font-size: 1.2rem; }
#gdprModal .modal-close { font-size: 28px; cursor: pointer; color: #aaa; }
#gdprModal .modal-close:hover { color: #333; }
#gdprModal .modal-body { padding: 20px; line-height: 1.6; max-height: 70vh; overflow-y: auto; color: #333; text-align: left; }
#gdprModal .modal-body h3 { font-size: 1.1rem; margin-top: 15px; margin-bottom: 10px; color: #1e293b; font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: 5px; }
#gdprModal .modal-body ul { padding-left: 20px; margin-bottom: 10px; }
#gdprModal .modal-body li { margin-bottom: 5px; }
#gdprModal .modal-body p { margin-bottom: 10px; }
#gdprModal .modal-body .warning-box, #gdprModal .modal-body .info-box { padding: 10px; background: #f0f9ff; margin: 10px 0; font-size: 0.9em; }
#gdprModal .modal-body .warning-box { background: #fff7ed; color: #9a3412; }