/* site-visuals.css (mk18, 28 Oct 2026). The real app on the site: every app picture on the homepage and the feature pages
   is a screenshot or a short silent loop of the real Hardly Vacant app with sample data (it used to be a drawn mockup).
   Travis, 27-28 Oct: the pictures get bigger (body 640 px, hero 730 px on a desktop) and every one can be clicked to see it
   enlarged, at up to the app's own size, because a whole app window shrunk into a slot can't be read.
   site-visuals.js plays the loops while they're on screen and opens the enlarged view. */

/* ---------- a picture in its app window ---------- */
.hvv { margin: 0; width: 100%; max-width: var(--hvv-w, 640px); border-radius: 14px; overflow: hidden; background: #f4f5f8;
  border: 1px solid #e7e8ef; box-shadow: 0 4px 10px rgba(45, 45, 57, .06), 0 34px 70px -30px rgba(30, 30, 40, .42); }
.hvv-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e9eaef; border-bottom: 1px solid #dcdde4; }
.hvv-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; flex: none; }
.hvv-bar .r { background: #ff5f57; } .hvv-bar .y { background: #febc2e; } .hvv-bar .g { background: #28c840; }
.hvv-bar .url { margin-left: 10px; font-size: 11px; color: #8a8c9a; background: #fff; border: 1px solid #dcdde4; padding: 3px 12px;
  border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* the clickable picture (a button, so it works from the keyboard too) */
.hvv-open { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 0; background: #fff; cursor: zoom-in;
  line-height: 0; font: inherit; color: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.hvv-open:focus-visible { outline: 3px solid #667eea; outline-offset: -3px; }
.hvv-media { display: block; width: 100%; height: auto; background: #fff; }
.hvv-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: #fff; background: rgba(27, 37, 56, .84); padding: 7px 11px;
  border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(4px);
  transition: opacity .2s, transform .2s; pointer-events: none; }
.hvv-hint svg { width: 13px; height: 13px; flex: none; }
.hvv-open:hover .hvv-hint, .hvv-open:focus-visible .hvv-hint { opacity: 1; transform: none; }
@media (hover: none) { .hvv-hint { opacity: .92; transform: none; font-size: 12px; padding: 6px 10px; } }

/* inside the angled hero frames the picture replaces the drawn app; the frame and its bar stay */
.frame > .hvv-open, .app-preview > .hvv-open { border-radius: 0; }
.app-preview > .hvv-open .hvv-media { border-radius: 0; }

/* ---------- bigger pictures on a desktop: hero 730 px, body 640 px ---------- */
/* the grids that hold a picture are marked data-hvv="start" (picture first) or "end" (picture second) */
@media (min-width: 1100px) {
  [data-hvv="end"] { grid-template-columns: minmax(0, 1fr) minmax(0, min(var(--hvv-w, 640px), 57%)) !important; }
  [data-hvv="start"] { grid-template-columns: minmax(0, min(var(--hvv-w, 640px), 57%)) minmax(0, 1fr) !important; }
  [data-hvv] { --hvv-w: 640px; }
  [data-hvv-hero] { --hvv-w: 730px; }
  /* the sections holding them get a little more room, so the words beside a bigger picture keep their width */
  .hvv-room { max-width: 1260px !important; }
  .hvv-room-hero { max-width: 1340px !important; }
}
@media (max-width: 1099px) { .hvv { max-width: 760px; margin-left: auto; margin-right: auto; } }
/* phones and tablets: the homepage hero is flat too, like the feature-page heroes (a tilt on a narrow screen shrinks the
   text and pushes the picture's far edge off the screen) */
@media (hover: none), (max-width: 980px) { .app-preview { transform: none !important; } }

/* ---------- the enlarged view ---------- */
.hvv-box { position: fixed; inset: 0; z-index: 4000; background: rgba(12, 14, 24, .88); overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; align-items: center; padding: 58px 16px 28px; -webkit-overflow-scrolling: touch; }
.hvv-box[hidden] { display: none; }
.hvv-box-in { width: var(--hvv-full, 1200px); max-width: 100%; margin: auto 0; }
.hvv-box-win { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.hvv-box-win .hvv-bar { background: #e9eaef; }
.hvv-box-win img, .hvv-box-win video { display: block; width: 100%; height: auto; background: #fff; }
.hvv-box-cap { margin: 12px 2px 0; font-size: 14px; line-height: 1.5; color: #d9dbe6; }
.hvv-box-cap b { color: #fff; font-weight: 600; }
.hvv-close { position: fixed; top: 12px; right: 14px; z-index: 4001; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 44px; text-align: center; cursor: pointer; }
.hvv-close:hover { background: rgba(255, 255, 255, .24); }
.hvv-close:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
html.hvv-locked, html.hvv-locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .hvv-hint { transition: none; } }
