/* Shared pricing cards. Used on /pricing and the homepage pricing strip.
   Markup: resources/views/partials/pricing_cards.blade.php */

.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    text-align: left;
}

.pricing-tier-card {
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-tier-card:hover {
    transform: translateY(-4px);
}

.tier-card-free {
    background: #ffffff;
    border: 1.5px solid #e4e4e7;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.tier-card-free:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tier-card-pro {
    background: #ffffff;
    border: 2px solid #e4e4e7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.tier-card-pro:hover {
    border-color: #09090b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.tier-card-max {
    background: #ffffff;
    color: #09090b;
    border: 1.5px solid #09090b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.tier-card-max:hover {
    border-color: #09090b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tier-header {
    margin-bottom: 12px;
}

.tier-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.tier-badge-pro {
    background: #09090b;
    color: #ffffff;
}

.tier-badge-max {
    background: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
}

.tier-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tier-card-free .tier-title,
.tier-card-pro .tier-title,
.tier-card-max .tier-title {
    color: #09090b;
}

.tier-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
    font-weight: 400;
}

.tier-card-free .tier-desc,
.tier-card-pro .tier-desc,
.tier-card-max .tier-desc {
    color: #71717a;
}

.tier-price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid;
}

.tier-card-free .tier-price-box,
.tier-card-pro .tier-price-box,
.tier-card-max .tier-price-box {
    border-color: #f4f4f5;
}

.tier-amount {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.tier-card-free .tier-amount,
.tier-card-pro .tier-amount,
.tier-card-max .tier-amount {
    color: #09090b;
}

.tier-period {
    font-size: 0.95rem;
    font-weight: 500;
}

.tier-card-free .tier-period,
.tier-card-pro .tier-period,
.tier-card-max .tier-period {
    color: #71717a;
}

.tier-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tier-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 400;
}

.tier-feature-item strong {
    font-weight: 700;
}

.tier-card-free .tier-feature-item,
.tier-card-pro .tier-feature-item,
.tier-card-max .tier-feature-item {
    color: #3f3f46;
}

.tier-check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tier-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tier-btn[disabled] {
    opacity: 0.7;
    cursor: default;
}

.btn-outline {
    background: #ffffff;
    color: #09090b;
    border: 1.5px solid #e4e4e7;
}
.btn-outline:hover {
    border-color: #09090b;
    background: #fafafa;
}

.btn-dark {
    background: #09090b;
    color: #ffffff;
    border: 1.5px solid #09090b;
}
.btn-dark:hover {
    background: #27272a;
    border-color: #27272a;
}

.btn-outline-dark {
    background: #ffffff;
    color: #09090b;
    border: 1.5px solid #09090b;
}
.btn-outline-dark:hover {
    background: #fafafa;
    border-color: #09090b;
}

.btn-light {
    background: #ffffff;
    color: #09090b;
    border: 1.5px solid #ffffff;
}
.btn-light:hover {
    background: #f4f4f5;
    border-color: #f4f4f5;
}

@media (max-width: 980px) {
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}
