{"version":3,"file":"BlogCTA.C3IOdPl8.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_BisrWwwE","addPropertyControls","BlogCTA","props","colors","DEFAULT_COLORS","fontFamily","cardRadius","buttonRadius","CSS","title","text","buttonLink","buttonLabel","init_BlogCTA","ControlType"],"sources":["https:/framerusercontent.com/modules/Jpmg7Qv7hbuTPSEbf3zI/S0eHY0lVNFeNx8LlsL3x/BlogCTA.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/* =========================================================\n   REVERSE BRAIN ROT — BLOG CTA\n   Dark \"Take the assessment\" box for the bottom of /blog\n   (and the bottom of each post page). Same design as the\n   CTA on the characters page. Pads and centres itself, so\n   in Framer you just drop it in and set width to Fill.\n   ========================================================= */const DEFAULT_COLORS={dark:\"#0E1A3C\",accent:\"#1F4BFF\",muted:\"#56607A\"};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 1024\n */export default function BlogCTA(props){const{title,text,buttonLabel,buttonLink,fontFamily,cardRadius,buttonRadius}=props;const colors={...DEFAULT_COLORS,...props.colors};return /*#__PURE__*/_jsxs(\"div\",{className:\"rbb-ctaw\",style:{\"--dark\":colors.dark,\"--accent\":colors.accent,\"--font\":fontFamily,\"--r\":`${cardRadius}px`,\"--br\":`${buttonRadius}px`},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{className:\"rbb-ctain\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"rbb-cta\",children:[/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"h2\",{className:\"rbb-cta-title\",children:title}),/*#__PURE__*/_jsx(\"p\",{className:\"rbb-cta-text\",children:text})]}),/*#__PURE__*/_jsxs(\"a\",{className:\"rbb-btn\",href:buttonLink||\"/assessment\",children:[buttonLabel,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]})]})})]});}const CSS=`\n.rbb-ctaw {\n    container: rbbcta / inline-size;\n    width: 100%;\n    font-family: var(--font);\n    -webkit-font-smoothing: antialiased;\n}\n.rbb-ctain { max-width: 1120px; margin: 0 auto; padding: 72px 48px 72px; }\n.rbb-ctaw *, .rbb-ctaw *::before, .rbb-ctaw *::after { box-sizing: border-box; }\n.rbb-ctaw :where(p, h2) { margin: 0; }\n.rbb-cta {\n    position: relative;\n    overflow: hidden;\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: space-between;\n    gap: 24px 40px;\n    padding: 48px;\n    border-radius: var(--r);\n    background: var(--dark);\n    color: #FFFFFF;\n}\n.rbb-cta::before {\n    content: \"\";\n    position: absolute;\n    right: -80px; top: -120px;\n    width: 320px; height: 320px;\n    border-radius: 50%;\n    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);\n    pointer-events: none;\n}\n.rbb-cta > * { position: relative; }\n.rbb-cta-title {\n    margin-bottom: 8px !important;\n    font-size: clamp(26px, 3.6cqi, 36px);\n    line-height: 1.15;\n    font-weight: 700;\n    letter-spacing: -0.02em;\n}\n.rbb-cta-text { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.6; }\n.rbb-btn {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: 10px;\n    min-height: 48px;\n    padding: 13px 24px;\n    border-radius: var(--br);\n    background: #FFFFFF;\n    color: var(--dark);\n    font-size: 15px;\n    font-weight: 600;\n    line-height: 1.2;\n    text-decoration: none;\n    white-space: nowrap;\n    transition: transform 0.15s ease;\n}\n.rbb-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }\n@media (hover: hover) { .rbb-btn:hover { transform: translateY(-1px); } }\n@media (prefers-reduced-motion: reduce) { .rbb-btn { transition: none; } }\n@container rbbcta (max-width: 900px) {\n    .rbb-ctain { padding-left: 32px; padding-right: 32px; }\n}\n@container rbbcta (max-width: 700px) {\n    .rbb-ctain { padding: 56px 16px 48px; }\n    .rbb-cta { padding: 32px 22px; }\n    .rbb-btn { width: 100%; }\n}\n`;BlogCTA.defaultProps={title:\"Find your character\",text:\"The assessment takes 6–8 minutes. Your free result comes straight after.\",buttonLabel:\"Take the assessment\",buttonLink:\"/assessment\",colors:DEFAULT_COLORS,fontFamily:\"Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif\",cardRadius:10,buttonRadius:999};addPropertyControls(BlogCTA,{title:{type:ControlType.String,title:\"Title\"},text:{type:ControlType.String,title:\"Text\",displayTextArea:true},buttonLabel:{type:ControlType.String,title:\"Button text\"},buttonLink:{type:ControlType.Link,title:\"Button link\"},colors:{type:ControlType.Object,title:\"Colours\",controls:{dark:{type:ControlType.Color,title:\"Dark\",defaultValue:DEFAULT_COLORS.dark},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:DEFAULT_COLORS.accent}}},fontFamily:{type:ControlType.String,title:\"Font\"},cardRadius:{type:ControlType.Number,title:\"Card Radius\",min:0,max:32,unit:\"px\"},buttonRadius:{type:ControlType.Number,title:\"Button Radius\",min:0,max:999,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BlogCTA\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1024\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlogCTA.map"],"mappings":"A,8JAUG,SAAwBM,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,cAAY,aAAW,aAAW,aAAW,gBAAcC,EAAYC,EAAO,CAAC,GAAGC,EAAe,GAAGF,EAAM,MAAM,EAAE,MAAoB,gBAAM,MAAM,CAAC,UAAU,WAAW,MAAM,CAAC,SAASC,EAAO,KAAK,WAAWA,EAAO,OAAO,SAASE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