<!doctype html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Assinatura</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body{font-family:Arial;padding:20px;background:#f6f7fb}
.card{max-width:520px;margin:0 auto;background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
button{padding:10px 16px;background:#16a34a;color:#fff;border:0;border-radius:6px}
</style>
</head>
<body>
<div class="card">
<h2>Assinatura do Plano</h2>
<?php if(!empty($data)): ?>
<p>Plano: <?= htmlspecialchars($data['name'] ?? '') ?></p>
<p>Status atual: <?= htmlspecialchars($data['status'] ?? '') ?></p>
<p>Valor: R$ <?= number_format((float)($data['price'] ?? 0), 2, ',', '.') ?></p>
<form method="post" action="/plano/assinatura/criar">
<button type="submit">Assinar</button>
</form>
<?php else: ?>
<p>Defina um plano na página de empresa.</p>
<?php endif; ?>
<p><a href="/plano/status">Ver status</a></p>
</div>
</body>
</html>
