/* 参考：refs/cartesia、refs/upload-zone-x，加上现站 santacam.org（evergreen + red CTA + Bree/Nunito）。
   Draft D, pattern from makesantavideo.com (photo ↔ video drag-compare), in our own brand and words.
   Phone (≤860px): full-bleed portrait compare, ~70% of the screen height: the empty-porch frame
   from the clip ("Upload a photo like this") ↔ nicelist-portrait-20261026.mp4. Overlays only on
   the edges: label top-left, REC + clock and the "Hear him say Emma" chip top-right, drag knob on
   the bottom edge. The line rests at 18%, left of Santa in every frame. H1 + buttons below.
   Wider: two columns, landscape compare sample-door.jpg ↔ nicelist.mp4 with a caption line. */

.hero {
  padding-top: 0;
}
.media {
  margin: 0 calc(var(--pad) * -1);
}
.stage {
  margin: 0;
  width: 100%;
  height: min(70vh, calc(100vh - 252px), 177.78vw);
  height: min(70svh, calc(100svh - 252px), 177.78vw);
  touch-action: pan-y;
  border-bottom: 1px solid var(--line-soft);
}
.stage::after {
  height: 88px;
}
.stage .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 1;
}
.stage .handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.stage .handle span {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font: 800 16px/1 var(--body);
}
.stage .slider {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.stage .tag {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  font: 700 13px/16px var(--body);
  color: #fff;
  pointer-events: none;
}
.stage .corner {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cam-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  font: 600 12px/16px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.cam-line i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e5484d;
  animation: blink 1.2s steps(1) infinite;
}
.sound.chip {
  width: auto;
  height: 32px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 13px/1 var(--body);
  white-space: nowrap;
}
.sound.chip svg {
  width: 16px;
  height: 16px;
}
.media .under,
.media .note,
.copy .sub:not(.phone-sub) {
  display: none;
}
.copy {
  margin-top: 16px;
}
.actions {
  margin-top: 0;
}
.actions .ctas {
  margin-top: 12px;
}
.phone-sub {
  margin: 8px 0 0;
  text-align: center;
  font-size: 16px;
}

@media (min-width: 861px) {
  .hero {
    padding-top: 48px;
  }
  .media {
    margin: 0;
  }
  .stage {
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-panel);
  }
  .stage::after {
    height: 64px;
  }
  .media .under {
    display: flex;
    margin-top: 12px;
  }
  .media .note {
    display: block;
    margin: 4px 0 0;
    font-size: 16px;
    color: var(--text-2);
  }
  .copy .sub:not(.phone-sub) {
    display: block;
  }
  .phone-sub {
    display: none;
  }
  .copy {
    margin-top: 0;
  }
}
