/* ============================================================================
   Email capture (Beehiiv newsletter funnel)
   Shared across all pages. Reuses the design tokens defined in each page's
   :root (--bg-card, --accent, --border, --text-muted, --success, fonts) and
   the existing .btn / .btn-primary button styles.
   ============================================================================ */

.email-capture {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.email-capture form {
    width: 100%;
}

.email-capture-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.email-capture input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 1rem;
    color: var(--text-main, #fff);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border, #1f2937);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-capture input[type="email"]::placeholder {
    color: #6b7280;
}

.email-capture input[type="email"]:focus {
    outline: none;
    border-color: var(--accent, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.email-capture .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 14px 24px;
    font-size: 1rem;
}

/* Honeypot — hidden from humans, ignored by screen readers, tempting to bots. */
.email-capture .ec-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.email-capture-msg {
    min-height: 1.2em;
    margin: 10px 2px 0;
    font-size: 0.875rem;
    color: var(--text-muted, #9ca3af);
}

.email-capture-msg.is-success {
    color: var(--success, #10b981);
}

.email-capture-msg.is-error {
    color: #f87171;
}

/* ── Hero band: full-width section under the hero ─────────────────────────── */
.email-band {
    padding: 56px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), transparent);
    text-align: center;
}

.email-band h2 {
    font-size: 1.875rem;
    margin-bottom: 10px;
}

.email-band p.email-band-sub {
    max-width: 540px;
    margin: 0 auto 24px;
    font-size: 1.0625rem;
}

/* ── Compact variant: footer / inline ────────────────────────────────────── */
.email-capture--compact {
    max-width: 460px;
    margin-top: 8px;
}

.email-capture--compact .btn {
    padding: 12px 18px;
    font-size: 0.9375rem;
}

.email-footer-block {
    margin: 8px auto 28px;
    text-align: center;
}

.email-footer-block h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-main, #fff);
}

.email-footer-block p.email-footer-sub {
    font-size: 0.875rem;
    margin-bottom: 14px;
}

@media (max-width: 540px) {
    .email-capture-row {
        flex-direction: column;
    }
    .email-capture .btn {
        width: 100%;
    }
}
