/* ============================================================
   pricing.css — Pricing page specific styles
   Depends on: index.css (CSS variables, header, footer, section-cta)
============================================================ */

/* -------------------------------------------------------
   1. PRICING HERO
------------------------------------------------------- */
.pricing-hero {
    position: relative;
    padding: 180px 40px 120px;
    text-align: center;
    overflow: hidden;
    background: #fafafa;
}

.ph-dot-grid {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#b0bec5 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.45;
    mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, black 0%, transparent 75%);
    z-index: 0;
}

.ph-glow {
    position: absolute;
    top: -20%; left: 50%; transform: translateX(-50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse at center, rgba(66,133,244,0.12) 0%, transparent 65%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.ph-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.18);
    border-radius: 100px;
    padding: 7px 16px;
    margin-bottom: 24px;
}

.pricing-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #0a0a0a;
    margin-bottom: 24px;
}

.ph-h1-sub {
    display: block;
    font-size: 0.88em;
    color: #555;
    letter-spacing: -1.5px;
    margin-top: 4px;
}

.ph-accent {
    font-style: normal;
    color: var(--accent-blue);
    font-weight: 700;
}

.pricing-hero .ph-inner > p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

.ph-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
}

.ph-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    font-weight: 500;
}

.ph-trust-item svg { color: #10b981; flex-shrink: 0; }

.ph-sep {
    color: #d0d0d0;
    font-size: 18px;
    line-height: 1;
}

/* -------------------------------------------------------
   2. PLAN CARDS
------------------------------------------------------- */
.pricing-plans {
    padding: 80px 0 100px;
    background: #fff;
}

.pricing-plans-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.pp-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.pp-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #0a0a0a;
}

.pp-intro p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Card grid */
.pp-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}

/* Base card */
.pp-card {
    position: relative;
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s;
}

.pp-card:hover {
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.1);
}

/* Staggered vertical offset via nth-child */
.pp-card:nth-child(1) { /* base */ }
.pp-card:nth-child(1):hover { transform: translateY(-6px); }

.pp-card:nth-child(2) { transform: translateY(-18px); }
.pp-card:nth-child(2):hover { transform: translateY(-24px); }

.pp-card:nth-child(3) { transform: translateY(-32px); }
.pp-card:nth-child(3):hover { transform: translateY(-38px); }

.pp-card:nth-child(4) { transform: translateY(-18px); }
.pp-card:nth-child(4):hover { transform: translateY(-24px); }

/* Color accent bar (top strip) */
.pp-card-accent { height: 4px; width: 100%; }
.pp-accent-gray { background: #e0e0e0; }
.pp-accent-green { background: linear-gradient(90deg, #10b981, #34d399); }

/* Badge pill */
.pp-badge {
    position: absolute;
    top: 18px; right: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 100px;
    padding: 4px 12px;
    z-index: 2;
}

.pp-badge--green { background: #ecfdf5; color: #047857; }
.pp-badge--featured {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pp-badge--gold {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #b45309;
}

/* Card body */
.pp-card-body { padding: 28px 26px 32px; }

/* Plan label / desc */
.pp-plan-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.pp-plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    line-height: 1.4;
}

/* Price */
.pp-price-wrap {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    line-height: 1;
    margin-bottom: 6px;
}

.pp-cur {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: #111;
    padding-bottom: 9px;
}

.pp-num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -2px;
    line-height: 1;
}

.pp-per {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 9px;
    margin-left: 3px;
}

.pp-monthly-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* Feature list */
.pp-feat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 28px;
}

.pp-feat-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pp-feat-list li svg {
    width: 15px; height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #10b981;
}

/* CTA button */
.pp-btn {
    display: block;
    text-align: center;
    padding: 13px 0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.pp-btn-default {
    background: #f4f4f4;
    color: #111;
    border-color: rgba(0, 0, 0, 0.06);
}
.pp-btn-default:hover { background: #e8e8e8; }

/* ---- Featured card: Annual (dark #111) ---- */
.pp-card--featured {
    background: #111;
    border-color: transparent;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.pp-card--featured:hover {
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.38);
}

.pp-feat-glow {
    position: absolute;
    bottom: -60px; right: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.28) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pp-card--featured .pp-card-body { position: relative; z-index: 1; }

.pp-label--light { color: rgba(255, 255, 255, 0.4); }
.pp-desc--light  { color: rgba(255, 255, 255, 0.35); }
.pp-cur--light   { color: #fff; }
.pp-num--light   { color: #fff; }
.pp-per--light   { color: rgba(255, 255, 255, 0.5); }
.pp-note--light  { color: rgba(255, 255, 255, 0.35); }

.pp-feat-list--light li { color: rgba(255, 255, 255, 0.65); }
.pp-feat-list--light li svg { color: #34d399; }

.pp-btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.pp-btn-light:hover {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Navy card: 2-year ---- */
.pp-card--navy {
    background: #141428;
    border-color: rgba(251, 191, 36, 0.18);
}

.pp-label--dim  { color: rgba(255, 255, 255, 0.38); }
.pp-desc--dim   { color: rgba(255, 255, 255, 0.3); }
.pp-cur--dim    { color: rgba(255, 255, 255, 0.85); }
.pp-num--dim    { color: #fff; }
.pp-per--dim    { color: rgba(255, 255, 255, 0.4); }
.pp-note--gold  { color: #fbbf24; font-weight: 600; }

.pp-feat-list--dim li { color: rgba(255, 255, 255, 0.5); }
.pp-feat-list--dim li svg { color: #fbbf24; }

.pp-btn-gold {
    background: rgba(251, 191, 36, 0.14);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.28);
}
.pp-btn-gold:hover {
    background: rgba(251, 191, 36, 0.24);
}

/* Disclaimer */
.pp-disclaimer {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 56px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* -------------------------------------------------------
   3. SAVINGS BARS — Visual cost comparison
------------------------------------------------------- */
.pricing-savings {
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 96px 40px;
}

.ps-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ps-header { margin-bottom: 52px; }

.ps-eyebrow {
    display: block;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

.ps-header h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: #111;
}

.ps-header p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
}

.ps-chart {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ps-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    align-items: center;
}

.ps-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ps-meta strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.ps-meta span {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: ui-monospace, monospace;
}

.ps-track {
    background: #e9ecef;
    border-radius: 100px;
    height: 46px;
    overflow: hidden;
}

.ps-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 18px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ps-fill span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    font-family: var(--font-display);
}

.ps-fill--gray   { background: #9ca3af; }
.ps-fill--blue   { background: linear-gradient(90deg, #4285F4 0%, #6ba3ff 100%); }
.ps-fill--indigo { background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%); }
.ps-fill--dark   { background: linear-gradient(90deg, #1e293b 0%, #334155 100%); }

.ps-note {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.65;
}

/* -------------------------------------------------------
   4. FEATURES BAND — Dark section, 3-column grid
------------------------------------------------------- */
.pricing-features {
    background: var(--surface-dark);
    color: #fff;
    padding: 100px 40px;
}

.pf-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.pf-header {
    text-align: center;
    margin-bottom: 72px;
}

.pf-mono-label {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.pf-header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 44px);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #fff;
}

.pf-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Grid: 2-px gap border effect */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    overflow: hidden;
}

.pf-item {
    background: var(--surface-dark);
    padding: 44px 38px;
    transition: background 0.3s;
}

.pf-item:hover { background: #0f0f0f; }

.pf-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.65);
}

.pf-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pf-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.65;
}

/* -------------------------------------------------------
   5. PAYMENT RULES — Editorial left-rail layout
------------------------------------------------------- */
.pricing-payment {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 100px 40px 80px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 52px;
}

.pay-rail {
    border-right: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 6px;
}

.pay-rail-text {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.pay-body { max-width: 740px; }

.pay-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 18px;
}

.pay-body > h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 18px;
    color: #0a0a0a;
}

.pay-body > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 52px;
    max-width: 620px;
}

.pay-rules { display: flex; flex-direction: column; }

.pay-rule {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.pay-rule:first-child { border-top: 1px solid var(--border-light); }

.pay-rule-num {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-num--blue  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.pay-num--red   { background: #fff5f5; color: #c53030; border: 1px solid #fed7d7; }
.pay-num--green { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }

.pay-rule-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
    padding-top: 12px;
}

.pay-rule-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* -------------------------------------------------------
   6. FAQ ACCORDION
------------------------------------------------------- */
.pricing-faq {
    background: #f7f8f9;
    border-top: 1px solid var(--border-light);
    padding: 100px 40px;
}

.pfaq-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 88px;
    align-items: start;
}

.pfaq-left h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    color: #111;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.pfaq-left > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.pfaq-more-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    margin-bottom: 48px;
}

.pfaq-more-link:hover { text-decoration: underline; }

.pfaq-left-aside {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.7;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px 22px;
    background: #fff;
}

.pfaq-left-aside strong {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* FAQ accordion items */
.pfaq-right { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #111;
    transition: color 0.2s;
}

.faq-q:hover { color: var(--accent-blue); }

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease-smooth);
    color: var(--text-tertiary);
}

.faq-q[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.faq-a { padding-bottom: 22px; }

.faq-a p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1100px) {
    .pp-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset staggered offsets for 2-column layout */
    .pp-card:nth-child(1),
    .pp-card:nth-child(2),
    .pp-card:nth-child(3),
    .pp-card:nth-child(4) {
        transform: none;
    }

    .pp-card:nth-child(2) { transform: none; }
    .pp-card:nth-child(3) { transform: none; }
    .pp-card:nth-child(4) { transform: none; }

    .pp-card:hover,
    .pp-card:nth-child(2):hover,
    .pp-card:nth-child(3):hover,
    .pp-card:nth-child(4):hover {
        transform: translateY(-6px);
    }

    .pp-card--featured:hover { transform: translateY(-6px); }

    .pf-grid { grid-template-columns: repeat(2, 1fr); }

    .pfaq-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pfaq-left-aside { display: none; }

    .pricing-payment {
        grid-template-columns: 1fr;
        padding-top: 80px;
        row-gap: 24px;
    }

    .pay-rail {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 16px;
        padding-top: 0;
        justify-content: flex-start;
    }

    .pay-rail-text {
        writing-mode: horizontal-tb;
        transform: none;
    }
}

@media (max-width: 900px) {
    .ps-row {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-hero { padding: 140px 24px 80px; }

    .ph-trust-row { flex-direction: column; gap: 10px; align-items: center; }
    .ph-sep { display: none; }
    .ph-trust-item { padding: 0; }

    .pricing-plans { padding: 60px 0 80px; }
    .pricing-plans-inner { padding: 0 20px; }

    .pp-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pp-card:nth-child(n) { transform: none; }
    .pp-card:nth-child(n):hover { transform: translateY(-4px); }

    .pricing-savings { padding: 64px 24px; }
    .ps-row { grid-template-columns: 1fr; gap: 8px; }

    .pricing-features { padding: 72px 24px; }
    .pf-grid { grid-template-columns: 1fr; gap: 0; }

    .pricing-faq { padding: 72px 24px; }

    .pricing-payment { padding: 72px 24px 56px; gap: 24px; }
}

@media (max-width: 600px) {
    .pricing-hero h1 { font-size: 34px; letter-spacing: -1px; }
    .pp-num { font-size: 48px; }
    .pp-card-body { padding: 22px 20px 26px; }
}
