// funnels.jsx — hero visual: two separate funnels, B2C and B2B.
// B2C: knowledge base → short-video lines → every platform → people pour in → AI chat → webinar → checkout.
// B2B: scraper finds companies → cold email + AI call → social content builds trust → meeting → deal.
// The numbers are illustrative. Canvas draws the flow; DOM draws icons, cards and counters.

// Icon glyphs from the subset font assets/fonts/pp-icons.woff (Tabler Icons, MIT).
const IC = {
  ig: '\uec20', tiktok: '\uec73', yt: '\uec90', fb: '\uec1a', threads: '\ufb02', linkedin: '\uec8c',
  line: '\uf7e8', wa: '\uec74', tg: '\uec26', mail: '\ueae5', phone: '\ueb05', building: '\uea4f',
  user: '\ueb4d', userCheck: '\ueb49', worldSearch: '\uf9e7', brain: '\uf59f', video: '\ued22', calendar: '\uf824',
  coin: '\ueb82', cart: '\ueb25', presentation: '\ueb70', msg: '\ueaed', handshake: '\uf0f3', play: '\ued46',
  eye: '\uea9a', send: '\ueb1e', robot: '\uf00b', sparkles: '\uf6d7', loop: '\ueb77', chart: '\uea5c',
  dollar: '\ueb84', users: '\uebf2',
  writing: '\uef08', mic: '\ueaf0', scissors: '\ueb1b', check: '\uea5e', clock: '\uea70', arrow: '\uea1f',
  bell: '\uea35', bolt: '\uea38', database: '\uea88', calEvent: '\uea52', signature: '\ueee0', chatbot: '\uf38a',
};

const FN_W = 440, FN_H = 740;
const FN_TOP = 238, FN_BOT = 630;
const FN_CX = 150, FN_HW_TOP = 128, FN_HW_BOT = 18;
const BAND_H = (FN_BOT - FN_TOP) / 4;
const CARD_X = 290, CARD_W = 144, CARD_H = 88;
const BRAIN = { x: 362, y: 100 };
const REV = { x: 150, y: 684 };
const PINK = '#db2777';
const bandMid = (i) => FN_TOP + BAND_H * (i + 0.5);
function hwAt(y) {
  const p = Math.min(1, Math.max(0, (y - FN_TOP) / (FN_BOT - FN_TOP)));
  return FN_HW_BOT + (FN_HW_TOP - FN_HW_BOT) * Math.pow(1 - p, 1.12);
}
const rnd = (a, b) => a + Math.random() * (b - a);
const fmt = (n) => Math.round(n).toLocaleString('en-US');

const FN_KIND = {
  b2c: {
    colors: ['#2563eb', '#16a34a', '#7c3aed', '#d97706'],
    drop: [0.42, 0.3, 0.24],
    glyph: 'user',
    icons: [
      [{ g: IC.eye, c: '#2563eb' }],
      [{ g: IC.line, c: '#06C755' }, { g: IC.wa, c: '#25D366' }, { g: IC.tg, c: '#229ED9' }, { txt: 'K', c: '#FEE500' }],
      [{ g: IC.presentation, c: '#7c3aed' }],
      [{ g: IC.cart, c: '#d97706' }],
    ],
    base: [1284300, 18420, 3216, 412], mult: [137, 12, 3, 1],
    rev: { base: 2846000, prefix: 'NT$ ', step: [2400, 9800], icon: IC.coin },
    platforms: [
      { g: IC.ig, c: '#E1306C', x: 38 }, { g: IC.tiktok, c: '#111111', x: 94 }, { g: IC.yt, c: '#FF0033', x: 150 },
      { g: IC.fb, c: '#1877F2', x: 206 }, { g: IC.threads, c: '#111111', x: 262 },
    ],
    tiles: [{ k: 'ip-story', x: 70 }, { k: 'product', x: 128 }, { k: 'personal-ip', x: 186 }],
  },
  b2b: {
    colors: ['#0d9488', '#2563eb', PINK, '#7c3aed'],
    drop: [0.36, 0.32, 0.28],
    glyph: 'building',
    icons: [
      [{ g: IC.building, c: '#0d9488' }],
      [{ g: IC.mail, c: '#2563eb' }, { g: IC.phone, c: '#2563eb', ring: true }],
      [{ g: IC.linkedin, c: '#0A66C2' }, { g: IC.yt, c: '#FF0033' }],
      [{ g: IC.calendar, c: '#7c3aed' }],
    ],
    base: [18640, 9312, 1488, 96], mult: [9, 4, 2, 1],
    rev: { base: 1240000, prefix: 'US$ ', step: [8000, 26000], icon: IC.handshake },
  },
};
const PLAT_Y = 200, TILE_Y = 62, TILE_W = 44, TILE_H = 78;

function FunnelPanel({ kind, t }) {
  const K = FN_KIND[kind];
  const ft = t.hero.funnels[kind];
  const wrapRef = React.useRef(null);
  const canvasRef = React.useRef(null);
  const countRefs = React.useRef([]);
  const revRef = React.useRef(null);
  const platRefs = React.useRef([]);
  const cardRefs = React.useRef([]);
  const [scale, setScale] = React.useState(1);

  React.useEffect(() => {
    const el = wrapRef.current;
    const ro = new ResizeObserver(() => setScale(el.clientWidth / FN_W));
    ro.observe(el);
    setScale(el.clientWidth / FN_W);
    return () => ro.disconnect();
  }, []);

  React.useEffect(() => {
    const cv = canvasRef.current;
    const ctx = cv.getContext('2d');
    const dpr = Math.min(window.devicePixelRatio || 1, 2);
    cv.width = Math.round(FN_W * scale * dpr);
    cv.height = Math.round(FN_H * scale * dpr);
    ctx.setTransform(scale * dpr, 0, 0, scale * dpr, 0, 0);

    const reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    let fontReady = false;
    (document.fonts ? document.fonts.load('16px pp-icons') : Promise.resolve()).then(() => { fontReady = true; });

    const S = {
      ps: [], shots: [], pops: [], rings: [],
      passes: [0, 0, 0, 0], rev: K.rev.base,
      tSpawn: 0, tA: 0, tB: 0, tC: 0, time: 0,
    };
    const flowing = (band) => S.ps.filter((p) => p.state === 'flow' && p.band === band);
    const pick = (arr) => arr[Math.floor(Math.random() * arr.length)];
    const pulse = (el, cls = 'hit', ms = 420) => {
      if (!el) return;
      el.classList.remove(cls); void el.offsetWidth; el.classList.add(cls);
      setTimeout(() => el.classList.remove(cls), ms);
    };
    const xOn = (ph, y) => FN_CX + hwAt(y) * 0.74 * Math.sin(ph + (y - FN_TOP) * 0.03);

    function spawnPerson(sx, sy) {
      const ph = rnd(0, Math.PI * 2);
      S.ps.push({ state: 'enter', sx, sy, ph, t: 0, dur: rnd(0.7, 1.0), sp: rnd(50, 68), band: -1,
        glyph: K.glyph, x: sx, y: sy, a: 1 });
    }
    function shoot(kindShot, sx, sy, target, onHit, dur = 0.6) {
      S.shots.push({ kind: kindShot, sx, sy, target, t: 0, dur, onHit });
    }
    function pop(glyph, color, p, life = 0.9) { S.pops.push({ glyph, color, p, t: 0, life }); }

    function step(dt) {
      S.time += dt;
      // sources
      if (kind === 'b2c') {
        S.tSpawn += dt;
        if (S.tSpawn > 0.24) {
          S.tSpawn = 0;
          const tile = pick(K.tiles), pi = Math.floor(Math.random() * K.platforms.length), pl = K.platforms[pi];
          shoot('content', tile.x + TILE_W / 2, TILE_Y + TILE_H + 4, { x: pl.x, y: PLAT_Y }, () => {
            pulse(platRefs.current[pi]);
            spawnPerson(pl.x, PLAT_Y + 14);
            if (Math.random() < 0.7) setTimeout(() => spawnPerson(pl.x, PLAT_Y + 14), 160);
          }, 0.55);
        }
        S.tA += dt;
        if (S.tA > 0.26) { S.tA = 0; const c = flowing(1); if (c.length) pop(IC.msg, pick(['#06C755', '#16a34a', '#229ED9']), pick(c)); }
      } else {
        S.tSpawn += dt;
        if (S.tSpawn > 0.22) { S.tSpawn = 0; spawnPerson(rnd(40, 260), 212); }
        S.tA += dt;
        if (S.tA > 0.3) {
          S.tA = 0;
          const c = flowing(1).filter((p) => !p.mailed);
          if (c.length) { const p = pick(c); p.mailed = true;
            shoot('mail', CARD_X - 2, bandMid(1) - 8, p, () => { p.glyph = 'user'; }); }
        }
        S.tB += dt;
        if (S.tB > 1.3) {
          S.tB = 0;
          const c = flowing(1);
          if (c.length) { const p = pick(c); p.glyph = 'user'; S.rings.push({ p, t: 0 }); pulse(cardRefs.current[1], 'ringing', 1100); }
        }
        S.tC += dt;
        if (S.tC > 0.34) {
          S.tC = 0;
          const c = flowing(2);
          if (c.length) { const p = pick(c); shoot('content', CARD_X - 2, bandMid(2), p, () => { p.glow = 0.9; }); }
        }
      }
      // particles
      for (const p of S.ps) {
        if (p.state === 'enter') {
          p.t += dt / p.dur;
          const tx = xOn(p.ph, FN_TOP), ty = FN_TOP;
          const k = Math.min(1, p.t), e = k * k * (3 - 2 * k);
          p.x = p.sx + (tx - p.sx) * e;
          p.y = p.sy + (ty - p.sy) * e - Math.sin(k * Math.PI) * 10;
          if (k >= 1) { p.state = 'flow'; p.band = 0; p.y = FN_TOP; }
        } else if (p.state === 'flow') {
          p.y += p.sp * dt;
          p.x = xOn(p.ph, p.y);
          if (p.glow) p.glow = Math.max(0, p.glow - dt);
          const b = Math.floor((p.y - FN_TOP) / BAND_H);
          if (b !== p.band) {
            S.passes[p.band]++;
            const dropped = p.band < 3 && Math.random() < K.drop[p.band];
            if (dropped) {
              p.state = 'drop'; const dir = p.x >= FN_CX ? 1 : -1;
              p.vx = dir * rnd(40, 90); p.vy = rnd(-30, 0); p.life = 1.3;
            } else if (b >= 4) {
              p.state = 'coin'; p.t = 0; p.sx = p.x; p.sy = FN_BOT;
            } else {
              p.band = b;
              if (kind === 'b2c' && b === 2) pop(IC.presentation, '#7c3aed', p, 0.8);
              if (kind === 'b2b' && b === 2) p.glyph = 'user';
              if (kind === 'b2b' && b === 3) pop(IC.calendar, '#7c3aed', p, 0.9);
            }
          }
        } else if (p.state === 'drop') {
          p.vy += 160 * dt; p.x += p.vx * dt; p.y += p.vy * dt; p.life -= dt; p.a = Math.max(0, p.life / 1.3);
        } else if (p.state === 'coin') {
          p.t += dt / 0.7;
          const k = Math.min(1, p.t);
          p.x = p.sx + (REV.x - p.sx) * k; p.y = p.sy + (REV.y - 16 - p.sy) * k - Math.sin(k * Math.PI) * 14;
          if (k >= 1) {
            p.dead = true;
            S.rev += rnd(K.rev.step[0], K.rev.step[1]);
            pulse(revRef.current, 'hit', 500);
          }
        }
      }
      S.ps = S.ps.filter((p) => !p.dead && !(p.state === 'drop' && p.life <= 0));
      for (const s of S.shots) {
        s.t += dt / s.dur;
        if (s.t >= 1 && !s.done) { s.done = true; s.onHit && s.onHit(); }
      }
      S.shots = S.shots.filter((s) => !s.done);
      for (const o of S.pops) o.t += dt;
      S.pops = S.pops.filter((o) => o.t < o.life);
      for (const r of S.rings) r.t += dt;
      S.rings = S.rings.filter((r) => r.t < 1.1);
      // counters
      for (let i = 0; i < 4; i++) {
        const el = countRefs.current[i];
        if (el) el.textContent = fmt(K.base[i] + S.passes[i] * K.mult[i]);
      }
      if (revRef.current) revRef.current.querySelector('b').textContent = K.rev.prefix + fmt(S.rev);
    }

    function glyph(g, x, y, size, color, alpha = 1) {
      ctx.globalAlpha = alpha;
      ctx.fillStyle = color;
      if (fontReady) { ctx.font = `${size}px pp-icons`; ctx.fillText(g, x, y + 1); }
      else { ctx.beginPath(); ctx.arc(x, y, size / 3.2, 0, Math.PI * 2); ctx.fill(); }
      ctx.globalAlpha = 1;
    }
    function funnelPath(y0, y1) {
      ctx.beginPath();
      for (let y = y0; y <= y1; y += 6) ctx.lineTo(FN_CX - hwAt(y), y);
      ctx.lineTo(FN_CX - hwAt(y1), y1);
      for (let y = y1; y >= y0; y -= 6) ctx.lineTo(FN_CX + hwAt(y), y);
      ctx.lineTo(FN_CX + hwAt(y0), y0);
      ctx.closePath();
    }
    function dashed(points, color, speed, width = 1.4, dash = [5, 6]) {
      ctx.save();
      ctx.strokeStyle = color; ctx.lineWidth = width; ctx.setLineDash(dash);
      ctx.lineDashOffset = -S.time * speed;
      ctx.beginPath(); points.forEach(([x, y], i) => (i ? ctx.lineTo(x, y) : ctx.moveTo(x, y))); ctx.stroke();
      ctx.restore();
    }

    function draw() {
      ctx.clearRect(0, 0, FN_W, FN_H);
      ctx.textAlign = 'center'; ctx.textBaseline = 'middle';
      // wiring: knowledge base → content, and the feedback loop
      if (kind === 'b2c') {
        dashed([[BRAIN.x - 30, BRAIN.y], [K.tiles[2].x + TILE_W + 6, BRAIN.y]], PINK + 'cc', 26);
        dashed([[REV.x - 102, REV.y], [8, REV.y], [8, TILE_Y + TILE_H / 2], [K.tiles[0].x - 6, TILE_Y + TILE_H / 2]], '#0000002e', -22);
      } else {
        dashed([[BRAIN.x + 32, BRAIN.y], [437, BRAIN.y], [437, bandMid(2)], [CARD_X + CARD_W + 2, bandMid(2)]], PINK + 'cc', 26);
        dashed([[REV.x - 102, REV.y], [8, REV.y], [8, 132], [18, 132]], '#0000002e', -22);
      }
      // funnel bands
      for (let i = 0; i < 4; i++) {
        const y0 = FN_TOP + i * BAND_H, y1 = y0 + BAND_H;
        funnelPath(y0, y1);
        ctx.fillStyle = K.colors[i] + '24'; ctx.fill();
        ctx.save(); ctx.clip();
        const sweepY = FN_TOP + ((S.time * 70) % (FN_BOT - FN_TOP + 120)) - 60;
        const g = ctx.createLinearGradient(0, sweepY - 50, 0, sweepY + 50);
        g.addColorStop(0, 'rgba(255,255,255,0)'); g.addColorStop(0.5, 'rgba(255,255,255,0.55)'); g.addColorStop(1, 'rgba(255,255,255,0)');
        ctx.fillStyle = g; ctx.fillRect(0, sweepY - 50, FN_W, 100);
        ctx.restore();
        // band edge glow
        ctx.save(); ctx.shadowColor = K.colors[i]; ctx.shadowBlur = 6;
        ctx.strokeStyle = K.colors[i] + 'aa'; ctx.lineWidth = 1.6;
        ctx.beginPath(); for (let y = y0; y <= y1; y += 6) ctx.lineTo(FN_CX - hwAt(y), y); ctx.stroke();
        ctx.beginPath(); for (let y = y0; y <= y1; y += 6) ctx.lineTo(FN_CX + hwAt(y), y); ctx.stroke();
        ctx.restore();
        if (i > 0) { ctx.strokeStyle = '#0000001a'; ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(FN_CX - hwAt(y0), y0); ctx.lineTo(FN_CX + hwAt(y0), y0); ctx.stroke(); }
        // leader to the label card
        const m = bandMid(i);
        dashed([[FN_CX + hwAt(m) + 6, m], [CARD_X - 6, m]], K.colors[i] + '88', 0, 1, [2, 4]);
      }
      // funnel mouth rim
      ctx.save(); ctx.strokeStyle = K.colors[0]; ctx.globalAlpha = 0.7; ctx.lineWidth = 1.6;
      ctx.beginPath(); ctx.ellipse(FN_CX, FN_TOP, FN_HW_TOP, 9, 0, 0, Math.PI * 2); ctx.stroke(); ctx.restore();
      // phone rings
      for (const r of S.rings) {
        const { p } = r;
        for (let k = 0; k < 3; k++) {
          const tt = r.t - k * 0.18; if (tt < 0) continue;
          ctx.strokeStyle = `rgba(37,99,235,${Math.max(0, 0.8 - tt)})`; ctx.lineWidth = 1.4;
          ctx.beginPath(); ctx.arc(p.x, p.y, 10 + tt * 26, 0, Math.PI * 2); ctx.stroke();
        }
        glyph(IC.phone, p.x + 14, p.y - 16, 14, '#2563eb', Math.max(0, 1 - r.t));
      }
      // particles
      for (const p of S.ps) {
        let col = p.state === 'drop' ? '#a8b3c2' : p.state === 'coin' ? '#d97706' : p.band >= 0 ? K.colors[p.band] : (kind === 'b2c' ? '#475569' : '#0f766e');
        if (p.state === 'coin') { glyph(IC.coin, p.x, p.y, 19, '#d97706'); continue; }
        if (p.glow) {
          ctx.save(); ctx.globalAlpha = Math.min(1, p.glow); ctx.fillStyle = PINK + '55';
          ctx.beginPath(); ctx.arc(p.x, p.y, 13, 0, Math.PI * 2); ctx.fill(); ctx.restore();
          col = PINK;
        }
        const g = p.glyph === 'building' ? IC.building : p.glyph === 'user' ? (kind === 'b2b' ? IC.userCheck : IC.user) : IC.user;
        glyph(g, p.x, p.y, 18, col, p.a);
      }
      // shots: content cards, envelopes
      for (const s of S.shots) {
        const k = Math.min(1, s.t), e = k * k * (3 - 2 * k);
        const tx = s.target.x, ty = s.target.y;
        const x = s.sx + (tx - s.sx) * e, y = s.sy + (ty - s.sy) * e - Math.sin(k * Math.PI) * 18;
        if (s.kind === 'mail') { glyph(IC.mail, x, y, 15, '#2563eb'); continue; }
        ctx.save(); ctx.translate(x, y); ctx.rotate(Math.sin(k * Math.PI) * 0.25);
        ctx.fillStyle = '#ffffff'; ctx.strokeStyle = PINK; ctx.lineWidth = 1.4;
        ctx.beginPath(); ctx.roundRect ? ctx.roundRect(-6, -9, 12, 18, 3) : ctx.rect(-6, -9, 12, 18); ctx.fill(); ctx.stroke();
        ctx.fillStyle = PINK; ctx.beginPath(); ctx.moveTo(-2, -4); ctx.lineTo(4, 0); ctx.lineTo(-2, 4); ctx.closePath(); ctx.fill();
        ctx.restore();
      }
      // pops above particles
      for (const o of S.pops) {
        const k = o.t / o.life;
        glyph(o.glyph, o.p.x + 12, o.p.y - 14 - k * 8, 14, o.color, 1 - k * k);
      }
    }

    let raf = 0, last = performance.now(), visible = true;
    const io = new IntersectionObserver(([en]) => { visible = en.isIntersecting; last = performance.now(); }, { threshold: 0.05 });
    io.observe(cv);
    if (reduce) {
      for (let i = 0; i < 360; i++) step(1 / 60);
      const once = () => { draw(); };
      (document.fonts ? document.fonts.load('16px pp-icons') : Promise.resolve()).then(() => { fontReady = true; once(); });
      once();
    } else {
      // warm up so the funnel is already busy on first paint
      for (let i = 0; i < 720; i++) step(1 / 60);
      draw();
      const loop = (now) => {
        raf = requestAnimationFrame(loop);
        if (!visible || document.hidden) { last = now; return; }
        const dt = Math.min(0.05, (now - last) / 1000); last = now;
        step(dt); draw();
      };
      raf = requestAnimationFrame(loop);
    }
    return () => { cancelAnimationFrame(raf); io.disconnect(); };
  }, [scale, kind]);

  const s = scale;
  return (
    <div className={`fn fn-${kind}`} ref={wrapRef} style={{ height: FN_H * s }}>
      <div className="fn-scene" style={{ width: FN_W, height: FN_H, transform: `scale(${s})` }}>
        <canvas ref={canvasRef} style={{ width: FN_W, height: FN_H }} />

        <div className="fn-head">
          <span className="fn-badge"><i className="ic">{kind === 'b2c' ? IC.users : IC.building}</i>{ft.badge}</span>
          <span className="fn-tag">{ft.tagline}</span>
        </div>

        <div className="fn-brain" style={{ left: BRAIN.x - 30, top: BRAIN.y - 30 }}>
          <i className="ic">{IC.brain}</i>
        </div>
        <div className="fn-brain-label" style={{ left: BRAIN.x - 60, top: BRAIN.y + 36 }}>{ft.brain}</div>

        {kind === 'b2c' && (
          <>
            {K.tiles.map((tl) => (
              <div key={tl.k} className="fn-tile" style={{ left: tl.x, top: TILE_Y, width: TILE_W, height: TILE_H }}>
                <video src={`assets/angles/${tl.k}.mp4`} poster={`assets/angles/${tl.k}.jpg`} autoPlay muted loop playsInline preload="metadata" />
                <i className="ic fn-tile-play">{IC.play}</i>
              </div>
            ))}
            <div className="fn-tiles-label" style={{ left: K.tiles[0].x, top: TILE_Y + TILE_H + 8, width: K.tiles[2].x + TILE_W - K.tiles[0].x }}>{ft.lines}</div>
            {K.platforms.map((pl, i) => (
              <div key={i} ref={(el) => (platRefs.current[i] = el)} className="fn-plat" style={{ left: pl.x - 17, top: PLAT_Y - 17, '--pc': pl.c }}>
                <i className="ic">{pl.g}</i>
              </div>
            ))}
          </>
        )}

        {kind === 'b2b' && (
          <div className="fn-scraper" style={{ left: 20, top: 58, width: 260, height: 146 }}>
            <div className="fn-scraper-head"><i className="ic">{IC.worldSearch}</i>{ft.scraper.title}<span className="fn-live" /></div>
            <div className="fn-scraper-rows">
              <div className="fn-scraper-track">
                {[...ft.scraper.rows, ...ft.scraper.rows].map((r, i) => (
                  <div key={i} className="fn-row"><i className="ic">{IC.building}</i><span>{r}</span></div>
                ))}
              </div>
              <div className="fn-scan" />
            </div>
          </div>
        )}

        {ft.bands.map((b, i) => (
          <div key={i} ref={(el) => (cardRefs.current[i] = el)} className={`fn-card${kind === 'b2b' && i === 2 ? ' has-video' : ''}`}
               style={{ left: CARD_X, top: bandMid(i) - CARD_H / 2, width: CARD_W, height: CARD_H, '--bc': K.colors[i] }}>
            <div className="fn-icons">
              {K.icons[i].map((ic, j) => ic.txt
                ? <span key={j} className="fn-ico txt" style={{ '--ic': ic.c }}>{ic.txt}</span>
                : <i key={j} className={`ic fn-ico${ic.ring ? ' ring' : ''}`} style={{ '--ic': ic.c }}>{ic.g}</i>)}
            </div>
            <div className="fn-count" ref={(el) => (countRefs.current[i] = el)}>{fmt(K.base[i])}</div>
            <div className="fn-name">{b.name}</div>
            <div className="fn-unit">{b.unit}</div>
            {kind === 'b2b' && i === 2 && (
              <div className="fn-mini"><video src="assets/angles/ai-clone.mp4" poster="assets/angles/ai-clone.jpg" autoPlay muted loop playsInline preload="metadata" /></div>
            )}
          </div>
        ))}

        <div className="fn-rev" ref={revRef} style={{ left: REV.x - 100, top: REV.y - 30, width: 200, height: 60 }}>
          <i className="ic">{K.rev.icon}</i>
          <div><b>{K.rev.prefix + fmt(K.rev.base)}</b><span>{ft.revenue}</span></div>
        </div>
      </div>
    </div>
  );
}

function TwoFunnels({ t }) {
  return (
    <div className="fn-pair">
      <FunnelPanel kind="b2c" t={t} />
      <FunnelPanel kind="b2b" t={t} />
    </div>
  );
}

Object.assign(window, { IC, TwoFunnels });
