/* Video product pages. Builds on landing.css and mirrors the thumbnail page (thumbnails.css). */

.hero h1 span {
  color: var(--purple);
}

/* A still shown as a paused video frame. */
.vm-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  background: var(--surface);
}
.vm-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.vm-frame.is-tall img {
  aspect-ratio: 9 / 16;
}
.vm-frame-chrome {
  position: absolute;
  inset: auto 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.vm-frame-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffffe6;
  color: var(--ink);
  box-shadow: 0 2px 6px #00000026;
}
.vm-frame-play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}
.vm-frame-progress {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff var(--progress), #ffffff66 0);
  box-shadow: 0 1px 3px #00000033;
}
.vm-frame-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 2px 6px #0000001f;
}

/* Hero: the homepage hero with video frames floating around the copy. */
.vm-hero {
  min-height: 780px;
}
.vm-hero-content {
  width: min(660px, calc(100% - 2 * var(--gutter)));
}
.vm-hero-content > p:not(.vm-hero-note) {
  max-width: 500px;
}
.vm-hero-note {
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: 14px !important;
}
.vm-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: min(100%, 1440px);
  margin-inline: auto;
  pointer-events: none;
}
.vm-hero-art .vm-frame {
  position: absolute;
  width: 250px;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 4px 9px #0000000f, 0 16px 16px #0000000d, 0 37px 22px #00000008;
}
.vm-hero-art .vm-frame.is-tall {
  width: 150px;
}
.vm-hero-art .vm-frame-chrome {
  inset: auto 8px 8px;
  gap: 8px;
}
.vm-hero-art .vm-frame-play {
  width: 22px;
  height: 22px;
}
.vm-hero-art .vm-frame-play svg {
  width: 10px;
  height: 10px;
}
.vm-art-a {
  left: calc(50% - 700px);
  top: 80px;
  rotate: -4deg;
}
.vm-art-b {
  left: calc(50% - 530px);
  top: 300px;
  rotate: 3deg;
}
.vm-art-c {
  left: calc(50% - 690px);
  top: 570px;
  rotate: -2deg;
}
.vm-art-d {
  left: calc(50% + 440px);
  top: 70px;
  rotate: 3deg;
}
.vm-art-e {
  left: calc(50% + 380px);
  top: 320px;
  rotate: -3deg;
}
.vm-art-f {
  left: calc(50% + 450px);
  top: 570px;
  rotate: 2deg;
}
.vm-art-b:not(.is-tall) {
  left: calc(50% - 610px);
  top: 330px;
}
.vm-art-e.is-tall {
  left: calc(50% + 520px);
  top: 290px;
}
@media (max-width: 1240px) {
  .vm-art-b,
  .vm-art-e {
    display: none;
  }
  .vm-art-a,
  .vm-art-c {
    left: 2%;
    width: 18vw !important;
  }
  .vm-art-d,
  .vm-art-f {
    left: auto;
    right: 2%;
    width: 18vw !important;
  }
}

/* The homepage prompt, with a labelled button like the thumbnail page. */
.prompt.vm-prompt {
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
}
.prompt.vm-prompt button {
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.prompt.vm-prompt button:hover,
.prompt.vm-prompt:focus-within button {
  background: #4207ab;
}

.vm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
/* landing.css loads after this file, so these need more weight than its .button rule. */
.button.vm-button {
  gap: 8px;
  min-height: 54px;
  padding-inline: 64px;
  font-size: 18px;
  font-weight: 600;
}
/* Two buttons side by side share the row, so each gives up some side padding. */
.vm-actions:has(.vm-button + .vm-button) .vm-button {
  padding-inline: 32px;
}
.button.vm-button:not(.primary) {
  background: #fff;
}

.vm-section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.vm-section-head p,
.vm-showcase-copy p {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

/* Feature cards: extra pieces on the homepage preview grid. */
.preview-stage .vm-shot-play {
  width: calc(44 * var(--preview-unit));
  height: calc(44 * var(--preview-unit));
  color: var(--ink);
  transform: translate(-50%, -50%);
}
.vm-shot-new {
  outline: calc(3 * var(--preview-unit)) solid var(--purple);
  outline-offset: calc(3 * var(--preview-unit));
}
.vm-keyframe-track {
  position: absolute;
  top: calc(250 * var(--preview-unit));
  left: calc(30 * var(--preview-unit));
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(353 * var(--preview-unit));
  height: calc(44 * var(--preview-unit));
  padding-inline: calc(18 * var(--preview-unit));
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, #f1eaff, #fff 50%, #f1eaff);
  box-shadow: 0 2px 4px #0000000a;
}
.vm-keyframe-track span {
  width: calc(12 * var(--preview-unit));
  height: calc(12 * var(--preview-unit));
  border-radius: calc(2 * var(--preview-unit));
  background: var(--purple);
  rotate: 45deg;
}
.vm-keyframe-track span:nth-child(2),
.vm-keyframe-track span:nth-child(3) {
  background: #b794f6;
}
.vm-spin-ring {
  position: absolute;
  top: calc(296 * var(--preview-unit));
  left: calc(46 * var(--preview-unit));
  width: calc(321 * var(--preview-unit));
  height: calc(84 * var(--preview-unit));
  border: calc(3 * var(--preview-unit)) dashed #550fd066;
  border-radius: 50%;
}
.vm-shot-split .vm-low,
.vm-upscale-split .vm-low {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 50% 0 0);
}
.vm-shot-split::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: calc(3 * var(--preview-unit));
  background: var(--purple);
  transform: translateX(-50%);
}

/* Showcase: copy beside one large visual, like the thumbnail page's example. */
.vm-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(80px, 9vw, 130px);
}
.vm-showcase-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.vm-showcase-copy .button {
  margin-top: 8px;
}
.vm-showcase-copy .vm-fineprint {
  color: var(--muted);
  font-size: 14px;
}
.vm-showcase-stage {
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}
.vm-edit-grid,
.vm-backdrops {
  display: grid;
  gap: 12px;
}
.vm-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vm-edit-original {
  grid-column: 1 / -1;
}
.vm-backdrops {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vm-backdrop-original {
  grid-column: 1 / -1;
}
.vm-showcase-stage .vm-frame {
  border-radius: 16px;
}
.vm-showcase-stage .vm-frame-label {
  font-size: 12px;
}

.vm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.vm-chips li {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}
.vm-chips li:last-child {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.vm-upscale {
  display: grid;
  gap: 12px;
  margin: 0;
}
.vm-upscale-split,
.vm-upscale-zoom > div {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.vm-upscale img {
  width: 100%;
  height: auto;
}
.vm-upscale-handle {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 8px #00000040;
  transform: translateX(-50%);
}
.vm-upscale-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid var(--purple);
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.vm-upscale-zoom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vm-upscale-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px #0000001f;
}
.vm-upscale-tag.is-after {
  left: auto;
  right: 10px;
  background: var(--ink);
  color: #fff;
}
.vm-upscale figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* After the feature cards, as the homepage showcase follows its features. */
.features + .vm-showcase {
  padding-top: 0;
}

/* Showcase with the visual first, to alternate with the one before it. */
@media (min-width: 901px) {
  .vm-showcase.is-flipped {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  }
  .vm-showcase.is-flipped .vm-showcase-stage {
    order: -1;
  }
}

/* A real Studio screenshot in a browser window. */
.vm-window {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 12px #00000008, 0 23px 23px #00000008, 0 52px 31px #00000005;
}
.vm-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.vm-window-bar > span:not(.vm-window-url) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5dc;
}
.vm-window-url {
  overflow: hidden;
  max-width: 60%;
  margin: 0 auto;
  padding: 3px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  translate: -18px 0;
}
.vm-window img {
  display: block;
  width: 100%;
  height: auto;
}
.vm-studio {
  padding-block: clamp(80px, 9vw, 120px);
}
.vm-studio .vm-showcase-stage {
  max-width: 1120px;
  margin-inline: auto;
}
.vm-studio .vm-chips {
  justify-content: center;
  margin-top: 28px;
}
.vm-studio .vm-chips li:last-child,
.vm-formats .vm-chips li:last-child {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

/* Every clip at once: a row of clips, one prompt, the same clips changed. */
.vm-batch {
  display: grid;
  gap: 14px;
}
.vm-batch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-batch-row.is-tall {
  width: 66%;
  margin-inline: auto;
}
.vm-batch .vm-frame {
  border-radius: 12px;
}
.vm-batch .vm-frame-label {
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 12px;
}
.vm-batch-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 4px #0000000a;
}
.vm-batch-prompt > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vm-batch-prompt svg {
  width: 18px;
  height: 18px;
  color: var(--purple);
}
.vm-batch-replace {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

/* Resizer: the original, a plain crop and the reframed clip at the same height. */
.vm-resize-section {
  padding-block: clamp(80px, 9vw, 130px) 0;
}
.vm-resize {
  display: grid;
  grid-template-columns: minmax(0, 1.778fr) minmax(0, 0.5625fr) minmax(0, 0.5625fr);
  align-items: end;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-resize .vm-frame {
  border-radius: 16px;
}
.vm-resize .vm-frame-label {
  font-size: 12px;
}
.vm-resize-crop {
  position: relative;
}
.vm-resize-crop .vm-frame img {
  aspect-ratio: 9 / 16;
  opacity: 0.7;
  filter: grayscale(0.5);
}
.vm-resize-new .vm-frame {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.vm-resize-new .vm-frame-label {
  background: var(--purple);
  color: #fff;
}
.vm-resize p {
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* Where each shape goes, as cards like the steps. */
.vm-formats {
  padding-block: clamp(80px, 9vw, 120px) 0;
}
.vm-formats > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.vm-formats > ul > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 12px #00000005, 0 23px 23px #00000005;
}
.vm-formats .vm-frame {
  width: 120px;
  border-radius: 12px;
}
.vm-formats .vm-frame:not(.is-tall) {
  width: 200px;
}
.vm-formats .vm-frame-chrome {
  inset: auto 6px 6px;
  gap: 6px;
}
.vm-formats .vm-frame-play {
  width: 20px;
  height: 20px;
}
.vm-formats .vm-frame-play svg {
  width: 9px;
  height: 9px;
}
.vm-formats h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.vm-formats p {
  margin-top: 6px;
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}
.vm-formats .vm-chips {
  margin-top: 14px;
}
.vm-formats .vm-chips li {
  padding: 6px 14px;
  font-size: 14px;
}

/* Gallery: the homepage showcase, with a call to action in place of the stats bar. */
.vm-gallery {
  padding-top: clamp(20px, 3vw, 40px);
}
.vm-gallery .gallery .vm-frame img {
  border-radius: 0;
  box-shadow: none;
}
.vm-gallery-cta {
  position: absolute;
  z-index: 1;
  bottom: calc(clamp(100px, 13.89vw, 200px) + 45px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 7px 16px #0000001a, 0 29px 29px #00000017, 0 66px 40px #0000000d;
  transition: background-color 0.15s;
}
.vm-gallery-cta:hover {
  background: #1e2939;
}

/* Steps, as on the thumbnail page. */
.vm-steps {
  padding-block: clamp(80px, 9vw, 120px);
  background: radial-gradient(ellipse at 13% -12%, #e0585226, transparent 61%),
    radial-gradient(ellipse at 50% -25%, #550fd02b, transparent 72%),
    radial-gradient(ellipse at 88% -15%, #af4aea29, transparent 55%);
}
.vm-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-steps li {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 12px #00000005, 0 23px 23px #00000005;
}
.vm-step-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f1eaff;
  color: var(--purple);
}
.vm-step-number {
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
}
.vm-steps h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.vm-steps li p {
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}
.vm-steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.vm-steps-cta .button {
  min-height: 54px;
  padding-inline: 64px;
  font-size: 18px;
}

/* Links to the other video pages, like the thumbnail page's layout grid. */
.vm-more {
  padding-block: clamp(80px, 9vw, 120px) clamp(24px, 3vw, 48px);
}
.vm-more ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.vm-more a {
  display: block;
  border-radius: 20px;
}
.vm-more .vm-frame {
  border-radius: 16px;
  box-shadow: 0 6px 12px #00000008, 0 23px 23px #00000005;
}
.vm-more img {
  transition: transform 300ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .vm-more a:hover img {
    transform: scale(1.02);
  }
}
.vm-more h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.vm-more a:hover h3 {
  color: var(--purple);
}
.vm-more p {
  margin-top: 2px;
  color: #1e2939;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .vm-more ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vm-closing .vm-prompt {
  width: min(600px, 100%);
  margin: 0 auto;
}
.vm-closing .vm-actions {
  margin-top: 0;
}

@media (max-width: 900px) {
  .vm-showcase-copy p {
    font-size: 18px;
  }
  .vm-steps-cta .button {
    padding-inline: 48px;
  }
  .button.vm-button,
  .vm-actions:has(.vm-button + .vm-button) .vm-button {
    padding-inline: 24px;
  }
  .vm-hero {
    padding-bottom: 230px;
  }
  .vm-hero-art .vm-frame {
    top: auto;
    width: min(46vw, 240px) !important;
    border-width: 3px;
    border-radius: 10px;
  }
  .vm-hero-art .vm-frame.is-tall {
    width: min(28vw, 130px) !important;
  }
  .vm-art-a {
    left: 3%;
    right: auto;
    bottom: 44px;
  }
  .vm-art-d {
    left: auto;
    right: 3%;
    bottom: 30px;
  }
  .vm-art-c {
    left: 28%;
    bottom: 110px;
    z-index: -1;
    width: min(40vw, 200px) !important;
  }
  .vm-art-b,
  .vm-art-e,
  .vm-art-f {
    display: none !important;
  }
  .vm-showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .vm-steps ol {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
  .vm-more ul {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }
  .vm-resize {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vm-resize-original {
    grid-column: 1 / -1;
  }
  .vm-formats > ul {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
  .vm-gallery-cta {
    bottom: 152px;
    padding: 14px 28px;
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .prompt.vm-prompt {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
  }
  .prompt.vm-prompt input {
    padding: 10px 8px;
  }
  .prompt.vm-prompt button {
    justify-content: center;
  }
  .vm-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vm-frame-chrome {
    inset: auto 8px 8px;
  }
  .vm-formats > ul > li {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 20px;
  }
  .vm-batch-row.is-tall {
    width: 80%;
  }
  .vm-batch-prompt {
    font-size: 14px;
  }
  .vm-window-url {
    display: none;
  }
  .vm-frame-play {
    width: 22px;
    height: 22px;
  }
  .vm-frame-play svg {
    width: 10px;
    height: 10px;
  }
}
