/* Reco landing — line icons (Lucide-style, 1.75 stroke) + marketing voucher card.
   Exports: Icon */

function Icon({ name, size = 24, stroke = 1.75, color = 'currentColor', style = {} }) {
  const p = { fill: 'none', stroke: color, strokeWidth: stroke, strokeLinecap: 'round', strokeLinejoin: 'round' };
  const paths = {
    qr: <><rect x="3" y="3" width="7" height="7" rx="1.5" {...p}/><rect x="14" y="3" width="7" height="7" rx="1.5" {...p}/><rect x="3" y="14" width="7" height="7" rx="1.5" {...p}/><path d="M14 14h3v3M21 14v.01M14 21h.01M17.5 17.5v3.5M21 18v3" {...p}/></>,
    gift: <><path d="M20 12v8a1 1 0 01-1 1H5a1 1 0 01-1-1v-8M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z" {...p}/></>,
    share: <><circle cx="18" cy="5" r="3" {...p}/><circle cx="6" cy="12" r="3" {...p}/><circle cx="18" cy="19" r="3" {...p}/><path d="M8.6 13.5l6.8 4M15.4 6.5l-6.8 4" {...p}/></>,
    star: <path d="M12 2l2.9 6.3 6.9.7-5.1 4.7 1.4 6.8L12 17.8 5.9 21.2l1.4-6.8L2.2 9.7l6.9-.7z" fill={color} stroke="none"/>,
    users: <><path d="M16 21v-2a4 4 0 00-4-4H6a4 4 0 00-4 4v2" {...p}/><circle cx="9" cy="7" r="4" {...p}/><path d="M22 21v-2a4 4 0 00-3-3.9M16 3.1a4 4 0 010 7.8" {...p}/></>,
    trend: <><path d="M3 17l6-6 4 4 7-7" {...p}/><path d="M17 8h4v4" {...p}/></>,
    check: <path d="M20 6L9 17l-5-5" {...p}/>,
    arrow: <path d="M5 12h14M13 6l6 6-6 6" {...p}/>,
    play: <><circle cx="12" cy="12" r="9" {...p}/><path d="M10 9l5 3-5 3z" fill={color} stroke={color}/></>,
    scan: <><path d="M4 7V5a1 1 0 011-1h2M17 4h2a1 1 0 011 1v2M20 17v2a1 1 0 01-1 1h-2M7 20H5a1 1 0 01-1-1v-2" {...p}/><path d="M4 12h16" {...p}/></>,
    receipt: <><path d="M4 4v17l2.5-1.5L9 21l3-1.5L15 21l2.5-1.5L20 21V4a1 1 0 00-1-1H5a1 1 0 00-1 1z" {...p}/><path d="M8 8h8M8 12h6" {...p}/></>,
    bolt: <path d="M13 2L4 14h6l-1 8 9-12h-6z" {...p}/>,
    infinity: <path d="M6 8a4 4 0 100 8c2 0 3-1.5 6-4s4-4 6-4a4 4 0 110 8c-2 0-3-1.5-6-4S8 8 6 8z" {...p}/>,
    wallet: <><rect x="3" y="6" width="18" height="13" rx="2.5" {...p}/><path d="M3 10h18" {...p}/><circle cx="16.5" cy="14" r="1" fill={color} stroke="none"/></>,
    bar: <path d="M5 3h14l-7 9-7-9zM12 12v9M8 21h8" {...p}/>,
    spa: <path d="M11 20A7 7 0 019.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10zM2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12" {...p}/>,
    salon: <><circle cx="6" cy="6" r="3" {...p}/><circle cx="6" cy="18" r="3" {...p}/><path d="M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12" {...p}/></>,
    restaurant: <path d="M3 2v7c0 1.1.9 2 2 2h4a2 2 0 002-2V2M7 2v20M21 15V2a5 5 0 00-5 5v6c0 1.1.9 2 2 2h3zm0 0v7" {...p}/>,
    pin: <><path d="M12 21s7-6.2 7-11a7 7 0 10-14 0c0 4.8 7 11 7 11z" {...p}/><circle cx="12" cy="10" r="2.5" {...p}/></>,
    coffee: <><path d="M4 8h13v5a5 5 0 01-5 5H9a5 5 0 01-5-5V8z" {...p}/><path d="M17 9h2.5a2.5 2.5 0 010 5H17" {...p}/><path d="M7 2v2.5M11 2v2.5" {...p}/></>,
  };
  return (
    <svg viewBox="0 0 24 24" width={size} height={size} style={{ flexShrink: 0, ...style }}>
      {paths[name]}
    </svg>
  );
}

Object.assign(window, { Icon });
