<?php $dark = $s['dark'] === '1' ?>
<div class="relative overflow-hidden rounded-[var(--radius-panel)] px-6 py-14 sm:px-14 sm:py-16 <?= $dark ? 'bg-ink text-white' : 'bg-soft text-ink' ?>">
    <?php if ($dark): ?><div class="absolute -right-24 -bottom-32 size-96 rounded-full bg-accent-600/30 blur-[100px]"></div><?php endif ?>
    <div class="relative grid items-center gap-8 lg:grid-cols-2">
        <div>
            <h2 class="font-display text-3xl <?= heading_weight_class() ?> tracking-tight sm:text-4xl"><?= e($s['title']) ?></h2>
            <?php if ($s['text']): ?><p class="mt-3 <?= $dark ? 'text-white/70' : 'text-zinc-600' ?>"><?= e($s['text']) ?></p><?php endif ?>
        </div>
        <form method="post" action="<?= url('bulten') ?>" data-ajax class="flex flex-col gap-3 sm:flex-row">
            <?= csrf_field() ?>
            <input name="email" type="email" required placeholder="E-posta adresiniz" class="input h-14 flex-1 <?= $dark ? 'border-white/15 bg-white/10 text-white placeholder:text-white/40 focus:border-white' : '' ?>">
            <button class="btn h-14 px-8 <?= $dark ? 'bg-white text-ink hover:bg-zinc-100' : 'bg-ink text-white hover:opacity-90' ?>"><?= e($s['button_text'] ?: 'Abone ol') ?></button>
        </form>
    </div>
</div>
