/* ============================================================
   CherryRoad Paywall — Plans Page Styles
   Loads on the plans page only.
   Shared styles (buttons, modals, forms) are in crpw-base.css
   ============================================================ */

.crpw-plans-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.crpw-plans-header {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1rem;
    color: inherit;
    line-height: 1.6;
}

/* Subscriber / notice banners */
.crpw-plans-subscriber-notice,
.crpw-plans-intro-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 24px;
    font-size: .9rem;
    color: #1e40af;
    text-align: center;
}

.crpw-plans-notice {
    text-align: center;
    color: #6b7280;
    padding: 24px;
    font-style: italic;
}

/* ============================================================
   Plan Card Grid
   ============================================================ */
.crpw-plans-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
}

.crpw-plans-count-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
    margin: 0 auto;
}

.crpw-plans-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .crpw-plans-grid,
    .crpw-plans-count-2,
    .crpw-plans-count-3 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ============================================================
   Plan Card
   ============================================================ */
.crpw-plan-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crpw-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
}

.crpw-plan-card--intro {
    border-color: #A31F34;
    box-shadow: 0 4px 16px rgba(29, 78, 216, .12);
}

.crpw-plan-card--current {
    border-color: #22c55e;
}

.crpw-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #A31F34;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.crpw-plan-badge--current { background: #22c55e; }

.crpw-plan-card__header { text-align: center; }

.crpw-plan-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.crpw-plan-card__route {
    font-size: .78rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.crpw-plan-card__pricing { text-align: center; }

.crpw-plan-card__price-original {
    display: block;
    font-size: .85rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.crpw-plan-card__price {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.crpw-plan-card__cycle {
    display: block;
    font-size: .82rem;
    color: #6b7280;
    margin-top: 4px;
}

.crpw-plan-card__cta {
    margin-top: auto;
    text-align: center;
}

/* Login prompt below grid */
.crpw-plans-login-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: .88rem;
    color: #6b7280;
}

/* ============================================================
   Free Account Card (below plan grid on plans page)
   ============================================================ */
.crpw-free-account-wrap { margin-top: 32px; }

.crpw-free-account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #9ca3af;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.crpw-free-account-divider::before,
.crpw-free-account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.crpw-free-account-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.crpw-free-account-card__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.crpw-free-account-card__content {
    flex: 1;
    min-width: 180px;
}

.crpw-free-account-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.crpw-free-account-card__desc {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.crpw-free-account-card__cta { flex-shrink: 0; }

@media (max-width: 560px) {
    .crpw-free-account-card {
        flex-direction: column;
        text-align: center;
    }
    .crpw-free-account-card__cta { width: 100%; }
    .crpw-btn-outline             { width: 100%; }
}
