/* checker-funnel-v1.css — conversion-funnel UI shared by the SMS and Email
 * scam-checker pages (/resources/sms-scam-checker, /resources/email-scam-checker).
 *
 * Covers: the in-result CTA the engine injects (.result-cta), the scam-alert
 * email-capture band (.alert-capture), the exit-intent modal (.exit-modal),
 * and the FAQ block (.faq). Engine markup lives in the *-checker-engine.src.js
 * files; the capture + exit behaviour lives in checker-funnel-v1.js.
 *
 * /assets/* is cached immutably — change = new filename (…-v2.css), not an edit.
 */

/* ── In-result CTA (rendered by the engine after the verdict) ─────────── */
.result-cta { margin-top: 24px; border-radius: var(--radius-lg); padding: 24px 26px; text-align: center; background: var(--brand-navy); }
.result-cta.rc-high { background: linear-gradient(180deg, #7f1d1d 0%, var(--brand-navy) 70%); }
.result-cta .rc-head { color: #fff; font-size: 1.14rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.result-cta .rc-sub { color: #cbd5e1; font-size: 0.92rem; line-height: 1.55; max-width: 520px; margin: 0 auto 18px; }
.result-cta .rc-btn { display: inline-block; background: var(--brand-blue); color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.result-cta .rc-btn:hover { background: var(--brand-blue-light); }
.result-cta .rc-alt { margin-top: 14px; font-size: 0.84rem; color: #94a3b8; }
.result-cta .rc-alt a { color: #bfdbfe; }
.result-cta .rc-cross { margin-top: 10px; font-size: 0.84rem; color: #94a3b8; }
.result-cta .rc-cross a { color: #bfdbfe; font-weight: 600; }

/* ── Scam-alert email capture band ───────────────────────────────────── */
.alert-capture { margin-top: 40px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--gray-50); padding: 26px 24px; }
.alert-capture .ac-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.alert-capture h2 { font-size: 1.2rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 8px; }
.alert-capture p { font-size: 0.92rem; color: var(--gray-600); margin: 0 auto 16px; max-width: 520px; }
.alert-capture .ac-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.alert-capture .ac-form input { flex: 1; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 0.95rem; color: var(--gray-800); background: #fff; }
.alert-capture .ac-form input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-blue-bg); }
.alert-capture .ac-btn { background: var(--brand-blue); color: #fff; border: none; border-radius: 10px; padding: 12px 20px; font-family: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.alert-capture .ac-btn:hover { background: var(--brand-blue-light); }
.alert-capture .ac-btn[disabled] { opacity: 0.6; cursor: default; }
.alert-capture .ac-msg { min-height: 1.2em; margin: 12px 0 0; font-size: 0.85rem; font-weight: 600; }
.alert-capture .ac-msg.ok { color: #14532d; }
.alert-capture .ac-msg.err { color: var(--brand-red); }
.alert-capture .ac-fine { margin-top: 10px; font-size: 0.76rem; color: var(--gray-400); }
@media (max-width: 480px) { .alert-capture .ac-form { flex-direction: column; } }

/* ── Exit-intent modal ───────────────────────────────────────────────── */
.exit-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); }
.exit-modal[hidden] { display: none; }
.exit-card { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-width: 460px; width: 100%; padding: 32px 28px 28px; text-align: center; }
.exit-card h2 { font-size: 1.35rem; font-weight: 800; color: var(--brand-navy); margin-bottom: 10px; }
.exit-card p { font-size: 0.94rem; color: var(--gray-600); line-height: 1.6; margin: 0 auto 18px; max-width: 380px; }
.exit-card .exit-btn { display: inline-block; background: var(--brand-blue); color: #fff; padding: 13px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.exit-card .exit-btn:hover { background: var(--brand-blue-light); }
.exit-card .exit-or { margin: 16px 0 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-400); }
.exit-card .ac-form { display: flex; gap: 8px; }
.exit-card .ac-form input { flex: 1; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 11px 13px; font-family: inherit; font-size: 0.92rem; color: var(--gray-800); }
.exit-card .ac-form input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-blue-bg); }
.exit-card .ac-btn { background: var(--brand-navy); color: #fff; border: none; border-radius: 10px; padding: 11px 16px; font-family: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.exit-card .ac-msg { min-height: 1em; margin: 10px 0 0; font-size: 0.82rem; font-weight: 600; }
.exit-card .ac-msg.ok { color: #14532d; } .exit-card .ac-msg.err { color: var(--brand-red); }
.exit-close { position: absolute; top: 10px; right: 12px; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--gray-400); cursor: pointer; padding: 4px 8px; }
.exit-close:hover { color: var(--gray-700); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { margin-top: 44px; }
.faq h2 { font-size: 1.4rem; font-weight: 800; color: var(--brand-navy); text-align: center; margin-bottom: 20px; }
.faq details { border: 1px solid var(--gray-200); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: #fff; }
.faq details[open] { border-color: var(--brand-blue-bg); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--gray-900); font-size: 0.97rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-blue); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 16px; color: var(--gray-600); font-size: 0.92rem; line-height: 1.65; }
.faq .faq-a a { color: var(--brand-blue); }
