/* arminghall — interactive demos and scroll motion */

/* ---------- scroll motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal="scale"] { transform: translateY(32px) scale(.965); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .word > span { display: inline-block; transform: translateY(108%); transition: transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-split].is-in .word > span { transform: none; }
.hero::before { transform: translate3d(0, calc(var(--py, 0) * .22px), 0); }
.hero::after { transform: translate3d(0, calc(var(--py, 0) * -.12px), 0); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > *, .js [data-split] .word > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::before, .hero::after { transform: none; }
}

/* ---------- shared demo chrome ---------- */
.win { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); font-size: 13px; }
.win__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); min-height: 46px; }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win__title { font-weight: 600; font-size: 13px; }
.win__bar .seg { margin-left: auto; }
.seg { display: inline-flex; background: var(--sky-soft); border-radius: 9px; padding: 3px; }
.seg button { font: 500 12px/1 var(--font); color: var(--ink); background: none; border: 0; padding: 7px 11px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 1px 2px rgba(18,76,82,.15); }
.switch { flex: none; width: 36px; height: 21px; border-radius: 99px; background: var(--line); border: 0; padding: 0; position: relative; cursor: pointer; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"]::after { transform: translateX(15px); }
.demo-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.demo-hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(18,76,82,.12); }
.on-teal .demo-hint { color: #A9C6C9; }
.on-teal .demo-hint::before { background: var(--butter); box-shadow: 0 0 0 4px rgba(255,242,187,.18); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero booking journey ---------- */
.showcase button { font: inherit; color: inherit; }
.showcase .mini-btn { color: var(--paper); }
.svc { width: 100%; background: var(--white); text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.svc:hover { border-color: var(--teal-soft); }
.mini-btn { width: 100%; border: 0; cursor: pointer; font-family: var(--font); transition: background .15s ease, opacity .15s ease; }
.mini-btn:hover { background: var(--teal-deep); }
.mini-btn[disabled] { opacity: .35; cursor: default; }
.mini-btn--ghost { background: transparent; color: var(--teal) !important; box-shadow: inset 0 0 0 1px var(--line); margin-top: 8px; }
.mini-btn--ghost:hover { background: var(--sky-soft); }
.phone { display: flex; flex-direction: column; }
.phone__body { flex: 1; min-height: 262px; display: flex; flex-direction: column; }
.phone__body > .mini-btn { margin-top: auto; }
.phone__body [role="radiogroup"] { margin-bottom: 14px; }
.phone__body .slots { margin-bottom: 14px; }
.phone__back { background: none; border: 0; padding: 0; color: var(--muted); font-size: 10.5px; cursor: pointer; margin-bottom: 6px; align-self: flex-start; }
.slots { display: grid; gap: 7px; margin: 10px 0 12px; }
.slot { border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 9px 10px; display: flex; justify-content: space-between; cursor: pointer; font-size: 10.5px; }
.slot b { font-weight: 600; }
.slot[aria-checked="true"] { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: var(--sky-soft); }
.phone__done { text-align: center; padding-top: 18px; }
.phone__done .tick { width: 44px; height: 44px; margin-bottom: 10px; }
.phone__done .tick svg { width: 20px; height: 20px; }
.phone__done p { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.desk__list { display: grid; }
.booking.is-new { animation: slot-in .55s cubic-bezier(.2,.7,.2,1); background: var(--butter-soft); border-color: #F3E3A0; }
@keyframes slot-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.confirm__body.is-fresh .tick { animation: pop .45s cubic-bezier(.3,1.6,.5,1) both; }
.confirm__body.is-fresh .tick path { stroke-dashoffset: 30; animation: draw .4s ease .25s forwards; }
.showcase__note b { color: var(--teal); font-weight: 600; }

/* ---------- services explorer ---------- */
.explorer { margin-top: clamp(48px, 7vw, 88px); }
.explorer__tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--butter-soft); border: 1px solid #F1E6B8; padding: 6px; border-radius: 16px; margin-bottom: 28px; }
.explorer__tab { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--font); color: var(--ink); background: none; border: 0; padding: 12px 18px; border-radius: 11px; cursor: pointer; transition: background .15s ease; }
.explorer__tab svg { width: 20px; height: 20px; }
.explorer__tab:hover { background: rgba(255,242,187,.7); }
.explorer__tab[aria-selected="true"] { background: var(--teal); color: var(--paper); }
.explorer__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.explorer__panel[hidden] { display: none; }
.explorer__panel.is-entering .explorer__demo { animation: panel-in .5s cubic-bezier(.2,.7,.2,1); }
.explorer__panel.is-entering .explorer__copy { animation: panel-in .5s cubic-bezier(.2,.7,.2,1) .05s backwards; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.explorer__copy h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; font-weight: 700; line-height: 1.05; margin-bottom: 14px; }
.explorer__copy > p { color: var(--muted); max-width: 40ch; }
.explorer__copy ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 15.5px; }
.explorer__copy li { display: flex; gap: 10px; align-items: baseline; }
.explorer__copy li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
@media (max-width: 960px) { .explorer__panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .explorer__tab { padding: 10px 12px; font-size: 14px; } .explorer__tab svg { display: none; } }

/* websites: live content editor */
.cms__body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.cms__edit { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cms__edit label, .cms__edit legend { font-weight: 600; font-size: 12px; display: block; margin-bottom: 6px; }
.cms__edit input[type="text"] { width: 100%; font: 400 13px/1.3 var(--font); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 10px; background: var(--paper); }
.cms__edit input[type="text"]:focus { outline: none; border-color: var(--teal); background: #fff; }
.cms__edit fieldset { border: 0; padding: 0; margin: 0; }
.swatches { display: flex; gap: 8px; }
.swatches label { margin: 0; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--line); }
.swatches input:checked + span { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--teal); }
.swatches input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }
.cms__publish { margin-top: auto; display: grid; gap: 8px; }
.cms__publish .mini-btn { padding: 11px; font-size: 12.5px; border-radius: 9px; }
.cms__status { font-size: 11.5px; color: var(--muted); min-height: 16px; }
.cms__status.is-live { color: #1F7A4D; font-weight: 600; }
.cms__stage { background: repeating-linear-gradient(45deg, #F3F7F7 0 10px, #EEF4F4 10px 20px); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.site { --accent: #1D6B74; --accent-ink: #fff; --tint: #E3F2F3; width: 100%; max-width: 520px; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px -8px rgba(18,76,82,.35); overflow: hidden; font-size: 11px; transition: max-width .45s cubic-bezier(.2,.7,.2,1); }
.site[data-theme="plum"] { --accent: #7A3E6E; --tint: #F4E8F1; }
.site[data-theme="forest"] { --accent: #3E6B3A; --tint: #E8F1E5; }
.site__nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #EEF2F2; }
.site__nav b { font-size: 12px; color: var(--accent); letter-spacing: -.01em; transition: color .3s ease; }
.site__nav span { display: flex; gap: 12px; color: #5C6E70; font-size: 10px; }
.site__hero { background: var(--tint); padding: 22px 16px; transition: background .3s ease; }
.site__hero h4 { font-size: 21px; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; color: #1E2B2C; max-width: 15ch; }
.site__hero p { color: #5C6E70; margin: 8px 0 12px; font-size: 11px; }
.site__btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 7px; font-weight: 600; transition: background .3s ease; }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px 16px; }
.site__cards div { border: 1px solid #EEF2F2; border-radius: 7px; padding: 9px; }
.site__cards i { display: block; width: 18px; height: 18px; border-radius: 5px; background: var(--tint); margin-bottom: 6px; transition: background .3s ease; }
.site__cards b { display: block; font-size: 10.5px; }
.site__cards small { color: #7A8B8D; font-size: 9.5px; }
.site.is-phone { max-width: 210px; }
.site.is-phone .site__nav span { display: none; }
.site.is-phone .site__hero h4 { font-size: 17px; }
.site.is-phone .site__cards { grid-template-columns: 1fr; }
.flash { animation: flash .7s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 79, .9); } 100% { box-shadow: 0 0 0 10px rgba(255, 214, 79, 0); } }
@media (max-width: 640px) { .cms__body { grid-template-columns: 1fr; } .cms__edit { border-right: 0; border-bottom: 1px solid var(--line); } }

/* applications: warehouse pick app + office view */
.picker__body { display: grid; grid-template-columns: 250px 1fr; gap: 22px; padding: 20px; background: linear-gradient(180deg, var(--sky-soft), #fff); min-height: 380px; align-items: start; }
.handset { background: #172A2D; border-radius: 22px; padding: 10px; box-shadow: 0 14px 30px -14px rgba(18,76,82,.6); }
.handset__screen { background: #fff; border-radius: 14px; padding: 12px; min-height: 330px; display: flex; flex-direction: column; }
.handset__head { display: flex; justify-content: space-between; align-items: baseline; }
.handset__head b { font-size: 14px; }
.handset__head small { color: var(--muted); font-size: 10.5px; }
.pick-bar { height: 6px; border-radius: 99px; background: var(--line); margin: 10px 0 12px; overflow: hidden; }
.pick-bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: inherit; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.pick-list { display: grid; gap: 7px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; transition: all .2s ease; }
.pick b { font-size: 11.5px; font-weight: 600; }
.pick small { color: var(--muted); font-size: 10px; grid-column: 1; }
.pick .loc { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; font-size: 11px; background: var(--butter); border-radius: 6px; padding: 4px 7px; }
.pick:hover { border-color: var(--teal-soft); }
.pick.is-done { background: var(--mint); border-color: transparent; }
.pick.is-done .loc { background: #fff; }
.pick.is-done b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.handset__foot { margin-top: auto; padding-top: 12px; font-size: 11px; color: var(--muted); text-align: center; }
.handset__foot.is-ready { color: #1F7A4D; font-weight: 600; }
.handset__foot .mini-btn { margin-top: 8px; padding: 9px; border-radius: 9px; }
.office { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 14px; }
.office__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.office__head b { font-size: 13px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #1F7A4D; font-weight: 600; font-size: 11px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.office__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.office__tiles div { background: var(--paper); border-radius: 10px; padding: 10px; }
.office__tiles small { color: var(--muted); font-size: 10.5px; display: block; }
.office__tiles strong { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: inline-block; }
.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: translateY(-3px); color: #1F7A4D; } }
.office__feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 11px; max-height: 150px; overflow: hidden; }
.office__feed li { display: flex; gap: 8px; padding: 7px 9px; background: var(--paper); border-radius: 8px; animation: slot-in .4s ease; }
.office__feed time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
@media (max-width: 640px) { .picker__body { grid-template-columns: 1fr; } }

/* business systems: workflow runner */
.flow__body { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.flow__steps { list-style: none; margin: 0; padding: 16px; display: grid; gap: 8px; align-content: start; border-right: 1px solid var(--line); position: relative; }
.flow__step { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #fff; transition: border-color .2s ease, background .2s ease, opacity .2s ease; position: relative; }
.flow__step + .flow__step::before { content: ""; position: absolute; left: 25px; top: -9px; height: 8px; border-left: 2px dotted var(--line); }
.flow__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sky-soft); }
.flow__icon svg { width: 16px; height: 16px; }
.flow__step b { display: block; font-size: 12px; font-weight: 600; }
.flow__step small { color: var(--muted); font-size: 10.5px; }
.flow__state { font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.flow__step.is-off { opacity: .5; background: var(--paper); }
.flow__step.is-running { border-color: var(--teal); }
.flow__step.is-done { background: #F2FAF6; border-color: #BFE3CF; }
.flow__step.is-done .flow__icon { background: var(--mint); }
.flow__log { padding: 16px; display: flex; flex-direction: column; background: var(--paper); }
.flow__log h5 { font-size: 12px; margin: 0 0 10px; font-weight: 600; display: flex; justify-content: space-between; }
.flow__log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 11px; align-content: start; flex: 1; }
.flow__log li { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; animation: slot-in .35s ease; }
.flow__log li time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.flow__log li.is-skip { color: var(--muted); }
.flow__log li.is-total { background: var(--mint); border-color: transparent; font-weight: 600; }
.flow__log .empty { color: var(--muted); font-size: 12px; padding: 18px 0; }
.flow__run { margin-top: 12px; padding: 11px; border-radius: 9px; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 640px) { .flow__body { grid-template-columns: 1fr; } .flow__steps { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Wizarm CX story ---------- */
.story__steps { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 8px; }
.story__step { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 14px; text-align: left; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 14px; padding: 12px 14px; cursor: pointer; position: relative; overflow: hidden; transition: background .2s ease; }
.story__step:hover { background: rgba(250,252,252,.05); }
.story__step[aria-current="step"] { background: rgba(250,252,252,.09); }
.story__step .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,242,187,.18); color: var(--butter); font-weight: 700; font-size: 14px; display: grid; place-items: center; transition: background .2s ease, color .2s ease; }
.story__step[aria-current="step"] .n, .story__step.is-done .n { background: var(--butter); color: var(--teal); }
.story__step b { display: block; font-weight: 600; }
.story__step span span { color: #A9C6C9; font-size: 15.5px; }
.story__bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: rgba(250,252,252,.12); border-radius: 2px; opacity: 0; }
.story__bar i { display: block; height: 100%; width: 0; background: var(--butter); border-radius: inherit; }
.story__step.is-playing .story__bar { opacity: 1; }
.story__step.is-playing .story__bar i { animation: fill var(--dur, 3s) linear forwards; }
@keyframes fill { to { width: 100%; } }

.stage { position: relative; }
.scene[hidden] { display: none; }
.scene.is-entering { animation: panel-in .5s cubic-bezier(.2,.7,.2,1); }
.wz { --violet: #6E5CE6; background: #fff; border-radius: 16px; overflow: hidden; color: #1B1F3B; font-size: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); aspect-ratio: 16 / 10.5; display: grid; grid-template-columns: 132px 1fr; }
.wz__side { background: #F4F5FB; padding: 14px 10px; display: grid; align-content: start; gap: 3px; }
.wz__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 4px 12px; }
.wz__brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--violet); display: grid; place-items: center; }
.wz__brand i svg { width: 13px; height: 13px; }
.wz__nav { padding: 7px 8px; border-radius: 7px; color: #5B5F80; font-size: 11px; }
.wz__nav.is-on { background: #fff; color: #1B1F3B; font-weight: 600; box-shadow: 0 1px 2px rgba(27,31,59,.08); }
.wz__main { padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.wz__main h5 { font-size: 16px; margin: 0 0 4px; letter-spacing: -.01em; }
.wz__main > p { color: #6B6F8E; margin: 0 0 14px; font-size: 11.5px; }
.wz-card { border: 1px solid #E6E7F2; border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.wz-card__logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #00BCEB, #6E5CE6); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.wz-card b { display: block; font-size: 13px; }
.wz-card small { color: #6B6F8E; font-size: 11px; display: block; margin-top: 2px; }
.wz-btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); background: var(--violet); color: #fff; border: 0; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
.wz-btn:hover { background: #5B49D6; }
.wz-btn--quiet { background: #EEEBFD; color: #4B3BC0; }
.wz-btn--quiet:hover { background: #E2DDFB; }
.wz-wait { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: #4B3BC0; font-weight: 500; }
.wz-ok { margin-top: 10px; display: grid; gap: 6px; }
.wz-ok div { display: flex; align-items: center; gap: 8px; }
.wz-ok svg { width: 15px; height: 15px; color: #2BA36B; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wz-chips span { background: #F4F5FB; border-radius: 99px; padding: 4px 9px; font-size: 10.5px; }
.wz-build { display: grid; grid-template-columns: 150px 1fr; gap: 14px; flex: 1; min-height: 0; }
.wz-widgets { display: grid; gap: 5px; align-content: start; }
.wz-widget { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; border: 1px solid #E6E7F2; border-radius: 8px; padding: 6px 8px; }
.wz-widget .switch { width: 30px; height: 18px; }
.wz-widget .switch::after { width: 12px; height: 12px; }
.wz-widget .switch[aria-checked="true"] { background: var(--violet); }
.wz-widget .switch[aria-checked="true"]::after { transform: translateX(12px); }
.wz-preview { background: #F4F5FB; border-radius: 10px; padding: 8px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 42px; gap: 5px; align-content: start; }
.wz-preview div { background: #fff; border-radius: 6px; padding: 5px 7px; font-size: 9.5px; color: #6B6F8E; animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.wz-preview div.hot { background: var(--violet); color: #DCD6FF; }
.wz-preview div.wide { grid-column: span 2; }
.wz-preview div.full { grid-column: 1 / -1; height: 24px; }

.tv { position: relative; margin: 0; }
.tv__pair { aspect-ratio: 16 / 9; background: #F4F5FB; border-radius: 10px; display: grid; place-items: center; text-align: center; color: #1B1F3B; padding: 20px; }
.tv__pair small { color: #6B6F8E; font-size: 12px; }
.tv__pair strong { display: block; font-size: clamp(34px, 5vw, 56px); letter-spacing: .08em; font-variant-numeric: tabular-nums; margin: 8px 0; color: #4B3BC0; }
.tv__pair p { font-size: 12px; color: #6B6F8E; }
.pairbox { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(250,252,252,.07); border: 1px solid rgba(250,252,252,.18); border-radius: 14px; padding: 12px 14px; }
.pairbox label { font-weight: 600; font-size: 14px; }
.pairbox input { font: 600 18px/1 var(--font); letter-spacing: .3em; width: 9.5ch; padding: 9px 10px; border-radius: 9px; border: 1.5px solid rgba(250,252,252,.3); background: rgba(0,0,0,.15); color: var(--paper); font-variant-numeric: tabular-nums; }
.pairbox input:focus { outline: none; border-color: var(--butter); }
.pairbox .btn { padding: 11px 16px; font-size: 14px; }
.pairbox__msg { flex-basis: 100%; font-size: 13px; color: #A9C6C9; min-height: 1em; }
.pairbox__msg[data-state="error"] { color: #FFB4A8; }
.wb-controls { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 14px; color: #CFE2E4; }
.wb-controls label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.wb-controls .switch[aria-checked="true"] { background: var(--butter); }
.wb-controls .switch[aria-checked="true"]::after { background: var(--teal); }
.tile { transition: background .3s ease, color .3s ease; }
.tile.is-alert { background: #E5484D; color: #fff; }
.tile.is-alert small { color: #FFD9DA; }
.tile.is-alert .bar { background: rgba(255,255,255,.3); }
.tile.is-alert .bar i { background: #fff; }
.tile[hidden], .wb__agents[hidden] { display: none; }
.agent { border: 0; font: inherit; color: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; text-align: left; }
.agent:hover { box-shadow: 0 0 0 1.5px #6E5CE6; }
.agent small { margin-left: auto; color: #8C8FB0; font-size: 9px; }
.wb__agents { grid-template-columns: repeat(4, 1fr); }
.bar i { transition: width .6s ease; }
@media (max-width: 960px) { .wz { grid-template-columns: 1fr; aspect-ratio: auto; } .wz__side { display: none; } }
@media (max-width: 560px) { .wz-build { grid-template-columns: 1fr; } .wb__agents { grid-template-columns: repeat(2, 1fr); } }

/* ---------- approach progress ---------- */
.steps { position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 27px; left: 28px; height: 2px; border-radius: 2px; }
.steps::before { right: calc(25% + 28px); background: var(--line); }
.steps::after { width: calc((75% - 28px) * var(--p, 0)); background: var(--teal); }
.steps li::after { display: none; }
.steps li::before { transition: background .35s ease, box-shadow .35s ease, color .35s ease; }
.steps li.is-on::before { background: var(--butter); box-shadow: none; }
@media (max-width: 900px) { .steps::before, .steps::after { display: none; } }
