/* minfo.com screen app: a visitor's image or video on a TV or cinema screen.
   Uses the site tokens (site.css). Signal Orange marks the corners only. */
.sapp { max-width: 1400px; margin: 0 auto; padding: clamp(32px, 7vh, 72px) max(16px, 2.5vw); }
.sapp__head { max-width: 46rem; margin-bottom: 24px; }
.sapp__title { margin: 0 0 8px; font-family: 'Cabinet Grotesk', 'Satoshi', sans-serif; font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.sapp__desc { margin: 0; color: var(--body); }
.sapp__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; align-items: start; }
.sapp__view { min-width: 0; }

/* the photo, the zoom layer and the corner overlay */
.sapp__stage {
  position: relative; overflow: hidden; margin: 0 auto;
  aspect-ratio: var(--ar, 16 / 10); width: min(100%, calc(72vh * var(--arn, 1.6)));
  border-radius: 16px; background: #111; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 20px 50px -24px var(--shadow);
}
.sapp__zoom { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 0.35s ease; }
.sapp--still .sapp__zoom { transition: none; }
.sapp__photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sapp__surface { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; container-type: size; pointer-events: none; }
.sapp__media { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
.sapp__placeholder {
  width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 2cqh;
  background: radial-gradient(120% 90% at 30% 20%, #ffd29a 0%, #f99d32 45%, #8a4b0c 100%); color: #2a2a2c;
  font-weight: 700; font-size: 7cqh; text-align: center;
}
.sapp__placeholder .wm { font-size: 22cqh; line-height: 1; }
.sapp__placeholder .wm__m { color: #ffffff; }
.sapp__shade, .sapp__glare { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sapp__shade { mix-blend-mode: multiply; }
.sapp__glare { mix-blend-mode: screen; }

.sapp__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sapp__lines polygon { fill: rgb(249 157 50 / 0.06); stroke: #f99d32; stroke-width: 1.5; stroke-dasharray: 6 5; }
.sapp--zoomed .sapp__lines polygon { fill: none; }

/* a corner: a 44px target, a ring with an open centre so the exact point stays visible */
.sapp__handle {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: grab; touch-action: none;
}
.sapp__handle::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(0 0 0 / 0.55); }
.sapp__handle::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #f99d32; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6); }
.sapp__handle span { position: absolute; right: -8px; top: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #2a2a2c; color: #fff; font: 700 12px/20px 'Satoshi', system-ui, sans-serif; }
.sapp__handle:active { cursor: grabbing; }
.sapp__handle--snapped::before { border-color: #f99d32; box-shadow: 0 0 0 3px rgb(249 157 50 / 0.35), inset 0 0 0 1px rgb(0 0 0 / 0.55); }
.sapp__handle--snapped span { background: #f99d32; color: #2a2a2c; }
.sapp__handle:focus-visible { outline: 2px solid #f99d32; outline-offset: 0; }
.sapp--zoomed .sapp__stage { cursor: crosshair; }

.sapp__loupe { position: absolute; left: 0; top: 0; width: 128px; height: 128px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); background: #111; pointer-events: none; }

.sapp__zoombar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.sapp__zoombar[hidden] { display: none; }
.sapp__zoomtext { margin: 0; font-weight: 700; }
.sapp__zoombtns { display: flex; flex-wrap: wrap; gap: 8px; }
.sapp__done { min-height: 44px; padding: 0 20px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.sapp__live { min-height: 1.6em; margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }

/* the controls */
.sapp__panel { display: grid; gap: 12px; }
.sapp__step { margin: 0; padding: 14px 16px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--tile-bg); min-width: 0; }
.sapp__step legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; font-weight: 700; }
.sapp__step legend + * { clear: both; }
.sapp__num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pill-bg); color: var(--pill-fg); font-size: 0.75rem; font-weight: 700; flex: none; }
.sapp__hint { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.sapp__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sapp__row--grid { display: grid; grid-template-columns: 1fr 1fr; }
.sapp__chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 0.92rem/1.2 'Satoshi', system-ui, sans-serif; cursor: pointer; text-align: center;
}
.sapp__chip:hover { border-color: rgb(249 157 50 / 0.6); }
.sapp__chip[aria-pressed='true'] { border-color: #f99d32; background: rgb(249 157 50 / 0.14); font-weight: 700; }
.sapp__chip:disabled { opacity: 0.5; cursor: default; }
.sapp__chip .sapp__num { width: 20px; height: 20px; }
.sapp__file { position: relative; }
.sapp__file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sapp__file:focus-within { outline: 2px solid #f99d32; outline-offset: 3px; }
.sapp__link { margin-top: 8px; padding: 10px 0; min-height: 44px; border: 0; background: none; color: var(--muted); font: 500 0.88rem 'Satoshi', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.sapp__yt { margin-top: 12px; }
.sapp__yt label { display: block; margin-bottom: 6px; font-size: 0.88rem; color: var(--muted); }
.sapp__yt input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.sapp__yt input[aria-invalid='true'] { border-color: #d9480f; }
.sapp__label { margin: 0 0 8px; font-size: 0.9rem; font-weight: 500; }
.sapp__segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 6%, transparent); margin-bottom: 12px; }
.sapp__seg { position: relative; }
.sapp__seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sapp__seg span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.sapp__seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / 0.18); }
.sapp__seg input:focus-visible + span { outline: 2px solid #f99d32; outline-offset: 1px; }
.sapp__slider { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 500; }
.sapp__slider output { color: var(--muted); font-variant-numeric: tabular-nums; }
.sapp__step input[type='range'] { width: 100%; height: 32px; margin: 0 0 8px; accent-color: #f99d32; }
.sapp__step input[type='range']:disabled { opacity: 0.45; }
.sapp__privacy { margin: 4px 2px 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 900px) {
  .sapp__body { grid-template-columns: 1fr; }
  .sapp__stage { width: 100%; }
}
