/* OhMyShot, the sibling (#ohmyshot on the home pages): MMFoundation's other
   Mac app, between the FAQ and the thank-you wall. The words beside the
   screen wear the page's frame: a section heading at the FAQ's display step
   with a Pale Slate second line, then a wall label of hairline points and
   the hero's own keys. The screen is drawn in OhMyShot's UI language (the
   app's DESIGN.md), the way a work carries its own colour inside its frame:
   a Mac on the app's Sky background, frozen and dimmed outside a selection
   (white 1.5pt edge over a 3.5pt dark outline, black at 26% outside), the
   size reading in a white capsule in the rounded face with fixed-width
   figures, the 120pt loupe of 15 pixels with its faint grid and accent
   centre cell, and a Quick Access card (220pt, 12pt corners, a soft downward
   shadow) under its 22% scrim with the white Copy and Save capsules and the
   round corner buttons. --pt is one point of that Mac: the screen is 880 ×
   550pt and scales with its column. */
@property --oms-w {
  syntax: "<integer>";
  inherits: true;
  initial-value: 880;
}
@property --oms-h {
  syntax: "<integer>";
  inherits: true;
  initial-value: 560;
}
@property --oms-dim {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.26;
}
.oms {
  margin-top: calc(128 * var(--u));
}
.oms-intro {
  text-align: center;
}
.oms-intro h2 {
  font-size: clamp(32 * var(--u), 3.2vw, 45 * var(--u));
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.oms-intro h2:lang(zh) {
  letter-spacing: 0;
  line-height: 1.2;
}
.oms-sub {
  display: block;
  color: var(--soft);
}
.oms-intro > p:not([class]) {
  max-width: 52ch;
  margin: calc(16 * var(--u)) auto 0;
  color: var(--muted);
  font-size: calc(15 * var(--u));
  line-height: 1.7;
}
.oms-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(392 * var(--u));
  align-items: center;
  gap: calc(64 * var(--u));
  margin-top: calc(56 * var(--u));
}

/* The screen. */
.oms-stage {
  --oms-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
  --oms-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    system-ui, sans-serif;
  container-type: inline-size;
  overflow: hidden;
  border-radius: calc(10 * var(--u));
  box-shadow:
    0 0 0 1px rgb(24 33 38 / 0.08),
    0 calc(24 * var(--u)) calc(48 * var(--u)) calc(-32 * var(--u)) rgb(24 33 38 / 0.45);
  forced-color-adjust: none;
}
.oms-screen {
  --pt: calc(100cqw / 880);
  --oms-w: 880;
  --oms-h: 560;
  --oms-dim: 0.26;
  position: relative;
  overflow: hidden;
  aspect-ratio: 880 / 550;
  background:
    radial-gradient(circle at 82% 14%, rgb(255 255 255 / 0.55), transparent 42%),
    radial-gradient(circle at 12% 88%, rgb(255 255 255 / 0.32), transparent 38%),
    linear-gradient(135deg, #9cc8fa, #d9c6fa);
  color: rgb(0 0 0 / 0.85);
  font-family: var(--oms-ui);
  line-height: 1;
  user-select: none;
}
.oms-screen svg {
  fill: currentColor;
  stroke: none;
}
.oms-menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(24 * var(--pt));
  padding: 0 calc(14 * var(--pt));
  font-size: calc(13 * var(--pt));
  white-space: nowrap;
}
.oms-menus,
.oms-extras,
.oms-clock {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--pt));
}
.oms-clock {
  gap: calc(6 * var(--pt));
}
.oms-menus b {
  font-weight: 700;
}
.oms-menubar svg {
  width: auto;
  height: calc(14 * var(--pt));
}
.oms-menubar .oms-apple {
  height: calc(15 * var(--pt));
}
.oms-menubar .oms-glyph {
  height: calc(16 * var(--pt));
}
.oms-window {
  position: absolute;
  top: calc(60 * var(--pt));
  left: calc(230 * var(--pt));
  width: calc(500 * var(--pt));
  height: calc(320 * var(--pt));
  overflow: hidden;
  border-radius: calc(16 * var(--pt));
  background: #fff;
  box-shadow:
    0 0 0 calc(0.5 * var(--pt)) rgb(0 0 0 / 0.16),
    0 calc(16 * var(--pt)) calc(44 * var(--pt)) rgb(0 0 0 / 0.24);
}
.oms-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--pt));
  height: calc(36 * var(--pt));
  padding-left: calc(14 * var(--pt));
}
.oms-titlebar i {
  width: calc(12 * var(--pt));
  height: calc(12 * var(--pt));
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 calc(0.5 * var(--pt)) rgb(0 0 0 / 0.12);
}
.oms-titlebar i:nth-child(2) {
  background: #febc2e;
}
.oms-titlebar i:nth-child(3) {
  background: #28c840;
}
.oms-titlebar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}
.oms-doc {
  width: calc(500 * var(--pt));
  padding: calc(34 * var(--pt)) calc(50 * var(--pt)) 0;
  background: #fff;
}
.oms-doc-title {
  font-size: calc(22 * var(--pt));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.oms-doc-sub {
  margin-top: calc(6 * var(--pt));
  color: rgb(0 0 0 / 0.5);
  font-size: calc(12 * var(--pt));
  line-height: 1.3;
}
.oms-doc dl {
  margin-top: calc(18 * var(--pt));
}
.oms-doc dl div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: calc(34 * var(--pt));
  border-top: max(0.5px, 0.5 * var(--pt)) solid rgb(0 0 0 / 0.1);
  font-size: calc(13 * var(--pt));
}
.oms-doc dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The Quick Access card: the selected part of the document, drawn again at
   half its size (the card is 220pt for a 440pt selection), so --pt halves
   inside it and the copy stays sharp. */
.oms-card {
  position: absolute;
  z-index: 2;
  bottom: calc(20 * var(--pt));
  left: calc(20 * var(--pt));
  width: calc(220 * var(--pt));
  height: calc(140 * var(--pt));
  overflow: hidden;
  border-radius: calc(12 * var(--pt));
  background: #fff;
  box-shadow:
    0 0 0 calc(0.5 * var(--pt)) rgb(0 0 0 / 0.1),
    0 calc(8 * var(--pt)) calc(24 * var(--pt)) rgb(0 0 0 / 0.22);
}
.oms-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.22);
}
.oms-shot .oms-doc {
  --pt: calc(100cqw / 1760);
  position: absolute;
  top: calc(-4 * var(--pt));
  left: calc(-20 * var(--pt));
}
.oms-corner {
  position: absolute;
  z-index: 1;
  top: calc(8 * var(--pt));
  display: grid;
  place-items: center;
  width: calc(24 * var(--pt));
  height: calc(24 * var(--pt));
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
}
.oms-close {
  left: calc(8 * var(--pt));
}
.oms-more {
  right: calc(8 * var(--pt));
}
.oms-screen .oms-corner svg {
  width: calc(14 * var(--pt));
  height: calc(14 * var(--pt));
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.oms-screen .oms-more svg {
  stroke-width: 3.4;
}
.oms-actions-card {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(8 * var(--pt));
}
.oms-actions-card span {
  display: grid;
  place-items: center;
  width: calc(112 * var(--pt));
  height: calc(30 * var(--pt));
  border-radius: 999px;
  background: #f7f7f7;
  color: #1a1a1a;
  font-family: var(--oms-rounded);
  font-size: calc(13 * var(--pt));
  font-weight: 600;
}

/* The capture overlay. The selection's spread shadow is the room dimming;
   the size, the crosshair and the loupe ride its lower right corner, which
   --oms-w and --oms-h (pixels, two to a point) place. */
.oms-selection {
  position: absolute;
  z-index: 1;
  top: calc(100 * var(--pt));
  left: calc(250 * var(--pt));
  width: calc(var(--oms-w) * var(--pt) / 2);
  height: calc(var(--oms-h) * var(--pt) / 2);
  border: calc(1.5 * var(--pt)) solid #fff;
  box-shadow:
    inset 0 0 0 var(--pt) rgb(0 0 0 / 0.32),
    0 0 0 var(--pt) rgb(0 0 0 / 0.32),
    0 0 0 calc(1200 * var(--pt)) rgb(0 0 0 / var(--oms-dim));
}
.oms-size {
  position: absolute;
  z-index: 3;
  top: calc((110 + var(--oms-h) / 2) * var(--pt));
  left: calc((250 + var(--oms-w) / 4) * var(--pt));
  height: calc(24 * var(--pt));
  padding: 0 calc(11 * var(--pt));
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  box-shadow:
    0 0 0 calc(0.5 * var(--pt)) rgb(0 0 0 / 0.08),
    0 calc(2 * var(--pt)) calc(8 * var(--pt)) rgb(0 0 0 / 0.12);
  color: rgb(0 0 0 / 0.85);
  font-family: var(--oms-rounded);
  font-size: calc(12 * var(--pt));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: calc(24 * var(--pt));
  white-space: nowrap;
  counter-reset: oms-w var(--oms-w) oms-h var(--oms-h);
  transform: translateX(-50%);
}
.oms-size::before {
  content: counter(oms-w) " × " counter(oms-h);
}
.oms-screen .oms-cross {
  position: absolute;
  z-index: 3;
  top: calc((100 + var(--oms-h) / 2) * var(--pt));
  left: calc((250 + var(--oms-w) / 2) * var(--pt));
  width: calc(32 * var(--pt));
  height: calc(32 * var(--pt));
  overflow: visible;
  fill: none;
  transform: translate(-50%, -50%);
}
.oms-cross-under {
  stroke: rgb(0 0 0 / 0.32);
  stroke-width: 3.5;
}
.oms-cross-line {
  stroke: #fff;
  stroke-width: 1.5;
}
/* 15 pixels across at 8pt each, from under the pointer: the window's last
   white rows, its edge, then the desktop in the window's shadow. */
.oms-loupe {
  position: absolute;
  z-index: 3;
  top: calc((176 + var(--oms-h) / 2) * var(--pt));
  left: calc((326 + var(--oms-w) / 2) * var(--pt));
  width: calc(120 * var(--pt));
  height: calc(120 * var(--pt));
  border-radius: 50%;
  background:
    linear-gradient(rgb(0 0 0 / 0.08) 1px, transparent 1px) 0 0 / calc(8 * var(--pt)) calc(8 * var(--pt)),
    linear-gradient(90deg, rgb(0 0 0 / 0.08) 1px, transparent 1px) 0 0 / calc(8 * var(--pt)) calc(8 * var(--pt)),
    linear-gradient(
      #fff 0 calc(56 * var(--pt)),
      #b6b9c8 calc(56 * var(--pt)) calc(64 * var(--pt)),
      #9fa8db calc(64 * var(--pt)) calc(72 * var(--pt)),
      #aab4e8 calc(72 * var(--pt)) calc(80 * var(--pt)),
      #b3bdf1 calc(80 * var(--pt)) calc(88 * var(--pt)),
      #b9c3f6 calc(88 * var(--pt))
    );
  box-shadow:
    0 0 0 calc(3 * var(--pt)) #fff,
    0 calc(6 * var(--pt)) calc(18 * var(--pt)) rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%);
}
.oms-loupe::after {
  content: "";
  position: absolute;
  top: calc(56 * var(--pt));
  left: calc(56 * var(--pt));
  width: calc(8 * var(--pt));
  height: calc(8 * var(--pt));
  border: calc(1.5 * var(--pt)) solid #007aff;
}

/* The label. */
.oms-name {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
}
.oms-name img {
  flex: none;
  width: calc(64 * var(--u));
  height: calc(64 * var(--u));
}
.oms-name p {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--u));
}
.oms-title {
  font-family: var(--display);
  font-size: clamp(24 * var(--u), 2.2vw, 30 * var(--u));
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.oms-tag {
  color: var(--muted);
  font-size: calc(14 * var(--u));
  line-height: 1.5;
}
.oms-points {
  margin: calc(24 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}
.oms-points li {
  padding: calc(12 * var(--u)) 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: calc(14 * var(--u));
  line-height: 1.65;
}
.oms-points b {
  color: var(--ink);
  font-weight: 600;
}
/* The keys are the hero's own (styles.css .hero-button), the download in
   ink and the star with its turn and glints, as wide as their row until they
   wrap, as at the launch bookend. Under them the ask, then what the app
   needs, as the hero's note says it for WallpaperMachine. */
.oms-keys {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(12 * var(--u));
  width: fit-content;
  max-width: 100%;
  margin: calc(28 * var(--u)) auto 0;
}
.oms-ask {
  margin-top: calc(16 * var(--u));
  color: var(--ink);
  font-size: calc(14 * var(--u));
  line-height: 1.6;
}
.oms-req {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: calc(4 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: calc(13 * var(--u));
  line-height: 1.6;
}
.oms-req li + li::before {
  content: "·";
  margin: 0 calc(8 * var(--u));
}
.oms-try {
  margin-top: calc(2 * var(--u));
  color: var(--muted);
  font-size: calc(13 * var(--u));
  line-height: 1.6;
}
.oms-try a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #9eacb3;
  transition: color var(--dur-fast) ease;
}
.oms-try a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* Played once (script.js adds .is-armed, then .is-playing as the screen
   comes 60% into view): the room dims, the selection is dragged out with its
   size counting, and the card of the capture slides in from the screen's
   edge on one short ease-out. Without script or under reduced motion the
   screen stands as drawn. */
@media (prefers-reduced-motion: no-preference) {
  .oms-stage.is-armed .oms-screen {
    --oms-w: 0;
    --oms-h: 0;
    --oms-dim: 0;
  }
  .oms-stage.is-armed :is(.oms-selection, .oms-size, .oms-cross, .oms-loupe) {
    opacity: 0;
  }
  .oms-stage.is-armed .oms-card {
    transform: translateX(calc(-100% - 24 * var(--pt)));
  }
  .oms-stage.is-playing .oms-screen {
    animation:
      oms-dim 320ms ease-out both,
      oms-drag 1100ms 420ms cubic-bezier(0.45, 0, 0.2, 1) both;
  }
  .oms-stage.is-playing :is(.oms-cross, .oms-loupe) {
    animation: oms-show 200ms 140ms ease-out both;
  }
  .oms-stage.is-playing :is(.oms-selection, .oms-size) {
    animation: oms-show 160ms 420ms ease-out both;
  }
  .oms-stage.is-playing .oms-card {
    animation: oms-card 480ms 1700ms var(--ease) both;
  }
}
@keyframes oms-dim {
  from {
    --oms-dim: 0;
  }
  to {
    --oms-dim: 0.26;
  }
}
@keyframes oms-drag {
  from {
    --oms-w: 0;
    --oms-h: 0;
  }
  to {
    --oms-w: 880;
    --oms-h: 560;
  }
}
@keyframes oms-show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes oms-card {
  from {
    transform: translateX(calc(-100% - 24 * var(--pt)));
  }
  to {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .oms-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .oms-label {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}
@media (max-width: 540px) {
  .oms {
    margin-top: 96px;
  }
  .oms-body {
    margin-top: 40px;
  }
  .oms-stage {
    border-radius: 6px;
  }
}

/* The pop-up card is an OhMyShot Quick Access card at the lower left of the
   screen, as the app shows a capture, holding the app's What's New banner: the
   Ocean ground of its icon with its menu bar loupe large and faint, the
   wordmark and two lines in its ink, its white action capsules and its round
   Close corner button. script.js shows it and keeps it away. */
.oms-pop {
  --oms-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
  --oms-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "PingFang SC", system-ui, sans-serif;
  position: fixed;
  z-index: 25;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 24px;
  width: 344px;
  padding: 44px 20px 20px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(to bottom right, #5e9cf5, #37cdbe);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.1),
    0 6px 24px rgb(0 0 0 / 0.22);
  color: #1d1d1f;
  font-family: var(--oms-ui);
  visibility: hidden;
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    visibility 0s 220ms;
}
.oms-pop.is-in:not(.is-away) {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 220ms ease-out,
    transform 220ms ease-out,
    visibility 0s;
}
.oms-pop p {
  margin: 0;
}
.oms-pop-loupe {
  position: absolute;
  right: -56px;
  bottom: -46px;
  width: 210px;
  height: 210px;
  color: rgb(255 255 255 / 0.3);
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}
.oms-pop-close {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
  transition: background-color 120ms ease-out;
}
.oms-pop-close::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.oms-pop-close:hover {
  background: rgb(0 0 0 / 0.62);
}
.oms-pop-close:active {
  background: rgb(0 0 0 / 0.72);
}
.oms-pop-close:focus-visible {
  border-radius: 50%;
  outline-offset: 2px;
}
.oms-pop-close svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
}
.oms-pop-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.08),
    0 2px 8px rgb(0 0 0 / 0.18);
  color: rgb(0 0 0 / 0.85);
  font-family: var(--oms-rounded);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}
.oms-pop-words {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oms-pop-mark img {
  display: block;
  width: auto;
  height: 20px;
  margin-bottom: 2px;
}
.oms-pop-head {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.oms-pop-line {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;
}
.oms-pop-keys {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.oms-pop-key {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f7f7f7;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.18);
  color: #1a1a1a;
  font-family: var(--oms-rounded);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 120ms ease-out;
}
.oms-pop-key::before {
  content: "";
  position: absolute;
  inset: -6px -4px;
}
.oms-pop-key:hover {
  background: #fff;
}
.oms-pop-key:active {
  background: #d6d6d6;
}
.oms-pop-key:focus-visible {
  border-radius: 999px;
  outline-offset: 2px;
}
.oms-pop-key svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.oms-pop-key .oms-pop-apple {
  width: 11px;
  fill: currentColor;
  stroke: none;
}
.oms-pop-star:is(:hover, :focus-visible) svg path {
  fill: currentColor;
}
@media (max-width: 540px) {
  .oms-pop {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .oms-pop,
  .oms-pop.is-in:not(.is-away) {
    transform: none;
    transition: none;
  }
}
@media (forced-colors: active) {
  .oms-pop {
    border: 1px solid CanvasText;
  }
  .oms-pop-loupe {
    display: none;
  }
  .oms-pop-badge,
  .oms-pop-key,
  .oms-pop-close {
    border: 1px solid ButtonText;
  }
}
