/* A small, working illustration of a desktop app and its phone controls. */
.how-onbun-works{padding-top:10px;padding-bottom:55px}
.how-onbun-copy{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;align-items:end;margin-bottom:30px}
.how-onbun-copy .label{color:var(--secondary);font-weight:500;letter-spacing:.08em}
.how-onbun-copy h2{font-size:clamp(28px,3vw,40px);line-height:1.15;margin:15px 0 0;letter-spacing:-.04em}
.how-onbun-copy>p{font-size:14px;line-height:1.8;margin:0;max-width:440px}
.control-demo{border:1px solid var(--line);background:#0c0c10;padding:18px 28px 15px;overflow:hidden}
.control-demo-top{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#a3a3ac;font:11px var(--font)}
.demo-motion{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;min-width:84px;padding:8px 12px;border:1px solid #ffffff30;border-radius:7px;background:#1c1c23;color:#eeeef3;font:500 11px/1 var(--font);white-space:nowrap;flex-shrink:0;transition:background .15s,border-color .15s,transform .15s}
.demo-motion:hover{background:#2a2a33;border-color:#ffffff65}.demo-motion:active{transform:scale(.97)}.demo-motion:focus-visible{outline:2px solid #eeeeef;outline-offset:3px}
.demo-motion svg{display:block;width:15px;height:15px;flex-shrink:0;fill:currentColor;stroke:currentColor;stroke-width:.6;stroke-linejoin:round}.demo-motion-play{display:none}.demo-motion[aria-pressed=true] .demo-motion-pause{display:none}.demo-motion[aria-pressed=true] .demo-motion-play{display:block}
.control-demo-devices{display:grid;grid-template-columns:minmax(0,1.15fr) 100px minmax(0,1fr);align-items:center;gap:22px;max-width:900px;margin:24px auto 0}
.demo-desktop,.demo-phone{min-width:0}
.demo-monitor{height:166px;border:1px solid #ffffff40;border-radius:8px;background:#121218;padding:10px 15px}
.demo-window-bar{display:flex;align-items:center;gap:15px;font-size:9px;color:#9c9ca8}
.demo-window-dots{display:flex;gap:4px}.demo-window-dots i{width:4px;height:4px;background:#676773;border-radius:50%}
.demo-desktop-app{display:flex;align-items:center;gap:12px;padding-top:24px}
.demo-album{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;background:#282832;border:1px solid #ffffff18;border-radius:5px}
.demo-album svg{width:30px;height:30px;fill:none;stroke:#c8c8d3;stroke-width:1.5}
.demo-desktop-app>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.demo-desktop-app strong,.demo-phone-screen>strong{font-size:13px;font-weight:500;white-space:nowrap}
.demo-desktop-app small,.demo-phone-screen>small{font-size:10px;color:#9c9ca8}
.demo-wave{display:flex;align-items:center;gap:3px;height:22px;flex-shrink:0}
.demo-wave i{width:3px;height:18px;border-radius:2px;background:#eeeeef;animation:demo-level .9s ease-in-out infinite alternate}
.demo-wave i:nth-child(2){animation-delay:-.5s;height:11px}.demo-wave i:nth-child(3){animation-delay:-.2s;height:22px}.demo-wave i:nth-child(4){animation-delay:-.7s;height:9px}.demo-wave i:nth-child(5){animation-delay:-.3s;height:15px}
.demo-track,.demo-phone-progress{height:3px;background:#ffffff1c;border-radius:3px;overflow:hidden}
.demo-track{margin-top:18px}.demo-track i,.demo-phone-progress i{display:block;height:100%;width:43%;background:#d4d4df;border-radius:3px}
.demo-desktop-bottom{display:flex;justify-content:space-between;gap:6px;font-size:8px;color:#8d8d9b;margin-top:9px}
.demo-monitor-stand{height:18px;width:58px;border-bottom:2px solid #71717e;margin:auto;position:relative}
.demo-monitor-stand:before{content:'';position:absolute;left:calc(50% - 1px);height:100%;width:2px;background:#71717e}
.demo-device-label{display:flex;flex-direction:column;gap:4px;text-align:center;margin:18px 0 0;line-height:1.5}
.demo-device-label strong{font:500 12px var(--font);color:#eeeeef}.demo-device-label>span{font-size:11px;color:#9c9ca8}
.demo-connection{align-self:start;display:flex;flex-direction:column;gap:8px;margin-top:56px;text-align:center;font:9px var(--font);color:#9696a4}
.demo-signal{height:9px;position:relative;border-top:1px solid #ffffff25;margin-top:3px}
.demo-signal b{position:absolute;right:-1px;top:-9px;font:15px var(--font);color:#9a9aa7}.demo-signal-in b{left:-1px;right:auto}
.demo-signal i{position:absolute;top:-2px;left:0;width:5px;height:3px;background:#eeeef4;animation:demo-send 3.6s ease-in-out infinite}
.demo-signal-in i{animation-direction:reverse;animation-delay:-1.8s}
.demo-phone{padding-top:22px}
.demo-phone-frame{display:grid;grid-template-columns:32px minmax(0,1fr);height:144px;border:1px solid #ffffff50;border-radius:23px;padding:8px 14px 8px 8px;background:#08080b;box-shadow:inset 0 0 0 4px #16161c}
.demo-phone-rail{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:11px;font-size:12px;color:#686876;border-right:1px solid #ffffff12;margin-right:7px}
.demo-phone-rail i{font-style:normal}.demo-phone-rail i:first-child{color:#eeeeef}
.demo-phone-screen{display:flex;flex-direction:column;justify-content:center;padding:7px 8px;min-width:0}
.demo-phone-eyebrow{font-size:8px;color:#8c8c9b;margin-bottom:8px}.demo-phone-screen>small{margin-top:3px}
.demo-phone-controls{display:flex;align-items:center;gap:13px;margin-top:10px}
.demo-phone-progress{flex:1}
.demo-play{position:relative;display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#eeeef3;color:#101014}
.demo-play svg{display:block;width:15px;height:15px;fill:currentColor}.demo-play-icon{display:none}
.demo-tap{position:absolute;inset:-7px;border:1px solid #eeeeef;border-radius:50%;animation:demo-tap 3.6s ease-out infinite 1.8s;pointer-events:none;opacity:0}
.demo-footnote{text-align:center;font-size:10px;color:#8c8c9a;margin:24px 0 0}
.control-demo[data-playing=false] .demo-pause-icon{display:none}.control-demo[data-playing=false] .demo-play-icon{display:block}
.control-demo[data-playing=false] .demo-wave i{animation:none;transform:scaleY(.2)}
.control-demo[data-motion=paused] *,.control-demo[data-visible=false] *{animation-play-state:paused!important}
.demo-monitor{position:relative;height:190px}
.demo-desktop-app{padding-top:46px}
.demo-mini-island{position:absolute;left:50%;top:10px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;width:117px;height:27px;padding:3px;border:1px solid #ffffff3a;border-radius:20px;background:#08080a;color:#eeeeef}
.demo-mini-face{display:grid;place-items:center;width:18px;height:18px;flex-shrink:0;background:#ededf0;border-radius:50%}
.demo-mini-face svg{width:16px;height:16px;fill:#25251f}
.demo-mini-island strong{font:600 10px var(--font);letter-spacing:-.2px}
.demo-mini-levels{display:flex;align-items:center;gap:2px;height:8px;margin-left:auto}
.demo-mini-levels i{height:7px;width:1.5px;background:#dedee4;border-radius:1px}.demo-mini-levels i:nth-child(2){height:3px}.demo-mini-levels i:nth-child(3){height:5px}
@media(prefers-reduced-motion:no-preference){
 .control-demo-devices{--desktop-shift:-110px;--phone-shift:105px;--phone-enter:240px;--phone-scale:1.12;display:block;position:relative;height:314px;max-width:900px;margin-top:10px;isolation:isolate}
 .demo-desktop{position:absolute;top:15px;left:50%;width:440px;max-width:65%;transform-origin:center center;animation:demo-desktop-reveal 9s cubic-bezier(.4,0,.2,1) infinite;z-index:1;will-change:transform,opacity}
 .demo-desktop .demo-device-label{animation:demo-desktop-caption 9s ease infinite}
 .demo-phone{position:absolute;top:104px;left:50%;width:350px;max-width:58%;padding-top:0;transform-origin:center center;animation:demo-phone-reveal 9s cubic-bezier(.22,.7,.2,1) infinite;z-index:2;will-change:transform,opacity}
 .demo-phone-frame{height:150px;box-shadow:inset 0 0 0 4px #16161c,0 18px 35px #0009}
 .demo-phone .demo-device-label{margin-top:15px}
 .demo-mini-island{animation:demo-island-highlight 9s ease infinite}
 .control-demo-devices>.demo-connection{display:none}
 .control-demo:has(.demo-play:focus-visible) .demo-desktop,.control-demo:has(.demo-play:focus-visible) .demo-phone,.control-demo:has(.demo-play:focus-visible) .demo-device-label,.control-demo:has(.demo-play:focus-visible) .demo-mini-island{animation-play-state:paused}
}
@keyframes demo-desktop-reveal{0%,16%,100%{transform:translateX(-50%) translateY(0) scale(1);opacity:1}38%,76%{transform:translateX(-50%) translateX(var(--desktop-shift)) translateY(-8px) scale(.86);opacity:.55}94%{transform:translateX(-50%) translateY(0) scale(1);opacity:1}}
@keyframes demo-phone-reveal{0%,20%,92%,100%{transform:translateX(-50%) translateX(var(--phone-enter)) translateY(70px) scale(.72);opacity:0;visibility:hidden}42%,74%{transform:translateX(-50%) translateX(var(--phone-shift)) translateY(0) scale(var(--phone-scale));opacity:1;visibility:visible}}
@keyframes demo-desktop-caption{0%,18%,92%,100%{opacity:1}34%,78%{opacity:0}}
@keyframes demo-island-highlight{0%,8%,42%,100%{border-color:#ffffff3a;box-shadow:0 0 0 0 #ffffff00}20%,28%{border-color:#ffffffa0;box-shadow:0 0 0 5px #ffffff0b}}
@keyframes demo-level{to{transform:scaleY(.25)}}
@keyframes demo-send{0%,10%{left:0;opacity:0}20%{opacity:1}70%{opacity:1}90%,100%{left:calc(100% - 5px);opacity:0}}
@keyframes demo-tap{0%,60%,100%{transform:scale(.65);opacity:0}70%{opacity:.6}90%{transform:scale(1.3);opacity:0}}
@media(max-width:900px){.how-onbun-copy{gap:28px}.control-demo{padding-left:20px;padding-right:20px}.control-demo-devices{grid-template-columns:minmax(0,1.1fr) 58px minmax(0,1fr);gap:15px}.demo-desktop-app{gap:8px}.demo-wave{gap:2px}.demo-wave i{width:2px}.demo-monitor{padding:10px}.demo-desktop-app strong,.demo-phone-screen>strong{font-size:11px}.demo-device-label strong{font-size:11px}.demo-device-label>span{font-size:10px}}
@media(max-width:600px){.how-onbun-works{padding-bottom:35px}.how-onbun-copy{grid-template-columns:1fr;gap:18px;margin-bottom:24px}.how-onbun-copy h2{font-size:29px}.how-onbun-copy>p{font-size:13px}.control-demo{padding:12px 16px 16px}.control-demo-top{font-size:10px}.demo-motion{font-size:10px}.control-demo-devices{grid-template-columns:minmax(0,1fr);gap:0;max-width:290px;margin-top:20px}.demo-monitor{height:150px}.demo-desktop-app{padding-top:17px}.demo-desktop-app strong,.demo-phone-screen>strong{font-size:13px}.demo-desktop-app small,.demo-phone-screen>small{font-size:10px}.demo-device-label{margin-top:12px}.demo-device-label strong{font-size:12px}.demo-device-label>span{font-size:11px}.demo-connection{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;align-items:center;margin:20px auto 4px;width:170px}.demo-connection>span:first-child{grid-row:1;grid-column:1}.demo-connection>span:last-child{grid-row:1;grid-column:2}.demo-signal{margin:0}.demo-phone{padding-top:15px}.demo-phone-frame{height:132px;margin:0 5px}.demo-footnote{font-size:9px;margin-top:20px}.demo-desktop-bottom{font-size:8px}}
@keyframes demo-send-vertical{0%,10%{top:0;opacity:0}20%{opacity:1}70%{opacity:1}90%,100%{top:calc(100% - 5px);opacity:0}}
@media(max-width:600px){.demo-signal{height:24px;width:1px;border-top:0;border-left:1px solid #ffffff25;justify-self:center}.demo-signal b{left:-6px;right:auto;top:17px;transform:rotate(90deg)}.demo-signal-in b{top:-10px}.demo-signal i{left:-2px;top:0;width:3px;height:5px;animation-name:demo-send-vertical}}
@media(prefers-reduced-motion:reduce){.control-demo *{animation:none!important;transition:none!important}.demo-tap{display:none}.demo-motion{display:none}.demo-signal i{display:none}}

@media(max-width:900px) and (prefers-reduced-motion:no-preference){.control-demo-devices{--desktop-shift:-65px;--phone-shift:65px;--phone-enter:180px;--phone-scale:1.06}.demo-desktop{width:360px;max-width:70%}.demo-phone{width:300px;max-width:62%}}
@media(max-width:600px) and (prefers-reduced-motion:no-preference){.control-demo-devices{--desktop-shift:-24px;--phone-shift:3px;--phone-enter:70px;--phone-scale:.98;height:315px;max-width:290px;margin-top:20px}.demo-desktop{max-width:100%;width:280px;top:5px}.demo-monitor{height:174px}.demo-desktop-app{padding-top:44px}.demo-phone{max-width:none;width:calc(100% - 12px);top:112px}.demo-phone-frame{height:140px;margin:0}.control-demo-top>span{max-width:150px;line-height:1.5}.demo-phone .demo-device-label{margin-top:14px}}
@media(max-width:600px) and (prefers-reduced-motion:no-preference){.demo-window-bar>span:last-child{display:none}}
