/* ============================================
   Lead generation: announcement bar, lead magnet, ROI calculator, proposal wizard
   ============================================ */

/* ---------- Announcement bar ---------- */
/* .announce {
    position: relative; z-index: 1001;
    background: linear-gradient(90deg, #4338ca, #7c3aed, #db2777);
    color: white; font-size: 0.88rem;
}
.announce[hidden] { display: none; }
.announce-inner {
    max-width: 1300px; margin: 0 auto; padding: 9px 56px 9px 24px;
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
}
.announce-badge { padding: 2px 9px; border-radius: 60px; background: rgba(255, 255, 255, 0.2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.announce-text strong { font-weight: 700; }
.announce-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 60px; background: white; color: #4c1d95; white-space: nowrap; }
.announce-link i { font-size: 0.75rem; transition: transform 0.2s; }
.announce-link:hover i { transform: translateX(3px); }
.announce-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 8px; border: none;
    background: transparent; color: rgba(255, 255, 255, 0.85); cursor: pointer;
}
.announce-close:hover { background: rgba(255, 255, 255, 0.15); color: white; } */

/* ---------- Lead magnet: book cover ---------- */
.lm-book {
    position: relative; width: 190px; aspect-ratio: 3 / 4; padding: 22px 18px;
    border-radius: 6px 14px 14px 6px;
    background: linear-gradient(150deg, #4f46e5, #7c3aed 55%, #db2777);
    box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.25), 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex; flex-direction: column; color: white;
    transform: rotate(-5deg);
}
.lm-book.sm { width: 130px; padding: 16px 13px; }
.lm-book-tag { align-self: flex-start; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.2); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; margin-bottom: 14px; }
.lm-book b { font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.lm-book.sm b { font-size: 0.95rem; }
.lm-book small { margin-top: 8px; font-size: 0.78rem; opacity: 0.85; }
.lm-book-icons { margin-top: auto; display: flex; gap: 8px; opacity: 0.85; }
.lm-book-icons i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* ---------- Lead magnet form ---------- */
.lm-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-fields[hidden] { display: none; }
.lm-fields input {
    flex: 1 1 160px; min-width: 0; padding: 13px 16px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.3);
    color: white; font-family: inherit; font-size: 0.92rem; outline: none;
}
.lm-fields input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
.lm-fields .btn { flex: 1 1 100%; padding: 13px 20px; }
.lm-error { display: block; color: #f87171; font-size: 0.78rem; margin-top: 6px; }
.lm-error[hidden] { display: none; }
.lm-note { color: var(--text-mute); font-size: 0.75rem; margin-top: 10px; }
.lm-note[hidden] { display: none; }
.lm-success { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #d1fae5; font-size: 0.92rem; }
.lm-success[hidden] { display: none; }
.lm-success i { font-size: 1.4rem; color: #34d399; }
.lm-success strong { color: white; }

/* ---------- Lead magnet popup ---------- */
.lm-overlay {
    position: fixed; inset: 0; z-index: 1250;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    animation: iqFade 0.25s ease;
}
.lm-overlay[hidden] { display: none; }
.lm-open { overflow: hidden; }
.lm-dialog {
    position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 40px); overflow-y: auto;
    border-radius: 26px; background: linear-gradient(180deg, #181d2a, #10141c);
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: iqUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lm-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3); color: var(--text-soft); cursor: pointer;
}
.lm-close:hover { color: white; }
.lm-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.lm-cover {
    display: flex; align-items: center; justify-content: center; padding: 40px 20px;
    background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.35), transparent 65%), rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-soft);
}
.lm-body { padding: 38px 34px 32px; }
.lm-body .eyebrow { margin-bottom: 12px; }
.lm-body h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 16px; }
.lm-points { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.lm-points li { display: flex; gap: 10px; color: var(--text-soft); font-size: 0.92rem; }
.lm-points i { color: #34d399; margin-top: 4px; font-size: 0.8rem; }

/* ---------- Inline lead magnet ---------- */
.lm-inline {
    display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
    max-width: 960px; margin: 0 auto; padding: 32px 40px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(219, 39, 119, 0.12));
    border: 1px solid rgba(139, 92, 246, 0.35);
}
.lm-inline-cover { padding: 6px 10px; }
.lm-inline-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.lm-inline-body > p { color: var(--text-soft); margin-bottom: 18px; font-size: 0.95rem; }
.lm-inline .lm-fields .btn { flex: 0 0 auto; }

/* ---------- ROI calculator ---------- */
.roi {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    max-width: 1080px; margin: 0 auto;
    border-radius: 28px; overflow: hidden;
    border: 1px solid var(--border); background: rgba(18, 22, 33, 0.75); backdrop-filter: blur(14px);
}
.roi-inputs { padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.roi-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.roi-label label { color: #dbe3ef; font-weight: 600; font-size: 0.95rem; }
.roi-label output { font-size: 1.3rem; font-weight: 800; color: white; min-width: 48px; text-align: right; }
.roi-field small { display: block; color: var(--text-mute); font-size: 0.78rem; margin-top: 8px; }
.roi input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6) 0 / var(--p, 50%) 100% no-repeat, rgba(255, 255, 255, 0.1);
}
.roi input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
    background: white; border: 4px solid #8b5cf6; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.6);
}
.roi input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: white; border: 4px solid #8b5cf6; }
.roi input[type="range"]:focus-visible { outline: 2px solid #a78bfa; outline-offset: 6px; }
.roi-cost { display: flex; gap: 10px; }
.roi-cost select, .roi-cost input {
    padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.3); color: white; font-family: inherit; font-size: 1rem; outline: none;
}
.roi-cost select { flex: 0 0 120px; cursor: pointer; }
.roi-cost select option { background: #12161f; }
.roi-cost input { flex: 1; min-width: 0; font-weight: 700; }
.roi-cost input:focus, .roi-cost select:focus { border-color: #8b5cf6; }
.roi-assume { color: var(--text-mute); font-size: 0.8rem; }
.roi-assume i { color: #a78bfa; margin-right: 4px; }

.roi-result {
    padding: 36px; display: flex; flex-direction: column; justify-content: center; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.22), transparent 60%), linear-gradient(180deg, rgba(16, 185, 129, 0.06), rgba(59, 130, 246, 0.06));
    border-left: 1px solid var(--border);
}
.roi-main span, .roi-main em { display: block; color: var(--text-soft); font-style: normal; }
.roi-main strong {
    display: block; margin: 6px 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.roi-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0; }
.roi-split div { padding: 14px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); }
.roi-split strong { display: block; font-size: 1.25rem; font-weight: 800; color: white; font-variant-numeric: tabular-nums; }
.roi-split span { color: var(--text-mute); font-size: 0.75rem; }
.roi-cta { width: 100%; }
.roi-cta-note { color: var(--text-mute); font-size: 0.78rem; margin-top: 10px; }

/* ---------- Proposal wizard ---------- */
.wizard { position: relative; }
.wz-head[hidden], .wz-success[hidden], #wizard-form[hidden] { display: none; }
.wz-steps { list-style: none; display: flex; gap: 8px; margin: 20px 0 12px; }
.wz-steps li { display: flex; align-items: center; gap: 8px; color: var(--text-mute); font-size: 0.85rem; font-weight: 600; flex: 1; }
.wz-steps span {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); font-size: 0.78rem;
}
.wz-steps li.active { color: white; }
.wz-steps li.active span { background: var(--gradient-primary); border-color: transparent; color: white; }
.wz-steps li.done span { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.5); color: #34d399; }
.wz-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); margin-bottom: 24px; overflow: hidden; }
.wz-bar i { display: block; height: 100%; width: 33%; background: var(--gradient-primary); transition: width 0.4s ease; }

.wz-step { display: none; border: none; padding: 0; margin: 0; min-width: 0; }
.wz-step.active { display: block; animation: scIn 0.35s ease; }
@keyframes scIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wz-step legend, .wz-q { font-weight: 700; font-size: 1.05rem; color: white; margin-bottom: 14px; padding: 0; }
.wz-step legend small { color: var(--text-mute); font-weight: 500; font-size: 0.82rem; margin-left: 6px; }
.wz-q { display: block; margin-top: 22px; }

.wz-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-cards label, .wz-pills label { cursor: pointer; }
.wz-cards input, .wz-pills input { position: absolute; opacity: 0; pointer-events: none; }
.wz-cards span {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 16px 14px; border-radius: 16px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.wz-cards span:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); }
.wz-cards i { font-size: 1.2rem; color: #a5b4fc; margin-bottom: 6px; }
.wz-cards b { font-size: 0.92rem; color: white; }
.wz-cards small { font-size: 0.75rem; color: var(--text-mute); }
.wz-cards input:checked + span { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.16); box-shadow: 0 0 0 1px #8b5cf6 inset; }
.wz-cards input:checked + span i { color: #c4b5fd; }
.wz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-pills span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 60px;
    border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft); font-size: 0.9rem; font-weight: 500;
    transition: all 0.2s;
}
.wz-pills span:hover { border-color: rgba(139, 92, 246, 0.4); color: white; }
.wz-pills input:checked + span { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.2); color: white; }
.wz-cards input:focus-visible + span, .wz-pills input:focus-visible + span { outline: 2px solid #a78bfa; outline-offset: 2px; }
.wz-error { display: block; color: #f87171; font-size: 0.82rem; margin-top: 12px; }
.wz-error[hidden] { display: none; }
.form-control.is-invalid { border-color: #ef4444; }

.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.wz-nav .btn[hidden] { display: none; }
#wz-next, #wz-submit { margin-left: auto; }

.wz-success { text-align: center; padding: 10px 0; animation: scIn 0.4s ease; }
.wz-success h3 { font-size: 1.4rem; margin-bottom: 6px; }
.wz-success > p { color: var(--text-soft); margin-bottom: 16px; }
.wz-next-steps { list-style: none; counter-reset: s; display: grid; gap: 10px; text-align: left; max-width: 440px; margin: 0 auto 20px; }
.wz-next-steps li {
    counter-increment: s; position: relative; padding: 12px 14px 12px 50px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-soft); color: var(--text-soft); font-size: 0.9rem;
}
.wz-next-steps li::before {
    content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; border-radius: 50%; background: var(--gradient-primary); color: white;
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700;
}
.wz-next-steps b { color: white; }
.wz-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wz-summary span { padding: 6px 12px; border-radius: 60px; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); color: #e9d5ff; font-size: 0.8rem; }
.wz-summary i { color: #c4b5fd; margin-right: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .roi { grid-template-columns: 1fr; }
    .roi-result { border-left: none; border-top: 1px solid var(--border); }
    .wz-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .announce { font-size: 0.8rem; }
    .announce-inner { padding: 8px 44px 8px 14px; gap: 6px 10px; }
    .announce-badge { display: none; }
    .lm-overlay { align-items: flex-end; padding: 0; }
    .lm-dialog { border-radius: 22px 22px 0 0; max-height: 92vh; }
    .lm-grid { grid-template-columns: 1fr; }
    .lm-cover { padding: 26px 20px 18px; border-right: none; border-bottom: 1px solid var(--border-soft); }
    .lm-cover .lm-book { width: 120px; padding: 14px 12px; }
    .lm-cover .lm-book b { font-size: 0.9rem; }
    .lm-cover .lm-book small { display: none; }
    .lm-body { padding: 22px 20px 24px; }
    .lm-body h3 { font-size: 1.3rem; }
    .lm-fields input { font-size: 16px; }
    .lm-inline { grid-template-columns: 1fr; padding: 26px 20px; gap: 18px; text-align: center; }
    .lm-inline-cover { display: flex; justify-content: center; }
    .lm-inline .lm-fields .btn { flex: 1 1 100%; }
    .roi { border-radius: 22px; }
    .roi-inputs, .roi-result { padding: 24px 18px; }
    .roi-split strong { font-size: 1.05rem; }
    .wz-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wz-cards span { padding: 12px 10px; }
    .wz-steps li { font-size: 0.78rem; }
    .wz-nav .btn { flex: 1; }
}
