/* Product pages migrated from Webflow. Builds on video.css, so they share the product
   pages' hero, showcase, steps, FAQ and closing. */

/* Hero: the old pages' short checklist and, on some, a before/after image pair. */
.mp-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.mp-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mp-checks svg {
  flex: none;
  color: var(--purple);
}
/* Sized by its content, not the video pages' tall centred hero, so it needs its own space
   below the header. */
.hero.mp-hero {
  min-height: 0;
  padding-block: clamp(64px, 7vw, 104px) clamp(56px, 7vw, 96px);
}
.mp-hero .vm-actions {
  margin-top: 28px;
}
.mp-hero-images {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(760px, 100%);
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding-inline: var(--gutter, 20px);
}
.mp-hero-images.is-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mp-hero-images figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.mp-hero-images figure {
  position: relative;
}
.mp-image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(3 7 18 / 0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.mp-hero-images img {
  display: block;
  width: 100%;
  height: auto;
}

/* Stats strip. */
.mp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 0 0;
  list-style: none;
  text-align: center;
}
.mp-stats li {
  display: grid;
  gap: 4px;
}
.mp-stats strong {
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mp-stats span {
  color: var(--muted);
  font-size: 14px;
}

/* Feature sections: copy beside the picture, alternating sides. */
.mp-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* These pages run to many sections, so they sit closer than the video pages' few. */
  padding-block: clamp(48px, 5.5vw, 88px);
}
.mp-reverse .vm-showcase-copy {
  order: 2;
}
.mp-stage {
  justify-self: center;
  width: min(100%, 520px);
  margin: 0;
}
.mp-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  border-radius: 16px;
}

/* Copy carried over from the old pages: paragraphs, lists and inline links. */
.mp-prose {
  display: grid;
  gap: 14px;
  color: var(--text);
  line-height: 1.7;
}
.mp-prose :where(p, ul, ol, h3) {
  margin: 0;
}
.mp-prose :where(ul, ol) {
  padding-inline-start: 1.25em;
}
.mp-prose li + li {
  margin-top: 6px;
}
.mp-prose h3 {
  color: var(--ink);
  font-size: 18px;
}
.mp-prose strong {
  color: var(--ink);
}
.mp-prose a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tables carried over from the old pages, e.g. ratings by store. */
.mp-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.mp-prose :where(th, td) {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}
.mp-prose th {
  color: var(--ink);
  font-weight: 600;
}
.closing .mp-closing-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Numbered steps inside a showcase's copy column. */
.mp-steps {
  display: grid;
  gap: 18px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.mp-steps li {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.mp-steps h3 {
  color: var(--ink);
  font-size: 18px;
}
.mp-steps p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Runs of short sections without images, as cards. */
.mp-text-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  padding-block: clamp(56px, 7vw, 100px);
}
/* Four cards sit two by two rather than three and one. */
.mp-text-group:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.mp-text {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.mp-text h2 {
  font-size: clamp(21px, 2vw, 26px);
}
.mp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 600;
}

/* A line under the hero, e.g. that the page's images were made with starryai. */
.mp-disclaimer {
  position: relative;
  z-index: 1;
  margin: 20px auto 0;
  padding-inline: var(--gutter, 20px);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* App Store and Google Play badges. */
.mp-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.vm-showcase-copy .mp-stores {
  justify-content: flex-start;
}
.mp-stores a {
  display: block;
  border-radius: 10px;
}
.mp-stores img,
.closing .mp-stores img {
  display: block;
  width: auto;
  height: 48px;
  /* Not the closing's app icon styling. */
  margin: 0;
  border-radius: 0;
  filter: none;
}

/* Centred blocks: a heading, a line, then a grid. */
.mp-centered {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: clamp(56px, 7vw, 100px);
  text-align: center;
}
.mp-centered > .mp-prose {
  max-width: 680px;
}

/* A grid of example pictures. */
.mp-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.mp-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface);
}

/* Use-case cards and the list of further uses. */
.mp-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: start;
}
.mp-cards li {
  /* Four across; five or six as rows of three, the last row centred. */
  flex: 0 1 calc((100% - 60px) / 4);
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.mp-cards:has(> :nth-child(5):last-child, > :nth-child(6):last-child) li {
  flex-basis: calc((100% - 40px) / 3);
}
.mp-cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mp-cards :where(h3, p) {
  margin: 0;
  padding-inline: 20px;
}
.mp-cards h3 {
  margin-top: 12px;
  color: var(--ink);
  font-size: 18px;
}
.mp-cards p {
  color: var(--text);
  line-height: 1.6;
}
.mp-tags {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 24px;
}
.mp-tags h3 {
  color: var(--ink);
  font-size: 18px;
}
.mp-tags ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mp-tags li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}

.mp-cards li:has(h3 a) {
  position: relative;
}
.mp-cards h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.mp-cards li:has(h3 a):hover h3 {
  color: var(--purple);
}
.mp-hero-stores {
  margin-top: 20px;
}

/* A before/after pair in a showcase. */
.mp-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mp-pair figure {
  position: relative;
  margin: 0;
}
.mp-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.mp-eyebrow,
.vm-hero-content > p.mp-eyebrow {
  margin: 0 0 -8px;
  color: var(--purple);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Tool pages' upload box: click to pick, or drop an image. */
.mp-upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(480px, 100%);
  padding: 28px 24px;
  border: 2px dashed color-mix(in srgb, var(--purple) 45%, var(--line));
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.mp-upload svg {
  color: var(--purple);
}
.mp-upload:hover,
.mp-upload.is-dragover,
.mp-upload:focus-within {
  border-color: var(--purple);
  background: color-mix(in srgb, var(--purple) 6%, var(--surface));
}
.mp-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.mp-upload span::first-letter {
  text-transform: uppercase;
}

/* Trust lines under the hero. */
.mp-trust {
  padding-top: clamp(28px, 4vw, 44px);
}

/* A row of links to related pages. */
.mp-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.mp-links a {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.mp-links a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* Customer reviews. */
.mp-reviews-intro {
  margin: 0;
  color: var(--text);
}
.mp-review-list {
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  columns: 3 280px;
  column-gap: 20px;
  text-align: start;
}
.mp-review-list li {
  break-inside: avoid;
  margin-bottom: 20px;
}
.mp-review-list.is-single {
  columns: auto;
  max-width: 640px;
  text-align: center;
}
.mp-review-list figure {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.mp-review-stars {
  color: #f5a623;
  letter-spacing: 2px;
}
.mp-review-list h3 {
  color: var(--ink);
  font-size: 18px;
}
.mp-review-list blockquote {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.mp-review-list figcaption {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 600;
}
.mp-review-list figcaption span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

/* The closing's checklist sits between its copy and its button. */
.vm-closing .mp-checks {
  margin-top: 0;
}
.vm-closing .mp-checks + .vm-actions {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .mp-showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  /* On one column the picture always follows its copy. */
  .mp-reverse .vm-showcase-copy {
    order: 0;
  }
  .mp-stage img {
    max-height: 480px;
  }
  .mp-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mp-cards li,
  .mp-cards:has(> :nth-child(5):last-child, > :nth-child(6):last-child) li {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media (max-width: 600px) {
  .mp-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .mp-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  /* Two across on phones, with smaller type. */
  .mp-cards {
    gap: 12px;
  }
  .mp-cards li,
  .mp-cards:has(> :nth-child(5):last-child, > :nth-child(6):last-child) li {
    flex-basis: calc((100% - 12px) / 2);
    padding-bottom: 14px;
  }
  .mp-cards :where(h3, p) {
    padding-inline: 12px;
  }
  .mp-cards h3 {
    font-size: 15px;
  }
  .mp-cards p {
    font-size: 13px;
    line-height: 1.5;
  }
}
