1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{5040:function(e,t,r){Promise.resolve().then(r.bind(r,931))},1792:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var s=r(7437),a=r(6680);function l(){return(0,s.jsx)(a.l8,{userProfileMode:"navigation",userProfileUrl:"/account"})}},931:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return m}});var s=r(7437),a=r(6680),l=r(7648);function n(){return(0,s.jsxs)("div",{className:"min-h-screen bg-gray-950 text-white",children:[(0,s.jsxs)("nav",{className:"flex items-center justify-between px-8 py-5 border-b border-gray-800",children:[(0,s.jsx)("span",{className:"text-2xl font-bold",style:{background:"linear-gradient(135deg, #E6E6FA 0%, #4169E1 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Tutorial Clarity"}),(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)(l.default,{href:"#pricing",className:"text-gray-300 hover:text-white transition-colors",children:"Plans"}),(0,s.jsx)(l.default,{href:"/books",className:"text-gray-300 hover:text-white transition-colors",children:"Books"}),(0,s.jsx)(l.default,{href:"/sign-in",className:"text-gray-300 hover:text-white transition-colors",children:"Sign In"}),(0,s.jsx)(l.default,{href:"/sign-up",className:"bg-blue-600 hover:bg-blue-700 text-white px-5 py-2 rounded-lg font-semibold transition-colors",children:"Start Free Trial"})]})]}),(0,s.jsxs)("section",{className:"text-center px-6 pt-24 pb-20",children:[(0,s.jsxs)("h1",{className:"text-5xl md:text-6xl font-bold mb-6 leading-tight",children:["Watch YouTube Videos",(0,s.jsx)("br",{}),(0,s.jsx)("span",{style:{background:"linear-gradient(135deg, #818CF8 0%, #4169E1 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Like Never Before"})]}),(0,s.jsx)("p",{className:"text-xl text-gray-400 max-w-2xl mx-auto mb-4",children:"Tutorial Clarity gives you AI-powered tools to understand, pause, zoom, translate, and fully absorb any YouTube video â at your own pace."}),(0,s.jsx)("p",{className:"text-lg text-gray-500 max-w-2xl mx-auto mb-10",children:"Designed specifically for people who just want YouTube to work better â no technical knowledge required."}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,s.jsx)(l.default,{href:"/sign-up",className:"bg-blue-600 hover:bg-blue-700 text-white px-8 py-4 rounded-xl font-bold text-lg transition-colors",children:"Start Your Free 2-Week Trial"}),(0,s.jsx)(l.default,{href:"/sign-in",className:"border border-gray-600 hover:border-gray-400 text-gray-300 hover:text-white px-8 py-4 rounded-xl font-semibold text-lg transition-colors",children:"Sign In"})]}),(0,s.jsx)("p",{className:"text-gray-500 mt-4 text-sm",children:"No credit card required. Full access for 14 days."})]}),(0,s.jsxs)("section",{className:"px-6 py-20 bg-gray-900",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-center mb-14",children:"Everything you need to learn better"}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto",children:o.map(e=>(0,s.jsxs)("div",{className:"bg-gray-800 rounded-2xl p-6",children:[(0,s.jsx)("div",{className:"text-4xl mb-4",children:e.icon}),(0,s.jsx)("h3",{className:"text-xl font-bold mb-2",children:e.title}),(0,s.jsx)("p",{className:"text-gray-400",children:e.description}),e.premium&&(0,s.jsx)("span",{className:"inline-block mt-3 text-xs bg-blue-900 text-blue-300 px-2 py-1 rounded-full",children:"Premium"})]},e.title))}),(0,s.jsxs)("p",{className:"text-center text-gray-400 mt-10 text-lg",children:["...and ",(0,s.jsx)("span",{className:"text-white font-semibold",children:"8 more tools"})," included with every plan."]})]}),(0,s.jsxs)("section",{id:"pricing",className:"px-6 py-20 scroll-mt-6",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold text-center mb-4",children:"Simple, honest pricing"}),(0,s.jsx)("p",{className:"text-gray-400 text-center mb-4",children:"Try everything free for 14 days. No credit card needed."}),(0,s.jsx)("p",{className:"text-gray-400 text-center max-w-2xl mx-auto mb-4",children:"We strongly encourage you to test every premium feature during your trial â so you can see firsthand just how valuable they can be for you."}),(0,s.jsx)("p",{className:"text-gray-500 text-center max-w-2xl mx-auto mb-14",children:"We only charge for features that cost us real money to provide â so every dollar you pay goes directly toward making your experience better. And with a full 14-day free trial, you'll know exactly what you're getting before you ever pay a cent."}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row gap-8 max-w-4xl mx-auto justify-center",children:[(0,s.jsxs)("div",{className:"bg-gray-900 border border-gray-700 rounded-2xl p-8 flex-1",children:[(0,s.jsx)("h3",{className:"text-xl font-bold mb-2",children:"Monthly"}),(0,s.jsx)("div",{className:"text-4xl font-bold mb-1",children:"$12.99"}),(0,s.jsx)("div",{className:"text-gray-400 mb-6",children:"per month"}),(0,s.jsx)("ul",{className:"space-y-3 text-gray-300 mb-8",children:i.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-green-400",children:"â"})," ",e]},e))}),(0,s.jsx)(l.default,{href:"/subscribe",className:"block w-full text-center bg-gray-700 hover:bg-gray-600 text-white px-6 py-3 rounded-xl font-semibold transition-colors",children:"Choose Monthly"})]}),(0,s.jsxs)("div",{className:"bg-blue-900 border border-blue-500 rounded-2xl p-8 flex-1 relative",children:[(0,s.jsx)("div",{className:"absolute -top-4 left-1/2 -translate-x-1/2 bg-blue-500 text-white text-sm font-bold px-4 py-1 rounded-full",children:"Best Value"}),(0,s.jsx)("h3",{className:"text-xl font-bold mb-2",children:"Annual"}),(0,s.jsx)("div",{className:"text-4xl font-bold mb-1",children:"$99"}),(0,s.jsx)("div",{className:"text-blue-300 mb-1",children:"per year"}),(0,s.jsx)("div",{className:"text-blue-300 text-sm mb-6",children:"That's just $8.25/month â save 36%"}),(0,s.jsx)("ul",{className:"space-y-3 text-blue-100 mb-8",children:i.map(e=>(0,s.jsxs)("li",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"text-green-400",children:"â"})," ",e]},e))}),(0,s.jsx)(l.default,{href:"/subscribe",className:"block w-full text-center bg-blue-500 hover:bg-blue-400 text-white px-6 py-3 rounded-xl font-semibold transition-colors",children:"Choose Annual"})]})]}),(0,s.jsx)("p",{className:"text-center text-gray-400 text-sm mt-6",children:"\uD83C\uDF81 All future features included â current subscribers never pay more."})]}),(0,s.jsxs)("footer",{className:"border-t border-gray-800 px-8 py-10 text-center text-gray-500 text-sm",children:[(0,s.jsxs)("p",{className:"mb-2",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-400",children:"Tutorial Clarity"})," â by Eppler Publishing LLC"]}),(0,s.jsxs)("div",{className:"flex justify-center gap-6",children:[(0,s.jsx)(l.default,{href:"/books",className:"hover:text-gray-300 transition-colors",children:"Books"}),(0,s.jsx)(l.default,{href:"/privacy",className:"hover:text-gray-300 transition-colors",children:"Privacy Policy"}),(0,s.jsx)(l.default,{href:"/terms",className:"hover:text-gray-300 transition-colors",children:"Terms of Service"}),(0,s.jsx)(l.default,{href:"/about",className:"hover:text-gray-300 transition-colors",children:"About"})]})]})]})}let o=[{icon:"\uD83C\uDF10",title:"Clarify Audio",description:"Translate any YouTube video into your language with natural-sounding AI voices that match the original speakers.",premium:!0},{icon:"\uD83D\uDCCB",title:"AI Summary",description:"Get an honest plain-English summary of any video in seconds. Know what you're getting before you commit.",premium:!0},{icon:"\uD83D\uDCC4",title:"Clean Transcript",description:"Download a properly formatted transcript with punctuation and paragraph breaks â ready to read or print.",premium:!0},{icon:"\uD83D\uDD0D",title:"Zoom",description:"Draw a box on any part of the video and zoom in to fill the screen. Perfect for seeing small details clearly.",premium:!1},{icon:"â®",title:"Resume Watching",description:"Pick up exactly where you left off â even days later. Your place is saved automatically.",premium:!1},{icon:"â¨ï¸",title:"Keyboard Shortcuts",description:"Control playback speed, mute, and play/pause from within Tutorial Clarity using simple keyboard shortcuts.",premium:!1}],i=["20 Clarify Audio sessions/month","AI Video Summaries","Clean Transcript Downloads","Zoom & Resume features","Keyboard Shortcuts","14-day free trial"];var c=r(2265),d=r(9376),u=r(1792);function x(){let[e,t]=(0,c.useState)(""),[r,a]=(0,c.useState)(null),n=(0,d.useRouter)();(0,c.useEffect)(()=>{fetch("/api/subscription-status").then(e=>e.json()).then(a).catch(()=>null),fetch("/api/capture-referral",{method:"POST"}).catch(()=>null)},[]);let o=e=>{for(let t of[/(?:youtube\.com\/watch\?v=|youtu\.be\/|youtube\.com\/embed\/|youtube\.com\/shorts\/)([^&\s]+)/,/^([a-zA-Z0-9_-]{11})$/]){let r=e.match(t);if(r)return r[1]}return null};return(0,s.jsxs)("div",{className:"flex items-center justify-center min-h-screen",style:{backgroundImage:` 2 linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 3 linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 4 linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 5 linear-gradient(-45deg, transparent 75%, #1a1a1a 75%) 6 `,backgroundSize:"40px 40px",backgroundPosition:"0 0, 0 20px, 20px -20px, -20px 0px",backgroundColor:"#404040"},children:[(0,s.jsxs)("div",{className:"absolute top-4 right-4 flex items-center gap-3",children:[(0,s.jsx)(l.default,{href:"/subscribe",className:"rounded-lg bg-blue-600 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-blue-500",children:"View Plans / Upgrade"}),(0,s.jsx)(l.default,{href:"/account",className:"rounded-lg border border-gray-500 bg-black/70 px-4 py-2 text-sm font-semibold text-gray-200 transition-colors hover:border-gray-300 hover:text-white",children:"Account Settings"}),(0,s.jsx)(u.Z,{})]}),(0,s.jsxs)("div",{className:"w-full max-w-md px-4 space-y-4",children:[r?.trialExpired&&(0,s.jsxs)("div",{className:"bg-amber-900/80 border border-amber-600 rounded-2xl p-5 text-amber-100",children:[(0,s.jsx)("h2",{className:"font-bold text-lg mb-1",children:"Your free trial has ended"}),(0,s.jsx)("p",{className:"text-sm text-amber-200 mb-3",children:"Premium features (Clarify Audio, AI Summaries, Transcripts, AI Definitions) are now paused. All base features â Zoom, Resume, Saved Videos, and Keyboard Shortcuts â remain free and fully available."}),(0,s.jsx)("button",{onClick:()=>n.push("/subscribe"),className:"bg-amber-500 hover:bg-amber-400 text-black font-bold px-5 py-2 rounded-lg text-sm transition-colors",children:"Upgrade to continue premium access â"})]}),r?.sessionWarning&&(0,s.jsxs)("div",{className:"bg-blue-900/80 border border-blue-600 rounded-2xl p-5 text-blue-100",children:[(0,s.jsx)("h2",{className:"font-bold text-lg mb-1",children:1===r.sessionsRemaining?"1 Clarify Audio session remaining":`${r.sessionsRemaining} Clarify Audio sessions remaining`}),(0,s.jsxs)("p",{className:"text-sm text-blue-200 mb-3",children:["You've used ",r.sessionsUsed," of your ",r.sessionsLimit," sessions this month. Would you like to add more?"]}),(0,s.jsx)("button",{onClick:()=>n.push("/subscribe"),className:"bg-blue-500 hover:bg-blue-400 text-white font-bold px-5 py-2 rounded-lg text-sm transition-colors",children:"Add 20 more sessions â $8.99 â"})]}),(0,s.jsxs)("div",{className:"bg-black p-12 rounded-2xl shadow-2xl",children:[(0,s.jsx)("h1",{className:"text-4xl font-bold mb-8 text-center",style:{background:"linear-gradient(135deg, #E6E6FA 0%, #4169E1 100%)",WebkitBackgroun
6dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:"Tutorial Clarity"}),(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault();let r=o(e);r?n.push(`/watch?url=${r}`):alert("Please enter a valid YouTube URL or video ID")},className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-gray-300 mb-2",children:"Enter YouTube URL or Video ID"}),(0,s.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),placeholder:"https://youtube.com/watch?v=...",className:"w-full px-4 py-3 bg-gray-900 text-white border border-gray-700 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"})]}),(0,s.jsx)("button",{type:"submit",className:"w-full bg-blue-600 text-white py-3 rounded-lg font-semibold hover:bg-blue-700 transition-colors text-lg",children:"Watch Video"})]})]})]})]})}function m(){let{isLoaded:e,isSignedIn:t}=(0,a.aF)();return e?t?(0,s.jsx)(x,{}):(0,s.jsx)(n,{}):(0,s.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-gray-950",children:(0,s.jsx)("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin"})})}},7648:function(e,t,r){"use strict";r.d(t,{default:function(){return a.a}});var s=r(2972),a=r.n(s)},9376:function(e,t,r){"use strict";var s=r(5475);r.o(s,"useParams")&&r.d(t,{useParams:function(){return s.useParams}}),r.o(s,"usePathname")&&r.d(t,{usePathname:function(){return s.usePathname}}),r.o(s,"useRouter")&&r.d(t,{useRouter:function(){return s.useRouter}}),r.o(s,"useSearchParams")&&r.d(t,{useSearchParams:function(){return s.useSearchParams}}),r.o(s,"useSelectedLayoutSegments")&&r.d(t,{useSelectedLayoutSegments:function(){return s.useSelectedLayoutSegments}})}},function(e){e.O(0,[972,680,971,117,744],function(){return e(e.s=5040)}),_N_E=e.O()}]);
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.