/* MORE DATA, MORE VALUE — data tiers. Source-agnostic: every tier is optional except the plugin. */

const DATA_TIERS = [
  {
    n: "01", name: "Plugin only", tag: "Day one", tint: "bg-orange",
    body: "Tips you write, team playbooks, required training, progress and ask your lead, all inside Claude. See which tips were shown and rated useful.",
  },
  {
    n: "02", name: "+ Data export", tag: "Optional", tint: "bg-blue",
    body: "Upload your Claude data export to see how the team uses Claude and where people slip, so tips and training go where they're needed.",
  },
  {
    n: "03", name: "+ Analytics API or Smart Reports", tag: "Optional", tint: "bg-lime",
    body: "Keep usage patterns up to date without manual uploads. Using Smart Reports is great. Not using it is fine.",
  },
  {
    n: "04", name: "+ Compliance API", tag: "Enterprise", tint: "bg-cream",
    body: "Per-person insights and automatic training picked from each person's own work.",
  },
];

function MoreData() {
  return (
    <section id="data" data-snap className="relative bg-cream-2 border-b-2 border-ink">
      <div className="max-w-[1400px] mx-auto px-5 md:px-8 py-20 md:py-28">
        <div className="flex items-center justify-between font-mono text-sm md:text-base mb-10" aria-hidden="true">
          <span>04 / MORE DATA, MORE VALUE</span>
          <span>START WITH THE PLUGIN</span>
        </div>

        <div className="grid lg:grid-cols-12 gap-8 items-end mb-12">
          <h2 className="lg:col-span-7 font-display font-bold tracking-tight leading-[0.95] text-[44px] md:text-[72px] lg:text-[80px]">
            Value from day one. <span className="text-orange">More with more data.</span>
          </h2>
          <p className="lg:col-span-5 text-base md:text-lg text-ink-2 max-w-md">
            The plugin works on its own. Connect more data when you're ready and cubicle adds per-person insights and automatic training. Use whichever sources you have.
          </p>
        </div>

        <ol className="grid sm:grid-cols-2 lg:grid-cols-4 gap-6">
          {DATA_TIERS.map((t) => (
            <li key={t.n} className="border-2 border-ink bg-cream hs-sm p-6 flex flex-col">
              <div className="flex items-center justify-between mb-5">
                <span className={`font-mono text-xs border-2 border-ink px-2 py-0.5 ${t.tint}`}>TIER {t.n}</span>
                <span className="font-mono text-[10px] uppercase tracking-wider text-ink-2">{t.tag}</span>
              </div>
              <h3 className="font-display font-bold text-xl md:text-2xl leading-tight mb-3">{t.name}</h3>
              <p className="text-sm md:text-base text-ink-2 leading-relaxed">{t.body}</p>
            </li>
          ))}
        </ol>
      </div>
    </section>
  );
}

window.MoreData = MoreData;
