/* /build/ 6 Nov 2026 owner review: B02 the four steps come back each time, with drawn icons; B04 the animated cost header. */

/* ---- B02: the steps replay (the script takes .is-in off when they are fully out of view); the icons draw one step after another, then settle */
.bf-step:nth-child(1) { --sd: 500; } .bf-step:nth-child(2) { --sd: 900; } .bf-step:nth-child(3) { --sd: 1300; } .bf-step:nth-child(4) { --sd: 1700; }
.bf-with .bf-glyph { stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .bf-with .bf-glyph.kit-armed.is-in [pathLength] { animation-delay: calc(var(--dl, 0) * 1ms + var(--sd, 0) * 1ms); animation-duration: calc(var(--draw, 600ms) + 300ms); }
  .bf-with .bf-glyph.kit-armed { transform: scale(.82); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--sd, 0) * 1ms); }
  .bf-with .bf-glyph.kit-armed.is-in { transform: none; }
}

/* ---- B04: the cost header (owner 6 Nov: far more beautiful; no top line; the number visibly falls). A clean UI piece on frosted glass over a soft colour wash. ---- */
.bf-cost { background: #fff; overflow: hidden; --bf-k: 1; }
.bf-cost::before, .bf-cost::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .55; }
.bf-cost::before { width: 520px; height: 520px; right: -120px; top: 40px; background: color-mix(in srgb, var(--blue) 30%, #fff); }
.bf-cost::after { width: 420px; height: 420px; right: 260px; top: 220px; background: color-mix(in srgb, var(--c-ind-wash, #ffd9c7) 80%, #fff); }
.bf-cost .wrap { position: relative; z-index: 1; }
.bf-cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; margin-bottom: 64px; }
.bf-cost-l1 { max-width: 14em; }
.bf-cost-l2 { margin-top: 24px; font-size: 21px; line-height: 30px; color: var(--ink); max-width: 24em; }
.bf-src { margin: 14px 0 0; font: 400 14px/21px var(--font-text); color: var(--ink-2); max-width: 36em; }
.bf-count { padding: 32px 36px 28px; border-radius: 28px; background: rgb(255 255 255 / 58%); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 80%), 0 0 0 1px rgb(0 0 0 / 6%), 0 30px 60px -28px rgb(40 60 140 / 35%); }
.bf-cl { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; font: 500 14px/20px var(--font-text); color: var(--ink-2); }
.bf-old { position: relative; font: 400 clamp(26px, 3vw, 36px)/1 var(--font-display); color: #8d8d93; text-decoration: none; }
.bf-old::after { content: ""; position: absolute; left: -3%; right: -3%; top: 54%; height: 2px; border-radius: 2px; background: #8d8d93; transform: rotate(-3deg); }
.bf-now { margin: 18px 0 0; font: 400 clamp(72px, 9vw, 120px)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-track { position: relative; margin-top: 26px; height: 14px; border-radius: 99px; overflow: hidden; background: rgb(0 0 0 / 7%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%); }
.bf-fill { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 55%, #7ad7c4)); transform-origin: left center; transform: scaleX(.125); }
.bf-ends { display: flex; justify-content: space-between; margin: 10px 0 0; font: 500 13px/18px var(--font-text); color: var(--ink-2); }
.bf-ends .bf-ours { color: var(--blue); }
.bf-prices .bf-price::before { display: none; }
.bf-price { padding-top: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .bf-count.is-armed .bf-fill { transform: scaleX(var(--bf-k, 1)); }
  .bf-count.is-armed .bf-old::after { transform: rotate(-3deg) scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.4, .1, .3, 1); }
  .bf-count.is-armed.is-done .bf-old::after { transform: rotate(-3deg) scaleX(1); }
  .bf-count.is-armed .bf-ours { opacity: 0; transition: opacity .5s ease; }
  .bf-count.is-armed.is-done .bf-ours { opacity: 1; }
}
@media (max-width: 1023px) { .bf-cost-grid { grid-template-columns: 1fr; gap: 36px; } .bf-count { max-width: 560px; } }
@media (max-width: 767px) { .bf-cost-grid { margin-bottom: 40px; } .bf-cost-l2 { font-size: 19px; line-height: 27px; } .bf-count { padding: 24px 22px 20px; } }

/* 7 Nov: "Usual price" sits with the struck number, "Ours" with the big one */
.bf-was { display: flex; align-items: baseline; gap: 10px; }
.bf-ours-l { color: var(--blue); }
