/* Keep the hero in document flow: its content may exceed the viewport height.
   !important overrides the legacy inline and breakpoint positioning rules. */
.hero-section > .hero-content.vsl-mode {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  flex: 1 0 auto;
  width: 100% !important;
  max-width: 100% !important;
  padding: 32px 24px 40px !important;
}

.hero-section > div:first-child p.text-sm {
  white-space: normal !important;
  overflow-wrap: break-word;
}

.vsl-mode .vsl-inner > * {
  flex-shrink: 0;
  min-width: 0;
}

.vsl-mode .cta-primary {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

footer { overflow-wrap: anywhere; }
footer > div > * { min-width: 0; }

.vsl-mobile-description { display: none; }

@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
  .hero-section > .hero-content.vsl-mode {
    justify-content: center !important;
    padding: 24px 16px 28px !important;
  }
  .hero-section > div:first-child .py-3 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .vsl-mode .vsl-logo { height: 30px !important; }
  .vsl-mode .vsl-inner {
    flex: 0 0 auto;
    gap: 20px !important;
  }
  .vsl-mode .vsl-video { margin-top: 0 !important; }
  .vsl-mode .vsl-cta-wrap {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
  }
  .vsl-mode .vsl-mobile-description {
    display: block;
    max-width: 420px;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: var(--body);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .vsl-mode .vsl-h1 {
    font-size: clamp(28px, 8.25vw, 33px);
  }
  .vsl-mode .cta-primary {
    padding: 16px 24px !important;
  }
  .tcards > .card { min-width: min(280px, 100%); }
}
