/* Scan-IT Desktop for the product hero (Pages/Shared/Sections/HeroApps/_ScanDesktopWindow.cshtml): the desktop scan
   app's start screen – orange header, the big Scan button with its halo, the scan modes – laid out like the real
   app, in a light Windows window. Builds on app-window.css (frame, keyframes); loaded only by the partial.
   No Tailwind, no site tokens. Colours sampled from the app. */

.tec-appwin--scandesktop {
  --sd-orange: #ff9800;
  --sd-halo: #ffdba6;
  --sd-mode: #f7f7f7;

  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #222;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.tec-appwin--scandesktop i { font-style: normal; }

.tec-appwin__sd-title { position: relative; flex: none; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #f3f3f3; font-size: 11px; color: #333; }
.tec-appwin__sd-title > svg { width: 14px; height: 14px; }
.tec-appwin__sd-controls { margin-left: auto; display: flex; gap: 20px; }
.tec-appwin__sd-controls svg { width: 10px; height: 10px; }

/* ---- header ---- */
.tec-appwin__sd-header { position: relative; flex: none; height: 118px; background: var(--sd-orange); color: #fff; }
.tec-appwin__sd-actions { position: absolute; right: 12px; top: 10px; display: flex; gap: 16px; }
.tec-appwin__sd-actions svg { width: 17px; height: 17px; }
.tec-appwin__sd-logo { position: absolute; left: 50%; top: 32px; display: flex; align-items: center; gap: 6px; transform: translateX(-50%); opacity: .82; white-space: nowrap; }
.tec-appwin__sd-logo svg { width: 26px; height: 26px; }
.tec-appwin__sd-logo span { font-size: 13px; font-weight: 600; line-height: 1.05; }
.tec-appwin__sd-logo small { display: block; font-size: 6.5px; letter-spacing: .04em; }
.tec-appwin__sd-heading { position: absolute; left: 12px; bottom: 16px; font-size: 15px; font-weight: 600; }
.tec-appwin__sd-tools { position: absolute; right: 10px; bottom: 9px; display: flex; gap: 6px; }
.tec-appwin__sd-tools i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.tec-appwin__sd-tools svg { width: 15px; height: 15px; }

/* ---- body ---- */
.tec-appwin__sd-body { position: relative; flex: 1; min-height: 0; margin-top: -8px; border-radius: 12px 12px 0 0; background: #fff; }
.tec-appwin__sd-scan { position: absolute; left: 50%; top: 40%; width: 150px; height: 150px; transform: translate(-50%, -50%); }
.tec-appwin__sd-halo { position: absolute; inset: 0; border-radius: 50%; background: var(--sd-halo); box-shadow: 0 0 0 6px #fff1dc; opacity: .9; }
.tec-appwin__sd-button { position: absolute; inset: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 50%; background: var(--sd-orange); color: #fff; }
.tec-appwin__sd-button svg { width: 38px; height: 38px; }
.tec-appwin__sd-button b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.tec-appwin__sd-modes { position: absolute; left: 50%; bottom: 26%; display: flex; gap: 14px; transform: translateX(-50%); }
.tec-appwin__sd-modes span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 58px; height: 58px; border-radius: 11px; background: var(--sd-mode); text-align: center; }
.tec-appwin__sd-modes svg { width: 20px; height: 20px; }
.tec-appwin__sd-modes small { font-size: 8px; line-height: 1.1; color: #8a8a8a; }
.tec-appwin__sd-modes .is-on small { font-weight: 600; color: #222; }
.tec-appwin__sd-keyboard { position: absolute; right: 16px; bottom: 32%; width: 30px; }
.tec-appwin__sd-keyboard svg { display: block; width: 30px; height: 24px; }

@container (max-width: 520px) {
  .tec-appwin__sd-header { height: 100px; }
  .tec-appwin__sd-logo { top: 28px; }
  .tec-appwin__sd-scan { width: 124px; height: 124px; }
  .tec-appwin__sd-button { inset: 14px; }
  .tec-appwin__sd-modes { bottom: 14%; gap: 10px; }
  .tec-appwin__sd-keyboard { display: none; }
}

/* ---- animation: the Scan button's halo pulses outward ---- */
.tec-appwin__sd-halo--2 { opacity: 0; }
.tec-appwin__sd-halo--2 { animation: tec-appwin-halo 1.6s ease-out var(--aw-start) 3; }
@keyframes tec-appwin-halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
