1import{u as j,b as w,d as k,e as N,r as o,j as e,V as _,L as d,A as m,B as v,S as P,a as C,R as A}from"./index-D8ds4uvl.js";import{C as L}from"./check-w69YWyaE.js";import{H as R}from"./headphones-DG0xDo45.js";import{L as F}from"./lock-keyhole-MDX3mpxn.js";const S=[{name:"Free",price:"$0",cadence:"forever",description:"Today's story, complete with audio and practice.",cta:"Start reading",to:"/stories",checkoutPlan:null,tone:"border-[#dce4ec] bg-white",button:"border border-[#becbda] bg-white text-[#0b315b]",badge:null,features:["Today's A2 news story","Full reading and questions","Line-by-line audio","Vocabulary hints in context"]},{name:"Pro",price:"$8",cadence:"per month",description:"Unlock the archive and keep your vocabulary growing.",cta:"Join Pro",to:"/sign-up",checkoutPlan:"pro_monthly",tone:"border-[#073f78] bg-[#073f78] text-white shadow-[0_24px_60px_rgba(7,63,120,0.24)]",button:"bg-white text-[#073f78]",badge:"Target plan",features:["Full story archive","Audio for every archive story","Unlimited saved vocabulary","Full review queue and history","New levels as they launch"]},{name:"Founding Lifetime",price:"$149",cadence:"once",description:"Back the product early and keep Pro access.",cta:"Become a founder",to:"/sign-up",checkoutPlan:"founder",tone:"border-[#e0caa0] bg-[#fff8ea]",button:"bg-[#153f2f] text-white",badge:"Limited early offer",features:["Everything in Pro","One-time founding price","Future standard Pro features","Early access to roadmap releases","High-cost custom AI features may use credits later"]}],E=[{title:"No partial stories",body:"If a story is unlocked, the whole learning flow is unlocked: text, questions, hints, vocabulary, and audio.",Icon:v},{title:"Audio stays simple",body:"Free readers get audio on today's story. Pro unlocks audio across the archive.",Icon:R},{title:"The archive becomes the library",body:"Pro is for learners who want more than today's topic: older stories, saved words, and review history.",Icon:F}];function z({checkoutIntent:i}){const h=j(w.billing.createCheckoutSession),{isLoaded:p,user:x}=k(),a=N(),[c,f]=o.useState(null),g=o.useRef(null),n=!!x,l=o.useCallback(s=>{a.capture("pricing_cta_clicked",{plan:s.plan,surface:s.surface,is_checkout:s.isCheckout,is_signed_in:n})},[a,n]),u=o.useCallback(async(s,t)=>{a.capture("checkout_started",{plan:s,surface:t,is_signed_in:n}),f(s);try{const r=await h({checkoutPlan:s,customerEmail:x?.primaryEmailAddress?.emailAddress});window.location.href=r.url}catch(r){const b=r instanceof Error?r.message:"";if(b.includes("Sign in")){a.capture("checkout_redirected_to_sign_up",{plan:s,surface:t,is_signed_in:n});const y=`/pricing?checkout=${encodeURIComponent(s)}`;window.location.href=`/sign-up?redirect_url=${encodeURIComponent(y)}`;return}throw a.capture("checkout_failed",{plan:s,surface:t,is_signed_in:n,message:b}),r}finally{f(null)}},[a,h,n,x]);return o.useEffect(()=>{!i||g.current===i||c||!p||(g.current=i,u(i,"pricing_plan"))},[i,p,c,u]),e.jsxs("main",{className:"min-h-screen bg-[#fbfcfc] text-[#082b55]",children:[e.jsx(_,{}),e.jsxs("section",{className:"mx-auto grid max-w-7xl gap-10 px-5 py-10 lg:px-8 lg:py-16 min-[1500px]:grid-cols-[0.78fr_1.22fr]",children:[e.jsxs("div",{className:"max-w-4xl self-center min-[1500px]:max-w-none",children:[e.jsx("p",{className:"text-sm font-bold uppercase tracking-[0.18em] text-[#197064]",children:"Pricing"}),e.jsx("h1",{className:"mt-5 max-w-4xl font-serif text-5xl leading-[1.02] text-[#082f59] md:text-6xl min-[1500px]:max-w-xl",children:"Read today for free. Unlock the library when the habit sticks."}),e.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-8 text-[#294765]",children:"Verbalane keeps the daily story open, then charges for depth: archive access, vocabulary history, review, and audio across every story."}),e.jsxs("div",{className:"mt-8 flex flex-wrap gap-4",children:[e.jsxs(d,{to:"/stories",className:"inline-flex items-center gap-3 rounded-lg bg-[#073f78] px-6 py-3.5 text-sm font-semibold text-white shadow-[0_14px_28px_rgba(7,63,120,0.2)]",onClick:()=>{l({plan:"free",surface:"pricing_hero",isCheckout:!1})},children:["Try today's story ",e.jsx(m,{size:17})]}),e.jsx(d,{to:"/stories-marketing",className:"inline-flex items-center rounded-lg border border-[#c9d5e4] bg-white px-6 py-3.5 text-sm font-semibold text-[#123b64]",children:"See how stories work"})]})]}),e.jsx("div",{className:"grid items-stretch gap-5 md:grid-cols-3",children:S.map(s=>e.jsxs("article",{className:["grid min-h-[680px] grid-rows-[2rem_8.5rem_5.5rem_7rem_1fr_auto] rounded-lg border p-6 md:min-
1h-[720px]",s.tone].join(" "),children:[e.jsx("span",{className:["inline-flex h-8 items-center justify-center justify-self-start rounded-full px-3 text-xs font-bold text-white",s.badge?"bg-[#f05b35]":"invisible bg-transparent"].join(" "),children:s.badge??"No badge"}),e.jsx("div",{className:"flex items-start pt-4",children:e.jsx("h2",{className:"font-serif text-3xl leading-tight",children:s.name})}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"font-serif text-5xl leading-none",children:s.price}),e.jsx("span",{className:"pt-7 text-sm opacity-75",children:s.cadence})]}),e.jsx("p",{className:"max-w-[17rem] leading-7 opacity-80",children:s.description}),e.jsx("ul",{className:"grid content-start gap-3 text-sm leading-6",children:s.features.map(t=>e.jsxs("li",{className:"flex gap-3",children:[e.jsx(L,{className:"mt-0.5 shrink-0",size:18}),e.jsx("span",{children:t})]},t))}),s.checkoutPlan?e.jsxs("button",{type:"button",className:["mt-8 inline-flex min-h-14 items-center justify-center gap-3 rounded-lg px-5 py-3 text-sm font-bold",s.button].join(" "),disabled:c===s.checkoutPlan,onClick:()=>{l({plan:s.checkoutPlan,surface:"pricing_plan",isCheckout:!0}),u(s.checkoutPlan,"pricing_plan")},children:[c===s.checkoutPlan?"Opening checkout...":s.cta," ",e.jsx(m,{size:17})]}):e.jsxs(d,{to:s.to,className:["mt-8 inline-flex min-h-14 items-center justify-center gap-3 rounded-lg px-5 py-3 text-sm font-bold",s.button].join(" "),onClick:()=>{l({plan:"free",surface:"pricing_plan",isCheckout:!1})},children:[s.cta," ",e.jsx(m,{size:17})]})]},s.name))})]}),e.jsx("section",{className:"mx-auto max-w-7xl px-5 py-10 lg:px-8",children:e.jsx("div",{className:"grid gap-5 md:grid-cols-3",children:E.map(({title:s,body:t,Icon:r})=>e.jsxs("article",{className:"rounded-lg border border-[#dce4ec] bg-white p-6",children:[e.jsx("div",{className:"grid h-11 w-11 place-items-center rounded-full bg-[#eaf3f5] text-[#0b4f83]",children:e.jsx(r,{size:21})}),e.jsx("h3",{className:"mt-5 text-lg font-bold text-[#102f52]",children:s}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-[#465f7a]",children:t})]},s))})}),e.jsx("section",{className:"mx-auto max-w-7xl px-5 py-12 lg:px-8",children:e.jsxs("div",{className:"grid gap-6 rounded-lg bg-[#153f2f] p-7 text-white md:grid-cols-[1fr_auto] md:items-center",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold uppercase tracking-[0.16em] text-[#b6dec9]",children:[e.jsx(P,{size:16})," Founder note"]}),e.jsx("h2",{className:"mt-3 font-serif text-3xl",children:"Lifetime is for early validation, not a hidden subscription trick."}),e.jsx("p",{className:"mt-3 max-w-3xl leading-7 text-[#d7eadf]",children:"Founding Lifetime includes current Pro and future standard Pro features. Expensive future customization, such as custom AI story generation, may use separate fair-use limits or credits."})]}),e.jsxs(d,{to:"/sign-up",className:"inline-flex items-center justify-center gap-3 rounded-lg bg-white px-6 py-3.5 text-sm font-bold text-[#153f2f]",onClick:()=>{l({plan:"founder",surface:"founder_note",isCheckout:!1})},children:["Reserve founder access ",e.jsx(m,{size:17})]})]})}),e.jsx("div",{className:"mx-auto max-w-7xl px-5 lg:px-8",children:e.jsx(C,{})})]})}function V(){const i=A.useSearch();return e.jsx(z,{checkoutIntent:i.checkout})}export{V 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.