/* order 8 (25-11): the black POS machine and the phone. Our own drawings in % and container units; src/devices.mjs draws them. Light and dark; never mirrored. */
:root{--pos-shape:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 412 1008' preserveAspectRatio='none'%3E%3Cpath d='M40 0H372Q412 0 412 40V600C412 656 404 680 404 740V956Q404 1008 352 1008H60Q8 1008 8 956V740C8 680 0 656 0 600V40Q0 0 40 0Z'/%3E%3C/svg%3E");--pos-side:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1008' preserveAspectRatio='none'%3E%3Cpath d='M0 70Q0 36 26 36H76Q94 36 95 62L97 140C98 196 74 226 62 258L56 300V952Q56 1008 26 1008H30Q0 1008 0 950Z'/%3E%3C/svg%3E")}
.pos{position:relative;aspect-ratio:412/1008;direction:ltr}
.pos>*{position:absolute}
.pos-shade{left:1%;right:1%;top:1%;bottom:0;border-radius:10%/4.2%;box-shadow:var(--wc-sh,0 24px 60px -28px rgba(10,40,60,.35))}
.pos-keys,.pos-face{inset:0;width:100%;height:100%;overflow:visible}
.pos-body{inset:0;background:linear-gradient(180deg,rgba(255,255,255,.10) 0,rgba(255,255,255,0) 28%,rgba(0,0,0,0) 80%,rgba(0,0,0,.22) 100%),linear-gradient(180deg,#4a505a 0,#2d3138 5.5%,#22252b 9.92%,rgba(0,0,0,0) 9.92%),linear-gradient(90deg,#454b55 0,#2c3037 3.5%,#202329 50%,#16181c 96.5%,#30343b 100%);-webkit-mask:var(--pos-shape) center/100% 100% no-repeat;mask:var(--pos-shape) center/100% 100% no-repeat}
.pos-screen{left:6.311%;width:87.379%;top:14.881%;height:79.365%;overflow:hidden;border-radius:1.7%/.75%;background:#fff;container-type:inline-size}
.pos-edge{stroke:#0b0c0e}
.pos-word{font-family:var(--head),system-ui,sans-serif;font-weight:700}
.pos-bar{position:absolute;left:0;right:0;top:0;height:3%;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:0 4.5%;background:#eef1f4;font:500 3.1cqw/1 var(--head),system-ui,sans-serif;color:#3a403e}
.pos-bar svg{height:2.4cqw;width:auto}
.dv-si{display:flex;align-items:center;gap:1.4cqw}
.pos-screen .dv-shot{position:absolute;left:0;top:3%;width:100%;height:97%;max-width:none;border-radius:0;object-fit:fill}
[data-theme=dark] .pos-edge{stroke:#fff;stroke-opacity:.30}
[data-theme=dark] .pos-screen:has(.td){background:#111827}
[data-theme=dark] .pos-screen:has(.td) .pos-bar{background:#111827;color:#f4f6f5}
/* angled view: CSS 3D in container units */
.pos3d{position:relative;container-type:inline-size;aspect-ratio:100/136;direction:ltr}
.pos3d-desk{position:absolute;left:6%;right:6%;bottom:4%;height:12%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,12,24,.34),rgba(0,12,24,0))}
.pos3d-stage{position:absolute;inset:0;perspective:320cqw;perspective-origin:60% 45%}
.pos3d-tilt{position:absolute;left:18cqw;top:6cqw;width:50cqw;aspect-ratio:412/1008;transform-style:preserve-3d;transform:rotateY(-32deg);transform-origin:50% 60%}
.pos3d-tilt>.pos{position:absolute;inset:0;width:100%}
.pos3d-tilt>.pos .pos-shade{display:none}
.pos3d-side{position:absolute;left:calc(100% - 1.2cqw);top:0;width:12.2cqw;height:100%;transform-origin:0 0;transform:rotateY(90deg);background:linear-gradient(90deg,#3a3f47 0,#2b2f36 30%,#1c1f24 75%,#15171b);-webkit-mask:var(--pos-side) 0 0/100% 100% no-repeat;mask:var(--pos-side) 0 0/100% 100% no-repeat}
.pos3d-side svg{position:absolute;inset:0;width:100%;height:100%}
[data-theme=dark] .pos3d-desk{background:radial-gradient(closest-side,rgba(0,0,0,.6),rgba(0,0,0,0))}
/* phone */
.iph{position:relative;aspect-ratio:480/980;direction:ltr}
.iph>*{position:absolute}
.iph-keys{inset:0;width:100%;height:100%;overflow:visible}
.iph-body{inset:0;border-radius:17.5%/8.57%;background:linear-gradient(180deg,rgba(255,255,255,.25) 0,rgba(255,255,255,0) 6%,rgba(0,0,0,0) 94%,rgba(0,0,0,.25) 100%),linear-gradient(90deg,#8e9298 0,#c9ccd1 4%,#6f737a 9%,#5d6168 50%,#6f737a 91%,#c2c5ca 96%,#83878d 100%);box-shadow:var(--wc-sh,0 24px 60px -28px rgba(10,40,60,.35))}
.iph-bezel{left:1.04%;right:1.04%;top:.51%;bottom:.51%;border-radius:16.8%/8.15%;background:#0a0b0d;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)}
.iph-screen{left:5%;width:90%;top:2.449%;height:95.102%;border-radius:14.35%/6.65%;overflow:hidden;background:#fff;container-type:inline-size}
.iph-bar{position:absolute;left:0;right:0;top:0;height:6.2%;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:1.2% 8.5% 0 11%;background:#fff;font:600 4.1cqw/1 var(--head),system-ui,sans-serif;color:#111;letter-spacing:-.01em}
.iph-bar svg{height:3.2cqw;width:auto}
.iph-screen .dv-shot{position:absolute;left:0;top:6.2%;width:100%;height:auto;max-width:none;border-radius:0}
.iph-home{position:absolute;left:32.5%;width:35%;bottom:.9%;height:.55%;border-radius:999px;background:rgba(0,0,0,.82);z-index:2}
.iph-island{inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
[data-theme=dark] .iph-screen:has(.td){background:#1f2937}
[data-theme=dark] .iph-screen:has(.td) .iph-bar{background:#1f2937;color:#f4f6f5}
[data-theme=dark] .iph-screen:has(.td) .iph-home{background:rgba(255,255,255,.7)}
/* where they stand: the machine 312 wide (screen 272) and the phone 328 wide (screen 295), so the small text of the till stays 9 px or more */
.dv-sec{padding:88px 0}
.dv-a,.dv-b{display:grid;gap:56px;align-items:center;padding:48px;border-radius:32px;background:linear-gradient(160deg,var(--wc-tint,var(--c1)),var(--wc-tint2,var(--c1)))}
.dv-a{grid-template-columns:minmax(0,1fr) 300px;margin-top:48px}
.dv-b{grid-template-columns:minmax(0,1fr) 312px 328px;gap:48px;align-items:end;margin-top:40px}
.dv-a .wc-fr,.dv-a .frame{margin:0}
.dv-tx{align-self:center}
.dv-tx h3{margin:0;font:700 24px/1.25 var(--head);color:var(--wc-ink,var(--ink))}
.dv-tx p{margin:8px 0 0;color:var(--txt);font-size:16px;line-height:1.55}
.dv-tx>div+div{margin-top:32px}
.dv-c{margin:0;min-width:0}
.dv-c figcaption{margin:24px 0 0;text-align:center}
.dv-c figcaption b{display:block;font:700 18px/1.3 var(--head);color:var(--wc-ink,var(--ink))}
.dv-c figcaption span{display:block;margin-top:4px;color:var(--txt);font-size:15px;line-height:1.5}
.dv-three{display:grid;grid-template-columns:repeat(3,minmax(0,312px));justify-content:center;gap:56px;margin-top:48px}
/* hero pair: the photo, the counter screen, the machine in front of its far edge */
.wc-stage.has-dv{min-height:790px;display:flow-root}
.wc-stage.has-dv .wc-ph{width:30%}.wc-stage.has-dv .wc-ph img{object-position:var(--dv-pos,91%) 50%}
.wc-stage.has-dv .wc-fr{width:70%;margin-inline-start:7.5%;margin-top:64px}
.wc-stage .dv-st{position:absolute;z-index:2;inset-inline-end:0;bottom:0;width:285px}
@media(max-width:1280px){.wc-stage .dv-st{width:262px}.dv-b{grid-template-columns:minmax(0,1fr) 290px 306px;gap:32px;padding:40px}.dv-a{padding:40px;gap:40px}}
@media(max-width:1000px){.wc-stage.has-dv{min-height:0}.wc-stage.has-dv .wc-ph{width:100%}.wc-stage.has-dv .wc-ph img{object-position:50% 35%}.wc-stage.has-dv .wc-fr{width:calc(100% - 24px);margin:-64px auto 0}.wc-stage .dv-st{position:static;width:280px;margin:36px auto 0}.dv-a{grid-template-columns:minmax(0,1fr)}.dv-b{grid-template-columns:1fr 1fr;justify-items:center}.dv-b .dv-tx{grid-column:1/-1;justify-self:start}.dv-b>.dv-d{width:min(100%,290px)}.dv-three{gap:28px}}
@media(max-width:820px){.dv-three{grid-template-columns:minmax(0,290px);gap:44px}}
@media(max-width:700px){.dv-sec{padding:56px 0}.dv-a,.dv-b{padding:24px 18px;border-radius:24px}.dv-b{grid-template-columns:1fr;gap:40px}}
/* one device beside its words */
.dv-sec1{padding:56px 0}
.dv-s{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:72px;align-items:center}
.dv-s2 .dv-sp{order:2}
.dv-sp{display:flex;justify-content:center;padding:56px 24px;border-radius:32px;background:linear-gradient(160deg,var(--wc-tint,var(--c1)),var(--wc-tint2,var(--c1)))}
.dv-sd{width:min(100%,328px)}
.dv-st2 p{margin-top:12px;color:var(--txt);font-size:18px;line-height:1.6}
@media(max-width:900px){.dv-s{grid-template-columns:1fr;gap:28px}.dv-s2 .dv-sp{order:0}.dv-sp{padding:32px 16px;border-radius:24px}.dv-sd{width:min(100%,290px)}}
/* headings of the device sections, also where wc.css is not on the page */
.dv-h{margin:0;font:800 clamp(26px,2.6vw,36px)/1.2 var(--head);letter-spacing:-.01em;color:var(--ink)}
.dv-h1{font-size:clamp(28px,3.2vw,44px)}
.dv-hd{max-width:980px;margin:0 auto;text-align:center}
.dv-hd p{margin-top:14px;color:var(--txt);font-size:18px;line-height:1.6}
.dv-a .fx{margin:0}
/* the counter screen in a window frame on pages without wc.css (home) */
.dv-fr{margin:0;border-radius:18px;overflow:hidden;background:var(--card);border:1px solid var(--line);box-shadow:0 24px 60px -28px rgba(10,40,60,.35)}
.dv-fr img{width:100%;height:auto}
.dv-fr .wc-fbar{display:flex;gap:7px;align-items:center;height:34px;padding:0 16px;background:var(--bg2);border-bottom:1px solid var(--line)}
.dv-fr .wc-fbar i{width:10px;height:10px;border-radius:50%;background:var(--line)}
[dir=rtl] .wc-stage.has-dv{--dv-pos:46%}
/* order 9: the looks of the till */
.lk-ctl{display:flex;flex-direction:column;gap:14px;align-items:center;margin-top:36px}
.lk:not(.js) .lk-ctl{display:none}
.lk-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px}
.lk-lab{font:600 14px/1 var(--head);color:var(--txt)}
.lk-bs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.lk-b{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font:600 14px/1 var(--head);cursor:pointer}
.lk-b i{width:16px;height:16px;border-radius:50%}
.lk-b[aria-pressed=true]{border-color:var(--pri);box-shadow:inset 0 0 0 1px var(--pri)}
.lk-b:focus-visible{outline:3px solid var(--pri);outline-offset:2px}
.lk .wrap{max-width:1320px}
.lk-g{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:center;margin-top:36px;padding:40px;border-radius:32px;background:linear-gradient(160deg,var(--wc-tint,var(--c1)),var(--wc-tint2,var(--c1)))}
.lk-c{display:none}
.lk-p+.lk-p{margin-top:32px}
.lk-n{margin:0 0 10px;font:700 18px/1.3 var(--head);color:var(--ink)}
.lk.js .lk-n{display:none}
.lk.js .lk-p{display:none;margin:0}
.lk.js .lk-p.on{display:block}
.lk[data-t=light] .lk-p img.tl,.lk[data-t=dark] .lk-p img.td{display:block!important}
.lk[data-t=light] .lk-p img.td,.lk[data-t=dark] .lk-p img.tl{display:none!important}
.lk[data-t=light] .pos-screen:has(.td),.lk[data-t=light] .pos-screen .pos-bar{background:#eef1f4!important;color:#3a403e!important}
.lk[data-t=dark] .pos-screen:has(.td),.lk[data-t=dark] .pos-screen .pos-bar{background:#111827!important;color:#f4f6f5!important}
.lk-s{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:40px}
.lk-a{display:block;text-decoration:none;color:var(--txt)}
.lk-a>span{display:block;margin-top:14px;font-size:15px}
.lk-a b{color:var(--ink)}
@media(max-width:1000px){.lk-g{grid-template-columns:minmax(0,1fr);padding:24px 18px}.lk-m{width:min(100%,290px);margin:0 auto}}
@media(max-width:760px){.lk-s{grid-template-columns:1fr;gap:28px}}
.wc-stage.has-dv .wc-ph{inset-block:0 120px}
/* phone: the hero shows the photo and the machine; the wide counter frame scrolls sideways in its own box further down */
@media(max-width:700px){.wc-stage.has-dv .wc-fr{display:none}.wc-stage.has-dv .dv-st{margin-top:-72px;position:relative}.dv-x{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px}.dv-x .wc-fr{width:760px}}
.dv-x:focus-visible{outline:3px solid var(--pri);outline-offset:3px}
.wc-stage.has-dv{margin-bottom:56px}
