/* global React */
/* Klaviyo's POV for FS — system of record vs system of engagement,
   six N Brown FS scenarios, fit rationale, Bayer partnership precedent. */

const fsStyles = {
  /* === Section 1 · POV intro + split system === */
  section: {
    background: "var(--nb-cream-2)",
    color: "var(--nb-ink)",
    padding: "140px 56px 160px",
    borderTop: "1px solid var(--nb-line)",
    position: "relative",
    overflow: "hidden",
  },
  glow: {
    position: "absolute", top: "-10%", left: "-10%",
    width: "50%", height: "50%",
    background: "radial-gradient(circle at center, rgba(249,99,83,0.10), transparent 65%)",
    filter: "blur(40px)", pointerEvents: "none",
  },
  inner: { maxWidth: 1320, margin: "0 auto", position: "relative", zIndex: 2 },

  head: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 80, alignItems: "end", marginBottom: 64 },
  eyebrow: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-rust)", marginBottom: 24, fontWeight: 700 },
  title: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(40px, 5vw, 72px)", lineHeight: 1.05, letterSpacing: "-0.015em", margin: 0, color: "var(--nb-ink)" },
  sub: { fontSize: 17, lineHeight: 1.65, color: "var(--nb-navy)", maxWidth: 520 },

  /* Split system */
  splitWrap: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 16,
    padding: 40,
    marginBottom: 24,
  },
  splitRow: {
    display: "grid",
    gridTemplateColumns: "1fr 160px 1fr",
    gap: 28,
    alignItems: "stretch",
  },
  sysCard: {
    background: "var(--nb-cream)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    padding: "32px 32px 28px",
    display: "flex", flexDirection: "column",
  },
  sysLab: { fontSize: 10, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 700, marginBottom: 18 },
  sysHead: { display: "flex", alignItems: "center", gap: 12, paddingBottom: 18, marginBottom: 18, borderBottom: "1px solid var(--nb-line)" },
  sysIcon: (color) => ({
    width: 22, height: 22, borderRadius: 4,
    border: `1.5px solid ${color}`,
    display: "flex", alignItems: "center", justifyContent: "center",
    flexShrink: 0,
  }),
  sysTitle: { fontFamily: "var(--serif)", fontSize: 26, lineHeight: 1.1, margin: 0, fontWeight: 500, letterSpacing: "-0.005em", color: "var(--nb-ink)" },
  sysList: { display: "flex", flexDirection: "column" },
  sysItem: {
    display: "grid", gridTemplateColumns: "16px 1fr", gap: 14,
    alignItems: "start",
    padding: "14px 0",
    borderBottom: "1px solid rgba(219,212,204,0.6)",
    fontSize: 14.5, lineHeight: 1.5, color: "var(--nb-ink)",
  },
  sysCheck: (color) => ({
    width: 14, height: 14, borderRadius: 3,
    border: `1.5px solid ${color}`,
    marginTop: 4,
  }),

  /* Center bridge */
  bridge: {
    display: "flex", flexDirection: "column",
    alignItems: "center", justifyContent: "center",
    gap: 18,
    padding: "20px 0",
  },
  bridgeRow: {
    display: "flex", flexDirection: "column", alignItems: "center", gap: 4,
    fontSize: 11, letterSpacing: "0.16em", textTransform: "uppercase",
    color: "var(--nb-soft)", fontWeight: 700, textAlign: "center",
  },
  bridgeArrow: { fontSize: 26, color: "var(--nb-rust)", lineHeight: 1 },
  bridgeApi: {
    marginTop: 12, paddingTop: 18, borderTop: "1px dashed var(--nb-line)",
    width: "100%",
    fontFamily: "var(--serif)", fontStyle: "italic",
    fontSize: 14, color: "var(--nb-navy)", textAlign: "center",
    lineHeight: 1.3,
  },

  /* === Scenarios grid === */
  scenSection: {
    background: "var(--nb-cream)",
    color: "var(--nb-ink)",
    padding: "120px 56px 140px",
    borderTop: "1px solid var(--nb-line)",
  },
  scenHead: { marginBottom: 48, maxWidth: 720 },
  scenEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-soft)", marginBottom: 18, fontWeight: 700 },
  scenT: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(34px, 4vw, 56px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0, color: "var(--nb-ink)" },
  scenSub: { marginTop: 18, fontSize: 16, lineHeight: 1.6, color: "var(--nb-navy)", maxWidth: 620 },

  scenGrid: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 18 },
  scenCard: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    padding: "28px 28px 32px",
    display: "flex", flexDirection: "column", gap: 14,
    minHeight: 280,
  },
  scenNum: { fontSize: 11, color: "var(--nb-soft)", letterSpacing: "0.06em", fontWeight: 500 },
  scenName: { fontFamily: "var(--serif)", fontSize: 22, lineHeight: 1.2, margin: 0, fontWeight: 500, letterSpacing: "-0.005em", color: "var(--nb-ink)" },
  scenBlurb: { fontSize: 13.5, lineHeight: 1.55, color: "var(--nb-navy)", paddingBottom: 6 },
  scenSteps: { display: "flex", flexDirection: "column", gap: 12, marginTop: "auto", paddingTop: 16, borderTop: "1px dashed var(--nb-line)" },
  scenStep: { display: "grid", gridTemplateColumns: "14px 1fr", gap: 12, alignItems: "start", fontSize: 13, lineHeight: 1.45 },
  scenStepBoxRust: { width: 12, height: 12, borderRadius: 2, border: "1.5px solid var(--nb-rust)", marginTop: 3 },
  scenStepBoxGreen: { width: 12, height: 12, borderRadius: 2, border: "1.5px solid #2A8F65", marginTop: 3 },

  /* === Eurochange customer proof === */
  ecSection: {
    background: "var(--nb-ink)",
    color: "var(--nb-cream)",
    padding: "120px 56px 140px",
    borderTop: "1px solid var(--nb-line)",
    position: "relative",
    overflow: "hidden",
  },
  ecGlow: {
    position: "absolute", top: "-20%", right: "-10%",
    width: "60%", height: "70%",
    background: "radial-gradient(circle at center, rgba(0,128,160,0.20), transparent 65%)",
    filter: "blur(60px)", pointerEvents: "none",
  },
  ecInner: { maxWidth: 1320, margin: "0 auto", position: "relative", zIndex: 2 },
  ecEye: {
    fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-rose)", fontWeight: 700, marginBottom: 22,
    display: "inline-flex", alignItems: "center", gap: 12,
  },
  ecEyeBadge: {
    fontSize: 9, padding: "3px 8px", background: "var(--nb-rust)",
    color: "var(--nb-cream)", borderRadius: 3, letterSpacing: "0.14em", fontWeight: 700,
  },
  ecGrid: {
    display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 64,
    alignItems: "stretch",
  },
  ecLeft: {
    display: "flex", flexDirection: "column",
  },
  ecLogoWrap: {
    background: "#0d7da3",
    border: "1px solid rgba(255,252,249,0.1)",
    borderRadius: 10,
    padding: "36px 44px",
    display: "inline-flex",
    width: "fit-content",
    alignItems: "center", justifyContent: "center",
    marginBottom: 32,
  },
  ecLogoImg: { width: 240, height: "auto", display: "block" },
  ecT: {
    fontFamily: "var(--serif)", fontWeight: 400,
    fontSize: "clamp(32px, 3.8vw, 52px)", lineHeight: 1.1, letterSpacing: "-0.01em",
    margin: 0, color: "var(--nb-cream)",
  },
  ecB: { marginTop: 22, fontSize: 16, lineHeight: 1.7, color: "rgba(255,252,249,0.82)", maxWidth: 540 },
  ecMeta: {
    marginTop: 32, paddingTop: 22, borderTop: "1px solid rgba(255,252,249,0.18)",
    display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 24,
  },
  ecMetaItem: { display: "flex", flexDirection: "column", gap: 6 },
  ecMetaK: { fontSize: 10, letterSpacing: "0.18em", textTransform: "uppercase", color: "var(--nb-rose)", fontWeight: 700 },
  ecMetaV: { fontSize: 14, color: "var(--nb-cream)", lineHeight: 1.4 },

  ecRight: {
    display: "flex", flexDirection: "column", gap: 16,
    paddingLeft: 32,
    borderLeft: "1px solid rgba(255,252,249,0.12)",
  },
  ecReasonHead: {
    fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-rose)", fontWeight: 700, marginBottom: 6,
  },
  ecReason: {
    background: "rgba(255,252,249,0.04)",
    border: "1px solid rgba(255,252,249,0.12)",
    borderRadius: 10,
    padding: "22px 26px",
    display: "grid", gridTemplateColumns: "auto 1fr", gap: 20, alignItems: "start",
  },
  ecReasonN: {
    fontFamily: "var(--serif)", fontStyle: "italic",
    fontSize: 24, lineHeight: 1, color: "var(--nb-rose)",
    width: 32, textAlign: "center", paddingTop: 2,
  },
  ecReasonT: { fontFamily: "var(--serif)", fontSize: 17, lineHeight: 1.25, margin: 0, fontWeight: 500, color: "var(--nb-cream)" },
  ecReasonB: { marginTop: 6, fontSize: 13.5, lineHeight: 1.55, color: "rgba(255,252,249,0.72)" },

  /* Also-in-FS logo wall (footer of eurochange section) */
  ecWallWrap: {
    marginTop: 80,
    paddingTop: 56,
    borderTop: "1px solid rgba(255,252,249,0.16)",
  },
  ecWallHead: {
    display: "flex", justifyContent: "space-between", alignItems: "baseline",
    gap: 32, marginBottom: 32, flexWrap: "wrap",
  },
  ecWallEye: {
    fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-rose)", fontWeight: 700,
  },
  ecWallT: {
    fontFamily: "var(--serif)", fontSize: 26, lineHeight: 1.2, margin: "6px 0 0",
    fontWeight: 400, letterSpacing: "-0.005em", color: "var(--nb-cream)",
    maxWidth: 640,
  },
  ecWallNote: { fontSize: 12.5, lineHeight: 1.55, color: "rgba(255,252,249,0.55)", maxWidth: 320 },
  ecWallGrid: {
    display: "grid", gridTemplateColumns: "repeat(6, 1fr)", gap: 14,
  },
  ecLogoTile: {
    background: "var(--nb-bone)",
    border: "1px solid rgba(255,252,249,0.12)",
    borderRadius: 10,
    height: 96,
    display: "flex", alignItems: "center", justifyContent: "center",
    padding: "16px 20px",
    overflow: "hidden",
  },
  ecLogoTileDark: {
    background: "#1a1a1f",
    border: "1px solid rgba(255,252,249,0.16)",
  },
  ecLogoSvg: { maxWidth: "100%", maxHeight: "100%", objectFit: "contain", display: "block" },

  /* === Consumer credit retailers section (Oak Furnitureland + Simba) === */
  ccSection: {
    background: "var(--nb-cream)",
    color: "var(--nb-ink)",
    padding: "120px 56px 140px",
    borderTop: "1px solid var(--nb-line)",
  },
  ccHead: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 80, alignItems: "end", marginBottom: 56 },
  ccEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-rust)", marginBottom: 22, fontWeight: 700 },
  ccT: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(34px, 4vw, 56px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0, color: "var(--nb-ink)" },
  ccSub: { fontSize: 16, lineHeight: 1.65, color: "var(--nb-navy)", maxWidth: 520 },

  ccGrid: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 24 },
  ccCard: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 14,
    overflow: "hidden",
    display: "flex", flexDirection: "column",
  },
  ccCardHead: (bg, fg) => ({
    background: bg,
    color: fg,
    padding: "40px 40px 32px",
    display: "flex", flexDirection: "column", gap: 12,
  }),
  ccWordmark: (color, font, size) => ({
    fontFamily: font, fontWeight: 500,
    fontSize: size, lineHeight: 1, letterSpacing: "-0.005em",
    color,
    margin: 0,
  }),
  ccTagline: (color) => ({
    fontSize: 12, letterSpacing: "0.16em", textTransform: "uppercase",
    color, fontWeight: 600,
  }),
  ccMeta: { display: "flex", gap: 18, flexWrap: "wrap", marginTop: 8 },
  ccMetaPill: (bg, fg) => ({
    background: bg, color: fg,
    padding: "5px 12px", borderRadius: 999,
    fontSize: 11, letterSpacing: "0.06em", fontWeight: 700,
  }),

  ccBody: { padding: "32px 40px 36px", display: "flex", flexDirection: "column", gap: 22, flex: 1 },
  ccLine: {
    fontFamily: "var(--serif)", fontSize: 19, lineHeight: 1.35,
    color: "var(--nb-ink)", margin: 0, fontWeight: 400,
  },
  ccRows: { display: "flex", flexDirection: "column", gap: 14 },
  ccRow: {
    display: "grid", gridTemplateColumns: "108px 1fr", gap: 18,
    paddingBottom: 14, borderBottom: "1px dashed var(--nb-line)",
    fontSize: 13.5, lineHeight: 1.5,
    alignItems: "start",
  },
  ccRowLast: { borderBottom: "none", paddingBottom: 0 },
  ccRowK: {
    fontSize: 10, letterSpacing: "0.18em", textTransform: "uppercase",
    color: "var(--nb-soft)", fontWeight: 700, paddingTop: 3,
  },
  ccRowV: { color: "var(--nb-ink)" },
  ccRowVMuted: { color: "var(--nb-navy)" },

  ccSplit: {
    marginTop: "auto",
    display: "grid", gridTemplateColumns: "1fr 1fr", gap: 12,
    paddingTop: 22, borderTop: "1px solid var(--nb-line)",
  },
  ccSplitCard: (border) => ({
    background: "var(--nb-cream)",
    border: `1px solid ${border}`,
    borderRadius: 8,
    padding: "16px 18px",
    display: "flex", flexDirection: "column", gap: 6,
  }),
  ccSplitLab: (color) => ({
    fontSize: 9, letterSpacing: "0.2em", textTransform: "uppercase",
    color, fontWeight: 700,
  }),
  ccSplitB: { fontSize: 12.5, lineHeight: 1.45, color: "var(--nb-navy)" },

  ccLink: {
    marginTop: 4,
    fontSize: 11, letterSpacing: "0.16em", textTransform: "uppercase",
    color: "var(--nb-rust)", textDecoration: "none", fontWeight: 700,
    display: "inline-flex", alignItems: "center", gap: 8,
  },

  ccFooter: {
    marginTop: 32,
    padding: "26px 36px",
    background: "var(--nb-cream-2)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    display: "grid", gridTemplateColumns: "1fr auto", gap: 28, alignItems: "center",
  },
  ccFooterT: {
    fontFamily: "var(--serif)", fontStyle: "italic",
    fontSize: 19, lineHeight: 1.35, margin: 0, color: "var(--nb-ink)", fontWeight: 400,
  },
  ccFooterTag: {
    fontSize: 11, letterSpacing: "0.18em", textTransform: "uppercase",
    color: "var(--nb-burgundy)", fontWeight: 700,
  },

  /* === Fit + Partnership === */
  fitSection: {
    background: "var(--nb-cream-2)",
    color: "var(--nb-ink)",
    padding: "120px 56px 140px",
    borderTop: "1px solid var(--nb-line)",
  },
  fitGrid: { display: "grid", gridTemplateColumns: "1.1fr 1.5fr", gap: 64, alignItems: "start", marginBottom: 96 },
  fitLeft: { position: "sticky", top: 120 },
  fitEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-rust)", marginBottom: 22, fontWeight: 700 },
  fitT: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(32px, 3.8vw, 52px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0, color: "var(--nb-ink)" },
  fitSub: { marginTop: 20, fontSize: 15.5, lineHeight: 1.65, color: "var(--nb-navy)" },

  fitList: { display: "flex", flexDirection: "column", gap: 14 },
  fitItem: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 10,
    padding: "26px 30px",
    display: "grid", gridTemplateColumns: "auto 1fr", gap: 22, alignItems: "start",
  },
  fitNum: {
    fontFamily: "var(--serif)", fontSize: 30, lineHeight: 1,
    color: "var(--nb-rust)", fontWeight: 400, fontStyle: "italic",
    width: 44, textAlign: "center",
  },
  fitItemT: { fontFamily: "var(--serif)", fontSize: 19, lineHeight: 1.25, margin: 0, fontWeight: 500, letterSpacing: "-0.005em", color: "var(--nb-ink)" },
  fitItemB: { marginTop: 8, fontSize: 14, lineHeight: 1.6, color: "var(--nb-navy)" },

  /* Partnership / Bayer */
  partnerWrap: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 16,
    padding: "56px 56px 60px",
    position: "relative",
    overflow: "hidden",
  },
  partnerEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-burgundy)", marginBottom: 22, fontWeight: 700 },
  partnerT: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(32px, 3.8vw, 52px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0, color: "var(--nb-ink)", maxWidth: 760 },
  partnerSub: { marginTop: 20, fontSize: 16, lineHeight: 1.65, color: "var(--nb-navy)", maxWidth: 720 },

  bayerRow: {
    display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 48,
    marginTop: 48,
    alignItems: "stretch",
  },
  bayerQuote: {
    background: "linear-gradient(135deg, var(--nb-cream-2) 0%, #ECE0F0 100%)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    padding: "36px 40px",
    display: "flex", flexDirection: "column", gap: 18,
  },
  bayerQuoteMark: { fontFamily: "var(--serif)", fontSize: 64, lineHeight: 0.5, color: "var(--nb-burgundy)" },
  bayerQuoteText: { fontFamily: "var(--serif)", fontSize: 22, lineHeight: 1.3, color: "var(--nb-ink)", margin: 0, fontWeight: 400 },
  bayerQuoteAttr: {
    marginTop: "auto", paddingTop: 16, borderTop: "1px solid var(--nb-line)",
    fontSize: 12, letterSpacing: "0.12em", textTransform: "uppercase",
    color: "var(--nb-soft)", fontWeight: 700,
  },

  bayerSteps: { display: "flex", flexDirection: "column", gap: 14 },
  bayerStep: {
    display: "grid", gridTemplateColumns: "auto 1fr", gap: 24, alignItems: "start",
    padding: "22px 26px",
    background: "var(--nb-cream)",
    border: "1px solid var(--nb-line)",
    borderRadius: 10,
  },
  bayerStepN: {
    fontFamily: "var(--serif)", fontSize: 13, color: "var(--nb-rust)",
    letterSpacing: "0.18em", textTransform: "uppercase", fontWeight: 700,
    width: 60, paddingTop: 2,
  },
  bayerStepT: { fontFamily: "var(--serif)", fontSize: 17, lineHeight: 1.25, margin: 0, fontWeight: 500, color: "var(--nb-ink)" },
  bayerStepB: { marginTop: 6, fontSize: 13.5, lineHeight: 1.55, color: "var(--nb-navy)" },

  /* Footer line */
  closing: {
    marginTop: 48,
    padding: "28px 36px",
    background: "var(--nb-ink)",
    color: "var(--nb-cream)",
    borderRadius: 12,
    display: "grid", gridTemplateColumns: "1fr auto", gap: 28, alignItems: "center",
  },
  closingT: { fontFamily: "var(--serif)", fontStyle: "italic", fontSize: 22, lineHeight: 1.3, margin: 0, color: "var(--nb-cream)", fontWeight: 400 },
  closingTag: {
    fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-rose)", fontWeight: 700,
  },
};

const FS_RECORD = [
  "Credit scores & limits",
  "Payment & arrears history",
  "Account balances",
  "Credit decisions",
  "FCA-regulated data",
];

const FS_ENGAGEMENT = [
  "Segment flag (e.g. \u201Ccredit-ready\u201D)",
  "Journey trigger (\u201Cfire activation flow\u201D)",
  "Suppression flag (\u201Cat-risk \u2014 no promos\u201D)",
  "Retail & behavioural profile",
  "Channel, timing & content decisions",
];

const FS_SCENARIOS = [
  {
    n: "Scenario 1",
    name: "Credit activation",
    blurb: "Customer is approved for a credit account but hasn\u2019t spent yet. Move them from approved to active without ever seeing a credit limit in Klaviyo.",
    fs: "FS system sends: \u201Capproved, not activated\u201D flag.",
    k: "Klaviyo fires the activation journey, personalised with retail browse and saved-for-later data.",
  },
  {
    n: "Scenario 2",
    name: "Headroom campaigns",
    blurb: "There\u2019s spending room on the account \u2014 nudge the customer into the brands and ranges they\u2019re most likely to convert on. No \u00a3 amounts leave the FS system.",
    fs: "FS system sends a \u201Cheadroom available\u201D flag \u2014 boolean only, no balances.",
    k: "Klaviyo personalises the campaign to products within the customer\u2019s known affinity and predicted range.",
  },
  {
    n: "Scenario 3",
    name: "Limit upgrade",
    blurb: "FCA-compliant limit review eligibility is decided in N Brown\u2019s FS system. Klaviyo handles the comms shell and feeds engagement back for the credit decision.",
    fs: "FS system sends an \u201Celigible for review\u201D event \u2014 no scores, no figures.",
    k: "Klaviyo sends the reward message, captures the response, passes engagement back through the two-way API.",
  },
  {
    n: "Scenario 4",
    name: "Consumer Duty",
    blurb: "Vulnerable or financially-stressed customers must be removed from promotional cycles and routed to support. The signal is FS-owned \u2014 the suppression and audit trail land in Klaviyo.",
    fs: "FS system sends an \u201Cat-risk\u201D suppression flag.",
    k: "Klaviyo suppresses promo journeys instantly, fires support comms, and writes the audit trail \u2014 one FCA-ready record.",
  },
  {
    n: "Scenario 5",
    name: "Payment reminders",
    blurb: "Regulated, time-sensitive reminders \u2014 \u201Cyou have a payment due\u201D \u2014 routed through the right channel for each customer, without the due amount or status leaving the FS system.",
    fs: "FS system sends a \u201Cpayment due date\u201D event \u2014 date only, no balance.",
    k: "Klaviyo picks the best channel per customer (Email / SMS / WhatsApp), sends, records delivery + open back to FS.",
  },
  {
    n: "Scenario 6",
    name: "Retail \u2192 credit",
    blurb: "Klaviyo sees a high-value retail customer with no credit account. It flags the cohort \u2014 FS makes the regulated decision \u2014 and Klaviyo fires the journey to the approved customers.",
    fs: "FS approves (or rejects) the cohort using its own credit-decisioning rules. The decision never leaves FS.",
    k: "Klaviyo identifies the cohort, passes it for decisioning, and runs the resulting journey \u2014 retail \u2194 credit, end-to-end.",
  },
];

const FS_FIT = [
  {
    t: "No sensitive data inside Klaviyo \u2014 by design.",
    b: "No credit scores, limits, balances or arrears history live in the engagement layer. That\u2019s the position the FCA, your DPO and your security team will all want anyway \u2014 we just default to it.",
  },
  {
    t: "Hard data separation between CRM and FS.",
    b: "Your CRM team builds journeys against flags and events \u2014 not against the raw FS data. The team that ships campaigns physically cannot see the regulated data they don\u2019t need to do their job.",
  },
  {
    t: "Smaller in-scope footprint for FCA + GDPR.",
    b: "Klaviyo never holds personal financial data, so it never enters the regulated-systems perimeter. Your audit, ICO and FCA surface stays exactly where it is today \u2014 in the N Brown FS system.",
  },
  {
    t: "Breach blast-radius is contained.",
    b: "A compromise of the engagement layer can\u2019t expose credit scores or arrears history \u2014 the data isn\u2019t there to expose. That\u2019s a meaningful reduction in incident exposure for a regulated lender.",
  },
  {
    t: "Faster comms changes, no FS releases needed.",
    b: "Marketing operations can iterate copy, timing, suppression and channel inside Klaviyo without touching the FS system or queueing behind an FS release window. The regulated data stays still; the engagement layer moves fast.",
  },
  {
    t: "Right-to-be-forgotten lands in one place.",
    b: "Customer deletion is executed in the system of record (FS / IDHUB), and the suppression flag flows through to Klaviyo in real time. One source of truth, one deletion path \u2014 not five.",
  },
];

const FS_CUSTOMERS = [
  { id: "fsFairfax",       src: "assets/fs-fairfax.png",       alt: "Fairfax Financial Holdings", dark: false },
  { id: "fsBusinessloans", src: "assets/fs-businessloans.png", alt: "businessloans.com",          dark: false },
  { id: "fsFundingpips",   src: "assets/fs-fundingpips.png",   alt: "FundingPips",                dark: false },
  { id: "fsTradealgo",     src: "assets/fs-tradealgo.png",     alt: "TradeAlgo",                  dark: true  },
  { id: "fsFreshtax",      src: "assets/fs-freshtax.png",      alt: "FreshTax",                   dark: false },
  { id: "fsRamsey",        src: "assets/fs-ramsey.png",        alt: "Ramsey",                     dark: false },
];

const EUROCHANGE_REASONS = [
  {
    t: "Automation their legacy provider couldn\u2019t deliver.",
    b: "Eurochange came to Klaviyo because their previous ESP couldn\u2019t support the trigger-based, behaviour-led journeys they needed \u2014 rate-watch alerts, abandoned currency-order flows, branch-pickup reminders. The use cases existed; the old platform couldn\u2019t run them.",
  },
  {
    t: "Compliant data handling, by design.",
    b: "As an FCA-authorised foreign exchange operator, Eurochange runs Klaviyo on the same boundary we\u2019re proposing for N Brown \u2014 personal financial data stays in the system of record, Klaviyo handles the engagement signals. Audit trail, consent and suppression all in one place.",
  },
  {
    t: "Consolidation onto one engagement platform.",
    b: "Email, SMS and lifecycle automations all moved onto Klaviyo, retiring the legacy stack. One brief, one team, one source of customer engagement signal \u2014 instead of three disconnected tools.",
  },
  {
    t: "Delivering for the business.",
    b: "Since the move, Eurochange has been running automated journeys their old provider blocked them from shipping \u2014 with the regulated data perimeter intact.",
  },
];

const BAYER_STEPS = [
  { n: "Step 1", t: "Discovery with the regulated-data owners.", b: "We sat with Bayer\u2019s data, security and compliance teams to understand exactly which fields counted as PHI under HIPAA, and which were safe to use as triggers or flags downstream." },
  { n: "Step 2", t: "Joint solution design.", b: "Klaviyo Solutions Architecture worked with Bayer to define the boundary: IDHUB stays the system of record, Klaviyo accepts only anonymised or tokenised values \u2014 hashed IDs, declared preferences, consent flags, behavioural signals." },
  { n: "Step 3", t: "A staged compliance timeline.", b: "We built a phased plan together \u2014 each phase signed off by Bayer\u2019s compliance function before the next one moved. No flag flips, no surprises, no \u201Cdrop everything and go live.\u201D" },
  { n: "Step 4", t: "Operational handover.", b: "Klaviyo became the activation layer for Bayer\u2019s portfolio \u2014 localised execution, central governance \u2014 with the regulated data still owned, audited and controlled by IDHUB." },
];

function FSPointOfView() {
  return (
    <React.Fragment>
      {/* ============ POV + split system ============ */}
      <section id="fspov" style={fsStyles.section} data-screen-label="07 Klaviyo's POV for FS">
        <div style={fsStyles.glow} />
        <div style={fsStyles.inner}>
          <div style={fsStyles.head}>
            <div>
              <div style={fsStyles.eyebrow}>Klaviyo&rsquo;s POV for FS</div>
              <h2 style={fsStyles.title}>
                You keep the regulated data.<br />
                <span className="serif-i" style={{ color: "var(--nb-rust)" }}>We do the engagement.</span>
              </h2>
            </div>
            <p style={fsStyles.sub}>
              Klaviyo is a system of engagement, not a system of record. The
              credit scores, limits, arrears history and FCA-regulated data
              stay inside your FS system. What flows over to Klaviyo is the
              anonymised <em>signal</em> &mdash; the flag, the trigger, the
              event &mdash; that fires the journey.
            </p>
          </div>

          <div style={fsStyles.splitWrap}>
            <div style={fsStyles.splitRow}>
              {/* Left — FS system */}
              <div style={fsStyles.sysCard}>
                <div style={fsStyles.sysLab}>Stays here &mdash; always</div>
                <div style={fsStyles.sysHead}>
                  <div style={fsStyles.sysIcon("var(--nb-rust)")} />
                  <h3 style={fsStyles.sysTitle}>N Brown FS system</h3>
                </div>
                <div style={fsStyles.sysList}>
                  {FS_RECORD.map((item, i) => (
                    <div key={i} style={{ ...fsStyles.sysItem, borderBottom: i === FS_RECORD.length - 1 ? "none" : fsStyles.sysItem.borderBottom }}>
                      <span style={fsStyles.sysCheck("var(--nb-rust)")} />
                      <span>{item}</span>
                    </div>
                  ))}
                </div>
              </div>

              {/* Center — bridge */}
              <div style={fsStyles.bridge}>
                <div style={fsStyles.bridgeRow}>
                  <span>Signal trigger</span>
                  <span style={fsStyles.bridgeArrow}>&rarr;</span>
                </div>
                <div style={fsStyles.bridgeRow}>
                  <span style={fsStyles.bridgeArrow}>&larr;</span>
                  <span>Engagement data</span>
                </div>
                <div style={fsStyles.bridgeApi}>
                  Two-way API<br />
                  <span style={{ fontStyle: "normal", fontFamily: "var(--sans)", fontSize: 11, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 700 }}>
                    Anonymised &middot; Audited
                  </span>
                </div>
              </div>

              {/* Right — Klaviyo */}
              <div style={fsStyles.sysCard}>
                <div style={fsStyles.sysLab}>Lives here &mdash; safely</div>
                <div style={fsStyles.sysHead}>
                  <div style={fsStyles.sysIcon("#2A8F65")} />
                  <h3 style={fsStyles.sysTitle}>Klaviyo</h3>
                </div>
                <div style={fsStyles.sysList}>
                  {FS_ENGAGEMENT.map((item, i) => (
                    <div key={i} style={{ ...fsStyles.sysItem, borderBottom: i === FS_ENGAGEMENT.length - 1 ? "none" : fsStyles.sysItem.borderBottom }}>
                      <span style={fsStyles.sysCheck("#2A8F65")} />
                      <span>{item}</span>
                    </div>
                  ))}
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>

      {/* ============ Six scenarios ============ */}
      <section style={fsStyles.scenSection} data-screen-label="07 Klaviyo's POV for FS · Scenarios">
        <div style={fsStyles.inner}>
          <div style={fsStyles.scenHead}>
            <div style={fsStyles.scenEye}>How each scenario still works</div>
            <h3 style={fsStyles.scenT}>
              Six N Brown FS use cases.<br />
              <span className="serif-i" style={{ color: "var(--nb-rust)" }}>Same outcomes. None of the regulated data in Klaviyo.</span>
            </h3>
            <p style={fsStyles.scenSub}>
              For each of the use cases on the table for N Brown, the same
              pattern holds: FS system fires the signal, Klaviyo runs the
              journey, engagement flows back through the two-way API.
            </p>
          </div>

          <div style={fsStyles.scenGrid}>
            {FS_SCENARIOS.map((s, i) => (
              <div key={i} style={fsStyles.scenCard}>
                <div style={fsStyles.scenNum}>{s.n}</div>
                <h4 style={fsStyles.scenName}>{s.name}</h4>
                <p style={fsStyles.scenBlurb}>{s.blurb}</p>
                <div style={fsStyles.scenSteps}>
                  <div style={fsStyles.scenStep}>
                    <span style={fsStyles.scenStepBoxRust} />
                    <span>{s.fs}</span>
                  </div>
                  <div style={fsStyles.scenStep}>
                    <span style={fsStyles.scenStepBoxGreen} />
                    <span>{s.k}</span>
                  </div>
                </div>
              </div>
            ))}
          </div>
        </div>
      </section>

      {/* ============ Consumer credit retailers (Oak Furnitureland + Simba) ============ */}
      <section style={fsStyles.ccSection} data-screen-label="07 Klaviyo's POV for FS · Retail credit precedent">
        <div style={fsStyles.inner}>
          <div style={fsStyles.ccHead}>
            <div>
              <div style={fsStyles.ccEye}>Retail credit precedent &middot; UK Klaviyo customers</div>
              <h3 style={fsStyles.ccT}>
                The same shape as N Brown.<br />
                <span className="serif-i" style={{ color: "var(--nb-rust)" }}>Already running on Klaviyo.</span>
              </h3>
            </div>
            <p style={fsStyles.ccSub}>
              Two UK retailers offering consumer credit at checkout &mdash;
              both FCA-authorised credit brokers, both with regulated
              lenders sitting behind them, both using Klaviyo as the
              engagement layer. The boundary we&rsquo;d build for N Brown FS
              is already live in market.
            </p>
          </div>

          <div style={fsStyles.ccGrid}>
            {/* ===== Oak Furnitureland ===== */}
            <div style={fsStyles.ccCard}>
              <div style={fsStyles.ccCardHead("#3a2a1e", "#f8efe2")}>
                <div style={fsStyles.ccTagline("rgba(248,239,226,0.7)")}>oakfurnitureland.co.uk</div>
                <h4 style={fsStyles.ccWordmark("#f8efe2", "var(--serif)", 38)}>Oak Furnitureland</h4>
                <div style={fsStyles.ccMeta}>
                  <span style={fsStyles.ccMetaPill("rgba(248,239,226,0.14)", "#f8efe2")}>FCA-authorised credit broker</span>
                  <span style={fsStyles.ccMetaPill("rgba(248,239,226,0.14)", "#f8efe2")}>Furniture &middot; UK</span>
                </div>
              </div>

              <div style={fsStyles.ccBody}>
                <p style={fsStyles.ccLine}>
                  &ldquo;Your furniture, your way to pay&rdquo; &mdash; 0% APR
                  interest-free credit up to 48 months, 9.9% APR
                  interest-bearing credit up to 60 months. Three lenders sit
                  behind the offer; Oak acts as broker.
                </p>

                <div style={fsStyles.ccSplit}>
                  <div style={fsStyles.ccSplitCard("var(--nb-rust)")}>
                    <div style={fsStyles.ccSplitLab("var(--nb-rust)")}>Stays at the lender</div>
                    <div style={fsStyles.ccSplitB}>Credit decision, affordability data, agreement terms, payment performance.</div>
                  </div>
                  <div style={fsStyles.ccSplitCard("#2A8F65")}>
                    <div style={fsStyles.ccSplitLab("#2A8F65")}>Lives in Klaviyo</div>
                    <div style={fsStyles.ccSplitB}>Browse, basket, checkout-stage, application-status flag, order &amp; delivery events.</div>
                  </div>
                </div>

                <a href="https://www.oakfurnitureland.co.uk/page/interest-free-credit.html" target="_blank" rel="noopener" style={fsStyles.ccLink}>
                  See the live finance page <span style={{ fontSize: 14 }}>&rarr;</span>
                </a>
              </div>
            </div>

            {/* ===== Simba Sleep ===== */}
            <div style={fsStyles.ccCard}>
              <div style={fsStyles.ccCardHead("#2c3a5a", "#f4f6fb")}>
                <div style={fsStyles.ccTagline("rgba(244,246,251,0.7)")}>simbasleep.com</div>
                <h4 style={fsStyles.ccWordmark("#f4f6fb", "var(--sans)", 38)}>Simba Sleep</h4>
                <div style={fsStyles.ccMeta}>
                  <span style={fsStyles.ccMetaPill("rgba(244,246,251,0.14)", "#f4f6fb")}>FCA-authorised credit broker</span>
                  <span style={fsStyles.ccMetaPill("rgba(244,246,251,0.14)", "#f4f6fb")}>DTC sleep &middot; UK</span>
                </div>
              </div>

              <div style={fsStyles.ccBody}>
                <p style={fsStyles.ccLine}>
                  &ldquo;A more comfortable way to pay&rdquo; &mdash; spread
                  any order over £150 across 3 to 48 months. Multiple
                  finance routes including a direct-debit lender, a
                  credit-card instalment route, and a flexible-credit route.
                </p>

                <div style={fsStyles.ccSplit}>
                  <div style={fsStyles.ccSplitCard("var(--nb-rust)")}>
                    <div style={fsStyles.ccSplitLab("var(--nb-rust)")}>Stays at the lender</div>
                    <div style={fsStyles.ccSplitB}>Credit decision, affordability check, repayment schedule, FCA-regulated terms.</div>
                  </div>
                  <div style={fsStyles.ccSplitCard("#2A8F65")}>
                    <div style={fsStyles.ccSplitLab("#2A8F65")}>Lives in Klaviyo</div>
                    <div style={fsStyles.ccSplitB}>200-night trial nudges, product &amp; bedding cross-sell, finance-eligible cohort flags, lifecycle.</div>
                  </div>
                </div>

                <a href="https://simbasleep.com/pages/finance-options" target="_blank" rel="noopener" style={fsStyles.ccLink}>
                  See the live finance page <span style={{ fontSize: 14 }}>&rarr;</span>
                </a>
              </div>
            </div>
          </div>

          <div style={fsStyles.ccFooter}>
            <p style={fsStyles.ccFooterT}>
              Same pattern in both cases &mdash; FCA-authorised credit broker,
              regulated lenders downstream, Klaviyo as the engagement layer.
              The blueprint translates directly to N Brown FS.
            </p>
            <div style={fsStyles.ccFooterTag}>Shared playbook &middot; ready to lift</div>
          </div>
        </div>
      </section>

      {/* ============ Eurochange customer proof ============ */}
      <section style={fsStyles.ecSection} data-screen-label="07 Klaviyo's POV for FS · Eurochange">
        <div style={fsStyles.ecGlow} />
        <div style={fsStyles.ecInner}>
          <div style={fsStyles.ecEye}>
            <span>Customer in market &middot; UK FX bureau</span>
            <span style={fsStyles.ecEyeBadge}>FCA-AUTHORISED</span>
          </div>

          <div style={fsStyles.ecGrid}>
            <div style={fsStyles.ecLeft}>
              <div style={fsStyles.ecLogoWrap}>
                <img
                  src={window.__asset("eurochangeLogo", "assets/eurochange-logo.png")}
                  alt="eurochange &mdash; your foreign exchange expert"
                  style={fsStyles.ecLogoImg}
                />
              </div>
              <h3 style={fsStyles.ecT}>
                Eurochange moved to Klaviyo &mdash;<br />
                <span className="serif-i" style={{ color: "var(--nb-rose)" }}>and unlocked the automations their legacy provider couldn&rsquo;t ship.</span>
              </h3>
              <p style={fsStyles.ecB}>
                Eurochange is an FCA-authorised UK foreign exchange operator
                running 200+ branches plus an online proposition. They moved
                to Klaviyo from a legacy email provider that couldn&rsquo;t
                support the trigger-based, behaviour-led journeys their
                customer base needs &mdash; and rebuilt their engagement
                stack inside a tightly compliant boundary. Same boundary
                we&rsquo;d build for N Brown FS.
              </p>
              <div style={fsStyles.ecMeta}>
                <div style={fsStyles.ecMetaItem}>
                  <span style={fsStyles.ecMetaK}>Sector</span>
                  <span style={fsStyles.ecMetaV}>UK FX bureau &middot; FCA-authorised</span>
                </div>
                <div style={fsStyles.ecMetaItem}>
                  <span style={fsStyles.ecMetaK}>Moved from</span>
                  <span style={fsStyles.ecMetaV}>Legacy ESP &middot; automation-limited</span>
                </div>
                <div style={fsStyles.ecMetaItem}>
                  <span style={fsStyles.ecMetaK}>Now on Klaviyo for</span>
                  <span style={fsStyles.ecMetaV}>Lifecycle email + SMS &middot; compliant</span>
                </div>
              </div>
            </div>

            <div style={fsStyles.ecRight}>
              <div style={fsStyles.ecReasonHead}>Why they moved</div>
              {EUROCHANGE_REASONS.map((r, i) => (
                <div key={i} style={fsStyles.ecReason}>
                  <div style={fsStyles.ecReasonN}>{String(i + 1).padStart(2, "0")}</div>
                  <div>
                    <h4 style={fsStyles.ecReasonT}>{r.t}</h4>
                    <p style={fsStyles.ecReasonB}>{r.b}</p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* === Also running Klaviyo in FS === */}
          <div style={fsStyles.ecWallWrap}>
            <div style={fsStyles.ecWallHead}>
              <div>
                <div style={fsStyles.ecWallEye}>Also running Klaviyo in FS</div>
                <h4 style={fsStyles.ecWallT}>
                  Eurochange isn&rsquo;t a one-off. A growing cohort of FS
                  and FS-adjacent businesses run Klaviyo as their engagement
                  layer.
                </h4>
              </div>
              <p style={fsStyles.ecWallNote}>
                Same pattern in every case &mdash; regulated data stays in
                the system of record, Klaviyo handles activation.
              </p>
            </div>
            <div style={fsStyles.ecWallGrid}>
              {FS_CUSTOMERS.map((c) => (
                <div
                  key={c.id}
                  style={c.dark ? { ...fsStyles.ecLogoTile, ...fsStyles.ecLogoTileDark } : fsStyles.ecLogoTile}
                >
                  <img
                    src={window.__asset(c.id, c.src)}
                    alt={c.alt}
                    style={fsStyles.ecLogoSvg}
                  />
                </div>
              ))}
            </div>
          </div>
        </div>
      </section>

      {/* ============ Why this is a good fit + Partnership ============ */}
      <section style={fsStyles.fitSection} data-screen-label="07 Klaviyo's POV for FS · Fit & partnership">
        <div style={fsStyles.inner}>
          <div style={fsStyles.fitGrid}>
            <div style={fsStyles.fitLeft}>
              <div style={fsStyles.fitEye}>Why this is a good fit for N Brown</div>
              <h3 style={fsStyles.fitT}>
                A boundary that <span className="serif-i" style={{ color: "var(--nb-rust)" }}>protects you</span> &mdash; and accelerates you.
              </h3>
              <p style={fsStyles.fitSub}>
                Holding personal financial data in your marketing engagement
                platform isn&rsquo;t recommended for any regulated lender,
                and it definitely isn&rsquo;t a fit for N Brown. The model
                below is the same one we run with the most security-sensitive
                customers in our portfolio.
              </p>
            </div>

            <div style={fsStyles.fitList}>
              {FS_FIT.map((f, i) => (
                <div key={i} style={fsStyles.fitItem}>
                  <div style={fsStyles.fitNum}>{String(i + 1).padStart(2, "0")}</div>
                  <div>
                    <h4 style={fsStyles.fitItemT}>{f.t}</h4>
                    <p style={fsStyles.fitItemB}>{f.b}</p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* Partnership / Bayer */}
          <div style={fsStyles.partnerWrap}>
            <div style={fsStyles.partnerEye}>Partnership with Klaviyo &middot; Bayer precedent</div>
            <h3 style={fsStyles.partnerT}>
              We&rsquo;ve done this before &mdash;<br />
              <span className="serif-i" style={{ color: "var(--nb-burgundy)" }}>with one of the most regulated customers in our portfolio</span>.
            </h3>
            <p style={fsStyles.partnerSub}>
              When Bayer (big pharma) wanted to make Klaviyo their system of
              engagement, HIPAA compliance and PHI handling were
              non-negotiable. We worked with their data, security and
              compliance teams to design a model where IDHUB stayed the
              system of record and Klaviyo accepted only anonymised or
              tokenised signals. Same playbook applies to N Brown FS.
            </p>

            <div style={fsStyles.bayerRow}>
              <div style={fsStyles.bayerSteps}>
                {BAYER_STEPS.map((s, i) => (
                  <div key={i} style={fsStyles.bayerStep}>
                    <div style={fsStyles.bayerStepN}>{s.n}</div>
                    <div>
                      <h5 style={fsStyles.bayerStepT}>{s.t}</h5>
                      <p style={fsStyles.bayerStepB}>{s.b}</p>
                    </div>
                  </div>
                ))}
              </div>

              <div style={fsStyles.bayerQuote}>
                <div style={fsStyles.bayerQuoteMark}>&ldquo;</div>
                <p style={fsStyles.bayerQuoteText}>
                  IDHUB remains the source of truth for all personal, consent
                  and regulated data. Klaviyo is the activation layer &mdash;
                  no displacement, no structural overhaul, full GDPR + HIPAA
                  control retained.
                </p>
                <div style={fsStyles.bayerQuoteAttr}>
                  Bayer &middot; Klaviyo data architecture &middot; 2025
                </div>
              </div>
            </div>

            <div style={fsStyles.closing}>
              <p style={fsStyles.closingT}>
                We&rsquo;d do exactly the same for N Brown &mdash; a joint
                discovery, a phased timeline, sign-off at every stage.
              </p>
              <div style={fsStyles.closingTag}>Solutions Architecture &middot; ready when you are</div>
            </div>
          </div>
        </div>
      </section>
    </React.Fragment>
  );
}
