/* =====================================================================
   PRICING PAGE — builds on modern.css, modern-pages.css, modern-home.css
   ===================================================================== */

/* Serif display headings, like the rest of the site */
.pr-hero .pricing-header,
.pr-compare-section h2,
.pr-faq-intro h2,
.pr-final-card h2 {
    font-family: var(--font-serif) !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}
.pr-faq-intro h2 em,
.pr-final-card h2 em { font-style: italic; color: var(--brand); }
.pr-final-card h2 em { color: #ffb199; }

/* ---------- Header ---------- */
.pr-hero {
    position: relative;
    padding: 64px 0 40px;
    text-align: center;
    background:
        radial-gradient(40% 60% at 15% 0%, rgba(242, 82, 79, .12) 0%, rgba(242, 82, 79, 0) 70%),
        radial-gradient(40% 60% at 85% 10%, rgba(255, 138, 92, .14) 0%, rgba(255, 138, 92, 0) 70%),
        linear-gradient(180deg, #fffaf8 0%, #fff 100%);
}
.pr-hero-inner { max-width: 760px; margin: 0 auto; }
.pr-hero .pricing-header {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    line-height: 1.06;
    color: var(--ink);
    margin: 0 0 16px;
}
.pr-lead { font-size: 1.1rem; line-height: 1.7; color: var(--muted); margin: 0 auto 28px; max-width: 620px; }
.pr-login-hint { margin: 0 0 24px; font-size: 14.5px; color: var(--muted); }
.pr-login-hint a { font-weight: 700; }

.pr-status {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 auto 26px;
    padding: 12px 20px 12px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
.pr-status-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7e6;
    color: #d97706;
}
.pr-status strong { display: block; font-size: 15px; color: var(--ink); }
.pr-status small { display: block; font-size: 13px; color: var(--muted); }
.pr-status.is-expired .pr-status-ic { background: #fef2f2; color: #dc2626; }

.pr-toggle { margin: 0 auto !important; }

/* ---------- Plan cards ---------- */
.pr-plans-section { padding: 28px 0 24px; }
.pr-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
    align-items: stretch;
    max-width: 1120px;
    margin: 0 auto;
}
.pr-cards.pr-count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pr-cards.pr-count-2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.pr-cards.pr-count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 28px 28px !important;
    text-align: left !important;
    background: #fff;
    border: 1px solid var(--line) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pr-card:hover { transform: translateY(-4px) !important; box-shadow: var(--shadow) !important; }
.pr-card.is-popular {
    border: 0 !important;
    color: #fff;
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 138, 92, .35) 0%, rgba(255, 138, 92, 0) 60%),
        radial-gradient(70% 60% at 0% 100%, rgba(242, 82, 79, .25) 0%, rgba(242, 82, 79, 0) 60%),
        #141a2c;
    box-shadow: 0 30px 60px -24px rgba(15, 23, 42, .55) !important;
}
.pr-card.is-popular::before { display: none !important; }
.pr-card.is-current { border: 2px solid #16a34a !important; }

.pr-ribbon {
    position: absolute;
    top: -12px;
    left: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-brand);
}
.pr-ribbon-current { background: #16a34a; box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .6); }
.pr-ribbon i { font-size: 10px; margin-right: 3px; }

.pr-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pr-plan-ic {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 16px;
}
.pr-card.is-popular .pr-plan-ic { background: rgba(255, 255, 255, .12); color: #ffb199; }
.pr-card .card-title {
    margin: 0 !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
}
.pr-card.is-popular .card-title { color: #fff !important; }
.pr-card .card-description {
    margin: 0 0 22px !important;
    min-height: 4.95em;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: var(--muted) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pr-card.is-popular .card-description { color: rgba(226, 232, 240, .78) !important; }

.pr-card .cycle-option { margin: 0; }
.pr-card .plan-price { margin-top: 0; }
.pr-card .plan-price .amount { font-size: 3rem; color: var(--ink); }
.pr-card.is-popular .plan-price .amount { color: #fff; }
.pr-card .plan-price .per { font-size: 15px; color: var(--muted); }
.pr-card.is-popular .plan-price .per { color: rgba(226, 232, 240, .7); }
.pr-price-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    margin: 6px 0 20px !important;
    font-size: 13px !important;
    color: var(--muted) !important;
}
.pr-card.is-popular .pr-price-note { color: rgba(226, 232, 240, .7) !important; }
.pr-save {
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
}
.pr-card .pr-cta,
.pr-card.recommended .pr-cta {
    width: 100%;
    margin: 0 !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ink) !important;
    background: var(--ink) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.pr-card .pr-cta:hover { background: var(--ink-2) !important; transform: translateY(-1px); }
.pr-card.is-popular .pr-cta {
    border-color: transparent !important;
    background: var(--brand-gradient) !important;
    box-shadow: var(--shadow-brand) !important;
}
.pr-card.is-popular .pr-cta:hover { filter: brightness(1.05); }
.pr-card.is-current:not(.is-popular) .pr-cta { background: #16a34a !important; border-color: #16a34a !important; }
.pr-card .cycle-option + .cycle-option .btn { background: inherit; }

.pr-features { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.pr-card.is-popular .pr-features { border-top-color: rgba(255, 255, 255, .12); }
.pr-features-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.pr-card.is-popular .pr-features-title { color: rgba(226, 232, 240, .6); }
.pr-card .card-features { margin: 0 !important; padding: 0 !important; border: 0 !important; display: grid; gap: 10px; }
.pr-card .card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 !important;
    border: 0 !important;
    font-size: 14.5px !important;
    color: var(--text) !important;
    text-align: left;
}
.pr-card .card-features li strong { color: var(--ink); }
.pr-card.is-popular .card-features li,
.pr-card.is-popular .card-features li strong { color: #fff !important; }
.pr-card .card-features .fa-check-circle { margin-top: 4px; color: #16a34a !important; font-size: 14px; }
.pr-card.is-popular .card-features .fa-check-circle { color: #86efac !important; }

.pricing-trust { text-align: center; margin: 32px 0 0 !important; }
.pr-empty { max-width: 520px; margin: 0 auto; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.pr-empty i { font-size: 22px; color: var(--brand); margin-bottom: 8px; }

/* ---------- Comparison table ---------- */
.pr-compare-section { padding-top: 88px; }
.pr-compare-section .h-head p { margin-left: auto; margin-right: auto; }
.pr-table-wrap {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}
.pr-table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.pr-table th,
.pr-table td { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); text-align: center; font-size: 14.5px; }
.pr-table tbody tr:last-child th,
.pr-table tbody tr:last-child td { border-bottom: 0; }
.pr-table thead th { vertical-align: bottom; padding-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pr-table thead th:first-child { width: 38%; }
.pr-th-name { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pr-th-price { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pr-th-price small { font-size: 12px; font-weight: 500; }
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--text); }
.pr-table td { font-weight: 700; color: var(--ink); }
.pr-table .is-popular { background: var(--brand-50); }
.pr-table thead .is-popular { border-top-left-radius: 0; }
.pr-table thead .is-popular .pr-th-name { color: var(--brand); }
.pr-group th {
    padding-top: 22px !important;
    padding-bottom: 10px !important;
    background: var(--surface-2);
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted) !important;
}
.pr-yes {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
}

/* ---------- FAQ ---------- */
.pr-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.pr-faq-intro h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; color: var(--ink); margin: 0 0 12px; }
.pr-faq-intro p { color: var(--muted); margin: 0 0 22px; }
.pr-faq-list { display: grid; gap: 10px; }
.pr-qa { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.pr-qa[open] { border-color: transparent; box-shadow: var(--shadow); }
.pr-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
}
.pr-qa summary::-webkit-details-marker { display: none; }
.pr-qa summary i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    transition: transform .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.pr-qa[open] summary i { transform: rotate(45deg); background: var(--brand-50); color: var(--brand); }
.pr-qa summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 16px; }
.pr-qa-body { padding: 0 22px 20px; line-height: 1.75; color: var(--text); }

/* ---------- Final CTA ---------- */
.pr-final { padding-top: 88px; }
.pr-final-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 52px 56px;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #0e0a12;
}
.pr-final-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--pr-photo) center 40% / cover no-repeat;
    opacity: .45;
}
.pr-final-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(14, 10, 18, .95) 0%, rgba(14, 10, 18, .75) 60%, rgba(14, 10, 18, .45) 100%);
}
.pr-final-card h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1; color: #fff; margin: 0 0 10px; }
.pr-final-card p { margin: 0; max-width: 520px; color: rgba(226, 232, 240, .82); }
.pr-final-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pr-final-card .btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .3);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1;
    color: #fff;
}
.pr-final-card .btn-hero-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .pr-cards,
    .pr-cards.pr-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-faq { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
    .pr-hero { padding: 40px 0 28px; }
    .pr-cards,
    .pr-cards.pr-count-2,
    .pr-cards.pr-count-4 { grid-template-columns: 1fr; }
    .pr-card .card-description { min-height: 0; }
    .pr-final-card { padding: 36px 24px; }
}
/* Tablets: a single centred column reads better than an orphaned card */
@media (max-width: 991px) {
    .pr-cards,
    .pr-cards.pr-count-2,
    .pr-cards.pr-count-4 { grid-template-columns: minmax(0, 520px); justify-content: center; }
}
