1import{c as k,g as C,u as S,b as E,r as m,j as e,P as x,B as i,a3 as P,h as A,S as T,ad as w,C as o,a as l,H as y,y as b,z as j,I as N,L as R,N as H,d as M,a4 as z,T as I,ae as L,Y as B,e as F,s as U}from"./index-DO0ZNUzu.js";import{H as q}from"./house-CUUNLlcb.js";import{A as G}from"./arrow-right-CUzZpWVI.js";import{S as D}from"./smile-DAGHp0Pv.js";import{C as h}from"./check-Cyw8qn0D.js";import{L as $}from"./lock-Be52UAPN.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const W=k("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Z=[{icon:y,chip:"bg-rose-100 text-rose-600",title:"Daily Affirmations",description:"Start each day with words that build her up, not tear her down."},{icon:M,chip:"bg-amber-100 text-amber-600",title:"Affirmation Mirror",description:"She sees her own reflection while speaking confidence into existence."},{icon:z,chip:"bg-fuchsia-100 text-fuchsia-600",title:"Inspiration Gallery",description:"Uplifting images and quotes curated for girls and young women."},{icon:I,chip:"bg-emerald-100 text-emerald-600",title:"Confidence Challenges",description:"Small, fun actions that help her step into her power every day."},{icon:L,chip:"bg-pink-100 text-pink-600",title:"Sisterhood Circles",description:"A safe community where she connects with girls on the same journey."},{icon:B,chip:"bg-sky-100 text-sky-600",title:"Voice Notes",description:"She records her thoughts, prayers, or feelings in a private space."},{icon:F,chip:"bg-indigo-100 text-indigo-600",title:"E-Book & Workbook",description:"A 13-chapter confidence guide with reflection prompts and activities."},{icon:w,chip:"bg-violet-100 text-violet-600",title:"Parent-Approved Safety",description:"No ads, no public comments, no data selling â just positive growth."}],X=()=>{const{toast:p}=C(),{user:u}=S(),g=E(),[r,f]=m.useState(!1),[t,v]=m.useState("");m.useEffect(()=>{document.title="HERPower Membership â Confidence for Every Girl"},[]);const n=async s=>{if(!u){p({title:"Sign in required",description:"Please sign in to start your free trial",variant:"destructive"}),g("/auth");return}try{f(!0);const{data:a,error:c}=await U.functions.invoke("create-checkout-session",{body:{origin:window.location.origin,email:u.email,tier:s,promotionCode:t.trim()||void 0}});if(c)throw c;if(a!=null&&a.url){const d=a.url;if(!window.open(d,"_blank","noopener,noreferrer"))try{window.top&&window.top!==window?window.top.location.href=d:window.location.href=d}catch{window.location.href=d}}else throw new Error("No checkout URL received")}catch(a){p({title:"Checkout failed",description:(a==null?void 0:a.message)||"Please try again.",variant:"destructive"})}finally{f(!1)}};return e.jsxs("div",{className:"min-h-screen bg-background pb-24",children:[e.jsx("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:e.jsxs("div",{className:"container mx-auto px-4 h-16 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"h-6 w-6 text-primary"}),e.jsx("h1",{className:"text-xl font-bold",children:"HERPower Membership"})]}),e.jsxs(i,{variant:"ghost",size:"sm",onClick:()=>g("/dashboard"),className:"gap-2 rounded-full",children:[e.jsx(q,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden sm:inline",children:"Dashboard"})]})]})}),e.jsxs("section",{className:"relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0",children:[e.jsx("img",{src:P.url,alt:"Three diverse young women taking a selfie together",className:"w-full h-full object-cover object-top",loading:"eager"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-background via-background/90 to-background/40"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-background via-trans
6parent to-transparent"})]}),e.jsx("div",{className:"relative container mx-auto px-4 py-10 sm:py-14",children:e.jsxs("div",{className:"max-w-2xl",children:[e.jsxs(A,{variant:"secondary",className:"mb-4 rounded-full px-3 py-1 text-xs font-semibold bg-amber-100 text-amber-700 hover:bg-amber-100",children:[e.jsx(T,{className:"h-3.5 w-3.5 mr-1.5 fill-amber-600 text-amber-600"}),"3-day free trial ⢠Cancel anytime"]}),e.jsx("h2",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-foreground mb-4 leading-tight",children:"Give her a space to grow into who sheâs meant to be."}),e.jsx("p",{className:"text-base sm:text-lg text-muted-foreground mb-6 max-w-xl",children:"HERPower Membership unlocks confidence-building tools, daily encouragement, and a safe sisterhood â designed for middle and high school girls, with parents in mind."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsxs(i,{size:"lg",onClick:()=>n("premium"),disabled:r,className:"rounded-full gap-2 px-6",children:[e.jsx(x,{className:"h-4 w-4"}),r?"Redirectingâ¦":"Start Free Trial",e.jsx(G,{className:"h-4 w-4"})]}),e.jsx(i,{variant:"outline",size:"lg",onClick:()=>n("standard"),disabled:r,className:"rounded-full px-6",children:"Try Standard"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"No credit card required to explore. Cancel before the trial ends and pay nothing."})]})})]}),e.jsxs("main",{className:"container mx-auto px-4 py-8 space-y-12 max-w-6xl",children:[e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[{icon:w,text:"Private & ad-free"},{icon:D,text:"Built for girls 11â18"},{icon:W,text:"Confidence in minutes a day"}].map((s,a)=>{const c=s.icon;return e.jsxs("div",{className:"flex items-center gap-3 p-4 rounded-2xl bg-card border border-border/50",children:[e.jsx("span",{className:"flex items-center justify-center h-10 w-10 rounded-full bg-primary/10 text-primary",children:e.jsx(c,{className:"h-5 w-5"})}),e.jsx("span",{className:"font-medium text-foreground",children:s.text})]},a)})}),e.jsxs("section",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h3",{className:"text-2xl sm:text-3xl font-bold text-foreground mb-3",children:"What she gets every day"}),e.jsx("p",{className:"text-muted-foreground",children:"Tools that meet her where she is â whether she needs a confidence boost, a quiet moment, or a reminder that sheâs not alone."})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Z.map(s=>{const a=s.icon;return e.jsx(o,{className:"border-border/50 bg-card/50 hover:bg-card hover:shadow-soft transition-gentle",children:e.jsxs(l,{className:"p-5",children:[e.jsx("div",{className:`inline-flex items-center justify-center h-11 w-11 rounded-xl mb-4 ${s.chip}`,children:e.jsx(a,{className:"h-5 w-5"})}),e.jsx("h4",{className:"font-semibold text-foreground mb-1",children:s.title}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s.description})]})},s.title)})})]}),e.jsx(o,{className:"overflow-hidden border-border/50 bg-gradient-to-br from-primary/5 to-secondary/20",children:e.jsx(l,{className:"p-6 sm:p-8",children:e.jsxs("div",{className:"flex flex-col sm:flex-row gap-5 items-start",children:[e.jsx("div",{className:"p-3 rounded-xl bg-primary/10 flex-shrink-0",children:e.jsx(y,{className:"h-7 w-7 text-primary"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-bold text-foreground mb-2",children:"Made with parents in mind"}),e.jsx("p",{className:"text-muted-foreground mb-4 max-w-2xl",children:"HERPower is a positive, age-appropriate space. There are no ads, no public comment sections, and no algorithms pushing comparison content. Just daily encouragement, reflection, and sisterhood."}),e.jsx("ul",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm text-foreground",children:["No ads or sponsored content","No public likes or follower counts","Cancel directly from your account","Friendly support within 24 hours"].map(s=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(h,{className:"h-4 w-4 text-primary flex-shrink-0"}),s]},s))})]})]})})}),e.jsxs("section",{className:"space-y-6",id:"pricing",children:[e.jsxs("div",{className:"text-center max-w-2xl mx-auto",children:[e.jsx("h3",{className:"text-2xl sm:text-3xl font-bold text-foreground mb-3",children:"Choose the plan that fits her journey"}),e.jsx("p",{className:"text-muted-foreground",children:"Both plans start with a 3-day free trial. Pick what works now and upgrade anytime."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 max-w-4xl mx-auto",children:[e.jsxs(o,{className:"border-border/50 bg-card/50 backdrop-blur-sm flex flex-col",children:[e.jsxs(b,{children:[e.jsx(j,{className:"text-xl",children:"Standard Membership"}),e.jsx(N,{children:"$5/month after 3-day free trial"})]}),e.jsxs(l,{className:"space-y-5 flex-1 flex flex-col",children:[e.jsx("ul",{className:"space-y-3 flex-1",children:["Limited mirror sessions (5 per day)","Access to profile and basic mood tracking","Complete inspiration gallery","E-book & workbook access"].map(s=>e.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[e.jsx("span",{className:"mt-0.5 flex items-center justify-center h-5 w-5 rounded-full bg-primary/10 text-primary flex-shrink-0",children:e.jsx(h,{className:"h-3 w-3"})}),e.jsx("span",{className:"text-foreground",children:s})]},s))}),e.jsx(i,{className:"w-full rounded-full",size:"lg",onClick:()=>n("standard"),disabled:r,variant:"outline",children:r?"Redirectingâ¦":"Start Free Trial"}),t&&e.jsxs("p",{className:"text-xs text-primary font-medium text-center",children:['â Promo code "',t,'" will be applied']})]})]}),e.jsxs(o,{className:"border-primary/30 bg-gradient-to-b from-primary/5 to-card flex flex-col relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 right-0 bg-primary text-primary-foreground text-xs font-semibold px-3 py-1 rounded-bl-xl",children:"Most Popular"}),e.jsxs(b,{children:[e.jsxs(j,{className:"text-xl flex items-center gap-2",children:["Premium Membership",e.jsx(x,{className:"h-5 w-5 text-primary"})]}),e.jsx(N,{children:"$10/month after 3-day free trial"})]}),e.jsxs(l,{className:"space-y-5 flex-1 flex flex-col",children:[e.jsx("ul",{className:"space-y-3 flex-1",children:["Everything in Standard","Unlimited affirmation mirror sessions","Advanced mood tracking and insights","Exclusive challenges and content","Sisterhood Circles access","Priority new features"].map(s=>e.jsxs("li",{className:"flex items-start gap-3 text-sm",children:[e.jsx("span",{className:"mt-0.5 flex items-center justify-center h-5 w-5 rounded-full bg-primary/10 text-primary flex-shrink-0",children:e.jsx(h,{className:"h-3 w-3"})}),e.jsx("span",{className:"text-foreground",children:s})]},s))}),e.jsx(i,{className:"w-full rounded-full",size:"lg",onClick:()=>n("premium"),disabled:r,children:r?"Redirectingâ¦":"Start Free Trial"}),t&&e.jsxs("p",{className:"text-xs text-primary font-medium text-center",children:['â Promo code "',t,'" will be applied']})]})]})]}),e.jsx(o,{className:"max-w-md mx-auto border-border/50 bg-card/50",children:e.jsx(l,{className:"pt-5 pb-5",children:e.jsxs("div",{className:"space-y-2",children:[e.jsx(R,{htmlFor:"promo-code",className:"text-center block",children:"Have a promo code?"}),e.jsx(H,{id:"promo-code",type:"text",placeholder:"Enter promo code (e.g., Empower50)",value:t,onChange:s=>v(s.target.value.toUpperCase()),className:"text-center rounded-full"}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"It will be automatically applied at checkout."})]})})})]}),e.jsx("div",{className:"text-center max-w-2xl mx-auto",children:e.jsxs("div",{className:"inline-flex items-center gap-2 text-sm text-muted-foreground bg-muted/50 px-4 py-2 rounded-full",children:[e.jsx($,{className:"h-4 w-4"}),"Cancel anytime. No hidden fees. Full refund within 7 days if youâre not happy."]})})]})]})};export{X as default};
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.