/* CookieYes-style plan cards — layout (works on light + dark theme) */

.plan-cards-section .plan-cards-grid {
    align-items: stretch;
}

.plan-card {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    height: 100%;
    margin: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    background: var(--surface-color, #fff);
    box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / 0.05));
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.plan-card__ribbon {
    min-height: 1.75rem;
    margin: -0.25rem 0 0.35rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.plan-card__ribbon span {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    color: #fff;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-radius: 999px;
}

.plan-card__head {
    margin-bottom: 0.5rem;
}

.plan-card__name {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    line-height: 1.3;
}

.plan-card__tagline {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.35em;
}

.plan-card__price {
    margin-bottom: 0.75rem;
}

.plan-card__amount {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary, #1e293b);
}

.plan-card__amount small {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.plan-card__tax-note {
    min-height: 1.25rem;
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
}

.plan-card__cta {
    min-height: 3.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.plan-card__cta > .d-grid,
.plan-card__cta > .btn,
.plan-card__cta > a.btn,
.plan-card__cta > button.btn,
.plan-card__cta > span {
    width: 100%;
}

.plan-card__cta form {
    display: block;
    width: 100%;
}

.plan-card__cta .d-grid {
    min-height: 3.25rem;
    align-content: center;
}

.plan-card__cta-placeholder {
    display: block;
    width: 100%;
    min-height: 3.25rem;
    line-height: 3.25rem;
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: 0.875rem;
}

.plan-card__btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

.plan-card__features {
    margin: 0;
    padding: 0;
    align-self: start;
    color: var(--text-secondary, #64748b);
}

.plan-card__features li {
    margin-bottom: 0.5rem;
}

.plan-card__features li:last-child {
    margin-bottom: 0;
}

/* Accent variants */
.plan-card--accent-guest .plan-card__name {
    color: var(--guest-color, #64748b);
}

.plan-card--accent-free .plan-card__name {
    color: var(--text-primary, #1e293b);
}

.plan-card--accent-std .plan-card__name,
.plan-card--accent-std .plan-card__amount {
    color: var(--standard-color, #0f766e);
}

.plan-card--accent-biz .plan-card__name,
.plan-card--accent-biz .plan-card__amount {
    color: var(--premium-color, #7c3aed);
}

.plan-card--accent-pro .plan-card__name,
.plan-card--accent-pro .plan-card__amount {
    color: #4f46e5;
}

.plan-card--featured {
    border-color: var(--standard-color, #0f766e);
    box-shadow: 0 0 0 1px var(--standard-color, #0f766e), var(--shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.plan-card--featured .plan-card__btn--primary {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border: none;
    color: #fff;
}

.plan-card--featured .plan-card__btn--primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

.plan-card--accent-biz .plan-card__btn--accent {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: none;
    color: #fff;
}

.plan-card--accent-biz .plan-card__btn--accent:hover {
    filter: brightness(1.05);
    color: #fff;
}

.plan-card--accent-pro .plan-card__btn--accent {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border: none;
    color: #fff;
}

.plan-card--accent-pro .plan-card__btn--accent:hover {
    filter: brightness(1.05);
    color: #fff;
}

/* Dark theme (Searlo preview on index) */
html.theme-searlo-preview body .plan-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}

html.theme-searlo-preview body .plan-card__name {
    color: #f1f5f9;
}

html.theme-searlo-preview body .plan-card--accent-std .plan-card__name,
html.theme-searlo-preview body .plan-card--accent-std .plan-card__amount {
    color: #5eead4;
}

html.theme-searlo-preview body .plan-card--accent-biz .plan-card__name,
html.theme-searlo-preview body .plan-card--accent-biz .plan-card__amount {
    color: #c4b5fd;
}

html.theme-searlo-preview body .plan-card--accent-pro .plan-card__name,
html.theme-searlo-preview body .plan-card--accent-pro .plan-card__amount {
    color: #a5b4fc;
}

html.theme-searlo-preview body .plan-card__tagline,
html.theme-searlo-preview body .plan-card__features {
    color: #cbd5e1;
}

html.theme-searlo-preview body .plan-card__tax-note {
    color: #94a3b8;
}

html.theme-searlo-preview body .plan-card__amount {
    color: #f1f5f9;
}

html.theme-searlo-preview body .plan-card--featured {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 8px 24px rgb(0 0 0 / 0.35);
}

html.theme-searlo-preview body .plan-card__ribbon span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

html.theme-searlo-preview body .plan-card .btn-outline-primary {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.55);
}

html.theme-searlo-preview body .plan-card .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

html.theme-searlo-preview body .plan-card .btn-outline-secondary {
    color: #cbd5e1;
    border-color: rgba(203, 213, 225, 0.55);
}

html.theme-searlo-preview body .plan-card .btn:disabled,
html.theme-searlo-preview body .plan-card .btn.disabled {
    opacity: 1 !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

html.theme-searlo-preview body .plan-card .btn-secondary:disabled {
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html.theme-searlo-preview body .plan-card__cta-placeholder {
    color: #94a3b8;
}

.plan-cards-for-box--std {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.3);
}

.plan-cards-for-box--std h6 {
    color: #0d9488;
}

.plan-cards-for-box--biz {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.plan-cards-for-box--biz h6 {
    color: #7c3aed;
}
