/* ==========================================================================
   Domovská stránka - / (components/Home). Žádné nové barvy/radiusy - jen
   nové komponenty nad tokeny a vzory z acc.css (.btn, tokeny). Třídy jsou
   schválně předsazené "home-", ať se nepletou s dashboard styly, protože
   Page.phtml natahuje všechny CSS soubory na každou stránku (viz getAssets()).
   ========================================================================== */

/* main {max-width:760px;...} z inline <style> v Page.phtml je pro "holé"
   stránky (dl/dt/dd) - domovská stránka má vlastní layout, proto reset. */
main.home {
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-hero,
.home-section,
.home-cta {
    padding: 72px 24px;
}

.home-hero-inner,
.home-section-inner,
.home-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== HERO ========== */
.home-hero {
    background:
        radial-gradient(600px 300px at 85% -10%, var(--primary-light), transparent),
        var(--bg);
    overflow: hidden;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .2px;
}

.home-title {
    margin: 18px 0 0;
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -.5px;
}

.home-title-accent {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-subtitle {
    margin: 18px 0 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.home-hero-hint {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Vizuální mock kalendáře ---------- */
.home-hero-visual {
    display: flex;
    justify-content: center;
}

.home-mock {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotate(1.5deg);
}

.home-mock-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.home-mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-mock-dot--red { background: var(--error); }
.home-mock-dot--yellow { background: var(--warning); }
.home-mock-dot--green { background: var(--success); }

.home-mock-title {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

.home-mock-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 16px;
}

.home-mock-day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--bg-hover);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.home-mock-day--today {
    background: var(--primary);
    color: #fff;
}

.home-mock-tecka {
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.home-mock-tecka--ok { background: var(--success); }
.home-mock-tecka--warn { background: var(--warning); }

.home-mock-day--today .home-mock-tecka {
    background: #fff;
}

/* ========== SEKCE (funkce / jak to funguje) ========== */
.home-section--alt {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 40px;
}

.home-section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
}

.home-section-subtitle {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ---------- Funkce ---------- */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.home-feature {
    padding: 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.home-feature:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.home-feature-ikona {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 16px;
}

.home-feature-nadpis {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.home-feature-popis {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- Jak to funguje ---------- */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-step {
    text-align: center;
    padding: 8px 12px;
}

.home-step-cislo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
}

.home-step-nadpis {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text);
}

.home-step-popis {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ========== CTA ========== */
.home-cta {
    text-align: center;
}

.home-cta-inner {
    max-width: 560px;
    padding: 48px 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.home-cta-nadpis {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #fff;
}

.home-cta-popis {
    margin: 10px 0 24px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.9);
}

.home-cta .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.home-cta .btn-primary:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* ========== RESPONZIVITA ========== */
@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        text-align: center;
    }

    .home-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-visual {
        order: -1;
    }

    .home-mock {
        max-width: 320px;
    }

    .home-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .home-hero,
    .home-section,
    .home-cta {
        padding: 48px 16px;
    }

    .home-hero-actions .btn {
        flex: 1;
        min-width: 0;
    }

    .home-cta-inner {
        padding: 36px 24px;
    }
}
