/* /pricing/ (scripts/site_pages.py build_pricing). Loaded after switch.css, footer.css and pages.css.
   The plan cards copy the ones on the home page (web/index.html, "pricing"); change them together. */

/* hero: centred, the plans overlap its bottom edge */
/* kept short so the plans show on the first screen */
.pr-hero{padding:108px 0 84px;text-align:center}
.pr-hero .wrap{display:block}
.pr-hero .bc{justify-content:center;margin-bottom:12px}
.pr-hero h1{max-width:none;margin:0 auto;font-size:clamp(30px,3.4vw,44px)}

/* billing switch */
.tg{display:inline-flex;background:#fff;border-radius:16px;padding:5px;margin-top:18px;box-shadow:0 0 0 1.5px var(--ink)}
.tg button{height:40px;padding:0 18px;border-radius:12px;font-size:14.5px;font-weight:700;color:var(--gray);transition:.2s}
.tg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.tg small{margin-left:6px;font-size:12px;opacity:.75}

/* plan cards */
section.pr-plans{padding:0 0 72px;margin-top:-52px;position:relative;z-index:2}
.pl-note{margin:10px auto 0;font-size:14px;text-align:center;color:var(--ink2)}
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1040px;margin:0 auto}
.plan{background:#fff;border-radius:26px;padding:26px;display:flex;flex-direction:column;border:1.5px solid var(--line);position:relative}
.plan.pop{border-color:var(--ink);box-shadow:0 8px 0 var(--pop)}
.plan .bd{position:absolute;top:-13px;left:26px;background:var(--pop);color:var(--ink);font-size:12px;font-weight:700;border-radius:999px;padding:4px 12px}
.plan .pn{font-size:20px;letter-spacing:-.03em}
.pd{font-size:14.5px;color:var(--gray);margin-top:6px;min-height:22px}
.pz{font-family:var(--disp);font-weight:800;font-size:60px;letter-spacing:-.05em;line-height:1;margin-top:14px}
.pz sup{font-size:24px;vertical-align:top;position:relative;top:8px;margin-right:2px}
.pm{font-size:13px;color:var(--gray);margin-top:6px;min-height:20px;font-weight:500}
.plan .btn{margin-top:20px;width:100%;height:48px;font-size:15px}
.plan ul{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:11px;font-size:14.5px;font-weight:500}
.plan li{display:grid;grid-template-columns:16px 1fr;gap:9px;align-items:start}
.plan li svg{width:16px;height:16px;margin-top:3px;color:var(--ok)}
.plan li.pl-ev{display:block;font-size:13px;font-weight:700;color:var(--gray);margin-bottom:-2px}
.pl-all{display:flex;width:max-content;align-items:center;gap:6px;margin:30px auto 0;font-size:15px;font-weight:700;border-bottom:2px solid var(--pop);padding:2px 0;transition:gap .2s var(--ease)}
.pl-all:hover{gap:9px}
.pl-all svg{width:14px;height:14px;transform:rotate(90deg)}
.pr-plans+.qa .ans{margin-top:0}

/* the full comparison; not inside a scroller, so the plan row can stick under the nav */
.pt{width:100%;max-width:1040px;margin:0 auto;border-collapse:separate;border-spacing:0;font-size:15px}
.pt th,.pt td{padding:15px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.pt td{width:22%;font-weight:600}
.pt-soon{display:inline-block;padding:3px 9px;border-radius:999px;background:var(--pop);color:var(--ink);font-size:12.5px;font-weight:700;white-space:nowrap}
.pt tbody th{font-weight:700;width:34%}
.pt tbody th small{display:block;font-size:13px;font-weight:500;color:var(--gray);margin-top:2px}
/* sticks just under the floating nav; the paper shadow above it hides rows scrolling past behind the nav */
.pt thead th{position:sticky;top:86px;z-index:3;background:var(--paper);padding:14px 18px 16px;border-bottom:1.5px solid var(--ink);vertical-align:bottom}
.pt thead th::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:10px;background:var(--paper)}
.pt thead th b{display:block;font-family:var(--disp);font-size:20px;letter-spacing:-.03em}
.pt-p{display:block;font-family:var(--disp);font-weight:800;font-size:26px;letter-spacing:-.04em;line-height:1.1;margin-top:2px}
.pt-p small{font-family:var(--body);font-size:13px;font-weight:600;letter-spacing:0;color:var(--gray);margin-left:2px}
.pt thead .btn{margin-top:12px;height:38px;padding:0 16px;font-size:14px}
.pt .pop{background:#FFFBEA}
.pt thead th.pop{background:#FFF4CC;border-radius:18px 18px 0 0}
.pt td:nth-child(3){background:#FFFBEA}  /* the Recommended plan (site_pages.py POP), third column */
.pt tbody:last-child tr:last-child td:nth-child(3){border-radius:0 0 18px 18px}
.pt-g th{padding:34px 18px 10px;font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gray);border-bottom:1.5px solid var(--line)}
.pt tbody:first-of-type .pt-g th{padding-top:22px}
.pt-g th{background:none}
.pt tr.pt-g + tr th,.pt tr.pt-g + tr td{border-top:0}
.pt .y,.pt .n{display:inline-flex;align-items:center}
.pt .y svg,.pt .n svg{width:18px;height:18px}
.pt .y svg{color:var(--ok)}
.pt .n svg{color:#C9C1B4}
.pt+.src{max-width:1040px;margin:18px auto 0;font-size:13.5px;color:var(--gray)}
#compare .upd{max-width:1040px;margin-left:auto;margin-right:auto}
#compare .sh{margin-bottom:28px}

/* why it costs less: the bills, as on the home page (web/index.html, #bills); change them together.
   Then the link-in-bio table (.cmp from switch.css). */
.val{--grn:#1F8A4C;--red:#C8442C}
.bx{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);row-gap:10px;max-width:960px;margin:0 auto}
.bx-hd{grid-row:1;margin:0 0 24px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gray);text-align:center}
.bx-hd.b{grid-column:3}
.bx-fr{grid-column:3;grid-row:2/8;margin:-14px;background:#fff;border:2px solid var(--ink);border-radius:22px;box-shadow:0 22px 40px rgba(23,20,15,.13)}
.bx-ar{grid-column:2;grid-row:2/8;display:grid;place-items:center;color:var(--ink)}.bx-ar svg{width:40px;height:16px}
.bx-c{grid-column:1;position:relative;display:flex;align-items:center;gap:12px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:9px 14px;box-shadow:0 8px 18px rgba(23,20,15,.07);transform:translateX(var(--x,0)) rotate(var(--r,0))}
.bx-c span{flex:1;min-width:0;font-weight:700;font-size:14.5px;line-height:1.2}
.bx-c span small{display:block;font-size:12px;font-weight:600;color:var(--gray)}
.bx-c b{flex:none;font-variant-numeric:tabular-nums;font-size:16px;font-family:var(--disp);letter-spacing:-.02em}
.bx-c b i{font-style:normal;color:var(--gray);margin-right:3px}
.bx-p{grid-column:3;position:relative;display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:12px;padding:7px 12px;font-weight:700;font-size:14.5px;background:#fff}
.bx-p .bx-ic{width:30px;height:30px;border-radius:9px}
.bx-p span{flex:1;min-width:0}
.bx-p em{flex:none;font-style:normal;display:inline-flex;align-items:center;gap:5px;color:var(--grn);font-weight:800;font-family:var(--disp);font-size:16px}
.bx-p em svg{width:14px;height:14px}
.bx-p.u{background:var(--paper2);border-color:transparent}
.bx-p.u .bx-ic{background:#fff}
.bx-t{grid-row:8;margin:26px 0 0;text-align:center;font-weight:700;font-size:14px;color:var(--ink2)}
.bx-t b{display:block;font-family:var(--disp);font-size:30px;letter-spacing:-.03em;line-height:1.15}
.bx-t.a{grid-column:1;border-top:3px double var(--ink2);padding-top:12px;margin-top:16px}
.bx-t.a b{color:var(--red)}
.bx-t.b{grid-column:3}
.bx-t.b b span{background:var(--pop);border-radius:10px;padding:0 10px 2px}
.bx-ic{flex:none;width:34px;height:34px;border-radius:10px;background:var(--paper2);display:grid;place-items:center}
.bx-ic svg{width:18px;height:18px;fill:none;stroke:var(--ink2);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bx-k{grid-column:1/-1;grid-row:9;margin:22px 0 0;text-align:center;font-weight:700;font-size:15px;color:var(--ink2)}
.bx-k b{color:var(--ink);font-family:var(--disp);font-size:18px;background:linear-gradient(var(--pop),var(--pop)) 0 92%/100% .38em no-repeat}
.bl-n{max-width:640px;margin:34px auto 0;text-align:center;font-size:13.5px;line-height:1.5;color:var(--gray);font-weight:500}
.vb-s{max-width:860px;margin:80px auto 0;font-size:clamp(22px,2.4vw,28px)}
.vb-sl{max-width:860px;margin:8px auto 22px;color:var(--ink2);font-size:16.5px}
.val .tw{max-width:860px;margin:0 auto}
.val .cmp.wide{min-width:0}
.val .cmp.wide tbody th{width:22%}
.val .src{max-width:860px;margin:14px auto 0;font-size:13.5px;color:var(--gray)}
@media (max-width:820px){
  .bx{grid-template-columns:minmax(0,1.2fr) 14px minmax(0,1fr);row-gap:8px}
  .bx-hd{margin-bottom:18px}
  .bx-ar{display:none}
  .bx-fr{margin:-8px;border-radius:16px}
  .bx-c{--x:0!important;--r:0!important;padding:8px 10px;gap:8px}
  .bx-c .bx-ic,.bx-c span small{display:none}
  .bx-c span{font-size:13px}.bx-c b{font-size:14.5px}
  .bx-p{padding:6px 8px;gap:6px;font-size:12.5px}
  .bx-p .bx-ic{display:none}
  .bx-p em{font-size:14px}
  .bx-t b{font-size:22px}
}
@media (max-width:720px){
  .vb-s{margin-top:56px}
  .val .cmp.wide{min-width:600px}
}
@media (max-width:1040px){
  .plans{gap:12px}
  .plan{padding:22px 18px}
  .pz{font-size:48px}
  .plan ul{font-size:13.5px;gap:9px}
}
@media (max-width:860px){
  .plans{grid-template-columns:1fr;max-width:480px}
  .pr-hero{padding-bottom:80px}
  .pt{font-size:13.5px}
  .pt th,.pt td{padding:12px 8px}
  .pt tbody th{width:34%}
  .pt tbody th small{font-size:12px}
  .pt thead th{top:80px;padding:10px 8px 12px}
  .pt thead th b{font-size:16px}
  .pt-p{font-size:19px}
  .pt-p small{font-size:11px}
  .pt thead .btn{display:none}
  .pt-g th{padding:26px 8px 8px}
}
/* phones: each feature's name on its own line, the three plans side by side under it */
@media (max-width:720px){
  .pr-hero{padding:96px 0 76px}
  .tg button{padding:0 14px}
  .pt,.pt thead,.pt tbody{display:block}
  .pt thead{position:sticky;top:80px;z-index:3}
  .pt thead::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:10px;background:var(--paper)}
  .pt thead th::before{display:none}
  .pt tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line)}
  .pt th,.pt td{width:auto;border:0;padding:10px 8px;overflow-wrap:anywhere}
  .pt thead th{position:static;padding:10px 8px 12px}
  .pt thead tr{border-bottom:1.5px solid var(--ink);background:var(--paper)}
  .pt thead th:first-child{display:none}
  .pt tbody th{grid-column:1/-1;width:auto;padding:14px 8px 0}
  .pt tbody th small{display:inline;margin-left:6px}
  .pt td{padding-top:6px;padding-bottom:14px}
  .pt td:nth-child(3){border-radius:0}
  .pt thead th.pop{border-radius:14px 14px 0 0}
  .pt-g th{padding:26px 8px 8px}
  .pt tr.pt-g{border-bottom:1.5px solid var(--line)}
}

/* ---------- plan finder (site_pages.py plan_finder) ---------- */
.pf{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:28px;align-items:start;max-width:1040px;margin:0 auto}
.pf-q{font-weight:800;font-size:16px;margin:0 0 12px}
.pf-c{display:flex;flex-wrap:wrap;gap:8px}
.pf-ch{position:relative;cursor:pointer}
.pf-ch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.pf-ch span{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:99px;background:#fff;font-size:14.5px;font-weight:600;box-shadow:inset 0 0 0 1.5px var(--line);transition:background .2s,box-shadow .2s}
.pf-ch span::before{content:"+";width:10px;text-align:center;font-weight:800}
.pf-ch input:checked+span{background:var(--pop);box-shadow:inset 0 0 0 1.5px var(--ink)}
.pf-ch input:checked+span::before{content:"✓"}
.pf-ch input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.pf-r{position:sticky;top:110px;display:grid;gap:6px;padding:26px;border-radius:26px;background:var(--ink);color:#fff}
.pf-k{margin:0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.pf-n{margin:0;font-family:var(--disp);font-size:44px;letter-spacing:-.04em;line-height:1.05;color:var(--pop)}
.pf-p{margin:0;font-size:15px;font-weight:700}
.pf-w{margin:6px 0 0;font-size:14px;color:rgba(255,255,255,.72);line-height:1.5}
.pf-r .btn{margin-top:14px;background:var(--pop);color:var(--ink)}
.pf-s{margin:6px 0 0;font-size:12.5px;color:rgba(255,255,255,.55)}
.pf.bump .pf-n{animation:pf-bump .35s var(--ease)}
@keyframes pf-bump{from{transform:translateY(6px);opacity:.3}to{transform:none;opacity:1}}
.plan{transition:transform .3s var(--ease),box-shadow .3s}
.plan.pf-hl{transform:translateY(-6px);box-shadow:0 0 0 2px var(--ink),0 10px 0 var(--pop)}
@media (max-width:860px){.pf{grid-template-columns:1fr}.pf-r{position:static}}
@media (prefers-reduced-motion:reduce){.pf.bump .pf-n{animation:none}.plan{transition:none}}
