/* AUTO-GENERATED — php scripts/build-style-split.php — modul: wizard */
/* ── Tier Cards ── */

.tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .tiers {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        justify-items: stretch;
    }
}

.tier-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 22px 28px;
    text-align: center;
    border: var(--frame-border);
    box-shadow: var(--frame-ring);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--frame-ring), var(--shadow-lg);
}

.tier-card.featured {
    /* Stejná šířka rámečku jako u ostatních karet (1px), aby se text
       popisku nezalamoval jinak a seznam funkcí zůstal zarovnaný.
       Zvýraznění řeší silnější stín místo tlustšího borderu. */
    border: 1px solid var(--gold);
    box-shadow: var(--frame-ring), 0 0 0 1px var(--gold), 0 4px 24px rgba(196, 168, 124, 0.22);
    position: relative;
}

.tier-card.featured::before {
    content: 'Nejoblíbenější';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Vstupní „brána" k tvorbě vzpomínky — první karta v přehledu tarifů,
   odlišená tmavým akcentem a zlatým rámem, aby jasně vedla k rovnou začít. */
.tier-card--cta {
    background: var(--accent);
    border: 2px solid var(--gold);
    box-shadow: var(--frame-ring), 0 10px 30px rgba(43, 24, 10, 0.28);
}

.tier-card--cta h3 {
    color: var(--white);
}

.tier-card--cta .tier-desc {
    color: rgba(255, 255, 255, 0.78);
}

.tier-card--cta .tier-card__hint {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 10px;
}

.tier-card--cta .btn-gold {
    color: var(--accent);
    font-weight: 600;
}

.tier-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tier-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.tier-card .tier-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-style: italic;
}

/* Zarovnání tlačítek jen ve 4 sloupcích na desktopu. Na mobilu subgrid
   zkracuje kartu a tlačítko přeteče ven. */
@media (min-width: 1025px) {
    @supports (grid-template-rows: subgrid) {
        .tier-card {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 5;
            row-gap: 0;
        }

        .tier-card--cta .tier-card__cta {
            grid-row: 4 / 6;
        }
    }
}

/* Záložní řešení pro prohlížeče bez subgridu: rezerva na 3 řádky popisu. */
@supports not (grid-template-rows: subgrid) {
    .tier-card .tier-desc {
        min-height: 4.8em;
    }
}

.tier-features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    width: 100%;
    flex: 1;
    text-align: left;
}

.tier-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    display: grid;
    grid-template-columns: 1.15em minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    text-align: center;
}

.tier-card .btn {
    margin-top: auto;
}

.tier-card__cta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: center;
}

.tier-card__cta .btn,
.tier-card__cta .btn.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    align-self: center;
    width: min(100%, 280px);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 1024px) {
    .tiers {
        justify-items: center;
    }
    .tiers > .tier-card {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        grid-row: auto !important;
        grid-template-rows: none !important;
        height: auto !important;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .tiers > .tier-card--cta .tier-card__cta {
        grid-row: auto !important;
    }
    .tiers .tier-card .btn {
        margin-top: 0;
    }
    .tiers .tier-card__cta {
        margin-top: 20px;
    }
    .tier-features {
        flex: none;
        margin: 0 auto 8px;
        width: 100%;
    }
}

.tier-card__detail-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.18);
    text-underline-offset: 3px;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.tier-card__detail-link:hover,
.tier-card__detail-link:focus {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* Zvýrazněná „Parte zdarma" položka v seznamu tarifu */
.tier-feature-steps {
    font-weight: 600;
    color: var(--text);
}

.tier-feature-free {
    color: var(--success);
    font-weight: 600;
}
.tier-feature-link {
    color: inherit;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
}

/* Střed CTA pod tarify / posledními vzpomínkami */
.tiers-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 16px;
    text-align: center;
    margin-top: 36px;
}

