/* global React */
/* Next steps · final tab — three suggested June sessions */

const nsStyles = {
  section: {
    background: "var(--k-charcoal)",
    color: "var(--k-cotton)",
    padding: "140px 56px 100px",
    borderTop: "1px solid rgba(255,253,247,0.08)",
  },
  inner: { maxWidth: 1320, margin: "0 auto" },

  head: { textAlign: "center", maxWidth: 920, margin: "0 auto 72px" },
  eyebrow: { fontSize: 11, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--k-poppy)", marginBottom: 24, fontWeight: 700 },
  title: { fontFamily: "var(--serif)", fontWeight: 400, fontSize: "clamp(44px, 5.4vw, 80px)", lineHeight: 1.0, letterSpacing: "-0.015em", margin: 0 },
  sub: { fontSize: 18, lineHeight: 1.6, color: "var(--k-stone)", marginTop: 28, maxWidth: 720, marginLeft: "auto", marginRight: "auto" },

  stepsGrid: {
    display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 0,
    background: "var(--k-charcoal)",
    border: "1px solid rgba(255,253,247,0.18)",
    borderRadius: 12, overflow: "hidden",
    marginBottom: 64,
  },
  stepCol: {
    padding: "44px 36px 48px",
    borderRight: "1px solid rgba(255,253,247,0.12)",
    display: "flex", flexDirection: "column", gap: 16,
    minHeight: 480,
  },
  stepColLast: { borderRight: "none" },
  stepN: { fontFamily: "var(--serif)", fontSize: 72, lineHeight: 1, color: "var(--k-poppy)", fontWeight: 400 },
  stepWhen: { fontSize: 10, letterSpacing: "0.22em", textTransform: "uppercase", color: "var(--k-stone)", fontWeight: 700 },
  stepT: { fontFamily: "var(--serif)", fontSize: 28, lineHeight: 1.15, margin: 0, fontWeight: 400, letterSpacing: "-0.005em" },
  stepB: { fontSize: 14.5, lineHeight: 1.65, color: "var(--k-stone)" },
  stepAttendees: { display: "flex", flexDirection: "column", gap: 4, fontSize: 12, color: "var(--k-stone)" },
  stepAttLab: { fontSize: 10, letterSpacing: "0.16em", textTransform: "uppercase", color: "var(--k-poppy)", fontWeight: 700, marginBottom: 4 },
  stepOutcome: {
    marginTop: "auto", paddingTop: 18, borderTop: "1px solid rgba(255,253,247,0.12)",
    fontFamily: "var(--serif)", fontStyle: "italic", color: "var(--k-poppy)",
    fontSize: 17, lineHeight: 1.3,
  },

  /* CTA block */
  cta: {
    background: "var(--k-cotton)", color: "var(--k-charcoal)",
    borderRadius: 12,
    padding: "48px 56px 52px",
    marginBottom: 64,
    display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 56, alignItems: "center",
  },
  ctaT: { fontFamily: "var(--serif)", fontSize: "clamp(28px, 3.2vw, 44px)", lineHeight: 1.15, margin: 0, fontWeight: 400, letterSpacing: "-0.01em" },
  ctaSub: { fontSize: 15, lineHeight: 1.65, color: "#5a5755", marginTop: 16 },
  ctaPills: { display: "flex", flexDirection: "column", gap: 12 },
  ctaPill: {
    background: "var(--k-charcoal)", color: "var(--k-cotton)",
    padding: "16px 24px",
    borderRadius: 999,
    fontSize: 13, fontWeight: 600,
    display: "flex", justifyContent: "space-between", alignItems: "center",
    gap: 16,
  },
  ctaPillLab: { fontSize: 10, letterSpacing: "0.16em", color: "var(--k-poppy)", fontWeight: 700 },

  foot: {
    paddingTop: 32, marginTop: 32,
    borderTop: "1px solid rgba(255,253,247,0.18)",
    display: "flex", justifyContent: "space-between", alignItems: "center",
    fontSize: 11, letterSpacing: "0.18em", textTransform: "uppercase",
    color: "var(--k-stone)", flexWrap: "wrap", gap: 24,
  },
  footWord: { fontFamily: "var(--serif)", fontStyle: "italic", fontSize: 24, letterSpacing: "-0.005em", textTransform: "none", color: "var(--k-cotton)" },
};

const STEPS = [
  {
    n: "1", when: "June · Week 1",
    t: "CRM use-case session",
    b: "We&rsquo;ll build something out in an N Brown environment. A live test drive, with your team operating Klaviyo, to make sure it delivers the use cases the four brand accounts and FS team need.",
    attL: "Attendees",
    att: ["N Brown CRM lead", "Brand CRM owners (×4)", "Klaviyo: Joe Bishop, Sabhyata"],
    outcome: "Confidence — through hands-on, not slides.",
  },
  {
    n: "2", when: "June · Week 2",
    t: "Technical discovery",
    b: "A focused session with your technical and marketing teams to map Klaviyo&rsquo;s integration with your existing stack. Data flows, API capabilities, timeline considerations — no surprises before go-live.",
    attL: "Attendees",
    att: ["N Brown engineering", "FS / Compliance lead", "Klaviyo: Sabhyata + Solutions Architect"],
    outcome: "Architecture aligned across CRM, FS and Data.",
  },
  {
    n: "3", when: "June · Week 3",
    t: "Formulate business case",
    b: "There are a lot of currently missed opportunities where we think we can deliver value quickly. Let&rsquo;s shape what that looks like as a quantified business case for N Brown — TCO, productivity, revenue.",
    attL: "Attendees",
    att: ["N Brown CRM + Commercial", "Finance partner", "Klaviyo: Joe Bishop, Bryon Goodman"],
    outcome: "A commercial case ready for the next stage.",
  },
];

function NextSteps() {
  return (
    <section id="next" style={nsStyles.section} data-screen-label="11 Next steps">
      <div style={nsStyles.inner}>
        <div style={nsStyles.head}>
          <div style={nsStyles.eyebrow}>Suggested next steps · June 2026</div>
          <h2 style={nsStyles.title}>
            Three sessions,<br/>
            <span className="serif-i" style={{color: "var(--k-poppy)"}}>and we&rsquo;re away</span>.
          </h2>
          <p style={nsStyles.sub}>
            We don&rsquo;t want to slide-deck this. Three focused sessions in
            June — a hands-on test drive, a technical discovery, and a business
            case. At the end of them, N Brown will know exactly what Klaviyo
            costs, what it&rsquo;ll deliver, and when.
          </p>
        </div>

        <div style={nsStyles.stepsGrid}>
          {STEPS.map((s, i) => (
            <div key={s.n} style={{...nsStyles.stepCol, ...(i === STEPS.length - 1 ? nsStyles.stepColLast : {})}}>
              <div style={{display: "flex", justifyContent: "space-between", alignItems: "baseline"}}>
                <div style={nsStyles.stepN}>{s.n}</div>
                <div style={nsStyles.stepWhen}>{s.when}</div>
              </div>
              <h3 style={nsStyles.stepT}>{s.t}</h3>
              <p style={nsStyles.stepB} dangerouslySetInnerHTML={{__html: s.b}}/>
              <div style={nsStyles.stepOutcome}>→ {s.outcome}</div>
            </div>
          ))}
        </div>

        <div style={nsStyles.foot}>
          <div>2026 © Klaviyo · Prepared for N Brown · Ref Proc 424/27 · Confidential</div>
          <div style={nsStyles.footWord}>klaviyo</div>
        </div>
      </div>
    </section>
  );
}
