{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bpsc/how-it-works-section",
  "version": "1.0.0",
  "title": "How It Works Section",
  "category": "bPlugins",
  "description": "A process walkthrough that explains how something works in 3–6 numbered steps, with five layouts.",
  "keywords": [
    "how it works",
    "process steps",
    "workflow",
    "steps",
    "tutorial",
    "section"
  ],
  "textdomain": "section-collection",
  "attributes": {
    "themeStyle": {
      "type": "object",
      "default": {
        "theme": "style-1"
      }
    },
    "content": {
      "type": "object",
      "default": {
        "badgeText": "How It Works",
        "title": "Get Started in Three Simple Steps",
        "subtitle": "Everything you need to hit the ground running — no learning curve required.",
        "showConnectors": true,
        "steps": [
          {
            "id": "step-1",
            "number": "01",
            "icon": "bolt",
            "title": "Create Your Account",
            "description": "Sign up in 30 seconds. No credit card needed. Your workspace is ready instantly.",
            "image": {
              "url": "",
              "alt": ""
            },
            "linkUrl": "",
            "linkLabel": "Learn more"
          },
          {
            "id": "step-2",
            "number": "02",
            "icon": "layers",
            "title": "Configure Your Workflow",
            "description": "Connect your tools, set your preferences, and build the setup that fits your team.",
            "image": {
              "url": "",
              "alt": ""
            },
            "linkUrl": "",
            "linkLabel": "Learn more"
          },
          {
            "id": "step-3",
            "number": "03",
            "icon": "rocket",
            "title": "Launch and Scale",
            "description": "Go live in minutes. Invite your team and watch results compound from day one.",
            "image": {
              "url": "",
              "alt": ""
            },
            "linkUrl": "",
            "linkLabel": "Learn more"
          }
        ],
        "showCta": true,
        "ctaLabel": "Get Started Free",
        "ctaUrl": "#",
        "ctaNewTab": false,
        "ctaSecondaryLabel": "See a Demo",
        "ctaSecondaryUrl": "#",
        "ctaSecondaryNewTab": false
      }
    },
    "elements": {
      "type": "object",
      "default": {
        "isBadge": true,
        "isTitle": true,
        "isSubtitle": true,
        "isSecondaryBtn": false
      }
    },
    "wrapper": {
      "type": "object",
      "default": {
        "bg": {
          "type": "solid",
          "color": "#ffffff",
          "gradient": "linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%)",
          "overlayColor": "rgba(0,0,0,0)",
          "image": {
            "url": ""
          },
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover"
        },
        "padding": {
          "desktop": {
            "top": "80px",
            "right": "24px",
            "bottom": "80px",
            "left": "24px"
          },
          "tablet": {
            "top": "60px",
            "right": "20px",
            "bottom": "60px",
            "left": "20px"
          },
          "mobile": {
            "top": "48px",
            "right": "16px",
            "bottom": "48px",
            "left": "16px"
          }
        },
        "margin": {
          "desktop": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          },
          "tablet": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          },
          "mobile": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          }
        }
      }
    },
    "layout": {
      "type": "object",
      "default": {
        "contentAlign": "center",
        "maxWidth": "1200px"
      }
    },
    "titleStyle": {
      "type": "object",
      "default": {
        "color": "#111827",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 700,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 40,
            "tablet": 32,
            "mobile": 26
          },
          "lineHeight": "1.2",
          "letterSpace": "0px"
        }
      }
    },
    "subtitleStyle": {
      "type": "object",
      "default": {
        "color": "#6b7280",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 18,
            "tablet": 16,
            "mobile": 15
          },
          "lineHeight": "1.65",
          "letterSpace": "0px"
        }
      }
    },
    "badgeStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#eff6ff",
        "textColor": "#2563eb",
        "borderRadius": {
          "top": "20px",
          "right": "20px",
          "bottom": "20px",
          "left": "20px"
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 13,
            "tablet": 13,
            "mobile": 13
          }
        }
      }
    },
    "stepCardStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#f9fafb",
        "borderColor": "#e5e7eb",
        "borderRadius": {
          "top": "12px",
          "right": "12px",
          "bottom": "12px",
          "left": "12px"
        },
        "padding": {
          "desktop": {
            "top": "32px",
            "right": "28px",
            "bottom": "32px",
            "left": "28px"
          },
          "tablet": {
            "top": "24px",
            "right": "20px",
            "bottom": "24px",
            "left": "20px"
          },
          "mobile": {
            "top": "20px",
            "right": "16px",
            "bottom": "20px",
            "left": "16px"
          }
        },
        "hoverShadow": "0 8px 32px rgba(0,0,0,0.10)"
      }
    },
    "stepNumberStyle": {
      "type": "object",
      "default": {
        "color": "#ffffff",
        "backgroundColor": "#6366f1",
        "style": "filled",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 700,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 18,
            "tablet": 16,
            "mobile": 15
          }
        }
      }
    },
    "stepTitleStyle": {
      "type": "object",
      "default": {
        "color": "#111827",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 20,
            "tablet": 18,
            "mobile": 17
          },
          "lineHeight": "1.35"
        }
      }
    },
    "stepDescStyle": {
      "type": "object",
      "default": {
        "color": "#6b7280",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 16,
            "tablet": 15,
            "mobile": 14
          },
          "lineHeight": "1.65"
        }
      }
    },
    "connectorStyle": {
      "type": "object",
      "default": {
        "color": "#d1d5db",
        "style": "solid",
        "thickness": "2px"
      }
    },
    "accentColor": {
      "type": "object",
      "default": {
        "color": "#6366f1"
      }
    },
    "ctaStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#6366f1",
        "textColor": "#ffffff",
        "hoverBackgroundColor": "#4f46e5",
        "hoverTextColor": "#ffffff",
        "borderRadius": {
          "top": "8px",
          "right": "8px",
          "bottom": "8px",
          "left": "8px"
        },
        "padding": {
          "desktop": {
            "top": "14px",
            "right": "32px",
            "bottom": "14px",
            "left": "32px"
          },
          "tablet": {
            "top": "12px",
            "right": "24px",
            "bottom": "12px",
            "left": "24px"
          },
          "mobile": {
            "top": "11px",
            "right": "20px",
            "bottom": "11px",
            "left": "20px"
          }
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 15,
            "tablet": 14,
            "mobile": 14
          }
        }
      }
    },
    "ctaSecondaryStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "transparent",
        "textColor": "#6366f1",
        "hoverBackgroundColor": "transparent",
        "hoverTextColor": "#4f46e5",
        "borderColor": "#6366f1",
        "hoverBorderColor": "#4f46e5",
        "borderRadius": {
          "top": "8px",
          "right": "8px",
          "bottom": "8px",
          "left": "8px"
        },
        "padding": {
          "desktop": {
            "top": "14px",
            "right": "32px",
            "bottom": "14px",
            "left": "32px"
          },
          "tablet": {
            "top": "12px",
            "right": "24px",
            "bottom": "12px",
            "left": "24px"
          },
          "mobile": {
            "top": "11px",
            "right": "20px",
            "bottom": "11px",
            "left": "20px"
          }
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 15,
            "tablet": 14,
            "mobile": 14
          }
        }
      }
    },
    "align": {
      "type": "string",
      "default": "full"
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "html": false
  },
  "example": {
    "attributes": {}
  },
  "editorScript": "file:../index.js",
  "style": "file:./view.css",
  "render": "file:./render.php",
  "viewScript": "file:./view.js"
}