/* =========================================================================
   pages/pricing.css — pricing page (plan cards, Basic estimator, comparison,
   FAQ) and the checkout success page. Buttons, notices and dialogs are in common.css.
   Colours come from the site tokens in common.css.
   ========================================================================= */

.pr { color: var(--ink); background: #fff; }
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.pr h1, .pr h2, .pr h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }

/* Hero */
.pr-hero { padding: 60px 0 14px; text-align: center; background: radial-gradient(85% 65% at 50% -10%, var(--brand-soft), transparent 58%); }
.pr-eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.pr-hero h1 { font-size: clamp(31px, 4.2vw, 46px); margin: 16px auto 14px; max-width: 18ch; }
.pr-hero p { color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 54ch; margin: 0 auto; }
.pr .note { margin-top: 18px; }

.pr-sec { padding: 44px 0; }
.pr-sec-cards { padding-top: 16px; }
.pr-sec-last { padding-bottom: 72px; }
.pr-head { margin-bottom: 26px; }
.pr-head.center { text-align: center; }
.pr-head h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 0; }
.pr-head p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 8px 0 0; max-width: 64ch; }
.pr-head.center p { margin-left: auto; margin-right: auto; }
.pr-note { text-align: center; font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 22px auto 0; max-width: 80ch; }
.pr-note b { color: var(--ink); }

/* Plan cards */
.pr-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin-top: 12px; }
.pr-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; }
.pr-plan.is-pop { border-color: var(--brand); box-shadow: 0 16px 44px -26px rgba(75, 95, 201, .55); }
.pr-plan.is-selected { box-shadow: var(--ring); }
.pr-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 10px; letter-spacing: .1em;
           text-transform: uppercase; background: var(--brand); color: #fff; padding: 4px 11px; border-radius: 100px; font-weight: 600; white-space: nowrap; }
.pr-pname { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); font-weight: 600; }
.pr-pdesc { color: var(--muted); font-size: 13px; margin-top: 5px; min-height: 34px; }
.pr-price { margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.pr-price small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pr-price.is-custom { font-size: 30px; padding: 5px 0; }
.pr-reqs { margin-top: 16px; font-family: var(--sans); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; text-align: center; }
.pr-reqs b { font-size: 18px; font-weight: 600; }
.pr-reqs span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 2px; }
.pr-plan.is-pop .pr-reqs { background: var(--brand-soft); border-color: var(--brand-tint); }
.pr-over { margin-top: 12px; font-size: 12px; color: var(--ink-2); text-align: center; min-height: 32px; line-height: 1.45; }
.pr-plan.is-pop .pr-over { color: var(--brand-deep); }
.pr-cta { margin-top: 14px; }
.pr-cta .btn { width: 100%; }
.pr-plan .err { margin-top: 8px; text-align: center; }
.pr-plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pr-plan li { position: relative; font-size: 13.5px; color: var(--ink); display: flex; gap: 9px; line-height: 1.4; }
.pr-plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; background: var(--brand-soft); }
.pr-plan li::after { content: ""; position: absolute; left: 6px; top: 4px; width: 4px; height: 7px; border: solid var(--brand-deep); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.pr-plan li b { font-weight: 600; }
.pr-plan li.hd { color: var(--faint); font-size: 12px; }
.pr-plan li.hd::before { display: none; }
.pr-plan li.hd::after { display: none; }

/* Basic estimator */
.pr-calc-wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; align-items: stretch; }
.pr-calc { background: var(--ink); color: #fff; border-radius: 16px; padding: 28px; }
.pr-calc h3 { font-size: 18px; color: #fff; margin: 0; }
.pr-cnote { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 5px 0 0; }
.pr-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; margin-top: 20px; background: rgba(255, 255, 255, .16); cursor: pointer; }
.pr-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.pr-calc input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 4px solid var(--brand); border-radius: 50%; background: #fff; }
.pr-calc input[type=range]:focus-visible { outline: none; box-shadow: var(--ring); }
.pr-ticks { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 10.5px; color: rgba(255, 255, 255, .4); margin-top: 9px; }
.pr-vol { font-family: var(--sans); margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pr-vol b { color: #fff; font-weight: 600; font-size: 15px; }
.pr-out { margin-top: 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pr-big { font-family: var(--sans); font-weight: 600; font-size: 40px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pr-big .cur { font-size: 22px; color: rgba(255, 255, 255, .6); vertical-align: top; }
.pr-per { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.pr-save { margin-top: 12px; font-family: var(--sans); font-size: 12.5px; color: var(--brand-tint); background: rgba(223, 228, 248, .1);
           border: 1px solid rgba(223, 228, 248, .22); border-radius: 8px; padding: 9px 12px; line-height: 1.5; }
.pr-save b { color: #fff; font-weight: 600; }
.pr-slab { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.pr-slab h4 { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.pr-slab .sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.pr-slab table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 12.5px; }
.pr-slab td { padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.pr-slab tr:last-child td { border-bottom: 0; }
.pr-slab td.r { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pr-slab td.b { color: var(--ink-2); }
.pr-slab .inc { color: var(--brand-deep); }
.pr-slab-foot { margin: 14px 0 0 !important; line-height: 1.5; }

/* Competitor strip */
.pr-cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.pr-cmp .c { border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.pr-cmp .c.us { border-color: var(--brand); background: var(--brand-soft); }
.pr-cmp .who { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pr-cmp .c.us .who { color: var(--brand-deep); }
.pr-cmp .amt { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; margin-top: 8px; }
.pr-cmp .amt small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.pr-cmp .for { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.pr-cmp .mult { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 10px; }
.pr-cmp .c.us .mult { color: var(--brand-deep); }

/* Compare plans */
.pr-fm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; }
.pr-fm { width: 100%; min-width: 620px; border-collapse: collapse; background: #fff; }
.pr-fm th, .pr-fm td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--hairline); }
.pr-fm thead th { border-bottom: 1px solid var(--line); background: #fff; }
.pr-fm .pn { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); font-weight: 600; }
.pr-fm .pp { display: block; font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--ink); margin-top: 3px; }
.pr-fm .rl { text-align: left; font-weight: 500; color: var(--ink); font-size: 14px; min-width: 200px; }
.pr-fm td.num { font-family: var(--sans); font-size: 13px; color: var(--ink); }
.pr-fm .yes { color: var(--brand-deep); font-weight: 700; }
.pr-fm .no { color: var(--faint); }
.pr-fm tbody tr:hover td { background: var(--panel); }
.pr-fm .grp td { background: var(--panel); text-align: left; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pr-fm .pop { background: var(--brand-soft) !important; }

/* FAQ */
.pr-faq { max-width: 760px; }
.pr-q { border: 1px solid var(--line); border-radius: 12px; padding: 2px 20px; margin-bottom: 10px; background: #fff; }
.pr-q summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pr-q summary::-webkit-details-marker { display: none; }
.pr-q summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.pr-q .pl { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .2s; }
.pr-q[open] .pl { transform: rotate(45deg); }
.pr-q .a { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* Final CTA */
.pr-final { background: var(--ink); color: #fff; border-radius: 20px; text-align: center; padding: 54px 30px; }
.pr-final h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0; color: #fff; }
.pr-final p { color: rgba(255, 255, 255, .7); font-size: 16px; max-width: 46ch; margin: 14px auto 26px; }
.pr-final .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pr-btn-light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.pr-btn-light:hover { background: var(--brand-soft); }
.pr-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.pr-btn-ghost:hover { background: transparent; border-color: #fff; }

@media (max-width: 860px) {
  .pr-plans { grid-template-columns: 1fr; max-width: 420px; margin: 12px auto 0; }
  .pr-cmp { grid-template-columns: 1fr; }
  .pr-calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .pr-wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { .pr-q .pl { transition: none; } }

/* Switch confirmation dialog: display font for the title */
#pr-switch-dialog h3 { font-family: var(--display); font-weight: 700; font-size: 22px; }

/* ---------- Checkout success page ---------- */
.ps-wrap { max-width: 560px; margin: 0 auto; padding: 64px 20px; text-align: center; }
.ps-icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ps-icon.ok  { background: var(--success-soft); color: var(--success); }
.ps-icon.err { background: var(--danger-soft); color: var(--danger); }
.ps-wrap h1 { font-size: 26px; margin: 0 0 10px; }
.ps-wrap p { color: var(--muted); line-height: 1.55; margin: 0 0 22px; }
.ps-box { display: inline-grid; grid-template-columns: auto auto; gap: 8px 24px; text-align: left; padding: 16px 22px;
          border: 1px solid var(--line); border-radius: 12px; margin-bottom: 26px; }
.ps-box span { color: var(--muted); }
.ps-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }