(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,86099,e=>{"use strict";var t=e.i(43476),s=e.i(71645);let r=[{title:"Non-Compete Clause",detail:"18-month non-compete covering entire industry nationwide — courts often void these but could cost you years of legal fees to fight.",risk:"HIGH"},{title:"IP Assignment",detail:"Assigns ALL intellectual property including work done on personal time. Your side projects may belong to your employer.",risk:"HIGH"},{title:"At-Will Termination",detail:"Employment terminable for any reason without notice. No severance guaranteed even after years of service.",risk:"MEDIUM"}],a={HIGH:"bg-red-100 text-red-700 border-red-200",MEDIUM:"bg-orange-100 text-orange-700 border-orange-200",LOW:"bg-yellow-100 text-yellow-700 border-yellow-200"},l={HIGH:"bg-red-600 text-white",MEDIUM:"bg-orange-500 text-white",LOW:"bg-yellow-500 text-white"};e.s(["default",0,function(){let[e,n]=(0,s.useState)("idle"),[i,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(""),[x,m]=(0,s.useState)(null),[h,p]=(0,s.useState)(!1),[u,g]=(0,s.useState)([{label:"Reading document...",done:!1},{label:"Identifying clauses...",done:!1},{label:"Assessing risk levels...",done:!1},{label:"Generating preview...",done:!1}]),b=(0,s.useRef)(null);function f(e){c(e.name),m(e),n("analyzing"),[600,1200,1900,2600].forEach((e,t)=>{setTimeout(()=>{g(e=>e.map((e,s)=>s<=t?{...e,done:!0}:e))},e)}),setTimeout(()=>{n("result")},3200)}async function y(){if(!x||h)return;p(!0);let e=crypto.randomUUID(),t=new FileReader;t.onload=async t=>{try{let s=(t.target?.result).split(",")[1];sessionStorage.setItem(e,JSON.stringify({base64:s,fileName:x.name,fileType:x.type}));let r=await fetch("/api/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reportToken:e,fileName:x.name})}),a=await r.json();if(!r.ok||a.error)throw Error(a.error||"Checkout failed");window.location.href=a.url}catch(e){console.error(e),p(!1),alert("Could not start payment. Please try again.")}},t.onerror=()=>{p(!1),alert("Could not read file. Please try again.")},t.readAsDataURL(x)}return"idle"===e?(0,t.jsxs)("div",{id:"upload",onDrop:function(e){e.preventDefault(),o(!1);let t=e.dataTransfer.files[0];t&&f(t)},onDragOver:function(e){e.preventDefault(),o(!0)},onDragLeave:function(){o(!1)},onClick:()=>b.current?.click(),className:`border-2 border-dashed rounded-xl p-10 text-center cursor-pointer transition-all ${i?"border-[#059669] bg-green-50":"border-gray-300 bg-gray-50 hover:border-[#1a3a5c] hover:bg-blue-50"}`,children:[(0,t.jsx)("input",{ref:b,type:"file",accept:".pdf,.docx,.doc,.jpg,.jpeg,.png",className:"hidden",onChange:function(e){let t=e.target.files?.[0];t&&f(t)}}),(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-[#1a3a5c] rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-[#1a3a5c] font-semibold text-lg",children:"Drop your contract here or click to upload"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:"Supports PDF, DOCX, DOC, JPG, PNG"})]}),(0,t.jsx)("button",{type:"button",className:"bg-[#059669] hover:bg-[#047857] text-white px-8 py-3 rounded-lg font-semibold transition-colors",onClick:e=>{e.stopPropagation(),b.current?.click()},children:"Choose File to Analyze"}),(0,t.jsx)("p",{className:"text-gray-400 text-xs",children:"🔒 Encrypted in transit · Deleted after analysis · Not legal advice"})]})]}):"analyzing"===e?(0,t.jsx)("div",{className:"border-2 border-[#1a3a5c] rounded-xl p-10 bg-blue-50",children:(0,t.jsxs)("div",{className:"flex flex-col items-center space-y-6",children:[(0,t.jsx)("div",{className:"w-16 h-16 relative",children:(0,t.jsx)("div",{className:"absolute inset-0 border-4 border-[#1a3a5c] border-t-transparent rounded-full animate-spin"})}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-[#1a3a5c] font-semibold text-lg",children:"Scanning contract..."}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-1",children:d})]}),(0,t.jsx)("div",{className:"w-full max-w-sm space-y-3",children:u.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:`w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 transition-all ${e.done?"bg-[#059669]":"bg-gray-200"}`,children:e.done&&(0,t.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("span",{className:`text-sm ${e.done?"text-gray-800 font-medium":"text-gray-400"}`,children:e.label})]},s))})]})}):(0,t.jsxs)("div",{className:"border-2 border-red-300 rounded-xl overflow-hidden",children:[(0,t.jsxs)("div",{className:"bg-red-600 px-6 py-4 flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-100 text-sm font-medium",children:"Contract Risk Score"}),(0,t.jsx)("p",{className:"text-white text-3xl font-bold",children:"75 / 100"})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("span",{className:"bg-white text-red-600 font-bold text-sm px-3 py-1 rounded-full",children:"HIGH RISK"}),(0,t.jsx)("p",{className:"text-red-100 text-xs mt-1",children:d})]})]}),(0,t.jsxs)("div",{className:"bg-white p-6 space-y-4",children:[(0,t.jsxs)("h3",{className:"font-semibold text-gray-800 text-sm uppercase tracking-wider",children:["Flagged Clauses (",r.length," shown — preview only)"]}),r.map((e,s)=>(0,t.jsx)("div",{className:`border rounded-lg p-4 ${a[e.risk]}`,children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"font-semibold text-sm",children:e.title}),(0,t.jsx)("p",{className:"text-sm mt-1 opacity-90",children:e.detail})]}),(0,t.jsx)("span",{className:`text-xs font-bold px-2 py-1 rounded flex-shrink-0 ${l[e.risk]}`,children:e.risk})]})},s)),(0,t.jsx)("div",{className:"bg-gray-100 rounded-lg p-4 text-center",children:(0,t.jsx)("p",{className:"text-gray-500 text-sm",children:"+ 8 more clauses in the full AI report"})})]}),(0,t.jsxs)("div",{className:"bg-gray-50 border-t border-gray-200 p-6 space-y-4",children:[(0,t.jsx)("div",{className:"bg-blue-50 rounded-lg p-4 border border-blue-200",children:(0,t.jsxs)("p",{className:"text-sm text-gray-700",children:[(0,t.jsx)("strong",{children:"This is a free preview."})," See all clauses, negotiation tips, and your complete risk report for ",(0,t.jsx)("strong",{children:"just $19"}),"."]})}),(0,t.jsx)("button",{onClick:y,disabled:h,className:"w-full bg-[#059669] hover:bg-[#047857] disabled:bg-gray-400 disabled:cursor-not-allowed text-white py-3 rounded-lg font-bold text-base transition-colors flex items-center justify-center gap-2",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Redirecting to payment…"]}):"Unlock Full Report — $19"}),(0,t.jsx)("p",{className:"text-center text-gray-400 text-xs",children:"🔒 Secured by Stripe · One-time payment · File deleted after analysis · 30-day refund guarantee"})]})]})}])},94489,e=>{"use strict";var t=e.i(43476),s=e.i(71645);e.s(["default",0,function({items:e,pageTitle:r="Frequently Asked Questions"}){let[a,l]=(0,s.useState)(null),n={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))};return(0,t.jsxs)("section",{className:"max-w-3xl mx-auto",children:[(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}}),(0,t.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-[#1a3a5c] mb-8 text-center",children:r}),(0,t.jsx)("div",{className:"space-y-3",children:e.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg overflow-hidden",children:[(0,t.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 text-left bg-white hover:bg-gray-50 transition-colors",onClick:()=>{l(a===s?null:s)},"aria-expanded":a===s,children:[(0,t.jsx)("span",{className:"font-medium text-gray-800 pr-4",children:e.question}),(0,t.jsx)("svg",{className:`w-5 h-5 text-[#1a3a5c] flex-shrink-0 transition-transform duration-200 ${a===s?"rotate-180":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),a===s&&(0,t.jsx)("div",{className:"px-6 pb-5 bg-white border-t border-gray-100",children:(0,t.jsx)("p",{className:"text-gray-600 text-sm leading-relaxed pt-3",children:e.answer})})]},s))})]})}])},49682,e=>{"use strict";var t=e.i(43476);e.s(["default",0,function({testimonials:e,title:s="What Users Are Saying",maxDisplay:r=3}){if(!e||0===e.length)return null;let a=e.slice(0,r),l=e.length>0?(e.reduce((e,t)=>e+t.rating,0)/e.length).toFixed(1):"5.0",n=({rating:e})=>(0,t.jsx)("div",{className:"flex gap-1",children:[void 0,void 0,void 0,void 0,void 0].map((s,r)=>(0,t.jsx)("svg",{className:`w-4 h-4 ${r(0,t.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 p-6 hover:shadow-md transition-shadow",children:[(0,t.jsx)("div",{className:"mb-3",children:(0,t.jsx)(n,{rating:e.rating})}),(0,t.jsx)("p",{className:"text-gray-700 text-sm leading-relaxed mb-4",children:e.content}),e.improvement&&(0,t.jsx)("div",{className:"bg-green-50 border border-green-200 rounded px-3 py-2 mb-4",children:(0,t.jsxs)("p",{className:"text-xs font-semibold text-green-800",children:["✓ ",e.improvement]})}),(0,t.jsxs)("div",{className:"border-t border-gray-100 pt-4",children:[(0,t.jsx)("p",{className:"font-semibold text-[#1a3a5c] text-sm",children:e.name}),(0,t.jsx)("p",{className:"text-xs text-gray-600",children:e.role}),(0,t.jsx)("p",{className:"text-xs text-gray-500",children:e.location})]}),e.verified&&(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-1 text-xs text-green-700",children:[(0,t.jsx)("svg",{className:"w-4 h-4 fill-green-600",viewBox:"0 0 20 20",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),"Verified User"]})]},s))}),(0,t.jsxs)("div",{className:"text-center bg-blue-50 rounded-lg border border-blue-200 p-6",children:[(0,t.jsx)("p",{className:"text-sm text-gray-700 mb-3",children:"Have you used our contract review tool? Share your experience."}),(0,t.jsx)("a",{href:"/submit-testimonial",className:"inline-block bg-[#059669] hover:bg-[#047857] text-white px-6 py-2 rounded-lg font-semibold text-sm transition-colors",children:"Share Your Story →"})]})]})})}])}]);