PageSourceSearch

https://rideshareguides.com/assets/AcademyIncomeCalculator-C0WIxoMg.js

js rideshareguides.com collected 2026-10-08 20:46:24 UTC 113,590 bytes, 6 lines download raw bytes

1import{aY as Bt,r as n,j as e,N as He,S as se,P as me,al as Z,l as he,h as T,v as Ue,m as X,aK as Mt,a4 as Ft,b as ut,aP as bt,U as Ge,a3 as At,aL as ft,b0 as It,bj as Ce,bk as Se,aH as Dt,ak as nt,an as Rt,ao as Lt}from"./index-Bn97Kz8X.js";import{S as Ot}from"./SEO-BjAPr8No.js";import{u as gt}from"./use-subscription-ByUzPBOM.js";import{L as jt}from"./lock-BRypwRBS.js";import{T as F}from"./trending-up-BIXCMs2b.js";import{S as Ye}from"./save-CihL1j8F.js";import{D as ve}from"./dollar-sign-B8kVv15d.js";import{Z as Ee}from"./zap-Cbe5Dgwm.js";import{T as rt}from"./triangle-alert-DCst1_nP.js";import{C as le}from"./chart-column-Dz_FXuek.js";import{I as Nt}from"./info-WZWzOYAm.js";import{T as We}from"./timer-DhVB5vQK.js";import{F as wt}from"./flame-CdNu4bei.js";import{F as Pt}from"./filter-B0wihAHF.js";import{L as vt}from"./layers-DlHv8GfN.js";import{P as it}from"./plus-CPfhT_Zt.js";import{C as Oe}from"./calendar-days-87MNVOcb.js";import{C as $e}from"./clock-3-CzVCToOo.js";import{F as zt}from"./fuel-8_O-CQ9l.js";import{P as Ht}from"./pencil-DD5U1XZV.js";import{T as Ut}from"./trash-2-Bmo_dMlV.js";import{U as lt}from"./user-BBINdwYV.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 ct=Bt("Receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);function Gt(){const a=encodeURIComponent(window.location.href);return`${"https://www.buildy.ai/api".replace(/\/api\/?$/,"").replace(/\/$/,"")}/auth/app-login?app_id=9xrrufffexrbbkhc2dshz&from_url=${a}`}function ot(a){return a.toLowerCase().trim().replace(/\s+/g,"-").replace(/_/g,"-")}const Yt=["starter-pro","social-pro","pro-tools","gig-boss","gigboss","gig-boss-public","gig-boss-pro","gig-pro","academy","academy-497-postfounding","founding","founding-member","founding-99","founding-199","founding-497","founding-997"];function Wt(a){if(!a)return!1;const l=ot(a);return Yt.some(x=>l.includes(ot(x)))}const dt=[{mult:1,label:"Other • National Avg",sub:"Baseline US market",badge:"1.0×"},{mult:1,label:"WPB • Palm Beach",sub:"West Palm daily",badge:"1.0×"},{mult:1.05,label:"Orlando / Tampa / JAX",sub:"Central FL lift",badge:"1.05×"},{mult:1.08,label:"Atlanta / Southeast",sub:"ATL • CLT • Southeast",badge:"1.08×"},{mult:1.1,label:"Miami / ATL / HOU",sub:"Big city premium",badge:"1.1×"},{mult:1.15,label:"South FL • MIA / FLL / WPB",sub:"Tri-county heat",badge:"1.15×"},{mult:1.2,label:"NYC / NJ • LAX Premium",sub:"Top tier markets",badge:"1.2×"}],xt=[{value:0,label:"Not pursuing",desc:"Skip for now, focus on direct rides",tag:"Focus: rides",minutes:"0 trips"},{value:600,label:"Light — 1 patient",desc:"1 dialysis patient 3×/week, broker intro",tag:"3× weekly",minutes:"~$600/mo"},{value:1400,label:"Medium — 2 patients + broker",desc:"2 regulars + broker overflow",tag:"Growing",minutes:"~$1,400/mo"},{value:2800,label:"Full — 4 patients + contracts",desc:"Direct facility contracts, real book",tag:"Pro NEMT",minutes:"~$2,800/mo"}];function f(a){return"$"+Math.round(a).toLocaleString()}function pt(a){return Math.round(a).toLocaleString()}function Pe({gate:a,rawTier:l,subscribed:x}){return null}function Vt({variant:a="embedded",promotionAccess:l=!1}){const[x,y]=n.useState(30),[g,v]=n.useState(18),[N,A]=n.useState(5),[w,p]=n.useState(1.15),[j,k]=n.useState(600),[u,G]=n.useState(1),[I,ue]=n.useState(!1),[ce,$]=n.useState(!1),[Y,W]=n.useState(!1),[B,V]=n.useState(null),{status:C,loading:q,refresh:ae}=gt();n.useEffect(()=>{ae();const s=localStorage.getItem("rsg_income_calc");if(s)try{const m=JSON.parse(s);m.hrs&&y(m.hrs),m.eph&&v(m.eph),m.dc&&A(m.dc),m.mkt&&p(m.mkt),m.nemt!==void 0&&k(m.nemt)}catch{}},[]);const d=n.useMemo(()=>{const s=x*4.3*g,m=N*280*w,z=j*w,L=(m+z)*.08,ee=s+m*.15+j*.2*w,be=s+m*.5+j*.6*w+L*.3,O=s+m+z+L,fe=s>0?(O-s)/s*100:0,te=O-s;return{s1:s,s2_90:m,s3_90:z,s4_90:L,r30:ee,r60:be,r90:O,gain:fe,extra:te}},[x,g,N,w,j]),E=C.subscription_tier||C.subscription_tier_name,D=C.subscribed&&Wt(E),ne=()=>{ue(!0),localStorage.setItem("rsg_income_calc",JSON.stringify({hrs:x,eph:g,dc:N,mkt:w,nemt:j,at:Date.now()})),setTimeout(()=>{var s;(s=document.getElementById("rsg-calc-results"))==null||s.scrollIntoView({behavior:"smooth",block:"start"})},150)},re=`<div id="rsg-calc" style="max-width:600px;margin:0 auto;font-family:sans-serif;background:#ffffff;border:1px solid #e4e4e7;padding:24px"><h2 style="font-family:sans-serif;font-size:22px;color:#18181b">RSG Income Calculator</h2><p>Current ${pt(d.s1)}/mo → Expanded scenario ${pt(d.r90)}/mo</p><p>Monthly scenario run rates use your inputs and built-in assumptions. They are not guaranteed or cumulative earnings.</p><p>Formula: s1=hrs*4.3*eph, s2=clients*280*market, s3=NEMT*market, s4=8%</p></div>`,R=async()=>{const s=`RSG Income Scenarios: Current ${f(d.s1)}/mo → Starting scenario ${f(d.r30)}
6 → Building scenario ${f(d.r60)} → Expanded scenario ${f(d.r90)} (+${Math.round(d.gain)}%). Monthly scenario run rates use your inputs and built-in assumptions, not guaranteed or cumulative earnings. 4 streams: Platform ${f(d.s1)}, Direct ${f(d.s2_90)}, NEMT ${f(d.s3_90)}, Ambassador ${f(d.s4_90)}. Market ${w}x, ${N} clients, NEMT ${j}.`;await navigator.clipboard.writeText(s),$(!0),setTimeout(()=>$(!1),1800)},Q=async()=>{await navigator.clipboard.writeText(re),W(!0),setTimeout(()=>W(!1),1800)},c=a==="full"?"max-w-[720px]":"max-w-[600px]",_=[{n:1,label:"Hours",icon:me},{n:2,label:"Rate",icon:ve},{n:3,label:"Clients",icon:Ee},{n:4,label:"Market",icon:ut},{n:5,label:"NEMT",icon:F}];return q?e.jsxs("div",{className:`${c} mx-auto animate-pulse rounded-[24px] border border-zinc-200 bg-white p-6`,children:[e.jsx("div",{className:"h-6 w-1/3 rounded bg-zinc-100"}),e.jsx("div",{className:"mt-4 h-24 rounded-[16px] bg-zinc-50"}),B&&e.jsx("div",{className:"mt-4",children:e.jsx(Pe,{gate:B,rawTier:E,subscribed:C.subscribed})})]}):D?e.jsxs("div",{className:`${c} mx-auto`,children:[e.jsx(Pe,{gate:B,rawTier:E,subscribed:C.subscribed}),e.jsxs("div",{className:"overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-[0_8px_32px_rgba(0,0,0,0.06)]",children:[e.jsxs("div",{className:"border-b border-zinc-100 bg-white px-6 py-5 sm:px-7 sm:py-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-zinc-200 bg-zinc-50 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.16em] text-zinc-700",children:[e.jsx(He,{className:"h-3 w-3 text-[#f45815]"})," RSG PRO • TOOLS LAYER"]}),e.jsx("span",{className:"inline-flex items-center gap-1 rounded-full border border-[#f45815]/20 bg-orange-50 px-2.5 py-1 text-[10px] font-bold uppercase tracking-[0.12em] text-[#f45815]",children:"Asset 01"})]}),e.jsxs("h2",{className:"mt-4 font-['Bebas_Neue'] text-[30px] leading-[0.9] tracking-[-0.01em] text-zinc-900 sm:text-[34px]",children:["RSG INCOME ",e.jsx("span",{className:"text-[#f45815]",children:"CALCULATOR"})]}),e.jsx("p",{className:"mt-2 max-w-[52ch] text-[13px] leading-relaxed text-zinc-600",children:"Enter your current numbers. Compare three monthly income scenarios as the modeled work mix grows. Results are planning estimates based on your inputs and assumptions. 100% front-end, no backend, no Tushar involvement."})]}),e.jsxs("div",{className:"border-b border-zinc-100 bg-zinc-50 px-6 py-4 lg:hidden",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("p",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:["Step ",u," of 5 — ",_[u-1].label]}),e.jsxs("span",{className:"text-[11px] font-medium text-zinc-500",children:[Math.round(u/5*100),"%"]})]}),e.jsx("div",{className:"mt-3 flex gap-2",children:_.map(s=>e.jsx("div",{className:"h-1.5 flex-1 overflow-hidden rounded-full bg-zinc-200",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.n<=u?"bg-[#f45815]":"bg-transparent"}`,style:{width:s.n<=u?"100%":"0%"}})},s.n))}),e.jsx("div",{className:"mt-3 flex gap-1.5",children:_.map(s=>{const m=s.icon,z=s.n===u,L=s.n<u;return e.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded-full border text-[11px] font-bold transition ${z?"border-[#f45815] bg-[#f45815] text-white shadow-[0_4px_12px_rgba(244,88,21,0.22)]":L?"border-orange-200 bg-orange-50 text-[#f45815]":"border-zinc-200 bg-white text-zinc-400"}`,children:L?e.jsx(T,{className:"h-3.5 w-3.5"}):e.jsx(m,{className:"h-3.5 w-3.5"})},s.n)})})]}),e.jsxs("div",{className:"p-5 lg:hidden bg-white",children:[e.jsx(Ue,{mode:"wait",children:e.jsxs(X.div,{initial:{opacity:0,x:16},animate:{opacity:1,x:0},exit:{opacity:0,x:-16},transition:{duration:.25},children:[u===1&&e.jsx("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-5 shadow-sm",children:e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Current Weekly Platform Hours"}),e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[12px] font-bold text-[#f45815]",children:[x," hrs"]})]}),e.jsx("input",{type:"range",min:5,max:60,value:x,onChange:s=>y(Number(s.target.value)),className:"mt-4 w-full accent-[#f45815]"}),e.jsx("span",{className:"mt-2 block text-[11px] text-zinc-500",children:"5h test → 60h boss mode. Your baseline."})]})}),u===2&&e.jsx("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-5 shadow-sm",children:e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Avg Earnings Per Hour"}),e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[12px] font-bold text-[#f45815]",children:["$",g,"/hr"]})]}),e.jsx("input",{type:"range",min:10,max:35,value:g,onChange:s=>v(Number(s.target.value)),className:"mt-4 w-full accent-[#f45815]"}),e.jsx("span",{className:"mt-2 block text-[11px] text-zinc-500",children:"After fuel? Platform net. We calculate monthly s1 = hrs×4.3×eph."})]})}),u===3&&e.jsx("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-5 shadow-sm",children:e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Direct Booking Goal"}),e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[12px] font-bold text-[#f45815]",children:[N," clients"]})]}),e.jsx("input",{type:"range",min:1,max:20,value:N,onChange:s=>A(Number(s.target.value)),className:"mt-4 w-full accent-[#f45815]"}),e.jsx("span",{className:"mt-2 block text-[11px] text-zinc-500",children:"Each private client adds about $280/mo under this direct-work assumption. 5-word script: “Do you book directly?”"})]})}),u===4&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-3 font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Your City / Market Multiplier"}),e.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:dt.map(s=>{const m=s.mult===w;return e.jsxs("button",{onClick:()=>p(s.mult),className:`flex items-center justify-between rounded-[12px] border px-4 py-3 text-left transition ${m?"border-[#f45815] bg-orange-50 shadow-[0_0_0_1px_rgba(244,88,21,0.12)]":"border-zinc-200 bg-white hover:border-zinc-300 hover:bg-zinc-50"}`,children:[e.jsxs("div",{children:[e.jsx("p",{className:`text-[13px] font-bold leading-tight ${m?"text-zinc-900":"text-zinc-700"}`,children:s.label}),e.jsx("p",{className:"mt-0.5 text-[11px] text-zinc-500",children:s.sub})]}),e.jsx("span",{className:`ml-3 shrink-0 rounded-full px-2.5 py-1 text-[11px] font-bold ${m?"bg-[#f45815] text-white":"bg-zinc-100 text-zinc-500"}`,children:s.badge})]},s.label)})})]}),u===5&&e.jsxs("div",{children:[e.jsx("p",{className:"mb-3 font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"NEMT / Medical Trans
6port"}),e.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:xt.map(s=>e.jsxs("button",{onClick:()=>k(s.value),className:`rounded-[12px] border px-4 py-3 text-left transition ${j===s.value?"border-[#f45815] bg-orange-50":"border-zinc-200 bg-white hover:border-zinc-300"}`,children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("p",{className:"text-[13px] font-bold text-zinc-900",children:s.label}),e.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide ${j===s.value?"bg-[#f45815] text-white":"bg-zinc-100 text-zinc-500"}`,children:s.tag})]}),e.jsxs("p",{className:"mt-1 text-[11px] leading-snug text-zinc-500",children:[s.desc," • ",s.minutes]})]},s.value))})]})]},u)}),e.jsxs("div",{className:"mt-5 flex gap-3",children:[u>1&&e.jsxs("button",{onClick:()=>G(s=>Math.max(1,s-1)),className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-[12px] border border-zinc-200 bg-white px-4 text-[13px] font-semibold text-zinc-700 hover:bg-zinc-50",children:[e.jsx(Mt,{className:"h-4 w-4"})," Back"]}),u<5?e.jsxs("button",{onClick:()=>G(s=>Math.min(5,s+1)),className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-[12px] bg-zinc-900 px-4 text-[13px] font-bold text-white hover:bg-black",children:["Next ",e.jsx(Z,{className:"h-4 w-4"})]}):e.jsxs("button",{onClick:ne,className:"inline-flex min-h-[52px] flex-1 items-center justify-center gap-2 rounded-[12px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_10px_20px_rgba(244,88,21,0.20)] hover:bg-[#e14f13]",children:[e.jsx(me,{className:"h-4 w-4"})," Calculate My Scenarios →"]})]})]}),e.jsx("div",{className:"hidden p-7 lg:block bg-white",children:e.jsxs("div",{className:"grid gap-7 lg:grid-cols-[1.05fr_0.95fr]",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"mb-2 flex items-center justify-between font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:["Weekly Platform Hours",e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[11px] font-bold normal-case tracking-normal text-[#f45815]",children:[x," hrs"]})]}),e.jsx("input",{type:"range",min:5,max:60,value:x,onChange:s=>y(Number(s.target.value)),className:"w-full accent-[#f45815]"}),e.jsx("span",{className:"text-[11px] text-zinc-500",children:"Baseline for s1 = hrs × 4.3 × $/hr"})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"mb-2 flex items-center justify-between font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:["Avg $/hour",e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[11px] font-bold normal-case text-[#f45815]",children:["$",g,"/hr"]})]}),e.jsx("input",{type:"range",min:10,max:35,value:g,onChange:s=>v(Number(s.target.value)),className:"w-full accent-[#f45815]"})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"mb-2 flex items-center justify-between font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:["Direct Booking Goal",e.jsxs("span",{className:"rounded-full bg-orange-50 border border-orange-200 px-2.5 py-1 font-mono text-[11px] font-bold normal-case text-[#f45815]",children:[N," clients"]})]}),e.jsx("input",{type:"range",min:1,max:20,value:N,onChange:s=>A(Number(s.target.value)),className:"w-full accent-[#f45815]"}),e.jsx("span",{className:"text-[11px] text-zinc-500",children:"Each client = $280/mo average before the market multiplier"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-3 font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Market"}),e.jsx("div",{className:"grid grid-cols-1 gap-2",children:dt.map(s=>e.jsxs("button",{onClick:()=>p(s.mult),className:`flex items-center justify-between rounded-[12px] border px-3.5 py-2.5 text-left text-[13px] transition ${w===s.mult?"border-[#f45815] bg-orange-50 font-semibold text-zinc-900":"border-zinc-200 bg-zinc-50 text-zinc-700 hover:bg-white hover:border-zinc-300"}`,children:[e.jsx("span",{children:s.label}),e.jsx("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-bold ${w===s.mult?"bg-[#f45815] text-white":"bg-white border border-zinc-200 text-zinc-500"}`,children:s.badge})]},s.label))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"mb-3 font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"NEMT Level"}),e.jsx("div",{className:"grid grid-cols-1 gap-2",children:xt.map(s=>e.jsxs("button",{onClick:()=>
6k(s.value),className:`rounded-[12px] border px-3.5 py-2.5 text-left transition ${j===s.value?"border-[#f45815] bg-orange-50":"border-zinc-200 bg-zinc-50 hover:bg-white hover:border-zinc-300"}`,children:[e.jsxs("span",{className:"flex items-center justify-between text-[13px] font-bold text-zinc-900",children:[e.jsx("span",{children:s.label}),e.jsx("span",{className:"text-[11px] font-medium text-zinc-500",children:s.tag})]}),e.jsx("span",{className:"mt-1 block text-[11px] text-zinc-500",children:s.desc})]},s.value))})]}),e.jsxs("button",{onClick:ne,className:"inline-flex min-h-[52px] w-full items-center justify-center gap-2 rounded-[12px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_12px_28px_rgba(244,88,21,0.20)] transition hover:translate-y-[-1px] hover:bg-[#e14f13]",children:[e.jsx(me,{className:"h-4 w-4"})," Calculate Scenarios →"]})]}),e.jsxs("div",{className:"space-y-4",children:[I?e.jsx("div",{id:"rsg-calc-results-desktop"}):e.jsxs("div",{className:"flex min-h-[420px] flex-col items-center justify-center rounded-[16px] border border-dashed border-zinc-200 bg-zinc-50 p-8 text-center",children:[e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-[12px] bg-white border border-zinc-200 shadow-sm",children:e.jsx(me,{className:"h-5 w-5 text-[#f45815]"})}),e.jsx("p",{className:"mt-4 max-w-[28ch] font-['Barlow_Condensed'] text-[14px] font-bold uppercase tracking-[0.04em] text-zinc-900",children:"Enter your numbers then hit calculate"}),e.jsxs("p",{className:"mt-2 max-w-[32ch] text-[12px] leading-relaxed text-zinc-500",children:["We keep your current ",x,"h/week at $",g,"/h, flip ",N," riders to direct, add NEMT and 8% ambassador. No backend, math runs instantly."]})]}),I&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-zinc-50 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] font-bold uppercase tracking-[0.12em] text-zinc-500",children:"Current Monthly"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[28px] leading-none text-zinc-900",children:f(d.s1)}),e.jsx("p",{className:"text-[11px] text-zinc-500",children:"Platform only"})]}),e.jsxs("div",{className:"rounded-[12px] border border-orange-200 bg-orange-50 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] font-bold uppercase tracking-[0.12em] text-[#f45815]",children:"Expanded scenario"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[28px] leading-none text-[#f45815]",children:f(d.r90)}),e.jsxs("p",{className:"flex items-center gap-1 text-[11px] font-bold text-emerald-600",children:[e.jsx(F,{className:"h-3 w-3"})," +",Math.round(d.gain),"% lift"]})]})]}),e.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:[{l:"Starting scenario",v:d.r30,n:"4 streams starting"},{l:"Building scenario",v:d.r60,n:"NEMT + direct"},{l:"Expanded scenario",v:d.r90,n:"All 4 active"}].map(s=>e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-3 text-center shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.1em] text-zinc-500",children:s.l}),e.jsx("p",{className:"font-['Bebas_Neue'] text-[18px] text-zinc-900",children:f(s.v)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:s.n})]},s.l))}),e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-4 shadow-sm",children:[e.jsx("p",{className:"mb-3 font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.1em] text-zinc-900",children:"Four-stream breakdown, expanded scenario"}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-[13px]",children:[e.jsx("span",{className:"text-zinc-600",children:"1. Rideshare base"}),e.jsx("span",{className:"font-mono font-medium text-zinc-900",children:f(d.s1)})]}),e.jsxs("div",{className:"flex justify-between text-[13px]",children:[e.jsxs("span",{className:"text-zinc-600",children:["2. Direct (",N," × $280 × ",w,")"]}),e.jsx("span",{className:"font-mono font-medium text-zinc-900",children:f(d.s2_90)})]}),e.jsxs("div",{className:"flex justify-between text-[13px]",children:[e.jsx("span",{className:"text-zinc-600",children:"3. NEMT"}),e.jsx("span",{className:"font-mono font-medium text-zinc-900",children:f(d.s3_90)})]}),e.jsxs("div",{className:"flex justify-between border-t border-zinc-100 pt-2 text-[13px]",children:[e.jsx("span",{className:"text-zinc-600",children:"4. Ambassador 8%"}),e.jsx("span",{className:"font-mono font-bold text-[#f45815]",children:f(d.s4_90)})]})]})]})]})]})]})}),e.jsx(Ue,{children:I&&e.jsx(X.div,{id:"rsg-calc-results",initial:{opacity:0,y:18}
6,animate:{opacity:1,y:0},exit:{opacity:0},transition:{duration:.4,ease:[.22,1,.36,1]},className:"border-t border-zinc-100 bg-white p-5 lg:hidden",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-zinc-50 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] font-bold uppercase tracking-[0.12em] text-zinc-500",children:"Current Monthly"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[26px] leading-none text-zinc-900",children:f(d.s1)}),e.jsx("p",{className:"text-[11px] text-zinc-500",children:"Platform only"})]}),e.jsxs("div",{className:"rounded-[12px] border border-orange-200 bg-orange-50 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] font-bold uppercase tracking-[0.12em] text-[#f45815]",children:"Starting scenario"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[26px] leading-none text-zinc-900",children:f(d.r30)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"4 streams starting"})]}),e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-4 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.12em] text-zinc-500",children:"Building scenario"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[22px] leading-none text-zinc-900",children:f(d.r60)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"NEMT + direct clients"})]}),e.jsxs("div",{className:"rounded-[12px] border border-[#f45815]/30 bg-orange-50 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] font-bold uppercase tracking-[0.12em] text-[#f45815]",children:"Expanded scenario"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[22px] leading-none text-[#f45815]",children:f(d.r90)}),e.jsxs("p",{className:"flex items-center gap-1 text-[10px] font-bold text-emerald-600",children:[e.jsx(F,{className:"h-3 w-3"})," +",Math.round(d.gain),"%"]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-3 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.1em] text-zinc-500",children:"Stream 1 — Platform"}),e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] text-zinc-900",children:f(d.s1)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"/mo current"})]}),e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-3 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.1em] text-zinc-500",children:"Stream 2 — Book The Don"}),e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] text-[#f45815]",children:f(d.s2_90)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"/mo in expanded scenario"})]}),e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-3 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.1em] text-zinc-500",children:"Stream 3 — NEMT"}),e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] text-[#f45815]",children:f(d.s3_90)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"/mo in expanded scenario"})]}),e.jsxs("div",{className:"rounded-[12px] border border-zinc-200 bg-white p-3 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[10px] uppercase tracking-[0.1em] text-zinc-500",children:"Stream 4 — Ambassador"}),e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] text-[#f45815]",children:f(d.s4_90)}),e.jsx("p",{className:"text-[10px] text-zinc-500",children:"/mo in expanded scenario"})]})]})]})})}),I&&e.jsxs("div",{className:"border-t border-zinc-100 bg-zinc-50/50 p-5 sm:p-7",children:[e.jsxs("div",{className:"rounded-[14px] border border-orange-200 bg-orange-50 p-4",children:[e.jsxs("p",{className:"flex items-center gap-2 text-[13px] font-bold leading-relaxed text-zinc-900",children:[e.jsx(F,{className:"h-4 w-4 shrink-0 text-emerald-600"})," Expanded scenario: ",f(d.r90),"/month, ",Math.round(d.gain),"% above your current platform income in this model."]}),e.jsxs("p",{className:"mt-2 text-[12px] leading-relaxed text-zinc-600",children:["This model keeps ",x,"h/week at $",g,"/h, moves ",N," riders into private work at ",w,"×, and adds NEMT. It shows ",e.jsxs("span",{className:"font-bold text-[#f45815]",children:["+",f(d.extra)," modeled monthly upside"]})," without adding hours. The Gig Boss Academy teaches every system behind these numbers. Your RSG Driver ID# is step one."]})]}),e.jsxs("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[e.jsxs("button",{onClick:R,className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-[12px] border border-zinc-200 bg-white px-4 text-[13px] font-semibold text-zinc-900 transition hover:bg-zinc-50",children:[ce?e.jsx(T,{className:"h-4 w-4 text-emerald-600"}):e.jsx(Ft,{className:"h-4 w-4"}),ce?"Scenario copied":"Copy scenario"]}),e.jsxs("button",{onClick:Q,className:"inline-flex min-h-[48px] flex-1 items-center justify-center gap-2 rounded-[12px] border border-zinc-200 bg-zinc-50 px-4 text-[13px] font-semibold text-zinc-700 transition hover:bg-white",children:[Y?e.jsx(T,{className:"h-4 w-4 text-emerald-600"}):e.jsx(Ye,{className:"h-4 w-4"}),Y?"Embed copied":"Copy embed for micro-site"]})]}),e.jsxs("div",{className:"mt-5 flex items-start gap-2 rounded-[10px] border border-zinc-200 bg-white p-3",children:[e.jsx(ve,{className:"mt-0.5 h-4 w-4 shrink-0 text-zinc-400"}),e.jsx("p",{className:"text-[11px] leading-relaxed text-zinc-500",children:"Planning note: these are monthly scenario run rates based on your inputs and built-in assumptions. They are not guaranteed earnings or cumulative totals. Formula preserved: s1=hrs×4.3×eph, s2=clients×$280×market, s3=NEMT×market, s4=8% recurring. Stepped maturity uses 15% / 50% / 100% across the three scenarios. Pure front-end, saved to this device only."})]})]})]})]}):e.jsxs("div",{className:`${c} mx-auto`,children:[e.jsx(Pe,{gate:B,rawTier:E,subscribed:C.subscribed}),e.jsx("div",{className:"overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-[0_8px_32px_rgba(0,0,0,0.06)]",children:e.jsx("div",{className:"relative p-7 sm:p-8 bg-white",children:e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#f45815]/20 bg-orange-50 px-3 py-1 text-[10px] font-bold uppercase tracking-[0.18em] text-[#f45815]",children:[e.jsx(He,{className:"h-3 w-3"})," RSG PRO • TOOLS LAYER"]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-[14px] border border-orange-100 bg-orange-50",children:e.jsx(jt,{className:"h-5 w-5 text-[#f45815]"})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"font-['Bebas_Neue'] text-[26px] leading-[0.9] text-zinc-900 sm:text-[30px]",children:["INCOME CALCULATOR ",e.jsx("span",{className:"text-[#f45815]",children:"LOCKED"})]}),e.jsx("p",{className:"mt-2 max-w-[44ch] text-[13px] leading-relaxed text-zinc-600",children:"This account-based calculator is available to eligible existing paid members and Academy Founding members after sign-in. New monthly enrollment is currently paused. Free visitors can request the free shift audit, and existing members can manage billing through Driver Membership."})]})]}),e.jsxs("div",{className:"mt-6 grid gap-2.5 rounded-[16px] border border-zinc-200 bg-zinc-50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(se,{className:"h-4 w-4 text-emerald-600"})," Front-end only • No backend • Your numbers stay in browser"]}),e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(me,{className:"h-4 w-4 text-[#f45815]"})," Sliders for hours, rate, direct clients, market, NEMT"]}),e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(F,{className:"h-4 w-4 text-[#f45815]"})," Live math: ","s1=hrs×4.3×eph, s2=clients×$280×market, s3=NEMT×market, s4=8% recurring"]})]}),e.jsxs("div",{className:"mt-5 grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-[14px] border border-orange-100 bg-orange-50/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#f45815]",children:[e.jsx(se,{className:"h-4 w-4"}),e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-[0.12em]",children:"Who has access"})]}),e.jsx("p",{className:"mt-2 text-[12px] leading-[1.55] text-zinc-600",children:"Sign in with the RSG account tied to an eligible existing paid membership or Academy Founding access. This account-based calculator is not included with free membership."})]}),e.jsxs("div",{className:"rounded-[14px] border border-orange-100 bg-orange-50/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#f45815]",children:[e.jsx(Z,{className:"h-4 w-4"}),e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-[0.12em]",children:"How to get access"})]}),e.jsx("p",{className:"mt-2 text-[12px] leading-[1.55] text-zinc-600",children:"New monthly enrollment is currently paused. Join free for your RSG account, request the free shift audit, or manage an existing membership through Driver Membership."})]})]}),e.jsxs("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[e.jsxs(he,{to:"/driver-membership","data-testid":"join-free-cta",className:"inline-flex min-h-[52px] flex-1 items-center justify-center gap-2 rounded-[14px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_12px_28px_rgba(244,88,21,0.22)] transition hover:translate-y-[-1px] hover:bg-[#e14f13]",children:["Join free RSG ",e.jsx(Z,{className:"h-4 w-4"})]}),e.jsx("button",{onClick:()=>window.location.href=Gt(),"data-testid":"signin-cta",className:"inline-flex min-h-[52px] items-center justify-center rounded-[14px] border border-zinc-200 bg-white px-6 text-[14px] font-semibold text-zinc-700 transition hover:bg-zinc-50 hover:text-zinc-900",children:"Sign in"}),e.jsxs(he,{to:"/driver-membership","data-testid":"manage-membership-cta",className:"inline-flex min-h-[52px] items-center justify-center gap-2 rounded-[14px] border border-zinc-200 bg-white px-6 text-[14px] font-semibold text-zinc-700 transition hover:border-orange-200 hover:bg-orange-50 hover:text-zinc-900",children:["Manage billing in Driver Membership ",e.jsx(Z,{className:"h-4 w-4"})]})]}),e.jsx("p",{className:"mt-3 text-center text-[11px] text-zinc-500",children:"Already a founding $497 member? Sign in with that email. Your lifetime core access includes this calculator."}),!1]})})})]})}const Te=[{id:"uber",label:"Uber",dot:"bg-black"},{id:"lyft",label:"Lyft",dot:"bg-[#FF00BF]"},{id:"doordash",label:"DoorDash",dot:"bg-[#FF3008]"},{id:"ubereats",label:"Uber Eats",dot:"bg-[#06C167]"},{id:"spark",label:"Spark",dot:"bg-[#0071DC]"},{id:"instacart",label:"Instacart",dot:"bg-[#0AAD0A]"},{id:"amazon_flex",label:"Amazon Flex",dot:"bg-[#FF9900]"},{id:"other",label:"Other",dot:"bg-zinc-500"}],we=[{id:"0-4",label:"12a – 4a",startH:0,endH:4},{id:"4-8",label:"4a – 8a",startH:4,endH:8},{id:"8-12",label:"8a – 12p",startH:8,endH:12},{id:"12-16",label:"12p – 4p",startH:12,endH:16},{id:"16-20",label:"4p – 8p",startH:16,endH:20},{id:"20-24",label:"8p – 12a",startH:20,endH:24}],qt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function Ve(a){if(!a||!a.includes(":"))return null;const[l,x]=a.split(":").map(Number);return Number.isNaN(l)||Number.isNaN(x)?null:l*60+x}function Jt(a,l){const x=Ve(a),y=Ve(l);if(x===null||y===null)return null;let g=y-x;return g<0&&(g+=24*60),g===0?0:+(g/60).toFixed(2)}function pe(a,l){const x=Number(a.gross_earnings)||0,y=Number(a.tips)||0,g=Number(a.total_miles)||0,v=Number(a.fuel_cost)||0,N=Number(a.tolls)||0,A=Number(a.other_fees)||0,w=x+y,p=g*l,j=v+N+A,k=w-p-j,u=Number(a.total_hours)||0,G=u>0?k/u:0;return{totalIncome:w,vehicleOp:p,direct:j,trueNet:k,trueHourly:G}}function U(a){const l=a<0?"-":"",x=Math.abs(a);return`${l}$${x.toFixed(2)}`}function K(a){return`${a<0?"-":""}
6$${Math.abs(Math.round(a)).toLocaleString()}`}function qe(a){return a.toISOString().slice(0,10)}function mt(){return qe(new Date)}function Kt(a){return new Date(a+"T12:00:00").getDay()}function Xt(a){const l=Ve(a);return l===null?null:Math.floor(l/60)}function Zt(){const{toast:a}=bt(),[l,x]=n.useState(null),[y,g]=n.useState(!0),[v,N]=n.useState([]),[A,w]=n.useState(!0),[p,j]=n.useState(null),[k,u]=n.useState("0.30"),[G,I]=n.useState(!1),[ue,ce]=n.useState(!1),[$,Y]=n.useState(null),[W,B]=n.useState(mt()),[V,C]=n.useState("09:00"),[q,ae]=n.useState("13:00"),[d,E]=n.useState("4"),[oe,D]=n.useState(!1),[ne,re]=n.useState(["uber"]),[R,Q]=n.useState(""),[c,_]=n.useState(""),[s,m]=n.useState(""),[z,L]=n.useState(""),[ee,be]=n.useState(""),[O,fe]=n.useState(""),[te,Be]=n.useState(""),[Je,Me]=n.useState(""),[Ke,ge]=n.useState(null),[Xe,Ze]=n.useState(!1),[je,Qe]=n.useState("all"),[yt,Fe]=n.useState(null),P=n.useMemo(()=>{const t=parseFloat(k);return Number.isFinite(t)&&t>=0?t:.3},[k]);n.useEffect(()=>{if(!oe){const t=Jt(V,q);t!==null&&t>0&&E(t.toString())}},[V,q,oe]),n.useEffect(()=>{(async()=>{try{const t=await Ge.me();x(t)}catch{x(null)}finally{g(!1)}})()},[]);const Ae=async t=>{w(!0);try{try{const r=await Ce.filter({user_id:t});if(r&&r.length>0){const i=r[0];j(i),u(String(i.operating_cost_per_mile??.3))}else try{const i=await Ce.create({user_id:t,operating_cost_per_mile:.3});j(i),u("0.30")}catch{j({user_id:t,operating_cost_per_mile:.3}),u("0.30")}}catch{j({user_id:t,operating_cost_per_mile:.3})}try{const i=[...await Se.filter({user_id:t},"-shift_date",200)||[]].sort((o,h)=>o.shift_date===h.shift_date?(h.start_time||"").localeCompare(o.start_time||""):h.shift_date.localeCompare(o.shift_date));N(i)}catch{N([])}}finally{w(!1)}};n.useEffect(()=>{l!=null&&l.id?Ae(l.id):l!=null&&l.email&&Ae(l.email)},[l==null?void 0:l.id,l==null?void 0:l.email]);const Ie=n.useMemo(()=>({gross_earnings:parseFloat(R)||0,tips:parseFloat(c)||0,total_miles:parseFloat(s)||0,fuel_cost:parseFloat(ee)||0,tolls:parseFloat(O)||0,other_fees:parseFloat(te)||0,total_hours:parseFloat(d)||0}),[R,c,s,ee,O,te,d]),Ne=n.useMemo(()=>pe(Ie,P),[Ie,P]),S=n.useMemo(()=>je==="all"?v:v.filter(t=>(t.platforms||[]).includes(je)),[v,je]),M=n.useMemo(()=>{const t=new Date,r=new Date;r.setDate(t.getDate()-7);const i=new Date;i.setDate(t.getDate()-30);const o=qe(r),h=qe(i),b=ze=>{const ye=S.filter(ke=>ke.shift_date>=ze);let Le=0,_e=0,st=0;ye.forEach(ke=>{const at=pe(ke,(p==null?void 0:p.operating_cost_per_mile)||P);Le+=at.trueNet,_e+=Number(ke.total_hours)||0,st+=at.totalIncome});const $t=_e>0?Le/_e:0;return{count:ye.length,totalNet:Le,totalHours:_e,totalIncome:st,avgHourly:$t}},de=b(o),xe=b(h);let J=0,H=0;S.forEach(ze=>{const ye=pe(ze,(p==null?void 0:p.operating_cost_per_mile)||P);J+=ye.trueNet,H+=Number(ze.total_hours)||0});const Et=H>0?J/H:0;return{p7:de,p30:xe,allNet:J,allH:H,allAvg:Et}},[S,p,P]),et=n.useMemo(()=>{const t={};return S.forEach(r=>{const i=r.platforms||[];if(i.length===0)return;const o=pe(r,(p==null?void 0:p.operating_cost_per_mile)||P),h=1/i.length;i.forEach(b=>{t[b]||(t[b]={count:0,net:0,hours:0}),t[b].count+=1,t[b].net+=o.trueNet*h,t[b].hours+=(Number(r.total_hours)||0)*h})}),Object.entries(t).map(([r,i])=>({id:r,...i,avgHourly:i.hours>0?i.net/i.hours:0})).sort((r,i)=>i.net-r.net)},[S,p,P]),De=n.useMemo(()=>{const t={};for(let i=0;i<7;i++)t[i]={},we.forEach(o=>{t[i][o.id]={net:0,hours:0,count:0,avg:0}});let r=0;return S.forEach(i=>{const o=Kt(i.shift_date),h=Xt(i.start_time);if(h===null)return;const b=we.find(H=>h>=H.startH&&h<H.endH);if(!b)return;const de=pe(i,(p==null?void 0:p.operating_cost_per_mile)||P),xe=Number(i.total_hours)||0;if(xe<=0)return;const J=t[o][b.id];J.net+=de.trueNet,J.hours+=xe,J.count+=1}),Object.keys(t).forEach(i=>{const o=Number(i);we.forEach(h=>{const b=t[o][h.id];b.count>0&&b.hours>0&&(b.avg=b.net/b.hours,b.avg>r&&(r=b.avg))})}),{grid:t,maxAvg:r}},[S,p,P]),Re=()=>{Y(null),B(mt()),C("09:00"),ae("13:00"),E("4"),D(!1),re(["uber"]),Q(""),_(""),m(""),L(""),be(""),fe(""),Be(""),Me(""),ge(null)},_t=()=>{if(!W)return"Pick a shift date";if(!V||!q)return"Add start and end time";const t=parseFloat(d);if(!(t>0)||t>24)return"Hours must be between 0.1 and 24";if(ne.length===0)return"Pick at least one platform";if(R.trim()==="")return"Enter gross earnings";if(s.trim()==="")return"Enter total miles";const r=parseFloat(R);if(!Number.isFinite(r)||r<0)return"Gross must be 0 or more";const i=parseFloat(s);if(!Number.isFinite(i)||i<0)return"Miles must be 0 or more";if(c.trim()!==""){const o=parseFloat(c);if(!Number.isFinite(o)||o<0)return"Tips must be 0 or more"}if(ee.trim()!==""){const o=parseFloat(ee);if(!Number.isFinite(o)||o<0)return"Fuel must be 0 or more"}if(O.trim()!==""){const o=parseFloat(O);if(!Number.isFinite(o)||o<0)return"Tolls must be 0 or more"}if(te.trim()!==""){const o=parseFloat(te);if(!Number.isFinite(o)||o<0)return"Other fees must be 0 or more"}if(z){const o=parseFloat(z);if(!Number.isFinite(o)||o<0||o>i)return"Dead miles must be 0 to total miles"}return null},kt=async()=>{var o;const t=_t();if(t){ge(t);return}if(!l){ge("Please sign in");return}Ze(!0),ge(null);const r=l.id||l.email,i={user_id:r,shift_date:W,start_time:V,end_time:q,total_hours:parseFloat(d),platforms:ne,gross_earnings:parseFloat(R)||0,tips:parseFloat(c)||0,total_miles:parseFloat(s)||0,dead_miles:z?parseFloat(z):null,fuel_cost:parseFloat(ee)||0,tolls:parseFloat(O)||0,other_fees:parseFloat(te)||0,notes:Je||null};try{$?(await Se.update($,i),a({title:"Shift updated"})):(await Se.create(i),a({title:"Shift saved"})),await Ae(r),Re(),(o=document.getElementById("history"))==null||o.scrollIntoView({behavior:"smooth"})}catch(h){ge((h==null?void 0:h.message)||"Could not save — try again")}finally{Ze(!1)}},Ct=t=>{Y(t.id),B(t.shift_date),C(t.start_time),ae(t.end_time),E(String(t.total_hours)),D(!0),re(t.platforms||[]),Q(String(t.gross_earnings)),_(String(t.tips)),m(String(t.total_miles)),L(t.dead_miles!=null?String(t.dead_miles):""),be(String(t.fuel_cost)),fe(String(t.tolls)),Be(String(t.other_fees)),Me(t.notes||""),window.scrollTo({top:0,behavior:"smooth"})},St=async t=>{try{await Se.delete(t),N(r=>r.filter(i=>i.id!==t)),Fe(null),a({title:"Removed"})}catch{a({title:"Delete failed"})}},Tt=async()=>
6{if(!l)return;const t=parseFloat(k);if(!(t>=0)||t>2){a({title:"Enter 0 to 2.00"});return}I(!0);try{if(p!=null&&p.id){const r=await Ce.update(p.id,{operating_cost_per_mile:t});j(r)}else{const r=await Ce.create({user_id:l.id||l.email,operating_cost_per_mile:t});j(r)}a({title:"Cost per mile saved",description:`$${t.toFixed(2)}/mi`})}catch{a({title:"Could not save"})}finally{I(!1)}};if(y)return e.jsxs("div",{className:"mx-auto max-w-[760px] animate-pulse rounded-[20px] bg-white p-6 border border-zinc-200",children:[e.jsx("div",{className:"h-6 w-1/3 bg-zinc-100 rounded"}),e.jsx("div",{className:"mt-4 h-32 bg-zinc-50 rounded-xl"})]});if(!l)return e.jsx("div",{className:"mx-auto max-w-[760px] rounded-[20px] border border-zinc-200 bg-white p-6 sm:p-8 shadow-[0_8px_32px_rgba(0,0,0,0.04)]",children:e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-orange-50 text-[#f45815] border border-orange-100",children:e.jsx(rt,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-['Barlow_Condensed'] text-[18px] font-bold uppercase text-zinc-900 tracking-wide",children:"Sign in to track real shifts"}),e.jsx("p",{className:"mt-1 text-[13px] text-zinc-600",children:"Saves to your account. Phone to laptop. No sample data."})]})]})});const tt=(p==null?void 0:p.operating_cost_per_mile)??P;return e.jsxs("div",{className:"mx-auto flex max-w-[840px] flex-col gap-6",children:[e.jsxs("div",{className:"order-1 overflow-hidden rounded-[20px] border border-zinc-200 bg-white shadow-[0_8px_32px_rgba(0,0,0,0.06)] lg:order-1",children:[e.jsx("div",{className:"bg-white px-5 py-5 sm:px-7 sm:py-5 border-b border-zinc-100",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[10px] bg-[#f45815] text-white shadow-[0_4px_12px_rgba(244,88,21,0.22)]",children:e.jsx(le,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] leading-none text-zinc-900 tracking-wide",children:"Premium Shift Tracker"}),e.jsx("p",{className:"mt-1 text-[11px] uppercase tracking-[0.14em] text-zinc-500",children:"True net • Real history • No samples"})]})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3 py-1.5 text-[11px] font-medium text-zinc-600",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-emerald-500"}),v.length," shift",v.length!==1?"s":""," saved"]})]})}),e.jsx("div",{className:"bg-zinc-50/70 px-5 py-4 sm:px-7 border-b border-zinc-100",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("label",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-700",children:"Operating cost per mile • Wear + maintenance + depreciation + insurance"}),e.jsx("button",{onClick:()=>ce(t=>!t),className:"rounded-full border border-zinc-200 bg-white p-1 text-zinc-500 hover:text-zinc-700",children:e.jsx(Nt,{className:"h-3.5 w-3.5"})})]}),e.jsx("p",{className:"mt-1 text-[11px] text-zinc-500",children:"Fuel you enter per shift is separate — we do not double count. This covers everything except fuel, tolls, fees."}),ue&&e.jsxs("div",{className:"mt-3 rounded-[12px] border border-orange-200 bg-white p-3 text-[11px] leading-relaxed text-zinc-600",children:[e.jsx("p",{className:"font-bold text-zinc-900",children:"What this includes:"}),e.jsxs("ul",{className:"mt-1.5 list-disc pl-4 space-y-1",children:[e.jsx("li",{children:"Tire wear, oil, brakes, maintenance"}),e.jsx("li",{children:"Depreciation per work mile"}),e.jsx("li",{children:"Insurance reserve"})]}),e.jsxs("p",{className:"mt-2 text-[11px]",children:[e.jsx("span",{className:"font-semibold",children:"Formula:"})," True net = (gross+tips) − (miles×cost) − (fuel+tolls+other). No tax advice."]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{value:k,onChange:t=>u(t.target.value),inputMode:"decimal",className:"h-[44px] w-[110px] rounded-[12px] border border-zinc-200 bg-white pl-6 pr-8 text-[15px] font-bold text-zinc-900 focus:border-[#f45815]/40 focu
6s:outline-none focus:ring-2 focus:ring-[#f45815]/20"}),e.jsx("span",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-[11px] text-zinc-500",children:"/mi"})]}),e.jsx("button",{onClick:Tt,disabled:G,className:"inline-flex h-[44px] items-center justify-center rounded-[12px] bg-zinc-900 px-4 text-[13px] font-bold text-white hover:bg-black disabled:opacity-60",children:G?"Saving…":e.jsxs(e.Fragment,{children:[e.jsx(Ye,{className:"mr-1.5 h-4 w-4"})," Save"]})})]})]})}),e.jsxs("div",{className:"grid gap-3 p-5 sm:grid-cols-3 sm:p-7 bg-white",children:[e.jsxs("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-4",children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.14em] text-zinc-500",children:[e.jsx(We,{className:"h-3 w-3"})," All-time"]}),e.jsxs("p",{className:"mt-2 font-['Barlow_Condensed'] text-[26px] font-bold leading-none text-zinc-900",children:[K(M.allAvg),"/hr"]}),e.jsxs("p",{className:"mt-1 text-[12px] text-zinc-600",children:[M.allH.toFixed(1),"h • ",K(M.allNet)," net"]})]}),e.jsxs("div",{className:"rounded-[16px] border border-orange-200 bg-orange-50 p-4",children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.14em] text-[#f45815]",children:[e.jsx(wt,{className:"h-3 w-3"})," 7-day true"]}),e.jsx("p",{className:"mt-2 font-['Barlow_Condensed'] text-[26px] font-bold leading-none text-zinc-900",children:M.p7.count>0?`${K(M.p7.avgHourly)}/hr`:"—"}),e.jsxs("p",{className:"mt-1 text-[12px] text-zinc-600",children:[M.p7.count," shifts • ",K(M.p7.totalNet)," net"]})]}),e.jsxs("div",{className:"rounded-[16px] border border-zinc-200 bg-white p-4",children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.14em] text-zinc-500",children:[e.jsx(F,{className:"h-3 w-3"})," 30-day true"]}),e.jsx("p",{className:"mt-2 font-['Barlow_Condensed'] text-[26px] font-bold leading-none text-zinc-900",children:M.p30.count>0?`${K(M.p30.avgHourly)}/hr`:"—"}),e.jsxs("p",{className:"mt-1 text-[12px] text-zinc-600",children:[M.p30.count," shifts • ",K(M.p30.totalNet)," net"]})]})]}),e.jsx("div",{className:"border-t border-zinc-100 bg-zinc-50/50 px-5 py-3 sm:px-7",children:e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto pb-1",children:[e.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1 text-[11px] font-bold uppercase text-zinc-500",children:[e.jsx(Pt,{className:"h-3 w-3"})," Filter"]}),e.jsxs("button",{onClick:()=>Qe("all"),className:`shrink-0 rounded-full border px-3 py-1.5 text-[12px] font-semibold transition ${je==="all"?"border-[#f45815] bg-[#f45815] text-white shadow-[0_4px_12px_rgba(244,88,21,0.20)]":"border-zinc-200 bg-white text-zinc-700 hover:border-zinc-300"}`,children:["All • ",v.length]}),Te.map(t=>{const r=v.filter(i=>(i.platforms||[]).includes(t.id)).length;return r===0?null:e.jsxs("button",{onClick:()=>Qe(t.id),className:`shrink-0 rounded-full border px-3 py-1.5 text-[12px] font-semibold transition ${je===t.id?"border-[#f45815] bg-[#f45815] text-white shadow-[0_4px_12px_rgba(244,88,21,0.20)]":"border-zinc-200 bg-white text-zinc-700 hover:border-zinc-300"}`,children:[t.label," • ",r]},t.id)})]})})]}),et.length>0&&e.jsxs("div",{className:"order-3 rounded-[20px] border border-zinc-200 bg-white p-5 sm:p-6 shadow-[0_8px_32px_rgba(0,0,0,0.04)] lg:order-2",children:[e.jsxs("h3",{className:"flex items-center gap-2 font-['Barlow_Condensed'] text-[13px] font-bold uppercase tracking-[0.14em] text-zinc-900",children:[e.jsx(vt,{className:"h-4 w-4 text-[#f45815]"})," Platform performance • true net"]}),e.jsx("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:et.map(t=>{const r=Te.find(i=>i.id===t.id);return e.jsxs("div",{className:"rounded-[14px] border border-zinc-200 bg-zinc-50 p-4 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:`h-8 w-8 rounded-full ${(r==null?void 0:r.dot)||"bg-zinc-400"} flex items-center justify-center text-[11px] font-bold text-white`,children:((r==null?void 0:r.label)||t.id).slice(0,2).toUpperCase()}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13px] font-bold text-zinc-900",children:(r==null?void 0:r.label)||t.id}),e.jsxs("p",{className:"text-[11px] text-zinc-500",children:[t.count," shifts • ",t.hours.toFixed(1),"h"]})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("p",{className:"font-['Barlow_Condensed'] text-[16px] font-bold leading-none text-zinc-900",children:[K(t.avgHourly),"/hr"]}),e.jsxs("p",{className:"mt-1 text-[11px] text-zinc-600",children:[K(t.net)," net"]})]})]},t.id)})}),e.jsx("p",{className:"mt-3 text-[11px] leading-snug text-zinc-500",children:"Weighted true hourly = total net ÷ total hours. Multi-app shifts are split evenly across selected platforms. Real shifts only."})]}),e.jsxs("div",{className:"order-4 rounded-[20px] border border-zinc-200 bg-white p-5 sm:p-6 shadow-[0_8px_32px_rgba(0,0,0,0.04)] lg:order-3",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("h3",{className:"flex items-center gap-2 font-['Barlow_Condensed'] text-[13px] font-bold uppercase tracking-[0.14em] text-zinc-900",children:[e.jsx(le,{className:"h-4 w-4 text-[#f45815]"})," $/hr heatmap • day × time"]}),e.jsxs("span",{className:"rounded-full bg-zinc-900 px-2.5 py-1 text-[10px] font-bold uppercase text-white",children:[S.length," shifts"]})]}),S.length<3?e.jsxs("div",{className:"mt-5 rounded-[14px] border border-dashed border-zinc-200 bg-zinc-50 p-6 text-center",children:[e.jsx("p",{className:"text-[13px] font-semibold text-zinc-900",children:"Log 3+ shifts to unlock heatmap"}),e.jsx("p",{className:"mt-1.5 text-[12px] text-zinc-500",children:"Real start times → true $/hr. No fake data."})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"mt-5 overflow-x-auto rounded-[12px] border border-zinc-200",children:e.jsx("div",{className:"min-w-[560px]",children:e.jsxs("div",{className:"grid grid-cols-[46px_repeat(6,1fr)] gap-px bg-zinc-100 p-px",children:[e.jsx("div",{className:"bg-zinc-50 p-2 text-[10px] font-bold uppercase text-zinc-500",children:"Day"}),we.map(t=>e.jsx("div",{className:"bg-zinc-50 p-2 text-center text-[10px] font-bold uppercase text-zinc-700",children:t.label},t.id)),qt.map((t,r)=>e.jsxs("div",{className:"contents",children:[e.jsx("div",{className:"bg-white px-2 py-2.5 text-[11px] font-bold text-zinc-900",children:t}),we.map(i=>{var H;const o=(H=De.grid[r])==null?void 0:H[i.id],h=(o==null?void 0:o.avg)||0,b=(o==null?void 0:o.count)||0,de=De.maxAvg>
60?Math.min(1,Math.max(0,h/De.maxAvg)):0,xe=b===0?"#ffffff":`rgba(244,88,21,${.08+de*.72})`,J=de>.55?"#18181b":"#3f3f46";return e.jsxs("div",{className:"flex flex-col items-center justify-center px-1 py-2.5 text-center border border-zinc-50",style:{background:xe,color:J},children:[e.jsx("span",{className:"text-[12px] font-bold leading-none",children:b>0?K(h):"—"}),e.jsx("span",{className:"mt-1 text-[9px] opacity-70",children:b>0?`${b}×`:""})]},`${r}-${i.id}`)})]},t))]})})}),e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-3 text-[11px] text-zinc-500",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-3 w-3 rounded-[3px] border border-zinc-200",style:{background:"#fff"}})," No data"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-3 w-3 rounded-[3px]",style:{background:"rgba(244,88,21,0.28)"}})," Lower"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[e.jsx("span",{className:"inline-block h-3 w-3 rounded-[3px]",style:{background:"rgba(244,88,21,0.85)"}})," Best"]})]}),e.jsx("p",{className:"mt-2 text-[11px] leading-snug text-zinc-500",children:"Weighted by hours: each cell = total true net ÷ total hours for shifts starting in that window. Multi-app shifts count once."})]})]}),e.jsxs("div",{id:"entry",className:"order-2 rounded-[20px] border-2 border-[#f45815] bg-white p-5 sm:p-7 shadow-[0_10px_28px_rgba(244,88,21,0.14)] lg:order-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("h3",{className:"flex items-center gap-2 font-['Bebas_Neue'] text-[22px] tracking-wide text-zinc-900",children:[e.jsx(it,{className:"h-5 w-5 text-[#f45815]"})," ",$?"Edit shift":"Log shift"]}),$&&e.jsxs("button",{onClick:Re,className:"inline-flex items-center gap-1 rounded-full border border-zinc-200 bg-white px-3 py-1.5 text-[12px] font-semibold text-zinc-700 hover:bg-zinc-50",children:[e.jsx(At,{className:"h-3.5 w-3.5"})," Cancel"]})]}),e.jsxs("div",{className:"mt-5 grid gap-4",children:[e.jsxs("div",{className:"grid gap-3 sm:grid-cols-3",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(Oe,{className:"h-3.5 w-3.5"})," Date"]}),e.jsx("input",{type:"date",value:W,onChange:t=>B(t.target.value),className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] text-zinc-900 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx($e,{className:"h-3.5 w-3.5"})," Start"]}),e.jsx("input",{type:"time",value:V,onChange:t=>{C(t.target.value),D(!1)},className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] text-zinc-900 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx($e,{className:"h-3.5 w-3.5"})," End"]}),e.jsx("input",{type:"time",value:q,onChange:t=>{ae(t.target.value),D(!1)},className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] text-zinc-900 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]}),e.jsxs("label",{className:"block max-w-[220px]",children:[e.jsxs("span",{className:"mb-1.5 flex items-center justify-between text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(We,{className:"h-3.5 w-3.5"})," Total hours"]}),e.jsx("button",{type:"button",onClick:()=>D(t=>!t),className:"text-[10px] font-semibold text-[#f45815] underline underline-offset-2 hover:text-[#e14f13]",children:oe?"Auto":"Manual"})]}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.1",min:"0.1",max:"24",value:d,onChange:t=>{E(t.target.value),D(!0)},className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] font-bold text-zinc-900 focus:border-[#f45815]/40 focu
6s:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"mb-2 block text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:"Platforms • pick all"}),e.jsx("div",{className:"flex flex-wrap gap-2",children:Te.map(t=>{const r=ne.includes(t.id);return e.jsxs("button",{type:"button",onClick:()=>re(i=>r?i.filter(o=>o!==t.id):[...i,t.id]),className:`inline-flex h-[36px] items-center gap-1.5 rounded-full border px-3 text-[13px] font-semibold transition ${r?"border-[#f45815] bg-[#f45815] text-white shadow-[0_4px_12px_rgba(244,88,21,0.20)]":"border-zinc-200 bg-zinc-50 text-zinc-700 hover:border-zinc-300 hover:bg-white"}`,children:[e.jsx("span",{className:`h-2 w-2 rounded-full ${t.dot}`}),t.label,r&&e.jsx(T,{className:"ml-1 h-3.5 w-3.5"})]},t.id)})})]}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(ve,{className:"h-3.5 w-3.5"})," Gross • required"]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.01",value:R,onChange:t=>Q(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white pl-7 pr-3 text-[14px] font-semibold text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:"Tips • 0 if none"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.01",value:c,onChange:t=>_(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white pl-7 pr-3 text-[14px] font-semibold text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]})]}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(ft,{className:"h-3.5 w-3.5"})," Total miles • required"]}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.1",value:s,onChange:t=>m(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] font-semibold text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(It,{className:"h-3.5 w-3.5"})," Dead miles (opt)"]}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.1",value:z,onChange:t=>L(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white px-3 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-zinc-300 focus:outline-none"})]})]}),e.jsxs("div",{className:"grid gap-3 sm:grid-cols-3",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(zt,{className:"h-3.5 w-3.5"})," Fuel • 0 if none"]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.01",value:ee,onChange:t=>be(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white pl-7 pr-3 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focu
6s:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(ct,{className:"h-3.5 w-3.5"})," Tolls • 0 if none"]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.01",value:O,onChange:t=>fe(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white pl-7 pr-3 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:[e.jsx(ct,{className:"h-3.5 w-3.5"})," Other • 0 if none"]}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-[13px] text-zinc-500",children:"$"}),e.jsx("input",{type:"number",inputMode:"decimal",step:"0.01",value:te,onChange:t=>Be(t.target.value),placeholder:"",className:"h-[46px] w-full rounded-[12px] border border-zinc-200 bg-white pl-7 pr-3 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]})]})]}),e.jsxs("label",{className:"block",children:[e.jsx("span",{className:"mb-1.5 block text-[11px] font-bold uppercase tracking-[0.12em] text-zinc-700",children:"Notes (optional)"}),e.jsx("textarea",{value:Je,onChange:t=>Me(t.target.value),rows:2,placeholder:"Surge, airport queue, double app...",className:"w-full rounded-[12px] border border-zinc-200 bg-white px-3 py-2.5 text-[13px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focus:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("div",{className:"rounded-[14px] border border-orange-200 bg-orange-50 p-4",children:[e.jsxs("p",{className:"flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.14em] text-[#f45815]",children:[e.jsx(ve,{className:"h-3.5 w-3.5"})," Live preview • true cost"]}),e.jsxs("div",{className:"mt-3 grid gap-2 text-[12px] sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-[10px] bg-white p-3 border border-zinc-200",children:[e.jsx("p",{className:"text-[10px] uppercase text-zinc-500",children:"Income = gross + tips"}),e.jsx("p",{className:"mt-1 font-mono text-[13px] font-bold text-zinc-900",children:U(Ne.totalIncome)})]}),e.jsxs("div",{className:"rounded-[10px] bg-white p-3 border border-zinc-200",children:[e.jsxs("p",{className:"text-[10px] uppercase text-zinc-500",children:["Vehicle = miles × $",tt.toFixed(2)]}),e.jsx("p",{className:"mt-1 font-mono text-[13px] font-bold text-zinc-900",children:U(Ne.vehicleOp)})]}),e.jsxs("div",{className:"rounded-[10px] bg-white p-3 border border-zinc-200",children:[e.jsx("p",{className:"text-[10px] uppercase text-zinc-500",children:"Direct = fuel + tolls + other"}),e.jsx("p",{className:"mt-1 font-mono text-[13px] font-bold text-zinc-900",children:U(Ne.direct)})]}),e.jsxs("div",{className:"rounded-[10px] border border-[#f45815]/30 bg-[#f45815] p-3 text-white shadow-[0_4px_16px_rgba(244,88,21,0.24)]",children:[e.jsx("p",{className:"text-[10px] uppercase text-white/80",children:"True net = income − vehicle − direct"}),e.jsxs("p",{className:"mt-1 font-mono text-[15px] font-bold text-white",children:[U(Ne.trueNet)," • ",Ie.total_hours>0?`${U(Ne.trueHourly)}/hr`:"—"]}),e.jsx("p",{className:"mt-0.5 text-[11px] text-white/75",children:"No double count. Not tax advice."})]})]})]}),Ke&&e.jsxs("div",{className:"rounded-[12px] border border-red-200 bg-red-50 px-3 py-2.5 text-[12px] text-red-800 flex gap-2",children:[e.jsx(rt,{className:"h-4 w-4 shrink-0"}),Ke]}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{onClick:kt,disabled:Xe,className:"inline-flex min-h-[50px] flex-1 items-center justify-center gap-2 rounded-[14px] bg-[#f45815] px-6 text-[14px] font-bold text-white shadow-[0_10px_20px_rgba(244,88,21,0.22)] hover:bg-[#e14f13] disabled:opacity-60",children:Xe?"Saving…":$?e.jsxs(e.Fragment,{children:[e.jsx(Ye,{className:"h-4 w-4"})," Update shift"]}):e.jsxs(e.Fragment,{children:[e.jsx(it,{className:"h-4 w-4"})," Save shift"]})}),$&&e.jsx("button",{onClick:Re,className:"inline-flex h-[50px] items-center justify-center rounded-[14px] border border-zinc-200 bg-white px-5 text-[13px] font-semibold text-zinc-700 hover:bg-zinc-50",children:"Clear"})]})]})]}),e.jsxs("div",{id:"history",className:"order-5 rounded-[20px] border border-zinc-200 bg-white p-5 sm:p-7 shadow-[0_8px_32px_rgba(0,0,0,0.04)] lg:order-5",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("h3",{className:"flex items-center gap-2 font-['Barlow_Condensed'] text-[14px] font-bold uppercase tracking-[0.12em] text-zinc-900",children:[e.jsx(Oe,{className:"h-4 w-4 text-[#f45815]"})," History • newest first"]}),e.jsx("span",{className:"rounded-full bg-zinc-50 border border-zinc-200 px-2.5 py-1 text-[11px] font-semibold text-zinc-600",children:A?"Loading…":`${S.length} shift${S.length!==1?"s":""}`})]}),A?e.jsx("div",{className:"mt-6 space-y-3",children:[1,2,3].map(t=>e.jsx("div",{className:"h-[84px] animate-pulse rounded-[14px] bg-zinc-100"},t))}):S.length===0?e.jsxs("div",{className:"mt-6 rounded-[14px] border border-dashed border-zinc-200 bg-zinc-50 p-8 text-center",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[15px] font-bold uppercase text-zinc-900",children:"No shifts yet"}),e.jsx("p",{className:"mx-auto mt-2 max-w-[38ch] text-[13px] text-zinc-500",children:"No sample data. Log your last shift to start your true averages."})]}):e.jsx("div",{className:"mt-5 space-y-3",children:S.map(t=>{const r=pe(t,tt),i=yt===t.id;return e.jsxs("div",{className:"rounded-[14px] border border-zinc-200 bg-white p-4 hover:border-zinc-300 transition-colors",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-zinc-900 px-2.5 py-1 text-[11px] font-bold text-white",children:[e.jsx(Oe,{className:"h-3 w-3"}),t.shift_date]}),e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full border border-zinc-200 bg-white px-2.5 py-1 text-[11px] font-semibold text-zinc-700",children:[e.jsx($e,{className:"h-3 w-3"}),t.start_time," – ",t.end_time," • ",Number(t.total_hours).toFixed(1),"h"]}),e.jsxs("span",{className:`inline-flex items-center rounded-full px-2.5 py-1 text-[11px] font-bold ${r.trueNet>=0?"bg-emerald-50 text-emerald-700 border border-emerald-200":"bg-red-50 text-red-700 border border-red-200"}`,children:[U(r.trueNet)," • ",U(r.trueHourly),"/hr"]})]}),e.jsx("div",{className:"mt-2.5 flex flex-wrap gap-1.5",children:(t.platforms||[]).map(o=>{const h=Te.find(b=>b.id===o);return e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-zinc-50 border border-zinc-200 px-2 py-1 text-[10px] font-semibold text-zinc-700",children:[e.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${(h==null?void 0:h.dot)||"bg-zinc-400"}`}),(h==null?void 0:h.label)||o]},o)})}),e.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-2 text-[11px] sm:grid-cols-4",children:[e.jsxs("span",{className:"rounded-[8px] bg-zinc-50 border border-zinc-200 px-2.5 py-1.5",children:[e.jsx("span",{className:"block text-[10px] uppercase text-zinc-500",children:"Income"}),e.jsx("span",{className:"font-mono font-bold text-zinc-900",children:U(r.totalIncome)})]}),e.jsxs("span",{className:"rounded-[8px] bg-zinc-50 border border-zinc-200 px-2.5 py-1.5",children:[e.jsx("span",{className:"block text-[10px] uppercase text-zinc-500",children:"Miles"}),e.jsxs("span",{className:"font-mono font-bold text-zinc-900",children:[t.total_miles," mi"]})]}),e.jsxs("span",{className:"rounded-[8px] bg-zinc-50 border border-zinc-200 px-2.5 py-1.5",children:[e.jsx("span",{className:"block text-[10px] uppercase text-zinc-500",children:"Vehicle"}),e.jsx("span",{className:"font-mono font-bold text-zinc-900",children:U(r.vehicleOp)})]}),e.jsxs("span",{className:"rounded-[8px] bg-zinc-50 border border-zinc-200 px-2.5 py-1.5",children:[e.jsx("span",{className:"block text-[10px] uppercase text-zinc-500",children:"Direct"}),e.jsx("span",{className:"font-mono font-bold text-zinc-900",children:U(r.direct)})]})]}),t.notes&&e.jsx("p",{className:"mt-2 text-[12px] text-zinc-600",children:t.notes})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-1.5 self-start",children:[e.jsx("button",{onClick:()=>Ct(t),className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-zinc-200 bg-white text-zinc-600 hover:bg-zinc-50 hover:text-zinc-900",children:e.jsx(Ht,{className:"h-4 w-4"})}),e.jsx("button",{onClick:()=>Fe(t.id),className:"inline-flex h-9 w-9 items-center justify-center rounded-full border border-red-200 bg-red-50 text-red-600 hover:bg-red-100",children:e.jsx(Ut,{className:"h-4 w-4"})})]})]}),e.jsx(Ue,{children:i&&e.jsx(X.div,{initial:{opacity:0,height:0}
6,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2 rounded-[12px] border border-red-200 bg-red-50 px-3 py-2.5",children:[e.jsx("span",{className:"text-[12px] font-semibold text-red-800",children:"Delete? Cannot be undone."}),e.jsxs("div",{className:"ml-auto flex gap-2",children:[e.jsx("button",{onClick:()=>Fe(null),className:"rounded-full border border-zinc-200 bg-white px-3 py-1.5 text-[12px] font-semibold text-zinc-700",children:"Cancel"}),e.jsx("button",{onClick:()=>St(t.id),className:"rounded-full bg-red-600 px-3 py-1.5 text-[12px] font-bold text-white",children:"Delete"})]})]})})})]},t.id)})})]}),e.jsx("p",{className:"order-6 px-2 pb-6 text-center text-[11px] leading-relaxed text-zinc-500 lg:order-6",children:"True net = (gross+tips) − (miles×cost-per-mile) − (fuel+tolls+other). True hourly = true net ÷ hours. Not tax advice."})]})}const Qt=!1;function es(){const a=encodeURIComponent(window.location.href);return`${"https://www.buildy.ai/api".replace(/\/api\/?$/,"").replace(/\/$/,"")}/auth/app-login?app_id=9xrrufffexrbbkhc2dshz&from_url=${a}`}function ht(a){return a.toLowerCase().trim().replace(/\s+/g,"-").replace(/_/g,"-")}const ts=["starter-pro","social-pro","pro-tools","gig-boss","gigboss","gig-boss-public","gig-boss-pro","gig-pro","academy","academy-497-postfounding","founding","founding-member","founding-99","founding-199","founding-497","founding-997"];function ss(a){if(!a)return!1;const l=ht(a);return ts.some(x=>l.includes(ht(x)))}function ie(a,l){if(!a)return a;if(a.includes("/storage/v1/object/public/"))return a.replace("/storage/v1/object/public/","/storage/v1/render/image/public/")+`?width=${l}&resize=contain&quality=75`;if(a.includes("/storage/v1/render/image/public/")&&!a.includes("width=")){const x=a.includes("?")?"&":"?";return`${a}${x}width=${l}&resize=contain&quality=75`}return a}const as="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/65d5425b-c600-4d9c-8557-9478e7e8a195.png",ns="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/a9761677-63a5-475c-8e16-e76a2d9da27d.png",rs="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/c9d77368-c236-4376-af4d-4b032058a262.png",is="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/e7ccc9f9-1e08-447d-b48f-e1d1f0d210f3.png",ls="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/de6c5f12-120e-493f-ac91-436d8e2fb813.png",cs="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/3a555c50-be78-41b5-9004-2e206bd5d77e.png",os="https://ellprnxjjzatijdxcogk.supabase.co/storage/v1/object/public/files/chat-generated-images/project-9xrrufffexrbbkhc2dshz/5d24a4a3-ece0-4d5a-b731-e8cee28aa6d7.png";function Bs(){const[a,l]=n.useState(null),[x,y]=n.useState(!1),[g,v]=n.useState("premium"),{status:N,loading:A,refresh:w}=gt(),{toast:p}=bt(),[j,k]=n.useState(""),[u,G]=n.useState(""),[I,ue]=n.useState(!1),[ce,$]=n.useState(!1),[Y,W]=n.useState(""),[B,V]=n.useState(""),[C,q]=n.useState(!1),[ae,d]=n.useState(!1);n.useEffect(()=>{const c="rsg-mem-fonts";if(!document.getElementById(c)){const _=document.createElement("link");_.id=c,_.rel="stylesheet",_.href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700;800&display=swap",document.head.appendChild(_)}},[]),n.useEffect(()=>{w(),(async()=>{try{const c=await Ge.me();l(c.email||null),y(!0)}catch{y(!1)}})()},[]);const E=()=>window.location.href=es(),oe=async()=>{try{await Ge.logout()}catch{}y(!1),l(null)},D=N.subscription_tier||N.subscription_tier_name,re=N.subscribed&&ss(D),R=c=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c.trim()),Q=async(c,_,s,m)=>{if(!R(c)){p({title:"Enter a valid email to get your audit"});return}s(!0);try{await Rt({email:c.trim().toLowerCase(),first_name:_.trim()||void 0,tags:["calculator"],contact_stage:"lead",source:"academy_calculator",notes:"Requested free shift audit from Academy Calculator page"});try{await Lt({event_name:"calculator_lead",contact_email:c.trim().toLowerCase()})}catch{}m(!0)}catch(z){p({title:"Could not save, try again",description:z==null?void 0:z.message})}finally{s(!1)}};return e.jsxs("div",{className:"flex min-h-screen flex-col bg-white text-zinc-900",children:[e.jsx(Ot,{title:"Stop Guessing What You Earn — Gig Boss True Net Tracker",description:"Log every shift with platforms, hours, miles, fuel, tolls and fees. See true net after expenses, 7-day weighted hourly averages, platform breakdowns and your personal day vs time heatmap.",url:"https://rideshareguides.com/calculator"}),e.jsx(Dt,{email:a,isAuthenticated:x,onSignIn:E,onSignOut:oe}),e.jsxs("section",{className:"order-2 relative overflow-hidden border-b border-zinc-100 bg-white lg:order-1",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_90%_70%_at_15%_5%,rgba(244,88,21,0.10),transparent_55%),radial-gradient(ellipse_60%_50%_at_85%_10%,rgba(244,88,21,0.06),transparent_50%),radial-gradient(ellipse_70%_40%_at_50%_100%,rgba(251,146,60,0.05),transparent_60%)]"}),e.jsx("div",{className:"absolute inset-0 opacity-[0.025]",style:{backgroundImage:"url('data:image/svg+xml,%3Csvg viewBox=0 0 256 256 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E')"}}),e.jsxs("div",{className:"relative mx-auto grid max-w-[1280px] grid-cols-1 items-center gap-8 px-5 py-12 sm:px-8 sm:py-16 lg:grid-cols-[55%_45%] lg:gap-0 lg:py-20",children:[e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#f45815]/20 bg-orange-50 px-3.5 py-1.5 text-[11px] font-bold uppercase tracking-[0.18em] text-zinc-900",children:[e.jsx(ut,{className:"h-3.5 w-3.5 text-[#f45815]"})," Premium Shift Tracker • True Cost • Real Shifts Only"]}),e.jsxs("h1",{className:"mt-6 font-['Bebas_Neue'] text-[52px] leading-[0.85] tracking-[-0.02em] text-zinc-900 sm:text-[76px] lg:text-[84px]",children:["STOP GUESSING",e.jsx("br",{}),e.jsx("span",{className:"text-[#f45815]",children:"WHAT YOU EARN"})]}),e.jsx("p",{className:"mt-5 max-w-[52ch] font-['Barlow'] text-[17px] leading-[1.5] text-zinc-600 sm:text-[18px]",children:"Log every shift. See true net after expenses. Know exactly what you make per hour — on any platform, any day, any time. Most drivers only see gross. You will see what is actually yours."}),e.jsxs("div",{className:"mt-7 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3.5 py-2 text-[12px] font-semibold text-zinc-700",children:[e.jsx(T,{className:"h-3.5 w-3.5 text-[#f45815]"})," 7-day weighted $/hr averages"]}),e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3.5 py-2 text-[12px] font-semibold text-zinc-700",children:[e.jsx(T,{className:"h-3.5 w-3.5 text-[#f45815]"})," Platform-by-platform breakdown"]}),e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3.5 py-2 text-[12px] font-semibold text-zinc-700",children:[e.jsx(T,{className:"h-3.5 w-3.5 text-[#f45815]"})," Day × Time heatmap"]})]}),e.jsx("div",{className:"mt-8 max-w-[520px] rounded-[18px] border border-zinc-200 bg-white p-4 shadow-[0_8px_32px_rgba(0,0,0,0.06)] backdrop-blur-sm sm:p-5",children:ce?e.jsxs("div",{className:"flex items-start gap-3 py-1",children:[e.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-50 text-emerald-600 ring-1 ring-emerald-200",children:e.jsx(T,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-['Barlow'] text-[15px] font-semibold text-zinc-900",children:"Check your inbox — your audit is on the way."}),e.jsxs("p",{className:"mt-1 text-[13px] text-zinc-500",children:["We just sent your free shift audit to ",j,". Give it 2 minutes, then check spam if you do not see it."]})]})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[13px] font-bold uppercase tracking-[0.12em] text-zinc-500",children:"Free shift audit — see your leak in 2 minutes"}),e.jsxs("div",{className:"mt-3 flex flex-col gap-2.5 sm:flex-row",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(nt,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),e.jsx("input",{value:j,onChange:c=>k(c.target.value),placeholder:"Your best email",className:"h-[48px] w-full rounded-[12px] border border-zinc-200 bg-zinc-50 pl-10 pr-4 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focu
6s:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("div",{className:"relative hidden sm:flex sm:w-[150px]",children:[e.jsx(lt,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),e.jsx("input",{value:u,onChange:c=>G(c.target.value),placeholder:"First name",className:"h-[48px] w-full rounded-[12px] border border-zinc-200 bg-zinc-50 pl-10 pr-4 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-zinc-300 focus:outline-none"})]}),e.jsx("button",{disabled:I,onClick:()=>Q(j,u,ue,$),className:"inline-flex h-[48px] shrink-0 items-center justify-center rounded-[12px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[14px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_8px_24px_rgba(244,88,21,0.28)] transition hover:bg-[#e14f13] disabled:opacity-60",children:I?"Sending...":"Get My Free Audit"})]}),e.jsx("p",{className:"mt-2.5 text-[11px] text-zinc-400",children:"No spam. Unsubscribe anytime. Your audit shows what 3 shifts look like after real expenses."})]})}),e.jsxs("div",{className:"mt-6 flex items-center gap-3 text-[11px] text-zinc-500",children:[e.jsxs("div",{className:"flex -space-x-2",children:[e.jsx("div",{className:"h-7 w-7 rounded-full border-2 border-white bg-[#f45815]"}),e.jsx("div",{className:"h-7 w-7 rounded-full border-2 border-white bg-[#FFD23F]"}),e.jsx("div",{className:"h-7 w-7 rounded-full border-2 border-white bg-zinc-900"})]}),e.jsx("span",{children:"1,800+ drivers track every shift with RSG"})]})]}),e.jsxs(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},className:"relative lg:pl-8",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-[0_24px_80px_rgba(0,0,0,0.08)]",children:[e.jsx("div",{className:"absolute -top-20 -right-20 h-[300px] w-[300px] rounded-full bg-[#f45815]/10 blur-[60px]"}),e.jsx("img",{src:ie(as,720),alt:"Driver dashboard at night showing earnings",className:"relative aspect-[4/3] w-full object-cover lg:aspect-[4/5]"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white/60 via-trans
6parent to-transparent"}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 p-5",children:e.jsxs("div",{className:"flex items-center gap-3 rounded-[14px] border border-zinc-200 bg-white/90 p-3 backdrop-blur-md shadow-sm",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-[10px] bg-[#f45815] text-white",children:e.jsx(le,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[13px] font-bold text-zinc-900",children:"Live $/hr tracking"}),e.jsx("p",{className:"text-[11px] text-zinc-500",children:"Updates after every shift you log"})]}),e.jsxs("div",{className:"ml-auto text-right",children:[e.jsx("p",{className:"font-['Bebas_Neue'] text-[20px] leading-none text-[#f45815]",children:"$32.40"}),e.jsx("p",{className:"text-[10px] text-zinc-400",children:"true $/hr"})]})]})})]}),e.jsxs("div",{className:"absolute -bottom-4 -left-2 hidden rounded-[12px] border border-zinc-200 bg-white px-3.5 py-2.5 shadow-[0_8px_24px_rgba(0,0,0,0.08)] lg:flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-emerald-500"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wide text-zinc-700",children:"Saving to your account"})]}),e.jsxs("div",{className:"absolute -top-3 -right-2 hidden rounded-[12px] border border-[#f45815]/20 bg-white px-3.5 py-2 shadow-[0_8px_24px_rgba(0,0,0,0.08)] lg:flex items-center gap-2",children:[e.jsx(Ee,{className:"h-3.5 w-3.5 text-[#f45815]"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wide text-[#f45815]",children:"Phone to laptop sync"})]})]})]})]}),e.jsx("section",{className:"order-3 relative bg-zinc-50/70 px-5 py-16 sm:px-8 sm:py-24 lg:order-2",children:e.jsxs("div",{className:"mx-auto grid max-w-[1200px] grid-cols-1 items-center gap-10 lg:grid-cols-[45%_55%] lg:gap-16",children:[e.jsx(X.div,{initial:{opacity:0}
6,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"order-1 lg:order-1",children:e.jsxs("div",{className:"relative overflow-hidden rounded-[24px] border border-zinc-200 bg-white p-2 shadow-[0_16px_48px_rgba(0,0,0,0.06)]",children:[e.jsx("img",{src:ie(ns,600),alt:"Money leaking through hourglass visualizing untracked miles cost",className:"aspect-square w-full rounded-[18px] object-cover"}),e.jsx("div",{className:"absolute bottom-6 left-6 right-6 rounded-[14px] border border-zinc-200 bg-white/90 px-4 py-3 backdrop-blur-md shadow-sm",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[12px] font-semibold text-zinc-900",children:"Untracked cost leak"}),e.jsx("span",{className:"rounded-full bg-red-50 border border-red-200 px-2.5 py-1 text-[11px] font-bold text-red-600",children:"-$847 / mo avg"})]})})]})}),e.jsxs(X.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6,delay:.1},className:"order-2",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#f45815]/15 bg-orange-50 px-3 py-1 text-[11px] font-bold uppercase tracking-[0.14em] text-[#f45815]",children:[e.jsx(wt,{className:"h-3.5 w-3.5"})," The Leak You Don't See"]}),e.jsxs("h2",{className:"mt-5 font-['Bebas_Neue'] text-[42px] leading-[0.9] tracking-[-0.01em] text-zinc-900 sm:text-[56px]",children:["EVERY UNTRACKED ",e.jsx("br",{}),e.jsx("span",{className:"text-[#f45815]",children:"MILE IS MONEY"}),e.jsx("br",{}),"YOU NEVER SEE AGAIN"]}),e.jsx("p",{className:"mt-5 max-w-[48ch] font-['Barlow'] text-[16px] leading-[1.6] text-zinc-600",children:"Fuel, tolls, dead miles, wear, maintenance, depreciation — they eat your real pay while the app shows you a fantasy number. Most drivers only see gross. You are about to see what is actually yours."}),e.jsxs("div",{className:"mt-7 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-[14px] border border-zinc-200 bg-white p-4 shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-wide text-zinc-500",children:"IRS Rate"}),e.jsxs("p",{className:"mt-1 font-['Bebas_Neue'] text-[28px] leading-none text-zinc-900",children:["$0.58",e.jsx("span",{className:"text-[18px] text-zinc-500",children:"/mile"})]}),e.jsx("p",{className:"mt-1 text-[12px] text-zinc-500",children:"Standard deduction. Your real cost could be higher."})]}),e.jsxs("div",{className:"rounded-[14px] border border-[#f45815]/20 bg-[#f45815] p-4 text-white shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-wide text-white/80",children:"What Drivers Miss"}),e.jsx("p",{className:"mt-1 font-['Bebas_Neue'] text-[22px] leading-[0.9] text-white",children:"$400–$1,200/mo"}),e.jsx("p",{className:"mt-1 text-[12px] text-white/80",children:"In untracked wear + fuel + dead miles."})]})]}),e.jsx("ul",{className:"mt-6 space-y-2.5",children:["Dead miles to and from hotspots count, but you never log them","Fuel as a flat guess hides spikes that kill your hour","Tolls + fees nickel you while gross stays the same"].map(c=>e.jsxs("li",{className:"flex items-start gap-2.5 text-[13px] leading-[1.5] text-zinc-600",children:[e.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-zinc-900 text-[10px] text-white",children:"✕"})," ",c]},c))})]})]})}),e.jsxs("section",{className:"order-4 relative overflow-hidden bg-white px-5 py-16 sm:px-8 sm:py-24 lg:order-3",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_80%_60%_at_50%_0%,rgba(244,88,21,0.06),transparent_60%)]"}),e.jsxs("div",{className:"relative mx-auto max-w-[1100px]",children:[e.jsxs("div",{className:"mx-auto max-w-[720px] text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3.5 py-1.5 text-[11px] font-bold uppercase tracking-[0.16em] text-zinc-600",children:[e.jsx($e,{className:"h-3.5 w-3.5 text-[#f45815]"})," 30 Seconds To Clarity"]}),e.jsxs("h2",{className:"mt-5 font-['Bebas_Neue'] text-[40px] leading-[0.9] text-zinc-900 sm:text-[58px]",children:["LOG A SHIFT IN ",e.jsx("span",{className:"text-[#f45815]",children:"30 SECONDS"})]}),e.jsx("p",{className:"mx-auto mt-4 max-w-[52ch] text-[15px] leading-relaxed text-zinc-600",children:"No spreadsheets. No manual math. Three taps and you know your real number for that shift, that day, that platform."})]}),e.jsx("div",{className:"mt-12 grid grid-cols-1 gap-4 sm:grid-cols-3",children:[{n:"01",title:"Enter gross + tips + hours",desc:"What you actually worked. Clock in, clock out, done."},{n:"02",title:"Tag your platforms",desc:"Uber, Lyft, DoorDash, Spark, Instacart, Amazon Flex — mix and match."},{n:"03",title:"Add miles, fuel, tolls",desc:"Total miles, dead miles, fuel, tolls, other fees. We handle the rest."}].map(c=>e.jsxs("div",{className:"rounded-[18px] border border-zinc-200 bg-white p-6 text-left shadow-sm",children:[e.jsx("p",{className:"font-['Bebas_Neue'] text-[32px] leading-none text-[#f45815]",children:c.n}),e.jsx("p",{className:"mt-3 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-wide text-zinc-900",children:c.title}),e.jsx("p",{className:"mt-2 text-[13px] leading-[1.5] text-zinc-500",children:c.desc})]},c.n))}),e.jsxs(X.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"mx-auto mt-14 max-w-[520px]",children:[e.jsx("div",{className:"relative overflow-hidden rounded-[24px] border border-zinc-200 bg-zinc-50 p-2 shadow-[0_16px_40px_rgba(0,0,0,0.06)]",children:e.jsx("img",{src:ie(rs,600),alt:"Phone showing shift log entry screen",className:"aspect-square w-full rounded-[18px] object-cover"})}),e.jsx("p",{className:"mt-4 text-center text-[11px] uppercase tracking-[0.12em] text-zinc-400",children:"Actual tracker UI — your data, your phone, anywhere"})]})]})]}),e.jsx("section",{className:"order-5 relative bg-zinc-50 px-5 py-16 sm:px-8 sm:py-24 lg:order-4",children:e.jsxs("div",{className:"mx-auto grid max-w-[1200px] grid-cols-1 items-center gap-10 lg:grid-cols-[55%_45%] lg:gap-16",children:[e.jsxs("div",{className:"order-2 lg:order-1",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-white px-3 py-1 text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-900 shadow-sm",children:[e.jsx(le,{className:"h-3.5 w-3.5 text-[#f45815]"})," Your Dashboard"]}),e.jsxs("h2",{className:"mt-5 font-['Bebas_Neue'] text-[40px] leading-[0.9] text-zinc-900 sm:text-[54px]",children:["YOUR DASHBOARD ",e.jsx("span",{className:"text-[#f45815]",children:"UPDATES INSTANTLY"})]}),e.jsx("p",{className:"mt-4 max-w-[48ch] text-[15px] leading-[1.6] text-zinc-600",children:"Every shift you log rebuilds your whole picture. No waiting, no syncing, no guessing which platform carried the day."}),e.jsx("div",{className:"mt-8 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[{icon:We,title:"7-day weighted $/hr",desc:"Smoothed average so one bad day does not wreck your read."},{icon:F,title:"30-day trends",desc:"See if you are climbing or leaking over the month."},{icon:vt,title:"Platform breakdown",desc:"Uber vs Lyft vs DoorDash — who actually pays you best."},{icon:ft,title:"Day × Time heatmap",desc:"Your personal green and red grid. Work more green, less red."},{icon:se,title:"Full shift history",desc:"Every shift saved to your account, export-ready."},{icon:Ee,title:"Phone to laptop sync",desc:"Log in the car, review at home. Always in sync."}].map(c=>e.jsxs("div",{className:"rounded-[14px] border border-zinc-200 bg-white p-4 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(c.icon,{className:"h-4 w-4 text-[#f45815]"}),e.jsx("p",{className:"font-['Barlow_Condensed'] text-[13px] font-bold uppercase tracking-wide text-zinc-900",children:c.title})]}),e.jsx("p",{className:"mt-2 text-[12.5px] leading-[1.5] text-zinc-500",children:c.desc})]},c.title))})]}),e.jsxs(X.div,{initial:{opacity:0}
6,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"order-1 lg:order-2",children:[e.jsx("div",{className:"relative overflow-hidden rounded-[24px] border border-zinc-200 bg-white p-2 shadow-[0_16px_48px_rgba(0,0,0,0.06)]",children:e.jsx("img",{src:ie(is,600),alt:"Dashboard showing earnings charts, heatmap and hourly gauge",className:"aspect-square w-full rounded-[18px] object-cover"})}),e.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-[11px] text-zinc-500",children:[e.jsx(Nt,{className:"h-3.5 w-3.5"})," Real tracker data structure — $/hr, platform pills, heatmap cells"]})]})]})}),e.jsxs("section",{className:"order-6 relative overflow-hidden bg-white px-5 py-16 sm:px-8 sm:py-24 lg:order-5",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_70%_60%_at_85%_20%,rgba(244,88,21,0.08),transparent_60%)]"}),e.jsxs("div",{className:"relative mx-auto grid max-w-[1200px] grid-cols-1 items-center gap-10 lg:grid-cols-[42%_58%] lg:gap-16",children:[e.jsx(X.div,{initial:{opacity:0}
6,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.6},className:"relative",children:e.jsxs("div",{className:"relative overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-[0_16px_40px_rgba(0,0,0,0.06)]",children:[e.jsx("img",{src:ie(ls,600),alt:"Driver smiling showing earnings growth",className:"aspect-square w-full object-cover"}),e.jsxs("div",{className:"absolute bottom-4 left-4 right-4 rounded-[14px] border border-zinc-200 bg-white/95 p-4 backdrop-blur-md shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-emerald-500"}),e.jsx("span",{className:"text-[11px] font-bold uppercase tracking-wide text-zinc-600",children:"Earnings up"})]}),e.jsx("span",{className:"font-['Bebas_Neue'] text-[22px] leading-none text-emerald-600",children:"+23%"})]}),e.jsx("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-zinc-100",children:e.jsx("div",{className:"h-full w-[78%] rounded-full bg-emerald-500"})})]})]})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-emerald-200 bg-emerald-50 px-3 py-1 text-[11px] font-bold uppercase tracking-[0.14em] text-emerald-700",children:[e.jsx(F,{className:"h-3.5 w-3.5"})," What Tracking Actually Changes"]}),e.jsxs("h2",{className:"mt-5 font-['Bebas_Neue'] text-[42px] leading-[0.9] text-zinc-900 sm:text-[56px]",children:["DRIVERS WHO ",e.jsx("span",{className:"text-[#f45815]",children:"TRACK"}),e.jsx("br",{}),"EARN UP TO 23% MORE"]}),e.jsx("p",{className:"mt-5 max-w-[48ch] text-[16px] leading-[1.6] text-zinc-600",children:"Not because the apps pay more — because you learn which hours, which zones, and which platforms pay YOU best. The data makes the decision so your gut does not have to."}),e.jsx("div",{className:"mt-7 space-y-3",children:["You stop working dead windows. Your heatmap shows them in red.","You double down on your top 2 platforms instead of spreading thin.","You see true $/hr after fuel and wear — not the vanity gross the app shows."].map(c=>e.jsxs("div",{className:"flex gap-3 rounded-[12px] border border-zinc-200 bg-zinc-50 px-4 py-3",children:[e.jsx(T,{className:"mt-0.5 h-4 w-4 shrink-0 text-[#f45815]"}),e.jsx("p",{className:"text-[13px] leading-[1.5] text-zinc-600",children:c})]},c))}),e.jsxs("div",{className:"mt-8 rounded-[14px] border border-[#f45815]/20 bg-orange-50 px-4 py-3 text-[12px] text-zinc-700",children:[e.jsx("strong",{className:"text-[#f45815]",children:"Real math:"})," A driver doing 30 hours at $22/hr gross might net $14–$16/hr after $0.58/mile + fuel + tolls. Track it once and you never go back to guessing."]})]})]})]}),e.jsxs("section",{className:"order-1 relative bg-zinc-50 px-5 py-12 sm:px-8 sm:py-16 lg:order-6",children:[e.jsxs("div",{className:"mx-auto max-w-[840px]",children:[e.jsxs("div",{className:"flex rounded-[14px] border border-zinc-200 bg-white p-1.5 shadow-[0_2px_12px_rgba(0,0,0,0.04)]",children:[e.jsxs("button",{onClick:()=>v("premium"),className:`flex flex-1 items-center justify-center gap-2 rounded-[10px] px-4 py-3 text-[13px] font-bold transition ${g==="premium"?"bg-zinc-900 text-white shadow":"text-zinc-600 hover:bg-zinc-50"}`,children:[e.jsx(le,{className:"h-4 w-4"})," Premium Shift Tracker"]}),e.jsxs("button",{onClick:()=>v("plan"),className:`flex flex-1 items-center justify-center gap-2 rounded-[10px] px-4 py-3 text-[13px] font-bold transition ${g==="plan"?"bg-zinc-900 text-white shadow":"text-zinc-600 hover:bg-zinc-50"}`,children:[e.jsx(F,{className:"h-4 w-4"})," Income plan scenarios"]})]}),e.jsx("p",{className:"mt-3 text-center text-[11px] text-zinc-500",children:g==="premium"?"Default: real shifts, true net, heatmap, history — saved to your account.":"Projection only: what 4 streams could pay at 30, 60, 90 days based on your inputs. Not saved as shifts."})]}),e.jsx("div",{className:"mx-auto mt-8 max-w-[840px]",children:A?e.jsxs("div",{className:"animate-pulse rounded-[20px] border border-zinc-200 bg-white p-8",children:[e.jsx("div",{className:"h-6 w-1/3 rounded bg-zinc-100"}),e.jsx("div",{className:"mt-4 h-40 rounded-xl bg-zinc-100"})]}):re?e.jsx("div",{className:"rounded-[24px] border-2 border-[#f45815] bg-white p-1.5 
6shadow-[0_12px_32px_rgba(244,88,21,0.14)] sm:p-2",children:g==="premium"?e.jsx(Zt,{}):e.jsx(Vt,{variant:"full",promotionAccess:Qt})}):e.jsx("div",{className:"mx-auto max-w-[720px]",children:e.jsx("div",{className:"overflow-hidden rounded-[24px] border border-zinc-200 bg-white shadow-[0_24px_80px_rgba(0,0,0,0.08)]",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[120px_1fr]",children:[e.jsxs("div",{className:"hidden bg-zinc-50 p-3 lg:block border-r border-zinc-200",children:[e.jsx("img",{src:ie(os,300),alt:"Premium unlock",className:"aspect-square w-full rounded-[14px] object-cover"}),e.jsxs("div",{className:"mt-3 rounded-[10px] bg-white border border-zinc-200 p-2.5 text-center shadow-sm",children:[e.jsx("p",{className:"font-['Bebas_Neue'] text-[18px] leading-none text-[#f45815]",children:"23%"}),e.jsx("p",{className:"text-[10px] uppercase tracking-wide text-zinc-500",children:"avg lift tracked"})]})]}),e.jsxs("div",{className:"relative bg-white p-7 sm:p-8",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_80%_60%_at_20%_0%,rgba(244,88,21,0.07),transparent_60%),radial-gradient(ellipse_60%_40%_at_85%_10%,rgba(251,146,60,0.06),transparent_50%)]"}),e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#f45815]/20 bg-orange-50 px-3 py-1 text-[10px] font-bold uppercase tracking-[0.18em] text-[#f45815]",children:[e.jsx(He,{className:"h-3 w-3"})," Account-based member access"]}),e.jsxs("div",{className:"mt-6 flex gap-4",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-[14px] border border-zinc-200 bg-zinc-50",children:e.jsx(jt,{className:"h-5 w-5 text-[#f45815]"})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"font-['Bebas_Neue'] text-[26px] leading-[0.9] text-zinc-900 sm:text-[32px]",children:["SEE YOUR NUMBERS ",e.jsx("span",{className:"text-[#f45815]",children:"AFTER SIGN-IN"})]}),e.jsx("p",{className:"mt-2 max-w-[48ch] text-[13px] leading-relaxed text-zinc-600",children:"These account-based tools are available to eligible existing paid members and Academy Founding members after sign-in. New monthly enrollment is currently paused. Free visitors can request the free shift audit, while existing members can manage billing through Driver Membership."})]})]}),e.jsxs("div",{className:"mt-6 grid gap-2.5 rounded-[16px] border border-zinc-200 bg-zinc-50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(se,{className:"h-4 w-4 text-emerald-600"})," Saves to your account — phone to laptop, no samples, all yours"]}),e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(le,{className:"h-4 w-4 text-[#f45815]"})," True net = (gross+tips) − (miles×cost-per-mile) − (fuel+tolls+other)"]}),e.jsxs("div",{className:"flex items-center gap-2 text-[12px] font-medium text-zinc-700",children:[e.jsx(F,{className:"h-4 w-4 text-[#f45815]"})," 7-day and 30-day weighted $/hr, platform filters, day×time heatmap"]})]}),e.jsxs("div",{className:"mt-5 grid gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-[14px] border border-orange-100 bg-orange-50/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#f45815]",children:[e.jsx(se,{className:"h-4 w-4"}),e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-[0.12em]",children:"Who has access"})]}),e.jsx("p",{className:"mt-2 text-[12px] leading-[1.55] text-zinc-600",children:"Sign in with the RSG account tied to an eligible existing paid membership or Academy Founding access. These account-based tools are not included with free membership."})]}),e.jsxs("div",{className:"rounded-[14px] border border-orange-100 bg-orange-50/50 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#f45815]",children:[e.jsx(Z,{className:"h-4 w-4"}),e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-[0.12em]",children:"How to get access"})]}),e.jsx("p",{className:"mt-2 text-[12px] leading-[1.55] text-zinc-600",children:"New monthly enrollment is currently paused. Join free for your RSG account, request the free shift audit, or manage an existing membership through Driver Membership."})]})]}),e.jsxs("div",{className:"mt-6 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[e.jsxs(he,{to:"/driver-membership","data-testid":"join-free-cta",className:"inline-flex min-h-[52px] flex-1 items-center justify-center gap-2 rounded-[14px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_12px_28px_rgba(244,88,21,0.22)] transition hover:bg-[#e14f13]",children:["Join free RSG ",e.jsx(Z,{className:"h-4 w-4"})]}),e.jsx("button",{onClick:E,"data-testid":"signin-cta",className:"inline-flex min-h-[52px] items-center justify-center rounded-[14px] border border-zinc-200 bg-white px-6 text-[14px] font-semibold text-zinc-700 transition hover:bg-zinc-50",children:"Sign in"}),e.jsxs(he,{to:"/driver-membership","data-testid":"manage-membership-cta",className:"inline-flex min-h-[52px] items-center justify-center gap-2 rounded-[14px] border border-zinc-200 bg-white px-6 text-[14px] font-semibold text-zinc-700 transition hover:border-orange-200 hover:bg-orange-50",children:["Manage billing in Driver Membership ",e.jsx(Z,{className:"h-4 w-4"})]})]}),e.jsx("p",{className:"mt-3 text-center text-[11px] text-zinc-400",children:"Already a founding $497 member? Sign in with that email. Your lifetime core access includes these tools."})]})]})]})})})}),e.jsxs("div",{className:"mx-auto mt-12 max-w-[760px] space-y-8",children:[e.jsxs("div",{className:"rounded-[20px] border border-zinc-200 bg-white p-6 sm:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("h3",{className:"font-['Bebas_Neue'] text-[22px] leading-[0.9] text-zinc-900 sm:text-[26px]",children:["How true cost ",e.jsx("span",{className:"text-[#f45815]",children:"works"})]}),e.jsxs("span",{className:"hidden items-center gap-1 rounded-full border border-zinc-200 bg-zinc-50 px-3 py-1 text-[10px] font-bold uppercase tracking-wide text-zinc-600 sm:inline-flex",children:[e.jsx(ve,{className:"h-3 w-3"})," No double count"]})]}),e.jsxs("div",{className:"mt-5 grid gap-4 text-[13px] leading-relaxed text-zinc-600 sm:grid-cols-2",children:[e.jsxs("div",{className:"rounded-[12px] bg-zinc-50 border border-zinc-200 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-wide text-zinc-900",children:"Formula"}),e.jsxs("ul",{className:"mt-2 space-y-1.5 font-mono text-[12px]",children:[e.jsx("li",{children:"Total income = gross + tips"}),e.jsx("li",{children:"Vehicle operating = total miles × cost-per-mile"}),e.jsx("li",{children:"Direct = fuel + tolls + other fees"}),e.jsx("li",{className:"font-bold text-zinc-900",children:"True net = income − vehicle − direct"}),e.jsx("li",{className:"font-bold text-zinc-900",children:"True hourly = true net ÷ hours"})]}),e.jsxs("div",{className:"mt-3 rounded-[10px] bg-zinc-900 p-3 text-[11px] leading-relaxed text-zinc-300",children:[e.jsx("span",{className:"font-bold text-[#f45815]",children:"Example:"})," $180 gross + $22 tips across 4.5 hrs, 89 miles @ $0.30, $18 fuel, $6 tolls = ",e.jsx("span",{className:"font-bold text-white",children:"$129.30 true net / $28.73 true $/hr"})]})]}),e.jsxs("div",{className:"rounded-[12px] bg-zinc-50 border border-zinc-200 p-4",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-wide text-zinc-900",children:"Why separate fuel?"}),e.jsx("p",{className:"mt-2",children:"Fuel changes per shift and per price. Cost-per-mile here covers wear, maintenance, depreciation, and insurance reserve — not fuel. You log fuel per shift so we never double count. That is also why the tracker shows operating profit before taxes. Not tax advice."}),e.jsxs("div",{className:"mt-3 flex gap-2",children:[e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-white border border-zinc-200 px-2.5 py-1 text-[10px] font-semibold text-zinc-600 shadow-sm",children:[e.jsx(zt,{className:"h-3 w-3"})," Fuel logged per shift"]}),e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-white border border-zinc-200 px-2.5 py-1 text-[10px] font-semibold text-zinc-600 shadow-sm",children:[e.jsx(se,{className:"h-3 w-3"})," Wear in CPM"]})]})]})]})]}),e.jsxs("div",{className:"rounded-[20px] border border-[#f45815]/15 bg-white p-6 sm:p-8 shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 text-[#f45815]",children:[e.jsx(F,{className:"h-4 w-4"}),e.jsx("span",{className:"font-['Barlow_Condensed'] text-[12px] font-bold uppercase tracking-[0.14em]",children:"Income Plan — what it is and is not"})]}),e.jsxs("ul",{className:"mt-4 space-y-2 text-[13px] leading-relaxed text-zinc-600",children:[e.jsxs("li",{children:["• ",e.jsx("span",{className:"font-semibold text-zinc-900",children:"Premium Shift Tracker:"})," real history, saves to your account, powers 7-day, 30-day, platform breakdown, and heatmap."]}),e.jsxs("li",{children:["• ",e.jsx("span",{className:"font-semibold text-zinc-900",children:"Income Plan:"})," forward-looking projection only. Uses sliders (hours, rate, direct clients, market multiplier, NEMT). Does not read shift history."]}),e.jsxs("li",{children:["• ",e.jsx("span",{className:"font-semibold text-zinc-900",children:"Access:"})," Eligible existing paid members and Academy Founding members can use both tools after signing in. New monthly enrollment is currently paused. Free members can still request the shift audit. Both work phone-first with big controls."]})]}),e.jsxs("div",{className:"mt-6 flex flex-wrap gap-3",children:[e.jsxs(he,{to:"/gig-boss-academy",className:"inline-flex min-h-[44px] items-center justify-center rounded-[12px] bg-[#f45815] px-5 text-[13px] font-bold text-white",children:["Back to Academy ",e.jsx(Z,{className:"ml-2 h-4 w-4"})]}),e.jsx(he,{to:"/pro-tools-earn",className:"inline-flex min-h-[44px] items-center justify-center rounded-[12px] border border-zinc-200 bg-white px-5 text-[13px] font-semibold text-zinc-700",children:"All Tools"})]})]})]})]}),e.jsxs("section",{className:"order-7 relative bg-zinc-50 px-5 py-16 sm:px-8 sm:py-24 lg:order-7",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_90%_50%_at_50%_0%,rgba(244,88,21,0.08),transparent_60%)]"}),e.jsxs("div",{className:"relative mx-auto max-w-[880px]",children:[e.jsx("div",{className:"overflow-hidden rounded-[28px] border border-zinc-200 bg-white shadow-[0_24px_80px_rgba(0,0,0,0.06)]",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[44%_56%]",children:[e.jsxs("div",{className:"relative hidden overflow-hidden lg:block bg-zinc-100",children:[e.jsx("img",{src:ie(cs,600),alt:"Rideshare driver reviewing a shift log and fuel notes",className:"h-full w-full object-cover"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white/80 via-white/20 to-transparent"}),e.jsxs("div",{className:"absolute bottom-5 left-5 right-5 rounded-[14px] border border-zinc-200 bg-white/90 p-4 backdrop-blur-md shadow-sm",children:[e.jsx("p",{className:"font-['Barlow_Condensed'] text-[11px] font-bold uppercase tracking-wide text-[#f45815]",children:"What you get"}),e.jsxs("ul",{className:"mt-2 space-y-1.5 text-[12px] text-zinc-600",children:[e.jsxs("li",{className:"flex gap-2",children:[e.jsx(T,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600"})," Real cost breakdown of 3 sample shifts"]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx(T,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600"})," Fuel + wear + tolls leak calculator"]}),e.jsxs("li",{className:"flex gap-2",children:[e.jsx(T,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600"})," Heatmap preview + platform tips"]})]})]})]}),e.jsx("div",{className:"p-7 sm:p-10",children:ae?e.jsxs("div",{className:"flex min-h-[360px] flex-col items-center justify-center text-center",children:[e.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-emerald-50 text-emerald-600 ring-1 ring-emerald-200",children:e.jsx(T,{className:"h-8 w-8"})}),e.jsx("h3",{className:"mt-6 font-['Bebas_Neue'] text-[30px] leading-[0.9] text-zinc-900",children:"CHECK YOUR INBOX"}),e.jsxs("p",{className:"mt-3 max-w-[36ch] text-[14px] leading-[1.6] text-zinc-600",children:["Your free shift audit lands in under 2 minutes at ",e.jsx("span",{className:"font-semibold text-zinc-900",children:Y}),". If you do not see it, check spam and drag it to primary."]}),e.jsx("button",{onClick:()=>{d(!1),W(""),V("")},className:"mt-6 text-[13px] font-semibold text-[#f45815] underline underline-offset-4 hover:text-[#e14f13]",children:"Send to a different email"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-200 bg-zinc-50 px-3 py-1 text-[11px] font-bold uppercase tracking-[0.14em] text-zinc-600",children:[e.jsx(me,{className:"h-3.5 w-3.5 text-[#f45815]"})," Still deciding?"]}),e.jsxs("h2",{className:"mt-5 font-['Bebas_Neue'] text-[36px] leading-[0.9] text-zinc-900 sm:text-[44px]",children:["NOT READY TO COMMIT?",e.jsx("br",{}),e.jsx("span",{className:"text-[#f45815]",children:"GET YOUR FREE SHIFT AUDIT FIRST"})]}),e.jsx("p",{className:"mt-4 max-w-[46ch] text-[14px] leading-[1.6] text-zinc-600",children:"We will show you what 3 shifts look like after real expenses — fuel, wear, tolls, dead miles included. No credit card, no pitch. Just the number you have been missing."}),e.jsxs("div",{className:"mt-7 space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(nt,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),e.jsx("input",{value:Y,onChange:c=>W(c.target.value),placeholder:"Your best email*",className:"h-[48px] w-full rounded-[12px] border border-zinc-200 bg-zinc-50 pl-10 pr-4 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-[#f45815]/40 focu
6s:outline-none focus:ring-2 focus:ring-[#f45815]/20"})]}),e.jsxs("div",{className:"relative",children:[e.jsx(lt,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-zinc-400"}),e.jsx("input",{value:B,onChange:c=>V(c.target.value),placeholder:"First name (optional)",className:"h-[48px] w-full rounded-[12px] border border-zinc-200 bg-zinc-50 pl-10 pr-4 text-[14px] text-zinc-900 placeholder:text-zinc-400 focus:border-zinc-300 focus:outline-none"})]})]}),e.jsxs("button",{disabled:C,onClick:()=>Q(Y,B,q,d),className:"inline-flex h-[52px] w-full items-center justify-center gap-2 rounded-[14px] bg-[#f45815] px-6 font-['Barlow_Condensed'] text-[15px] font-bold uppercase tracking-[0.06em] text-white shadow-[0_12px_28px_rgba(244,88,21,0.22)] transition hover:bg-[#e14f13] disabled:opacity-60",children:[C?"Sending...":"Send My Free Audit"," ",e.jsx(Z,{className:"h-4 w-4"})]}),e.jsx("p",{className:"text-center text-[11px] text-zinc-400",children:"Join 1,800+ drivers who stopped guessing. Unsubscribe anytime. No spam — just your real numbers."})]}),e.jsxs("div",{className:"mt-6 flex items-center gap-2 rounded-[12px] border border-zinc-200 bg-zinc-50 px-3 py-2.5 text-[11px] text-zinc-500",children:[e.jsx(se,{className:"h-4 w-4 text-emerald-600"})," Your email is safe. We use it to send your audit and occasional driver earning tips. No selling, ever."]})]})})]})}),e.jsxs("div",{className:"mt-8 flex flex-wrap justify-center gap-2 text-[11px] text-zinc-500",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-zinc-200 bg-white px-3 py-1 shadow-sm",children:[e.jsx(se,{className:"h-3 w-3"})," No credit card needed for audit"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-zinc-200 bg-white px-3 py-1 shadow-sm",children:[e.jsx(Ee,{className:"h-3 w-3"})," Delivered in 2 minutes"]}),e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-zinc-200 bg-white px-3 py-1 shadow-sm",children:[e.jsx(le,{className:"h-3 w-3"})," Real numbers, not theory"]})]})]})]})]})}export{Bs 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.