/* ── Glaciel — Pricing Page Styles ── */

/* Background layers (same as case-study) */
.bg-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 60% at 20% 10%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 80% 20%, rgba(74, 127, 168, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 50% at 50% 5%, rgba(126, 179, 216, 0.04) 0%, transparent 50%);
    animation: auroraPulse 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes auroraPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#stars-canvas,
#snowfall-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Hero ── */
.pricing-hero {
    position: relative;
    z-index: 2;
    padding: 160px 0 60px;
    text-align: center;
}

.pricing-hero .section-label {
    margin-bottom: 24px;
}

.pricing-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.pricing-hero-subtitle {
    font-size: 17px;
    color: var(--mist);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ── Shared section styles (from home.css) ── */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-label svg {
    width: 16px;
    height: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--mist);
}

/* ── Pricing Plans ── */
.pricing-plans {
    position: relative;
    z-index: 2;
    padding-top: 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    font-size: 14px;
    color: var(--frost);
    transition: color 0.3s ease;
}

.pricing-toggle span.active {
    color: var(--white);
}

.toggle {
    width: 56px;
    height: 28px;
    background: var(--glacier);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle.annual::after {
    transform: translateX(28px);
}

.toggle.annual {
    background: var(--ice);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 211, 238, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-left: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pricing-card {
    padding: 32px 24px;
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(184, 220, 232, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-4px);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, rgba(10, 22, 40, 0.8) 100%);
    border-color: rgba(34, 211, 238, 0.3);
    position: relative;
}

.pricing-card.popular::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tier {
    font-size: 11px;
    font-weight: 600;
    color: var(--frost);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.card-storage {
    font-size: 14px;
    color: var(--mist);
    margin-bottom: 24px;
}

.card-price {
    margin-bottom: 8px;
}

.price-value {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 600;
    color: var(--white);
}

.price-currency {
    font-size: 20px;
    color: var(--mist);
}

.price-period {
    font-size: 14px;
    color: var(--frost);
}

.card-setup {
    font-size: 12px;
    color: var(--frost);
    margin-bottom: 24px;
    min-height: 18px;
}

.card-setup .free {
    color: var(--accent);
}

.card-extraction {
    font-size: 12px;
    color: var(--frost);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-extraction svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.card-engagement {
    font-size: 11px;
    color: var(--frost);
    opacity: 0.7;
    margin-bottom: 20px;
}

.card-cta {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(184, 220, 232, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.card-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.pricing-card.popular .card-cta {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--deep);
}

.pricing-card.popular .card-cta:hover {
    background: var(--accent-light);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--frost);
}

.pricing-note svg {
    width: 16px;
    height: 16px;
    display: inline;
    vertical-align: middle;
    margin-right: 6px;
    color: var(--accent);
}

.pricing-fine-print {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--frost);
    opacity: 0.8;
}

.pricing-fine-print span {
    color: var(--accent);
    font-weight: 600;
}

/* ── Comparison Table ── */
.comparison {
    position: relative;
    z-index: 2;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 48px;
    border-radius: 16px;
    border: 1px solid rgba(184, 220, 232, 0.1);
    background: rgba(10, 22, 40, 0.4);
    backdrop-filter: blur(20px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.comparison-table th {
    padding: 24px 20px;
    text-align: center;
    background: rgba(10, 22, 40, 0.9);
    border-bottom: 1px solid rgba(184, 220, 232, 0.1);
    vertical-align: bottom;
}

.comparison-table th.feature-col {
    text-align: left;
    width: 220px;
    min-width: 180px;
}

.th-tier {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--frost);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-family: 'DM Sans', sans-serif;
}

.th-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.th-popular {
    position: relative;
}

.th-popular .th-name {
    color: var(--accent);
}

.th-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 12px;
    background: var(--accent);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: var(--deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'DM Sans', sans-serif;
}

.comparison-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--mist);
    text-align: center;
    border-bottom: 1px solid rgba(184, 220, 232, 0.05);
}

.comparison-table td.feature-col {
    text-align: left;
    color: var(--snow);
    font-weight: 500;
}

.comparison-table tbody tr:hover td {
    background: rgba(34, 211, 238, 0.03);
}

.category-row td {
    padding: 18px 20px 12px !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--accent) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left !important;
    border-bottom: 1px solid rgba(34, 211, 238, 0.15) !important;
    background: rgba(34, 211, 238, 0.03);
}

.category-row td i,
.category-row td svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.minus-icon {
    width: 18px;
    height: 18px;
    color: var(--frost);
    opacity: 0.4;
}

.price-cell {
    font-weight: 600;
    color: var(--white) !important;
}

.price-cell.accent {
    color: var(--accent) !important;
}

.badge-soon-inline {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(74, 127, 168, 0.15);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    color: var(--frost);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ── eIDAS Section ── */
.eidas-section {
    position: relative;
    z-index: 2;
}

.eidas-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: 16px;
}

.eidas-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 12px;
    color: var(--accent);
}

.eidas-icon svg {
    width: 24px;
    height: 24px;
}

.eidas-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.eidas-content p {
    font-size: 0.9rem;
    color: var(--mist);
    line-height: 1.7;
    margin-bottom: 8px;
}

.eidas-content strong {
    color: var(--accent);
}

.eidas-provider {
    font-size: 0.82rem !important;
    color: var(--frost) !important;
    font-style: italic;
}

.eidas-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.eidas-link:hover {
    color: var(--accent-light);
}

/* ── Pricing FAQ ── */
.pricing-faq {
    position: relative;
    z-index: 2;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.faq-item {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(184, 220, 232, 0.1);
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(34, 211, 238, 0.2);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    color: var(--frost);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 16px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--mist);
    line-height: 1.7;
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 17px;
    color: var(--mist);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Scroll Reveal ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-hero-title {
        font-size: 38px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .pricing-hero {
        padding: 140px 0 40px;
    }

    .pricing-hero-title {
        font-size: 32px;
    }

    .pricing-hero-subtitle {
        font-size: 15px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .comparison-table-wrapper {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .eidas-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .pricing-hero-title {
        font-size: 28px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}
