/* Pricing Section Styles - Bloomberg-inspired Professional Aesthetic */
#pricing {
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Calmer, more neutral editorial canvas */
    background: var(--bg-body);
}

[data-theme="light"] #pricing {
    background: linear-gradient(180deg, #fbfdfe 0%, #f9fafb 100%);
}

[data-theme="dark"] .pricing-pill {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(51, 65, 85, 0.95);
    color: #cbd5e1;
}

.pricing-container {
    position: relative;
    z-index: 1;
}

.pricing-kicker {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.pricing-lead {
    line-height: 1.65;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Reusable lead tone for section intros (placed after pricing-lead to override its color when combined) */
.section-lead {
    color: var(--text-secondary);
    /* gray-700 */
    line-height: 1.6;
    letter-spacing: -0.005em;
}

/* Enhanced card styling with subtle professional touches */
.pricing-card {
    --badge-offset: 2rem;
    /* faux space equal to pill height + mb-3 (~32px) */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow:
        0 1px 3px rgba(17, 24, 39, 0.04),
        0 1px 2px rgba(17, 24, 39, 0.06);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(17, 24, 39, 0.08),
        0 2px 4px rgba(17, 24, 39, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .pricing-card {
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.85),
        0 22px 60px -40px rgba(15, 23, 42, 0.95);
    border-color: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] .pricing-card--primary {
    border-color: rgba(129, 140, 248, 0.45);
}

/* Ensure equal header row height and symmetrical alignment */
.pricing-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.75rem;
    /* 28px, aligns with text-xl default line-height */
    margin-bottom: 0.5rem;
    /* mb-2 */
}

.pricing-header .plan-title {
    line-height: 1.2;
    /* tighten for premium typography */
    letter-spacing: -0.01em;
}

.pricing-card--primary {
    border-color: rgba(79, 70, 229, 0.15);
    position: relative;
}

.pricing-card--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    /* align with card inner padding (p-8) */
    right: 2rem;
    height: 2px;
    /* thinner, crisper premium rail */
    /* End-fading accent rail for a graceful termination */
    background: linear-gradient(90deg,
            rgba(99, 102, 241, 0) 0%,
            rgba(99, 102, 241, 0.25) 16%,
            rgba(79, 70, 229, 0.50) 50%,
            rgba(99, 102, 241, 0.25) 84%,
            rgba(99, 102, 241, 0) 100%);
    opacity: 0.9;
    /* start calm */
    /* Extra edge refinement: taper ends via mask for consistent cap shape */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    border-radius: 2px;
    transition: opacity 180ms ease;
    /* ultra subtle shimmer on hover */
}

.pricing-card--primary::after {
    content: '';
    position: absolute;
    top: 2px;
    /* sits just beneath the accent rail */
    left: 2rem;
    /* align with accent rail inset */
    right: 2rem;
    height: 1px;
    /* Subtle inner highlight to create a machined-metal feel */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 12%,
            rgba(255, 255, 255, 0.70) 50%,
            rgba(255, 255, 255, 0.45) 88%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0.4;
    transition: opacity 180ms ease;
}

.pricing-card--primary:hover {
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow:
        0 4px 12px rgba(79, 70, 229, 0.12),
        0 2px 4px rgba(79, 70, 229, 0.08);
}

/* Feather-light rail shimmer on hover */
.pricing-card--primary:hover::before {
    opacity: 1;
}

.pricing-card--primary:hover::after {
    opacity: 0.5;
}

/* pricing-pill: use a neutral, snobby-VC approved variant (deduped) */
/* See consolidated rules further below around ".pricing-pill" */

/* Subtle divider enhancement */
.pricing-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.12) 20%, rgba(15, 23, 42, 0.12) 80%, transparent 100%);
    margin: 1.25rem 0;
    /* tighter rhythm */
}


#pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    /* ultra-faint neutral texture, finance-appropriate */
    background:
        radial-gradient(circle at 18% 28%, rgba(15, 23, 42, 0.02) 0%, transparent 45%),
        radial-gradient(circle at 82% 72%, rgba(15, 23, 42, 0.018) 0%, transparent 50%);
    pointer-events: none;
}


/* Pricing card variants */
.pricing-card--premium {
    background: var(--bg-card);
    /* premium outline instead of heavy gradient */
    border: 1px solid rgba(79, 70, 229, 0.14);
    /* indigo tint */
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.06),
        inset 0 0 0 1px rgba(79, 70, 229, 0.08);
    /* No faux spacer needed; invisible pill provides exact height */
    --badge-offset: 0;
}

.pricing-card--premium:hover {
    border-color: rgba(79, 70, 229, 0.22);
    box-shadow:
        0 10px 24px -18px rgba(17, 24, 39, 0.28),
        inset 0 0 0 1px rgba(79, 70, 229, 0.14);
}

/* Typography scale inside pricing cards */
.plan-title {
    font-size: 1rem;
    /* tighter, report-like */
    font-weight: 600;
    /* premium, not shouty */
    color: var(--text-main);
    /* gray-900 */
    margin-bottom: 0.375rem;
    /* tighter rhythm */
    margin-top: 0.75rem;
    letter-spacing: -0.005em;
    /* gentle refinement */
}

/* Removed pseudo-spacer: we now align via (visible/invisible) pill elements */

/* Responsive refinement: slightly tighter faux spacing on mobile */
@media (max-width: 768px) {
    /* no special offsets needed; invisible pill ensures parity */
}

.plan-price {
    font-size: 2.25rem;
    /* calmer than poster scale */
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.375rem;
    /* tighter */
    letter-spacing: -0.01em;
    /* less aggressive */
    font-variant-numeric: tabular-nums;
    /* align currency numerals */
}

/* On the premium (Enterprise) card, render 'Custom' with slightly less weight */
.pricing-card--premium .plan-price {
    font-weight: 700;
}

.currency-symbol {
    font-size: 1.375rem;
    /* reduce symbol prominence */
    font-weight: 600;
    vertical-align: top;
    margin-right: 0.125rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.pricing-suffix {
    font-size: 1rem;
    /* calmer suffix */
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.plan-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    /* reduce gap */
    line-height: 1.6;
    font-weight: 400;
}

/* Subtle divider enhancement */
.pricing-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.12) 20%, rgba(15, 23, 42, 0.12) 80%, transparent 100%);
    margin: 1.25rem 0;
}

/* Enhanced feature list styling */
.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    /* 14px mobile for consistency */
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pricing-features li {
        font-size: 0.9375rem;
        /* 15px on md+ */
        line-height: 1.6;
    }
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--text-muted);
    /* neutral by default */
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.75rem;
    /* ensure consistent icon gap */
}

.pricing-card--primary .pricing-features svg {
    color: #4f46e5;
}

[data-theme="dark"] .pricing-card--primary .pricing-features svg {
    color: #818cf8;
}

.pricing-card>a:last-of-type {
    margin-top: auto;
    /* push CTA to bottom regardless of content height */
}

/* Slightly calmer CTA text inside pricing cards only */
.pricing-card .cta-button {
    font-size: 0.9375rem;
}

/* Icon tint rhythm inside pricing lists */
.pricing-card svg {
    /* Keep icon colors defined by .pricing-features /.pricing-card--primary rules;
       only retain a gentle transition so any future tweaks stay smooth. */
    transition: color 0.18s ease;
}

/* Small neutral badges (pills) */
.pricing-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    background: var(--bg-body);
    /* slate-50 */
    color: var(--text-secondary);
    /* slightly deeper for contrast */
    border: 1px solid var(--border-color);
    /* subtly higher contrast */
    font-size: 0.75rem;
    /* 12px */
    line-height: 1.1;
    white-space: nowrap;
}

.pricing-card .pricing-pill {
    align-self: flex-start;
    /* prevent flex stretch across card */
}

/* Assurance row spacing */
.pricing-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.pricing-assurance .pricing-pill {
    margin: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.pricing-assurance .pricing-pill:hover {
    transform: translateY(-1px);
    background-color: var(--bg-card);
    border-color: rgba(15, 23, 42, 0.14);
    color: var(--text-secondary);
}

[data-theme="dark"] .pricing-assurance .pricing-pill:hover {
    background-color: rgba(15, 23, 42, 0.98);
    border-color: rgba(148, 163, 184, 0.75);
    color: var(--text-secondary);
}

[data-theme="dark"] #pricing-faq h4 {
    color: var(--text-secondary);
}

[data-theme="dark"] #pricing-faq p {
    color: var(--text-muted);
}