/* ─── Trigger card (inline teaser) ─── */
.bvf-trigger-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 24px;
}

.bvf-eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.bvf-trigger-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(17px, 2vw, 20px);
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 4px;
}

.bvf-trigger-sub {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    max-width: 460px;
}

.bvf-btn {
    font-family: var(--sans);
    border: 0;
    cursor: pointer;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .15s, transform .12s;
}

.bvf-btn-open {
    background: var(--accent);
    color: #fff;
    padding: 12px 22px;
    font-size: 13.5px;
    flex-shrink: 0;
}

.bvf-btn-open:hover {
    background: #6b1218;
    transform: translateY(-1px);
}

/* ─── Modal chrome ─── */
.bvf-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 13, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 300;
}

.bvf-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bvf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(.96);
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    background: var(--surface);
    border-radius: 20px;
    z-index: 301;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.32, .72, .4, 1), opacity .2s;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.bvf-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.bvf-modal-hd {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
    flex-shrink: 0;
}

.bvf-modal-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

.bvf-stepper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bvf-stepper .bvf-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: background .2s, width .2s;
}

.bvf-stepper .bvf-step-dot.is-active {
    background: var(--ink);
    width: 20px;
    border-radius: 100px;
}

.bvf-stepper .bvf-step-dot.is-done {
    background: var(--accent);
}

.bvf-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 100px;
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background .15s;
    flex-shrink: 0;
}

.bvf-close:hover {
    background: var(--line);
}

.bvf-close svg {
    width: 14px;
    height: 14px;
}

.bvf-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 24px 4px;
    -webkit-overflow-scrolling: touch;
}

/* ─── Question panes ─── */
.bvf-pane {
    display: none;
}

.bvf-pane.bvf-pane-active {
    display: block;
    animation: bvfFadeUp .25s ease both;
}

@keyframes bvfFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bvf-q-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.bvf-q-title {
    font-family: var(--display);
    font-size: clamp(19px, 2.4vw, 23px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 6px;
}

.bvf-q-hint {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

/* ─── Budget slider ─── */
.bvf-budget-value {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}

.bvf-budget-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 100px;
    background: var(--line);
    outline: none;
    margin: 10px 0;
}

.bvf-budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 100px;
    background: #fff;
    border: 3px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.bvf-budget-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 100px;
    background: #fff;
    border: 3px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.bvf-budget-ticks {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    margin-top: 12px;
    margin-bottom: 22px;
}

/* ─── Option cards ─── */
.bvf-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.bvf-options-grid {
    display: grid;
    gap: 10px;
}

.bvf-options-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bvf-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .12s, background .12s;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    width: 100%;
}

.bvf-opt:hover {
    border-color: var(--ink-soft);
    background: var(--bg-alt);
}

.bvf-opt.is-selected {
    border-color: var(--accent);
    background: rgba(139, 24, 32, .06);
    color: var(--accent);
}

.bvf-opt-tick {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    transition: all .12s;
}

.bvf-opt.is-selected .bvf-opt-tick {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.bvf-opt.is-selected .bvf-opt-tick::after {
    content: "\2713";
    font-size: 10px;
    font-weight: 700;
}

.bvf-opt-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.bvf-opt-sub {
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 500;
}

.bvf-opt.is-selected .bvf-opt-sub {
    color: var(--accent);
}

/* ─── Nav row ─── */
.bvf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 0 20px;
}

.bvf-btn-back {
    background: transparent;
    color: var(--ink-soft);
    padding: 10px 14px;
}

.bvf-btn-back:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

.bvf-btn-next,
.bvf-btn-go {
    background: var(--ink);
    color: #fff;
    padding: 12px 22px;
    font-size: 13.5px;
}

.bvf-btn-next:hover,
.bvf-btn-go:hover {
    background: #222;
    transform: translateY(-1px);
}

.bvf-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ─── Loading ─── */
.bvf-loading {
    padding: 60px 24px;
    text-align: center;
}

.bvf-loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.bvf-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: bvfBlink 1.1s ease-in-out infinite;
}

.bvf-loading-dots span:nth-child(2) { animation-delay: .15s; }
.bvf-loading-dots span:nth-child(3) { animation-delay: .3s; }

@keyframes bvfBlink {
    0%, 80%, 100% { opacity: .25; transform: scale(.8); }
    40% { opacity: 1; transform: scale(1); }
}

.bvf-loading-text {
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ─── Results ─── */
.bvf-results {
    padding: 20px 24px 24px;
    overflow-y: auto;
}

.bvf-results-title {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.bvf-results-sub {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 18px;
}

.bvf-result {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    transition: border-color .15s, transform .15s;
}

.bvf-result:hover {
    border-color: var(--ink-soft);
    transform: translateY(-2px);
}

.bvf-result.is-top {
    border-color: var(--accent);
    background: rgba(139, 24, 32, .04);
}

.bvf-result-rank {
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--ink);
    color: #fff;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.bvf-result.is-top .bvf-result-rank {
    background: var(--accent);
}

.bvf-result-score {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-faint);
    background: var(--bg-alt);
    padding: 3px 8px;
    border-radius: 100px;
}

.bvf-result-score b {
    color: var(--accent);
    font-weight: 700;
}

.bvf-result-name {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 6px;
    padding-right: 60px;
}

.bvf-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.bvf-result-pill {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 600;
    background: var(--bg-alt);
    color: var(--ink-soft);
}

.bvf-result-reason {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 10px;
}

.bvf-result-reason b {
    color: var(--ink);
    font-weight: 700;
}

.bvf-result-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.bvf-result-price {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.bvf-result-cta {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .12s;
}

.bvf-result-cta:hover {
    background: rgba(139, 24, 32, .08);
}

.bvf-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
}

.bvf-restart {
    background: transparent;
    border: 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
}

body.bvf-lock {
    overflow: hidden;
}

/* ─── Mobile: full-screen sheet ─── */
@media (max-width: 600px) {
    .bvf-trigger-card {
        flex-direction: column;
        align-items: stretch;
    }

    .bvf-btn-open {
        justify-content: center;
    }

    .bvf-modal {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
        transform: translate(0, 100%);
    }

    .bvf-modal.is-open {
        transform: translate(0, 0);
    }

    .bvf-options-grid-2 {
        grid-template-columns: 1fr;
    }
}
