/* ═══ Pricing (/pricing). Danny's customer sheet (November 2026) word for word, laid out the way the best SaaS pricing
   pages do it (Attio, Linear, Close): a short header, the billing switch, the three plans straight away, a full
   comparison table, the extras, FAQ, then the close. Dressed in the site's own system, not the PDF's: the colour
   floor and light band under the plans (.stage-sec), glass cards, the brand-gradient ring on Silver, the agents'
   badges (FR, FU, NX), the homepage's dark close with its two option cards.
   Nothing from the internal playbook (costs, margins, unpublished discounts) ever comes here.
   pricing.js runs the billing switch and the people stepper; without JS the cards show the sheet's monthly
   prices. Class names are pr- prefixed (the old .plan rules hide list items on phones). ═══ */

/* ─── Header: short, so the plans sit in the first screen ─── */
.pr-top{padding-top:clamp(28px,4.5vw,64px);padding-bottom:clamp(48px,6vw,88px)}
.pr-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(20px,4vw,64px);align-items:end;margin-bottom:clamp(24px,3vw,36px)}
.pr-head h1{margin:0;font-size:clamp(38px,4.6vw,64px);line-height:1.02;max-width:15ch;text-wrap:balance}
.pr-head .lede{margin:0 0 6px;max-width:46ch}
@media (max-width:900px){.pr-head{grid-template-columns:minmax(0,1fr);gap:14px}}

/* ─── Controls: billing switch and the people stepper, one row ─── */
.pr-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;margin-bottom:22px}
.pr-controls[hidden]{display:none}
.pr-bill{display:inline-flex;padding:4px;border-radius:999px;background:var(--lg-tint-strong,var(--card));box-shadow:inset 0 1px 0 var(--lg-spec),0 0 0 .5px var(--lg-edge),0 10px 24px -18px rgba(16,16,20,.4)}
.pr-bill button{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:var(--ink-2);font:500 14.5px/1 var(--body);cursor:pointer;transition:background-color .25s,color .25s,box-shadow .25s}
.pr-bill button[aria-checked="true"]{background:var(--ink);color:var(--paper);box-shadow:0 4px 12px -6px rgba(16,16,20,.5)}
.pr-save{padding:4px 8px;border-radius:999px;font-size:11.5px;font-weight:600;color:#fff;background:var(--brand)}
.pr-team{display:inline-flex;align-items:center;gap:12px;padding:4px 4px 4px 18px;border-radius:999px;background:var(--lg-tint-strong,var(--card));box-shadow:inset 0 1px 0 var(--lg-spec),0 0 0 .5px var(--lg-edge),0 10px 24px -18px rgba(16,16,20,.4);font-size:14.5px}
.pr-team-l{font-weight:500;color:var(--ink)}
.pr-step{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:999px;background:var(--surface)}
.pr-step button{width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--card);color:var(--ink);cursor:pointer;box-shadow:0 0 0 1px var(--line);transition:box-shadow var(--fast),opacity var(--fast)}
.pr-step button:hover{box-shadow:0 0 0 1px var(--line-2),0 2px 6px -2px rgba(16,16,20,.18)}
.pr-step button:disabled{opacity:.38;cursor:default}
.pr-step button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
/* the count is a field: type 100 instead of clicking 100 times */
.pr-step input{width:52px;height:36px;padding:0 4px;border:0;border-radius:10px;background:transparent;text-align:center;font-family:var(--head);font-weight:700;font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums;-moz-appearance:textfield;cursor:text;transition:background-color var(--fast),box-shadow var(--fast)}
.pr-step input:hover{background:var(--card)}
.pr-step input:focus{outline:none;background:var(--card);box-shadow:0 0 0 2px color-mix(in srgb,#7B61FF 55%,transparent)}

/* ─── The plans: glass cards on the colour floor, rows aligned across the three ─── */
.pr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(12px,1.6vw,22px);align-items:stretch}
@supports (grid-template-rows:subgrid){
  .pr-grid{grid-template-rows:repeat(5,auto)}
  .pr-card{grid-row:span 5;grid-template-rows:subgrid}
}
.pr-card{position:relative;display:grid;row-gap:0;align-content:start;min-width:0;padding:28px 26px 30px;border-radius:var(--r-l);border:0}
.pr-card.pop{box-shadow:inset 0 1px 0 var(--lg-spec),0 0 0 .5px var(--lg-edge),0 30px 60px -30px color-mix(in srgb,#7B61FF 60%,transparent)}
.pr-card.pop::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;background:var(--brand);z-index:2;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude}

.pr-name{display:flex;align-items:center;gap:10px;margin:0 0 10px;min-width:0}
.pr-name h2{margin:0;font-family:var(--head);font-weight:700;font-size:23px;letter-spacing:-.015em;line-height:1.2;color:var(--ink)}
/* plan marks: a small tile per plan, rising from slate (Core) to the brand gradient (Pro) to navy lit violet (Elite) */
.pr-tile{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 6px 14px -8px rgba(16,16,20,.55)}
.pr-tile svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pr-tile.core{background:linear-gradient(145deg,#4B4F60,#23252F)}
.pr-tile.pro{background:var(--brand)}
.pr-tile.elite{background:radial-gradient(120% 120% at 20% 0%,#7B61FF 0,#2B2470 48%,#0F1230 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 0 1px rgba(123,97,255,.35),0 8px 18px -8px rgba(123,97,255,.7)}
.pr-badge{margin-left:auto;flex:none;padding:5px 11px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;color:#fff;background:var(--brand)}
.pr-line{margin:0 0 22px;font-size:15px;line-height:1.5;color:var(--muted);text-wrap:pretty}

.pr-price{margin:0 0 20px}
.pr-amt{display:flex;align-items:baseline;gap:6px;margin:0}
.pr-amt b{font-family:var(--head);font-weight:700;font-size:clamp(44px,4vw,54px);letter-spacing:-.035em;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.pr-amt span{font-size:15px;color:var(--muted)}
.pr-yr{margin:10px 0 0;font-size:13.5px;line-height:1.4;color:var(--muted);font-variant-numeric:tabular-nums}
.pr-extra{margin:0;font-size:13.5px;line-height:1.4;font-weight:600;color:var(--c-sys,#5B45D6);font-variant-numeric:tabular-nums}
.pr-extra:empty{display:none}
/* with the controls on, the line is always there (empty or not), so stepping never moves the buttons */
.pr-live .pr-extra{display:block;min-height:1.4em;margin-top:4px}

.pr-cta{justify-content:center;width:100%;margin:0 0 24px}
.pr-card .btn-ghost{background:var(--card)}
.pr-card.pop .btn-solid{background:var(--ink);border-color:var(--ink)}

.pr-list{list-style:none;margin:0;padding:22px 0 0;border-top:1px solid var(--line);display:grid;gap:11px;align-content:start;font-size:15px;line-height:1.45;color:var(--ink-2)}
.pr-list li{position:relative;padding-left:28px;text-wrap:pretty}
.pr-list li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;background:var(--ok);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.pr-list li.b,.pr-list li b{font-weight:600;color:var(--ink)}
.pr-list li.lead{padding-left:0;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pr-list li.lead::before{content:none}
/* the agents: their badge from the app in place of the check */
.pr-list li.pr-ag{display:flex;gap:10px;align-items:flex-start;padding-left:0}
.pr-list li.pr-ag::before{content:none}
.pr-list li.pr-ag .ag{width:24px;height:24px;border-radius:7px;font-size:9.5px;margin:0;flex:none;transform:translateY(-1px)}

/* under the plans */
.pr-perks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;margin:30px 0 0;padding:0;list-style:none;font-size:14.5px;font-weight:500;color:var(--ink-2)}
.pr-perks li{display:inline-flex;align-items:center;gap:9px}
.pr-perks li::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;
  background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
:root[data-theme="dark"] .pr-perks li::before{background-color:#2E7D4F}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pr-perks li::before{background-color:#2E7D4F}}

/* ─── Sections below ─── */
.pr-sec{padding-block:clamp(56px,7vw,104px)}

/* compare plans: a full table, sticky plan names, grouped rows */
.pr-cmp-wrap{border-radius:var(--r-l);background:var(--card);box-shadow:0 0 0 1px var(--line),0 24px 48px -40px rgba(16,16,20,.4)}
.pr-cmp{width:100%;border-collapse:separate;border-spacing:0;font-size:15px}
.pr-cmp thead th,.pr-cmp thead td{position:sticky;top:76px;z-index:2;background:var(--card);padding:18px 18px 16px;border-bottom:1px solid var(--line);vertical-align:bottom}
.pr-cmp thead tr>*:first-child{border-top-left-radius:var(--r-l)}
.pr-cmp thead tr>*:last-child{border-top-right-radius:var(--r-l)}
.pr-cmp thead th{text-align:left;font-family:var(--head);font-weight:700;font-size:18px;color:var(--ink);width:22%}
.pr-cmp thead th .pr-tile{width:24px;height:24px;border-radius:7px;margin-right:9px;vertical-align:-6px}.pr-cmp thead th .pr-tile svg{width:13px;height:13px}
.pr-cmp thead th small{display:block;margin-top:4px;font-family:var(--body);font-weight:500;font-size:13px;color:var(--muted)}
.pr-cmp thead th.pop{color:var(--c-sys,#5B45D6)}
.pr-cmp tbody th{text-align:left;font-weight:400;color:var(--ink-2);padding:13px 18px;line-height:1.45}
.pr-cmp tbody td{padding:13px 18px;color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
.pr-cmp tbody tr>*{border-top:1px solid var(--line)}
.pr-cmp tbody td:nth-child(3){background:color-mix(in srgb,#7B61FF 5%,transparent)}
.pr-cmp tr.grp th{padding:22px 18px 10px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--sec,var(--accent));border-top:0;background:transparent}
.pr-cmp tbody th .ag{width:22px;height:22px;border-radius:6px;font-size:9px;margin-right:9px;vertical-align:-5px}
.pr-y{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:0;
  background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.pr-n{color:var(--muted);font-weight:400}
:root[data-theme="dark"] .pr-y{background-color:#2E7D4F}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pr-y{background-color:#2E7D4F}}

/* extras and examples */
.pr-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(28px,4vw,64px);align-items:start}
.pr-h{margin:0 0 18px;font-size:clamp(26px,2.6vw,34px);line-height:1.1}
.pr-rows{margin:0;border-radius:var(--r-m);overflow:hidden}
.pr-rows>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:14px 20px;border-top:1px solid var(--line)}
.pr-rows>div:first-child{border-top:0}
.pr-rows dt{font-size:15px;line-height:1.45;color:var(--ink-2)}
.pr-rows dd{flex:none;margin:0;text-align:right;font-family:var(--head);font-weight:700;font-size:15.5px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.pr-table{width:100%;border-collapse:separate;border-spacing:0;border-radius:var(--r-m);overflow:hidden;font-size:14.5px}
.pr-table th{padding:12px 16px;text-align:left;vertical-align:bottom;font-size:11.5px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;line-height:1.35;color:var(--muted)}
.pr-table td{padding:14px 16px;border-top:1px solid var(--line);line-height:1.45;color:var(--ink-2);vertical-align:baseline}
.pr-table .n{text-align:right;white-space:nowrap}
.pr-table th.n:last-child{white-space:normal;min-width:12ch}
.pr-table td.n{font-family:var(--head);font-weight:700;font-size:15.5px;color:var(--ink);font-variant-numeric:tabular-nums}
.pr-table .pr-biz{display:block;margin-bottom:7px;color:var(--ink);font-weight:500}
.pr-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 7px;border-radius:999px;font-size:12.5px;font-weight:600;color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);white-space:nowrap}
.pr-chip::before{content:"";width:9px;height:9px;border-radius:3px}
.pr-chip.core::before{background:linear-gradient(145deg,#4B4F60,#23252F)}
.pr-chip.pro::before{background:var(--brand)}
.pr-chip.elite::before{background:radial-gradient(120% 120% at 20% 0%,#7B61FF,#2B2470 48%,#0F1230)}

/* ─── Narrower screens ─── */
@media (max-width:1100px){.pr-card{padding:24px 20px 26px}.pr-more{grid-template-columns:minmax(0,1fr)}}
@media (max-width:899px){
  .pr-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:16px;max-width:560px;margin-inline:auto}
  .pr-card{grid-row:auto;grid-template-rows:none}
  .pr-controls{max-width:560px;margin-inline:auto;justify-content:center}
  /* the comparison: plan columns stay readable; the row labels wrap */
  .pr-cmp{font-size:14px}
  .pr-cmp thead th{font-size:16px}
  .pr-cmp tbody th,.pr-cmp tbody td,.pr-cmp thead th,.pr-cmp thead td{padding-inline:12px}
}
@media (max-width:760px){
  .pr-top{padding-top:12px;padding-bottom:40px}
  .pr-head h1{font-size:clamp(34px,9.5vw,40px)}
  .pr-bill button{height:38px;padding:0 14px;font-size:14px}
  .pr-team{font-size:14px}
  .pr-card{padding:22px 18px;border-radius:22px}
  .pr-name h2{font-size:21px}
  .pr-line{margin-bottom:16px;font-size:14.5px}
  .pr-cta{margin-bottom:20px}
  .pr-list{gap:9px;padding-top:18px;font-size:14.5px}
  .pr-perks{flex-direction:column;align-items:flex-start;gap:10px;max-width:560px;margin:24px auto 0}
  .pr-sec{padding-block:44px}
  .pr-rows>div{padding:12px 16px;gap:14px}
  .pr-rows dt{font-size:14.5px}
  /* the comparison on a phone: each row's label above its three values */
  .pr-cmp thead th,.pr-cmp thead td{top:68px;padding:12px 8px 10px}
  .pr-cmp thead td{display:none}
  .pr-cmp thead tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .pr-cmp thead th{width:auto;font-size:14.5px;text-align:center}
  .pr-cmp thead th .pr-tile{display:grid;margin:0 auto 6px}
  .pr-cmp thead th small{font-size:12px}
  .pr-cmp tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
  .pr-cmp tbody tr>*{border-top:0}
  .pr-cmp tbody th{grid-column:1/-1;padding:12px 14px 2px;font-size:13.5px}
  .pr-cmp tbody td{padding:4px 8px 12px;text-align:center;font-size:14px}
  .pr-cmp tbody td:nth-child(3){background:transparent}
  .pr-cmp tr.grp{border-top:0}
  .pr-cmp tr.grp th{padding:18px 14px 6px}
}
@media (max-width:600px){
  .pr-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pr-table,.pr-table tbody{display:block}
  .pr-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px 14px;padding:14px 16px;border-top:1px solid var(--line)}
  .pr-table tr:first-child{border-top:0}
  .pr-table td{display:block;padding:0;border:0}
  .pr-table td.biz{grid-column:1/-1}
  .pr-table .pr-biz{font-weight:600;margin-bottom:6px}
  .pr-table td.n{text-align:left}
  .pr-table td.n::before{content:attr(data-l) " ";font-family:var(--body);font-weight:400;font-size:12.5px;color:var(--muted)}
  .pr-table td:last-child{text-align:right}
}
@media (prefers-reduced-motion:reduce){.pr-bill button,.pr-step button{transition:none}}

/* ─── Nexus, the Elite headline: a navy panel with what you can ask it ─── */
.pr-ag-nx a{color:var(--c-sys,#5B45D6);font-weight:600;text-decoration:none;white-space:nowrap}
.pr-ag-nx a:hover{text-decoration:underline}
.pr-nxsec{padding-top:0}
.pr-nx{position:relative;overflow:hidden;padding:clamp(26px,4vw,56px);border-radius:var(--r-l);color:#fff;
  background:radial-gradient(60% 80% at 100% 0%,rgba(123,97,255,.34),transparent 70%),radial-gradient(50% 70% at 0% 100%,rgba(255,107,43,.2),transparent 70%),var(--app-navy,#0F1230);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 32px 64px -36px rgba(15,18,48,.7)}
.pr-nx-head{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,5fr);gap:clamp(18px,3.5vw,56px);align-items:end;margin-bottom:clamp(22px,3vw,36px)}
.pr-nx-k{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.pr-nx-k .ag{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}
.pr-nx h2{margin:0;color:#fff;font-size:clamp(30px,3.4vw,48px);line-height:1.05;text-wrap:balance}
.pr-nx h2 .hx{background:linear-gradient(90deg,#FF9A6B,#B3A3FF);-webkit-background-clip:text;background-clip:text}
.pr-nx-lede{margin:0 0 16px;font-size:16px;line-height:1.55;color:rgba(255,255,255,.8);max-width:52ch}
.pr-nx-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin-top:clamp(20px,2.6vw,30px);padding-top:clamp(18px,2.2vw,24px);border-top:1px solid rgba(255,255,255,.14)}
.pr-nx-foot p{margin:0;font-size:14.5px;line-height:1.5;color:rgba(255,255,255,.74);max-width:62ch}
.pr-nx-cta{background:#fff;color:var(--app-navy,#0F1230)}
.pr-nx-cta:hover{background:#fff}
@media (max-width:900px){.pr-nx-head{grid-template-columns:minmax(0,1fr);align-items:start}}
@media (max-width:600px){.pr-nx-foot .btn{width:100%;justify-content:center}}

/* the header says whose prices these are: Reflex, not the services we build */
.pr-pill{margin-bottom:clamp(14px,1.8vw,22px)}
.pr-note{display:block;margin-top:12px;font-size:14.5px;color:var(--muted)}
.pr-note a{color:var(--ink);font-weight:600;text-decoration:none;border-bottom:1px solid var(--line-2,var(--line))}
.pr-note a:hover{border-bottom-color:currentColor}
.pr-nxsec{scroll-margin-top:96px}
