/* Order UI — drop zones, progress ring and the order dialog (dark direction).
   Motion ported 1:1 from BYQ gems (dz01, ProgressRing). Typeface: Geist only. */

/* ================= Drop zones on the page ================= */
.dropzone{transition:border-color .25s ease,color .25s ease,background .25s ease,transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s ease}
.dropzone.is-over{transform:scale(1.02);border-style:solid;border-color:#fff;background:rgba(255,255,255,.08);box-shadow:inset 0 0 32px 0 rgba(255,255,255,.10),0 0 0 1px rgba(255,255,255,.22)}
.dropzone.is-over svg{animation:tarDzBounce .55s cubic-bezier(.16,1,.3,1) both;opacity:1}
.dropzone .dz-hint{transition:color .25s ease}
.dropzone.is-over .dz-hint{color:rgba(255,255,255,.8)}
@keyframes tarDzBounce{0%{transform:translateY(0)}35%{transform:translateY(-7px)}65%{transform:translateY(-4px)}85%{transform:translateY(-6px)}100%{transform:translateY(-5px)}}

.dz-wrap{position:relative}
.cta-grid .dz-wrap{align-self:center;width:100%}

.dz-ring{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;padding:1rem;color:#fff;text-align:center;pointer-events:none}
.dz-ring-wrap{position:relative;width:7rem;height:7rem;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.6);transition:opacity .3s ease .15s,transform .35s cubic-bezier(.34,1.56,.64,1) .15s}
.dz-ring-svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.dz-ring-track{fill:none;stroke:rgba(255,255,255,.16);stroke-width:4}
.dz-ring-arc{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-dasharray:314.16;stroke-dashoffset:314.16;transition:stroke .4s ease}
.dz-ring-check{fill:none;stroke:#fff;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:70;stroke-dashoffset:70;transition:stroke-dashoffset .45s cubic-bezier(.22,1,.36,1);transform-origin:60px 60px;transform:rotate(90deg)}
.dz-ring-pct{position:relative;z-index:1;font:400 1rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.02em;transition:opacity .2s ease}
.dz-ring-name,.dz-ring-meta,.dz-ring-actions{opacity:0;transition:opacity .3s ease .15s}
.dz-ring-name{max-width:90%;font-size:.875rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dz-ring-meta{font-size:.75rem;color:rgba(255,255,255,.6);min-height:1em}
.dz-ring-actions{display:flex;gap:.25rem}
.dz-ring-actions button{border:0;background:transparent;color:rgba(255,255,255,.7);font:500 .8rem/1 var(--sans);padding:.45rem .6rem;border-radius:.375rem;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.dz-ring-actions button:hover{background:rgba(255,255,255,.1);color:#fff}
.dz-wrap .dropzone>*{transition:opacity .22s ease,transform .22s ease}
.dz-wrap:not([data-state="idle"]) .dropzone{pointer-events:none;border-style:solid;border-color:color-mix(in srgb,#fff 30%,transparent);transition:border-color .3s ease,background .3s ease}
.dz-wrap:not([data-state="idle"]) .dropzone>*{opacity:0;transform:scale(.7)}
.dz-wrap:not([data-state="idle"]) .dz-ring{pointer-events:auto}
.dz-wrap:not([data-state="idle"]) .dz-ring>*{opacity:1}
.dz-wrap:not([data-state="idle"]) .dz-ring-wrap{transform:scale(1)}
.dz-wrap[data-state="done"] .dz-ring-check{stroke-dashoffset:0}
.dz-wrap[data-state="done"] .dz-ring-pct{opacity:0}
.dz-wrap[data-state="done"] .dz-ring-meta{color:#9ee6b8}
.dz-wrap[data-state="error"] .dz-ring-arc{stroke:#f4a092}
.dz-wrap[data-state="error"] .dz-ring-meta{color:#f4a092}
.dz-ring.no-anim .dz-ring-check,.dz-ring.no-anim .dz-ring-arc,.dz-ring.no-anim .dz-ring-wrap{transition:none}

/* ================= Order dialog (dark) ================= */
.om{
  --om-bg:#141414;--om-fg:#f2f0eb;--om-mute:rgba(242,240,235,.6);--om-faint:rgba(242,240,235,.4);
  --om-line:rgba(255,255,255,.1);--om-line-2:rgba(255,255,255,.18);--om-field:rgba(255,255,255,.04);
  --om-ok:#9ee6b8;--om-err:#f4a092;
  position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;
}
.om-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:omFade .25s ease}
.om-dialog{position:relative;width:100%;max-width:640px;max-height:min(90vh,880px);display:flex;flex-direction:column;background:var(--om-bg);color:var(--om-fg);color-scheme:dark;border:1px solid rgba(255,255,255,.08);border-radius:22px;box-shadow:0 40px 120px rgba(0,0,0,.5);overflow:hidden;animation:omIn .32s var(--ease)}
@keyframes omFade{from{opacity:0}}
@keyframes omIn{from{opacity:0;transform:translateY(14px) scale(.985)}}
.om :focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Head: "2 / 5" and one hairline */
.om-head{padding:22px 36px 0;flex:none}
.om-head-row{display:flex;align-items:center;justify-content:space-between}
.om-steplabel{font:500 12px/1 var(--sans);letter-spacing:.06em;color:var(--om-faint);font-variant-numeric:tabular-nums}
.om-close{width:36px;height:36px;margin-right:-8px;border-radius:50%;border:0;background:transparent;color:var(--om-mute);display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}
.om-close:hover{background:rgba(255,255,255,.07);color:var(--om-fg)}
.om-close svg{width:14px;height:14px}
.om-progress{display:flex;height:1px;margin-top:14px;background:var(--om-line)}
.om-progress span{flex:1;background:transparent;transition:background .45s var(--ease)}
.om-progress span.is-done{background:var(--om-fg)}

/* The file: one quiet line. Shown in the material step only — elsewhere only while uploading or on error. */
.om-file{display:flex;align-items:center;gap:12px;margin-top:18px;overflow:hidden;max-height:80px}
.om-dialog:not(:has(.om-step[data-step="brief"]:not([hidden]))) .om-file.is-done{display:none}
.om-file-icon{display:none}
.om-file-main{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,auto) 1fr;column-gap:12px;row-gap:8px;align-items:baseline}
.om-file-name{font-size:13px;color:var(--om-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-file-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--om-mute);white-space:nowrap}
.om-file.is-done .om-file-meta{color:var(--om-ok)}
.om-file.is-error .om-file-meta{color:var(--om-err);white-space:normal}
.om-file-bar{grid-column:1/-1;position:relative;height:1px;background:var(--om-line);overflow:hidden}
.om-file-bar span{position:absolute;inset:0 auto 0 0;width:0;background:var(--om-fg);transition:width .08s linear}
.om-file.is-done .om-file-bar,.om-file.is-error .om-file-bar{display:none}
.om-file-actions{display:flex;gap:2px;flex:none}
.om-file.is-enter{animation:tarChipIn .32s cubic-bezier(.16,1,.3,1) both}
.om-file.is-leaving{animation:tarChipOut .28s cubic-bezier(.4,0,1,1) forwards;pointer-events:none}
.om-file-meta.is-in{animation:tarDoneIn .25s cubic-bezier(.16,1,.3,1) both}
@keyframes tarChipIn{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes tarChipOut{to{opacity:0;transform:translateX(-8px) scale(.96);max-height:0;margin-top:0}}
@keyframes tarDoneIn{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}
.ok-check{width:.875rem;height:.875rem;flex:none}

.om-linkbtn{background:none;border:0;padding:6px 8px;border-radius:8px;font:500 12px/1 var(--sans);color:var(--om-mute);cursor:pointer;transition:background .15s,color .15s}
.om-linkbtn:hover{background:rgba(255,255,255,.07);color:var(--om-fg)}
#om-file-remove:hover{color:var(--om-err)}

/* Body */
.om-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:32px 36px 8px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.om-step h2{font-family:var(--sans);font-weight:600;font-size:clamp(28px,3.6vw,34px);line-height:1.1;letter-spacing:-.035em;margin:0 0 10px;color:var(--om-fg)}
.om-step h2:focus{outline:none}
.om-intro{color:var(--om-mute);font-size:15px;line-height:1.55;margin:0 0 28px}

/* Audit options: rows on hairlines */
.om-options{border-top:1px solid var(--om-line)}
.om-options::after{content:"All prices in CHF, incl. VAT";display:block;margin-top:14px;font-size:12px;color:var(--om-faint)}
.om-option{position:relative;display:flex;align-items:center;gap:16px;padding:18px 6px;border-bottom:1px solid var(--om-line);cursor:pointer;transition:background .15s}
.om-option:hover{background:rgba(255,255,255,.025)}
.om-option input{position:absolute;opacity:0;pointer-events:none}
.om-option:has(input:focus-visible){outline:2px solid #fff;outline-offset:-2px;border-radius:8px}
.om-radio{flex:none;width:18px;height:18px;border-radius:50%;border:1px solid var(--om-line-2);display:grid;place-items:center;transition:border-color .2s}
.om-radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--om-fg);transform:scale(0);transition:transform .2s var(--ease)}
.om-option:has(input:checked) .om-radio{border-color:var(--om-fg)}
.om-option:has(input:checked) .om-radio::after{transform:scale(1)}
.om-opt-main,.om-opt-main>span,.om-opt-price{display:block}
.om-opt-main{flex:1;min-width:0}
.om-opt-name{font-size:16px;font-weight:500;letter-spacing:-.01em}
.om-opt-turn{font-size:13px;color:var(--om-faint);margin-top:3px}
.om-opt-desc{display:none!important;font-size:13px;line-height:1.5;color:var(--om-mute);margin-top:8px;max-width:30em}
.om-option:has(input:checked) .om-opt-desc{display:block!important}
.om-opt-price{flex:none;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.om-opt-price small{display:none}

/* Fields */
.om-field{margin-bottom:22px}
.om-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.om-label{display:block;font-size:13px;font-weight:500;color:var(--om-mute);margin-bottom:8px;padding:0}
.om-label .opt{color:var(--om-faint);font-weight:400}
.om-input,.om-select,.om-textarea{display:block;width:100%;min-height:50px;padding:13px 16px;border:1px solid var(--om-line-2);border-radius:12px;background:var(--om-field);color:var(--om-fg);font-size:16px;line-height:1.4;-webkit-appearance:none;appearance:none;transition:border-color .15s,background .15s,box-shadow .15s}
.om-input::placeholder,.om-textarea::placeholder{color:var(--om-faint)}
.om-input:hover,.om-select:hover,.om-textarea:hover{border-color:rgba(255,255,255,.3)}
.om-input:focus,.om-select:focus,.om-textarea:focus{outline:none;border-color:var(--om-fg);background:rgba(255,255,255,.06);box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.om-select{padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23f2f0eb' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 18px center}
.om-select option{background:#1c1c1c;color:#f2f0eb}
.om-textarea{min-height:112px;resize:vertical}
.om-input[aria-invalid="true"],.om-select[aria-invalid="true"],.om-textarea[aria-invalid="true"]{border-color:var(--om-err);box-shadow:0 0 0 3px rgba(244,160,146,.12)}
.om-error{display:none;font-size:13px;color:var(--om-err);margin-top:8px}
.om-error.is-on{display:block}

.om-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:var(--om-field);border:1px solid var(--om-line);border-radius:999px}
.om-seg label{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;font-size:15px;color:var(--om-mute);cursor:pointer;transition:background .2s,color .2s}
.om-seg label:hover{color:var(--om-fg)}
.om-seg input{position:absolute;opacity:0;pointer-events:none}
.om-seg label:has(input:checked){background:var(--om-fg);color:#141414}
.om-seg label:has(input:focus-visible){outline:2px solid #fff;outline-offset:2px}

.om-divider{display:flex;align-items:center;gap:12px;color:var(--om-faint);font-size:12px;margin:16px 0}
.om-divider::before,.om-divider::after{content:"";flex:1;height:1px;background:var(--om-line)}
.om .dropzone.is-light{gap:4px;padding:22px 18px;border:1px dashed var(--om-line-2);border-radius:14px;background:transparent;color:var(--om-fg)}
.om .dropzone.is-light:hover,.om .dropzone.is-light:focus-visible{border-color:rgba(255,255,255,.45);border-style:solid;background:var(--om-field)}
.om .dropzone.is-light.is-over{border-color:var(--om-fg);background:rgba(255,255,255,.06);box-shadow:none}
.om .dropzone.is-light .dz-title{font-size:15px;font-weight:500}
.om .dropzone.is-light .dz-sub{font-size:13px;color:var(--om-mute)}

/* NDA */
.om-nda{max-height:min(36vh,300px);overflow-y:auto;padding:18px 4px 18px 0;margin-bottom:22px;border-top:1px solid var(--om-line);border-bottom:1px solid var(--om-line);font-size:14px;line-height:1.7;color:var(--om-mute);scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}
.om-nda h3{font-size:14px;font-weight:500;letter-spacing:0;line-height:1.4;color:var(--om-fg);margin:16px 0 4px}
.om-nda h3:first-child{margin-top:0}
.om-nda ul{padding-left:18px;margin:4px 0}
.om-nda p+p{margin-top:8px}
.om-nda .om-nda-sign{margin-top:18px;padding-top:14px;border-top:1px solid var(--om-line);font-size:12px;letter-spacing:.01em;color:var(--om-faint)}
.om-check{display:flex;gap:14px;align-items:flex-start;cursor:pointer;font-size:15px;line-height:1.55;color:var(--om-fg)}
.om-check input{flex:none;width:20px;height:20px;margin:2px 0 0;-webkit-appearance:none;appearance:none;border:1px solid var(--om-line-2);border-radius:6px;background:var(--om-field);cursor:pointer;transition:background .15s,border-color .15s}
.om-check input:checked{background:var(--om-fg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 5' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;border-color:var(--om-fg)}
.om-check input[aria-invalid="true"]{border-color:var(--om-err)}

/* Review */
.om-summary{border-top:1px solid var(--om-line);margin-bottom:28px}
.om-sum-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 0;border-bottom:1px solid var(--om-line);font-size:14px}
.om-sum-label{font-size:12px;color:var(--om-faint);margin-bottom:3px}
.om-sum-val{color:var(--om-fg);word-break:break-word;line-height:1.45}
.om-sum-total{display:flex;justify-content:space-between;align-items:baseline;padding:18px 0 0;font-size:15px;color:var(--om-mute)}
.om-sum-total>span:last-child{font-size:26px;font-weight:600;line-height:1;color:var(--om-fg);letter-spacing:-.035em}
.om-sum-total small{font-size:12px;font-weight:400;color:var(--om-faint);margin-left:8px;letter-spacing:0}

.om-pay{min-height:170px;position:relative}
.om-pay-loading{display:grid;gap:10px}
.om-skel{height:50px;border-radius:12px;background:linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.08) 50%,rgba(255,255,255,.04) 75%);background-size:200% 100%;animation:omSkel 1.3s infinite linear}
.om-skel.short{width:55%}
@keyframes omSkel{to{background-position:-200% 0}}
.om-wait{display:flex;gap:10px;align-items:center;padding:14px 16px;border-radius:12px;background:var(--om-field);border:1px solid var(--om-line);font-size:14px;color:var(--om-mute);margin-bottom:14px}
.om-alert{display:none;gap:10px;padding:12px 16px;border-radius:12px;background:rgba(244,160,146,.08);border:1px solid rgba(244,160,146,.3);color:var(--om-err);font-size:14px;line-height:1.5;margin-top:14px}
.om-alert.is-on{display:flex}
.om-secure{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;color:var(--om-faint);margin:16px 0 4px;text-align:center}
.om-secure svg{width:12px;height:13px;flex:none}
.om-demo{display:flex;gap:10px;align-items:center;padding:16px;border-radius:12px;background:var(--om-field);border:1px dashed var(--om-line-2);font-size:14px;color:var(--om-mute)}

/* Footer actions */
.om-foot{display:flex;gap:10px;padding:20px 36px 28px;flex:none;background:var(--om-bg)}
.om .btn{border-radius:999px;min-height:52px;font-weight:500;font-size:15px}
.om .btn-primary{background:var(--om-fg);color:#141414}
.om .btn-primary:hover{background:#fff}
.om .btn-primary:disabled{background:rgba(255,255,255,.12);color:var(--om-faint);cursor:not-allowed}
.om .btn-outline{background:transparent;border-color:var(--om-line-2);color:var(--om-fg)}
.om .btn-outline:hover{border-color:rgba(255,255,255,.45)}
.om .btn-outline:disabled{opacity:.4}
.om-foot .btn-primary{flex:1}
.om-foot .btn-outline{min-width:104px}

/* Done */
.om-done{text-align:center;padding:28px 0 28px}
.om-done-mark{width:68px;height:68px;border-radius:50%;border:1px solid var(--om-line-2);color:var(--om-ok);display:grid;place-items:center;margin:0 auto 28px}
.om-done-mark svg{width:26px;height:26px}
.om-done-mark.is-pending{color:var(--om-fg)}
.om-done h2{max-width:440px;margin:0 auto 12px}
.om-done p{color:var(--om-mute);max-width:420px;margin:0 auto}
.om-ref{display:inline-block;margin:22px 0 30px;padding:7px 14px;border:1px solid var(--om-line-2);border-radius:999px;font:400 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.03em;color:var(--om-mute)}
.om-next{text-align:left;max-width:420px;margin:0 auto 32px;border-top:1px solid var(--om-line)}
.om-next li{list-style:none;display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--om-line);font-size:14px;line-height:1.5;color:var(--om-mute)}
.om-next b{flex:none;width:22px;height:22px;border-radius:50%;border:1px solid var(--om-line-2);font-size:11px;font-weight:500;color:var(--om-fg);display:grid;place-items:center}
.om-done .btn-primary{min-width:180px}

@media (max-width:600px){
  .om{padding:0;align-items:flex-end}
  .om-dialog{max-width:none;max-height:94vh;border-radius:22px 22px 0 0;border-bottom:0}
  .om-head,.om-body,.om-foot{padding-left:22px;padding-right:22px}
  .om-body{padding-top:26px}
  .om-step h2{font-size:28px}
  .om-row{grid-template-columns:1fr}
  .om-file-actions .om-linkbtn{padding:6px 5px}
  .om-foot{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}

@media (prefers-reduced-motion:reduce){
  .dropzone.is-over{transform:none}
  .dropzone.is-over svg{animation:none;transform:translateY(-4px)}
  .om-file.is-enter,.om-file-meta.is-in,.om-dialog,.om-backdrop{animation:none}
  .om-file.is-leaving{animation:none;opacity:0}
  .dz-ring-wrap,.dz-ring-check,.dz-ring-arc,.dz-ring-pct,.dz-ring>*,.dz-wrap .dropzone>*{transition-duration:.001ms!important;transition-delay:0s!important}
}
