/* global React */
/* Hero with Organisation Hub previews + Why Klaviyo (Team + Agenda for N Brown) */

/* === Brand accounts as per N Brown's demo === */
const NB_ACCOUNTS = [
{ name: "JD Williams", type: "Email", subscribers: "750,000", last: "1 hour ago", color: "var(--b-jdwilliams)" },
{ name: "Simply Be", type: "Email", subscribers: "650,000", last: "3 hours ago", color: "var(--b-simplybe)" },
{ name: "Heritage Brands", type: "Email", subscribers: "550,000", last: "5 hours ago", color: "var(--b-heritage)" },
{ name: "Jacamo", type: "SMS", subscribers: "400,000", last: "1 day ago", color: "var(--b-jacamo)" }];


const heroStyles = {
  wrap: { position: "relative", minHeight: "100vh", background: "var(--nb-cream)", overflow: "hidden" },
  grid: {
    position: "relative", zIndex: 2,
    minHeight: "100vh",
    maxWidth: 1320,
    margin: "0 auto",
    padding: "32px 56px 72px",
    display: "grid",
    gridTemplateColumns: "minmax(0, 1fr) minmax(0, 1.1fr)",
    gap: 64, alignItems: "stretch",
    color: "var(--nb-ink)"
  },
  left: { display: "grid", gridTemplateRows: "auto 1fr auto", paddingTop: 8, paddingBottom: 8 },
  topRow: { display: "flex", justifyContent: "space-between", alignItems: "center" },
  wordmark: { fontFamily: "var(--serif)", fontStyle: "italic", fontSize: 28, letterSpacing: "-0.005em", fontWeight: 400, color: "var(--nb-ink)", display: "inline-flex", alignItems: "center", gap: 10 },
  wordmarkN: { display: "inline-flex", alignItems: "center", justifyContent: "center", width: 38, height: 38, background: "var(--nb-ink)", color: "var(--nb-cream)", fontFamily: "var(--serif)", fontStyle: "normal", fontWeight: 500, fontSize: 22, letterSpacing: "-0.02em" },
  presented: { fontSize: 11, letterSpacing: "0.18em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 600 },
  headlineWrap: { alignSelf: "center", maxWidth: 720 },
  eyebrow: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", marginBottom: 32, fontWeight: 600, color: "var(--nb-rust)" },
  headline: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(40px, 5.4vw, 84px)", lineHeight: 1.0, letterSpacing: "-0.02em", margin: 0, color: "var(--nb-ink)" },
  sub: { marginTop: 32, fontSize: 18, maxWidth: 580, lineHeight: 1.6, color: "var(--nb-navy)" },
  footRow: { display: "flex", justifyContent: "space-between", alignItems: "end", fontSize: 11, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 600, paddingTop: 24, borderTop: "1px solid var(--nb-line)", marginTop: 32 },
  scrollHint: { display: "inline-flex", alignItems: "center", gap: 10, color: "var(--nb-rust)" },

  right: { position: "relative", display: "flex", flexDirection: "column", justifyContent: "center", gap: 16 },
  hubLabel: {
    display: "flex", alignItems: "center", gap: 10,
    fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase",
    color: "var(--nb-soft)", fontWeight: 700, marginBottom: 4
  },
  hubLine: { flex: 1, height: 1, background: "var(--nb-line)" },

  orgCard: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12, overflow: "hidden",
    boxShadow: "0 24px 48px rgba(22,24,44,0.10)"
  },
  orgHead: { padding: "16px 22px", borderBottom: "1px solid var(--nb-line)", display: "flex", justifyContent: "space-between", alignItems: "center", fontSize: 12 },
  orgHeadL: { display: "flex", alignItems: "center", gap: 10 },
  orgN: { width: 22, height: 22, background: "var(--nb-ink)", color: "var(--nb-cream)", fontFamily: "var(--serif)", fontSize: 12, fontWeight: 600, display: "flex", alignItems: "center", justifyContent: "center" },
  orgT: { fontWeight: 600, color: "var(--nb-ink)" },
  orgTag: { fontSize: 10, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--nb-rust)", fontWeight: 700 },
  orgBody: { padding: "8px 0" },
  tableHead: { display: "grid", gridTemplateColumns: "1.4fr 0.8fr 1fr 0.9fr", padding: "12px 22px", fontSize: 10, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 700, borderBottom: "1px solid rgba(214,200,176,0.5)" },
  tableRow: { display: "grid", gridTemplateColumns: "1.4fr 0.8fr 1fr 0.9fr", padding: "14px 22px", fontSize: 13, color: "var(--nb-ink)", borderBottom: "1px solid rgba(214,200,176,0.4)", alignItems: "center" },
  brandCell: { display: "flex", alignItems: "center", gap: 10, fontWeight: 600 },
  brandDot: { width: 10, height: 10, borderRadius: 999 },
  statusPill: { fontSize: 10, padding: "3px 10px", background: "var(--nb-ink)", color: "var(--nb-cream)", letterSpacing: "0.12em", fontWeight: 700, alignSelf: "center", justifySelf: "start" },
  orgFoot: { padding: "16px 22px", display: "flex", justifyContent: "space-between", alignItems: "center", fontSize: 11, letterSpacing: "0.06em", color: "var(--nb-soft)", background: "rgba(244,238,227,0.5)" },

  metricRow: { display: "grid", gridTemplateColumns: "1fr 1fr 1fr", gap: 12 },
  metricCard: { background: "var(--nb-bone)", border: "1px solid var(--nb-line)", padding: "16px 18px", borderRadius: 8 },
  metricLab: { fontSize: 10, letterSpacing: "0.14em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 700, marginBottom: 6 },
  metricVal: { fontFamily: "var(--serif)", fontSize: 28, lineHeight: 1, color: "var(--nb-ink)", fontWeight: 400, letterSpacing: "-0.01em" },
  metricSub: { fontSize: 11, color: "var(--nb-soft)", marginTop: 4 }
};

function Hero() {
  return (
    <section id="multibrand" style={heroStyles.wrap} data-screen-label="04 Multi-brand Hero">
      <div style={heroStyles.grid}>
        <div style={heroStyles.left}>
          <div style={heroStyles.topRow}>
            <div style={heroStyles.wordmark}>
              <span style={heroStyles.wordmarkN}>N</span>
              <span>Brown</span>
            </div>
            <div style={heroStyles.presented}>For N Brown · Phase 2 RFP · May 2026</div>
          </div>
          <div style={heroStyles.headlineWrap}>
            <div style={heroStyles.eyebrow}></div>
            <h1 style={heroStyles.headline}>
              Six brands.<br />
              One customer.<br />
              <span style={{ fontStyle: "italic", color: "var(--nb-rust)" }}>One platform.</span>
            </h1>
            <p style={heroStyles.sub}>
              One Organisation, every brand account inside it. A unified command
              centre for JD Williams, Simply Be, Heritage Brands and Jacamo —
              with shared customer profiles, deliverability managed in-house,
              and AI doing the work a stretched CRM team can&rsquo;t.
            </p>
          </div>
          <div style={heroStyles.footRow}>
            <div>The Klaviyo team · The agenda · The platform</div>
            <div style={heroStyles.scrollHint}>
              <span>Scroll</span>
              <svg width="22" height="22" viewBox="0 0 22 22" fill="none">
                <path d="M11 4v14m0 0l-5-5m5 5l5-5" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" />
              </svg>
            </div>
          </div>
        </div>

        <div style={heroStyles.right}>
          <div style={heroStyles.hubLabel}>
            <span>Organisations · N Brown · live preview</span>
            <span style={heroStyles.hubLine} />
          </div>
          <div style={heroStyles.orgCard}>
            <div style={heroStyles.orgHead}>
              <div style={heroStyles.orgHeadL}>
                <span style={heroStyles.orgN}>N</span>
                <span style={heroStyles.orgT}>N Brown · Organisation hub</span>
              </div>
              <span style={heroStyles.orgTag}>● 4 ACCOUNTS · LIVE</span>
            </div>
            <div style={heroStyles.orgBody}>
              <div style={heroStyles.tableHead}>
                <div>Account</div>
                <div>Type</div>
                <div>Subscribers</div>
                <div>Status · Last activity</div>
              </div>
              {NB_ACCOUNTS.map((a) =>
              <div key={a.name} style={heroStyles.tableRow}>
                  <div style={heroStyles.brandCell}>
                    <span style={{ ...heroStyles.brandDot, background: a.color }} />
                    {a.name}
                  </div>
                  <div style={{ color: "var(--nb-soft)" }}>{a.type}</div>
                  <div style={{ fontFamily: "var(--serif)", fontSize: 16 }}>{a.subscribers}</div>
                  <div style={{ display: "flex", alignItems: "center", gap: 8 }}>
                    <span style={heroStyles.statusPill}>Active</span>
                    <span style={{ fontSize: 11, color: "var(--nb-soft)" }}>{a.last}</span>
                  </div>
                </div>
              )}
            </div>
            <div style={heroStyles.orgFoot}>
              <span>2.35M unified profiles · Shared customer view across all brands</span>
              <span style={{ color: "var(--nb-rust)", fontWeight: 700 }}>+ Add account</span>
            </div>
          </div>

          <div style={heroStyles.metricRow}>
            <div style={heroStyles.metricCard}>
              <div style={heroStyles.metricLab}>↓ TCO</div>
              <div style={heroStyles.metricVal}>42<span style={{ fontSize: 18, color: "var(--nb-soft)" }}>%</span></div>
              <div style={heroStyles.metricSub}>lower TCO · Yours Clothing case</div>
            </div>
            <div style={heroStyles.metricCard}>
              <div style={heroStyles.metricLab}>↑ Output</div>
              <div style={heroStyles.metricVal}>80<span style={{ fontSize: 18, color: "var(--nb-soft)" }}>/20</span></div>
              <div style={heroStyles.metricSub}>target automation ratio</div>
            </div>
            <div style={heroStyles.metricCard}>
              <div style={heroStyles.metricLab}>★ Trust</div>
              <div style={heroStyles.metricVal}>228<span style={{ fontSize: 18, color: "var(--nb-soft)" }}>%</span></div>
              <div style={heroStyles.metricSub}>average Klaviyo ROI</div>
            </div>
          </div>
        </div>
      </div>
    </section>);

}

/* ============ Why Klaviyo · POV + Trust + Logos ============ */
const whyStyles = {
  section: {
    background: "var(--nb-cream)",
    padding: "120px 56px 160px",
    color: "var(--nb-ink)"
  },
  inner: { maxWidth: 1320, margin: "0 auto" },

  /* Head */
  head: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 80, alignItems: "end", marginBottom: 56 },
  eyebrow: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-soft)", marginBottom: 28, fontWeight: 600 },
  title: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(36px, 4.5vw, 64px)", lineHeight: 1.1, letterSpacing: "-0.01em", margin: 0 },
  sub: { fontSize: 17, lineHeight: 1.65, color: "var(--nb-navy)", maxWidth: 500 },

  /* POV cards */
  povGrid: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 20, marginBottom: 56 },
  povCard: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 12,
    padding: "36px 36px 40px",
    display: "flex", flexDirection: "column", gap: 16,
    minHeight: 380
  },
  povNum: { fontFamily: "var(--serif)", fontSize: 18, color: "var(--nb-soft)", letterSpacing: "0.18em", textTransform: "uppercase", fontWeight: 600 },
  povCat: { fontSize: 14, letterSpacing: "0.18em", textTransform: "uppercase", color: "var(--nb-soft)", fontWeight: 700 },
  povMark: {
    display: "inline-flex", alignItems: "center", justifyContent: "center",
    width: 56, height: 56,
    background: "var(--nb-ink)", color: "var(--nb-rust)",
    fontFamily: "var(--serif)", fontSize: 30, fontWeight: 400, borderRadius: 999
  },
  povH: { fontFamily: "var(--serif)", fontSize: 34, lineHeight: 1.05, letterSpacing: "-0.01em", margin: 0, fontWeight: 400, color: "var(--nb-ink)" },
  povB: { fontSize: 14, lineHeight: 1.65, color: "var(--nb-navy)" },
  povTag: { marginTop: "auto", paddingTop: 18, borderTop: "1px solid var(--nb-line)", fontFamily: "var(--serif)", fontStyle: "italic", fontSize: 15, color: "var(--nb-rust)" },

  /* Trust band */
  trust: {
    background: "var(--nb-ink)", color: "var(--nb-cream)",
    borderRadius: 12, padding: "48px 56px 56px",
    marginBottom: 56
  },
  trustHead: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 64, alignItems: "end", marginBottom: 32 },
  trustEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--nb-rose)", marginBottom: 16, fontWeight: 700 },
  trustT: { fontFamily: "var(--serif)", fontSize: "clamp(28px, 3.2vw, 44px)", lineHeight: 1.15, margin: 0, fontWeight: 400, letterSpacing: "-0.01em" },
  trustSub: { fontSize: 14, lineHeight: 1.6, color: "var(--nb-rose)", maxWidth: 460 },
  trustGrid: { display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gap: 16 },
  trustCell: {
    padding: "22px 24px 26px",
    background: "rgba(255,253,247,0.04)",
    border: "1px solid rgba(255,253,247,0.1)",
    borderRadius: 8
  },
  trustNum: { fontFamily: "var(--serif)", fontSize: 44, lineHeight: 1, fontWeight: 400, letterSpacing: "-0.02em" },
  trustLab: { fontSize: 11, letterSpacing: "0.14em", textTransform: "uppercase", color: "var(--nb-rose)", marginTop: 10, fontWeight: 700 },
  trustNote: { fontSize: 12, lineHeight: 1.5, color: "var(--nb-line)", marginTop: 8 },

  /* Klaviyo journey — slide 6 image */
  journeySlide: {
    background: "var(--nb-bone)",
    border: "1px solid var(--nb-line)",
    borderRadius: 14,
    overflow: "hidden",
    margin: "0 0 56px",
    boxShadow: "0 8px 30px rgba(22,24,44,0.06)"
  },
  journeyImg: { width: "100%", height: "auto", display: "block" },

  /* Logos page — slide 8 deck reproduction */
  logosBlock: {
    position: "relative",
    background: "#1A1A1F",
    color: "#FFFCF9",
    borderRadius: 14,
    padding: "56px 56px 64px",
    overflow: "hidden"
  },
  logosHead: { display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 64, alignItems: "end", marginBottom: 40, position: "relative", zIndex: 2 },
  logosEye: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "#F4ABFF", marginBottom: 14, fontWeight: 700 },
  logosT: { fontFamily: "var(--serif)", fontSize: "clamp(28px, 3.2vw, 44px)", lineHeight: 1.15, margin: 0, fontWeight: 400, letterSpacing: "-0.01em", color: "#FFFCF9" },
  logosSub: { fontSize: 14, lineHeight: 1.6, color: "rgba(255,253,247,0.72)", maxWidth: 460 },

  /* Slide 8 — dark logo wall */
  slide8: {
    position: "relative",
    background: "#1A1A1F",
    borderRadius: 12,
    border: "1px solid rgba(255,253,247,0.08)",
    padding: 0,
    overflow: "hidden",
    marginBottom: 48,
    aspectRatio: "16 / 9",
    minHeight: 520
  },
  slide8Grid: {
    position: "absolute", inset: 0,
    display: "grid",
    gridTemplateColumns: "minmax(280px, 360px) 1fr",
    gap: 0,
    zIndex: 2
  },
  slide8Left: {
    padding: "44px 0 44px 48px",
    display: "flex", flexDirection: "column", gap: 18,
    color: "#FFFCF9"
  },
  slide8Pill: {
    alignSelf: "flex-start",
    background: "rgba(244,171,255,0.22)",
    color: "#F4D7FF",
    border: "1px solid rgba(244,171,255,0.0)",
    borderRadius: 999,
    padding: "10px 20px",
    fontSize: 14, fontWeight: 600, letterSpacing: "0.01em"
  },
  slide8Kav: {
    fontFamily: "var(--sans)", fontWeight: 800,
    fontSize: "clamp(48px, 5.4vw, 78px)",
    lineHeight: 1, letterSpacing: "-0.03em",
    marginTop: 12
  },
  slide8KavSub: {
    fontSize: 17, lineHeight: 1.35,
    color: "rgba(255,253,247,0.88)",
    maxWidth: 320, marginTop: 2
  },
  slide8BrandsPill: {
    alignSelf: "flex-start",
    background: "var(--nb-rust)",
    color: "#FFFCF9",
    borderRadius: 999,
    padding: "14px 26px",
    fontFamily: "var(--sans)",
    fontSize: 19, fontWeight: 600,
    letterSpacing: "-0.005em",
    lineHeight: 1.15,
    marginTop: 6,
    textAlign: "center"
  },
  slide8RecogLab: { fontSize: 14, color: "rgba(255,253,247,0.92)", marginTop: 18, fontWeight: 500 },
  slide8RecogRow: { display: "flex", alignItems: "center", gap: 22, marginTop: 4 },
  slide8GartnerMark: { fontFamily: "Bebas Neue, var(--sans)", fontSize: 28, letterSpacing: "0.02em", color: "#FFFCF9", fontWeight: 400 },
  slide8IdcMark: { fontFamily: "Italiana, var(--serif)", fontSize: 24, letterSpacing: "0.04em", color: "#FFFCF9" },
  slide8FootMark: { position: "absolute", bottom: 14, right: 18, fontSize: 11, color: "rgba(255,253,247,0.45)", letterSpacing: "0.18em", zIndex: 3 },
  slide8CopyMark: { position: "absolute", bottom: 14, right: 80, fontSize: 11, color: "rgba(255,253,247,0.45)", letterSpacing: "0.04em", zIndex: 3 },

  /* Right side — logo wall */
  slide8Right: {
    position: "relative",
    padding: "44px 48px 64px 24px",
    overflow: "hidden"
  },
  brandWall: {
    position: "relative", zIndex: 2,
    display: "flex", flexWrap: "wrap",
    alignItems: "center", justifyContent: "center",
    gap: "22px 28px",
    height: "100%",
    color: "#FFFCF9"
  },
  brandItem: {
    flex: "0 0 auto",
    display: "inline-flex", alignItems: "center", justifyContent: "center",
    padding: "2px 4px",
    color: "#FFFCF9",
    lineHeight: 1
  },

  /* Orange curve overlay */
  slide8Curve: { position: "absolute", inset: 0, width: "100%", height: "100%", pointerEvents: "none", zIndex: 1 },

  /* Analyst recognition row */
  recogRow: {
    paddingTop: 32, borderTop: "1px solid rgba(255,253,247,0.12)",
    display: "grid", gridTemplateColumns: "240px 1fr", gap: 32, alignItems: "center",
    position: "relative", zIndex: 2
  },
  recogLab: {
    fontSize: 11, letterSpacing: "0.18em", textTransform: "uppercase",
    color: "rgba(255,253,247,0.72)", fontWeight: 700
  },
  recogLabT: { fontFamily: "var(--serif)", fontStyle: "italic", fontSize: 24, color: "#FFFCF9", marginTop: 8, lineHeight: 1.15 },
  recogList: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 14 },
  recogCard: {
    background: "rgba(255,253,247,0.04)",
    border: "1px solid rgba(255,253,247,0.12)",
    borderRadius: 8,
    padding: "18px 22px"
  },
  recogName: { fontFamily: "var(--serif)", fontSize: 22, color: "#FFFCF9", letterSpacing: "-0.005em", fontWeight: 500 },
  recogTitle: { fontSize: 11, color: "#F4ABFF", marginTop: 6, letterSpacing: "0.04em", lineHeight: 1.4, fontWeight: 600 }
};

const POV = [
{
  n: "01", cat: "Total Cost of Ownership", mark: "↓",
  head: "Reduce & consolidate.",
  body: "One platform replaces multiple vendor contracts and the third-party deliverability dependency you have today. Your team owns it, self-serve from day one. Fewer integrations. Less complexity. Lower cost.",
  tag: "→ One contract, one source of truth."
},
{
  n: "02", cat: "Operational Efficiency", mark: "↑",
  head: "People productivity.",
  body: "Composer and Co-pilot give your CRM team superpowers — not redundancies. Campaigns in minutes. Flows that self-optimise. Your people focus on strategy, not admin. More output. Same headcount.",
  tag: "→ Flip the 70/30 ratio to 80% automated."
},
{
  n: "03", cat: "Market Position", mark: "★",
  head: "#1 for retail.",
  body: "193,000+ brands. Built for ecommerce retail from day one, not bolted on. Gartner, G2 and Forrester recognised. The platform your retail peers — across high street, fast fashion and multi-brand groups — have already chosen.",
  tag: "→ Not a gamble, the category standard."
}];


/* Slide 8 brand list — name treatments in varied typography to mirror the
   deck's wall-of-customers look. Plain styled text, not logo art. */
const BRAND_NAMES = [
"Victoria Beckham", "Yours", "July", "Kulani Kinis", "Uniqlo", "Saba",
"Birkenstock", "Funko", "Happy Way", "Birdsnest", "Mamas & Papas", "Lounge",
"Patagonia", "ABG", "Bravissimo", "The Oodie", "The Body Shop", "Nutrition Warehouse",
"Allsaints", "Unilever", "Dollar Shave Club", "Dagne Dover", "Sol de Janeiro",
"Reebok", "Mattel", "Waterdrop", "Champion", "Sheike", "Dermalogica", "Esmi",
"The Collagen Co", "Intersport", "Stanley", "Clarks", "Babyboo", "Scheels",
"Princess Polly", "Hoka", "Tiger Mist", "Kathmandu", "Samsonite", "Proozy",
"Frankie4", "Culture Kings", "Staples", "Hard Yakka"];


/* Per-brand text styling — chosen to give the wall typographic variety, not
   to imitate any brand's actual logo. */
const BRAND_TYPE = {
  "Victoria Beckham": { font: "Italiana, var(--serif)", size: 17, case: "uppercase", spacing: "0.04em", weight: 400, lineHeight: 1.05, stack: true },
  "Yours":            { font: "Italiana, var(--serif)", size: 26, case: "uppercase", spacing: "0.02em", weight: 400 },
  "July":             { font: "var(--serif)", size: 28, italic: true, weight: 400 },
  "Kulani Kinis":     { font: "Dancing Script, cursive", size: 22, weight: 600 },
  "Uniqlo":           { font: "var(--sans)", size: 22, case: "uppercase", weight: 800, spacing: "-0.02em", box: true },
  "Saba":             { font: "Italiana, var(--serif)", size: 32, case: "uppercase", spacing: "0.05em" },
  "Birkenstock":      { font: "Bebas Neue, var(--sans)", size: 24, case: "uppercase", spacing: "0.04em" },
  "Funko":            { font: "var(--sans)", size: 24, weight: 800, italic: true },
  "Happy Way":        { font: "var(--sans)", size: 18, case: "uppercase", weight: 800, spacing: "0.06em" },
  "Birdsnest":        { font: "Dancing Script, cursive", size: 22, weight: 500, italic: true },
  "Mamas & Papas":    { font: "Dancing Script, cursive", size: 20, weight: 600 },
  "Lounge":           { font: "var(--sans)", size: 18, case: "uppercase", weight: 300, spacing: "0.32em" },
  "Patagonia":        { font: "var(--serif)", size: 22, italic: true, weight: 500 },
  "ABG":              { font: "var(--sans)", size: 24, case: "uppercase", weight: 800, spacing: "0.01em", subText: "AUTHENTIC BRANDS GROUP" },
  "Bravissimo":       { font: "Italiana, var(--serif)", size: 22, case: "uppercase", italic: true, spacing: "0.08em" },
  "The Oodie":        { font: "var(--serif)", size: 22, italic: true, weight: 400 },
  "The Body Shop":    { font: "Italiana, var(--serif)", size: 20, case: "uppercase", spacing: "0.06em", weight: 400, circle: true },
  "Nutrition Warehouse": { font: "var(--sans)", size: 16, case: "uppercase", weight: 800, spacing: "0.05em", stack: true },
  "Allsaints":        { font: "var(--sans)", size: 22, case: "uppercase", weight: 300, spacing: "0.16em" },
  "Unilever":         { font: "var(--serif)", size: 28, italic: true, weight: 500 },
  "Dollar Shave Club": { font: "var(--sans)", size: 14, case: "uppercase", weight: 800, spacing: "0.04em", stack: true },
  "Dagne Dover":      { font: "var(--sans)", size: 18, case: "uppercase", weight: 700, spacing: "0.04em", stack: true },
  "Sol de Janeiro":   { font: "var(--serif)", size: 18, italic: true, weight: 500, stack: true },
  "Reebok":           { font: "Bebas Neue, var(--sans)", size: 24, case: "uppercase", italic: true, spacing: "0.02em" },
  "Mattel":           { font: "Bebas Neue, var(--sans)", size: 22, case: "uppercase", spacing: "0.02em", circle: true },
  "Waterdrop":        { font: "var(--sans)", size: 18, weight: 300, italic: true },
  "Champion":         { font: "Dancing Script, cursive", size: 22, weight: 600, italic: true },
  "Sheike":           { font: "var(--sans)", size: 20, case: "uppercase", weight: 300, spacing: "0.3em" },
  "Dermalogica":      { font: "var(--sans)", size: 18, weight: 400, spacing: "0.04em" },
  "Esmi":             { font: "var(--serif)", size: 24, italic: true, weight: 500 },
  "The Collagen Co":  { font: "Italiana, var(--serif)", size: 16, case: "uppercase", spacing: "0.22em" },
  "Intersport":       { font: "var(--sans)", size: 18, case: "uppercase", weight: 800, italic: true, spacing: "0.02em" },
  "Stanley":          { font: "Bebas Neue, var(--sans)", size: 24, case: "uppercase", spacing: "0.04em" },
  "Clarks":           { font: "Dancing Script, cursive", size: 26, weight: 600, italic: true },
  "Babyboo":          { font: "var(--sans)", size: 20, case: "uppercase", weight: 800, spacing: "0.04em" },
  "Scheels":          { font: "var(--sans)", size: 22, case: "uppercase", weight: 900, italic: true, spacing: "0.02em" },
  "Princess Polly":   { font: "var(--sans)", size: 16, case: "uppercase", weight: 600, spacing: "0.18em" },
  "Hoka":             { font: "var(--sans)", size: 22, case: "uppercase", weight: 800, spacing: "-0.01em" },
  "Tiger Mist":       { font: "var(--sans)", size: 18, case: "uppercase", weight: 400, spacing: "0.18em" },
  "Kathmandu":        { font: "var(--serif)", size: 18, italic: true, weight: 500 },
  "Samsonite":        { font: "var(--sans)", size: 20, case: "uppercase", weight: 700, spacing: "0.01em" },
  "Proozy":           { font: "var(--sans)", size: 22, case: "uppercase", weight: 900, spacing: "-0.01em" },
  "Frankie4":         { font: "var(--sans)", size: 18, case: "uppercase", weight: 700, spacing: "0.06em" },
  "Culture Kings":    { font: "Dancing Script, cursive", size: 20, weight: 600 },
  "Staples":          { font: "var(--sans)", size: 22, case: "uppercase", weight: 800, spacing: "0.01em" },
  "Hard Yakka":       { font: "var(--sans)", size: 22, case: "uppercase", weight: 900, spacing: "0.02em" }
};

function BrandMark({ name }) {
  const t = BRAND_TYPE[name] || { font: "var(--serif)", size: 20 };
  const css = {
    fontFamily: t.font,
    fontSize: t.size,
    fontWeight: t.weight || 400,
    fontStyle: t.italic ? "italic" : "normal",
    textTransform: t.case || "none",
    letterSpacing: t.spacing || "0",
    lineHeight: t.lineHeight || 1.0,
    color: "#FFFCF9",
    display: "inline-flex",
    flexDirection: "column",
    alignItems: "center",
    textAlign: "center",
    whiteSpace: "nowrap"
  };
  if (t.box) {
    return (
      <span style={{ ...css, border: "2px solid #FFFCF9", padding: "4px 10px", borderRadius: 2, whiteSpace: "nowrap" }}>
        {name}
      </span>);

  }
  if (t.circle) {
    return (
      <span style={{ ...css, border: "1.5px solid #FFFCF9", borderRadius: 999, padding: "12px 20px" }}>
        {name}
      </span>);

  }
  if (t.stack) {
    const parts = name.split(" ");
    return (
      <span style={css}>
        {parts.map((p, i) => <span key={i} style={{ display: "block" }}>{p}</span>)}
        {t.subText && <span style={{ display: "block", fontSize: 8, marginTop: 4, letterSpacing: "0.12em", opacity: 0.85 }}>{t.subText}</span>}
      </span>);

  }
  if (t.subText) {
    return (
      <span style={{ ...css, flexDirection: "row", alignItems: "center", gap: 8 }}>
        <span>{name}</span>
        <span style={{ fontSize: 8, letterSpacing: "0.14em", maxWidth: 64, lineHeight: 1.1, whiteSpace: "normal", textAlign: "left" }}>{t.subText}</span>
      </span>);

  }
  return <span style={css}>{name}</span>;
}

const RECOGNITION = [
{ name: "Gartner", title: "Magic Quadrant — Personalization Engines" },
{ name: "Forrester", title: "The Forrester Wave — Cross-Channel Marketing Hubs" },
{ name: "G2", title: "Leader · Marketing Automation · 2025" }];


function WhyKlaviyo() {
  return (
    <section id="why" style={whyStyles.section} data-screen-label="01 Why Klaviyo · POV + Logos">
      <div style={whyStyles.inner}>
        <div style={whyStyles.head}>
          <div>
            <div style={whyStyles.eyebrow}>KLAVIYO × N BROWN · POINT OF VIEW</div>
            <h2 style={whyStyles.title}>
              Three things Klaviyo<br />
              <span className="serif-i" style={{ color: "var(--nb-rust)" }}>earns its keep on</span>.
            </h2>
          </div>
          <p style={whyStyles.sub}>
            The headlines from our point of view for N Brown — each one a
            commercial outcome we can map back to your current cost line,
            your team workload, and your platform risk.
          </p>
        </div>

        {/* POV cards */}
        <div style={whyStyles.povGrid}>
          {POV.map((p) =>
          <div key={p.n} style={whyStyles.povCard}>
              <div style={{ display: "flex", justifyContent: "space-between", alignItems: "flex-start" }}>
                <div>
                  <div style={whyStyles.povNum}>{p.n}</div>
                  <div style={{ ...whyStyles.povCat, marginTop: 6 }}>{p.cat}</div>
                </div>
                <div style={whyStyles.povMark}>{p.mark}</div>
              </div>
              <h3 style={whyStyles.povH}>{p.head}</h3>
              <div style={whyStyles.povB}>{p.body}</div>
              <div style={whyStyles.povTag}>{p.tag}</div>
            </div>
          )}
        </div>

        {/* Trust band */}
        <div style={whyStyles.trust}>
          <div style={whyStyles.trustHead}>
            <div>
              <div style={whyStyles.trustEye}>Trusted by retail · The category standard</div>
              <h3 style={whyStyles.trustT}>
                A track record, not a roadmap promise.
              </h3>
            </div>
            <p style={whyStyles.trustSub}>
              N Brown wouldn&rsquo;t be the first multi-brand retail group to run
              its CRM here, and won&rsquo;t be the last. Fourteen years of
              compounding innovation underneath every send.
            </p>
          </div>
          <div style={whyStyles.trustGrid}>
            <div style={whyStyles.trustCell}>
              <div style={whyStyles.trustNum}>193k+</div>
              <div style={whyStyles.trustLab}>Customers</div>
              <div style={whyStyles.trustNote}>Brands trusting Klaviyo with email, SMS, push and on-site.</div>
            </div>
            <div style={whyStyles.trustCell}>
              <div style={whyStyles.trustNum}>4,000+</div>
              <div style={whyStyles.trustLab}>Enterprise brands</div>
              <div style={whyStyles.trustNote}>Including the multi-brand groups N Brown competes with.</div>
            </div>
            <div style={whyStyles.trustCell}>
              <div style={whyStyles.trustNum}>228%</div>
              <div style={whyStyles.trustLab}>Average ROI</div>
              <div style={whyStyles.trustNote}>Independently measured across our customer base.</div>
            </div>
            <div style={whyStyles.trustCell}>
              <div style={whyStyles.trustNum}>$250B</div>
              <div style={whyStyles.trustLab}>KAV · since 2012</div>
              <div style={whyStyles.trustNote}>Revenue Klaviyo customers have generated through the platform.</div>
            </div>
          </div>
        </div>

        {/* Klaviyo journey — deck slide 6 */}
        <div style={whyStyles.journeySlide}>
          <img src={window.__asset("klaviyoJourney", "assets/klaviyo-journey.png")} alt="Klaviyo's evolution — 14 years of high-velocity innovation" style={whyStyles.journeyImg} />
        </div>

        {/* Logos page — slide 8 deck reproduction */}
        <div style={whyStyles.logosBlock}>
          <div style={whyStyles.logosHead}>
            <div>
              <div style={whyStyles.logosEye}>The company N Brown would keep</div>
              <h3 style={whyStyles.logosT}>
                Retail, beauty, lifestyle,<br />
                <span className="serif-i" style={{ color: "#F4ABFF" }}>fashion at every scale</span>.
              </h3>
            </div>
            <p style={whyStyles.logosSub}>
              A sample of the 169,000+ brands trusting Klaviyo today — from
              size-inclusive high-street, to global heritage, to fast-fashion
              and lifestyle leaders.
            </p>
          </div>

          {/* Slide-faithful logo wall */}
          <div style={whyStyles.slide8}>
            {/* Coral curve */}
            <svg style={whyStyles.slide8Curve} viewBox="0 0 100 56" preserveAspectRatio="none" aria-hidden="true">
              <path
                d="M -2 56 Q 38 56 60 30 Q 78 9 102 -2"
                stroke="var(--nb-rust)"
                strokeWidth="1.1"
                strokeLinecap="round"
                fill="none" />
            </svg>

            <div style={whyStyles.slide8Grid}>
              <div style={whyStyles.slide8Left}>
                <div style={whyStyles.slide8Pill}>Expand &amp; accelerate</div>
                <div style={whyStyles.slide8Kav}>$250B KAV</div>
                <div style={whyStyles.slide8KavSub}>
                  Revenue Klaviyo customers<br />
                  have generated since 2012
                </div>
                <div style={whyStyles.slide8BrandsPill}>
                  +4k Enterprise<br />Brands
                </div>
                <div style={whyStyles.slide8RecogLab}>Recognized by</div>
                <div style={whyStyles.slide8RecogRow}>
                  <span style={whyStyles.slide8GartnerMark}>Gartner</span>
                  <span style={{ width: 1, height: 22, background: "rgba(255,253,247,0.35)" }} />
                  <span style={whyStyles.slide8IdcMark}>IDC</span>
                </div>
              </div>

              <div style={whyStyles.slide8Right}>
                <div style={whyStyles.brandWall}>
                  {BRAND_NAMES.map((name) =>
                    <span key={name} style={whyStyles.brandItem}>
                      <BrandMark name={name} />
                    </span>
                  )}
                </div>
              </div>
            </div>

            <div style={whyStyles.slide8CopyMark}>2026 © Klaviyo</div>
            <div style={whyStyles.slide8FootMark}>Confidential · 8</div>
          </div>

          <div style={whyStyles.recogRow}>
            <div>
              <div style={whyStyles.recogLab}>Recognised by</div>
              <div style={whyStyles.recogLabT}>
                The analysts your<br />board reads.
              </div>
            </div>
            <div style={whyStyles.recogList}>
              {RECOGNITION.map((r) =>
              <div key={r.name} style={whyStyles.recogCard}>
                  <div style={whyStyles.recogName}>{r.name}</div>
                  <div style={whyStyles.recogTitle}>{r.title}</div>
                </div>
              )}
            </div>
          </div>
        </div>
      </div>
    </section>);

}