<?php

declare(strict_types=1);

$teaser = is_array($teaser ?? null) ? $teaser : [];
?>
<section class="myron-quiz__gate">
  <h2 class="myron-quiz__result-title"><?= myronEscape((string) ($teaser['title'] ?? 'Your result is ready')) ?></h2>
  <p><?= myronEscape((string) ($teaser['description'] ?? 'Enter your email to unlock the full result.')) ?></p>
  <?php require __DIR__ . '/lead-capture.php'; ?>
</section>
