/* =============================================================
   FaxSafe – Pricing page (/web/plans), 2026 redesign (Figma "Pricing").
   Shared tokens, header, footer and buttons: faxsafe-site.css.
   Checkout modal pieces (.ff-*): user_site faxflow-app.css.
   Sizes are the 1920px design scaled to the 1200px container (~0.8).
   ============================================================= */

.pr-page { background: #fff; }
.pr-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--fs-primary); cursor: pointer; }
.pr-link:hover { text-decoration: underline; }
body.ff-auth .pr-anon-only, .pr-auth-only { display: none; }
body.ff-auth .pr-auth-only { display: inline-flex; }

/* ── Billing-period toggle (page and checkout) ── */
.pr-toggle { display: flex; width: max-content; max-width: 100%; margin: 0 auto; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--fs-shadow); }
.pr-toggle button { min-height: 42px; padding: 0 21px; border: 0; border-radius: 999px; background: transparent; font: 500 15px var(--fs-font); color: #3c3c37; cursor: pointer; white-space: nowrap; }
.pr-toggle button[aria-pressed="true"] { background: var(--fs-primary); color: #fff; font-weight: 600; }
.pr-toggle-sm { margin: 18px 0 0; background: #eef0f4; box-shadow: none; }
.pr-toggle-sm button { min-height: 36px; padding: 0 18px; font-size: 13.5px; }

/* ── Hero + plan cards ── */
.pr-hero { position: relative; overflow: hidden; padding-bottom: 88px; background: #f2f2f3; }
.pr-hero-bg { position: absolute; inset: 0; }
.pr-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.pr-hero > .fs-container { position: relative; z-index: 1; }
.pr-hero-copy { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 76px; text-align: center; }
.pr-badge { padding: 7px 13px; font-size: 14.5px; }
.pr-hero h1 {
    font-size: clamp(34px, 4.4vw, 56px); line-height: 1.18; font-weight: 400; letter-spacing: -.025em;
    color: #14140f;
}
.pr-hero h1 span { color: var(--fs-primary); letter-spacing: -.01em; }
.pr-lead { max-width: 690px; font-size: 18px; line-height: 1.5; color: #3c3c37; }
#plans { padding-top: 28px; }

.pr-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 536px)); justify-content: center; gap: 80px; margin-top: 44px; }
.pr-plan {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    padding: 32px; border-radius: 28px; color: #fff;
}
.pr-plan > * { position: relative; z-index: 1; }
.pr-plan::before, .pr-plan::after { content: ""; position: absolute; z-index: 0; pointer-events: none; background: center / 100% 100% no-repeat; }
.pr-plan-send { background: #121428; box-shadow: 0 10px 17px rgba(17, 26, 31, .5); }
.pr-plan-send::before { /* soft blue glow, top right */
    left: calc(82% - 295px); top: -205px; width: 590px; height: 590px;
    background-image: url("../img/pricing/glow.d21c30b380ff.svg");
}
.pr-plan-receive { background: var(--fs-primary); box-shadow: 0 0 96px rgba(0, 0, 0, .1); }
.pr-plan-receive::before { top: 14.47%; left: 9.55%; width: 146.57%; height: 91.03%; background-image: url("../img/pricing/receive-shape-1.a54af46a2801.svg"); }
.pr-plan-receive::after { top: 0; right: 0; width: 63.7%; height: 47.8%; background-image: url("../img/pricing/receive-shape-2.cbf19619de91.svg"); }
.pr-plan.is-picked { outline: 3px solid #8ea8de; outline-offset: 5px; }

.pr-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.pr-plan-top h2 { font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.pr-plan-badge { padding: 5px 11px; border-radius: 999px; background: #3d5f98; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.pr-plan-tagline { margin-top: 18px; font-size: 16px; color: #b4b8cc; }
.pr-plan-receive .pr-plan-tagline { color: rgba(255, 255, 255, .82); }
.pr-plan-price { margin-top: 22px; }
.pr-plan-price p { display: flex; align-items: flex-end; gap: 8px; }
.pr-amount { font-size: 52px; line-height: 1.1; font-weight: 400; letter-spacing: -.03em; }
.pr-unit { padding-bottom: 8px; font-size: 16px; color: #b4b8cc; }
.pr-plan-receive .pr-unit { color: rgba(255, 255, 255, .7); }
.pr-plan-features {
    display: grid; gap: 11px; margin-top: 24px; padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 15px; line-height: 1.5; color: #e6e7ef;
}
.pr-plan-receive .pr-plan-features { border-top-color: rgba(255, 255, 255, .3); }
.pr-plan-features li { padding-left: 32px; }
.pr-plan-features li::before { top: 0; width: 21px; height: 21px; background-color: #e7f0ff; background-size: 13px; }
.pr-plan-note {
    margin-top: auto; padding: 11px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .08); font-size: 14.5px; line-height: 1.55; color: #c9cbd6;
}
.pr-plan-features + .pr-plan-note, .pr-plan-features + .pr-plan-note[hidden] + .pr-plan-note { margin-top: 24px; }
.pr-plan-receive .pr-plan-note { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .95); }
.pr-plan-cta { min-height: 48px; margin-top: 20px; font-size: 17px; font-weight: 500; }
.pr-plan-receive .pr-plan-cta { border-color: var(--fs-primary); }
.pr-plan-cta [hidden] { display: none; }

.pr-fine { display: grid; gap: 5px; margin-top: 36px; text-align: center; font-size: 15px; line-height: 1.5; color: #707176; }

/* ── Compare plans ── */
.pr-compare { position: relative; padding: 88px 0 72px; background: #fff; }
.pr-compare .fs-head-center { margin-bottom: 44px; }
.pr-compare .fs-lead, .pr-billing .fs-lead { font-size: 18px; }
.pr-table {
    overflow: hidden; border: 1px solid #d9dee8; border-radius: 28px; background: #fff;
    box-shadow: 0 2px 8px rgba(18, 26, 51, .05), 0 24px 56px -6px rgba(18, 26, 51, .14);
}
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) 25% 25%; border-bottom: 1px solid #e3e6ee; }
.pr-row:last-child { border-bottom: 0; }
.pr-cell { display: flex; align-items: center; justify-content: center; }
.pr-cell-label { justify-content: flex-start; padding: 20px 38px; font-size: 17px; font-weight: 500; line-height: 1.4; color: #14140f; }
.pr-row .pr-col-send { background: #eef3fc; }
.pr-yes, .pr-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.pr-yes { background: var(--fs-primary) url("../img/pricing/ic-check.065a13311fbf.svg") center / 15px no-repeat; box-shadow: 0 4px 10px rgba(61, 95, 152, .25); }
.pr-no { background: #f4f5f8; }
.pr-no::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: #a9adbd; }

.pr-row-head { background: linear-gradient(90deg, #131529, #2b4a86); color: #fff; border-bottom: 0; }
.pr-row-head .pr-cell-label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 38px; color: #fff; }
.pr-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pr-row-head h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; font-weight: 400; letter-spacing: -.015em; }
.pr-row-head .pr-cell-label p { font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.pr-row-head .pr-col-send, .pr-row-head .pr-col-receive { flex-direction: column; gap: 8px; padding: 35px 26px 32px; text-align: center; }
.pr-row-head .pr-col-send { background: rgba(255, 255, 255, .08); }
.pr-row-head .pr-col-receive { background: transparent; }
.pr-pop { padding: 5px 11px; border-radius: 999px; background: #5ee6a8; color: #131529; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.pr-col-receive .pr-pop { visibility: hidden; }
.pr-row-head h4 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 500; }
.pr-col-price { font-size: 38px; line-height: 1.1; letter-spacing: -.02em; }
.pr-col-price small { margin-left: 5px; font-size: 15px; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.pr-col-note { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.pr-row-head .fs-btn { min-height: 48px; margin-top: 8px; font-weight: 500; }
.pr-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff !important; }
.pr-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.pr-row-group .pr-cell-label { gap: 10px; padding: 14px 38px; background: #f1f4fa; font-size: 15px; font-weight: 600; color: var(--fs-primary); }
.pr-row-group .pr-cell-label img { width: 24px; height: 24px; padding: 4px; border-radius: 7px; background: var(--fs-primary); }
.pr-row-group .pr-col-send { background: #e3ebf8; }
.pr-row-group .pr-col-receive { background: #f1f4fa; }

/* ── How billing works ── */
.pr-billing { position: relative; overflow: hidden; padding: 112px 0 96px; background: var(--fs-primary); color: #fff; }
.pr-billing-bg { position: absolute; inset: 0; }
.pr-billing-bg img { position: absolute; top: -19%; left: 0; width: 100%; height: 150%; object-fit: cover; }
.pr-billing::after { /* faint grid */
    content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 49px 49px; background-position: center top;
}
.pr-billing .fs-container { position: relative; z-index: 2; }
.pr-billing .fs-h2 { color: #fff; }
.pr-billing .fs-lead { color: rgba(255, 255, 255, .85); }
.pr-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.pr-steps::before { /* timeline track, node centre to node centre */
    content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .6), #5ee6a8 33%, rgba(255, 255, 255, .35));
}
.pr-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pr-node {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, .35); background: #fff padding-box; background-clip: padding-box;
    font-size: 15px; font-weight: 700; line-height: 1; color: var(--fs-primary);
}
.pr-step.is-current .pr-node { background-color: #5ee6a8; color: #131529; }
.pr-step-card {
    display: flex; flex-direction: column; gap: 11px; width: 100%; min-height: 293px;
    padding: 26px; border-radius: 26px; border: 1px solid #e4e8f2;
    background: linear-gradient(180deg, rgba(234, 241, 255, .9) 0%, rgba(234, 241, 255, 0) 45%), #fff;
    box-shadow: 0 13px 32px -6px rgba(28, 43, 79, .08), 0 1px 2px rgba(28, 43, 79, .05);
    color: #3c3c37;
}
.pr-step-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.pr-step-ic {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(135deg, #7096d8 0%, #2d4c8c 71%);
    box-shadow: 0 8px 18px -5px rgba(45, 76, 140, .28), inset 0 -2px 4px rgba(19, 38, 80, .25), inset 0 1.5px 0 rgba(255, 255, 255, .45);
}
.pr-step-ic img { width: 20px; height: 20px; }
.pr-step-tag { padding: 5px 10px; border-radius: 999px; border: 1px solid #d3e0f7; background: #eaf1ff; font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--fs-primary); text-align: center; }
.pr-step-card h3 { font-size: 20px; line-height: 1.3; font-weight: 500; color: #14140f; }
.pr-step-card p { font-size: 15px; line-height: 1.6; }
.pr-step-card strong { margin-top: auto; padding-top: 13px; border-top: 1px solid #e6e7ef; font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.015em; color: #14140f; }
.pr-step-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5ee6a8; }
.pr-step.is-current .pr-step-card {
    border: 2px solid #5ee6a8; color: rgba(255, 255, 255, .8);
    background: linear-gradient(133deg, #1b2647 0%, #131529 71%);
    box-shadow: 0 0 26px -6px rgba(94, 230, 168, .25), 0 20px 40px -10px rgba(18, 20, 40, .35);
}
.pr-step.is-current .pr-step-ic { border: 1px solid rgba(255, 255, 255, .25); background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 71%); box-shadow: none; }
.pr-step.is-current .pr-step-tag { border-color: #5ee6a8; background: #5ee6a8; color: #131529; }
.pr-step.is-current h3, .pr-step.is-current strong { color: #fff; }
.pr-step.is-current strong { border-top-color: rgba(255, 255, 255, .15); }

/* ── Already subscribed ── */
.pr-subscribed { position: relative; padding: 112px 0 8px; background: #fff; }
.pr-banner {
    display: flex; align-items: center; gap: 32px;
    padding: 52px 64px; border-radius: 36px;
    background: linear-gradient(90deg, #131529, #26407a); color: #fff;
}
.pr-banner-copy { flex: 1; min-width: 0; }
.pr-banner h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; }
.pr-banner p { margin-top: 10px; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.pr-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-banner-actions .fs-btn { min-height: 48px; padding: 0 29px; font-weight: 500; }
.pr-banner-actions .fs-store { background: #121428; border-radius: 13px; }
.pr-banner-actions .fs-store:hover { background: #262a33; }

/* ── Pricing questions ── */
.pr-faq { position: relative; padding: 112px 0 96px; background: #e9ebee; }
.pr-faq-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 96px; align-items: start; }
.pr-faq-help { margin-top: 11px; font-size: 16px; line-height: 1.6; color: #3c3c37; }
.pr-faq-help a { color: var(--fs-primary); font-weight: 600; }
.pr-faq-side picture { display: block; margin-top: 28px; }
.pr-faq-side img { border-radius: 30px; box-shadow: 0 12px 33px rgba(10, 26, 64, .06); }
.pr-faq-list { display: grid; gap: 10px; }
.pr-faq-item { border: 1px solid #e1e4ec; border-radius: 20px; background: #fff; box-shadow: 0 2px 3px rgba(18, 26, 51, .05), 0 13px 16px rgba(18, 26, 51, .08); }
.pr-faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 22px; cursor: pointer; list-style: none;
    font-size: 18px; font-weight: 500; line-height: 1.4; color: #14140f;
}
.pr-faq-item summary::-webkit-details-marker { display: none; }
.pr-faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--fs-primary); }
.pr-faq-icon::before, .pr-faq-icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.pr-faq-icon::after { transform: rotate(90deg); }
.pr-faq-item[open] .pr-faq-icon { background: var(--fs-primary); color: #fff; }
.pr-faq-item[open] .pr-faq-icon::after { transform: rotate(0deg); }
.pr-faq-answer { padding: 0 22px 16px; font-size: 16px; line-height: 1.65; color: #3c3c37; }
.pr-faq-answer p + p, .pr-faq-answer ul, .pr-faq-answer ol { margin-top: 8px; }
.pr-faq-answer ul, .pr-faq-answer ol { padding-left: 20px; list-style: disc; }
.pr-faq-answer ol { list-style: decimal; }
.pr-faq-answer a { color: var(--fs-primary); text-decoration: underline; }
.pr-faq-more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--fs-primary) !important; }

/* ── Checkout modal ── */
#ff-checkout-modal { z-index: 79; } /* sign-in, opened from checkout, sits on top */
.pr-checkout { max-width: 560px; }
.pr-checkout .ff-modal-title { font-size: 28px; }
.pr-checkout .ff-due-label small { display: block; margin-top: 2px; font-size: 12px; }
.pr-checkout .ff-btn-primary { background: var(--fs-primary); }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .pr-plans { gap: 28px; }
    .pr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
    .pr-steps::before { display: none; }
    .pr-faq-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) {
    .pr-plans { grid-template-columns: minmax(0, 540px); }
    .pr-banner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
    .pr-faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .pr-faq-side picture { max-width: 480px; }
}
@media (max-width: 760px) {
    /* Table: the head row stacks (label on top, the two plans side by side),
       feature rows keep two narrow tick columns labelled in the group rows. */
    .pr-row { grid-template-columns: minmax(0, 1fr) 68px 68px; }
    .pr-row-head { grid-template-columns: 1fr 1fr; }
    .pr-row-head .pr-cell-label { grid-column: 1 / -1; padding: 28px 22px 20px; }
    .pr-row-head .pr-col-send, .pr-row-head .pr-col-receive { padding: 20px 14px 22px; }
    .pr-row-head .pr-cell-label p { font-size: 16px; }
    .pr-row-head h4 { font-size: 17px; }
    .pr-col-price { font-size: 30px; }
    .pr-col-price small { font-size: 13px; }
    .pr-row-head .fs-btn { min-height: 42px; padding: 8px 12px; font-size: 14px; }
    .pr-cell-label { padding: 16px 18px; font-size: 15px; }
    .pr-row-group .pr-cell-label { padding: 12px 18px; }
    .pr-row-group .pr-col-send::before, .pr-row-group .pr-col-receive::before {
        font-size: 10.5px; font-weight: 600; line-height: 1.2; color: var(--fs-primary); text-align: center;
    }
    .pr-row-group .pr-col-send::before { content: "Send only"; }
    .pr-row-group .pr-col-receive::before { content: "Send + receive"; }
}
@media (max-width: 640px) {
    .pr-hero { padding-bottom: 64px; }
    .pr-hero-copy { padding-top: 48px; gap: 14px; }
    .pr-badge { font-size: 13px; }
    .pr-lead { font-size: 16px; }
    #plans { padding-top: 22px; }
    .pr-toggle button { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
    .pr-plans { margin-top: 28px; gap: 20px; }
    .pr-plan { padding: 24px 22px; border-radius: 24px; }
    .pr-amount { font-size: 44px; }
    .pr-fine { font-size: 13.5px; }
    .pr-compare { padding: 64px 0 56px; }
    .pr-compare .fs-head-center { margin-bottom: 28px; }
    .pr-compare .fs-lead, .pr-billing .fs-lead { font-size: 16px; }
    .pr-table { border-radius: 22px; }
    .pr-billing { padding: 80px 0 64px; }
    .pr-steps { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
    .pr-step-card { min-height: 0; }
    .pr-step-card strong { margin-top: 8px; }
    .pr-subscribed { padding-top: 72px; }
    .pr-banner { padding: 32px 22px; border-radius: 26px; }
    .pr-faq { padding: 80px 0 64px; }
    .pr-faq-item summary { padding: 14px 16px; font-size: 16px; }
    .pr-faq-answer { padding: 0 16px 14px; font-size: 15px; }
    .pr-checkout .ff-numsearch { grid-template-columns: 1fr; }
}
