/* Design kits, 11 Nov 2026: live mini screens in the four "What we build" cards and the one-system wire in "What you get".
   Ported to plain CSS/JS from Magic UI (animated-list, number-ticker, animated-beam; MIT). Motion stops under reduced motion. */

.sys-do li:not(.sys-custom) { padding-top: 24px; justify-content: flex-start; }
.sys-do li:not(.sys-custom) h3 { margin-top: 28px; }
.kit { height: 132px; border-radius: 14px; background: var(--paper); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; position: relative; font-variant-numeric: tabular-nums; }

/* 1 · bookings arrive one after another */
.kit-feed { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); }
.kf-track { display: grid; gap: 8px; padding: 12px; animation: kf 12s var(--ease) infinite; }
.kf-track p { margin: 0; display: grid; align-content: center; gap: 2px; height: 50px; box-sizing: border-box; padding: 0 12px; border-radius: 10px; background: var(--paper-2); font-size: 13px; line-height: 1.25; }
.kf-track b { font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.kf-track b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.kf-track span { color: var(--soft); }
@keyframes kf { 0%,20% { transform: translateY(0) } 25%,45% { transform: translateY(-58px) } 50%,70% { transform: translateY(-116px) } 75%,95% { transform: translateY(-58px) } 100% { transform: translateY(0) } }

/* 2 · the day, with the next job lit */
.kit-day { display: grid; align-content: center; gap: 9px; padding: 14px 16px; }
.kit-day p { margin: 0; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--soft); }
.kit-day i { display: block; height: 10px; width: var(--w); border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.kit-day .now { color: var(--ink); font-weight: 650; }
.kit-day .now i { background: var(--accent); animation: kd 2.4s ease-in-out infinite; }
.kit-day em { font-style: normal; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); }
@keyframes kd { 50% { opacity: .55 } }

/* 3 · today's number counts up */
.kit-num { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 12px; }
.kn-label { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.kn-val { margin: 2px 0 0; grid-row: 2; align-self: start; font-size: 38px; font-weight: 650; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.kn-bars { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: flex-end; gap: 5px; height: 100%; }
.kn-bars i { width: 9px; height: var(--h); border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); transform-origin: bottom; }
.kn-bars i.today { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {   /* bars only start low when motion is on; otherwise they are simply there */
  .js .rise:not(.in) .kit-num .kn-bars i { transform: scaleY(0); }
  .js .kit-num .kn-bars i { transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
}

/* 4 · the confirmation text lands */
.kit-msg { display: grid; align-content: center; justify-items: start; padding: 14px 16px; gap: 6px; }
.kit-msg p { margin: 0; }
.km-dots, .km-bubble { grid-area: 1 / 1; }
.km-dots { display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper-2); animation: km-out 6s infinite; }
.km-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: km-dot 1s infinite; }
.km-dots i:nth-child(2) { animation-delay: .15s } .km-dots i:nth-child(3) { animation-delay: .3s }
.km-bubble { max-width: 92%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--accent); color: var(--on-accent); font-size: 13.5px; line-height: 1.35; font-weight: 500; animation: km-in 6s infinite; }
.km-seen { font-size: 11px; color: var(--soft); animation: km-in 6s infinite; }
@keyframes km-dot { 50% { transform: translateY(-3px); opacity: .5 } }
@keyframes km-out { 0%,22% { opacity: 1 } 26%,100% { opacity: 0 } }
@keyframes km-in { 0%,24% { opacity: 0; transform: translateY(6px) } 30%,92% { opacity: 1; transform: none } 100% { opacity: 0 } }

/* the wire: one system feeds every screen */
.wire { position: relative; margin: clamp(56px, 9vh, 104px) 0 0; height: 360px; }
.wire-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wl { fill: none; stroke: color-mix(in srgb, var(--paper) 16%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wb { fill: none; stroke: url(#beam); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 90 600; animation: beam 3.2s linear infinite; }
.wb.d2 { animation-delay: -.8s } .wb.d3 { animation-delay: -1.6s } .wb.d4 { animation-delay: -2.4s }
@keyframes beam { from { stroke-dashoffset: 690 } to { stroke-dashoffset: 0 } }
.wn { position: absolute; margin: 0; display: grid; gap: 4px; width: 230px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--paper) 7%, var(--ink)); border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); transform: translate(-50%, -50%); }
.wn b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.wn span { font-size: 14px; color: color-mix(in srgb, var(--paper) 64%, transparent); }
.wn-1 { left: 13%; top: 19.4% } .wn-2 { left: 13%; top: 80.6% } .wn-3 { left: 87%; top: 19.4% } .wn-4 { left: 87%; top: 80.6% }
.wn-core { left: 50%; top: 50%; width: auto; justify-items: center; padding: 20px 26px; border-color: color-mix(in srgb, var(--accent-on-ink) 60%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 35%, transparent); }
.wn-core img { width: 48px; height: 48px; border-radius: 12px; background: var(--paper); padding: 6px; }
.wn-core span { color: var(--paper); font-weight: 650; font-size: 15px; }

@media (max-width: 900px) {
  .wire { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .wire-lines { display: none; }
  .wn { position: static; transform: none; width: auto; }
  .wn-core { grid-column: 1 / -1; grid-row: 1; flex-direction: row; display: flex; justify-content: center; align-items: center; gap: 14px; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }
  .wn-core img { width: 40px; height: 40px; }
}
@media (max-width: 760px) {
  .kit { height: 120px; }
  .wire { grid-template-columns: 1fr; gap: 14px; }
  .wn:not(.wn-core) { position: relative; left: auto; top: auto; }
  .wn:not(.wn-core)::before { content: ""; position: absolute; left: 50%; top: -15px; width: 2px; height: 14px; background: linear-gradient(var(--accent-on-ink), color-mix(in srgb, var(--accent-on-ink) 20%, transparent)); }
  .wn b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .kf-track, .kit-day .now i, .km-dots, .km-dots i, .km-bubble, .km-seen, .wb { animation: none; }
  .km-dots { display: none; }
  .wb { stroke-dasharray: none; opacity: .5; }
}

/* ---------- 11 Nov 2026, option A: the same live screens on Services and the Barbershops steps ---------- */
/* every kit shows its finished state with no animation; motion only plays when the visitor allows it */

/* a real piece of work in the kit frame (brand and product cards) */
.kit-img { background: var(--paper); }
.kit-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* services cards: the screen sits on top like the home cards */
.sv-item > .kit { margin: -4px -4px 24px; }
.sv-item.feature > .kit { display: none; }

/* the shop TV (Ledger & Blade's look: ink, bone, signal orange) */
.kit-tv { background: #141414; color: #eeebe5; display: grid; align-content: center; gap: 7px; padding: 12px 14px; }
.kit-tv p { margin: 0; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.kit-tv p span { font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kit-tv em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 4px; border: 1px solid color-mix(in srgb, #eeebe5 40%, transparent); }
.kit-tv em.open { background: #ff5a1f; border-color: #ff5a1f; color: #141414; }
.kit-tv .top { font-size: 10px; letter-spacing: .08em; color: color-mix(in srgb, #eeebe5 60%, transparent); }
.kit-tv .top b { color: #ff7440; }

/* a site that books: the button press lands as a booking */
.kit-site { display: grid; grid-template-rows: auto 1fr; }
.ks-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); font-size: 11.5px; color: var(--soft); }
.ks-bar i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.ks-bar span { margin-left: 6px; padding: 2px 10px; border-radius: 6px; background: var(--paper-2); }
.ks-body { display: grid; place-items: center; }
.ks-btn, .ks-done { grid-area: 1 / 1; margin: 0; }
.ks-btn { padding: 9px 18px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 13.5px; font-weight: 650; }
.ks-done { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--paper-2); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ks-done::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ks-btn { opacity: 0; }   /* finished state by default: the booking is there */

/* custom: four parts wired into one */
.kit-hub svg { display: block; width: 100%; height: 100%; }
.kh-l { fill: none; stroke: color-mix(in srgb, var(--ink) 18%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.kh-b { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 18 200; stroke-dashoffset: 18; opacity: 0; }
.kh-n { fill: var(--paper-2); stroke: color-mix(in srgb, var(--ink) 14%, transparent); }
.kh-c { fill: var(--accent); }

/* a written plan: the steps tick */
.kit-plan { display: grid; align-content: center; gap: 9px; padding: 14px 16px; }
.kit-plan p { margin: 0; display: grid; grid-template-columns: 16px 1fr; align-items: center; gap: 10px; }
.kit-plan .kp-t { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); grid-template-columns: none; }
.kit-plan b { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); box-sizing: border-box; }
.kit-plan b.on { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--accent); }
.kit-plan i { display: block; height: 9px; width: var(--w); border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); }

/* monthly: one check-in a week */
.kit-month { display: grid; grid-template-columns: repeat(7, 1fr); align-content: center; gap: 6px; padding: 12px 16px; }
.kit-month .km-h { grid-column: 1 / -1; margin: 0 0 2px; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.kit-month i { aspect-ratio: 1; max-height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.kit-month i.c { background: var(--accent); }

/* a product range with a price on each size */
.kit-range { display: grid; align-content: center; gap: 8px; padding: 12px 16px; }
.kit-range p { margin: 0; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--soft); }
.kit-range s { text-decoration: none; display: block; width: 14px; height: var(--h); justify-self: center; border-radius: 3px 3px 2px 2px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.kit-range b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.kit-range .pick { color: var(--ink); }
.kit-range .pick s { background: var(--accent); }
.kit-range .pick b { color: var(--accent); }

/* barbershop steps: the answers, the test cut, the shop's own address */
.kit-ans { display: grid; align-content: center; gap: 7px; padding: 12px 14px; }
.kit-ans p { margin: 0; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--paper-2); font-size: 12.5px; color: var(--soft); }
.kit-ans b { color: var(--ink); font-weight: 600; }
.kit-note { display: grid; align-content: center; padding: 12px; }
.kn-card { margin: 0; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); font-size: 12.5px; color: var(--soft); }
.kn-card::before { content: "L/B"; grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #141414; color: #eeebe5; font-size: 10px; font-weight: 800; letter-spacing: -.02em; box-shadow: inset 0 -3px 0 #ff5a1f; }
.kn-card b { color: var(--ink); font-weight: 650; }
.kit-live { display: grid; grid-template-rows: auto 1fr; }
.kit-live .ks-bar span { color: var(--ink); font-weight: 600; }
.kit-live .ks-bar em { margin-left: auto; display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 11px; font-weight: 650; color: var(--ink); }
.kit-live .ks-bar em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; }
.kl-body { display: grid; align-content: center; gap: 8px; padding: 0 14px; }
.kl-body i { display: block; height: 9px; width: var(--w); border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.kl-body b { justify-self: start; margin-top: 2px; padding: 6px 14px; border-radius: 8px; background: #ff5a1f; color: #141414; font-size: 12px; font-weight: 700; }

.b-steps li > .kit { margin-bottom: 24px; }
.b-steps .kit + .no { width: 34px; height: 34px; font-size: 15px; box-shadow: none; }
.b-steps .kit + .no + h3 { margin-top: 16px; }

/* motion, only when allowed; the finished frame above is what shows otherwise */
@media (prefers-reduced-motion: no-preference) {
  .ks-btn { animation: ks-btn 5s infinite; }
  .ks-done { animation: ks-done 5s infinite; }
  .kh-b { animation: kh 3s linear infinite; opacity: 1; }
  .kh-b.d2 { animation-delay: -.75s } .kh-b.d3 { animation-delay: -1.5s } .kh-b.d4 { animation-delay: -2.25s }
  .kit-tv em.open { animation: kt 2.4s ease-in-out infinite; }
  .kit-plan b.on { animation: kp 6s infinite; animation-delay: calc(var(--i) * .6s); }
  .kit-month i.c { animation: kmo 4s infinite; animation-delay: calc(var(--i) * .25s); }
  .kn-card { animation: kn 5s var(--ease) infinite; }
  .kit-ans p { animation: ka 6s infinite; animation-delay: calc(var(--i) * .5s); }
  .kit-live .ks-bar em::before { animation: kd 2s ease-in-out infinite; }
}
@keyframes ks-btn { 0%,30% { opacity: 1; transform: none } 36% { opacity: 1; transform: scale(.94) } 42%,100% { opacity: 0; transform: scale(.94) } }
@keyframes ks-done { 0%,40% { opacity: 0; transform: translateY(6px) } 48%,94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes kh { from { stroke-dashoffset: 218 } to { stroke-dashoffset: 0 } }
@keyframes kt { 50% { opacity: .55 } }
@keyframes kp { 0%,8% { opacity: .25 } 14%,100% { opacity: 1 } }
@keyframes kmo { 0%,10% { transform: scale(.6); opacity: .3 } 20%,100% { transform: none; opacity: 1 } }
@keyframes kn { 0%,6% { opacity: 0; transform: translateY(-14px) } 14%,90% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes ka { 0%,6% { opacity: .35 } 14%,100% { opacity: 1 } }
.kit.kit-tv { height: auto; min-height: 120px; }

/* calculator "Who gets what": the same chair in a slow week and a busy week, split shop / barber.
   Lengths are the calculator's example numbers (40 cuts at $35; slow 28, busy 52; rent $250; 50%; $20 x 40 h), drawn to one scale. */
.how-cards .p-card2 > .kit { margin: 0 0 22px; }
.kit-split { display: grid; align-content: center; gap: 9px; padding: 14px 16px; }
.kit-split p { margin: 0; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; font-size: 12px; color: var(--soft); }
.ksp-bar { display: flex; height: 16px; gap: 2px; }
.ksp-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; transform-origin: left; }
.ksp-bar .s { background: var(--accent); }
.ksp-bar .b { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.kit-split .ksp-key { grid-template-columns: auto auto 1fr; gap: 14px; padding-left: 48px; font-size: 11.5px; }
.kit-split .ksp-key span { display: flex; align-items: center; gap: 6px; }
.kit-split .ksp-key span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }
.kit-split .ksp-key span + span::before { background: color-mix(in srgb, var(--ink) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .js .rise:not(.in) .ksp-bar i { transform: scaleX(0); }
  .js .ksp-bar i { transition: transform .9s var(--ease); }
  .js .ksp-bar i.b { transition-delay: .25s; }
}
