/* Sepal Yar — Pricing page */

.pricing-page {
    --pricing-navy: #070f24;
    --pricing-navy-soft: #0f1c3d;
    --pricing-glow: rgba(59, 182, 93, 0.45);
}

.pricing-page .page-container {
    padding-bottom: 56px;
}

.pricing-page .header {
    margin-bottom: 24px;
}

.navigation a.nav-active {
    color: var(--primary-dark);
    position: relative;
}

.navigation a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Ambient background */
.pricing-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Hero */
.pricing-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 28px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(145deg, var(--pricing-navy) 0%, var(--pricing-navy-soft) 55%, #152a52 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.pricing-hero-inner {
    position: relative;
    z-index: 2;
    padding: 48px var(--inset) 40px;
    text-align: center;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(59, 182, 93, 0.15);
    border: 1px solid rgba(59, 182, 93, 0.35);
    color: #9ae8b0;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-badge .live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--pricing-glow);
}

.pricing-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
    color: #fff;
}

.pricing-hero-title .title-line {
    display: block;
}

.pricing-hero-title .title-gradient {
    display: block;
    background: linear-gradient(90deg, #7ee8a0, var(--primary), #a8d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pricing-hero-desc {
    max-width: 560px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.85;
}

.pricing-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pricing-stat-card {
    min-width: 120px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.pricing-stat-num {
    display: block;
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.pricing-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

/* Toolbar */
.pricing-toolbar {
    position: sticky;
    top: 88px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px var(--inset);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pricing-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.pricing-search-wrap i {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.pricing-search {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
}

.pricing-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.cat-pill.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Category blocks */
.pricing-catalog {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pricing-category-block {
    scroll-margin-top: 140px;
}

.category-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px var(--inset);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.category-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.category-head.grad-green .category-icon-wrap {
    background: linear-gradient(135deg, #3bb65d, #2d9a4d);
    box-shadow: 0 8px 20px rgba(59, 182, 93, 0.35);
}

.category-head.grad-blue .category-icon-wrap {
    background: linear-gradient(135deg, #4f6bb5, #3d5699);
    box-shadow: 0 8px 20px rgba(79, 107, 181, 0.35);
}

.category-head.grad-purple .category-icon-wrap {
    background: linear-gradient(135deg, #7c6cf0, #6355d4);
    box-shadow: 0 8px 20px rgba(124, 108, 240, 0.35);
}

.category-head.grad-amber .category-icon-wrap {
    background: linear-gradient(135deg, #e8a838, #d49220);
    box-shadow: 0 8px 20px rgba(232, 168, 56, 0.35);
}

.category-head.grad-teal .category-icon-wrap {
    background: linear-gradient(135deg, #2db5a8, #1f9a8e);
    box-shadow: 0 8px 20px rgba(45, 181, 168, 0.35);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.category-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.category-count {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Price cards */
.price-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.price-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 182, 93, 0.35);
}

.price-card.is-hidden {
    display: none;
}

.price-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-code {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-page);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: left;
}

.price-speed {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.price-speed i {
    color: #e8a838;
}

.price-name {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.45;
}

.price-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

.price-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.price-amount-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.price-currency {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
}

.price-free {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-per {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-doc-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.price-doc-link:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.pricing-no-results {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-category-block.is-hidden {
    display: none;
}

/* Notes */
.pricing-notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 48px 0 32px;
}

.note-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px var(--inset);
    box-shadow: var(--shadow-xs);
}

.note-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.note-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.note-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.pricing-cta {
    padding-top: 8px;
}

.pricing-cta-card {
    position: relative;
}

.pricing-empty-state {
    text-align: center;
    padding: 64px var(--inset);
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--border-strong);
    margin-bottom: 32px;
}

.pricing-empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pricing-empty-state h2 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.pricing-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .pricing-toolbar {
        top: 72px;
    }

    .pricing-notes {
        grid-template-columns: 1fr;
    }

    .pricing-hero-inner {
        padding: 32px var(--inset);
    }
}

@media (max-width: 480px) {
    .price-cards-grid {
        grid-template-columns: 1fr;
    }

    .pricing-category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .cat-pill {
        flex-shrink: 0;
    }
}
