/* Built for you (/build/). The page's own idea: a choice. Four tall cards, each drawn as the thing it
   builds (a lead crossing a pipeline, a week of posts, an order crossing four desks, a sheet becoming an app), sit right under the
   headline. Below: one dark stage (your software stands on our base), a hand-drawn path of the four steps, and the prices last.
   Every default here is the finished picture. Looping movement exists only under .bf-live (added by page-build.js, in view or on
   hover) and only when motion is allowed. */

.bf { --bf-soft: #f5f5f7; --bf-grey: color-mix(in srgb, var(--ink) 52%, transparent); overflow-x: clip; }
.bf-grey { color: var(--bf-grey); }
.bf-line2 { display: block; }
.bf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bf .kit-h2 { max-width: 16em; }
.bf .kit-p { max-width: 36em; }
.bf-more { margin: 32px 0 0; }

/* ---------------------------------------------------------------- hero: words, then the choice */
.bf-hero { padding-top: 60px; padding-bottom: 112px; }
.bf-hero .kit-hero-wash { height: 100%; background: radial-gradient(70% 50% at 50% 70%, color-mix(in srgb, var(--kit-accent) 14%, transparent), transparent 72%); }
.bf-pick-wrap { margin-top: 48px; text-align: left; }
.bf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bf-opt { display: flex; min-width: 0; }
.bf-card { --bf-c: var(--kit-accent); --bf-w: var(--c-ind-wash); display: flex; flex-direction: column; width: 100%; border-radius: 28px; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden;
  box-shadow: 0 0 0 1px var(--kit-line), 0 1px 1px rgb(16 24 40 / 4%), 0 18px 36px -22px rgb(16 24 40 / 18%);
  transition: transform .5s var(--kit-ease), box-shadow .5s var(--kit-ease), opacity .4s ease; }
.bf-card:hover, .bf-card:focus-visible { transform: translateY(-8px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bf-c) 30%, transparent), 0 2px 2px rgb(16 24 40 / 4%), 0 34px 50px -26px color-mix(in srgb, var(--bf-c) 55%, transparent); }
.bf-card:focus-visible { outline: 2px solid var(--ring, #3b4fd8); outline-offset: 3px; }
.bf-list:hover .bf-card:not(:hover) { opacity: .8; }
.bf-crm { --bf-c: var(--mk-mkt); --bf-w: var(--c-mkt-wash); }
.bf-soc { --bf-c: var(--mk-mkt-2); --bf-w: #fff1e6; }
.bf-erp { --bf-c: var(--blue); --bf-w: var(--c-ind-wash); }
.bf-oth { --bf-c: var(--blue); --bf-w: var(--bf-soft); }
.bf-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bf-body .kit-h3 { font-size: 24px; line-height: 28px; text-wrap: balance; }
.bf-body .kit-p { font-size: 17px; line-height: 26px; margin-top: 8px; }
.bf-from { margin: 14px 0 0; font: 400 14px/20px var(--font-text); color: var(--ink-2); }
.bf-body .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; }

.bf-scene { position: relative; height: 224px; container-type: inline-size; background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--bf-c) 16%, #fff), var(--bf-w) 70%); overflow: hidden; }

/* CRM: one lead crosses three columns */
.bf-s-crm { padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: stretch; }
.bf-col { display: grid; align-content: start; gap: 6px; padding: 8px 6px; border-radius: 12px; background: rgb(255 255 255 / 66%); box-shadow: inset 0 0 0 1px var(--kit-line); }
.bf-col i { position: relative; height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--kit-line); }
.bf-col i::after { content: ""; position: absolute; left: 9px; top: 12px; width: 52%; height: 6px; border-radius: 3px; background: #e3e6ea; }
.bf-col i.sp { background: transparent; box-shadow: none; }
.bf-col i.sp::after { display: none; }
.bf-mover { --w: calc((100cqw - 16px) / 3); position: absolute; left: 22px; top: 30px; width: calc(var(--w) - 12px); height: 30px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1.5px var(--bf-c), 0 10px 18px -8px color-mix(in srgb, var(--bf-c) 70%, transparent); transform: translateX(calc((var(--w) + 8px) * 2)); }
.bf-mover::before { content: ""; position: absolute; left: 9px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--bf-c); }
.bf-mover::after { content: ""; position: absolute; left: 28px; top: 12px; width: 40%; height: 6px; border-radius: 3px; background: #cfe3c5; }

/* Social: a week of posts, each a different look */
.bf-s-soc { padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bf-t { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgb(16 24 40 / 12%), 0 8px 14px -8px rgb(16 24 40 / 30%); }
.bf-t::before, .bf-t::after { content: ""; position: absolute; }
.t1 { background: #ff6b2c; } .t1::before { right: -14%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 22%); } .t1::after { left: 12%; bottom: 14%; width: 48%; height: 7px; border-radius: 4px; background: #fff; }
.t2 { background: #f1ebe0; } .t2::before { content: "\201C"; left: 10%; top: 8%; font: 400 44px/1 var(--font-display); color: #b33a5b; } .t2::after { left: 12%; bottom: 14%; width: 56%; height: 6px; border-radius: 4px; background: #4c1a2b; opacity: .7; }
.t3 { background: #17181c; } .t3::before { left: 50%; top: 50%; width: 0; height: 0; margin: -9px 0 0 -6px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.t4 { background: #12372f; } .t4::before { left: 12%; top: 22%; width: 50%; height: 6px; border-radius: 4px; background: #c7a258; } .t4::after { left: 12%; top: 40%; width: 34%; height: 6px; border-radius: 4px; background: #f1ead9; opacity: .8; }
.t5 { background: #f6dfd6; } .t5::before { left: 50%; top: 50%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%; border-radius: 50%; border: 5px solid #b33a5b; box-sizing: border-box; }
.t6 { background: #c7a258; } .t6::before { left: 12%; bottom: 14%; width: 62%; height: 7px; border-radius: 4px; background: #12372f; } .t6::after { right: 12%; top: 14%; width: 22%; aspect-ratio: 1; border-radius: 6px; background: rgb(255 255 255 / 40%); }

/* ERP: one order crosses four desks */
.bf-s-erp { display: grid; align-items: center; padding: 0 16px; }
.bf-sts { --w: calc((100cqw - 24px) / 4); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bf-st { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; background: rgb(255 255 255 / 76%); box-shadow: inset 0 0 0 1px var(--kit-line); }
.bf-st::before { content: ""; position: absolute; left: 14%; right: 14%; top: 16px; height: 6px; border-radius: 3px; background: #e3e6ea; box-shadow: 0 12px 0 #e3e6ea; }
.bf-st::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 0 0 2px var(--bf-c); opacity: 0; }
.bf-doc { position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: 3 / 4; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1.5px var(--bf-c), 0 12px 20px -8px color-mix(in srgb, var(--bf-c) 60%, transparent); transform: translateX(calc((100% + 8px) * 3)); }
.bf-doc::before { content: ""; position: absolute; left: 14%; right: 30%; top: 16px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--bf-c) 55%, #fff); box-shadow: 0 12px 0 #cfd6fb, 0 24px 0 #e3e6ea; }

/* Something else: a sheet drawn into an app */
.bf-s-oth { display: grid; place-items: center; }
.bf-s-oth svg { width: min(78%, 240px); height: auto; overflow: visible; }

/* the loops: only when allowed, only in view or on hover */
@media (prefers-reduced-motion: no-preference) {
  .bf-live.bf-crm .bf-mover, .bf-card:hover .bf-mover { animation: bf-lead 7.5s var(--kit-ease-soft) infinite; }
  @keyframes bf-lead {
    0%, 8% { transform: translateX(0); opacity: 1; }
    26%, 40% { transform: translateX(calc(var(--w) + 8px)); }
    58%, 86% { transform: translateX(calc((var(--w) + 8px) * 2)); opacity: 1; }
    94% { transform: translateX(calc((var(--w) + 8px) * 2)); opacity: 0; }
    95% { transform: translateX(0); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }
  .bf-live.bf-soc .bf-t, .bf-card:hover .bf-t { animation: bf-post 8s var(--kit-ease) infinite; animation-delay: calc(var(--i) * 260ms); animation-fill-mode: backwards; }
  @keyframes bf-post {
    0% { opacity: 0; transform: translateY(-16px) rotate(-3deg); }
    10%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: translateY(6px); }
  }
  .bf-live.bf-erp .bf-doc, .bf-card:hover .bf-doc { animation: bf-order 8s var(--kit-ease-soft) infinite; }
  @keyframes bf-order {
    0%, 14% { transform: translateX(0); opacity: 1; }
    26%, 40% { transform: translateX(calc(100% + 8px)); }
    52%, 66% { transform: translateX(calc((100% + 8px) * 2)); }
    78%, 92% { transform: translateX(calc((100% + 8px) * 3)); opacity: 1; }
    97% { transform: translateX(calc((100% + 8px) * 3)); opacity: 0; }
    98% { transform: translateX(0); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }
  .bf-live.bf-erp .bf-st::after, .bf-card:hover .bf-st::after { animation: bf-lit 8s ease infinite; }
  .bf-live.bf-erp .bf-st:nth-child(2)::after, .bf-card:hover .bf-st:nth-child(2)::after { animation-delay: 2s; }
  .bf-live.bf-erp .bf-st:nth-child(3)::after, .bf-card:hover .bf-st:nth-child(3)::after { animation-delay: 4s; }
  .bf-live.bf-erp .bf-st:nth-child(4)::after, .bf-card:hover .bf-st:nth-child(4)::after { animation-delay: 6s; }
  @keyframes bf-lit { 0%, 100% { opacity: 0; } 4%, 22% { opacity: 1; } 28% { opacity: 0; } }
}

/* ---------------------------------------------------------------- the dark stage: your software stands on our base */
.bf-stage { position: relative; background: #000; color: #f5f5f7; --kit-accent: var(--blue-dark); isolation: isolate; overflow: clip; }
.bf-stage .kit-h2 { color: #f5f5f7; }
.bf-stage .bf-grey { color: #8d8d93; }
.bf-stage .kit-p { color: #c9c9ce; font-size: 19px; line-height: 28px; }
.bf-glow { position: absolute; right: -6%; top: 6%; width: 64%; height: 92%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 38%, transparent), transparent); }
.bf-stage-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.bf-base { margin: 0; }
.bf-towers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; min-height: 280px; }
.bf-tower { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 0; }
.bf-tower i { height: 46px; border-radius: 12px; background: rgb(255 255 255 / 9%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%); }
.bf-tower b { font: 500 14px/20px var(--font-text); color: #c9c9ce; text-align: center; padding-top: 8px; }
.bf-tower:first-child i:nth-child(1) { background: color-mix(in srgb, var(--mk-mkt-dark) 30%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-mkt-dark) 55%, transparent); }
.bf-tower:first-child i:nth-child(2) { background: color-mix(in srgb, var(--mk-mkt-2-dark) 34%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-mkt-2-dark) 60%, transparent); }
.bf-tower:first-child i:nth-child(3) { background: color-mix(in srgb, var(--mk-ops-dark) 30%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mk-ops-dark) 55%, transparent); }
.bf-tower i { display: flex; align-items: center; padding: 0 14px; }
.bf-tower i span { font: 500 13px/1 var(--font-text); color: #f5f5f7; white-space: nowrap; }
.bf-tower i:empty::after { content: ""; display: block; width: 38%; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 26%); }
.bf-tower.is-you i { background: color-mix(in srgb, var(--blue) 60%, #000); box-shadow: inset 0 0 0 1px var(--blue-dark), 0 0 28px -4px color-mix(in srgb, var(--blue) 70%, transparent); }
.bf-tower.is-you b { color: #fff; }
.bf-slab { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #1c1c1e; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); }
.bf-slab b { flex: 0 0 100%; font: 400 24px/28px var(--font-display); color: #f5f5f7; margin-bottom: 4px; }
.bf-slab span { font: 500 13px/1 var(--font-text); color: #c9c9ce; padding: 7px 11px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }

@media (prefers-reduced-motion: no-preference) {
  .bf-towers.kit-settle.kit-armed > * { transition-delay: calc(650ms + var(--i, 0) * 160ms); }
}

/* ---------------------------------------------------------------- the four steps, on one drawn path */
.bf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: none; }
.bf-steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 31px; height: 0; border-top: 2px dashed color-mix(in srgb, var(--kit-accent) 34%, transparent); }
.bf-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.bf-glyph { position: relative; width: 64px; height: 64px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--kit-line), 0 10px 20px -10px rgb(16 24 40 / 22%); margin-bottom: 20px; }
.bf-step .kit-h3 { font-size: 22px; line-height: 28px; text-wrap: balance; }
.bf-step .link-arrow { margin-top: 14px; }
.bf-ai { margin: 48px 0 0; max-width: 40em; font: 400 17px/26px var(--font-text); color: var(--ink-2); }

/* ---------------------------------------------------------------- two tracks */
.bf-tracks-band { background: var(--bf-soft); }
.bf-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bf-track { background: #fff; display: flex; flex-direction: column; }
.bf-trk { width: 100%; max-width: 360px; height: auto; margin-bottom: 20px; overflow: visible; }
.bf-trk circle { fill: #fff; }
.bf-trk path, .bf-trk circle { stroke-width: 2.5; }
.bf-fit { margin: auto 0 0; padding-top: 18px; font: 400 15px/22px var(--font-text); color: var(--ink); }

/* ---------------------------------------------------------------- free analysis */
.bf-an-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.bf-btn { margin: 28px 0 0; }
.bf-doc-screen { max-width: 520px; margin-left: auto; }
.bf-doc-body { padding: 24px 26px 28px; }
.bf-doc-body p { margin: 0; font: 400 18px/27px var(--font-text); color: var(--ink); }
.bf-doc-body p + p { margin-top: 6px; }
.bf-doc-body .bf-doc-k { margin-top: 20px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.bf-doc-body .bf-doc-k:first-child { margin-top: 0; }
.bf-lines { margin-top: 22px; display: grid; gap: 9px; }
.bf-lines i { display: block; height: 7px; border-radius: 4px; background: #e3e6ea; }
.bf-lines i:nth-child(2) { width: 82%; } .bf-lines i:nth-child(3) { width: 54%; }

/* ---------------------------------------------------------------- industries, stories */
.bf-inds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bf-ind-t { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #222; box-shadow: 0 0 0 1px var(--kit-line); }
.bf-ind-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--kit-ease); }
.bf-ind-t::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgb(0 0 0 / 66%), transparent); }
.bf-ind-t span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font: 400 20px/24px var(--font-display); color: #fff; text-wrap: balance; }
.bf-ind-t:hover img, .bf-ind-t:focus-visible img { transform: scale(1.06); }
.bf-ind-t:focus-visible { outline: 2px solid var(--ring, #3b4fd8); outline-offset: 3px; }
.bf-stories { background: var(--bf-soft); }
.bf-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bf-story { display: flex; flex-direction: column; background: #fff; text-decoration: none; color: var(--ink); transition: transform .5s var(--kit-ease), box-shadow .5s var(--kit-ease); }
.bf-story:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--kit-line), 0 24px 40px -26px rgb(16 24 40 / 30%); }
.bf-story .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; }

/* ---------------------------------------------------------------- prices, last */
.bf-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bf-price { --bf-c: var(--blue); display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--kit-line); }
.bf-price::before { content: ""; width: 32px; height: 4px; border-radius: 2px; background: var(--bf-c); margin-bottom: 16px; }
.bf-p-crm { --bf-c: var(--mk-mkt); } .bf-p-soc { --bf-c: var(--mk-mkt-2); } .bf-p-erp { --bf-c: var(--blue); } .bf-p-oth { --bf-c: #b9b9c0; }
.bf-price p { margin: 0; }
.bf-pk { font: 500 15px/20px var(--font-text); color: var(--ink-2); min-height: 40px; }
.bf-price .bf-big { margin-top: 10px; font: 400 56px/1 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.bf-price .bf-big-sm { font-size: 26px; line-height: 32px; min-height: 56px; }
.bf-price .bf-sm { margin-top: 10px; font: 400 17px/26px var(--font-text); color: var(--ink-2); }
.bf-price .link-arrow { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.bf-fine { margin: 28px 0 0; max-width: 56em; font: 400 14px/21px var(--font-text); color: var(--ink-2); }
.bf-cost { background: #fff; }

/* ---------------------------------------------------------------- closing */
.bf .bf-close.kit-section { padding-top: 0; }
.bf-close-card { background: linear-gradient(135deg, #fff 30%, var(--c-ind-wash) 100%); text-align: left; padding: 56px 48px; }
.bf-close-card .kit-hero-actions { justify-content: flex-start; }
.bf-close-card .kit-p { margin-top: 16px; font-size: 19px; line-height: 28px; }
.bf-close-card .kit-hero-actions { margin-top: 28px; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .bf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .bf-steps::before { display: none; }
}
@media (max-width: 1023px) {
  .bf-inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-stage-grid, .bf-an-grid { grid-template-columns: 1fr; gap: 40px; }
  .bf-doc-screen { margin-left: 0; }
}
@media (max-width: 767px) {
  .bf-hero { padding-top: 48px; padding-bottom: 72px; }
  .bf-pick-wrap { margin-top: 40px; }
  .bf-list { grid-template-columns: 1fr; gap: 14px; }
  .bf-scene { height: 170px; }
  .bf-tracks, .bf-story-grid { grid-template-columns: 1fr; }
  .bf-steps { grid-template-columns: 1fr; row-gap: 36px; }
  .bf-prices { grid-template-columns: 1fr; }
  .bf-price { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
  .bf-price::before { grid-column: 1 / -1; margin-bottom: 12px; }
  .bf-price .bf-pk { grid-column: 1 / -1; min-height: 0; }
  .bf-price .bf-big-sm { grid-column: 1 / -1; min-height: 0; font-size: 24px; line-height: 30px; }
  .bf-price .bf-big { font-size: 40px; margin-top: 6px; }
  .bf-price .bf-sm { grid-column: 1; margin-top: 4px; }
  .bf-price .link-arrow { grid-column: 2; grid-row: 3 / span 2; padding-top: 0; align-self: end; font-size: 15px; }
  .bf-inds { gap: 10px; }
  .bf-ind-t span { font-size: 16px; line-height: 20px; left: 12px; bottom: 10px; }
  .bf-towers { gap: 8px; min-height: 0; }
  .bf-tower i { height: 34px; }
  .bf-tower b { font-size: 12px; line-height: 16px; }
  .bf-close-card { padding: 36px 22px; }
  .bf .bf-close.kit-section { padding-top: 0; }
}
