/* Video hero (Claude Design): on the homepage, in place of the deals slider, for visitors who haven't picked a cause.
   Classes are vm-vhero-*, as .vm-hero is the store page header. */
.vm-vhero {
  --vm-ink: #111418;
  --vm-teal: #0b6e69;
  --vm-teal-deep: #08504c;
  --vm-mint: #7fe0cf;
  --vm-yellow: #f5b800;
  --vm-bg-top: #0c4a46;
  --vm-bg-bottom: #05211f;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(70% 70% at 25% 20%, rgba(25, 120, 112, 0.35) 0%, rgba(12, 74, 70, 0) 70%),
    linear-gradient(180deg, var(--vm-bg-top) 0%, var(--vm-bg-bottom) 100%);
  min-height: 460px;
}

.vm-vhero__copy {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.vm-vhero__eyebrow {
  margin: 0;
  font: 700 12px/1 Figtree, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vm-mint);
}

.vm-vhero__title {
  margin: 0;
  font: 800 clamp(30px, 3.4vw, 44px)/1.04 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
}
.vm-vhero__title span { color: var(--vm-yellow); display: block; }

.vm-vhero__lede {
  margin: 0;
  max-width: 34em;
  font: 500 16px/1.5 Figtree, ui-sans-serif, system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.82);
}

.vm-vhero__steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }

.vm-vhero__step {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  /* Steps not playing are dimmed by colour, not opacity, so their text still has at least 4.5:1 contrast. */
  color: rgba(255, 255, 255, 0.8);
}
.vm-vhero__step strong { display: block; font: 700 16px/1.25 Figtree, ui-sans-serif, system-ui, sans-serif; }
.vm-vhero__step small { display: block; font: 500 13.5px/1.35 Figtree, ui-sans-serif, system-ui, sans-serif; color: rgba(255, 255, 255, 0.86); }
.vm-vhero__step.is-active, .vm-vhero--static .vm-vhero__step { color: #fff; }
.vm-vhero__step.is-active small, .vm-vhero--static .vm-vhero__step small { color: rgba(255, 255, 255, 0.82); }

.vm-vhero__num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 800 15px/1 "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.vm-vhero__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: var(--vm-yellow);
}

.vm-vhero__step.is-active,
.vm-vhero--static .vm-vhero__step { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.vm-vhero__step.is-active .vm-vhero__num,
.vm-vhero--static .vm-vhero__num { background: var(--vm-yellow); color: var(--vm-ink); }
.vm-vhero--static .vm-vhero__bar { display: none; }

.vm-vhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.vm-vhero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 700 16px/1 Figtree, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  min-height: 48px;
  box-sizing: border-box;
  border: 2px solid transparent;
}
.vm-vhero__btn:hover { transform: translateY(-1px); }
.vm-vhero__btn:focus-visible { outline: 3px solid var(--vm-mint); outline-offset: 3px; }
.vm-vhero__btn--primary { background: var(--vm-yellow); color: var(--vm-ink); }
.vm-vhero__btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, 0.35); }
.vm-vhero__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }

.vm-vhero__media {
  position: relative;
  min-height: 0;
  /* feather the video's left edge into the panel gradient */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}
.vm-vhero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--vm-bg-bottom);
}

@media (max-width: 767.98px) {
  .vm-vhero { display: flex; flex-direction: column; border-radius: 18px; min-height: 0; }
  .vm-vhero__copy { display: contents; }
  .vm-vhero__eyebrow { order: 1; padding: 26px 22px 0; }
  .vm-vhero__title { order: 2; padding: 10px 22px 0; }
  .vm-vhero__lede { order: 3; padding: 10px 22px 4px; font-size: 15px; }
  .vm-vhero__media { order: 4; aspect-ratio: 4 / 5; margin-top: 6px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 93%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 93%, transparent 100%); }
  .vm-vhero__ctas { order: 5; padding: 16px 22px 22px; margin-top: 0; flex-wrap: wrap; gap: 10px; }
  .vm-vhero__ctas .vm-vhero__btn { flex: 1 1 auto; justify-content: center; padding: 13px 14px; font-size: 15px; white-space: nowrap; }
    .vm-vhero__steps { display: none; } /* the video carries the steps on small screens */
}

/* Tablet: the video hero stacks, so the phone in the video isn't squeezed into a narrow column and cropped. */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .vm-vhero { grid-template-columns: minmax(0, 1fr) !important; }
  .vm-vhero__media { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 5; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 94%, transparent 100%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 94%, transparent 100%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
}

/* Heroes with hide-media-below="640": on small phones the video is left out and the three steps show in its place. */
@media (max-width: 639.98px) {
  .vm-vhero--nomedia-640 .vm-vhero__media { display: none; }
  .vm-vhero--nomedia-640 .vm-vhero__steps { display: grid; order: 4; padding: 14px 22px 0; }
  .vm-vhero--nomedia-640 .vm-vhero__step { cursor: default !important; }
  .vm-vhero--nomedia-640 .vm-vhero__bar { display: none; }
}

/* "Example" label (the totals in the demo aren't real) and the pause/play button, both over the video. */
.vm-vhero__example { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 700 12px/1.4 Figtree, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.02em; }
.vm-vhero__toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; }
.vm-vhero__toggle[hidden] { display: none; }
.vm-vhero__toggle:hover { background: rgba(0, 0, 0, 0.75); }
.vm-vhero__toggle:focus-visible { outline: 3px solid var(--vm-mint); outline-offset: 2px; }
.vm-vhero__toggle svg { width: 20px; height: 20px; fill: currentColor; }
.vm-vhero__toggle .vm-vhero__ico-play, .vm-vhero__toggle.is-paused .vm-vhero__ico-pause { display: none; }
.vm-vhero__toggle.is-paused .vm-vhero__ico-play { display: inline; }
/* Clear of the faded top and bottom edges where the video stacks. */
@media (max-width: 1099.98px) { .vm-vhero__example { top: 10%; } .vm-vhero__toggle { bottom: 8%; } }

/* The same below desktop, for heroes with hide-media-below="1024" (the join page, where the form matters more than the demo). */
@media (max-width: 1023.98px) {
  .vm-vhero--nomedia-1024 .vm-vhero__media { display: none; }
  .vm-vhero--nomedia-1024 .vm-vhero__steps { display: grid; order: 4; padding: 14px 22px 0; }
  .vm-vhero--nomedia-1024 .vm-vhero__step { cursor: default !important; }
  .vm-vhero--nomedia-1024 .vm-vhero__bar { display: none; }
}
