<div class="mx-auto max-w-6xl"><div class="mb-7"><h2 class="font-display text-2xl font-extrabold">Care Packages</h2><p class="mt-2 max-w-2xl text-sm leading-6 text-slate-500">Recurring home-care plans for families that need more than a single visit.</p></div><div class="grid gap-5 md:grid-cols-2 xl:grid-cols-3"><?php foreach($rows as $p): $included=json_decode($p['included_services'] ?? '[]',true) ?: []; ?><div class="flex flex-col rounded-2xl border border-slate-100 bg-white p-6 shadow-card"><span class="text-xs font-bold uppercase tracking-[.15em] text-teal-600"><?= esc(str_replace('_',' ',$p['billing_period'])) ?></span><h3 class="mt-2 font-display text-xl font-extrabold"><?= esc($p['name']) ?></h3><p class="mt-3 flex-1 text-sm leading-6 text-slate-500"><?= esc($p['description']) ?></p><div class="mt-5 font-display text-3xl font-extrabold"><?= money($p['price']) ?></div><div class="mt-5 space-y-2"><?php foreach($included as $item): ?><div class="flex gap-2 text-xs text-slate-500"><i data-lucide="check" class="h-4 w-4 text-teal-600"></i><?= esc($item) ?></div><?php endforeach; ?></div><form action="/patient/packages/<?= $p['id'] ?>/subscribe" method="post" class="mt-6"><?= csrf_field() ?><button class="w-full rounded-xl bg-teal-600 px-4 py-3 text-sm font-extrabold text-white">Choose plan</button></form></div><?php endforeach; ?></div></div>
