1import{b9 as H,by as e,I as h,f as c,K as g,b as _,aJ as T,M as A,bn as B,b2 as d,l as Z,ck as q,aa as E,co as K,bK as S,c5 as W,bI as J,bt as I,P as G,O as Q,aK as V,a as X,c0 as ee,aZ as R,c9 as C}from"./index-y28yOZmh.js";import{B as y}from"./badge-CqeKbgE-.js";import{Z as se}from"./zap-D6gqNXAa.js";import{C as L}from"./circle-check-NpgOe8r5.js";import{L as M}from"./lock-9lBBodNL.js";import{S as ae}from"./shield-check-GsjQsiHQ.js";import{t as z}from"./analytics-DHjWvoTs.js";import{C as Y}from"./credit-card-CzyxQ93q.js";const te=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],D=H("user-check",te),re={muted:"border-border/55 bg-card/55 hover:border-border",standard:"border-border/70 bg-card shadow-card hover:border-primary/35 hover:shadow-pop",featured:"border-primary/45 bg-gradient-to-b from-primary/[0.09] via-card to-card shadow-pop ring-1 ring-primary/15 hover:border-primary/70"};function F({tone:n,name:m,tagline:x,price:f,cadence:p,meta:t,features:u,ribbon:a,footnote:s,children:i}){const r=a?.icon;return e.jsxs("div",{className:d("relative flex flex-col rounded-[1.6rem] border p-6 backdrop-blur-sm transition-all duration-300 sm:p-7",re[n],n==="featured"?"lg:-translate-y-2":"hover:-translate-y-0.5"),children:[a&&e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2",children:e.jsxs(y,{variant:a.emphasis?"default":"secondary",className:d("gap-1.5 rounded-full px-3 py-0.5 text-[10px] font-bold tracking-[0.12em] uppercase shadow-sm",a.emphasis?"bg-primary text-primary-foreground":"border border-primary/30"),children:[r&&e.jsx(r,{className:"size-3 shrink-0"}),a.label]})}),e.jsxs("div",{className:"min-h-[3.25rem]",children:[e.jsx("h3",{className:"font-[family-name:var(--font-editorial)] text-2xl font-medium tracking-tight text-foreground",children:m}),e.jsx("p",{className:"mt-1 text-[13px] leading-snug text-muted-foreground text-pretty",children:x})]}),e.jsxs("div",{className:"mt-5 flex items-baseline gap-1",children:[e.jsx("span",{className:d("text-[2.75rem] leading-none font-semibold tracking-[-0.03em] tabular-nums",n==="featured"?"text-primary":"text-foreground"),children:f}),p&&e.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:p})]}),e.jsx("p",{className:"mt-1.5 text-[11px] font-medium tracking-wide text-muted-foreground",children:t}),e.jsx("div",{className:"mt-5 h-px bg-gradient-to-r from-border via-border/60 to-transparent"}),e.jsx("ul",{className:"mt-5 flex-1 space-y-2.5",children:u.map(o=>e.jsxs("li",{className:"flex items-start gap-2.5 text-[13px]",children:[e.jsx("span",{className:d("mt-px grid size-4 shrink-0 place-items-center rounded-full",n==="featured"?"bg-primary/15 text-primary":"bg-success/12 text-success"),children:e.jsx(Z,{className:"size-2.5",strokeWidth:3})}),e.jsx("span",{className:"leading-snug font-medium text-foreground/85 text-pretty",children:o})]},o))}),e.jsxs("div",{className:"mt-6",children:[i,e.jsx("p",{className:"mt-2 text-center text-[11px] text-muted-foreground",children:s})]})]})}function ie({plans:n,onSelect:m,currentPlan:x,selectedPlanId:f,busyPlan:p,showFree:t=!1,freeHref:u="/signup",freeIsCurrent:a=!1}){return e.jsxs("div",{className:"flex w-full flex-col items-center",children:[e.jsxs("div",{className:d("grid w-full items-stretch gap-5 sm:gap-6",t?"max-w-6xl lg:grid-cols-3":"max-w-4xl lg:grid-cols-2"),children:[t&&e.jsx(F,{tone:"muted",name:h.name,tagline:h.tagline,price:"$0",meta:`No card · ${h.applicationsLimit} applications for life`,features:h.features,ribbon:a?{label:"Your plan",emphasis:!1}:void 0,footnote:"No card required · Upgrade when you run out",children:e.jsx(c,{asChild:!0,variant:"outline",className:"h-12 w-full rounded-xl text-sm font-bold",disabled:a,children:e.jsx(g,{to:u,children:a?"Your plan":e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[h.ctaLabel,e.jsx(_,{className:"size-4"})]})})})}),n.map(s=>{const i=s.monthlyUsd,r=x===s.id,o=f===s.id&&!r,b=p===s.id,j=s.popular,v=Math.round(i/30*100),k=s.applicationsLimit==="unlimited"?"Unlimited applications":`${s.applicationsLimit.toLocaleStr
1ing()} applications / month`,w=r?{label:"Your plan",emphasis:!1}:j?{label:"Most popular",icon:T,emphasis:!0}:o?{label:"Selected",emphasis:!0}:void 0;return e.jsx(F,{tone:j?"featured":"standard",name:s.name,tagline:s.tagline,price:B(i),cadence:"/mo",meta:`${k} · about ${v}¢ a day`,features:s.features,ribbon:w,footnote:"Instant activation · Cancel anytime",children:e.jsx(c,{className:d("h-12 w-full cursor-pointer rounded-xl text-sm font-bold transition-all duration-200 active:scale-[0.985]",j?"bg-primary text-primary-foreground shadow-lg shadow-primary/25 hover:bg-primary/90 hover:shadow-primary/35":"bg-foreground text-background shadow-xs hover:bg-foreground/90"),disabled:r||b,onClick:()=>m(s.id),children:b?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[e.jsx(A,{className:"size-4 animate-spin"}),"Connectingâ¦"]}):r?"Your plan":e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[s.ctaLabel," â ",B(i),"/mo",e.jsx(_,{className:"size-4"})]})})},s.id)})]}),e.jsxs("div",{className:d("mt-8 flex w-full flex-col gap-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",t?"max-w-6xl":"max-w-4xl"),children:[e.jsx("div",{className:"flex flex-wrap gap-2",children:[{icon:se,label:"Instant activation",color:"text-primary"},{icon:L,label:"1-click cancel",color:"text-success"},{icon:M,label:"256-bit SSL",color:"text-primary"},{icon:ae,label:"Zero ghost jobs",color:"text-success"}].map(({icon:s,label:i,color:r})=>e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-border/50 bg-card/60 px-3 py-1.5 text-[11px] font-medium text-muted-foreground",children:[e.jsx(s,{className:d("size-3 shrink-0",r)}),i]},i))}),e.jsxs("p",{className:"text-[11px] leading-relaxed text-muted-foreground sm:max-w-xs sm:text-right",children:[e.jsx("strong",{className:"font-semibold text-foreground",children:"Why pay at all?"})," Free covers"," ",h.applicationsLimit," successful applications for life. Paid plans lift the monthly ceiling and fund the browser time every submission actually costs."]})]})]})}function ue(){const n=q(),{checkout:m,plan:x,blocked:f,new_signup:p}=E.useSearch(),{data:t,isPending:u}=K(),{subscription:a,plans:s}=E.useLoaderData(),[i,r]=S.useState(null),[o,b]=S.useState(!1),j=W(a),v=a?.planId?J(a.planId):null;S.useEffect(()=>{z("pricing_viewed",{hasActiveSubscription:I(a),currentPlan:a?.planId??null})},[a]);const k=x==="starter"||x==="pro"?x:m==="starter"||m==="pro"?m:"pro",w=!!(f||p||t&&!u);async function O(l){if(u||i)return;if(!t){n({to:"/signup",search:{plan:l}});return}r(l),z("pricing_checkout_initiated",{planId:l,billingPeriod:"monthly"});const{data:N,error:P}=await R.dodopayments.checkoutSession({slug:l,metadata:{userId:t.user.id}});if(P||!N?.url){C.error(P?.message??"Could not start checkout. Please try again."),r(null);return}window.location.href=N.url}async function $(){if(!o){b(!0),z("pricing_portal_opened",{currentPlan:a?.planId??null});try{const{data:l,error:N}=await R.dodopayments.customer.portal();if(l?.url){window.location.href=l.url;return}C.error(N?.message??"Could not open the billing portal.")}catch{C.error("Network error - please retry")}finally{b(!1)}}}async function U(){await ee(),n({to:"/login"})}return e.jsxs("div",{className:"market-shell bg-background text-foreground min-h-dvh",children:[e.jsx("header",{className:"dark:bg-background/90 sticky top-0 z-50 border-b border-black/6 bg-[#fffaf2]/85 shadow-[0_1px_0_rgba(255,255,255,.72)] backdrop-blur-xl dark:border-white/8",children:e.jsxs("div",{className:"mx-auto flex h-16 max-w-[1440px] items-center justify-between gap-4 px-4 sm:px-6 md:h-[72px] md:px-8 lg:px-12",children:[e.jsx(g,{to:"/",className:"flex shrink-0 items-center",children:e.jsx(G,{className:"[&_span:last-child]:text-[18px] [&_span:last-child]:font-bold sm:[&_span:last-child]:text-[19px]"})}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-2.5",children:[t?.user?e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(c,{asChild:!0,size:"sm",className:"h-8 rounded-full px-3 text-xs sm:h-9 sm:px-4 sm:text-sm font-medium",children:e.jsx(g,{to:"/app",children:"Dashboard"})}
1),e.jsx("span",{className:"text-foreground/75 hidden text-xs font-medium sm:inline-block",children:t.user.email}),e.jsxs(c,{variant:"ghost",size:"sm",onClick:U,className:"gap-1.5 text-xs text-foreground/60 hover:text-foreground",children:[e.jsx(Q,{className:"size-3.5"}),"Sign out"]})]}):e.jsxs(e.Fragment,{children:[e.jsx(c,{asChild:!0,variant:"ghost",size:"sm",className:"hidden text-xs sm:inline-flex md:text-sm",children:e.jsx(g,{to:"/login",search:{next:"/pricing"},children:"Log in"})}),e.jsx(c,{asChild:!0,size:"sm",className:"h-8 rounded-full px-3.5 text-xs sm:h-9 sm:px-5 sm:text-sm",children:e.jsx(g,{to:"/signup",search:{next:"/pricing"},children:"Sign up"})})]}),e.jsx(V,{})]})]})}),e.jsxs("main",{className:"flex-1",children:[e.jsx("section",{className:"border-b border-black/6 bg-[#ece8ff] dark:bg-primary/8 dark:border-white/8",children:e.jsx("div",{className:"mx-auto max-w-5xl px-4 py-8 sm:px-6 sm:py-10 md:px-8",children:j?e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsxs(y,{variant:"outline",className:"mb-3 gap-1.5 rounded-full bg-white/70 dark:bg-card text-xs font-semibold",children:[e.jsx(Y,{className:"size-3"}),"Billing Paused"]}),e.jsx("h1",{className:"text-3xl leading-[1.05] font-semibold tracking-[-0.04em] text-balance sm:text-4xl md:text-5xl",children:"Your plan is paused"}),e.jsxs("p",{className:"text-foreground/62 mt-3 text-sm leading-6 sm:text-base sm:leading-7 max-w-lg mx-auto",children:["Your ",v??""," plan is paused because the last charge didnât go through. Update your payment method in the billing portal to restore access."]}),e.jsx("div",{className:"mt-5 flex justify-center",children:e.jsx(c,{onClick:$,disabled:o,className:"gap-2 rounded-full",children:o?e.jsxs(e.Fragment,{children:[e.jsx(A,{className:"size-4 animate-spin"}),"Opening billing portalâ¦"]}):e.jsxs(e.Fragment,{children:[e.jsx(Y,{className:"size-4"}),"Manage billing"]})})}),t?.user&&e.jsxs("div",{className:"mt-3 inline-flex items-center gap-1.5 rounded-full border border-black/8 dark:border-white/10 bg-white/60 dark:bg-card/60 px-3 py-1 text-xs font-medium text-foreground/70 backdrop-blur-sm",children:[e.jsx(D,{className:"size-3.5 text-success"}),"Signed in as ",e.jsx("strong",{className:"text-foreground font-semibold",children:t.user.email})]})]}):w?e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsxs(y,{variant:"outline",className:"mb-3 gap-1.5 rounded-full bg-white/70 dark:bg-card text-xs font-semibold",children:[e.jsx(M,{className:"size-3"}),"Raise your limit"]}),e.jsx("h1",{className:"text-3xl leading-[1.05] font-semibold tracking-[-0.04em] text-balance sm:text-4xl md:text-5xl",children:"Choose your plan"}),e.jsx("p",{className:"text-foreground/62 mt-3 text-sm leading-6 sm:text-base sm:leading-7 max-w-lg mx-auto",children:"Free covers 10 successful applications for life, no card. Paid plans lift the monthly ceiling when your search needs more."}),t?.user&&e.jsxs("div",{className:"mt-3 inline-flex items-center gap-1.5 rounded-full border border-black/8 dark:border-white/10 bg-white/60 dark:bg-card/60 px-3 py-1 text-xs font-medium text-foreground/70 backdrop-blur-sm",children:[e.jsx(D,{className:"size-3.5 text-success"}),"Signed in as ",e.jsx("strong",{className:"text-foreground font-semibold",children:t.user.email})]})]}):e.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[e.jsx(y,{variant:"outline",className:"mb-3 gap-1.5 rounded-full bg-white/70 dark:bg-card text-xs font-semibold",children:"Candidate Pricing"}),e.jsx("h1",{className:"font-[family-name:var(--font-editorial)] text-[2.1rem] leading-[1.02] font-medium tracking-[-0.03em] text-balance sm:text-5xl md:text-[3.4rem]",children:"Invest in a job search that works."}),e.jsx("p",{className:"text-foreground/62 mt-4 text-sm leading-6 sm:text-base sm:leading-7 max-w-lg mx-auto text-pretty",children:"Start free â 10 applications, no card. Paid plans start at $5/mo: live remote SDE jobs you can actually apply to, approval-gated auto-apply at volume, and your personal Answer Library."}),e.jsx("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-2",children:["Remote SDE roles only","Every listing scored for ghost-job risk","You approve every application"].map(l=>e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-black/8 bg-white/60 px-3 py-1 text-[11px] font-medium text-foreground
1/70 backdrop-blur-sm dark:border-white/10 dark:bg-card/60",children:[e.jsx(L,{className:"size-3 shrink-0 text-success"}),l]},l))})]})})}),e.jsx("section",{className:"mx-auto max-w-5xl px-4 py-8 sm:px-6 sm:py-10 md:px-8",children:e.jsx(ie,{plans:s,onSelect:O,selectedPlanId:k,busyPlan:i,showFree:!0,freeHref:t?"/app":"/signup",freeIsCurrent:!!t&&!I(a)})})]}),e.jsx("footer",{className:"border-t border-black/8 bg-[#211a28] text-white dark:border-white/8",children:e.jsxs("div",{className:"mx-auto flex max-w-5xl flex-col gap-2 px-4 py-5 sm:flex-row sm:items-center sm:justify-between sm:px-6 md:px-8",children:[e.jsx("div",{className:"flex items-center gap-4",children:e.jsx(c,{asChild:!0,variant:"ghost",size:"sm",className:"gap-2 text-white/60 hover:text-white hover:bg-white/10",children:e.jsxs(g,{to:"/",children:[e.jsx(X,{className:"size-4"})," Back to home"]})})}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-white/42",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(L,{className:"size-3.5 text-emerald-400"}),"256-Bit SSL Encrypted"]}),e.jsxs("span",{children:["© ",new Date().getFullYear()," Hireeing"]})]})]})})]})}export{ue as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.