/* Pricing page — sider.ai-style 3-card layout. Loads after navbar.css. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons reused from home.css philosophy. */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
    font-family: inherit; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45); }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ── Hero ── */
.pricing-hero {
    padding: 70px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
}
.pricing-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 14px;
}
.pricing-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 24px;
}
.pricing-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-100);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* ── Cards grid ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 50px 0 60px;
}
@media (max-width: 920px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

.plan-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.10);
}
.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -15px rgba(124, 58, 237, 0.25);
    transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-card .ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.plan-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 2.6em;
    margin-bottom: 18px;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.plan-price .amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}
.plan-price .period {
    font-size: 0.92rem;
    color: var(--text-muted);
}
.plan-price-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 22px;
    min-height: 1.4em;
}

.plan-cta {
    margin-bottom: 24px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px dashed var(--border-soft);
    padding-top: 22px;
    flex-grow: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
}
.plan-features .check {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-dark);
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.plan-features .check svg { width: 11px; height: 11px; }
.plan-features li.is-perk { color: var(--text-muted); }
.plan-features li strong { color: var(--text); font-weight: 600; }

/* ── Compare table ── */
.compare-section {
    padding: 40px 0 70px;
    border-top: 1px solid var(--border-soft);
}
.compare-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}
/* Horizontal-scroll wrapper so the table never breaks layout on narrow screens. */
.compare-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
}
.compare-scroll::-webkit-scrollbar { height: 8px; }
.compare-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 8px;
}
.compare-table {
    width: 100%;
    min-width: 560px;          /* keeps cells readable when scrolled */
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}
.compare-table th, .compare-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
    background: var(--bg-muted);
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table th.feature, .compare-table td.feature {
    color: var(--text-muted);
    font-weight: 500;
}
.compare-table td.value {
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.compare-table th.col-plan {
    text-align: center;
    color: var(--primary-dark);
}

/* ── FAQ ── */
.faq-section {
    padding: 50px 0 90px;
    background: var(--bg-muted);
}
.faq-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    margin-top: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

/* ── Bottom CTA ── */
.cta-bottom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.cta-bottom h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}
.cta-bottom p {
    font-size: 1.05rem;
    opacity: 0.92;
    margin-bottom: 22px;
}
.cta-bottom .btn {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.cta-bottom .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22); }

/* ── Small-screen polish ── */
@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .pricing-hero { padding: 50px 0 20px; }
    .pricing-hero p { font-size: 1rem; }
    .pricing-grid { gap: 18px; margin: 30px 0 40px; }
    .plan-card { padding: 26px 22px; }
    .compare-section { padding: 30px 0 50px; }
    .compare-section h2 { font-size: 1.35rem; margin-bottom: 20px; }
    .faq-section { padding: 40px 0 60px; }
    .faq-section h2 { font-size: 1.35rem; }
    .cta-bottom h2 { font-size: 1.6rem; }
}
