/* Book a demo page. Mobile first, prefix bd-. */
body:has(.bd-form) .dock { display: none; }

.bd-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 72px); background: radial-gradient(60% 50% at 85% 0%, rgba(132, 28, 220, .09), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(37, 211, 102, .08), transparent 70%); }
.bd-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "extra"; align-items: start; }
.bd-head { grid-area: head; } .bd-card { grid-area: card; } .bd-extra { grid-area: extra; }
.bd-head h1 { margin: 10px 0 12px; font-size: clamp(2rem, 7.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.04em; }
.bd-head .sub { margin: 0; color: var(--ink-2); font-size: clamp(1rem, 2.6vw, 1.15rem); line-height: 1.55; max-width: 52ch; }
.bd-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bd-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); line-height: 1.5; }
.bd-points li svg { width: 20px; height: 20px; color: var(--wa-deep, #128C7E); margin-top: 2px; }
.bd-points b { color: var(--ink); }
.bd-badges { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bd-badges li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); }
.bd-badges span { display: grid; gap: 1px; } .bd-badges small { color: var(--ink-3); font-size: .8rem; }
@media (min-width: 980px) {
  .bd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "head card" "extra card"; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 28px; }
  .bd-card { position: sticky; top: calc(var(--nav-h, 64px) + 16px); }
}

/* The form card */
.bd-card { padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -34px rgba(40, 20, 80, .35); }
.bd-form { display: grid; gap: 22px; }
.bd-progress { height: 4px; border-radius: 4px; background: #EFECE6; overflow: hidden; }
.bd-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand, #841CDC), #25D366); transition: width .35s var(--ease, ease); }
.bd-step { display: grid; gap: 16px; }
.bd-step-h { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.bd-step-h b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink, #0C0B10); color: #fff; font-size: .72rem; letter-spacing: 0; }
.bd-f { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bd-f > label, .bd-f > legend { padding: 0; font-weight: 600; font-size: .92rem; color: var(--ink); }
.bd-f em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.bd-f small { color: var(--ink-3); font-size: .8rem; }
.bd-f input[type="text"], .bd-f input[type="tel"], .bd-f select, .bd-f textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #DAD6CE; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.bd-f textarea { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.bd-f input:focus-visible, .bd-f select:focus-visible, .bd-f textarea:focus-visible { outline: none; border-color: var(--brand, #841CDC); box-shadow: 0 0 0 4px rgba(132, 28, 220, .14); }
.bd-f [aria-invalid="true"] { border-color: #C2331F; }
.bd-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.bd-seg { display: flex; gap: 8px; } .bd-seg--wrap { flex-wrap: wrap; }
.bd-seg label, .bd-chips label { position: relative; display: block; cursor: pointer; }
.bd-seg input, .bd-chips input, .bd-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bd-seg span, .bd-chips span { display: grid; place-items: center; min-height: 46px; padding: 0 16px; border: 1.5px solid #DAD6CE; border-radius: 12px; background: #fff; font-weight: 550; font-size: .95rem; color: var(--ink-2); transition: border-color .2s, background-color .2s, color .2s; text-align: center; }
.bd-yn .bd-seg label { flex: 1; }
.bd-seg input:checked + span, .bd-chips input:checked + span { border-color: var(--ink, #0C0B10); background: var(--ink, #0C0B10); color: #fff; }
.bd-seg input:focus-visible + span, .bd-chips input:focus-visible + span, .bd-consent input:focus-visible + span::before { outline: 3px solid rgba(132, 28, 220, .35); outline-offset: 2px; }
.bd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-chips span { min-height: 42px; padding: 0 14px; font-size: .88rem; }
.bd-consent label { position: relative; display: block; padding-left: 34px; cursor: pointer; font-weight: 400; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.bd-consent label > span { display: block; }
.bd-consent label > span::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border: 1.5px solid #DAD6CE; border-radius: 6px; background: #fff; transition: background-color .2s, border-color .2s; }
.bd-consent input:checked + span::before { border-color: var(--brand, #841CDC); background: var(--brand, #841CDC) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.bd-consent input:focus-visible + span::before { outline: 3px solid rgba(132, 28, 220, .35); outline-offset: 2px; }
.bd-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.bd-err { margin: 0; color: #B42318; font-size: .84rem; line-height: 1.35; }
/* once the visitor has seen errors, keep the space reserved so the layout never jumps under their finger */
.bd-tried .bd-f .bd-err[hidden] { display: block; visibility: hidden; min-height: 1.15em; }
.bd-err--form { padding: 12px 14px; border-radius: 12px; background: #FEF3F2; border: 1px solid #FECDCA; }
.bd-submit { width: 100%; min-height: 56px; font-size: 1.05rem; justify-content: center; }
.bd-submit[disabled] { opacity: .75; cursor: progress; }
.bd-fine { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--ink-3); font-size: .8rem; line-height: 1.45; }
.bd-fine svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Success and fallback */
.bd-ok, .bd-fallback { display: grid; gap: 14px; justify-items: start; outline: none; }
.bd-ok h2, .bd-fallback h2 { margin: 0; font-size: clamp(1.4rem, 5vw, 1.9rem); letter-spacing: -.03em; }
.bd-ok p, .bd-fallback p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.bd-ok-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #E3F7EA; color: #128C4A; }
.bd-ok-ic svg { width: 26px; height: 26px; }
.bd-next { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 12px; width: 100%; counter-reset: n; }
.bd-next li { position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: 14px; counter-increment: n; }
.bd-next li::before { content: counter(n); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; }
.bd-next small { color: var(--ink-3); }

/* Logos */
.bd-logos { padding: 8px 0 0; }
.bd-logos .mono { margin: 0 0 14px; text-align: center; color: var(--ink-3); }
.bd-logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.bd-logo-grid li { display: grid; place-items: center; height: 84px; padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.bd-logo-grid img { max-width: 100%; max-height: 44px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }
.bd-logo-grid li.dark { background: #111; } .bd-logo-grid li.inv { background: #111; }
.bd-logo-grid li.dark img, .bd-logo-grid li.inv img { filter: none; opacity: 1; }
@media (min-width: 720px) { .bd-logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Results */
.bd-rev { margin: 0 0 16px; display: grid; gap: 14px; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.bd-rev-meta { display: grid; gap: 2px; align-content: start; } .bd-rev-meta small { color: var(--ink-3); }
.bd-rev-src { margin-top: 8px; width: max-content; padding: 4px 10px; border-radius: 999px; background: #E9F5E3; color: #2F6B1B; font-weight: 600; font-size: .8rem; text-decoration: none; }
.bd-rev-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: .88rem; } .bd-rev-top span { display: inline-flex; gap: 2px; color: #111; }
.bd-rev blockquote { margin: 12px 0 0; line-height: 1.65; color: var(--ink-2); }
@media (min-width: 900px) { .bd-rev { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; } }
.bd-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.bd-res { margin: 0; display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid #D5E8CC; border-radius: 24px; background: linear-gradient(160deg, #F7FCF4, #E9F5E3); }
.bd-big { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 600; letter-spacing: -.06em; line-height: .95; }
.bd-res .mono { margin: 0; color: var(--ink-3); }
.bd-res blockquote { margin: 0; line-height: 1.55; font-size: .98rem; }
.bd-res figcaption { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: .9rem; } .bd-res figcaption small { display: block; color: var(--ink-3); }
@media (min-width: 640px) { .bd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .bd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bd-cta-line { margin: 26px 0 0; text-align: center; }

/* How it works */
.bd-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bd-how li { display: grid; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.bd-how h3 { margin: 0; font-size: 1.1rem; } .bd-how p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.bd-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
@media (min-width: 800px) { .bd-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Motion: micro-interactions and the success moment ---------- */
.bd-card { animation: bdRise .7s var(--ease, cubic-bezier(.2, .8, .2, 1)) both; }
@keyframes bdRise { from { opacity: 0; transform: translateY(18px); } }
.bd-progress i { position: relative; }
.bd-progress i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); animation: bdShine 2.2s ease-in-out infinite; }
@keyframes bdShine { to { transform: translateX(100%); } }
.bd-progress.is-full i { background: #25D366; }

/* fields: a green tick when valid, a shake when wrong */
.bd-f input[type="text"], .bd-f input[type="tel"], .bd-f select { background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.bd-f.is-valid input[type="text"], .bd-f.is-valid input[type="tel"] { padding-right: 42px; border-color: #7BCB95; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325A55A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E"); animation: bdTick .35s var(--ease, ease) both; }
.bd-f.is-valid select { border-color: #7BCB95; }
@keyframes bdTick { from { background-size: 0; } to { background-size: 18px; } }
.bd-f.is-shake { animation: bdShake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes bdShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bd-err:not([hidden]) { animation: bdErrIn .25s ease both; }
@keyframes bdErrIn { from { opacity: 0; transform: translateY(-4px); } }

/* choices: pop when selected, press feedback */
.bd-seg span, .bd-chips span { transition: border-color .2s, background-color .2s, color .2s, transform .15s var(--ease, ease); }
.bd-seg label:active span, .bd-chips label:active span { transform: scale(.96); }
.bd-seg input:checked + span, .bd-chips input:checked + span { animation: bdPop .32s var(--ease, ease); }
@keyframes bdPop { 40% { transform: scale(1.06); } }
@media (hover: hover) { .bd-seg label:hover span, .bd-chips label:hover span { border-color: var(--ink, #0C0B10); } }
.bd-consent input:checked + span::before { animation: bdPop .32s var(--ease, ease); }
.bd-store:not([hidden]) { animation: bdDrop .35s var(--ease, ease) both; }
@keyframes bdDrop { from { opacity: 0; transform: translateY(-8px); } }

/* steps: the number turns into a tick when the step is complete */
.bd-step-h b { transition: background-color .3s, transform .3s var(--ease, ease); }
.bd-step.is-done .bd-step-h b { background: #25A55A; font-size: 0; transform: scale(1.1); }
.bd-step.is-done .bd-step-h b::after { content: '\2713'; font-size: .8rem; }

/* the submit button: hover nudge, ripple, ready glow, spinner */
.bd-submit { position: relative; overflow: hidden; transition: transform .15s var(--ease, ease), box-shadow .3s; }
.bd-submit svg { transition: transform .25s var(--ease, ease); }
@media (hover: hover) { .bd-submit:hover svg { transform: translateX(5px); } }
.bd-submit:active { transform: scale(.985); }
.bd-submit.is-ready { animation: bdGlow 2.2s ease-in-out infinite; }
@keyframes bdGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(132, 28, 220, .35); } 50% { box-shadow: 0 0 0 9px rgba(132, 28, 220, 0); } }
.bd-ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255,255,255,.45); pointer-events: none; animation: bdRipple .6s ease-out forwards; }
@keyframes bdRipple { to { transform: scale(26); opacity: 0; } }
.bd-submit.is-busy svg { display: none; }
.bd-submit.is-busy::after { content: ''; width: 18px; height: 18px; margin-left: 10px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: bdSpin .7s linear infinite; }
@keyframes bdSpin { to { transform: rotate(360deg); } }

/* the form leaves, the success card arrives */
.bd-form.is-leaving { animation: bdLeave .3s ease forwards; pointer-events: none; }
@keyframes bdLeave { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
.bd-ok { position: relative; }
.bd-ok.is-in > * { animation: bdIn .55s var(--ease, cubic-bezier(.2, .8, .2, 1)) both; }
.bd-ok.is-in > :nth-child(3) { animation-delay: .5s; }
.bd-ok.is-in > :nth-child(4) { animation-delay: .75s; }
.bd-ok.is-in > :nth-child(5), .bd-ok.is-in > :nth-child(6) { animation-delay: .95s; }
.bd-ok.is-in .bd-next li { animation: bdIn .5s var(--ease, ease) both; }
.bd-ok.is-in .bd-next li:nth-child(1) { animation-delay: 1.1s; } .bd-ok.is-in .bd-next li:nth-child(2) { animation-delay: 1.25s; } .bd-ok.is-in .bd-next li:nth-child(3) { animation-delay: 1.4s; }
.bd-ok.is-in > .btn { animation-delay: 1.55s; }
@keyframes bdIn { from { opacity: 0; transform: translateY(14px); } }
.bd-ok-ic { position: relative; }
.bd-ok-ic svg { width: 52px; height: 52px; overflow: visible; }
.bd-ok-ic { background: none; }
.bd-ok-ring { stroke-dasharray: 151; stroke-dashoffset: 151; }
.bd-ok-tick { stroke-dasharray: 40; stroke-dashoffset: 40; }
.bd-ok.is-in .bd-ok-ring { animation: bdDraw .6s ease-out .05s forwards; }
.bd-ok.is-in .bd-ok-tick { animation: bdDraw .4s ease-out .55s forwards; }
@keyframes bdDraw { to { stroke-dashoffset: 0; } }
.bd-ok-ic { color: #128C4A; }
.bd-ok.is-in .bd-ok-ic::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; background: rgba(37, 211, 102, .28); animation: bdPulse 1.1s ease-out .6s both; }
@keyframes bdPulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.bd-notif { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 30px -18px rgba(20, 10, 40, .35); }
.bd-notif > span:nth-child(2) { display: grid; gap: 1px; flex: 1; min-width: 0; } .bd-notif small { color: var(--ink-3); } .bd-notif time { color: var(--ink-3); font-size: .75rem; }
.bd-notif-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #E3F7EA; }
.bd-ok.is-in .bd-notif { animation: bdNotif .7s cubic-bezier(.2, 1.2, .3, 1) .75s both; }
@keyframes bdNotif { from { opacity: 0; transform: translateY(-26px) scale(.94); } }
.bd-confetti { position: absolute; left: 50%; top: 26px; width: 0; height: 0; pointer-events: none; }
.bd-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--c); opacity: 0; animation: bdConfetti 1.5s cubic-bezier(.15, .7, .3, 1) var(--d, 0s) forwards; }
@keyframes bdConfetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* results and logos: small lifts */
.bd-res, .bd-how li, .bd-badges li { transition: transform .35s var(--ease, ease), box-shadow .35s; }
@media (hover: hover) {
  .bd-res:hover, .bd-how li:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -22px rgba(40, 20, 80, .35); }
  .bd-badges li:hover { transform: translateY(-2px); }
  .bd-logo-grid img { transition: filter .3s, opacity .3s, transform .3s var(--ease, ease); }
  .bd-logo-grid li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .bd-card, .bd-progress i::after, .bd-f.is-valid input, .bd-f.is-shake, .bd-err, .bd-seg input:checked + span, .bd-chips input:checked + span, .bd-store, .bd-submit.is-ready, .bd-ripple, .bd-form.is-leaving,
  .bd-ok.is-in > *, .bd-ok.is-in .bd-next li, .bd-ok.is-in .bd-ok-ic::before, .bd-ok.is-in .bd-notif { animation: none !important; }
  .bd-ok-ring, .bd-ok-tick { stroke-dashoffset: 0; }
  .bd-confetti { display: none; }
}

/* validation helpers */
.bd-req { color: #C2331F; font-weight: 700; }
.bd-count { justify-self: end; color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; } .bd-count.is-near { color: #B45309; font-weight: 600; }
