/* ═══════════════════════════════════════════════════════════════════


   Dark mode: ALL handled via .dark .classname — NO dark: Tailwind prefixes.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page layout ──────────────────────────────────────────────────── */
.pricing-page {
    min-height: 100vh;
    padding-top: 5rem; /* below fixed header */
}

.dark .pricing-page {
    background-color: #020617; /* slate-950 */
}

/* ── Page hero / intro ────────────────────────────────────────────── */
.pricing-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f, #0f172a);
    padding: 4rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.pricing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.pricing-hero-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.pricing-hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(148, 163, 184, 1); /* slate-400 */
    max-width: 36rem;
    margin: 0 auto;
}

/* ── Grid ─────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 80rem;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .pricing-grid {
        padding: 0 2.5rem;
    }
}

/* ── Card ─────────────────────────────────────────────────────────── */
.price-card {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.dark .price-card {
    background: #1e293b; /* slate-800 */
    border-color: #334155; /* slate-700 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark .price-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* ── Highlighted card ─────────────────────────────────────────────── */
.price-card--highlighted {
    border-color: #3b82f6;
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.2);
}

.price-card--highlighted:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
}

.dark .price-card--highlighted {
    border-color: #60a5fa;
    box-shadow: 0 4px 24px rgba(96, 165, 250, 0.15);
}

/* ── Card header ──────────────────────────────────────────────────── */
.price-card-header {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.dark .price-card-header {
    border-bottom-color: #334155;
}

.price-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.875rem;
}

.dark .price-card-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.price-card-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.dark .price-card-title {
    color: #f1f5f9;
}

.price-card-notice {
    font-size: 0.8125rem;
    color: #64748b;
}

.dark .price-card-notice {
    color: #94a3b8;
}

.price-card-valid {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.3rem 0.625rem;
}

.dark .price-card-valid {
    color: #94a3b8;
    background: #0f172a;
    border-color: #334155;
}

/* ── Card body — price item list ──────────────────────────────────── */
.price-card-body {
    padding: 1.25rem 1.75rem;
    flex: 1;
}

.price-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Text-only row (no price on the right) */
.price-item--text {
    font-size: 0.8125rem;
    color: #64748b;
    padding-bottom: 0.25rem;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 0.125rem;
}

.dark .price-item--text {
    color: #94a3b8;
    border-bottom-color: #334155;
}

/* Label + value row */
.price-item--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.price-item-label {
    color: #334155;
    flex: 1;
}

.dark .price-item-label {
    color: #cbd5e1;
}

.price-item-value {
    font-family: var(--font-display-regular), sans-serif;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.dark .price-item-value {
    color: #f1f5f9;
}

/* Bold row (totals, highlights) */
.price-item--bold .price-item-label,
.price-item--bold .price-item-value {
    font-weight: 700;
    color: #1e3a5f;
}

.dark .price-item--bold .price-item-label,
.dark .price-item--bold .price-item-value {
    color: #93c5fd;
}

.price-item--bold {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.625rem;
    margin-top: 0.25rem;
}

.dark .price-item--bold {
    border-top-color: #334155;
}

/* ── Card footer ──────────────────────────────────────────────────── */
.price-card-footer {
    padding: 1rem 1.75rem 1.75rem;
}

.price-card-footnote {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
    white-space: pre-line; /* respects \n from DB */
    margin-bottom: 1.25rem;
}

.dark .price-card-footnote {
    color: #64748b;
}

/* ── CTA button ───────────────────────────────────────────────────── */
.price-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.price-card-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.price-card--highlighted .price-card-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.price-card--highlighted .price-card-btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* ── Highlighted ribbon ───────────────────────────────────────────── */
.price-ribbon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 1rem;
    text-align: center;
}

/* ── Divider between sections ─────────────────────────────────────── */
.pricing-section-label {
    max-width: 80rem;
    text-transform: uppercase;
}

/* ── Bottom CTA section ───────────────────────────────────────────── */
.pricing-cta-section {
    background: #0f172a;
    padding: 4rem 1.5rem;
    text-align: center;
}

.pricing-cta-title {
    font-family: var(--font-display-regular), sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pricing-cta-sub {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.pricing-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.pricing-cta-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: white;
}
