/* ===================================================================
 * ZIPTSYSTEMS PRICING PAGE — Premium SaaS Pricing UX (loaded after global/pricing.css)
 * Dark navy + refined cyan. Consistent with homepage + dashboard design system.
 * Uses pp-* prefixed classes so the homepage pricing section (pricing.css) is untouched.
 * ===================================================================
 */

/* ─── Scoped page background ─── */
body.pricing-page { background: #060d1a; }
.pp-shell { max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; }

/* ===================================================================
 * 1. PUBLIC TOP NAV (logged-out visitors)
 * ===================================================================
 */
.pp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
    padding: 0 4%;
    background: rgba(6, 13, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    position: sticky;
    top: 0;
    z-index: 900;
}
.pp-nav .pp-nav-brand { display: flex; align-items: center; }
.pp-nav .pp-nav-brand .brand-lockup { height: 34px; }
.pp-nav .pp-nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pp-nav .pp-nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.pp-nav .pp-nav-links a:hover { color: #e6f1ff; background: rgba(148, 163, 184, 0.08); }
.pp-nav .pp-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ===================================================================
 * 2. PRICING HERO (compact)
 * ===================================================================
 */
.pp-hero {
    text-align: center;
    padding: 56px 0 40px;
    position: relative;
}
.pp-hero .pp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid rgba(0, 209, 255, 0.22);
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pp-hero h1 {
    font-family: 'Sora', Inter, sans-serif;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #f8fafc;
    margin: 0 0 14px;
}
.pp-hero h1 .grad-text {
    background: linear-gradient(90deg, #00e5ff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pp-hero .pp-hero-sub {
    color: #94a3b8;
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.6;
}
.pp-hero .pp-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 26px;
}
.pp-hero .pp-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8fa2bd;
    font-size: 0.8rem;
    font-weight: 500;
}
.pp-hero .pp-hero-trust span i { color: #22c55e; font-size: 0.85rem; }

/* ===================================================================
 * 3. BILLING TOGGLE (Monthly | Yearly — yearly backend not shipped yet)
 * ===================================================================
 */
.pp-billing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 6px 0 34px;
}
.pp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0a1628;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 4px;
}
.pp-toggle button {
    border: none;
    background: transparent;
    color: #8fa2bd;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pp-toggle button.active { background: linear-gradient(135deg, #00e5ff, #00a8cc); color: #000; }
.pp-toggle button:disabled { opacity: 0.5; cursor: not-allowed; }
.pp-toggle .pp-soon {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}
.pp-billing .pp-billing-note { color: #5b6b83; font-size: 0.75rem; }

/* ===================================================================
 * 4. PRICING CARDS
 * ===================================================================
 */
.pp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 56px;
}
.pp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, rgba(15, 29, 51, 0.92), rgba(8, 18, 34, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    padding: 26px 22px 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.pp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.35), transparent);
    opacity: 0.6;
}
.pp-card:hover { transform: translateY(-3px); border-color: rgba(0, 209, 255, 0.3); }

/* Pro = visual hero plan */
.pp-card.pp-pro {
    border: 1px solid rgba(0, 209, 255, 0.35);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 209, 255, 0.1), transparent 70%),
        linear-gradient(170deg, rgba(15, 29, 51, 0.95), rgba(8, 18, 34, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 209, 255, 0.06);
}
.pp-card.pp-pro:hover { border-color: rgba(0, 229, 255, 0.6); }

/* MOST POPULAR badge */
.pp-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #00e5ff, #00a8cc);
    color: #000;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 209, 255, 0.3);
}

/* Card header: name + audience */
.pp-card-head { text-align: center; margin-bottom: 16px; }
.pp-card-name {
    font-family: 'Sora', Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
}
.pp-card-role {
    font-size: 0.72rem;
    color: #8fa2bd;
    margin-top: 4px;
    line-height: 1.4;
}
.pp-pro .pp-card-role { color: #67e8f9; }

/* Price */
.pp-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 14px 0 2px;
}
.pp-price .pp-currency { color: #8fa2bd; font-size: 1.1rem; font-weight: 600; }
.pp-price .pp-amount {
    color: #f8fafc;
    font-size: 2.7rem;
    font-weight: 800;
    font-family: 'Sora', Inter, sans-serif;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}
.pp-pro .pp-amount { color: #00e5ff; }
.pp-price .pp-duration { color: #64748b; font-size: 0.85rem; }

/* "× more than Free" progression */
.pp-mult {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #7dd3fc;
    background: rgba(0, 209, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.2);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.pp-mult.pp-free { color: #94a3b8; background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.16); }

/* Grouped features */
.pp-groups { flex: 1; display: flex; flex-direction: column; gap: 12px; margin: 8px 0 18px; }
.pp-group .ppg-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #5b6b83;
    margin-bottom: 5px;
}
.pp-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-group li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #b6c6dd;
    line-height: 1.45;
}
.pp-group li .pp-check { color: #22c55e; font-size: 0.75rem; margin-top: 2px; flex-shrink: 0; }
.pp-group li.pp-muted { color: #5b6b83; }
.pp-group li.pp-muted .pp-check { color: #475569; }

/* CTA */
.pp-cta {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 13px 16px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pp-cta:hover { transform: translateY(-1px); }
.pp-cta.pp-cta-ghost {
    background: transparent;
    color: #e6f1ff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.pp-cta.pp-cta-ghost:hover { border-color: rgba(0, 209, 255, 0.5); }
.pp-cta.pp-cta-cyan {
    background: linear-gradient(135deg, #00e5ff, #00a8cc);
    color: #000;
    box-shadow: 0 8px 24px rgba(0, 209, 255, 0.25);
}
.pp-cta.pp-cta-cyan:hover { box-shadow: 0 12px 32px rgba(0, 209, 255, 0.4); }
.pp-cta.pp-cta-cyan:disabled, .pp-cta.pp-cta-ghost:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.pp-cta-sm { padding: 10px 14px; font-size: 0.82rem; margin-top: 8px; }

/* ===================================================================
 * 5. USE-CASE — Which plan is right for you?
 * ===================================================================
 */
.pp-section { margin-bottom: 56px; }
.pp-section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.pp-section-head .sh-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00d1ff;
    margin-bottom: 10px;
}
.pp-section-head h2 {
    font-family: 'Sora', Inter, sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #f8fafc;
    margin: 0 0 10px;
}
.pp-section-head p { color: #94a3b8; font-size: 0.92rem; margin: 0; line-height: 1.6; }

.pp-usecase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.pp-usecase {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.pp-usecase:hover { border-color: rgba(0, 209, 255, 0.3); transform: translateY(-2px); }
.pp-usecase .pp-uc-icon {
    width: 38px; height: 38px;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: #000;
    background: linear-gradient(135deg, #00e5ff, #00a8cc);
    border-radius: 10px;
}
.pp-usecase h3 { font-size: 0.9rem; color: #e6f1ff; font-weight: 700; margin: 0 0 4px; }
.pp-usecase p { font-size: 0.78rem; color: #8fa2bd; margin: 0 0 10px; line-height: 1.5; }
.pp-usecase .pp-uc-plan {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00d1ff;
    display: inline-block;
    background: rgba(0, 209, 255, 0.08);
    border: 1px solid rgba(0, 209, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ===================================================================
 * 6. WHY UPGRADE?
 * ===================================================================
 */
.pp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pp-why {
    background: linear-gradient(160deg, rgba(15, 29, 51, 0.8), rgba(10, 22, 40, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    padding: 22px 18px;
}
.pp-why .pp-why-icon {
    width: 42px; height: 42px;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    color: #000;
    background: linear-gradient(135deg, #00e5ff, #00a8cc);
    border-radius: 11px;
}
.pp-why h3 { font-size: 0.95rem; color: #f8fafc; font-weight: 700; margin: 0 0 6px; font-family: 'Sora', Inter, sans-serif; }
.pp-why p { font-size: 0.8rem; color: #8fa2bd; line-height: 1.55; margin: 0; }

/* ===================================================================
 * 7. FULL COMPARISON TABLE
 * ===================================================================
 */
.pp-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.12); }
.pp-compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(10, 22, 40, 0.5);
    font-size: 0.82rem;
}
.pp-compare th, .pp-compare td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    color: #b6c6dd;
}
.pp-compare thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8fa2bd;
    font-weight: 700;
    background: rgba(0, 209, 255, 0.04);
}
.pp-compare thead th.pp-col-pro { color: #00e5ff; }
.pp-compare thead th:first-child { text-align: left; }
.pp-compare tbody td:first-child {
    text-align: left;
    color: #e6f1ff;
    font-weight: 600;
}
.pp-compare tbody tr:hover { background: rgba(0, 209, 255, 0.03); }
.pp-compare tbody tr:last-child td { border-bottom: none; }
.pp-compare .cmp-yes { color: #22c55e; font-weight: 700; }
.pp-compare .cmp-no { color: #475569; }
.pp-compare .cmp-pro { color: #00e5ff; font-weight: 700; }
.pp-compare td.pp-col-pro { background: rgba(0, 209, 255, 0.05); }

/* ===================================================================
 * 8. REFERRAL BANNER
 * ===================================================================
 */
.pp-referral {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.07), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(0, 209, 255, 0.16);
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 56px;
}
.pp-referral .pp-ref-copy { display: flex; align-items: flex-start; gap: 14px; min-width: 260px; flex: 1; }
.pp-referral .pp-ref-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: rgba(0, 209, 255, 0.12);
    border: 1px solid rgba(0, 209, 255, 0.25);
    border-radius: 11px;
}
.pp-referral h3 { font-size: 1.05rem; color: #f8fafc; font-weight: 800; font-family: 'Sora', Inter, sans-serif; margin: 0 0 4px; }
.pp-referral h3 span { color: #00d1ff; }
.pp-referral p { font-size: 0.84rem; color: #8fa2bd; margin: 0; line-height: 1.55; }
.pp-referral p strong { color: #e6f1ff; }
.pp-referral .pp-ref-cta { flex-shrink: 0; }

/* ===================================================================
 * 9. TRUST LAYER
 * ===================================================================
 */
.pp-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 56px;
}
.pp-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 22, 40, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}
.pp-trust-item i {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: rgba(0, 209, 255, 0.1);
    border: 1px solid rgba(0, 209, 255, 0.2);
    color: #00d1ff;
    font-size: 0.85rem;
}
.pp-trust-item div { font-size: 0.82rem; color: #b6c6dd; font-weight: 500; line-height: 1.4; }

/* ===================================================================
 * 10. FAQ
 * ===================================================================
 */
.pp-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pp-faq-item {
    background: rgba(10, 22, 40, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.pp-faq-item.open { border-color: rgba(0, 209, 255, 0.25); }
.pp-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #e6f1ff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
}
.pp-faq-q:hover { color: #fff; }
.pp-faq-q .pp-faq-chev { color: #00d1ff; transition: transform 0.25s ease; flex-shrink: 0; }
.pp-faq-item.open .pp-faq-chev { transform: rotate(180deg); }
.pp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
}
.pp-faq-item.open .pp-faq-a { max-height: 400px; padding: 0 18px 16px; }
.pp-faq-a p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* ===================================================================
 * 11. FINAL CTA
 * ===================================================================
 */
.pp-final {
    text-align: center;
    background:
        radial-gradient(ellipse 60% 90% at 50% 100%, rgba(0, 209, 255, 0.1), transparent 70%),
        linear-gradient(160deg, rgba(15, 29, 51, 0.9), rgba(8, 18, 34, 0.95));
    border: 1px solid rgba(0, 209, 255, 0.16);
    border-radius: 24px;
    padding: 56px 28px;
    position: relative;
    overflow: hidden;
}
.pp-final::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
}
.pp-final h2 {
    font-family: 'Sora', Inter, sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #f8fafc;
    margin: 0 0 12px;
}
.pp-final h2 .grad-text {
    background: linear-gradient(90deg, #00e5ff, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pp-final p { color: #94a3b8; font-size: 0.96rem; max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }
.pp-final .pp-final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pp-final .pp-final-note { color: #5b6b83; font-size: 0.76rem; margin-top: 16px; }

/* Custom plan box */
.pp-custom {
    text-align: center;
    margin-top: 40px;
    padding: 28px 24px;
    background: rgba(10, 22, 40, 0.45);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 16px;
}
.pp-custom h3 { color: #f8fafc; font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; font-family: 'Sora', Inter, sans-serif; }
.pp-custom p { color: #94a3b8; font-size: 0.85rem; margin: 0 0 14px; }
.pp-custom a { color: #00d1ff; font-weight: 700; text-decoration: none; }
.pp-custom a:hover { text-decoration: underline; }

/* ===================================================================
 * RESPONSIVE
 * ===================================================================
 */
@media (max-width: 1080px) {
    .pp-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pp-usecase-grid, .pp-why-grid, .pp-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pp-shell { padding: 0 16px 48px; }
    .pp-nav { height: 60px; padding: 0 5%; }
    .pp-nav .pp-nav-links { display: none; }
    .pp-hero { padding: 40px 0 28px; }
    .pp-grid { grid-template-columns: 1fr; gap: 20px; }
    /* Pro stays visually dominant — slightly larger card */
    .pp-card.pp-pro { border-width: 1.5px; }
    .pp-usecase-grid, .pp-why-grid, .pp-trust { grid-template-columns: 1fr; }
    .pp-amount { font-size: 2.2rem; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .pp-card, .pp-usecase, .pp-cta { transition: none; }
    .pp-faq-a { transition: none; }
}
