/* icons.jsx — minimal line icons. Exported to window. */
const I = ({ d, size = 22, sw = 1.6, fill = "none", children }) => (
  <svg width={size} height={size} viewBox="0 0 24 24" fill={fill}
       stroke="currentColor" strokeWidth={sw} strokeLinecap="round" strokeLinejoin="round"
       aria-hidden="true">
    {d ? <path d={d} /> : children}
  </svg>
);

const Icons = {
  arrow:  (p) => <I {...p} d="M5 12h14M13 6l6 6-6 6" />,
  arrowDown: (p) => <I {...p} d="M12 5v14M6 13l6 6 6-6" />,
  check:  (p) => <I {...p} d="M4 12.5l5 5L20 6" />,
  x:      (p) => <I {...p} d="M6 6l12 12M18 6L6 18" />,
  plus:   (p) => <I {...p} d="M12 5v14M5 12h14" />,
  minus:  (p) => <I {...p} d="M5 12h14" />,
  spark:  (p) => <I {...p} d="M12 3v4M12 17v4M3 12h4M17 12h4M6.3 6.3l2.5 2.5M15.2 15.2l2.5 2.5M17.7 6.3l-2.5 2.5M8.8 15.2l-2.5 2.5" />,
  bolt:   (p) => <I {...p} d="M13 2L4 14h7l-1 8 9-12h-7l1-8z" />,
  // category icons
  marketing: (p) => <I {...p}><path d="M3 11l16-7-3 16-4-5-5-1z"/><path d="M11 14l-3 5"/></I>,
  ops:    (p) => <I {...p}><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M19 5l-2 2M7 17l-2 2"/></I>,
  automation: (p) => <I {...p}><path d="M4 7h9a4 4 0 0 1 4 4v0a4 4 0 0 0 4 4h-1"/><circle cx="4" cy="7" r="2"/><circle cx="20" cy="15" r="2"/></I>,
  dev:    (p) => <I {...p} d="M8 8l-4 4 4 4M16 8l4 4-4 4M13 5l-2 14" />,
  consult:(p) => <I {...p}><path d="M21 15a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2z"/></I>,
  // misc
  clock:  (p) => <I {...p}><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></I>,
  layers: (p) => <I {...p}><path d="M12 3l9 5-9 5-9-5 9-5z"/><path d="M3 13l9 5 9-5"/></I>,
  infinity:(p)=> <I {...p}><path d="M9 12c0-2-1.5-3.5-3.2-3.5S2.5 10 2.5 12 4 15.5 5.8 15.5 9 14 9 12zm0 0c0 2 1.5 3.5 3.2 3.5S22 14 22 12s-1.5-3.5-3.8-3.5S9 10 9 12z"/></I>,
  shield: (p) => <I {...p}><path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/><path d="M9 12l2 2 4-4"/></I>,
  cube:   (p) => <I {...p}><path d="M12 3l8 4.5v9L12 21l-8-4.5v-9z"/><path d="M12 21V12M4 7.5l8 4.5 8-4.5"/></I>,
};

window.Icons = Icons;
