﻿/* ============================================================
   subscription.css
   Brand Colors: Primary #cc79dc (purple) | Accent #8BC443 (green)
   ============================================================ */

/* ── Google Fonts loaded in HTML ── */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    /* Brand */
    --primary: #cc79dc;
    --primary-dark: #b05ec4;
    --primary-light: #f3e2f8;
    --accent-green: #8BC443;
    --accent-green-dark: #6fa332;
    --accent-green-light: #edf6d8;
    /* Neutrals */
    --bg: #faf8fc;
    --surface: #ffffff;
    --surface-alt: #f5f0fa;
    --border: #e4d9ef;
    --border-strong: #c9b8de;
    --ink: #231630;
    --ink-muted: #6d5d80;
    --ink-faint: #a898b8;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(100, 60, 140, 0.08);
    --shadow-md: 0 6px 24px rgba(100, 60, 140, 0.13);
    --shadow-lg: 0 12px 40px rgba(100, 60, 140, 0.18);
    /* Shape */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    /* Type */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', sans-serif;
    /* Transitions */
    --ease: 0.22s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    /*padding: 56px 24px 64px;*/
    /* Subtle decorative background */
    background-image: radial-gradient(ellipse 60% 40% at 15% 10%, rgba(204,121,220,0.10) 0%, transparent 70%), radial-gradient(ellipse 50% 35% at 85% 90%, rgba(139,196,67,0.09) 0%, transparent 70%);
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header2 {
    text-align: center !important;
    margin-bottom: 52px !important;
}

.eyebrow2 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.page-title2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--ink-muted);
    font-weight: 400;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Plans Row ───────────────────────────────────────────── */
.plans-row {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    max-width: 1060px;
    margin: 0 auto;
}

/* ── Plan Card (Base) ────────────────────────────────────── */
.plan-card {
    position: relative;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    flex: 1;
    min-width: 0;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

    .plan-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

/* ── Plan Top Section ────────────────────────────────────── */
.plan-top {
    margin-bottom: 20px;
}

.plan-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--ink-faint);
    line-height: 1;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.plan-tagline {
    font-size: 0.8rem;
    color: var(--ink-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
}

.price-period {
    font-size: 0.88rem;
    color: var(--ink-muted);
    font-weight: 600;
}

/* Strikethrough original price (yearly only) */
.price-was {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.was-label {
    font-size: 0.72rem;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.was-amount {
    font-size: 0.88rem;
    color: var(--ink-faint);
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-color: var(--primary);
}

/* ── Plan Description ────────────────────────────────────── */
.plan-description {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ── Benefits List ───────────────────────────────────────── */
.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 32px;
    flex: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.45;
}

    .benefit-item.benefit-limited {
        color: var(--ink-faint);
        font-weight: 400;
    }

.benefit-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    background: var(--accent-green-light);
    color: var(--accent-green-dark);
    margin-top: 1px;
    flex-shrink: 0;
}

    .benefit-icon.limited {
        background: #f0eded;
        color: #c0b0b0;
    }

/* ── CTA Buttons ─────────────────────────────────────────── */
.plan-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    transition: background var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
    margin-top: auto;
}

    .plan-btn:active {
        transform: scale(0.98);
    }

/* Free button */
.btn-free {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

    .btn-free:hover {
        background: var(--primary-light);
        border-color: var(--primary-dark);
    }

/* Monthly button */
.btn-monthly {
    background: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 14px rgba(204,121,220,0.35);
}

    .btn-monthly:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        box-shadow: 0 6px 20px rgba(204,121,220,0.45);
    }

/* Yearly button */
.btn-yearly {
    background: var(--accent-green);
    color: #ffffff;
    border: 2px solid var(--accent-green);
    box-shadow: 0 4px 14px rgba(139,196,67,0.35);
}

    .btn-yearly:hover {
        background: var(--accent-green-dark);
        border-color: var(--accent-green-dark);
        box-shadow: 0 6px 20px rgba(139,196,67,0.45);
    }

/* ── Plan-Specific Card Styles ───────────────────────────── */

/* Free — understated */
.plan-free .plan-icon {
    color: var(--ink-faint);
}

.plan-free .price-amount {
    color: var(--ink-muted);
}

/* Monthly — primary brand */
.plan-monthly {
    border-color: var(--primary);
    background: linear-gradient(160deg, #fff 70%, var(--primary-light) 100%);
}

    .plan-monthly .plan-icon {
        color: var(--primary);
    }

    .plan-monthly .plan-name {
        color: var(--primary-dark);
    }

    .plan-monthly .price-amount {
        color: var(--primary-dark);
    }

/* Yearly — best value, green accent */
.plan-yearly {
    border-color: var(--accent-green);
    background: linear-gradient(160deg, #fff 60%, var(--accent-green-light) 100%);
}

    .plan-yearly .plan-icon {
        color: var(--accent-green);
    }

    .plan-yearly .plan-name {
        color: var(--accent-green-dark);
    }

    .plan-yearly .price-amount {
        color: var(--accent-green-dark);
    }

/* ── Best Value Badge ────────────────────────────────────── */
.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(139,196,67,0.4);
}

/* ── Footer Note ─────────────────────────────────────────── */
.footer-note {
    text-align: center;
    margin-top: 44px;
    font-size: 0.78rem;
    color: var(--ink-faint);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 800px) {
    .plans-row {
        flex-direction: column;
        align-items: center;
    }

    .plan-card {
        max-width: 480px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 36px 16px 48px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

/* ── Top nav: lavender treatment ─────────────────────────────
   Scoped to `.navbar.bg-purple` (not the bare `.bg-purple` utility,
   which is also used on ~74 other elements site-wide, e.g. admin card
   headers) so only the shared nav picks up the new palette. Loaded on
   every page via _Layout.cshtml/_Layout2.cshtml, so this stays in sync
   automatically instead of needing to be duplicated per layout. */
.navbar.bg-purple {
    background-color: #f0eaf7 !important;
    border-bottom: 1px solid rgba(107, 63, 160, 0.15);
}

    .navbar.bg-purple .nav-link {
        color: #4a2d6b;
    }

        .navbar.bg-purple .nav-link:hover,
        .navbar.bg-purple .nav-link:focus {
            color: #6b3fa0;
        }

    .navbar.bg-purple .navbar-toggler {
        border-color: rgba(107, 63, 160, 0.35);
    }
