{"version":3,"file":"PricingFAQ.CjGUI0Fk.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/4bPKfEQtWHfxJV0Y1FML/hGCuZfnDYLRolfB0qAuN/PricingFAQ.js"],"sourcesContent":["// livemy.app — Pricing FAQ v4 (accordion)\n// Per livemy-pricing-spec-v7 — 8 honest answers, no redeploy concept\n// Default ALL closed. Railway is primary competitor (Q1).\n// Auto-emits FAQPage JSON-LD schema for rich snippets + AI Overview.\n// @framerDisableUnlink\n// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight auto\n// @framerIntrinsicWidth 1200\n// @framerIntrinsicHeight 800\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";/* ── Responsive hook ── */function useContainerWidth(){const ref=useRef(null);const[w,setW]=useState(1200);useEffect(()=>{const el=ref.current;if(!el)return;const ro=new ResizeObserver(entries=>{for(const e of entries)setW(e.contentRect.width);});ro.observe(el);setW(el.getBoundingClientRect().width);return()=>ro.disconnect();},[]);return[ref,w];}/* ── Tokens ── */const T={bgBase:\"#09090B\",bgSurface:\"#18181B\",textPrimary:\"#FAFAFA\",textSecondary:\"#A1A1AA\",textTertiary:\"#71717A\",accent:\"#6366F1\",accentHover:\"#818CF8\",borderSubtle:\"rgba(255,255,255,0.06)\",font:\"'Inter', -apple-system, sans-serif\"};/* ── Schema helpers ── */function escapeJson(s){return(s||\"\").replace(/\\\\/g,\"\\\\\\\\\").replace(/\"/g,'\\\\\"').replace(/\\n/g,\" \").replace(/<\\/script/gi,\"<\\\\/script\");}function buildFaqSchema(items){const entities=items.filter(i=>i.q&&i.a).map(i=>`{\"@type\":\"Question\",\"name\":\"${escapeJson(i.q)}\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"${escapeJson(i.a)}\"}}`).join(\",\");return`{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[${entities}]}`;}function slugify(s){return(s||\"\").toLowerCase().replace(/[^\\w\\s-]/g,\"\").replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\").slice(0,60);}/* ── Default FAQ data (per v7 spec, Vercel first) ── */const DEFAULT_FAQS=[{q:\"What's the difference between livemy.app and Railway?\",a:\"Railway charges per RAM, CPU, and bandwidth — usage-based billing that gets unpredictable when traffic spikes. We charge a flat monthly fee with hard limits and unlimited traffic, so your bill is the same in a quiet month and a viral month. We also keep a Free plan forever (Railway shut theirs down in 2023), include a built-in AI deploy assistant, and let you connect your own VM if you have AWS, Hetzner, or other cloud credits. Comparing to Vercel or Heroku? Those target serverless and frontend — we focus on full Docker apps with persistent processes.\"},{q:\"What's a deploy vs an AI assist?\",a:\"A deploy is a new version of your project shipping to production — typically triggered by a Git push or a fresh commit. An AI assist is an interactive request to our AI agent (debugging help, deploy configuration, error explanation). They're metered separately because they cost different amounts. Free gets 5 deploys + 10 AI assists per month. Maker gets 50 + 50. Pro gets unlimited deploys + 200 AI assists. Need more AI assists mid-month? Buy a pack of 50 for $7 — packs never expire.\"},{q:\"What happens to my Free app when it goes idle?\",a:\"Free projects stop running after 60 minutes of inactivity to keep the platform sustainable. To resume, click \\\"Start\\\" in your dashboard — the project loads from a saved image. External requests don't wake sleeping projects, so Free isn't suitable for hosting a public production app. If you need always-on uptime, Maker ($20/mo) keeps your app running 24/7.\"},{q:\"What if I exceed my plan limits?\",a:\"We notify you before you hit any limit — your apps stay live, we never kill traffic. For one-off needs, paid plans can add extras: $5/mo per extra project, $7 per 50-pack of AI assists (no expiration), $1/GB extra storage on Maker, $0.50/GB on Pro. If a usage pattern means you'd save money on the next tier, we'll suggest upgrading. No surprise charges, ever.\"},{q:\"Can I bring my own server (BYO VM)?\",a:\"Yes. Maker and Pro can connect any VM from AWS, GCP, Hetzner, DigitalOcean, OVH, or any other provider, and deploy projects there. livemy.app charges $3/mo per connected VM as a platform fee covering the deployment pipeline, monitoring, log aggregation, and dashboard — you pay your VM provider directly for compute. Useful if you have cloud credits, need a specific region for compliance, or want to scale beyond our shared tier.\"},{q:\"Can I upgrade or downgrade anytime?\",a:\"Yes. Upgrades take effect immediately, prorated. Downgrades start next billing cycle. Cancellation is one click in the dashboard — no email tickets, no retention calls.\"},{q:\"Is there a free trial for paid plans?\",a:\"The Free plan is free forever — try the product as long as you want. For Maker and Pro, we offer a 14-day money-back guarantee. If it's not for you in two weeks, full refund.\"}];/* ── Plus/Minus icon (rotates 45° to become an X) ── */function ToggleIcon({isOpen}){return /*#__PURE__*/_jsx(\"div\",{style:{width:24,height:24,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flexShrink:0,transition:\"transform 0.3s ease\",transform:isOpen?\"rotate(45deg)\":\"rotate(0deg)\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 16 16\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 3V13M3 8H13\",stroke:isOpen?T.accent:T.textTertiary,strokeWidth:\"1.5\",strokeLinecap:\"round\"})})});}/* ── Single FAQ Item ── */function FAQItem({question,answer,slug,isOpen,onToggle,isHovered,onHover,onLeave}){const contentRef=useRef(null);const[contentHeight,setContentHeight]=useState(0);useEffect(()=>{if(contentRef.current){setContentHeight(contentRef.current.scrollHeight);}},[answer,isOpen]);return /*#__PURE__*/_jsxs(\"div\",{id:slug?`pricing-faq-${slug}`:undefined,onMouseEnter:onHover,onMouseLeave:onLeave,style:{borderBottom:`1px solid ${T.borderSubtle}`,transition:\"background 0.2s ease\",background:isHovered?\"rgba(99,102,241,0.02)\":\"transparent\"},children:[/*#__PURE__*/_jsxs(\"button\",{onClick:onToggle,\"aria-expanded\":isOpen,style:{width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:16,padding:\"20px 0\",background:\"none\",border:\"none\",cursor:\"pointer\",textAlign:\"left\",fontFamily:T.font},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:16,fontWeight:500,color:isOpen?T.textPrimary:isHovered?T.textPrimary:T.textSecondary,lineHeight:1.5,transition:\"color 0.2s ease\",letterSpacing:\"-0.01em\"},children:question}),/*#__PURE__*/_jsx(ToggleIcon,{isOpen:isOpen})]}),/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\",maxHeight:isOpen?contentHeight:0,transition:\"max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1)\"},children:/*#__PURE__*/_jsx(\"div\",{ref:contentRef,style:{paddingBottom:20,fontSize:15,fontWeight:400,color:T.textTertiary,lineHeight:1.7,letterSpacing:\"-0.01em\"},children:answer})})]});}/* ══════════════════════════════════════════\n   MAIN COMPONENT\n   ══════════════════════════════════════════ */export default function PricingFAQ(props){const{style,headline=\"Pricing questions, answered honestly.\",subheadline=\"\",items=DEFAULT_FAQS,emitSchema=true}=props;const faqs=(items||[]).filter(f=>f&&f.q&&f.a);const[containerRef,containerW]=useContainerWidth();const isMobile=containerW<768;// -1 = ALL closed by default per spec (\"Accordion. Default closed.\")\nconst[openIdx,setOpenIdx]=useState(-1);const[hoveredIdx,setHoveredIdx]=useState(null);return /*#__PURE__*/_jsxs(\"section\",{ref:containerRef,style:{...style,background:T.bgBase,width:\"100%\",minWidth:\"100%\",boxSizing:\"border-box\",fontFamily:T.font,height:\"auto\",position:\"relative\"},children:[emitSchema&&faqs.length>0&&/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:buildFaqSchema(faqs)}}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1200,margin:\"0 auto\",padding:isMobile?\"64px 20px\":\"96px 48px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{textAlign:\"center\",marginBottom:isMobile?40:56},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:isMobile?32:48,fontWeight:700,letterSpacing:\"-0.04em\",lineHeight:1.08,color:T.textPrimary},dangerouslySetInnerHTML:{__html:headline.replace(/\\n/g,\"<br />\")}}),subheadline&&/*#__PURE__*/_jsx(\"p\",{style:{margin:\"16px 0 0\",fontSize:isMobile?15:17,fontWeight:400,lineHeight:1.6,color:T.textSecondary,letterSpacing:\"-0.01em\"},children:subheadline})]}),/*#__PURE__*/_jsx(\"div\",{style:{maxWidth:760,margin:\"0 auto\",borderTop:`1px solid ${T.borderSubtle}`},children:faqs.map((faq,i)=>/*#__PURE__*/_jsx(FAQItem,{question:faq.q,answer:faq.a,slug:slugify(faq.q),isOpen:openIdx===i,onToggle:()=>setOpenIdx(openIdx===i?-1:i),isHovered:hoveredIdx===i,onHover:()=>setHoveredIdx(i),onLeave:()=>setHoveredIdx(null)},i))})]})]});}/* ── Property Controls ── */addPropertyControls(PricingFAQ,{headline:{type:ControlType.String,title:\"Headline\",defaultValue:\"Pricing questions, answered honestly.\",displayTextArea:true},subheadline:{type:ControlType.String,title:\"Subheadline (optional)\",defaultValue:\"\",displayTextArea:true},emitSchema:{type:ControlType.Boolean,title:\"FAQ Schema (JSON-LD)\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",description:\"Emits FAQPage schema for Google rich snippets + AI Overview. Keep on for SEO.\"},items:{type:ControlType.Array,title:\"FAQ Items\",maxCount:16,control:{type:ControlType.Object,controls:{q:{type:ControlType.String,title:\"Question\",defaultValue:\"Question?\"},a:{type:ControlType.String,title:\"Answer\",defaultValue:\"Answer text.\",displayTextArea:true}}},defaultValue:DEFAULT_FAQS}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PricingFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PricingFAQ.map"],"mappings":"+LASqL,SAAS,GAAmB,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAO,CAAC,EAAE,GAAMC,EAAS,IAAI,EAAoO,OAAlO,MAAc,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,EAAG,OA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