/* ── Window chrome: classic traffic lights ───────────────────────────── */

.app-mock .app-mock__dots {
  gap: 7px;
}
.app-mock .app-mock__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  /* no text inside, but styles.css leaves `color` inherited: clear it so the
     dot paint is not checked against a text colour in dark-mode audits */
  color: transparent;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.14), 0 0.5px 1px rgba(0, 0, 0, 0.16);
}

/* The dark-theme override for the old grey dots in styles.css has equal
   specificity, and this file loads later — the classic colours stand. */
.app-mock .app-mock__dots i:nth-child(1) {
  background: #ff5f57;
}
.app-mock .app-mock__dots i:nth-child(2) {
  background: #febc2e;
}
.app-mock .app-mock__dots i:nth-child(3) {
  background: #28c840;
}

/* ── Viewer: a 3:2 sample fills the stage height, minor side letterbox ──
   Stage 16:10, image contained at full height → ~3% black bars per side for
   a 3:2 photo (the decoder's own viewer keeps the image whole, it never
   crops). The aspect box is fixed, so cycling images cannot shift layout. */

.app-mock .app-mock__stage {
  aspect-ratio: 16 / 10;
}
.app-mock .app-mock__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transition: opacity 420ms ease;
}
.app-mock .app-mock__frame.is-on {
  opacity: 1;
}

/* The hero frame is a <picture> (AVIF with WebP fallback). Keep the picture as
   the old absolutely-positioned box and let the inner <img> paint the same
   contained, borderless, shadowless frame the single <img> used to paint. */
.app-mock .app-mock__frame > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* Result-grid and privacy <picture> wrappers exist only to pick AVIF/WebP:
   display:contents keeps the <img> as the span's layout child so the existing
   .app-mock__card img / .app-mock__stage img rules keep applying unchanged. */
.app-mock__card picture,
.privacy-visual .app-mock__stage picture {
  display: contents;
}

@media (prefers-reduced-motion: reduce) {
  .app-mock .app-mock__frame {
    transition: none;
  }
}

/* Screen-reader-only text used by the home-page CTAs (visible-label +
   announced new-tab hint). styles.css only scopes .sr-only to the decoder
   page, so the home pages need the utility here; without it the hint text
   renders inline and the pill label looks broken. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Support block: one quiet line before the footer ───────────────────── */

.home-support {
  padding: 0 0 96px;
  text-align: center;
}
.home-support__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.home-support__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  color: var(--muted);
  text-wrap: pretty;
}
.home-support__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.006em;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* The Buy Me a Coffee cup: official mark, monochrome currentColor so it stays
   quiet next to the label (no yellow brand fill). */
.home-support__cup {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: -1px;
}
.home-support__cta:hover {
  border-color: var(--faint);
  background: var(--fog);
}

@media (max-width: 834px) {
  .home-support {
    padding-bottom: 84px;
  }
}

@media (max-width: 560px) {
  .home-support {
    padding-bottom: 64px;
  }
  .home-support__inner {
    padding-top: 26px;
  }
  .home-support__text {
    max-width: 320px;
    font-size: 13px;
    text-wrap: balance;
  }
}
html:lang(zh) .home-support__text {
  line-height: 1.75;
  letter-spacing: 0;
}
html:lang(zh) .home-support__cta {
  /* Han button label: +0.5px against the 13px Latin label, no tracking */
  font-size: 13.5px;
  letter-spacing: 0;
}

/* ── Hero scope line: what the browser version can actually open ──
   Added with the content pass. Kept short and faint so it reads as a
   qualification under the deck, not a second tagline. */
.home-hero__note {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
  letter-spacing: -0.004em;
}
html:lang(zh) .home-hero__note {
  line-height: 1.7;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .home-hero__note {
    max-width: 340px;
    font-size: 12px;
  }
}
