/* ==========================================================================
   Pricing page - plan cards, billing toggle and the explained comparison table.
   Namespaced (pc-) so it never fights the legacy .plan-card rules.
   ========================================================================== */

.pc-section { padding: 2.5rem 0 4rem; background: var(--bg, #f8faff); }

/* ---- Who pays for what ---- */
.pc-who {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto 2.5rem;
}
.pc-who-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e9f5);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
}
.pc-who-card--free { border-color: rgba(16, 185, 129, .4); background: rgba(16, 185, 129, .05); }
.pc-who-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    margin-bottom: .6rem;
    background: var(--accent-soft, rgba(79, 70, 229, .08));
    color: var(--accent, #4f46e5);
}
.pc-who-card--free .pc-who-tag { background: rgba(16, 185, 129, .15); color: #059669; }
.pc-who-card h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .4rem; color: var(--text, #0f1628); }
.pc-who-card p { margin: 0; font-size: .9rem; line-height: 1.75; color: var(--text-muted, #6b7498); }

/* ---- Billing toggle ---- */
.pc-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
}
.pc-toggle-label { font-weight: 700; color: var(--text-muted, #6b7498); display: inline-flex; align-items: center; gap: .5rem; }
.pc-toggle-label--on { color: var(--text, #0f1628); }
.pc-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--border-2, #d0d7ee);
    cursor: pointer;
    transition: background-color .2s ease;
}
.pc-toggle--on { background: var(--accent, #4f46e5); }
.pc-toggle-thumb {
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.pc-toggle--on .pc-toggle-thumb { transform: translateX(24px); }
[dir="rtl"] .pc-toggle--on .pc-toggle-thumb { transform: translateX(-24px); }
.pc-save {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .14);
    color: #059669;
    font-size: .74rem;
    font-weight: 800;
}

/* ---- Cards ---- */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(var(--pc-cols, 3), minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 4rem;
    align-items: stretch;
}
.pc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e9f5);
    border-radius: 22px;
    padding: 2rem 1.75rem 1.6rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 22, 40, .06));
    transition: transform .22s ease, box-shadow .22s ease;
}
.pc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 22, 40, .12)); }
.pc-card--featured {
    border: 2px solid var(--accent, #4f46e5);
    box-shadow: 0 18px 50px rgba(79, 70, 229, .18);
}
.pc-ribbon {
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 999px;
    background: var(--accent, #4f46e5);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
[dir="rtl"] .pc-ribbon { transform: translateX(50%); }

.pc-head { text-align: center; margin-bottom: 1.25rem; }
.pc-name { font-size: 1.35rem; font-weight: 800; margin: 0 0 .35rem; color: var(--text, #0f1628); }
.pc-desc { margin: 0; font-size: .9rem; line-height: 1.65; color: var(--text-muted, #6b7498); min-height: 3em; }

.pc-price { text-align: center; padding: 1rem 0 1.1rem; border-block: 1px dashed var(--border, #e5e9f5); margin-bottom: 1.25rem; }
.pc-offer-row { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .25rem; }
.pc-old { color: var(--text-muted, #6b7498); font-size: 1.05rem; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #ef4444; }
.pc-off {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #dc2626;
    font-size: .76rem;
    font-weight: 800;
}
.pc-now { display: flex; align-items: baseline; justify-content: center; gap: .35rem; direction: ltr; }
[dir="rtl"] .pc-now { direction: rtl; }
.pc-now--struck .pc-amount, .pc-now--struck .pc-cur { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: #ef4444; opacity: .6; }
.pc-amount { font-size: 2.9rem; font-weight: 800; line-height: 1; color: var(--text, #0f1628); letter-spacing: -.02em; }
.pc-cur { font-size: 1rem; font-weight: 700; color: var(--text-2, #374161); }
.pc-per { font-size: .9rem; color: var(--text-muted, #6b7498); }
.pc-sub { margin-top: .4rem; font-size: .82rem; color: #059669; font-weight: 700; }

.pc-cta {
    display: block;
    text-align: center;
    padding: .85rem 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: .95rem;
    border: 1.5px solid var(--accent, #4f46e5);
    color: var(--accent, #4f46e5);
    background: transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pc-cta:hover { background: var(--accent-soft, rgba(79, 70, 229, .08)); }
.pc-cta--primary { background: var(--accent, #4f46e5); color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .3); }
.pc-cta--primary:hover { background: var(--accent-dark, #3730a3); color: #fff; }
.pc-note { text-align: center; font-size: .78rem; color: var(--text-muted, #6b7498); margin-top: .55rem; }

.pc-list { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: .7rem; flex: 1; }
.pc-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: var(--text-2, #374161); line-height: 1.5; }
.pc-list svg { flex-shrink: 0; margin-top: 3px; color: var(--success, #10b981); }
.pc-more { text-align: center; font-size: .85rem; font-weight: 700; color: var(--accent, #4f46e5); }

/* ---- Comparison ---- */
.pc-compare { max-width: 1100px; margin: 0 auto 4rem; scroll-margin-top: calc(var(--navbar-h, 72px) + 16px); }
.pc-compare h2 { text-align: center; font-size: 1.7rem; font-weight: 800; margin: 0 0 .4rem; color: var(--text, #0f1628); }
.pc-compare-sub { text-align: center; color: var(--text-muted, #6b7498); margin: 0 0 1.75rem; }
.pc-table-wrap {
    overflow-x: auto;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e9f5);
    border-radius: 18px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 22, 40, .06));
}
.pc-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.pc-table thead th {
    position: sticky;
    top: 0;
    padding: 1rem .75rem;
    background: var(--bg-2, #f0f4ff);
    font-weight: 800;
    text-align: center;
    color: var(--text, #0f1628);
    border-bottom: 1px solid var(--border, #e5e9f5);
}
.pc-table thead th.pc-th-feature { text-align: start; padding-inline-start: 1.25rem; width: 46%; }
.pc-table thead th.pc-th-featured { background: var(--accent-soft, rgba(79, 70, 229, .08)); color: var(--accent, #4f46e5); }
.pc-group td {
    padding: .8rem 1.25rem;
    background: var(--bg, #f8faff);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .02em;
    color: var(--accent, #4f46e5);
    border-block: 1px solid var(--border, #e5e9f5);
}
.pc-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border, #e5e9f5); vertical-align: middle; }
.pc-table tbody tr:last-child td { border-bottom: none; }
.pc-feature { padding-inline-start: 1.25rem; }
.pc-feature-title { font-weight: 700; color: var(--text, #0f1628); }
.pc-feature-desc { margin-top: 2px; font-size: .82rem; line-height: 1.55; color: var(--text-muted, #6b7498); }
.pc-cell { text-align: center; white-space: nowrap; }
.pc-val { font-weight: 800; color: var(--text, #0f1628); }
.pc-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(16, 185, 129, .14); color: #059669; }
.pc-dash { color: var(--border-2, #d0d7ee); font-weight: 700; }
.pc-soon { display: inline-block; margin-inline-start: .4rem; padding: 1px 8px; border-radius: 999px; background: rgba(245, 158, 11, .15); color: #b45309; font-size: .7rem; font-weight: 800; }

/* four plans: 4 columns wide, 2 on tablets, 1 on phones */
.pc-grid[style*="--pc-cols: 4"] { max-width: 1240px; gap: 1.15rem; }
.pc-grid[style*="--pc-cols: 4"] .pc-card { padding: 1.8rem 1.4rem 1.4rem; }
.pc-ribbon--lawyer { background: linear-gradient(135deg, #0ea5e9, #2563eb) !important; color: #fff !important; font-weight: 800; }
.pc-ribbon--all { background: linear-gradient(135deg, #111827, #374151) !important; color: #fcd34d !important; font-weight: 800; }
@media (max-width: 1180px) {
    .pc-grid[style*="--pc-cols: 4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
}
@media (max-width: 980px) {
    .pc-grid { grid-template-columns: 1fr; max-width: 460px; }
    .pc-grid[style*="--pc-cols: 4"] { grid-template-columns: 1fr; max-width: 460px; }
    .pc-who { grid-template-columns: 1fr; }
    .pc-desc { min-height: 0; }
}

/* ===== launch offer ===== */
.pc-offer { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; max-width: 980px; margin: 0 auto 2.25rem; padding: 1.6rem 1.75rem; border-radius: 22px; color: #fff; overflow: hidden;
  background: radial-gradient(420px 200px at 100% 0, rgba(212,175,55,.35), transparent 70%), linear-gradient(135deg, #1e1b4b, #312e81 60%, #4338ca);
  box-shadow: 0 24px 50px -22px rgba(67,56,202,.7); border: 1px solid rgba(212,175,55,.55); }
.pc-offer-badge { position: absolute; top: 0; inset-inline-start: 1.5rem; padding: .3rem .9rem; border-radius: 0 0 12px 12px; background: #d4af37; color: #1a1400; font-weight: 800; font-size: .78rem; }
.pc-offer-main { padding-top: .8rem; }
.pc-offer-main h3 { margin: 0 0 .4rem; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.5; }
.pc-offer-price { color: #f5d06f; font-size: 2.2rem; }
.pc-offer-main p { margin: 0 0 .7rem; opacity: .92; }
.pc-offer-main p b { color: #f5d06f; }
.pc-offer-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .9rem; opacity: .95; }
.pc-offer-list li::before { content: "✓"; margin-inline-end: .5rem; color: #f5d06f; font-weight: 800; }
.pc-offer-side { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
.pc-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; direction: ltr; }
.pc-countdown div { display: flex; flex-direction: column; align-items: center; padding: .65rem .2rem; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.pc-countdown b { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pc-countdown small { font-size: .7rem; opacity: .8; }
.pc-offer-cta { display: block; text-align: center; padding: .85rem 1rem; border-radius: 14px; background: #d4af37; color: #1a1400; font-weight: 800; text-decoration: none; transition: transform .15s; }
.pc-offer-cta:hover { transform: translateY(-2px); color: #1a1400; }
.pc-offer.is-over { opacity: .55; pointer-events: none; }
.pc-ribbon--offer { background: linear-gradient(135deg, #d4af37, #f5d06f) !important; color: #1a1400 !important; font-weight: 800; }
.pc-offer-inline { margin: .6rem 0; padding: .5rem .75rem; border-radius: 12px; text-align: center; background: rgba(212,175,55,.14); border: 1px dashed #d4af37; font-size: .9rem; }
.pc-offer-inline b { font-size: 1.15rem; color: #b8860b; }
#cdInline { font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; font-weight: 700; }
.pc-cta--offer { background: #d4af37 !important; color: #1a1400 !important; box-shadow: 0 8px 22px rgba(212,175,55,.4); }
@media (max-width: 760px) { .pc-offer { grid-template-columns: 1fr; padding: 1.6rem 1.1rem 1.2rem; } .pc-offer-main h3 { font-size: 1.2rem; } .pc-offer-price { font-size: 1.8rem; } }
