{"version":3,"file":"ClosingBlock.DTHEUfxJ.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/13TwqfW6yEa6ToZb8YNH/U2f4taBLPKvAl0k0PCb9/ClosingBlock.js"],"sourcesContent":["// Purple closing block — the live-build offer, one white button, a second line. White on Primary is 6.03:1.\n// Copy stays as props because the compare and industry pages carry page-specific closers, set on the\n// instance. Defaults below are the homepage version (15 Sep 2026): the second line now sends the\n// self-serve buyer to Free rather than to the roadmap; the roadmap line lives on /roadmap itself.\n// Links go through Framer's own <Link> so internal pages route correctly on the canvas, in preview and live.\n// hrefOf() normalises string-or-object Link values.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef,useState,useEffect,startTransition}from\"react\";import{useInView}from\"framer-motion\";import{addPropertyControls,ControlType,useIsStaticRenderer,Link}from\"framer\";const FONT='\"Inter Display\", \"Inter\", -apple-system, system-ui, sans-serif';function hrefOf(v,fallback){if(typeof v===\"string\"&&v.trim())return v.trim();if(v&&typeof v===\"object\"){const o=v;const c=o.href??o.url??o.path??o.pathname;if(typeof c===\"string\"&&c.trim())return c.trim();}return fallback;}/**\n * Closing block\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function ClosingBlock(props){const{title,lead,leadShort,ctaLabel,nextLabel,ink,primary,lavender}=props;const ctaLink=hrefOf(props.ctaLink,\"/contact\");const nextLink=hrefOf(props.nextLink,\"/pricing\");const ref=useRef(null);const inView=useInView(ref,{amount:.3,once:true});const isStatic=useIsStaticRenderer();const[on,setOn]=useState(false);useEffect(()=>{if(inView)startTransition(()=>setOn(true));},[inView]);const uid=\"rs-cb\";const css=`\n    .${uid}{font-family:${FONT};background:${primary};color:#fff;border-radius:32px;padding:clamp(80px,10vw,128px) clamp(24px,4vw,56px);box-sizing:border-box;width:100%;text-align:center}\n    .${uid} .w{max-width:1200px;margin:0 auto}\n    .${uid} h2{font-size:clamp(34px,4.2vw,56px);line-height:1.06;letter-spacing:-.03em;font-weight:600;margin:0 auto;max-width:16ch;text-wrap:balance}\n    .${uid} .lead{font-size:clamp(18px,1.4vw,20px);line-height:1.5;color:rgba(255,255,255,.82);margin:24px auto 0;max-width:46ch}\n    .${uid} .short{display:none}\n    .${uid} .cta{margin-top:32px;display:flex;justify-content:center;gap:18px;flex-wrap:wrap;align-items:center}\n    .${uid} .btn{display:inline-flex;align-items:center;min-height:52px;padding:0 26px;border-radius:999px;background:#fff;color:${ink};font-weight:600;font-size:17px;letter-spacing:-.01em;text-decoration:none;transition:transform .28s cubic-bezier(.16,1,.3,1),background .2s}\n    .${uid} .btn:hover{background:${lavender}}\n    .${uid} .btn:active{transform:scale(.965);transition-duration:.09s}\n    .${uid} .next{color:rgba(255,255,255,.82);font-size:14px;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.3);padding:8px 0}\n    .${uid} .next:hover{color:#fff}\n    .${uid} .rv{opacity:0;transform:translateY(14px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0)*55ms)}\n    .${uid}.in .rv{opacity:1;transform:none}\n    @media (max-width:900px){.${uid}{padding:64px 24px}.${uid} p.long{display:none}.${uid} .short{display:block}}\n    @media (prefers-reduced-motion:reduce){.${uid} .rv{transform:none;transition:opacity .3s}}\n  `;return /*#__PURE__*/_jsxs(\"section\",{ref:ref,className:`${uid}${on||isStatic?\" in\":\"\"}`,style:props.style,children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"div\",{className:\"w\",children:[/*#__PURE__*/_jsx(\"h2\",{className:\"rv\",children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"lead long rv\",style:{[\"--i\"]:1},children:lead}),/*#__PURE__*/_jsx(\"p\",{className:\"lead short rv\",style:{[\"--i\"]:1},children:leadShort||lead}),/*#__PURE__*/_jsxs(\"div\",{className:\"cta rv\",style:{[\"--i\"]:2},children:[/*#__PURE__*/_jsx(Link,{href:ctaLink,children:/*#__PURE__*/_jsx(\"a\",{className:\"btn\",children:ctaLabel})}),nextLabel?/*#__PURE__*/_jsx(Link,{href:nextLink,children:/*#__PURE__*/_jsx(\"a\",{className:\"next\",children:nextLabel})}):null]})]})]});}addPropertyControls(ClosingBlock,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"Bring one document. Leave with a course your reviewers can sign.\"},lead:{type:ControlType.String,title:\"Lead\",displayTextArea:true,defaultValue:\"In 30 minutes we build a module from your own policy, in your language, and you watch a named person on your side approve it screen by screen. Then decide.\"},leadShort:{type:ControlType.String,title:\"Lead (mobile)\",defaultValue:\"Thirty minutes. Your policy, your language, a module your reviewer can sign.\"},ctaLabel:{type:ControlType.String,title:\"Button\",defaultValue:\"Book a live build\"},ctaLink:{type:ControlType.Link,title:\"Button link\",defaultValue:\"/contact\"},nextLabel:{type:ControlType.String,title:\"Next line\",defaultValue:\"Or start free: 3,000 credits, no card\"},nextLink:{type:ControlType.Link,title:\"Next link\",defaultValue:\"/pricing\"},ink:{type:ControlType.Color,title:\"Ink\",defaultValue:\"#14193E\"},primary:{type:ControlType.Color,title:\"Primary\",defaultValue:\"#574AE2\"},lavender:{type:ControlType.Color,title:\"Lavender\",defaultValue:\"#D1D4F0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ClosingBlock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ClosingBlock.map"],"mappings":"iQAMoT,SAAS,EAAO,EAAE,EAAS,CAAC,GAAG,OAAO,GAAI,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,GAAI,SAAS,CAAC,IAAM,EAAE,EAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,G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