/* Versioned card layout. Loaded last so cached legacy page CSS cannot
   recreate the oversized process and reassurance tiles. */

/* Free Trial and Work With Us: three compact sequential cards. */
.trial-steps {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
  width: min(100%, 520px) !important;
  margin: 28px auto 0 !important;
}

body .trial-steps > .trial-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 20px 24px !important;
  overflow: hidden !important;
  background: var(--panel) !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: 6px !important;
  text-align: center !important;
}

body .trial-steps > .trial-step > .tile-illustration {
  order: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  margin: 0 0 20px !important;
  border-radius: 6px !important;
}

body .trial-steps > .trial-step > .n {
  order: 2 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body .trial-steps > .trial-step > div {
  order: 3 !important;
  width: 100% !important;
  min-width: 0 !important;
}

body .trial-steps > .trial-step h3 {
  margin: 0 0 10px !important;
}

body .trial-steps > .trial-step p {
  margin: 0 auto !important;
}

/* Reassurance artwork: same tidy vertical image-card proportions. */
.highlight-card.artwork-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  min-height: 0 !important;
  padding: 26px !important;
  overflow: hidden !important;
}

.highlight-card > .tile-illustration {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  margin: 0 0 24px !important;
  border-radius: 6px !important;
}

.highlight-card > h3 {
  margin: 0 0 12px !important;
}

.highlight-card > p {
  margin: 0 auto !important;
}

@media (max-width: 860px) {
  .trial-steps {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body .trial-steps > .trial-step {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  body .trial-steps > .trial-step,
  .highlight-card.artwork-card {
    padding: 18px !important;
  }

  body .trial-steps > .trial-step > .tile-illustration,
  .highlight-card > .tile-illustration {
    margin-bottom: 18px !important;
  }
}
